| Constructor and Description |
|---|
SidePaneItem(String title)
Constructs a SidePaneItem with title.
|
SidePaneItem(String title,
Icon icon)
Constructs a SidePaneItem with title and icon.
|
SidePaneItem(String title,
Icon icon,
Component component)
Constructs a SidePaneItem with title, icon and component.
|
SidePaneItem(String title,
Icon icon,
Component component,
MouseInputListener listener)
Constructs a SidePaneItem with title, icon and component.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getBackground() |
Component |
getComponent()
Gets the component.
|
Color |
getForeground() |
Icon |
getIcon()
Gets the icon.
|
MouseInputListener |
getMouseListener()
Gets the mouse listener.
|
String |
getTitle()
Gets the title.
|
boolean |
isSelected()
True if the item is selected.
|
void |
setBackground(Color background) |
void |
setComponent(Component component)
Sets the component.
|
void |
setForeground(Color foreground) |
void |
setIcon(Icon icon)
Sets the icon.
|
void |
setMouseInputListener(MouseInputListener mouseListener)
Sets the mouse listener.
|
void |
setSelected(boolean selected)
Selects the item.
|
void |
setTitle(String title)
Sets the title.
|
public SidePaneItem(String title)
title - title of SidePaneItempublic SidePaneItem(String title, Icon icon)
title - title of SidePaneItemicon - icon of SidePaneItempublic SidePaneItem(String title, Icon icon, Component component)
title - title of SidePaneItemicon - icon of SidePaneItemcomponent - component in SidePaneItempublic SidePaneItem(String title, Icon icon, Component component, MouseInputListener listener)
title - title of SidePaneItemicon - icon of SidePaneItemcomponent - component in SidePaneItemlistener - mouse listener when user hover or click on SidePanepublic Icon getIcon()
public void setIcon(Icon icon)
icon - the new iconpublic String getTitle()
public void setTitle(String title)
title - the new titlepublic Component getComponent()
public void setComponent(Component component)
component - the new componentpublic MouseInputListener getMouseListener()
public void setMouseInputListener(MouseInputListener mouseListener)
mouseListener - the new mouse listenerpublic boolean isSelected()
public void setSelected(boolean selected)
selected - public Color getForeground()
public void setForeground(Color foreground)
public Color getBackground()
public void setBackground(Color background)