|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.xforms.adaptive.AbstractControl
fi.hut.tml.xsmiles.mlfc.xforms.adaptive.AbstractRange
fi.hut.tml.xsmiles.mlfc.xforms.adaptive.RangeDecimal
implements range control for decimal values
| Field Summary | |
protected java.math.BigDecimal |
end
|
protected XRange |
fRange
|
protected int |
maxscale
|
protected int |
numsteps
|
protected java.math.BigDecimal |
realstep
|
protected java.math.BigDecimal |
scale
|
protected java.math.BigDecimal |
start
|
protected java.math.BigDecimal |
step
|
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.adaptive.AbstractRange |
element |
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.adaptive.AbstractControl |
fActionListener, fChangeListener, fContext, insideEvent, ownerElem |
| Constructor Summary | |
RangeDecimal(XFormsContext context,
org.w3c.dom.Element elem)
|
|
| Method Summary | |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent adjustmentEvent)
event handler for slider adjustements |
protected void |
checkRange()
|
protected java.math.BigDecimal |
convertFromRangeValue(int i)
|
protected java.math.BigDecimal |
convertToBigDecimal(java.lang.String str,
java.lang.String def)
|
protected int |
convertToRangeValue(java.lang.Object obj)
|
protected void |
createControl()
|
protected java.util.Hashtable |
createLabelTable()
|
void |
destroy()
close up, free all memory (yet, do not do visible changes, such as setVisible since this will slow things up |
protected void |
DispatchInRange()
|
protected void |
DispatchOutOfRange()
|
protected int |
findmaxscale()
|
XComponent |
getComponent()
returns the abstract component for this control. |
protected int |
getEnd()
|
protected java.math.BigDecimal |
getEndAttrValue()
|
protected int |
getNumberOfSteps()
|
protected int |
getStart()
|
protected java.math.BigDecimal |
getStartAttrValue()
|
protected java.math.BigDecimal |
getStepAttrValue()
|
protected int |
getStepsize()
|
Data |
getValue()
get the components current value |
protected boolean |
isInRange()
|
protected void |
registerListener()
internal method for setting the listener for the component |
void |
updateDisplay()
this function is used to notify the control to update its display according to the content of Data |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.xforms.adaptive.AbstractControl |
activate, activate, addActionListener, addChangeListener, getData, getDataType, isInputControl, isWritable, rewiringAboutToHappen, setData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected XRange fRange
protected java.math.BigDecimal start
protected java.math.BigDecimal end
protected java.math.BigDecimal step
protected java.math.BigDecimal realstep
protected java.math.BigDecimal scale
protected int numsteps
protected int maxscale
| Constructor Detail |
public RangeDecimal(XFormsContext context,
org.w3c.dom.Element elem)
| Method Detail |
protected void createControl()
protected int getStart()
protected int getEnd()
protected int getStepsize()
protected java.util.Hashtable createLabelTable()
protected java.math.BigDecimal getStartAttrValue()
protected java.math.BigDecimal getEndAttrValue()
protected java.math.BigDecimal getStepAttrValue()
protected java.math.BigDecimal convertToBigDecimal(java.lang.String str,
java.lang.String def)
protected int getNumberOfSteps()
protected int findmaxscale()
protected int convertToRangeValue(java.lang.Object obj)
protected java.math.BigDecimal convertFromRangeValue(int i)
public XComponent getComponent()
getComponent in interface Controlprotected void registerListener()
public void destroy()
AbstractControl
destroy in interface Controldestroy in class AbstractControlpublic void updateDisplay()
updateDisplay in interface Controlprotected void checkRange()
protected boolean isInRange()
protected void DispatchOutOfRange()
protected void DispatchInRange()
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent adjustmentEvent)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic Data getValue()
getValue in interface Control
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||