| Constructor | 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 | Description |
|---|---|---|
Color |
getBackground() |
Gets the background.
|
Component |
getComponent() |
Gets the component.
|
Font |
getFont() |
Gets the font.
|
Color |
getForeground() |
Gets the foreground.
|
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) |
Sets the background.
|
void |
setComponent(Component component) |
Sets the component.
|
void |
setFont(Font font) |
Sets the font.
|
void |
setForeground(Color foreground) |
Sets the 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 - the flagpublic Color getForeground()
setForeground(java.awt.Color) and the component is an instance of TabColorProvider,
TabColorProvider.getTabForeground() will be used.public void setForeground(Color foreground)
foreground - the foreground colorpublic Color getBackground()
setBackground(java.awt.Color) and the component is an instance of TabColorProvider,
TabColorProvider.getTabBackground() will be used.public void setBackground(Color background)
background - the background colorpublic Font getFont()
public void setFont(Font font)
font - the font