de.beamertool.admin.configuration.editor
Class StringTableEditor

java.lang.Object
  extended by com.l2fprod.common.beans.editor.AbstractPropertyEditor
      extended by de.beamertool.admin.configuration.editor.TableEditor<Collection<String>>
          extended by de.beamertool.admin.configuration.editor.StringTableEditor
All Implemented Interfaces:
PropertyEditor
Direct Known Subclasses:
BadWordListEditor

public class StringTableEditor
extends TableEditor<Collection<String>>

Base class to allow access to string list properties.
A subclass is needed to supply a default constructor for BeanInfo support.

Author:
ocm-zeeman

Nested Class Summary
 
Nested classes/interfaces inherited from class de.beamertool.admin.configuration.editor.TableEditor
TableEditor.TablePicker
 
Constructor Summary
StringTableEditor(String... tableHeaders)
          Creates the StringTableEditor and the data model.
 
Method Summary
 Collection<String> getValue()
           
 void setValue(Object value)
           
 
Methods inherited from class de.beamertool.admin.configuration.editor.TableEditor
getPicker, setAddActionHandler, setDelActionHandler
 
Methods inherited from class com.l2fprod.common.beans.editor.AbstractPropertyEditor
addPropertyChangeListener, getAsText, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, supportsCustomEditor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTableEditor

public StringTableEditor(String... tableHeaders)
Creates the StringTableEditor and the data model.
The buttons are also created and ActionListener are added.

Parameters:
tableHeaders - names of the table headers
Method Detail

getValue

public Collection<String> getValue()
Specified by:
getValue in interface PropertyEditor
Specified by:
getValue in class TableEditor<Collection<String>>

setValue

public void setValue(Object value)
Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class TableEditor<Collection<String>>