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