org.apache.pivot.wtk.skin
Class ExpanderSkin

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.ContainerSkin
          extended by org.apache.pivot.wtk.skin.ExpanderSkin
All Implemented Interfaces:
ComponentKeyListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ComponentTooltipListener, ConstrainedVisual, ContainerListener, ContainerMouseListener, ExpanderListener, Skin, Visual
Direct Known Subclasses:
TerraExpanderSkin

public abstract class ExpanderSkin
extends ContainerSkin
implements ExpanderListener

Abstract base class for expander skins.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin
ContainerSkin.IndexFocusTraversalPolicy
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ExpanderListener
ExpanderListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener
ContainerListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener
ContainerMouseListener.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
 
Constructor Summary
ExpanderSkin()
           
 
Method Summary
 void collapsibleChanged(Expander expander)
          Called when an expander's collapsible flag has changed.
 void contentChanged(Expander expander, Component previousContent)
          Called when an expander's content component has changed.
 void expandedChanged(Expander expander)
          Called when an expander's expanded state has changed.
 void expandedChangeVetoed(Expander expander, Vote reason)
          Called when an expanded change event has been vetoed.
 void install(Component component)
          Associates a skin with a component.
 Vote previewExpandedChange(Expander expander)
          Called to preview an expanded change event.
 void titleChanged(Expander expander, String previousTitle)
          Called when an expander's title has changed.
 
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, getPreferredHeight, getPreferredWidth, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint
 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getBaseline, getComponent, getHeight, getPreferredSize, getWidth, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, 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.Skin
layout
 

Constructor Detail

ExpanderSkin

public ExpanderSkin()
Method Detail

install

public void install(Component component)
Description copied from interface: Skin
Associates a skin with a component.

Specified by:
install in interface Skin
Overrides:
install in class ContainerSkin
Parameters:
component - The component to which the skin is being attached.

titleChanged

public void titleChanged(Expander expander,
                         String previousTitle)
Description copied from interface: ExpanderListener
Called when an expander's title has changed.

Specified by:
titleChanged in interface ExpanderListener

collapsibleChanged

public void collapsibleChanged(Expander expander)
Description copied from interface: ExpanderListener
Called when an expander's collapsible flag has changed.

Specified by:
collapsibleChanged in interface ExpanderListener

previewExpandedChange

public Vote previewExpandedChange(Expander expander)
Description copied from interface: ExpanderListener
Called to preview an expanded change event.

Specified by:
previewExpandedChange in interface ExpanderListener

expandedChangeVetoed

public void expandedChangeVetoed(Expander expander,
                                 Vote reason)
Description copied from interface: ExpanderListener
Called when an expanded change event has been vetoed.

Specified by:
expandedChangeVetoed in interface ExpanderListener

expandedChanged

public void expandedChanged(Expander expander)
Description copied from interface: ExpanderListener
Called when an expander's expanded state has changed.

Specified by:
expandedChanged in interface ExpanderListener

contentChanged

public void contentChanged(Expander expander,
                           Component previousContent)
Description copied from interface: ExpanderListener
Called when an expander's content component has changed.

Specified by:
contentChanged in interface ExpanderListener