fi.hut.tml.xsmiles.mlfc.xforms.adaptive
Class InputDate

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.adaptive.AbstractControl
      extended byfi.hut.tml.xsmiles.mlfc.xforms.adaptive.InputDate
All Implemented Interfaces:
Control, FormControl, TypedElement, XChangeListener

public class InputDate
extends AbstractControl
implements XChangeListener

this is the element control implementation when the datatype is derived from xsd:date. It is represented as a calendar control


Field Summary
protected  XCalendar fCalendar
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.adaptive.AbstractControl
fActionListener, fChangeListener, fContext, insideEvent, ownerElem
 
Constructor Summary
InputDate(XFormsContext context, org.w3c.dom.Element elem)
           
 
Method Summary
protected  void createControl()
           
 void destroy()
          close up, free all memory (yet, do not do visible changes, such as setVisible since this will slow things up
 XComponent getComponent()
          returns the abstract component for this control.
 Data getValue()
          get the components current value
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
 void valueChanged(boolean valueChanging, java.lang.Object src)
          ChangeListener method that notifies that the user has changed the value of the control.
 
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

fCalendar

protected XCalendar fCalendar
Constructor Detail

InputDate

public InputDate(XFormsContext context,
                 org.w3c.dom.Element elem)
Method Detail

createControl

protected void createControl()

getComponent

public XComponent getComponent()
returns the abstract component for this control. The abstract component can be used e.g. to style the component but all listeners should be added to the AdaptiveControl and not directly to the XComponent

Specified by:
getComponent in interface Control

registerListener

protected void registerListener()
internal method for setting the listener for the component


updateDisplay

public void updateDisplay()
this function is used to notify the control to update its display according to the content of Data

Specified by:
updateDisplay in interface Control

getValue

public Data getValue()
get the components current value

Specified by:
getValue in interface Control

valueChanged

public void valueChanged(boolean valueChanging,
                         java.lang.Object src)
ChangeListener method that notifies that the user has changed the value of the control.

Specified by:
valueChanged in interface XChangeListener

destroy

public void destroy()
close up, free all memory (yet, do not do visible changes, such as setVisible since this will slow things up

Specified by:
destroy in interface Control
Overrides:
destroy in class AbstractControl


X-Smiles 1.2