|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsFieldItem
leon.view.web.struts.LyStrutsPanel
leon.view.web.struts.LyStrutsForm
public class LyStrutsForm
This class implements the Form object (as described in the dtd) for web viewer.
FORM: Form
A form allows to show a set of fields. This type of component is used to allow a user of an
application to consult application data (non editable form) or else to input data (editable
form). The default arrangement of the fields inside a form is based on a grid of two columns
comprising as many lines as there are fields. The first column contains the labels of the fields
and the second one contains the input fields.
LyForm
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static boolean |
COMPOSITION_TABLE_WORKAROUND
Workaround for IE 5.0 and tables width within forms. |
static int |
DEBUG_BORDER
Width of the border used for HTML tables (for debug). |
static int |
DECO_CAPTION_PARAMETER
Constant used to generate CSS class name for caption. |
static int |
DECO_FORM_PARAMETER
Constant used to generate CSS class name for form. |
static int |
DECO_ITEM_PARAMETER
Constant used to generate CSS class name for field item. |
static int |
LABEL_LENGTH_WRAP
Maximum length for not wrapped labels. |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsForm(LyForm form)
Class constructor of a Form object for the struts target. |
Method Summary | |
---|---|
boolean |
generateCellForHiddenFields()
Indicates whether an HTML cell must be used for hidden fields. |
java.lang.String |
getAttachmentDirectory()
Gets the attachment handler directory. |
java.lang.String |
getAttachmentHandler()
Gets the attachment handler. |
int |
getCellBottomPadding(LyFormField formField)
Returns the bottom padding of the HTML cell containing given field. |
int |
getCellHeight(LyFormField formField)
Returns the height of the HTML cell containing given field if fixed. |
int |
getCellLeftPadding(LyFormField formField)
Returns the left padding of the HTML cell containing given field. |
int |
getCellPadding()
Returns the cell padding that must be used for the internal HTML table generated for form. |
int |
getCellRightPadding(LyFormField formField)
Returns the right padding of the HTML cell containing given field. |
int |
getCellSpacing()
Returns the cell spacing that must be used for the internal HTML table generated for form. |
int |
getCellTopPadding(LyFormField formField)
Returns the top padding of the HTML cell containing given field. |
int |
getCellWidth(LyFormField formField)
Returns the width of the HTML cell containing given field if fixed. |
java.lang.String |
getControllerId()
Gets the form generic component controller id. |
java.lang.String |
getName()
Gets the HTML name of the form. |
void |
initialize()
Initialization method. |
void |
resetContent()
(non-Javadoc). |
void |
resetContent(boolean full)
(non-Javadoc). |
void |
setAttachmentDirectory(java.lang.String attachmentDirectory)
Sets the attachment handler directory. |
void |
setAttachmentHandler(java.lang.String handler)
Sets the attachment handler. |
void |
setEditable(boolean editable)
(non-Javadoc). |
void |
setEnabled(boolean enabled)
(non-Javadoc). |
void |
writeHtml(LyWebPageWriter pw)
(non-Javadoc). |
Methods inherited from class leon.view.web.struts.LyStrutsPanel |
---|
getPopupMenuView, setPopupMenu |
Methods inherited from class leon.view.web.struts.LyStrutsFieldItem |
---|
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getFormName, getHtmlForm, getId, isEditable, isNetscape, isOptional, needCheck, setLabel |
Methods inherited from class leon.view.web.LyWebObject |
---|
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getBounds, getChildrenBounds, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
public static boolean COMPOSITION_TABLE_WORKAROUND
public static int DECO_CAPTION_PARAMETER
public static int DECO_ITEM_PARAMETER
public static int DECO_FORM_PARAMETER
public static int LABEL_LENGTH_WRAP
public static int DEBUG_BORDER
Constructor Detail |
---|
public LyStrutsForm(LyForm form)
form
- the generic Form defined for every type of view targetsMethod Detail |
---|
public void initialize()
null
.
public void writeHtml(LyWebPageWriter pw)
writeHtml
in interface LyWebComponent
pw
- the page writerLyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)
public java.lang.String getName()
public java.lang.String getControllerId()
public void setAttachmentHandler(java.lang.String handler)
handler
- the new handler, or null if none is specifiedgetAttachmentHandler()
public java.lang.String getAttachmentHandler()
setAttachmentHandler(String)
public void setAttachmentDirectory(java.lang.String attachmentDirectory)
attachmentDirectory
- the new attachment directorygetAttachmentDirectory()
public java.lang.String getAttachmentDirectory()
setAttachmentDirectory(String)
public void setEnabled(boolean enabled)
setEnabled
in interface LySetEnabledInterface
LySetEnabledInterface.setEnabled(boolean)
public void setEditable(boolean editable)
setEditable
in interface LyGraphicalForm
setEditable
in interface LySetEditableInterface
editable
- Boolean indicating if attribute editable is set or unset.LySetEditableInterface.setEditable(boolean)
public void resetContent()
resetContent
in interface LyResetContentInterface
LyResetContentInterface.resetContent()
public void resetContent(boolean full)
resetContent
in interface LyResetContentInterface
full
- indicates whether old components must be removed from graphical view.LyResetContentInterface.resetContent(boolean)
public int getCellWidth(LyFormField formField)
public int getCellHeight(LyFormField formField)
public int getCellLeftPadding(LyFormField formField)
public int getCellRightPadding(LyFormField formField)
public int getCellTopPadding(LyFormField formField)
public int getCellBottomPadding(LyFormField formField)
public int getCellSpacing()
public int getCellPadding()
public boolean generateCellForHiddenFields()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |