org.apache.pivot.wtk.skin
Class PushButtonSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ButtonSkin
org.apache.pivot.wtk.skin.PushButtonSkin
- All Implemented Interfaces:
- ButtonListener, ButtonPressListener, ButtonStateListener, ComponentKeyListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, Skin, Visual
- Direct Known Subclasses:
- TerraPushButtonSkin
public abstract class PushButtonSkin
- extends ButtonSkin
Abstract base class for push button skins.
Field Summary |
protected boolean |
pressed
|
Method Summary |
void |
enabledChanged(Component component)
Called when a component's enabled state has changed. |
void |
focusedChanged(Component component,
Component obverseComponent)
Called when a component's focused state has changed. |
boolean |
keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Called when a key has been pressed. |
boolean |
keyReleased(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Called when a key has been released. |
boolean |
mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
Called when a mouse button is clicked over a component. |
boolean |
mouseDown(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is pressed over a component. |
void |
mouseOut(Component component)
Called when the mouse exits a component. |
boolean |
mouseUp(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is released over a component. |
Methods inherited from class org.apache.pivot.wtk.skin.ButtonSkin |
actionChanged, buttonDataChanged, buttonGroupChanged, buttonPressed, dataRendererChanged, install, layout, mouseOver, selectedKeyChanged, stateChanged, stateKeyChanged, toggleButtonChanged, triStateChanged |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, getBaseline, getBaseline, getComponent, getHeight, getPreferredSize, getWidth, invalidateComponent, isFocusable, isOpaque, keyTyped, locationChanged, menuHandlerChanged, mouseMove, mouseWheel, parentChanged, preferredHeightLimitsChanged, preferredSizeChanged, preferredWidthLimitsChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.pivot.wtk.Visual |
paint |
pressed
protected boolean pressed
PushButtonSkin
public PushButtonSkin()
enabledChanged
public void enabledChanged(Component component)
- Description copied from interface:
ComponentStateListener
- Called when a component's enabled state has changed.
- Specified by:
enabledChanged
in interface ComponentStateListener
- Overrides:
enabledChanged
in class ButtonSkin
focusedChanged
public void focusedChanged(Component component,
Component obverseComponent)
- Description copied from interface:
ComponentStateListener
- Called when a component's focused state has changed.
- Specified by:
focusedChanged
in interface ComponentStateListener
- Overrides:
focusedChanged
in class ButtonSkin
mouseOut
public void mouseOut(Component component)
- Description copied from interface:
ComponentMouseListener
- Called when the mouse exits a component.
- Specified by:
mouseOut
in interface ComponentMouseListener
- Overrides:
mouseOut
in class ButtonSkin
mouseDown
public boolean mouseDown(Component component,
Mouse.Button button,
int x,
int y)
- Description copied from interface:
ComponentMouseButtonListener
- Called when a mouse button is pressed over a component.
- Specified by:
mouseDown
in interface ComponentMouseButtonListener
- Overrides:
mouseDown
in class ComponentSkin
- Returns:
- true to consume the event; false to allow it to
propagate.
mouseUp
public boolean mouseUp(Component component,
Mouse.Button button,
int x,
int y)
- Description copied from interface:
ComponentMouseButtonListener
- Called when a mouse button is released over a component.
- Specified by:
mouseUp
in interface ComponentMouseButtonListener
- Overrides:
mouseUp
in class ComponentSkin
- Returns:
- true to consume the event; false to allow it to
propagate.
mouseClick
public boolean mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
- Description copied from interface:
ComponentMouseButtonListener
- Called when a mouse button is clicked over a component.
- Specified by:
mouseClick
in interface ComponentMouseButtonListener
- Overrides:
mouseClick
in class ComponentSkin
- Returns:
- true to consume the event; false to allow it to
propagate.
keyPressed
public boolean keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
- Description copied from interface:
ComponentKeyListener
- Called when a key has been pressed.
- Specified by:
keyPressed
in interface ComponentKeyListener
- Overrides:
keyPressed
in class ComponentSkin
- Returns:
- true to consume the event; false to allow it to
propagate.
keyReleased
public boolean keyReleased(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
- Description copied from interface:
ComponentKeyListener
- Called when a key has been released.
- Specified by:
keyReleased
in interface ComponentKeyListener
- Overrides:
keyReleased
in class ComponentSkin
- Returns:
- true to consume the event; false to allow it to
propagate.