org.apache.pivot.wtk.skin.terra
Class TerraExpanderSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.ExpanderSkin
org.apache.pivot.wtk.skin.terra.TerraExpanderSkin
- All Implemented Interfaces:
- org.apache.pivot.wtk.ButtonPressListener, org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.ContainerListener, org.apache.pivot.wtk.ContainerMouseListener, org.apache.pivot.wtk.ExpanderListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual
public class TerraExpanderSkin
- extends org.apache.pivot.wtk.skin.ExpanderSkin
- implements org.apache.pivot.wtk.ButtonPressListener
Terra expander skin.
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ExpanderListener |
org.apache.pivot.wtk.ExpanderListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
org.apache.pivot.wtk.ContainerListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
org.apache.pivot.wtk.ContainerMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
org.apache.pivot.wtk.ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
org.apache.pivot.wtk.ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
org.apache.pivot.wtk.ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
org.apache.pivot.wtk.ComponentKeyListener.Adapter |
| Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
| Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, focusedChanged, getBaseline, getComponent, getHeight, 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 |
TerraExpanderSkin
public TerraExpanderSkin()
install
public void install(org.apache.pivot.wtk.Component component)
- Specified by:
install in interface org.apache.pivot.wtk.Skin- Overrides:
install in class org.apache.pivot.wtk.skin.ExpanderSkin
getPreferredWidth
public int getPreferredWidth(int height)
- Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredWidth in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredHeight
public int getPreferredHeight(int width)
- Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredHeight in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredSize
public org.apache.pivot.wtk.Dimensions getPreferredSize()
- Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.ComponentSkin
getBaseline
public int getBaseline(int width,
int height)
- Specified by:
getBaseline in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getBaseline in class org.apache.pivot.wtk.skin.ComponentSkin
layout
public void layout()
- Specified by:
layout in interface org.apache.pivot.wtk.Skin
paint
public void paint(Graphics2D graphics)
- Specified by:
paint in interface org.apache.pivot.wtk.Visual- Overrides:
paint in class org.apache.pivot.wtk.skin.ContainerSkin
getTitleBarFont
public Font getTitleBarFont()
setTitleBarFont
public void setTitleBarFont(Font titleBarFont)
setTitleBarFont
public final void setTitleBarFont(String titleBarFont)
setTitleBarFont
public final void setTitleBarFont(org.apache.pivot.collections.Dictionary<String,?> titleBarFont)
getTitleBarColor
public Color getTitleBarColor()
setTitleBarColor
public void setTitleBarColor(Color titleBarColor)
setTitleBarColor
public final void setTitleBarColor(String titleBarColor)
getTitleBarBackgroundColor
public Color getTitleBarBackgroundColor()
setTitleBarBackgroundColor
public void setTitleBarBackgroundColor(Color titleBarBackgroundColor)
setTitleBarBackgroundColor
public final void setTitleBarBackgroundColor(String titleBarBackgroundColor)
getTitleBarBorderColor
public Color getTitleBarBorderColor()
setTitleBarBorderColor
public void setTitleBarBorderColor(Color titleBarBorderColor)
setTitleBarBorderColor
public final void setTitleBarBorderColor(String titleBarBorderColor)
getShadeButtonColor
public Color getShadeButtonColor()
setShadeButtonColor
public void setShadeButtonColor(Color shadeButtonColor)
setShadeButtonColor
public final void setShadeButtonColor(String shadeButtonColor)
getDisabledShadeButtonColor
public Color getDisabledShadeButtonColor()
getBorderColor
public Color getBorderColor()
setBorderColor
public void setBorderColor(Color borderColor)
setBorderColor
public final void setBorderColor(String borderColor)
getPadding
public org.apache.pivot.wtk.Insets getPadding()
setPadding
public void setPadding(org.apache.pivot.wtk.Insets padding)
setPadding
public final void setPadding(org.apache.pivot.collections.Dictionary<String,?> padding)
setPadding
public final void setPadding(int padding)
setPadding
public final void setPadding(Number padding)
setPadding
public final void setPadding(String padding)
getExpandDuration
public int getExpandDuration()
setExpandDuration
public void setExpandDuration(int expandDuration)
getExpandRate
public int getExpandRate()
setExpandRate
public void setExpandRate(int expandRate)
buttonPressed
public void buttonPressed(org.apache.pivot.wtk.Button button)
- Listener for expander button events.
- Specified by:
buttonPressed in interface org.apache.pivot.wtk.ButtonPressListener
- Parameters:
button - The source of the button event.
enabledChanged
public void enabledChanged(org.apache.pivot.wtk.Component component)
-
- Specified by:
enabledChanged in interface org.apache.pivot.wtk.ComponentStateListener- Overrides:
enabledChanged in class org.apache.pivot.wtk.skin.ComponentSkin
titleChanged
public void titleChanged(org.apache.pivot.wtk.Expander expander,
String previousTitle)
-
- Specified by:
titleChanged in interface org.apache.pivot.wtk.ExpanderListener- Overrides:
titleChanged in class org.apache.pivot.wtk.skin.ExpanderSkin
collapsibleChanged
public void collapsibleChanged(org.apache.pivot.wtk.Expander expander)
-
- Specified by:
collapsibleChanged in interface org.apache.pivot.wtk.ExpanderListener- Overrides:
collapsibleChanged in class org.apache.pivot.wtk.skin.ExpanderSkin
previewExpandedChange
public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander expander)
-
- Specified by:
previewExpandedChange in interface org.apache.pivot.wtk.ExpanderListener- Overrides:
previewExpandedChange in class org.apache.pivot.wtk.skin.ExpanderSkin
expandedChangeVetoed
public void expandedChangeVetoed(org.apache.pivot.wtk.Expander expander,
org.apache.pivot.util.Vote reason)
-
- Specified by:
expandedChangeVetoed in interface org.apache.pivot.wtk.ExpanderListener- Overrides:
expandedChangeVetoed in class org.apache.pivot.wtk.skin.ExpanderSkin
expandedChanged
public void expandedChanged(org.apache.pivot.wtk.Expander expander)
-
- Specified by:
expandedChanged in interface org.apache.pivot.wtk.ExpanderListener- Overrides:
expandedChanged in class org.apache.pivot.wtk.skin.ExpanderSkin
contentChanged
public void contentChanged(org.apache.pivot.wtk.Expander expander,
org.apache.pivot.wtk.Component previousContent)
-
- Specified by:
contentChanged in interface org.apache.pivot.wtk.ExpanderListener- Overrides:
contentChanged in class org.apache.pivot.wtk.skin.ExpanderSkin