org.apache.pivot.wtk.skin.terra
Class TerraAccordionSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.terra.TerraAccordionSkin
- All Implemented Interfaces:
- org.apache.pivot.wtk.AccordionAttributeListener, org.apache.pivot.wtk.AccordionListener, org.apache.pivot.wtk.AccordionSelectionListener, org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.ContainerListener, org.apache.pivot.wtk.ContainerMouseListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual
public class TerraAccordionSkin
- extends org.apache.pivot.wtk.skin.ContainerSkin
- implements org.apache.pivot.wtk.AccordionListener, org.apache.pivot.wtk.AccordionSelectionListener, org.apache.pivot.wtk.AccordionAttributeListener
Accordion skin.
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionListener |
org.apache.pivot.wtk.AccordionListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionSelectionListener |
org.apache.pivot.wtk.AccordionSelectionListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionAttributeListener |
org.apache.pivot.wtk.AccordionAttributeListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
org.apache.pivot.wtk.ContainerListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
org.apache.pivot.wtk.ContainerMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
org.apache.pivot.wtk.ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
org.apache.pivot.wtk.ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
org.apache.pivot.wtk.ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
org.apache.pivot.wtk.ComponentKeyListener.Adapter |
|
Method Summary |
int |
getBaseline(int width,
int height)
|
Color |
getBorderColor()
|
Color |
getButtonBackgroundColor()
|
Color |
getButtonColor()
|
Font |
getButtonFont()
|
org.apache.pivot.wtk.Insets |
getButtonPadding()
|
Color |
getDisabledButtonColor()
|
org.apache.pivot.wtk.Insets |
getPadding()
|
int |
getPreferredHeight(int width)
|
org.apache.pivot.wtk.Dimensions |
getPreferredSize()
|
int |
getPreferredWidth(int height)
|
int |
getSelectionChangeDuration()
|
int |
getSelectionChangeRate()
|
void |
headerDataChanged(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.wtk.Component component,
Object previousHeaderData)
|
void |
headerDataRendererChanged(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.wtk.Button.DataRenderer previousHeaderDataRenderer)
|
void |
install(org.apache.pivot.wtk.Component component)
|
boolean |
keyPressed(org.apache.pivot.wtk.Component component,
int keyCode,
org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
Key presses have no effect if the event has already been consumed. |
void |
layout()
|
void |
paint(Graphics2D graphics)
|
void |
panelInserted(org.apache.pivot.wtk.Accordion accordion,
int index)
|
void |
panelsRemoved(org.apache.pivot.wtk.Accordion accordion,
int index,
org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Component> removed)
|
org.apache.pivot.util.Vote |
previewSelectedIndexChange(org.apache.pivot.wtk.Accordion accordion,
int selectedIndex)
|
void |
selectedIndexChanged(org.apache.pivot.wtk.Accordion accordion,
int previousSelectedIndex)
|
void |
selectedIndexChangeVetoed(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.util.Vote reason)
|
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(org.apache.pivot.collections.Dictionary<String,?> buttonFont)
|
void |
setButtonFont(Font buttonFont)
|
void |
setButtonFont(String buttonFont)
|
void |
setButtonPadding(org.apache.pivot.collections.Dictionary<String,?> buttonPadding)
|
void |
setButtonPadding(org.apache.pivot.wtk.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(org.apache.pivot.collections.Dictionary<String,?> padding)
|
void |
setPadding(org.apache.pivot.wtk.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)
|
void |
tooltipTextChanged(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.wtk.Component component,
String previousTooltipText)
|
| 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 |
GRADIENT_BEVEL_THICKNESS
public static final int GRADIENT_BEVEL_THICKNESS
- See Also:
- Constant Field Values
TerraAccordionSkin
public TerraAccordionSkin()
setSize
public void setSize(int width,
int height)
- Specified by:
setSize in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
setSize in class org.apache.pivot.wtk.skin.ComponentSkin
install
public void install(org.apache.pivot.wtk.Component component)
- Specified by:
install in interface org.apache.pivot.wtk.Skin- Overrides:
install in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredWidth
public int getPreferredWidth(int height)
- Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredWidth in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredHeight
public int getPreferredHeight(int width)
- Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredHeight in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredSize
public org.apache.pivot.wtk.Dimensions getPreferredSize()
- Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.ComponentSkin
getBaseline
public int getBaseline(int width,
int height)
- Specified by:
getBaseline in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getBaseline in class org.apache.pivot.wtk.skin.ComponentSkin
layout
public void layout()
- Specified by:
layout in interface org.apache.pivot.wtk.Skin
paint
public void paint(Graphics2D graphics)
- Specified by:
paint in interface org.apache.pivot.wtk.Visual- Overrides:
paint in class org.apache.pivot.wtk.skin.ContainerSkin
getBorderColor
public Color getBorderColor()
setBorderColor
public void setBorderColor(Color borderColor)
setBorderColor
public final void setBorderColor(String borderColor)
getPadding
public org.apache.pivot.wtk.Insets getPadding()
setPadding
public void setPadding(org.apache.pivot.wtk.Insets padding)
setPadding
public final void setPadding(org.apache.pivot.collections.Dictionary<String,?> padding)
setPadding
public final void setPadding(int padding)
setPadding
public final void setPadding(Number padding)
setPadding
public final void setPadding(String padding)
getButtonFont
public Font getButtonFont()
setButtonFont
public void setButtonFont(Font buttonFont)
setButtonFont
public final void setButtonFont(String buttonFont)
setButtonFont
public final void setButtonFont(org.apache.pivot.collections.Dictionary<String,?> buttonFont)
getButtonColor
public Color getButtonColor()
setButtonColor
public void setButtonColor(Color buttonColor)
setButtonColor
public final void setButtonColor(String buttonColor)
setButtonColor
public final void setButtonColor(int buttonColor)
getDisabledButtonColor
public Color getDisabledButtonColor()
setDisabledButtonColor
public void setDisabledButtonColor(Color disabledButtonColor)
setDisabledButtonColor
public final void setDisabledButtonColor(String disabledButtonColor)
setDisabledButtonColor
public final void setDisabledButtonColor(int disabledButtonColor)
getButtonBackgroundColor
public Color getButtonBackgroundColor()
setButtonBackgroundColor
public void setButtonBackgroundColor(Color buttonBackgroundColor)
setButtonBackgroundColor
public final void setButtonBackgroundColor(String buttonBackgroundColor)
setButtonBackgroundColor
public final void setButtonBackgroundColor(int buttonBackgroundColor)
getButtonPadding
public org.apache.pivot.wtk.Insets getButtonPadding()
setButtonPadding
public void setButtonPadding(org.apache.pivot.wtk.Insets buttonPadding)
setButtonPadding
public final void setButtonPadding(org.apache.pivot.collections.Dictionary<String,?> buttonPadding)
setButtonPadding
public final void setButtonPadding(int buttonPadding)
setButtonPadding
public final void setButtonPadding(Number padding)
setButtonPadding
public final void setButtonPadding(String padding)
getSelectionChangeDuration
public int getSelectionChangeDuration()
setSelectionChangeDuration
public void setSelectionChangeDuration(int selectionChangeDuration)
getSelectionChangeRate
public int getSelectionChangeRate()
setSelectionChangeRate
public void setSelectionChangeRate(int selectionChangeRate)
keyPressed
public boolean keyPressed(org.apache.pivot.wtk.Component component,
int keyCode,
org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
- Key presses have no effect if the event has already been consumed.
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.
- Specified by:
keyPressed in interface org.apache.pivot.wtk.ComponentKeyListener- Overrides:
keyPressed in class org.apache.pivot.wtk.skin.ComponentSkin
- See Also:
Platform.getCommandModifier()
panelInserted
public void panelInserted(org.apache.pivot.wtk.Accordion accordion,
int index)
- Specified by:
panelInserted in interface org.apache.pivot.wtk.AccordionListener
panelsRemoved
public void panelsRemoved(org.apache.pivot.wtk.Accordion accordion,
int index,
org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Component> removed)
- Specified by:
panelsRemoved in interface org.apache.pivot.wtk.AccordionListener
headerDataRendererChanged
public void headerDataRendererChanged(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.wtk.Button.DataRenderer previousHeaderDataRenderer)
- Specified by:
headerDataRendererChanged in interface org.apache.pivot.wtk.AccordionListener
previewSelectedIndexChange
public org.apache.pivot.util.Vote previewSelectedIndexChange(org.apache.pivot.wtk.Accordion accordion,
int selectedIndex)
- Specified by:
previewSelectedIndexChange in interface org.apache.pivot.wtk.AccordionSelectionListener
selectedIndexChangeVetoed
public void selectedIndexChangeVetoed(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.util.Vote reason)
- Specified by:
selectedIndexChangeVetoed in interface org.apache.pivot.wtk.AccordionSelectionListener
selectedIndexChanged
public void selectedIndexChanged(org.apache.pivot.wtk.Accordion accordion,
int previousSelectedIndex)
- Specified by:
selectedIndexChanged in interface org.apache.pivot.wtk.AccordionSelectionListener
headerDataChanged
public void headerDataChanged(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.wtk.Component component,
Object previousHeaderData)
- Specified by:
headerDataChanged in interface org.apache.pivot.wtk.AccordionAttributeListener
tooltipTextChanged
public void tooltipTextChanged(org.apache.pivot.wtk.Accordion accordion,
org.apache.pivot.wtk.Component component,
String previousTooltipText)
- Specified by:
tooltipTextChanged in interface org.apache.pivot.wtk.AccordionAttributeListener