Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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.
 

Method Detail

getPrototypeCell

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 instance
listModel - the list model of the JList
Returns:
an appropriate prototype cell for the list model

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.