ini.trakem2.utils
Class OptionPanel.Setter

java.lang.Object
  extended by ini.trakem2.utils.OptionPanel.Setter
Direct Known Subclasses:
OptionPanel.BooleanSetter, OptionPanel.ChoiceIntSetter, OptionPanel.ChoiceObjectSetter, OptionPanel.ChoiceStringSetter, OptionPanel.NumericalSetter, OptionPanel.StringSetter
Enclosing class:
OptionPanel

public abstract static class OptionPanel.Setter
extends java.lang.Object


Field Summary
protected  java.lang.String field
           
protected  java.lang.Object ob
           
protected  java.lang.Runnable reaction
           
 
Constructor Summary
OptionPanel.Setter(java.lang.Object ob, java.lang.String field)
           
OptionPanel.Setter(java.lang.Object ob, java.lang.String field, java.lang.Runnable reaction)
           
 
Method Summary
abstract  java.lang.Object getValue(java.awt.Component source)
           
 void setFrom(java.awt.Component source)
          Will set the field if no exception is thrown when reading it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ob

protected final java.lang.Object ob

field

protected final java.lang.String field

reaction

protected java.lang.Runnable reaction
Constructor Detail

OptionPanel.Setter

public OptionPanel.Setter(java.lang.Object ob,
                          java.lang.String field)

OptionPanel.Setter

public OptionPanel.Setter(java.lang.Object ob,
                          java.lang.String field,
                          java.lang.Runnable reaction)
Method Detail

setFrom

public void setFrom(java.awt.Component source)
             throws java.lang.Exception
Will set the field if no exception is thrown when reading it.

Throws:
java.lang.Exception

getValue

public abstract java.lang.Object getValue(java.awt.Component source)