Package org.apache.pivot.wtk.skin
Class ExpanderSkin
- java.lang.Object
-
- org.apache.pivot.wtk.skin.ComponentSkin
-
- org.apache.pivot.wtk.skin.ContainerSkin
-
- 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.ComponentKeyListener
ComponentKeyListener.Adapter, ComponentKeyListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
ComponentListener.Adapter, ComponentListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
ComponentMouseButtonListener.Adapter, ComponentMouseButtonListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
ComponentMouseListener.Adapter, ComponentMouseListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseWheelListener
ComponentMouseWheelListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
ComponentStateListener.Adapter, ComponentStateListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentTooltipListener
ComponentTooltipListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener
ContainerListener.Adapter, ContainerListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener
ContainerMouseListener.Adapter, ContainerMouseListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ExpanderListener
ExpanderListener.Adapter, ExpanderListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description ExpanderSkin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.Vote
previewExpandedChange(Expander expander)
Called to preview an expanded change event.void
titleChanged(Expander expander, java.lang.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, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint
-
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
colorFromObject, colorFromObject, colorFromObject, colorFromObject, currentTheme, cursorChanged, decodeFont, defaultBackgroundColor, defaultForegroundColor, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, fontFromObject, getBaseline, getBaseline, getColor, getComponent, getFocusRectangleStroke, getHeight, getPreferredSize, getSize, getTextInputMethodListener, getThemeFont, getWidth, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setDefaultStyles, setSize, sizeChanged, themeHasThickFocusRectangle, themeHasTransitionEnabled, themeIsDark, themeIsFlat, 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
setSize
-
-
-
-
Method Detail
-
install
public void install(Component component)
Description copied from class:ComponentSkin
Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.- Specified by:
install
in interfaceSkin
- Overrides:
install
in classContainerSkin
- Parameters:
component
- The component to which the skin is being attached.
-
titleChanged
public void titleChanged(Expander expander, java.lang.String previousTitle)
Description copied from interface:ExpanderListener
Called when an expander's title has changed.- Specified by:
titleChanged
in interfaceExpanderListener
- Parameters:
expander
- The expander that has changed.previousTitle
- The previous title for the expander.
-
collapsibleChanged
public void collapsibleChanged(Expander expander)
Description copied from interface:ExpanderListener
Called when an expander's collapsible flag has changed.- Specified by:
collapsibleChanged
in interfaceExpanderListener
- Parameters:
expander
- The expander that has changed.
-
previewExpandedChange
public Vote previewExpandedChange(Expander expander)
Description copied from interface:ExpanderListener
Called to preview an expanded change event.- Specified by:
previewExpandedChange
in interfaceExpanderListener
- Parameters:
expander
- The expander that is about to expand or collapse.- Returns:
- The consensus vote as to whether to allow the change.
-
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 interfaceExpanderListener
- Parameters:
expander
- The expander that is not going to change.reason
- The consensus vote that disallowed the change.
-
expandedChanged
public void expandedChanged(Expander expander)
Description copied from interface:ExpanderListener
Called when an expander's expanded state has changed.- Specified by:
expandedChanged
in interfaceExpanderListener
- Parameters:
expander
- The expander that has now expanded or collapsed.
-
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 interfaceExpanderListener
- Parameters:
expander
- The expander that has changed content.previousContent
- The previous content of the expander.
-
-