org.apache.pivot.wtk.content
Class MenuItemDataRenderer

java.lang.Object
  extended by org.apache.pivot.wtk.Component
      extended by org.apache.pivot.wtk.Container
          extended by org.apache.pivot.wtk.TablePane
              extended by org.apache.pivot.wtk.content.MenuItemDataRenderer
All Implemented Interfaces:
Iterable<Component>, Sequence<Component>, Button.DataRenderer, ConstrainedVisual, Renderer, Visual

public class MenuItemDataRenderer
extends TablePane
implements Button.DataRenderer

Default menu item data renderer.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.TablePane
TablePane.Column, TablePane.ColumnSequence, TablePane.Filler, TablePane.Row, TablePane.RowSequence, TablePane.Skin
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree<T>
 
Field Summary
protected  ImageView imageView
           
protected  Label keyboardShortcutLabel
           
protected  Label textLabel
           
 
Fields inherited from class org.apache.pivot.wtk.TablePane
RELATIVE_SIZE_INDICATOR
 
Constructor Summary
MenuItemDataRenderer()
           
 
Method Summary
 void render(Object data, Button button, boolean highlighted)
           
 void setSize(int width, int height)
          NOTE This method should only be called during layout.
 
Methods inherited from class org.apache.pivot.wtk.TablePane
getCellComponent, getColumnAt, getColumnBounds, getColumns, getColumnSpan, getRowAt, getRowBounds, getRows, getRowSpan, getTablePaneAttributeListeners, getTablePaneListeners, remove, setCellComponent, setColumnSpan, setRowSpan, setSkin
 
Methods inherited from class org.apache.pivot.wtk.Container
add, clear, containsFocus, descendantAdded, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setContextKey, setFocusTraversalPolicy, setParent, setVisible, store, transferFocus, update
 
Methods inherited from class org.apache.pivot.wtk.Component
clearFocus, getAttributes, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHeight, getLocation, getMaximumPreferredHeight, getMaximumPreferredWidth, getMenuHandler, getMinimumPreferredHeight, getMinimumPreferredWidth, getParent, getPreferredHeight, getPreferredHeight, getPreferredHeightLimits, getPreferredSize, getPreferredWidth, getPreferredWidth, getPreferredWidthLimits, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installThemeSkin, invalidate, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, load, mapPointFromAncestor, mapPointToAncestor, mouseOver, reenterMouse, repaint, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setAutomationID, setCursor, setCursor, setDragSource, setDropTarget, setEnabled, setHeight, setLocation, setLocation, setMaximumPreferredHeight, setMaximumPreferredWidth, setMenuHandler, setMinimumPreferredHeight, setMinimumPreferredWidth, setPreferredHeight, setPreferredHeightLimits, setPreferredHeightLimits, setPreferredSize, setPreferredSize, setPreferredWidth, setPreferredWidthLimits, setPreferredWidthLimits, setSize, setStyles, setStyles, setStyles, setTooltipText, setWidth, setX, setY, store, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.pivot.wtk.Renderer
getStyles
 
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual
getBaseline, getPreferredHeight, getPreferredSize, getPreferredWidth
 
Methods inherited from interface org.apache.pivot.wtk.Visual
getBaseline, getHeight, getWidth, paint
 

Field Detail

imageView

protected ImageView imageView

textLabel

protected Label textLabel

keyboardShortcutLabel

protected Label keyboardShortcutLabel
Constructor Detail

MenuItemDataRenderer

public MenuItemDataRenderer()
Method Detail

setSize

public void setSize(int width,
                    int height)
Description copied from class: Component
NOTE This method should only be called during layout. Callers should use Component.setPreferredSize(int, int).

Specified by:
setSize in interface ConstrainedVisual
Overrides:
setSize in class Component

render

public void render(Object data,
                   Button button,
                   boolean highlighted)
Specified by:
render in interface Button.DataRenderer