|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JLabel | +--kiwi.ui.ModelListCellRenderer
An implementation of ListCellRenderer
for use with
JList
s that are connected to a ITreeModel
via
a TreeModelListAdapter
. This cell renderer consults the tree
model for a cell's rendering information, such as its label and icon.
JList
,
ITreeModel
,
TreeModelListAdapter
, Serialized FormInner classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class javax.swing.JLabel |
labelFor |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Method Summary | |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean hasFocus)
Return the component (in this case a JLabel that is used as
a "rubber stamp" for drawing items in the JList . |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean hasFocus)
JLabel
that is used as
a "rubber stamp" for drawing items in the JList
. The
renderer will consult the tree model for each node's rendering
information.list
- The associated JList
instance.value
- The object to draw (assumed to be a
TreeModelListAdapter.ListEntry
).index
- The index of the item in the list.isSelected
- true if this item is currently selected in the
list.hasFocus
- true if this item currently has focus in the list.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |