net.sf.doolin.gui.field
Class FieldInteger<V>

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
          extended by net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor<V>
              extended by net.sf.doolin.gui.field.FieldInteger<V>
Type Parameters:
V - Type of object for the view
All Implemented Interfaces:
Serializable, IBean, FieldDescriptor<V>

public class FieldInteger<V>
extends AbstractPropertyFieldDescriptor<V>

Field for an Integer value.

It uses a JSpinner component.

The bounds of the component are defined, by order or priority:

  1. property path - either setMinimumProperty(String) or setMaximumProperty(String)
  2. direct value - either setMinimum(Integer) or setMaximum(Integer)
  3. null (unbounded)

See Also:
Serialized Form

Constructor Summary
FieldInteger()
           
 
Method Summary
 Field<V> createField(GUIView<V> view)
          Creates a field.
 Integer getMaximum()
          Gets the maximum.
 String getMaximumProperty()
          Returns the path to the property that contains the maximum value for this field.
 Integer getMinimum()
          Gets the minimum.
 String getMinimumProperty()
          Returns the path to the property that contains the minimum value for this field.
 int getStep()
          Returns the step which is used for this field.
 void setMaximum(Integer maximum)
          Sets the maximum.
 void setMaximumProperty(String maximumProperty)
          Sets the path to the property that contains the maximum value for this field.
 void setMinimum(Integer minimum)
          Sets the minimum.
 void setMinimumProperty(String minimumProperty)
          Sets the path to the property that contains the minimum value for this field.
 void setStep(int step)
          Sets the step which is used for this field.
 
Methods inherited from class net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor
getAdapter, getProperty, getPropertyPath, setAdapter, setProperty, setPropertyPath, subscribe, subscribe
 
Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onInit, onShow, setActionFactory, setConstraint, setDisplayState, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldInteger

public FieldInteger()
Method Detail

createField

public Field<V> createField(GUIView<V> view)
Creates a field.

Parameters:
view - Owning view
Returns:
Created field

getMaximum

public Integer getMaximum()
Gets the maximum.

Returns:
the maximum

getMaximumProperty

public String getMaximumProperty()
Returns the path to the property that contains the maximum value for this field.

Returns:
Property path

getMinimum

public Integer getMinimum()
Gets the minimum.

Returns:
the minimum

getMinimumProperty

public String getMinimumProperty()
Returns the path to the property that contains the minimum value for this field.

Returns:
Property path

getStep

public int getStep()
Returns the step which is used for this field.

Returns:
Step between each value

setMaximum

public void setMaximum(Integer maximum)
Sets the maximum.

Parameters:
maximum - the new maximum

setMaximumProperty

public void setMaximumProperty(String maximumProperty)
Sets the path to the property that contains the maximum value for this field.

Parameters:
maximumProperty - Property path

setMinimum

public void setMinimum(Integer minimum)
Sets the minimum.

Parameters:
minimum - the new minimum

setMinimumProperty

public void setMinimumProperty(String minimumProperty)
Sets the path to the property that contains the minimum value for this field.

Parameters:
minimumProperty - Property path

setStep

public void setStep(int step)
Sets the step which is used for this field. It is set by default to 1.

Parameters:
step - Step between each value


Copyright © 2011. All Rights Reserved.