Package adams.gui.goe

Class GenericArrayEditor.EditorListCellRenderer

    • Field Detail

      • m_EditorClass

        protected Class m_EditorClass
        The class of the property editor for array objects.
      • m_ValueClass

        protected Class m_ValueClass
        The class of the array values.
    • Constructor Detail

      • EditorListCellRenderer

        public EditorListCellRenderer​(Class editorClass,
                                      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 Component getListCellRendererComponent​(JList list,
                                                      Object value,
                                                      int index,
                                                      boolean isSelected,
                                                      boolean cellHasFocus)
        Creates a cell rendering component.
        Specified by:
        getListCellRendererComponent in interface ListCellRenderer
        Parameters:
        list - the list that will be rendered in
        value - the cell value
        index - which element of the list to render
        isSelected - true if the cell is selected
        cellHasFocus - true if the cell has the focus
        Returns:
        the rendering component