|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.properties.propertymap.PropertyMapContainer net.infonode.properties.gui.util.ButtonProperties
public class ButtonProperties
Properties and property values for a button.
Field Summary | |
---|---|
static IconProperty |
DISABLED_ICON
The disabled button icon. |
static ButtonFactoryProperty |
FACTORY
The button factory. |
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(ButtonProperties inheritFrom)
Creates a property object that inherit values from another property object. |
|
ButtonProperties(PropertyMap map)
Creates a property map containing the map. |
Method Summary | |
---|---|
ButtonProperties |
addSuperObject(ButtonProperties properties)
Adds a super object from which property values are inherited. |
javax.swing.AbstractButton |
applyTo(javax.swing.AbstractButton button)
Applies the icon, disabled icon and tool tip to the given button |
javax.swing.Icon |
getDisabledIcon()
Returns the disabled button icon. |
ButtonFactory |
getFactory()
Gets the button factory. |
javax.swing.Icon |
getIcon()
Returns the button icon. |
java.lang.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(javax.swing.Icon icon)
Sets the disabled button icon. |
ButtonProperties |
setFactory(ButtonFactory factory)
Sets the button factory. |
ButtonProperties |
setIcon(javax.swing.Icon icon)
Sets the button icon. |
ButtonProperties |
setToolTipText(java.lang.String text)
Sets the button tool tip text. |
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 IconProperty ICON
public static final IconProperty DISABLED_ICON
public static final StringProperty TOOL_TIP_TEXT
public static final 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
. An action listener is also added to the button.
Constructor Detail |
---|
public ButtonProperties()
public ButtonProperties(PropertyMap map)
map
- the property mappublic ButtonProperties(ButtonProperties inheritFrom)
inheritFrom
- the object from which to inherit property valuesMethod Detail |
---|
public ButtonProperties addSuperObject(ButtonProperties properties)
properties
- the object from which to inherit property values
public ButtonProperties removeSuperObject()
public ButtonProperties removeSuperObject(ButtonProperties superObject)
superObject
- super object to remove
public ButtonProperties setIcon(javax.swing.Icon icon)
icon
- the button icon
public javax.swing.Icon getIcon()
public ButtonProperties setDisabledIcon(javax.swing.Icon icon)
icon
- the disabled button icon
public javax.swing.Icon getDisabledIcon()
public java.lang.String getToolTipText()
public ButtonProperties setToolTipText(java.lang.String text)
text
- the button tool tip text
public 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
.
An action listener is also added to the button.
public 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
.
An action listener is also added to the button.
factory
- the button factory
public javax.swing.AbstractButton applyTo(javax.swing.AbstractButton button)
button
- botton
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |