|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.Component
pivot.wtk.Container
pivot.wtk.FlowPane
pivot.wtk.content.ListViewItemRenderer
pivot.wtk.content.ListViewColorRenderer
public class ListViewColorRenderer
List view renderer for displaying color swatches.
Nested Class Summary | |
---|---|
static class |
ListViewColorRenderer.ColorBadge
Internal image class for rendering color swatches. |
Nested classes/interfaces inherited from class pivot.wtk.Component |
---|
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Field Summary |
---|
Fields inherited from class pivot.wtk.content.ListViewItemRenderer |
---|
DEFAULT_ICON_HEIGHT, DEFAULT_ICON_WIDTH, DEFAULT_SHOW_ICON, imageView, label |
Constructor Summary | |
---|---|
ListViewColorRenderer()
|
Method Summary | |
---|---|
void |
render(Object item,
ListView listView,
boolean selected,
boolean checked,
boolean highlighted,
boolean disabled)
Prepares the renderer for layout or paint. |
Methods inherited from class pivot.wtk.content.ListViewItemRenderer |
---|
getIconHeight, getIconWidth, getShowIcon, getTextBounds, renderStyles, setIconHeight, setIconWidth, setShowIcon, setSize |
Methods inherited from class pivot.wtk.FlowPane |
---|
getFlowPaneListeners, getOrientation, setOrientation, setOrientation |
Methods inherited from class pivot.wtk.Container |
---|
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, isFocusable, iterator, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setParent, setTooltip, setVisible, store, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface pivot.wtk.Renderer |
---|
getStyles |
Methods inherited from interface pivot.wtk.ConstrainedVisual |
---|
getPreferredHeight, getPreferredSize, getPreferredWidth |
Methods inherited from interface pivot.wtk.Visual |
---|
getHeight, getWidth, paint |
Constructor Detail |
---|
public ListViewColorRenderer()
Method Detail |
---|
public void render(Object item, ListView listView, boolean selected, boolean checked, boolean highlighted, boolean disabled)
ListView.ItemRenderer
render
in interface ListView.ItemRenderer
render
in class ListViewItemRenderer
item
- The item to render, or null if called to calculate
preferred size.listView
- The host component.selected
- If true, the renderer should present a selected state for
the item.highlighted
- If true, the renderer should present a highlighted state
for the item.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |