org.apache.pivot.wtk.skin.terra
Class TerraMenuPopupSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.WindowSkin
org.apache.pivot.wtk.skin.terra.TerraMenuPopupSkin
- 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.MenuPopupListener, org.apache.pivot.wtk.MenuPopupStateListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual, org.apache.pivot.wtk.Window.Skin, org.apache.pivot.wtk.WindowListener, org.apache.pivot.wtk.WindowStateListener
public class TerraMenuPopupSkin
- extends org.apache.pivot.wtk.skin.WindowSkin
- implements org.apache.pivot.wtk.MenuPopupListener, org.apache.pivot.wtk.MenuPopupStateListener
Menu popup skin.
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.WindowSkin |
org.apache.pivot.wtk.skin.WindowSkin.WindowFocusTraversalPolicy |
| 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.MenuPopupStateListener |
org.apache.pivot.wtk.MenuPopupStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowListener |
org.apache.pivot.wtk.WindowListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowStateListener |
org.apache.pivot.wtk.WindowStateListener.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 |
| Methods inherited from class org.apache.pivot.wtk.skin.WindowSkin |
activeChanged, contentChanged, getClientArea, getPreferredHeight, getPreferredSize, getPreferredWidth, iconAdded, iconInserted, iconsRemoved, layout, maximizedChanged, mouseDown, previewWindowClose, previewWindowOpen, titleChanged, windowCloseVetoed, windowOpenVetoed |
| Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, 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, 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 |
| Methods inherited from interface org.apache.pivot.wtk.Skin |
getComponent, isFocusable, isOpaque |
| Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual |
getBaseline, setSize |
| Methods inherited from interface org.apache.pivot.wtk.Visual |
getBaseline, getHeight, getWidth, paint |
TerraMenuPopupSkin
public TerraMenuPopupSkin()
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.WindowSkin
getBorderColor
public Color getBorderColor()
setBorderColor
public void setBorderColor(Color borderColor)
setBorderColor
public void setBorderColor(String borderColor)
getCloseTransitionDuration
public int getCloseTransitionDuration()
setCloseTransitionDuration
public void setCloseTransitionDuration(int closeTransitionDuration)
getCloseTransitionRate
public int getCloseTransitionRate()
setCloseTransitionRate
public void setCloseTransitionRate(int closeTransitionRate)
keyPressed
public boolean keyPressed(org.apache.pivot.wtk.Component component,
int keyCode,
org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
ESCAPE Close the menu popup.
- Specified by:
keyPressed in interface org.apache.pivot.wtk.ComponentKeyListener- Overrides:
keyPressed in class org.apache.pivot.wtk.skin.ComponentSkin
windowOpened
public void windowOpened(org.apache.pivot.wtk.Window window)
- Specified by:
windowOpened in interface org.apache.pivot.wtk.WindowStateListener- Overrides:
windowOpened in class org.apache.pivot.wtk.skin.WindowSkin
windowClosed
public void windowClosed(org.apache.pivot.wtk.Window window,
org.apache.pivot.wtk.Display display,
org.apache.pivot.wtk.Window owner)
- Specified by:
windowClosed in interface org.apache.pivot.wtk.WindowStateListener- Overrides:
windowClosed in class org.apache.pivot.wtk.skin.WindowSkin
menuChanged
public void menuChanged(org.apache.pivot.wtk.MenuPopup menuPopup,
org.apache.pivot.wtk.Menu previousMenu)
- Specified by:
menuChanged in interface org.apache.pivot.wtk.MenuPopupListener
previewMenuPopupClose
public org.apache.pivot.util.Vote previewMenuPopupClose(org.apache.pivot.wtk.MenuPopup menuPopup,
boolean immediate)
- Specified by:
previewMenuPopupClose in interface org.apache.pivot.wtk.MenuPopupStateListener
menuPopupCloseVetoed
public void menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup menuPopup,
org.apache.pivot.util.Vote reason)
- Specified by:
menuPopupCloseVetoed in interface org.apache.pivot.wtk.MenuPopupStateListener
menuPopupClosed
public void menuPopupClosed(org.apache.pivot.wtk.MenuPopup menuPopup)
- Specified by:
menuPopupClosed in interface org.apache.pivot.wtk.MenuPopupStateListener