public class ButtonModelAdapter extends Object implements ChangeListener
Constructor and Description |
---|
ButtonModelAdapter(ValueModel<?> pValueModel,
ButtonModel pButtonModel)
Creates a new adapter between a ValueModel and a ButtonModel .
|
ButtonModelAdapter(ValueModel<?> pValueModel,
ButtonModel pButtonModel,
boolean pInvert)
Creates a new adapter between a ValueModel and a ButtonModel .
|
Modifier and Type | Method and Description |
---|---|
void |
stateChanged(ChangeEvent pEvent)
Invoked when either the value model or the button model changed its state.
|
public ButtonModelAdapter(ValueModel<?> pValueModel, ButtonModel pButtonModel)
pValueModel
- the value modelpButtonModel
- the button modelpublic ButtonModelAdapter(ValueModel<?> pValueModel, ButtonModel pButtonModel, boolean pInvert)
pValueModel
- the value modelpButtonModel
- the button modelpInvert
- if true, we use inverted logicpublic void stateChanged(ChangeEvent pEvent)
stateChanged
in interface ChangeListener
pEvent
- a ChangeEvent objectCopyright © 2017 Jürgen Zeller (privat). All rights reserved.