LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyForm

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyPanel
              extended by leon.view.LyFormBase
                  extended by leon.view.LyForm
All Implemented Interfaces:
LyGetConstraintInterface, LyGetControllerInterface, LyGetIdInterface, LyPdfInterface, LySetControllerInterface, LySetEditableInterface, LySetWaitingInterface, LyUpdateViewContentInterface

public class LyForm
extends LyFormBase

The LyForm class implements generic behavior for the FORM components as described in views.dtd regardless of the requested target (win, swing, html...). It represents a form.

See Also:
LyComponent

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyFormBase
LyFormBase.Align
 
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
LyForm(java.lang.String id)
          Constructor with all required attributes.
 
Method Summary
 java.lang.String getName()
          Gets name of the form.
 boolean isScrollable()
          Retrieve the scrollable attribute.
 void removeFormField(int i)
          Removes FormField of index i.
 void resetContent()
          Reset content of the form.
 void resetContent(boolean full)
          Reset content of the form.
 void setName(java.lang.String name)
          Sets name of the form.
 
Methods inherited from class leon.view.LyFormBase
addFormField, cloneComponent, getAlign, getAlign, getColor, getConstraint, getController, getErrorColor, getFont, getFontColor, getFormField, getFormFieldCount, getId, getTemplate, getWarningColor, insertFormField, isBorder, isDefaultColor, isDefaultErrorColor, isDefaultFont, isDefaultFontColor, isDefaultWarningColor, isEditable, setAlign, setBorder, setColor, setConstraint, setController, setEditable, setErrorColor, setFont, setFontColor, setTemplate, setWarningColor, writeXml
 
Methods inherited from class leon.view.LyPanel
generatePdf, getLastModified, isIdle, print, setIdle, setLastModified, setPopupMenu, setWaiting
 
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

LyForm

public LyForm(java.lang.String id)
Constructor with all required attributes.

Method Detail

isScrollable

public boolean isScrollable()
Retrieve the scrollable attribute.

Overrides:
isScrollable in class LyPanel
Returns:
True if scrollable, false otherwise.

getName

public java.lang.String getName()
Gets name of the form.


setName

public void setName(java.lang.String name)
Sets name of the form.


removeFormField

public void removeFormField(int i)
Removes FormField of index i.

Parameters:
i - the index of the FormField to remove.

resetContent

public void resetContent()
Reset content of the form.


resetContent

public void resetContent(boolean full)
Reset content of the form.

Parameters:
full - indicates whether old components must be removed from graphical view.

(c) January 2013 - W4 S.A.

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