|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.TablePane
org.apache.pivot.wtk.content.MenuItemDataRenderer
public class MenuItemDataRenderer
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.Container |
|---|
Container.EDT_Checker |
| 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 |
|---|
org.apache.pivot.collections.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)
Prepares the renderer for layout or paint. |
void |
setSize(int width,
int height)
NOTE This method should only be called during layout. |
String |
toString(Object data)
Converts button data to a string representation. |
| Methods inherited from class org.apache.pivot.wtk.TablePane |
|---|
getCellComponent, getColumnAt, getColumnBounds, getColumns, getColumnSpan, getRowAt, getRowBounds, getRows, getRowSpan, getTablePaneAttributeListeners, getTablePaneListeners, remove, setColumnSpan, setRowSpan, setSkin |
| Methods inherited from class org.apache.pivot.wtk.Container |
|---|
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getLength, getNamedComponent, indexOf, insert, isAncestor, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setEventDispatchThreadChecker, setFocusTraversalPolicy, setParent, setVisible, store, transferFocus, update |
| 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 |
|---|
protected ImageView imageView
protected Label textLabel
protected Label keyboardShortcutLabel
| Constructor Detail |
|---|
public MenuItemDataRenderer()
| Method Detail |
|---|
public void setSize(int width,
int height)
ComponentComponent.setPreferredSize(int, int).
setSize in interface ConstrainedVisualsetSize in class Component
public void render(Object data,
Button button,
boolean highlighted)
Button.DataRenderer
render in interface Button.DataRendererdata - The data to render, or null if called to calculate preferred
height for skins that assume a fixed renderer height.button - The host component.highlighted - If true, the item is highlighted.public String toString(Object data)
Button.DataRenderer
toString in interface Button.DataRendererNote that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||