ini.trakem2.utils
Class OptionPanel.NumericalSetter

java.lang.Object
  extended by ini.trakem2.utils.OptionPanel.Setter
      extended by ini.trakem2.utils.OptionPanel.NumericalSetter
Direct Known Subclasses:
OptionPanel.DoubleSetter, OptionPanel.FloatSetter, OptionPanel.IntSetter
Enclosing class:
OptionPanel

public abstract static class OptionPanel.NumericalSetter
extends OptionPanel.Setter


Field Summary
protected  int max
           
protected  int min
           
 
Fields inherited from class ini.trakem2.utils.OptionPanel.Setter
field, ob, reaction
 
Constructor Summary
OptionPanel.NumericalSetter(java.lang.Object ob, java.lang.String field)
           
OptionPanel.NumericalSetter(java.lang.Object ob, java.lang.String field, java.lang.Runnable reaction)
           
OptionPanel.NumericalSetter(java.lang.Object ob, java.lang.String field, java.lang.Runnable reaction, int min, int max)
           
 
Method Summary
protected abstract  java.lang.Object getValue(java.awt.Component source, int inc)
           
 java.lang.Object setFrom(java.awt.Component source, int inc)
           
 
Methods inherited from class ini.trakem2.utils.OptionPanel.Setter
getValue, setFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

protected int min

max

protected int max
Constructor Detail

OptionPanel.NumericalSetter

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

OptionPanel.NumericalSetter

public OptionPanel.NumericalSetter(java.lang.Object ob,
                                   java.lang.String field,
                                   java.lang.Runnable reaction)

OptionPanel.NumericalSetter

public OptionPanel.NumericalSetter(java.lang.Object ob,
                                   java.lang.String field,
                                   java.lang.Runnable reaction,
                                   int min,
                                   int max)
Method Detail

setFrom

public java.lang.Object setFrom(java.awt.Component source,
                                int inc)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getValue

protected abstract java.lang.Object getValue(java.awt.Component source,
                                             int inc)