|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.basic.action.BasicButtonModelAdapter
public class BasicButtonModelAdapter
A simple implementation of BasicButtonModelListener forwarding
any event to changed().
| Constructor Summary | |
|---|---|
BasicButtonModelAdapter()
|
|
| Method Summary | |
|---|---|
void |
backgroundChanged(BasicButtonModel model,
BackgroundPaint oldBackground,
BackgroundPaint newBackground)
Called when the background algorithm has been exchanged. |
void |
borderChanged(BasicButtonModel model,
java.lang.String key,
BorderModifier oldBorder,
BorderModifier newBorder)
Called when a border has changed. |
protected void |
changed()
Called by all methods except triggered() of this
adapter. |
void |
disabledIconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
Called if the disabled icon of model changed. |
void |
enabledStateChanged(BasicButtonModel model,
boolean enabled)
Called if the action was enabled or disabled. |
void |
iconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
Called if the 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 |
selectedDisabledIconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
Called if the selected disabled icon of model changed. |
void |
selectedIconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
Called if the selection icon of model changed. |
void |
selectedStateChanged(BasicButtonModel model,
boolean selected)
Called if the selection state of model changed. |
void |
tooltipChanged(BasicButtonModel model,
java.lang.String old,
java.lang.String tooltip)
Called if the tooltip of the action changed. |
void |
triggered()
Called if the user triggered the action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicButtonModelAdapter()
| Method Detail |
|---|
public void disabledIconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
BasicButtonModelListenermodel changed.
disabledIconChanged in interface BasicButtonModelListenermodel - the source of the event.oldIcon - the old valueicon - the new value
public void enabledStateChanged(BasicButtonModel model,
boolean enabled)
BasicButtonModelListener
enabledStateChanged in interface BasicButtonModelListenermodel - the source of the event.enabled - the new enable state
public void iconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
BasicButtonModelListenermodel changed.
iconChanged in interface BasicButtonModelListenermodel - the source of the event.oldIcon - the old valueicon - the new value
public void mouseInside(BasicButtonModel model,
boolean mouseInside)
BasicButtonModelListener
mouseInside in interface BasicButtonModelListenermodel - the source of the eventmouseInside - whether the mouse is inside or not
public void mousePressed(BasicButtonModel model,
boolean mousePressed)
BasicButtonModelListener
mousePressed in interface BasicButtonModelListenermodel - the source of the eventmousePressed - the state of the mouse
public void orientationChanged(BasicButtonModel model,
DockTitle.Orientation old,
DockTitle.Orientation orientation)
BasicButtonModelListener
orientationChanged in interface BasicButtonModelListenermodel - the source of the eventold - the old valueorientation - the new value
public void selectedDisabledIconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
BasicButtonModelListenermodel changed.
selectedDisabledIconChanged in interface BasicButtonModelListenermodel - the source of the event.oldIcon - the old valueicon - the new value
public void selectedIconChanged(BasicButtonModel model,
javax.swing.Icon oldIcon,
javax.swing.Icon icon)
BasicButtonModelListenermodel changed.
selectedIconChanged in interface BasicButtonModelListenermodel - the source of the event.oldIcon - the old valueicon - the new value
public void selectedStateChanged(BasicButtonModel model,
boolean selected)
BasicButtonModelListenermodel changed.
selectedStateChanged in interface BasicButtonModelListenermodel - the source of the event.selected - the new state
public void tooltipChanged(BasicButtonModel model,
java.lang.String old,
java.lang.String tooltip)
BasicButtonModelListener
tooltipChanged in interface BasicButtonModelListenermodel - the source of the eventold - the old valuetooltip - the new value
public void backgroundChanged(BasicButtonModel model,
BackgroundPaint oldBackground,
BackgroundPaint newBackground)
BasicButtonModelListener
backgroundChanged in interface BasicButtonModelListenermodel - the source of this eventoldBackground - the old background algorithm, can be nullnewBackground - the new background algorithm, can be null
public void borderChanged(BasicButtonModel model,
java.lang.String key,
BorderModifier oldBorder,
BorderModifier newBorder)
BasicButtonModelListener
borderChanged 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 triggered()
BasicButtonModelListener
triggered in interface BasicButtonModelListenerprotected void changed()
triggered() of this
adapter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||