public class JTextComponentEditableProperty extends AbstractComponentProperty<JTextComponent,Boolean>
JTextComponent.
It is possible to control the editable state of the component by setting the value of this property or by calling the
JTextComponent.setEditable(boolean) method of that component.
Finally note that null values are not supported by this property.
component| Constructor and Description |
|---|
JTextComponentEditableProperty(JTextComponent component) |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
getPropertyValueFromComponent()
Reads the value from
AbstractComponentProperty.component. |
protected void |
setPropertyValueToComponent(Boolean value)
Sets the value to
AbstractComponentProperty.component. |
dispose, getValue, setValueaddChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic JTextComponentEditableProperty(JTextComponent component)
protected Boolean getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<JTextComponent,Boolean>AbstractComponentProperty.getPropertyValueFromComponent()protected void setPropertyValueToComponent(Boolean value)
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
setPropertyValueToComponent in class AbstractComponentProperty<JTextComponent,Boolean>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)Copyright © 2017. All rights reserved.