|
||||||||||
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.RollupSkin
org.apache.pivot.wtk.skin.terra.TerraRollupSkin
public class TerraRollupSkin
Terra rollup skin.
Nested Class Summary | |
---|---|
class |
TerraRollupSkin.ExpandTransition
Expand/collapse transition. |
protected class |
TerraRollupSkin.RollupButton
Component that allows the user to expand and collapse the Rollup. |
protected class |
TerraRollupSkin.RollupButtonSkin
Skin for the rollup button. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.RollupListener |
---|
RollupListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.RollupStateListener |
---|
RollupStateListener.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 | |
---|---|
TerraRollupSkin()
|
Method Summary | |
---|---|
void |
collapsibleChanged(Rollup rollup)
Called when a rollup's collapsible flag has changed. |
void |
contentChanged(Rollup rollup,
Component previousContent)
Called when a rollup's content component changed. |
void |
expandedChanged(Rollup rollup)
Called when a rollup's expanded state changed. |
void |
expandedChangeVetoed(Rollup rollup,
Vote reason)
Called when a rollup expansion event has been vetoed. |
int |
getBaseline(int width,
int height)
Returns the baseline for a given width and height. |
int |
getBuffer()
|
Color |
getButtonColor()
|
Color |
getDisabledButtonColor()
|
int |
getExpandDuration()
|
int |
getExpandRate()
|
boolean |
getFill()
|
boolean |
getHeadingToggles()
|
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
int |
getSpacing()
|
void |
headingChanged(Rollup rollup,
Component previousHeading)
Called when a rollup's heading component 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. |
Vote |
previewExpandedChange(Rollup rollup)
Called to preview a rollup expansion event. |
void |
setBuffer(int buffer)
|
void |
setButtonColor(Color buttonColor)
|
void |
setButtonColor(int color)
|
void |
setButtonColor(String buttonColor)
|
void |
setDisabledButtonColor(Color buttonColor)
|
void |
setDisabledButtonColor(int color)
|
void |
setDisabledButtonColor(String buttonColor)
|
void |
setExpandDuration(int expandDuration)
|
void |
setExpandRate(int expandRate)
|
void |
setFill(boolean fill)
|
void |
setHeadingToggles(boolean headingToggles)
|
void |
setSpacing(int spacing)
|
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerraRollupSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class RollupSkin
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 int getBaseline(int width, int height)
ConstrainedVisual
getBaseline
in interface ConstrainedVisual
getBaseline
in class ComponentSkin
public void layout()
Skin
public Color getButtonColor()
public final void setButtonColor(int color)
public void setButtonColor(Color buttonColor)
public final void setButtonColor(String buttonColor)
public Color getDisabledButtonColor()
public final void setDisabledButtonColor(int color)
public void setDisabledButtonColor(Color buttonColor)
public final void setDisabledButtonColor(String buttonColor)
public int getSpacing()
public void setSpacing(int spacing)
public int getBuffer()
public void setBuffer(int buffer)
public boolean getFill()
public void setFill(boolean fill)
public boolean getHeadingToggles()
public void setHeadingToggles(boolean headingToggles)
public int getExpandDuration()
public void setExpandDuration(int expandDuration)
public int getExpandRate()
public void setExpandRate(int expandRate)
public void headingChanged(Rollup rollup, Component previousHeading)
RollupListener
public void contentChanged(Rollup rollup, Component previousContent)
RollupListener
public Vote previewExpandedChange(Rollup rollup)
RollupStateListener
previewExpandedChange
in interface RollupStateListener
previewExpandedChange
in class RollupSkin
public void expandedChangeVetoed(Rollup rollup, Vote reason)
RollupStateListener
expandedChangeVetoed
in interface RollupStateListener
expandedChangeVetoed
in class RollupSkin
public void expandedChanged(Rollup rollup)
RollupStateListener
public void collapsibleChanged(Rollup rollup)
RollupListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |