Package adams.gui.goe
Class GenericArrayEditor.EditorListCellRenderer
- java.lang.Object
-
- adams.gui.goe.GenericArrayEditor.EditorListCellRenderer
-
- All Implemented Interfaces:
ListCellRenderer
- Enclosing class:
- GenericArrayEditor
protected static class GenericArrayEditor.EditorListCellRenderer extends Object implements ListCellRenderer
This class handles the creation of list cell renderers from the property editors.
-
-
Field Summary
Fields Modifier and Type Field Description protected Classm_EditorClassThe class of the property editor for array objects.protected Classm_ValueClassThe class of the array values.
-
Constructor Summary
Constructors Constructor Description EditorListCellRenderer(Class editorClass, Class valueClass)Creates the list cell renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)Creates a cell rendering component.
-
-
-
Method Detail
-
getListCellRendererComponent
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
Creates a cell rendering component.- Specified by:
getListCellRendererComponentin interfaceListCellRenderer- Parameters:
list- the list that will be rendered invalue- the cell valueindex- which element of the list to renderisSelected- true if the cell is selectedcellHasFocus- true if the cell has the focus- Returns:
- the rendering component
-
-