LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyFieldUnit

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyFieldUnit
All Implemented Interfaces:
LyGetConstraintInterface, LyGetIdInterface, LyUpdateViewContentInterface

public class LyFieldUnit
extends LyFieldItem
implements LyGetIdInterface, LyGetConstraintInterface

The LyFieldUnit class is a generated Java implementation that corresponds to the element UNIT of the descriptive grammar of the views (views.dtd). <UNIT> : Unit A unit allows adding to a field a combo for selecting a unit or a unit label.

See Also:
See also tag UNIT of grammar leon_views.dtd.

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyFieldUnit()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 LyConstraint getConstraint()
          Get sub-component Constraint.
 LyFieldItem getFieldItem()
          Get sub-component FieldItem.
 java.lang.String getId()
          Gets value of id.
 LyFieldUnit getTemplate()
          Gets value of template.
 void setConstraint(LyConstraint constraint)
          Sets sub-component constraint.
 void setFieldItem(LyFieldItem fieldItem)
          Sets sub-component fieldItem.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setTemplate(LyFieldUnit template)
          Initializes attribute template to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, setLabel, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyFieldUnit

public LyFieldUnit()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyFieldUnit getTemplate()
Gets value of template.

Returns:
value of template.

getFieldItem

public LyFieldItem getFieldItem()
Get sub-component FieldItem.

Returns:
sub-component FieldItem.

getConstraint

public LyConstraint getConstraint()
Get sub-component Constraint.

Specified by:
getConstraint in interface LyGetConstraintInterface
Returns:
sub-component Constraint.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyFieldUnit template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setFieldItem

public void setFieldItem(LyFieldItem fieldItem)
Sets sub-component fieldItem.

Parameters:
fieldItem - New value of fieldItem

setConstraint

public void setConstraint(LyConstraint constraint)
Sets sub-component constraint.

Parameters:
constraint - New value of constraint

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com