org.das2.components.propertyeditor
Class ColorEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.das2.components.propertyeditor.ColorEditor
All Implemented Interfaces:
java.beans.PropertyEditor, java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class ColorEditor
extends javax.swing.AbstractCellEditor
implements java.beans.PropertyEditor, javax.swing.table.TableCellEditor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ColorEditor()
          Creates a new instance of ColorEditor
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 java.lang.String getAsText()
           
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getCustomEditor()
           
 java.lang.String getJavaInitializationString()
           
 java.awt.Component getSmallEditor()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean selected, int row, int column)
           
 java.lang.String[] getTags()
           
 java.lang.Object getValue()
           
 boolean isPaintable()
           
 void paintValue(java.awt.Graphics graphics, java.awt.Rectangle rectangle)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setAsText(java.lang.String str)
           
 void setValue(java.lang.Object obj)
           
 boolean supportsCustomEditor()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

ColorEditor

public ColorEditor()
Creates a new instance of ColorEditor

Method Detail

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor

getAsText

public java.lang.String getAsText()
Specified by:
getAsText in interface java.beans.PropertyEditor

getCustomEditor

public java.awt.Component getCustomEditor()
Specified by:
getCustomEditor in interface java.beans.PropertyEditor

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Specified by:
addPropertyChangeListener in interface java.beans.PropertyEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor

getJavaInitializationString

public java.lang.String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor

getTags

public java.lang.String[] getTags()
Specified by:
getTags in interface java.beans.PropertyEditor

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface java.beans.PropertyEditor

isPaintable

public boolean isPaintable()
Specified by:
isPaintable in interface java.beans.PropertyEditor

paintValue

public void paintValue(java.awt.Graphics graphics,
                       java.awt.Rectangle rectangle)
Specified by:
paintValue in interface java.beans.PropertyEditor

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Specified by:
removePropertyChangeListener in interface java.beans.PropertyEditor

setAsText

public void setAsText(java.lang.String str)
               throws java.lang.IllegalArgumentException
Specified by:
setAsText in interface java.beans.PropertyEditor
Throws:
java.lang.IllegalArgumentException

setValue

public void setValue(java.lang.Object obj)
Specified by:
setValue in interface java.beans.PropertyEditor

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean selected,
                                                      int row,
                                                      int column)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

getSmallEditor

public java.awt.Component getSmallEditor()