org.apache.pivot.wtk.skin.terra
Class TerraMenuBarSkin

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.ContainerSkin
          extended by org.apache.pivot.wtk.skin.terra.TerraMenuBarSkin
All Implemented Interfaces:
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.MenuBarListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual

public class TerraMenuBarSkin
extends org.apache.pivot.wtk.skin.ContainerSkin
implements org.apache.pivot.wtk.MenuBarListener

Menu bar skin.


Nested Class Summary
 
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.MenuBarListener
org.apache.pivot.wtk.MenuBarListener.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
 
Constructor Summary
TerraMenuBarSkin()
           
 
Method Summary
 void activeItemChanged(org.apache.pivot.wtk.MenuBar menuBar, org.apache.pivot.wtk.MenuBar.Item previousActiveItem)
           
 Color getActiveBackgroundColor()
           
 Color getActiveColor()
           
 Color getColor()
           
 Color getDisabledColor()
           
 Font getFont()
           
 int getPreferredHeight(int width)
           
 org.apache.pivot.wtk.Dimensions getPreferredSize()
           
 int getPreferredWidth(int height)
           
 int getSpacing()
           
 void install(org.apache.pivot.wtk.Component component)
           
 void itemInserted(org.apache.pivot.wtk.MenuBar menuBar, int index)
           
 void itemsRemoved(org.apache.pivot.wtk.MenuBar menuBar, int index, org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.MenuBar.Item> removed)
           
 void layout()
           
 void setActiveBackgroundColor(Color activeBackgroundColor)
           
 void setActiveBackgroundColor(int color)
           
 void setActiveBackgroundColor(String activeBackgroundColor)
           
 void setActiveColor(Color activeColor)
           
 void setActiveColor(int color)
           
 void setActiveColor(String activeColor)
           
 void setBackgroundColor(int color)
           
 void setColor(Color color)
           
 void setColor(int color)
           
 void setColor(String color)
           
 void setDisabledColor(Color disabledColor)
           
 void setDisabledColor(int color)
           
 void setDisabledColor(String disabledColor)
           
 void setFont(org.apache.pivot.collections.Dictionary<String,?> font)
           
 void setFont(Font font)
           
 void setFont(String font)
           
 void setSpacing(int spacing)
           
 
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint
 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerraMenuBarSkin

public TerraMenuBarSkin()
Method Detail

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

layout

public void layout()
Specified by:
layout in interface org.apache.pivot.wtk.Skin

setBackgroundColor

public final void setBackgroundColor(int color)

getFont

public Font getFont()

setFont

public void setFont(Font font)

setFont

public final void setFont(String font)

setFont

public final void setFont(org.apache.pivot.collections.Dictionary<String,?> font)

getColor

public Color getColor()

setColor

public void setColor(Color color)

setColor

public final void setColor(String color)

setColor

public final void setColor(int color)

getDisabledColor

public Color getDisabledColor()

setDisabledColor

public void setDisabledColor(Color disabledColor)

setDisabledColor

public final void setDisabledColor(String disabledColor)

setDisabledColor

public final void setDisabledColor(int color)

getActiveColor

public Color getActiveColor()

setActiveColor

public void setActiveColor(Color activeColor)

setActiveColor

public final void setActiveColor(String activeColor)

setActiveColor

public final void setActiveColor(int color)

getActiveBackgroundColor

public Color getActiveBackgroundColor()

setActiveBackgroundColor

public void setActiveBackgroundColor(Color activeBackgroundColor)

setActiveBackgroundColor

public final void setActiveBackgroundColor(String activeBackgroundColor)

setActiveBackgroundColor

public final void setActiveBackgroundColor(int color)

getSpacing

public int getSpacing()

setSpacing

public void setSpacing(int spacing)

itemInserted

public void itemInserted(org.apache.pivot.wtk.MenuBar menuBar,
                         int index)
Specified by:
itemInserted in interface org.apache.pivot.wtk.MenuBarListener

itemsRemoved

public void itemsRemoved(org.apache.pivot.wtk.MenuBar menuBar,
                         int index,
                         org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.MenuBar.Item> removed)
Specified by:
itemsRemoved in interface org.apache.pivot.wtk.MenuBarListener

activeItemChanged

public void activeItemChanged(org.apache.pivot.wtk.MenuBar menuBar,
                              org.apache.pivot.wtk.MenuBar.Item previousActiveItem)
Specified by:
activeItemChanged in interface org.apache.pivot.wtk.MenuBarListener