LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.form.field
Class LyJQCaption

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.form.field.LyJQCaption
All Implemented Interfaces:
LyGraphicalCaption, LyGraphicalComponent, LyViewComponent, LyFreeInterface, LySetEnabledInterface, LySetLabelInterface, LyWebComponent

public class LyJQCaption
extends LyJQInternalView
implements LyGraphicalCaption

Type : leon.view.web.web2.component.form.field.LyWeb2Caption The peer component of LyCaption for the web2 viewer.


Field Summary
static int CAPTION_LENGTH_WRAP
          Maximum length for not wrapped captions.
 
Fields inherited from class leon.view.web.LyWebObject
__VERSION, WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalCaption
__VERSION
 
Constructor Summary
LyJQCaption(LyCaption caption)
          Class constructor of a Caption object for the struts target.
 
Method Summary
 boolean captionHasLabel(java.lang.String label)
          Check if caption has a label
 int getColSpan()
           
 int getColWeight()
           
 java.lang.String getHAlign()
           
 java.lang.String getMandatoryFieldSign()
          Get the mandatory field sign
 java.lang.String getReloadScript()
          this method is to be implemented by internal views to get the reload script for the page element
 int getRowSpan()
           
 java.lang.String getVAlign()
           
 void setColSpan(int colSpan)
           
 void setColWeight(int colWeight)
           
 void setEnabled(boolean enabled)
          Updates attribute enabled to the given value.
 void setHAlign(java.lang.String hAlign)
           
 void setLabel(java.lang.String label)
          Updates attribute label to the given value.
 void setRowSpan(int rowSpan)
           
 void setVAlign(java.lang.String vAlign)
           
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
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, getController, 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

CAPTION_LENGTH_WRAP

public static int CAPTION_LENGTH_WRAP
Maximum length for not wrapped captions.

Constructor Detail

LyJQCaption

public LyJQCaption(LyCaption caption)
Class constructor of a Caption object for the struts target.

Parameters:
caption - the generic Caption defined for every type of view targets.
Method Detail

captionHasLabel

public boolean captionHasLabel(java.lang.String label)
Check if caption has a label

Parameters:
label -
Returns:

getMandatoryFieldSign

public java.lang.String getMandatoryFieldSign()
Get the mandatory field sign

Returns:

getColSpan

public int getColSpan()
Returns:
the colSpan

setColSpan

public void setColSpan(int colSpan)
Parameters:
colSpan - the colSpan to set

getRowSpan

public int getRowSpan()
Returns:
the rowSpan

setRowSpan

public void setRowSpan(int rowSpan)
Parameters:
rowSpan - the rowSpan to set

getColWeight

public int getColWeight()
Returns:
the colWeight

setColWeight

public void setColWeight(int colWeight)
Parameters:
colWeight - the colWeight to set

getVAlign

public java.lang.String getVAlign()
Returns:
the vAlign

setVAlign

public void setVAlign(java.lang.String vAlign)
Parameters:
vAlign - the vAlign to set

getHAlign

public java.lang.String getHAlign()
Returns:
the hAlign

setHAlign

public void setHAlign(java.lang.String hAlign)
Parameters:
hAlign - the hAlign to set

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: LyGraphicalCaption
Updates attribute enabled to the given value.

Specified by:
setEnabled in interface LyGraphicalCaption
Specified by:
setEnabled in interface LySetEnabledInterface
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.
See Also:
LyGraphicalCaption.setEnabled(boolean)

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LyGraphicalCaption
Updates attribute label to the given value.

Specified by:
setLabel in interface LyGraphicalCaption
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.
See Also:
LyGraphicalCaption.setLabel(java.lang.String)

writeHtml

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

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

getReloadScript

public java.lang.String getReloadScript()
Description copied from class: LyJQInternalView
this method is to be implemented by internal views to get the reload script for the page element

Specified by:
getReloadScript in class LyJQInternalView
Returns:
reload component script
See Also:
LyJQInternalView.getReloadScript()

(c) January 2013 - W4 S.A.

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