weka.gui
Class GenericArrayEditor.EditorListCellRenderer

java.lang.Object
  extended byweka.gui.GenericArrayEditor.EditorListCellRenderer
All Implemented Interfaces:
javax.swing.ListCellRenderer
Enclosing class:
GenericArrayEditor

private class GenericArrayEditor.EditorListCellRenderer
extends java.lang.Object
implements javax.swing.ListCellRenderer


Field Summary
private  java.lang.Class m_EditorClass
          The class of the property editor for array objects
private  java.lang.Class m_ValueClass
          The class of the array values
 
Constructor Summary
GenericArrayEditor.EditorListCellRenderer(java.lang.Class editorClass, java.lang.Class valueClass)
          Creates the list cell renderer.
 
Method Summary
 java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
          Creates a cell rendering component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_EditorClass

private java.lang.Class m_EditorClass
The class of the property editor for array objects


m_ValueClass

private java.lang.Class m_ValueClass
The class of the array values

Constructor Detail

GenericArrayEditor.EditorListCellRenderer

public GenericArrayEditor.EditorListCellRenderer(java.lang.Class editorClass,
                                                 java.lang.Class valueClass)
Creates the list cell renderer.

Parameters:
editorClass - The class of the property editor for array objects
valueClass - The class of the array values
Method Detail

getListCellRendererComponent

public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
                                                       java.lang.Object value,
                                                       int index,
                                                       boolean isSelected,
                                                       boolean cellHasFocus)
Creates a cell rendering component.

Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer
Returns:
the rendering component