|
||||||||||
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.TerraTabPaneSkin
public class TerraTabPaneSkin
Tab pane skin.
Nested Class Summary | |
---|---|
class |
TerraTabPaneSkin.SelectionChangeTransition
Selection change transition. |
class |
TerraTabPaneSkin.TabButton
Tab button component. |
class |
TerraTabPaneSkin.TabButtonSkin
Tab button skin. |
Nested classes/interfaces inherited from class pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface pivot.wtk.TabPaneListener |
---|
TabPaneListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.TabPaneSelectionListener |
---|
TabPaneSelectionListener.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 | |
---|---|
protected FlowPane |
buttonFlowPane
|
protected Panorama |
buttonPanorama
|
static int |
GRADIENT_BEVEL_THICKNESS
|
Fields inherited from class pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraTabPaneSkin()
|
Method Summary | |
---|---|
void |
closeableChanged(TabPane tabPane,
Component component)
Called when a tab's closeable attribute has changed. |
void |
cornerChanged(TabPane tabPane,
Component previousCorner)
Called when a tab pane's corner component (the component in the free space next to the tabs) has changed. |
Color |
getActiveTabColor()
|
Color |
getBorderColor()
|
Color |
getButtonColor()
|
Font |
getButtonFont()
|
Insets |
getButtonPadding()
|
int |
getButtonSpacing()
|
Color |
getInactiveTabColor()
|
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. |
Orientation |
getTabOrientation()
|
void |
iconChanged(TabPane tabPane,
Component component,
Image previousIcon)
Called when a tab's icon attribute has changed. |
void |
install(Component component)
Associates a skin with a component. |
boolean |
isCollapsible()
|
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
void |
nameChanged(TabPane tabPane,
Component component,
String previousName)
Called when a tab's name attribute has changed. |
void |
paint(Graphics2D graphics)
Paints the visual. |
Vote |
previewSelectedIndexChange(TabPane tabPane,
int selectedIndex)
Called to preview a selected index change. |
void |
selectedIndexChanged(TabPane tabPane,
int previousSelectedIndex)
Called when a tab pane's selected index has changed. |
void |
selectedIndexChangeVetoed(TabPane tabPane,
Vote reason)
Called when a selected index change has been vetoed. |
void |
setActiveTabColor(Color activeTabColor)
|
void |
setActiveTabColor(String activeTabColor)
|
void |
setBorderColor(Color borderColor)
|
void |
setBorderColor(String borderColor)
|
void |
setButtonColor(Color buttonColor)
|
void |
setButtonColor(String buttonColor)
|
void |
setButtonFont(Font buttonFont)
|
void |
setButtonFont(String buttonFont)
|
void |
setButtonPadding(Insets buttonPadding)
|
void |
setButtonPadding(int buttonPadding)
|
void |
setButtonSpacing(int buttonSpacing)
|
void |
setCollapsible(boolean collapsible)
|
void |
setInactiveTabColor(Color inactiveTabColor)
|
void |
setInactiveTabColor(String inactiveTabColor)
|
void |
setPadding(Dictionary<String,?> padding)
|
void |
setPadding(Insets padding)
|
void |
setPadding(int padding)
|
void |
setPadding(Number padding)
|
void |
setTabOrientation(Orientation tabOrientation)
|
void |
setTabOrientation(String tabOrientation)
|
void |
tabInserted(TabPane tabPane,
int index)
Called when a tab has been inserted into a tab pane's tab sequence. |
void |
tabsRemoved(TabPane tabPane,
int index,
Sequence<Component> removed)
Called when a tab has been removed from a tab pane's tab sequence. |
void |
uninstall()
Dissociates a skin from a component. |
Methods inherited from class pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, 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 |
Field Detail |
---|
protected Panorama buttonPanorama
protected FlowPane buttonFlowPane
public static final int GRADIENT_BEVEL_THICKNESS
Constructor Detail |
---|
public TerraTabPaneSkin()
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 Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize
in interface ConstrainedVisual
getPreferredSize
in class ComponentSkin
public void layout()
Skin
layout
in interface Skin
public void paint(Graphics2D graphics)
Visual
paint
in interface Visual
paint
in class ContainerSkin
graphics
- The graphics context in which to paint the visual.public Color getActiveTabColor()
public void setActiveTabColor(Color activeTabColor)
public final void setActiveTabColor(String activeTabColor)
public Color getInactiveTabColor()
public void setInactiveTabColor(Color inactiveTabColor)
public final void setInactiveTabColor(String inactiveTabColor)
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 Font getButtonFont()
public void setButtonFont(Font buttonFont)
public final void setButtonFont(String buttonFont)
public Color getButtonColor()
public void setButtonColor(Color buttonColor)
public final void setButtonColor(String buttonColor)
public Insets getButtonPadding()
public void setButtonPadding(Insets buttonPadding)
public final void setButtonPadding(int buttonPadding)
public int getButtonSpacing()
public void setButtonSpacing(int buttonSpacing)
public Orientation getTabOrientation()
public void setTabOrientation(Orientation tabOrientation)
public void setTabOrientation(String tabOrientation)
public boolean isCollapsible()
public void setCollapsible(boolean collapsible)
public void tabInserted(TabPane tabPane, int index)
TabPaneListener
tabInserted
in interface TabPaneListener
public void tabsRemoved(TabPane tabPane, int index, Sequence<Component> removed)
TabPaneListener
tabsRemoved
in interface TabPaneListener
public void cornerChanged(TabPane tabPane, Component previousCorner)
TabPaneListener
cornerChanged
in interface TabPaneListener
public Vote previewSelectedIndexChange(TabPane tabPane, int selectedIndex)
TabPaneSelectionListener
previewSelectedIndexChange
in interface TabPaneSelectionListener
public void selectedIndexChangeVetoed(TabPane tabPane, Vote reason)
TabPaneSelectionListener
selectedIndexChangeVetoed
in interface TabPaneSelectionListener
public void selectedIndexChanged(TabPane tabPane, int previousSelectedIndex)
TabPaneSelectionListener
selectedIndexChanged
in interface TabPaneSelectionListener
public void nameChanged(TabPane tabPane, Component component, String previousName)
TabPaneAttributeListener
nameChanged
in interface TabPaneAttributeListener
public void iconChanged(TabPane tabPane, Component component, Image previousIcon)
TabPaneAttributeListener
iconChanged
in interface TabPaneAttributeListener
public void closeableChanged(TabPane tabPane, Component component)
TabPaneAttributeListener
closeableChanged
in interface TabPaneAttributeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |