public class JLabelIconProperty extends AbstractComponentProperty<JLabel,Icon>
JLabel.
It is possible to control the icon of the label by setting the value of this property or by calling the JLabel.setIcon(Icon) method of that label.
If the value of this property is set to null, the label will have no icon.
JLabel.getIcon(),
JLabel.setIcon(Icon)component| Constructor and Description |
|---|
JLabelIconProperty(JLabel label) |
| 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 JLabelIconProperty(JLabel label)
protected Icon getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<JLabel,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<JLabel,Icon>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)Copyright © 2017. All rights reserved.