|
||||||||||
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.terra.TerraRollupSkin
public class TerraRollupSkin
Rollup skin.
TODO Optimize this class by performing preferred size calculation in one pass.
Nested Class Summary | |
---|---|
protected class |
TerraRollupSkin.BulletImage
|
protected class |
TerraRollupSkin.ButtonImage
|
protected class |
TerraRollupSkin.CollapseImage
|
protected class |
TerraRollupSkin.ExpandImage
|
protected class |
TerraRollupSkin.RollupButton
|
protected class |
TerraRollupSkin.RollupButtonSkin
|
Nested classes/interfaces inherited from class pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Field Summary |
---|
Fields inherited from class pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraRollupSkin()
|
Method Summary | |
---|---|
void |
buttonPressed(Button button)
Called when a button is pressed. |
void |
componentInserted(Container container,
int index)
Called when a component has been inserted into a container's component sequence. |
void |
componentsRemoved(Container container,
int index,
Sequence<Component> components)
Called when components have been removed from a container's component sequence. |
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()
|
java.awt.Color |
getButtonColor()
|
boolean |
getFirstChildToggles()
|
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()
|
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(java.awt.Color buttonColor)
|
void |
setButtonColor(java.lang.String buttonColor)
|
void |
setFirstChildToggles(boolean firstChildToggles)
|
void |
setJustify(boolean justify)
|
void |
setSpacing(int spacing)
|
void |
uninstall()
Dissociates a skin from a component. |
Methods inherited from class pivot.wtk.skin.ContainerSkin |
---|
contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeColor, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, getPreferredSize, getWidth, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, 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 ContainerSkin
component
- The component to which the skin is being attached.public void uninstall()
Skin
uninstall
in interface Skin
uninstall
in class ContainerSkin
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
layout
in interface Skin
public java.awt.Color getButtonColor()
public void setButtonColor(java.awt.Color buttonColor)
public final void setButtonColor(java.lang.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 getFirstChildToggles()
public void setFirstChildToggles(boolean firstChildToggles)
public void componentInserted(Container container, int index)
ContainerListener
componentInserted
in interface ContainerListener
componentInserted
in class ContainerSkin
public void componentsRemoved(Container container, int index, Sequence<Component> components)
ContainerListener
componentsRemoved
in interface ContainerListener
componentsRemoved
in class ContainerSkin
public Vote previewExpandedChange(Rollup rollup)
RollupListener
previewExpandedChange
in interface RollupListener
public void expandedChangeVetoed(Rollup rollup, Vote reason)
RollupListener
expandedChangeVetoed
in interface RollupListener
public void expandedChanged(Rollup rollup)
RollupListener
expandedChanged
in interface RollupListener
public void buttonPressed(Button button)
ButtonPressListener
buttonPressed
in interface ButtonPressListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |