public class JButtonTextProperty extends AbstractComponentProperty<JButton,String>
JButton.
It is possible to control the text of the button by setting the value of this property or by calling the AbstractButton.setText(String) method of that button.
If the value of this property is set to null, the button will be emptied.
component| Constructor and Description |
|---|
JButtonTextProperty(JButton button) |
| 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 JButtonTextProperty(JButton button)
protected String getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<JButton,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<JButton,String>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)Copyright © 2017. All rights reserved.