butler.swing.util
Interface ValueEditor

All Known Implementing Classes:
CheckBoxBooleanEditor, CodeSwingEditor, ComboEnumEditor, DateEditor, ImageEditor, IntervalEditor, NumericEditor, RadioBooleanEditor, StringEditor, SwingDateChooser, SwingMonthChooser, TextEditor, ValueEditor.BaseImpl

public interface ValueEditor

Interface that all value editors have to implement.

Author:
Fredrik Bertilsson

Nested Class Summary
static class ValueEditor.BaseImpl
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
           
 javax.swing.JComponent getComponent()
           
 java.lang.Object getValue()
           
 void setCaption(java.lang.String caption)
           
 void setDatatype(Datatype dt)
           
 void setNullable(boolean flag)
           
 void setValidator(butler.util.ValueValidator validator)
           
 void setValue(java.lang.Object value)
           
 

Method Detail

setValue

void setValue(java.lang.Object value)
              throws java.lang.Exception
Throws:
java.lang.Exception

getValue

java.lang.Object getValue()
                          throws java.lang.Exception
Throws:
java.lang.Exception

addChangeListener

void addChangeListener(javax.swing.event.ChangeListener listener)

getComponent

javax.swing.JComponent getComponent()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

setNullable

void setNullable(boolean flag)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setValidator

void setValidator(butler.util.ValueValidator validator)
                  throws java.lang.Exception
Throws:
java.lang.Exception

setCaption

void setCaption(java.lang.String caption)
                throws java.lang.Exception
Throws:
java.lang.Exception

setDatatype

void setDatatype(Datatype dt)
                 throws java.lang.Exception
Throws:
java.lang.Exception