|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BasicButtonModelListener
A listener that can be added to a BasicButtonModel and will
be informed about changes in the model.
| Method Summary | |
|---|---|
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. |
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. |
| Method Detail |
|---|
void textChanged(BasicButtonModel model,
String oldText,
String text)
model changed.
model - the source of the eventoldText - the old value, can be nulltext - the new value, can be null
void iconChanged(BasicButtonModel model,
ActionContentModifier modifier,
Icon oldIcon,
Icon icon)
model changed.
model - the source of the eventmodifier - the context in which the icon is usedoldIcon - the old valueicon - the new value
void selectedStateChanged(BasicButtonModel model,
boolean selected)
model changed.
model - the source of the event.selected - the new state
void enabledStateChanged(BasicButtonModel model,
boolean enabled)
model - the source of the event.enabled - the new enable state
void tooltipChanged(BasicButtonModel model,
String old,
String tooltip)
model - the source of the eventold - the old valuetooltip - the new value
void orientationChanged(BasicButtonModel model,
DockTitle.Orientation old,
DockTitle.Orientation orientation)
model - the source of the eventold - the old valueorientation - the new value
void mouseInside(BasicButtonModel model,
boolean mouseInside)
model - the source of the eventmouseInside - whether the mouse is inside or not
void mousePressed(BasicButtonModel model,
boolean mousePressed)
model - the source of the eventmousePressed - the state of the mouse
void backgroundChanged(BasicButtonModel model,
BackgroundPaint oldBackground,
BackgroundPaint newBackground)
model - the source of this eventoldBackground - the old background algorithm, can be nullnewBackground - the new background algorithm, can be null
void borderChanged(BasicButtonModel model,
String key,
BorderModifier oldBorder,
BorderModifier newBorder)
model - the source of this eventkey - the identifier of the borderoldBorder - the old border, can be nullnewBorder - the new border, can be null
void bound(BasicButtonModel model,
DockController controller)
controller was installed on model.
model - the source of this eventcontroller - the controller that was installed
void unbound(BasicButtonModel model,
DockController controller)
controller was uninstalled from model.
model - the source of this eventcontroller - the controller that was removedvoid triggered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||