public class JLabelTextProperty extends AbstractComponentProperty<JLabel,String>
JLabel.
It is possible to control the text of the label by setting the value of this property or by calling the JLabel.setText(String) method of that label.
If the value of this property is set to null, the label will be emptied.
JLabel.getText(),
JLabel.setText(String)component| Constructor and Description |
|---|
JLabelTextProperty(JLabel label) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPropertyValueFromComponent()
Reads the value from
AbstractComponentProperty.component. |
protected void |
setPropertyValueToComponent(String value)
Sets the value to
AbstractComponentProperty.component. |
dispose, getValue, setValueaddChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic JLabelTextProperty(JLabel label)
protected String getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<JLabel,String>AbstractComponentProperty.getPropertyValueFromComponent()protected void setPropertyValueToComponent(String value)
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
setPropertyValueToComponent in class AbstractComponentProperty<JLabel,String>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)Copyright © 2017. All rights reserved.