|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.swing.SidePaneItem
public class SidePaneItem
SidePaneItem is a data structure used by SidePane. It has a title, an icon, a component
and a mouse listener.
SidePane| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SidePaneItem(String title)
title - title of SidePaneItem
public SidePaneItem(String title,
Icon icon)
title - title of SidePaneItemicon - icon of SidePaneItem
public SidePaneItem(String title,
Icon icon,
Component component)
title - title of SidePaneItemicon - icon of SidePaneItemcomponent - component in SidePaneItem
public 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 SidePane| Method Detail |
|---|
public 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
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||