public class JFrameTitleProperty extends AbstractComponentProperty<JFrame,String>
JFrame.
It is possible to control the title of the frame by setting the value of this property or by calling the Frame.setTitle(String) method of that frame.
Note that in conformance with the behavior of the JFrame, unlike the JDialog, a null
value will be replaced by an empty string.
Frame.getTitle(),
Frame.setTitle(String)component| Constructor and Description |
|---|
JFrameTitleProperty(JFrame frame) |
| 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. |
void |
setValue(String value) |
dispose, getValueaddChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic JFrameTitleProperty(JFrame frame)
protected String getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<JFrame,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<JFrame,String>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)public void setValue(String value)
setValue in interface com.github.leanframeworks.propertiesframework.api.property.WritableProperty<String>setValue in class AbstractComponentProperty<JFrame,String>AbstractComponentProperty.setValue(Object)Copyright © 2017. All rights reserved.