leon.view
Class LyForm
java.lang.Object
leon.view.LyComponent
leon.view.LyFieldItem
leon.view.LyPanel
leon.view.LyFormBase
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
Field Summary |
static java.lang.String |
__VERSION
|
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.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 |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LyForm
public LyForm(java.lang.String id)
- Constructor with all required attributes.
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.
Website: W4 S.A., contact us: support@w4global.com