public class BasicButtonModelAdapter extends Object implements BasicButtonModelListener
BasicButtonModelListener forwarding
any event expect triggered(), bound(BasicButtonModel, DockController) and
unbound(BasicButtonModel, DockController) to changed().| Constructor and Description |
|---|
BasicButtonModelAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
backgroundChanged(BasicButtonModel model,
BackgroundPaint oldBackground,
BackgroundPaint newBackground)
Called when the background algorithm has been exchanged.
|
void |
borderChanged(BasicButtonModel model,
String key,
BorderModifier oldBorder,
BorderModifier newBorder)
Called when a border has changed.
|
void |
bound(BasicButtonModel model,
DockController controller)
Called after
controller was installed on model. |
protected void |
changed()
Called by all methods except
triggered() of this
adapter. |
void |
disabledIconChanged(BasicButtonModel model,
Icon oldIcon,
Icon icon) |
void |
enabledStateChanged(BasicButtonModel model,
boolean enabled)
Called if the action was enabled or disabled.
|
void |
iconChanged(BasicButtonModel model,
ActionContentModifier modifier,
Icon oldIcon,
Icon icon)
Called if an icon of
model changed. |
void |
mouseInside(BasicButtonModel model,
boolean mouseInside)
Called if the mouse enters or leaves the view.
|
void |
mousePressed(BasicButtonModel model,
boolean mousePressed)
Called if the mouse is pressed or released.
|
void |
orientationChanged(BasicButtonModel model,
DockTitle.Orientation old,
DockTitle.Orientation orientation)
Called if the orientation of the view changed.
|
void |
selectedStateChanged(BasicButtonModel model,
boolean selected)
Called if the selection state of
model changed. |
void |
textChanged(BasicButtonModel model,
String oldText,
String text)
Called if the text of
model changed. |
void |
tooltipChanged(BasicButtonModel model,
String old,
String tooltip)
Called if the tooltip of the action changed.
|
void |
triggered()
Called if the user triggered the action.
|
void |
unbound(BasicButtonModel model,
DockController controller)
Called after
controller was uninstalled from model. |
public void textChanged(BasicButtonModel model, String oldText, String text)
BasicButtonModelListenermodel changed.textChanged in interface BasicButtonModelListenermodel - the source of the eventoldText - the old value, can be nulltext - the new value, can be nullpublic void disabledIconChanged(BasicButtonModel model, Icon oldIcon, Icon icon)
public void enabledStateChanged(BasicButtonModel model, boolean enabled)
BasicButtonModelListenerenabledStateChanged in interface BasicButtonModelListenermodel - the source of the event.enabled - the new enable statepublic void mouseInside(BasicButtonModel model, boolean mouseInside)
BasicButtonModelListenermouseInside in interface BasicButtonModelListenermodel - the source of the eventmouseInside - whether the mouse is inside or notpublic void mousePressed(BasicButtonModel model, boolean mousePressed)
BasicButtonModelListenermousePressed in interface BasicButtonModelListenermodel - the source of the eventmousePressed - the state of the mousepublic void orientationChanged(BasicButtonModel model, DockTitle.Orientation old, DockTitle.Orientation orientation)
BasicButtonModelListenerorientationChanged in interface BasicButtonModelListenermodel - the source of the eventold - the old valueorientation - the new valuepublic void iconChanged(BasicButtonModel model, ActionContentModifier modifier, Icon oldIcon, Icon icon)
BasicButtonModelListenermodel changed.iconChanged in interface BasicButtonModelListenermodel - the source of the eventmodifier - the context in which the icon is usedoldIcon - the old valueicon - the new valuepublic void selectedStateChanged(BasicButtonModel model, boolean selected)
BasicButtonModelListenermodel changed.selectedStateChanged in interface BasicButtonModelListenermodel - the source of the event.selected - the new statepublic void tooltipChanged(BasicButtonModel model, String old, String tooltip)
BasicButtonModelListenertooltipChanged in interface BasicButtonModelListenermodel - the source of the eventold - the old valuetooltip - the new valuepublic void backgroundChanged(BasicButtonModel model, BackgroundPaint oldBackground, BackgroundPaint newBackground)
BasicButtonModelListenerbackgroundChanged in interface BasicButtonModelListenermodel - the source of this eventoldBackground - the old background algorithm, can be nullnewBackground - the new background algorithm, can be nullpublic void borderChanged(BasicButtonModel model, String key, BorderModifier oldBorder, BorderModifier newBorder)
BasicButtonModelListenerborderChanged in interface BasicButtonModelListenermodel - the source of this eventkey - the identifier of the borderoldBorder - the old border, can be nullnewBorder - the new border, can be nullpublic void bound(BasicButtonModel model, DockController controller)
BasicButtonModelListenercontroller was installed on model.bound in interface BasicButtonModelListenermodel - the source of this eventcontroller - the controller that was installedpublic void unbound(BasicButtonModel model, DockController controller)
BasicButtonModelListenercontroller was uninstalled from model.unbound in interface BasicButtonModelListenermodel - the source of this eventcontroller - the controller that was removedpublic void triggered()
BasicButtonModelListenertriggered in interface BasicButtonModelListenerprotected void changed()
triggered() of this
adapter.Copyright © 2017 Docking Frames. All rights reserved.