|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.bean.Bean
net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor<V>
net.sf.doolin.gui.field.FieldDecimal<V>
V - Type of object for the viewpublic class FieldDecimal<V>
Field for an BigDecimal value.
It uses a JFormattedTextField component.
The bounds of the component are defined, by order or priority:
setMinimumProperty(String) or
setMaximumProperty(String)
setMinimum(BigDecimal) or
setMaximum(BigDecimal)
null (unbounded)
| Constructor Summary | |
|---|---|
FieldDecimal()
|
|
| Method Summary | |
|---|---|
protected BigDecimal |
computeMaximum(GUIView<V> view)
|
protected BigDecimal |
computeMinimum(GUIView<V> view)
|
Field<V> |
createField(GUIView<V> view)
Creates a field. |
int |
getFractionDigits()
|
int |
getIntegerDigits()
|
BigDecimal |
getMaximum()
Gets the maximum. |
String |
getMaximumProperty()
Returns the path to the property that contains the maximum value for this field. |
BigDecimal |
getMinimum()
Gets the minimum. |
String |
getMinimumProperty()
Returns the path to the property that contains the minimum value for this field. |
protected BigDecimal |
getValue(JFormattedTextField field,
boolean useFieldValue)
|
boolean |
isFractionShowAll()
|
boolean |
isStrictMax()
|
boolean |
isStrictMin()
|
void |
setFractionDigits(int fractionDigits)
|
void |
setFractionShowAll(boolean fractionShowAll)
|
void |
setIntegerDigits(int integerDigits)
|
void |
setMaximum(BigDecimal maximum)
Sets the maximum. |
void |
setMaximumProperty(String maximumProperty)
Sets the path to the property that contains the maximum value for this field. |
void |
setMinimum(BigDecimal minimum)
Sets the minimum. |
void |
setMinimumProperty(String minimumProperty)
Sets the path to the property that contains the minimum value for this field. |
void |
setStrictMax(boolean strictMax)
|
void |
setStrictMin(boolean strictMin)
|
| 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 |
|---|
public FieldDecimal()
| Method Detail |
|---|
protected BigDecimal computeMaximum(GUIView<V> view)
protected BigDecimal computeMinimum(GUIView<V> view)
public Field<V> createField(GUIView<V> view)
view - Owning view
public int getFractionDigits()
public int getIntegerDigits()
public BigDecimal getMaximum()
public String getMaximumProperty()
public BigDecimal getMinimum()
public String getMinimumProperty()
protected BigDecimal getValue(JFormattedTextField field,
boolean useFieldValue)
public boolean isFractionShowAll()
public boolean isStrictMax()
public boolean isStrictMin()
public void setFractionDigits(int fractionDigits)
public void setFractionShowAll(boolean fractionShowAll)
public void setIntegerDigits(int integerDigits)
public void setMaximum(BigDecimal maximum)
maximum - the new maximumpublic void setMaximumProperty(String maximumProperty)
maximumProperty - Property pathpublic void setMinimum(BigDecimal minimum)
minimum - the new minimumpublic void setMinimumProperty(String minimumProperty)
minimumProperty - Property pathpublic void setStrictMax(boolean strictMax)
public void setStrictMin(boolean strictMin)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||