public class JButtonIconProperty extends AbstractComponentProperty<JButton,Icon>
JButton.
It is possible to control the icon of the button by setting the value of this property or by calling the AbstractButton.setIcon(Icon) method of that button.
If the value of this property is set to null, the button will have no icon.
component| Constructor and Description |
|---|
JButtonIconProperty(JButton button) |
| Modifier and Type | Method and Description |
|---|---|
protected Icon |
getPropertyValueFromComponent()
Reads the value from
AbstractComponentProperty.component. |
protected void |
setPropertyValueToComponent(Icon value)
Sets the value to
AbstractComponentProperty.component. |
dispose, getValue, setValueaddChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic JButtonIconProperty(JButton button)
protected Icon getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<JButton,Icon>AbstractComponentProperty.getPropertyValueFromComponent()protected void setPropertyValueToComponent(Icon value)
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
setPropertyValueToComponent in class AbstractComponentProperty<JButton,Icon>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)Copyright © 2017. All rights reserved.