|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.propertymap.PropertyMapContainer
net.infonode.docking.properties.WindowTabButtonProperties
public class WindowTabButtonProperties
Properties and property values for a button in a window tab.
Field Summary | |
---|---|
static DockingWindowActionProperty |
ACTION
The DockingWindowAction that is performed when the button is clicked. |
static ButtonFactoryProperty |
FACTORY
The button factory. |
static IconProperty |
ICON
The button icon. |
static PropertyMapGroup |
PROPERTIES
Property group containing all window tab button properties. |
static StringProperty |
TOOL_TIP_TEXT
The button tool tip text. |
static BooleanProperty |
VISIBLE
True if the button is visible. |
Constructor Summary | |
---|---|
WindowTabButtonProperties()
Creates an empty property object. |
|
WindowTabButtonProperties(PropertyMap map)
Creates a property object containing the map. |
|
WindowTabButtonProperties(WindowTabButtonProperties inheritFrom)
Creates a property object that inherit values from another property object. |
Method Summary | |
---|---|
WindowTabButtonProperties |
addSuperObject(WindowTabButtonProperties properties)
Adds a super object from which property values are inherited. |
DockingWindowAction |
getAction()
Gets the DockingWindowAction that is performed when the button is clicked. |
ButtonFactory |
getFactory()
Gets the button factory. |
javax.swing.Icon |
getIcon()
Returns the button icon. |
java.lang.String |
getToolTipText()
Returns the button tool tip text. |
boolean |
isVisible()
Returns true if this button is visible. |
WindowTabButtonProperties |
removeSuperObject()
Deprecated. Use removeSuperObject(WindowTabButtonProperties) instead. |
WindowTabButtonProperties |
removeSuperObject(WindowTabButtonProperties superObject)
Removes a super object. |
WindowTabButtonProperties |
setAction(DockingWindowAction action)
Sets the DockingWindowAction that will be performed when the button is clicked. |
WindowTabButtonProperties |
setFactory(ButtonFactory factory)
Sets the button factory. |
WindowTabButtonProperties |
setIcon(javax.swing.Icon icon)
Sets the button icon. |
WindowTabButtonProperties |
setTo(DockingWindowAction action)
Sets the action is performed when the button is clicked. |
WindowTabButtonProperties |
setToolTipText(java.lang.String text)
Sets the button tool tip text. |
WindowTabButtonProperties |
setVisible(boolean visible)
Set to true if this button should be visible. |
Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer |
---|
getMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PropertyMapGroup PROPERTIES
public static final BooleanProperty VISIBLE
public static final IconProperty ICON
public static final StringProperty TOOL_TIP_TEXT
public static final DockingWindowActionProperty ACTION
DockingWindowAction
that is performed when the button is clicked.
public static final ButtonFactoryProperty FACTORY
ICON
and the tool tip from TOOL_TIP_TEXT
. An action listener is also added to the button.
Constructor Detail |
---|
public WindowTabButtonProperties()
public WindowTabButtonProperties(PropertyMap map)
map
- the property mappublic WindowTabButtonProperties(WindowTabButtonProperties inheritFrom)
inheritFrom
- the object from which to inherit property valuesMethod Detail |
---|
public WindowTabButtonProperties addSuperObject(WindowTabButtonProperties properties)
properties
- the object from which to inherit property values
public WindowTabButtonProperties removeSuperObject()
removeSuperObject(WindowTabButtonProperties)
instead.
public WindowTabButtonProperties removeSuperObject(WindowTabButtonProperties superObject)
superObject
- the super object to remove
public WindowTabButtonProperties setVisible(boolean visible)
visible
- true if this button should be visible
public boolean isVisible()
public WindowTabButtonProperties setIcon(javax.swing.Icon icon)
icon
- the button icon
public javax.swing.Icon getIcon()
public java.lang.String getToolTipText()
public WindowTabButtonProperties setToolTipText(java.lang.String text)
text
- the button tool tip text
public ButtonFactory getFactory()
ICON
and the tool tip from TOOL_TIP_TEXT
. An action listener is also added to the button.
public WindowTabButtonProperties setFactory(ButtonFactory factory)
ICON
and the tool tip from TOOL_TIP_TEXT
. An action listener is also added to the button.
factory
- the button factory
public DockingWindowAction getAction()
DockingWindowAction
that is performed when the button is clicked.
DockingWindowAction
that is performed when the button is clickedpublic WindowTabButtonProperties setAction(DockingWindowAction action)
DockingWindowAction
that will be performed when the button is clicked.
action
- the DockingWindowAction
that is performed when the button is clicked
public WindowTabButtonProperties setTo(DockingWindowAction action)
DockingWindowAction
.
action
- the action that is performed when the button is clicked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |