pivot.wtk.skin
Class LinkButtonSkin
java.lang.Object
pivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ButtonSkin
pivot.wtk.skin.LinkButtonSkin
- All Implemented Interfaces:
- ButtonListener, ButtonPressListener, ButtonStateListener, ComponentKeyListener, ComponentLayoutListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, Skin, Visual
- Direct Known Subclasses:
- TerraLinkButtonSkin
public abstract class LinkButtonSkin
- extends ButtonSkin
Abstract base class for link button skins.
- Author:
- gbrown
Method Summary |
boolean |
isFocusable()
By default, components are focusable. |
boolean |
mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
Called when a mouse button is clicked over a component. |
Methods inherited from class pivot.wtk.skin.ButtonSkin |
actionChanged, buttonDataChanged, buttonPressed, dataRendererChanged, enabledChanged, focusedChanged, groupChanged, install, layout, mouseOut, mouseOver, selectedKeyChanged, stateChanged, stateKeyChanged, toggleButtonChanged, triStateChanged, uninstall |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
cursorChanged, displayableChanged, getComponent, getHeight, getPreferredSize, getWidth, invalidateComponent, isOpaque, keyPressed, keyReleased, keyTyped, locationChanged, mouseDown, mouseMove, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, 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 pivot.wtk.Visual |
paint |
LinkButtonSkin
public LinkButtonSkin()
isFocusable
public boolean isFocusable()
- Description copied from class:
ComponentSkin
- By default, components are focusable.
- Specified by:
isFocusable
in interface Skin
- Overrides:
isFocusable
in class ComponentSkin
- Returns:
- false; link buttons are not focusable.
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.