|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ContainerSkin
pivot.wtk.skin.RollupSkin
pivot.wtk.skin.terra.TerraRollupSkin
public class TerraRollupSkin
Terra theme's rollup skin.
Nested Class Summary | |
---|---|
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 pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface pivot.wtk.RollupStateListener |
---|
RollupStateListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentListener |
---|
ComponentListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentStateListener |
---|
ComponentStateListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentMouseListener |
---|
ComponentMouseListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentMouseButtonListener |
---|
ComponentMouseButtonListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentKeyListener |
---|
ComponentKeyListener.Adapter |
Field Summary |
---|
Fields inherited from class pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraRollupSkin()
|
Method Summary | |
---|---|
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 |
getBuffer()
|
Color |
getButtonColor()
|
boolean |
getHeadingToggles()
|
boolean |
getJustify()
|
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()
|
boolean |
getUseBullet()
|
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(String buttonColor)
|
void |
setHeadingToggles(boolean headingToggles)
|
void |
setJustify(boolean justify)
|
void |
setSpacing(int spacing)
|
void |
setUseBullet(boolean useBullet)
|
void |
uninstall()
Dissociates a skin from a component. |
Methods inherited from class pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, getPreferredSize, getWidth, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
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 void uninstall()
Skin
uninstall
in interface Skin
uninstall
in class RollupSkin
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 void layout()
Skin
public Color getButtonColor()
public void setButtonColor(Color buttonColor)
public final void setButtonColor(String buttonColor)
public int getSpacing()
public void setSpacing(int spacing)
public int getBuffer()
public void setBuffer(int buffer)
public boolean getJustify()
public void setJustify(boolean justify)
public boolean getHeadingToggles()
public void setHeadingToggles(boolean headingToggles)
public boolean getUseBullet()
public void setUseBullet(boolean useBullet)
public void headingChanged(Rollup rollup, Component previousHeading)
RollupListener
headingChanged
in interface RollupListener
headingChanged
in class RollupSkin
public void contentChanged(Rollup rollup, Component previousContent)
RollupListener
contentChanged
in interface RollupListener
contentChanged
in class RollupSkin
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
expandedChanged
in interface RollupStateListener
expandedChanged
in class RollupSkin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |