oracle.javatools.editor.insight
Interface PrototypeCellProvider
- All Known Implementing Classes:
- ListDataItemCellRenderer, TooltipDataItemCellRenderer
- public interface PrototypeCellProvider
The PrototypeCellProvider
interface defines a way for
the JList to obtain a prototype cell for the given list model. This
interface can be implemented by the list cell renderer (since it
typically understands the list data model.)
For an example of this, refer to ListDataItemCellRenderer
or TooltipDataItemCellRenderer
.
- See Also:
ListDataItemCellRenderer
,
TooltipDataItemCellRenderer
Method Summary |
java.lang.Object |
getPrototypeCell(javax.swing.JList list,
javax.swing.ListModel listModel)
Fetches a data item that can be used as the prototype cell for
the JList based on the given list model. |
getPrototypeCell
public java.lang.Object getPrototypeCell(javax.swing.JList list,
javax.swing.ListModel listModel)
- Fetches a data item that can be used as the prototype cell for
the JList based on the given list model. The list model is
provided here for convenience (since it can also be retrieved
from the JList itself anyways.)
- Parameters:
list
- the JList instancelistModel
- the list model of the JList- Returns:
- an appropriate prototype cell for the list model