net.infonode.properties.gui.util
public class ButtonProperties extends PropertyMapContainer
Version: $Revision: 1.3 $
| Field Summary | |
|---|---|
| static IconProperty | DISABLED_ICON
The disabled button icon. |
| static ButtonFactoryProperty | FACTORY The button factory. The created button will be assigned the icon from ICON or DISABLED_ICON and the tool tip from TOOL_TIP_TEXT. |
| static IconProperty | ICON
The button icon. |
| static PropertyMapGroup | PROPERTIES
Property group for all button properties. |
| static StringProperty | TOOL_TIP_TEXT
The enabled button tool tip text. |
| Constructor Summary | |
|---|---|
| ButtonProperties()
Creates an empty property object. | |
| ButtonProperties(PropertyMap map)
Creates a property map containing the map.
| |
| ButtonProperties(ButtonProperties inheritFrom)
Creates a property object that inherit values from another property object.
| |
| Method Summary | |
|---|---|
| ButtonProperties | addSuperObject(ButtonProperties properties)
Adds a super object from which property values are inherited.
|
| AbstractButton | applyTo(AbstractButton button)
Applies the icon, disabled icon and tool tip to the given button
|
| Icon | getDisabledIcon()
Returns the disabled button icon.
|
| ButtonFactory | getFactory() Gets the button factory. The created button will be assigned the icon from ICON or DISABLED_ICON and the tool tip from TOOL_TIP_TEXT. |
| Icon | getIcon()
Returns the button icon.
|
| String | getToolTipText()
Returns the button tool tip text.
|
| ButtonProperties | removeSuperObject()
Removes the last added super object.
|
| ButtonProperties | removeSuperObject(ButtonProperties superObject)
Removes the given super object.
|
| ButtonProperties | setDisabledIcon(Icon icon)
Sets the disabled button icon.
|
| ButtonProperties | setFactory(ButtonFactory factory) Sets the button factory. The created button will be assigned the icon from ICON or DISABLED_ICON and the tool tip from TOOL_TIP_TEXT. |
| ButtonProperties | setIcon(Icon icon)
Sets the button icon.
|
| ButtonProperties | setToolTipText(String text)
Sets the button tool tip text.
|
The button factory.
The created button will be assigned the icon from ICON or DISABLED_ICON and the tool tip from TOOL_TIP_TEXT. An action listener is also added to the button.
Parameters: map the property map
Parameters: inheritFrom the object from which to inherit property values
Parameters: properties the object from which to inherit property values
Returns: this
Parameters: button botton
Returns: the button
Returns: the disabled button icon
Gets the button factory.
The created button will be assigned the icon from ICON or DISABLED_ICON and the tool tip from TOOL_TIP_TEXT. An action listener is also added to the button.
Returns: the button factory
Returns: the button icon
Returns: the button tool tip text
Returns: this
Parameters: superObject super object to remove
Returns: this
Parameters: icon the disabled button icon
Returns: this
Sets the button factory.
The created button will be assigned the icon from ICON or DISABLED_ICON and the tool tip from TOOL_TIP_TEXT. An action listener is also added to the button.
Parameters: factory the button factory
Returns: this
Parameters: icon the button icon
Returns: this
Parameters: text the button tool tip text
Returns: this