fi.hut.tml.xsmiles.mlfc.xforms.adaptive
Interface Control

All Superinterfaces:
FormControl, TypedElement
All Known Implementing Classes:
AbstractControl

public interface Control
extends TypedElement

An adaptive control is a datatype aware control that uses the datamapper functionality to map between schema and display values


Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
          add a listener for actions in the component
 void addChangeListener(XChangeListener listener)
          add a listener for changes in the component
 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
 void rewiringAboutToHappen()
          This notifies the text control to save its value before rewiring
 void updateDisplay()
          this function is used to notify the control to update its display according to the content of Data
 
Methods inherited from interface fi.hut.tml.xsmiles.mlfc.xforms.dominterface.TypedElement
getData, getDataType, isInputControl, setData
 
Methods inherited from interface fi.hut.tml.xsmiles.mlfc.xforms.dominterface.FormControl
isWritable
 

Method Detail

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


addChangeListener

public void addChangeListener(XChangeListener listener)
add a listener for changes in the component


addActionListener

public void addActionListener(java.awt.event.ActionListener listener)
add a listener for actions in the component


getValue

public Data getValue()
get the components current value


updateDisplay

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


rewiringAboutToHappen

public void rewiringAboutToHappen()
This notifies the text control to save its value before rewiring


destroy

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



X-Smiles 1.2