|
JIDE Common Layer 2.7.6 | ||||||||
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(java.lang.String title)
Constructs a SidePaneItem with title. |
|
SidePaneItem(java.lang.String title,
javax.swing.Icon icon)
Constructs a SidePaneItem with title and icon. |
|
SidePaneItem(java.lang.String title,
javax.swing.Icon icon,
java.awt.Component component)
Constructs a SidePaneItem with title, icon and component. |
|
SidePaneItem(java.lang.String title,
javax.swing.Icon icon,
java.awt.Component component,
javax.swing.event.MouseInputListener listener)
Constructs a SidePaneItem with title, icon and component. |
Method Summary | |
---|---|
java.awt.Color |
getBackground()
|
java.awt.Component |
getComponent()
Gets the component. |
java.awt.Color |
getForeground()
|
javax.swing.Icon |
getIcon()
Gets the icon. |
javax.swing.event.MouseInputListener |
getMouseListener()
Gets the mouse listener. |
java.lang.String |
getTitle()
Gets the title. |
boolean |
isSelected()
True if the item is selected. |
void |
setBackground(java.awt.Color background)
|
void |
setComponent(java.awt.Component component)
Sets the component. |
void |
setForeground(java.awt.Color foreground)
|
void |
setIcon(javax.swing.Icon icon)
Sets the icon. |
void |
setMouseInputListener(javax.swing.event.MouseInputListener mouseListener)
Sets the mouse listener. |
void |
setSelected(boolean selected)
Selects the item. |
void |
setTitle(java.lang.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(java.lang.String title)
title
- title of SidePaneItempublic SidePaneItem(java.lang.String title, javax.swing.Icon icon)
title
- title of SidePaneItemicon
- icon of SidePaneItempublic SidePaneItem(java.lang.String title, javax.swing.Icon icon, java.awt.Component component)
title
- title of SidePaneItemicon
- icon of SidePaneItemcomponent
- component in SidePaneItempublic SidePaneItem(java.lang.String title, javax.swing.Icon icon, java.awt.Component component, javax.swing.event.MouseInputListener listener)
title
- title of SidePaneItemicon
- icon of SidePaneItemcomponent
- component in SidePaneItemlistener
- mouse listener when user hover or click on SidePaneMethod Detail |
---|
public javax.swing.Icon getIcon()
public void setIcon(javax.swing.Icon icon)
icon
- the new iconpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the new titlepublic java.awt.Component getComponent()
public void setComponent(java.awt.Component component)
component
- the new componentpublic javax.swing.event.MouseInputListener getMouseListener()
public void setMouseInputListener(javax.swing.event.MouseInputListener mouseListener)
mouseListener
- the new mouse listenerpublic boolean isSelected()
public void setSelected(boolean selected)
selected
- public java.awt.Color getForeground()
public void setForeground(java.awt.Color foreground)
public java.awt.Color getBackground()
public void setBackground(java.awt.Color background)
|
JIDE Common Layer 2.7.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |