fi.hut.tml.xsmiles.mlfc.xforms.dom
Class CompoundServiceImpl

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.dom.CompoundServiceImpl
All Implemented Interfaces:
CompoundService

public class CompoundServiceImpl
extends java.lang.Object
implements CompoundService

The base class for the XForm controls, such as buttons and textboxes. It uses the abstract component model of X-SMiles in the package fi.hut.tml.xsmiles.gui.components

Author:
Mikko Honkala

Nested Class Summary
 class CompoundServiceImpl.VisualComponentServiceImpl
           
 
Field Summary
protected  XCaption captionComp
          the label (caption) component
protected  XLabelCompound compound
          compound that holds the label and the control
protected  XFormsControl control
           
protected  CompoundServiceImpl.VisualComponentServiceImpl visualComponent
           
 
Constructor Summary
CompoundServiceImpl(XFormsControl ctrl)
           
 
Method Summary
 void addCaption()
           
protected  void formatCaption()
           
protected  void formatComponent()
          Formats the content according to the CSS style attribute, this can be overridden by the extending classes
protected  java.lang.String getCaptionSide()
          Returns the string value of the caption-side CSS property
 VisualComponentService getVisualComponent()
          Return the visual component for this extension element This would return e.g.
 void init()
           
 void setRelevant(boolean r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compound

protected XLabelCompound compound
compound that holds the label and the control


captionComp

protected XCaption captionComp
the label (caption) component


control

protected XFormsControl control

visualComponent

protected CompoundServiceImpl.VisualComponentServiceImpl visualComponent
Constructor Detail

CompoundServiceImpl

public CompoundServiceImpl(XFormsControl ctrl)
Method Detail

init

public void init()

getCaptionSide

protected java.lang.String getCaptionSide()
Returns the string value of the caption-side CSS property


addCaption

public void addCaption()

formatComponent

protected void formatComponent()
Formats the content according to the CSS style attribute, this can be overridden by the extending classes


formatCaption

protected void formatCaption()

getVisualComponent

public VisualComponentService getVisualComponent()
Description copied from interface: CompoundService
Return the visual component for this extension element This would return e.g. an XForms input element which contains an container that has both the label and the ::value (the widget). Note: this is a kludge.

Specified by:
getVisualComponent in interface CompoundService

setRelevant

public void setRelevant(boolean r)


X-Smiles 1.2