|
||||||||||
| 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.terra.TerraAccordionSkin
public class TerraAccordionSkin
Accordion skin.
| Nested Class Summary | |
|---|---|
protected class |
TerraAccordionSkin.PanelHeader
|
protected class |
TerraAccordionSkin.PanelHeaderSkin
|
class |
TerraAccordionSkin.SelectionChangeTransition
|
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
|---|
ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionListener |
|---|
AccordionListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionSelectionListener |
|---|
AccordionSelectionListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionAttributeListener |
|---|
AccordionAttributeListener.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 |
| Field Summary | |
|---|---|
static int |
GRADIENT_BEVEL_THICKNESS
|
| Constructor Summary | |
|---|---|
TerraAccordionSkin()
|
|
| Method Summary | |
|---|---|
int |
getBaseline(int width,
int height)
Returns the baseline for a given width and height. |
Color |
getBorderColor()
|
Color |
getButtonBackgroundColor()
|
Color |
getButtonColor()
|
Font |
getButtonFont()
|
Insets |
getButtonPadding()
|
Color |
getDisabledButtonColor()
|
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. |
int |
getSelectionChangeDuration()
|
int |
getSelectionChangeRate()
|
void |
headerDataChanged(Accordion accordion,
Component component,
Object previousHeaderData)
Called when a panel's header data attribute has changed. |
void |
headerDataRendererChanged(Accordion accordion,
Button.DataRenderer previousHeaderDataRenderer)
Called when an accordion's header data renderer has changed. |
void |
install(Component component)
Associates a skin with a component. |
boolean |
keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Key presses have no effect if the event has already been consumed. |
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. |
void |
panelInserted(Accordion accordion,
int index)
Called when a panel has been inserted into a accordion's panel sequence. |
void |
panelsRemoved(Accordion accordion,
int index,
Sequence<Component> removed)
Called when a panel has been removed from an accordion's panel sequence. |
Vote |
previewSelectedIndexChange(Accordion accordion,
int selectedIndex)
Called to preview a selected index change. |
void |
selectedIndexChanged(Accordion accordion,
int previousSelectedIndex)
Called when an accordion's selected index has changed. |
void |
selectedIndexChangeVetoed(Accordion accordion,
Vote reason)
Called when a selected index change has been vetoed. |
void |
setBorderColor(Color borderColor)
|
void |
setBorderColor(String borderColor)
|
void |
setButtonBackgroundColor(Color buttonBackgroundColor)
|
void |
setButtonBackgroundColor(int buttonBackgroundColor)
|
void |
setButtonBackgroundColor(String buttonBackgroundColor)
|
void |
setButtonColor(Color buttonColor)
|
void |
setButtonColor(int buttonColor)
|
void |
setButtonColor(String buttonColor)
|
void |
setButtonFont(Dictionary<String,?> buttonFont)
|
void |
setButtonFont(Font buttonFont)
|
void |
setButtonFont(String buttonFont)
|
void |
setButtonPadding(Dictionary<String,?> buttonPadding)
|
void |
setButtonPadding(Insets buttonPadding)
|
void |
setButtonPadding(int buttonPadding)
|
void |
setButtonPadding(Number padding)
|
void |
setButtonPadding(String padding)
|
void |
setDisabledButtonColor(Color disabledButtonColor)
|
void |
setDisabledButtonColor(int disabledButtonColor)
|
void |
setDisabledButtonColor(String disabledButtonColor)
|
void |
setPadding(Dictionary<String,?> padding)
|
void |
setPadding(Insets padding)
|
void |
setPadding(int padding)
|
void |
setPadding(Number padding)
|
void |
setPadding(String padding)
|
void |
setSelectionChangeDuration(int selectionChangeDuration)
|
void |
setSelectionChangeRate(int selectionChangeRate)
|
void |
setSize(int width,
int height)
Sets the visual's render size. |
void |
tooltipTextChanged(Accordion accordion,
Component component,
String previousTooltipText)
Called when a panel's tooltip text 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, enabledChanged, focusedChanged, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GRADIENT_BEVEL_THICKNESS
| Constructor Detail |
|---|
public TerraAccordionSkin()
| Method Detail |
|---|
public void setSize(int width,
int height)
ConstrainedVisual
setSize in interface ConstrainedVisualsetSize in class ComponentSkinpublic void install(Component component)
Skin
install in interface Skininstall in class ContainerSkincomponent - The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth in interface ConstrainedVisualgetPreferredWidth in class ContainerSkinheight - The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight in interface ConstrainedVisualgetPreferredHeight in class ContainerSkinwidth - The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize in interface ConstrainedVisualgetPreferredSize in class ComponentSkin
public int getBaseline(int width,
int height)
ConstrainedVisual
getBaseline in interface ConstrainedVisualgetBaseline in class ComponentSkinpublic void layout()
Skin
layout in interface Skinpublic void paint(Graphics2D graphics)
Visual
paint in interface Visualpaint in class ContainerSkingraphics - The graphics context in which to paint the visual.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 Font getButtonFont()
public void setButtonFont(Font buttonFont)
public final void setButtonFont(String buttonFont)
public final void setButtonFont(Dictionary<String,?> buttonFont)
public Color getButtonColor()
public void setButtonColor(Color buttonColor)
public final void setButtonColor(String buttonColor)
public final void setButtonColor(int buttonColor)
public Color getDisabledButtonColor()
public void setDisabledButtonColor(Color disabledButtonColor)
public final void setDisabledButtonColor(String disabledButtonColor)
public final void setDisabledButtonColor(int disabledButtonColor)
public Color getButtonBackgroundColor()
public void setButtonBackgroundColor(Color buttonBackgroundColor)
public final void setButtonBackgroundColor(String buttonBackgroundColor)
public final void setButtonBackgroundColor(int buttonBackgroundColor)
public Insets getButtonPadding()
public void setButtonPadding(Insets buttonPadding)
public final void setButtonPadding(Dictionary<String,?> buttonPadding)
public final void setButtonPadding(int buttonPadding)
public final void setButtonPadding(Number padding)
public final void setButtonPadding(String padding)
public int getSelectionChangeDuration()
public void setSelectionChangeDuration(int selectionChangeDuration)
public int getSelectionChangeRate()
public void setSelectionChangeRate(int selectionChangeRate)
public boolean keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
CommandModifier + KEYPAD_1 to
KEYPAD_9
or CommandModifier +
1 to 9 Select the (enabled) pane at
index 0 to 8 respectively
ALT + UP Select the next enabled
panel.
ALT + DOWN Select the previous
enabled panel.
keyPressed in interface ComponentKeyListenerkeyPressed in class ComponentSkinPlatform.getCommandModifier()
public void panelInserted(Accordion accordion,
int index)
AccordionListener
panelInserted in interface AccordionListener
public void panelsRemoved(Accordion accordion,
int index,
Sequence<Component> removed)
AccordionListener
panelsRemoved in interface AccordionListener
public void headerDataRendererChanged(Accordion accordion,
Button.DataRenderer previousHeaderDataRenderer)
AccordionListener
headerDataRendererChanged in interface AccordionListener
public Vote previewSelectedIndexChange(Accordion accordion,
int selectedIndex)
AccordionSelectionListener
previewSelectedIndexChange in interface AccordionSelectionListeneraccordion - The source of the event.selectedIndex - The index that will be selected.
public void selectedIndexChangeVetoed(Accordion accordion,
Vote reason)
AccordionSelectionListener
selectedIndexChangeVetoed in interface AccordionSelectionListeneraccordion - The source of the event.reason - The reason the event was vetoed.
public void selectedIndexChanged(Accordion accordion,
int previousSelectedIndex)
AccordionSelectionListener
selectedIndexChanged in interface AccordionSelectionListeneraccordion - The source of the event.previousSelectedIndex - If the selection changed directly, contains the index that was previously
selected. Otherwise, contains the current selection.
public void headerDataChanged(Accordion accordion,
Component component,
Object previousHeaderData)
AccordionAttributeListener
headerDataChanged in interface AccordionAttributeListener
public void tooltipTextChanged(Accordion accordion,
Component component,
String previousTooltipText)
AccordionAttributeListener
tooltipTextChanged in interface AccordionAttributeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||