LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.form
Class LyJQForm

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.fieldItem.LyJQFieldItem
                  extended by leon.view.web.jquery.component.panel.LyJQPanel
                      extended by leon.view.web.jquery.component.form.LyJQForm
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalForm, LyGraphicalPanel, LyViewComponent, LyFreeInterface, LyResetContentInterface, LySetEditableInterface, LySetEnabledInterface, LySetLabelInterface, LySetPopupMenuInterface, LyWebComponent

public class LyJQForm
extends LyJQPanel
implements LyGraphicalForm, LySetEnabledInterface, LyResetContentInterface

Type : leon.view.web.web2.component.form.LyJQForm The peer component of LyForm for the web2 viewer.


Field Summary
static boolean COMPOSITION_TABLE_WORKAROUND
          Workaround for IE 5.0 and tables width within forms.
static int DECO_CAPTION_PARAMETER
          Constant used to generate CSS class name for caption.
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.jquery.component.fieldItem.LyJQFieldItem
__VERSION
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalForm
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetEnabledInterface
__VERSION
 
Fields inherited from interface leon.view.setinterface.LyResetContentInterface
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetPopupMenuInterface
__VERSION
 
Constructor Summary
LyJQForm(LyForm form)
          Constructor
 
Method Summary
 void computeColSpans()
          Compute ColSpans of the form fields.
 java.lang.String getAlign(LyForm form)
          Get form align
 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 getCellRightPadding(LyFormField formField)
          Returns the right 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.util.List<LyFormField> getFormFieldList()
           
 boolean isForm()
           
 void resetContent()
          (non-Javadoc)
 void resetContent(boolean full)
          (non-Javadoc)
 void setEditable(boolean editable)
          (non-Javadoc)
 void setEnabled(boolean status)
          (non-Javadoc)
 void setPopupMenu(LyPopupMenu popup)
          (non-Javadoc)
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.jquery.component.panel.LyJQPanel
isChart, isForm, isGantt, isMap, isNotice, isPanel, isTable, isTree
 
Methods inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getReloadScript, getTarget, isEditable, isEnabled, isLabelInstance, isMail, isNetscape, isOptional, isPrintMode, isUrl, isUrlRecurse, needCheck, setLabel
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
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

COMPOSITION_TABLE_WORKAROUND

public static boolean COMPOSITION_TABLE_WORKAROUND
Workaround for IE 5.0 and tables width within forms.


DECO_CAPTION_PARAMETER

public static int DECO_CAPTION_PARAMETER
Constant used to generate CSS class name for caption.


LABEL_LENGTH_WRAP

public static int LABEL_LENGTH_WRAP
Maximum length for not wrapped labels.


DECO_ITEM_PARAMETER

public static int DECO_ITEM_PARAMETER
Constant used to generate CSS class name for field item.

Constructor Detail

LyJQForm

public LyJQForm(LyForm form)
Constructor

Parameters:
form -
Method Detail

setPopupMenu

public void setPopupMenu(LyPopupMenu popup)
(non-Javadoc)

Specified by:
setPopupMenu in interface LySetPopupMenuInterface
Overrides:
setPopupMenu in class LyJQPanel
Parameters:
popup - the new popup menu
See Also:
LyJQPanel.setPopupMenu(leon.view.LyPopupMenu)

resetContent

public void resetContent()
(non-Javadoc)

Specified by:
resetContent in interface LyResetContentInterface
See Also:
LyResetContentInterface.resetContent()

resetContent

public void resetContent(boolean full)
(non-Javadoc)

Specified by:
resetContent in interface LyResetContentInterface
Parameters:
full - indicates whether old components must be removed from graphical view.
See Also:
LyResetContentInterface.resetContent(boolean)

setEnabled

public void setEnabled(boolean status)
(non-Javadoc)

Specified by:
setEnabled in interface LySetEnabledInterface
See Also:
LySetEnabledInterface.setEnabled(boolean)

setEditable

public void setEditable(boolean editable)
(non-Javadoc)

Specified by:
setEditable in interface LyGraphicalForm
Specified by:
setEditable in interface LySetEditableInterface
Parameters:
editable - Boolean indicating if attribute editable is set or unset.
See Also:
LyGraphicalForm.setEditable(boolean)

getAlign

public java.lang.String getAlign(LyForm form)
Get form align

Parameters:
form -
Returns:

getFormFieldList

public java.util.List<LyFormField> getFormFieldList()
Returns:
ly form fields list

isForm

public boolean isForm()

computeColSpans

public void computeColSpans()
Compute ColSpans of the form fields.

Parameters:
pw - the page writer

getCellWidth

public int getCellWidth(LyFormField formField)
Returns the width of the HTML cell containing given field if fixed.

Returns:
the width of the cell or a negative value if there is no fixed width.

getCellHeight

public int getCellHeight(LyFormField formField)
Returns the height of the HTML cell containing given field if fixed.

Returns:
the height of the cell or a negative value if there is no fixed height.

getCellLeftPadding

public int getCellLeftPadding(LyFormField formField)
Returns the left padding of the HTML cell containing given field.

Returns:
the left padding of the cell or a negative value if there is no left padding.

getCellRightPadding

public int getCellRightPadding(LyFormField formField)
Returns the right padding of the HTML cell containing given field.

Returns:
the right padding of the cell or a negative value if there is no right padding.

writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Overrides:
writeHtml in class LyJQFieldItem
Parameters:
pw - the page writer

(c) January 2013 - W4 S.A.

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