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