|
||||||||||
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.ContainerSkin
org.apache.pivot.wtk.skin.ExpanderSkin
org.apache.pivot.wtk.skin.terra.TerraExpanderSkin
public class TerraExpanderSkin
Terra expander skin.
Nested Class Summary | |
---|---|
protected class |
TerraExpanderSkin.ButtonImage
|
protected class |
TerraExpanderSkin.CollapseImage
|
protected class |
TerraExpanderSkin.ExpandImage
|
class |
TerraExpanderSkin.ExpandTransition
Expand/collapse transition. |
class |
TerraExpanderSkin.ShadeButton
Expander shade button component. |
class |
TerraExpanderSkin.ShadeButtonSkin
Expander shade button component skin. |
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 | |
---|---|
TerraExpanderSkin()
|
Method Summary | |
---|---|
void |
buttonPressed(Button button)
Listener for expander button events. |
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 |
enabledChanged(Component component)
Called when a component's enabled state 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. |
int |
getBaseline(int width,
int height)
Returns the baseline for a given width and height. |
Color |
getBorderColor()
|
Color |
getDisabledShadeButtonColor()
|
int |
getExpandDuration()
|
int |
getExpandRate()
|
Insets |
getPadding()
|
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
Dimensions |
getPreferredSize()
Returns the visual's unconstrained preferred size. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
Color |
getShadeButtonColor()
|
Color |
getTitleBarBackgroundColor()
|
Color |
getTitleBarBorderColor()
|
Color |
getTitleBarColor()
|
Font |
getTitleBarFont()
|
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 |
paint(Graphics2D graphics)
Paints the visual. |
Vote |
previewExpandedChange(Expander expander)
Called to preview an expanded change event. |
void |
setBorderColor(Color borderColor)
|
void |
setBorderColor(String borderColor)
|
void |
setExpandDuration(int expandDuration)
|
void |
setExpandRate(int expandRate)
|
void |
setPadding(Dictionary<String,?> padding)
|
void |
setPadding(Insets padding)
|
void |
setPadding(int padding)
|
void |
setPadding(Number padding)
|
void |
setPadding(String padding)
|
void |
setShadeButtonColor(Color shadeButtonColor)
|
void |
setShadeButtonColor(String shadeButtonColor)
|
void |
setTitleBarBackgroundColor(Color titleBarBackgroundColor)
|
void |
setTitleBarBackgroundColor(String titleBarBackgroundColor)
|
void |
setTitleBarBorderColor(Color titleBarBorderColor)
|
void |
setTitleBarBorderColor(String titleBarBorderColor)
|
void |
setTitleBarColor(Color titleBarColor)
|
void |
setTitleBarColor(String titleBarColor)
|
void |
setTitleBarFont(Dictionary<String,?> titleBarFont)
|
void |
setTitleBarFont(Font titleBarFont)
|
void |
setTitleBarFont(String titleBarFont)
|
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, 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 |
Constructor Detail |
---|
public TerraExpanderSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class ExpanderSkin
component
- The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth
in interface ConstrainedVisual
getPreferredWidth
in class ContainerSkin
height
- The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight
in interface ConstrainedVisual
getPreferredHeight
in class ContainerSkin
width
- The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize
in interface ConstrainedVisual
getPreferredSize
in class ComponentSkin
public int getBaseline(int width, int height)
ConstrainedVisual
getBaseline
in interface ConstrainedVisual
getBaseline
in class ComponentSkin
public void layout()
Skin
layout
in interface Skin
public void paint(Graphics2D graphics)
Visual
paint
in interface Visual
paint
in class ContainerSkin
graphics
- The graphics context in which to paint the visual.public Font getTitleBarFont()
public void setTitleBarFont(Font titleBarFont)
public final void setTitleBarFont(String titleBarFont)
public final void setTitleBarFont(Dictionary<String,?> titleBarFont)
public Color getTitleBarColor()
public void setTitleBarColor(Color titleBarColor)
public final void setTitleBarColor(String titleBarColor)
public Color getTitleBarBackgroundColor()
public void setTitleBarBackgroundColor(Color titleBarBackgroundColor)
public final void setTitleBarBackgroundColor(String titleBarBackgroundColor)
public Color getTitleBarBorderColor()
public void setTitleBarBorderColor(Color titleBarBorderColor)
public final void setTitleBarBorderColor(String titleBarBorderColor)
public Color getShadeButtonColor()
public void setShadeButtonColor(Color shadeButtonColor)
public final void setShadeButtonColor(String shadeButtonColor)
public Color getDisabledShadeButtonColor()
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public final void setBorderColor(String borderColor)
public Insets getPadding()
public void setPadding(Insets padding)
public final void setPadding(Dictionary<String,?> padding)
public final void setPadding(int padding)
public final void setPadding(Number padding)
public final void setPadding(String padding)
public int getExpandDuration()
public void setExpandDuration(int expandDuration)
public int getExpandRate()
public void setExpandRate(int expandRate)
public void buttonPressed(Button button)
buttonPressed
in interface ButtonPressListener
button
- The source of the button event.public void enabledChanged(Component component)
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 titleChanged(Expander expander, String previousTitle)
titleChanged
in interface ExpanderListener
titleChanged
in class ExpanderSkin
public void collapsibleChanged(Expander expander)
collapsibleChanged
in interface ExpanderListener
collapsibleChanged
in class ExpanderSkin
public Vote previewExpandedChange(Expander expander)
previewExpandedChange
in interface ExpanderListener
previewExpandedChange
in class ExpanderSkin
public void expandedChangeVetoed(Expander expander, Vote reason)
expandedChangeVetoed
in interface ExpanderListener
expandedChangeVetoed
in class ExpanderSkin
public void expandedChanged(Expander expander)
expandedChanged
in interface ExpanderListener
expandedChanged
in class ExpanderSkin
public void contentChanged(Expander expander, Component previousContent)
contentChanged
in interface ExpanderListener
contentChanged
in class ExpanderSkin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |