|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ButtonSkin
public abstract class ButtonSkin
Abstract base class for button skins.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ButtonListener |
---|
ButtonListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
---|
ComponentListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
---|
ComponentStateListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
---|
ComponentMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
---|
ComponentMouseButtonListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
---|
ComponentKeyListener.Adapter |
Field Summary | |
---|---|
protected boolean |
highlighted
|
Constructor Summary | |
---|---|
ButtonSkin()
|
Method Summary | |
---|---|
void |
actionChanged(Button button,
Action previousAction)
Called when a button's action has changed. |
void |
buttonDataChanged(Button button,
Object previousButtonData)
Called when a button's data has changed. |
void |
buttonGroupChanged(Button button,
ButtonGroup previousButtonGroup)
Called when a button's button group has changed. |
void |
buttonPressed(Button button)
Called when a button is pressed. |
void |
dataRendererChanged(Button button,
Button.DataRenderer previousDataRenderer)
Called when a button's data renderer has changed. |
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. |
void |
install(Component component)
Associates a skin with a component. |
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
void |
mouseOut(Component component)
Called when the mouse exits a component. |
void |
mouseOver(Component component)
Called when the mouse enters a component. |
void |
stateChanged(Button button,
Button.State previousState)
Called when a button's state has changed. |
void |
toggleButtonChanged(Button button)
Called when a button's toggle button flag has changed. |
void |
triStateChanged(Button button)
Called when a button's tri-state flag has changed. |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, getBaseline, getBaseline, getComponent, getHeight, getPreferredSize, getWidth, heightLimitsChanged, invalidateComponent, isFocusable, isOpaque, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
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.ConstrainedVisual |
---|
getPreferredHeight, getPreferredWidth |
Methods inherited from interface org.apache.pivot.wtk.Visual |
---|
paint |
Field Detail |
---|
protected boolean highlighted
Constructor Detail |
---|
public ButtonSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class ComponentSkin
component
- The component to which the skin is being attached.public void layout()
Skin
layout
in interface Skin
public void enabledChanged(Component component)
ComponentStateListener
Called both when the component is enabled and when it is disabled.
The component's enabled
flag has already been set when this
method is called so the new state can be determined by calling the
Component.isEnabled()
method.
enabledChanged
in interface ComponentStateListener
enabledChanged
in class ComponentSkin
component
- The component whose enabled state is changing.public void focusedChanged(Component component, Component obverseComponent)
ComponentStateListener
This will be called both when a component gains focus and when it loses
focus. The currently focused component has already been set when this method
is called, so that the new state of the component can be determined by calling
the Component.isFocused()
method.
focusedChanged
in interface ComponentStateListener
focusedChanged
in class ComponentSkin
component
- The component that is either gaining focus or the one that
previously had focus and is now losing it.obverseComponent
- If the component is gaining focus, this is the component
that is losing focus. If the component is losing focus
this is the component that is gaining the focus instead.public void mouseOver(Component component)
ComponentMouseListener
mouseOver
in interface ComponentMouseListener
mouseOver
in class ComponentSkin
public void mouseOut(Component component)
ComponentMouseListener
mouseOut
in interface ComponentMouseListener
mouseOut
in class ComponentSkin
public void buttonDataChanged(Button button, Object previousButtonData)
ButtonListener
buttonDataChanged
in interface ButtonListener
public void dataRendererChanged(Button button, Button.DataRenderer previousDataRenderer)
ButtonListener
dataRendererChanged
in interface ButtonListener
public void actionChanged(Button button, Action previousAction)
ButtonListener
actionChanged
in interface ButtonListener
public void toggleButtonChanged(Button button)
ButtonListener
toggleButtonChanged
in interface ButtonListener
public void triStateChanged(Button button)
ButtonListener
triStateChanged
in interface ButtonListener
public void buttonGroupChanged(Button button, ButtonGroup previousButtonGroup)
ButtonListener
buttonGroupChanged
in interface ButtonListener
public void stateChanged(Button button, Button.State previousState)
ButtonStateListener
stateChanged
in interface ButtonStateListener
public void buttonPressed(Button button)
ButtonPressListener
buttonPressed
in interface ButtonPressListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |