LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

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

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.LyJQFormField
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalFormField, LyGraphicalPanel, LyViewComponent, LyFreeInterface, LyResetContentInterface, LySetEditableInterface, LySetEnabledInterface, LySetFocusInterface, LySetHiddenInterface, LySetOptionalInterface, LySetStateInterface, LyWebComponent

public class LyJQFormField
extends LyJQInternalView
implements LyGraphicalFormField, LyResetContentInterface, LySetFocusInterface

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


Field Summary
 
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.LyGraphicalFormField
__VERSION
 
Fields inherited from interface leon.view.setinterface.LyResetContentInterface
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetFocusInterface
__VERSION
 
Constructor Summary
LyJQFormField(LyFormField field)
          Constructor
 
Method Summary
 int getColSpan()
           
 int getColWeight()
           
 int getColWeight(LyConstraint constraint)
          Get field's weight
 java.lang.String getHAlign()
           
 java.lang.String getHtmlHAlignment(LyConstraintBase.HAlign alignCode)
          Gets the html horizontal alignment string corresponding to the LyConstraint alignment.
static java.lang.String getHtmlVAlignment(LyConstraintBase.VAlign alignCode)
          Gets the html vertical alignment string corresponding to the LyConstraint alignment.
 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()
           
 java.lang.String getWarningColor(LyFormField field)
          Gets the warning color
 short getWarningState(LyFormField field)
          Gets the warning state short
 boolean isIconInstance(LyFieldItem fieldItem)
          Indicates if the field item is a icon component.
 boolean isLyAreaInstance(LyComponent item)
          Check if field is a lyArea
 boolean isLyBooleanInstance(LyComponent item)
           
 boolean isLyChoiceInstance(LyComponent item)
           
 boolean isLyDateInstance(LyComponent item)
           
 boolean isLyDictionaryInstance(LyComponent item)
          Check if the field is a LyDictionary instance.
 boolean isLyFileInstance(LyComponent item)
           
 boolean isLyGaugeInstance(LyComponent item)
           
 boolean isLyHrefInstance(LyComponent item)
           
 boolean isLyHrefsInstance(LyComponent item)
           
 boolean isLyLabelInstance(LyComponent item)
          Check if field is a LyText instance
 boolean isLyLinkInstance(LyComponent item)
          Check if the field is a LyLink instance.
 boolean isLyListInstance(LyComponent item)
           
 boolean isLyNumberInstance(LyComponent item)
           
 boolean isLyRelationInstance(LyComponent item)
          Check if the field is a LyRelation instance.
 boolean isLyTableInstance(LyComponent item)
          Check if field is a lyTable
 boolean isLyTextInstance(LyComponent item)
          Check if field is a LyText instance
 boolean isMakeTable()
           
 boolean isPanelInstance(LyComponent item)
           
 void reloadComponent()
           
 void resetContent()
          Reset the view for a new XML Structure.
 void resetContent(boolean full)
          (non-Javadoc)
 void setChecked(boolean checked)
          Updates attribute checked to the given value.
 void setColSpan(int colSpan)
           
 void setColWeight(int colWeight)
           
 void setEditable(boolean editable)
          Updates attribute editable to the given value.
 void setEnabled(boolean enabled)
          Updates attribute enabled to the given value.
 void setFocus()
          Method used to set the focus.
 void setHAlign(java.lang.String hAlign)
           
 void setHidden(boolean hidden)
          (non-Javadoc)
 void setMessage(java.lang.String message)
          Updates attribute message to the given value.
 void setOptional(boolean optional)
          Updates attribute optional to the given value.
 void setRowSpan(int rowSpan)
           
 void setState(short state)
          Updates attribute state to the given value.
 void setToolBar(LyToolBar toolBar)
          Sets sub-component toolBar.
 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
 

Constructor Detail

LyJQFormField

public LyJQFormField(LyFormField field)
Constructor

Parameters:
field -
Method Detail

isMakeTable

public boolean isMakeTable()

getWarningState

public short getWarningState(LyFormField field)
Gets the warning state short

Parameters:
field -
Returns:

getWarningColor

public java.lang.String getWarningColor(LyFormField field)
Gets the warning color

Parameters:
field -
Returns:

getHtmlHAlignment

public java.lang.String getHtmlHAlignment(LyConstraintBase.HAlign alignCode)
Gets the html horizontal alignment string corresponding to the LyConstraint alignment.

Parameters:
alignCode - the LyConstraint halign code.
Returns:
the html horizontal alignment string.

getHtmlVAlignment

public static java.lang.String getHtmlVAlignment(LyConstraintBase.VAlign alignCode)
Gets the html vertical alignment string corresponding to the LyConstraint alignment.

Parameters:
alignCode - the LyConstraint valign code.
Returns:
the html vertical alignment string.

getColWeight

public int getColWeight(LyConstraint constraint)
Get field's weight

Parameters:
constraint -
Returns:

isLyTextInstance

public boolean isLyTextInstance(LyComponent item)
Check if field is a LyText instance

Parameters:
item -
Returns:

isLyDateInstance

public boolean isLyDateInstance(LyComponent item)

isLyHrefInstance

public boolean isLyHrefInstance(LyComponent item)

isLyHrefsInstance

public boolean isLyHrefsInstance(LyComponent item)

isPanelInstance

public boolean isPanelInstance(LyComponent item)

isLyChoiceInstance

public boolean isLyChoiceInstance(LyComponent item)

isLyBooleanInstance

public boolean isLyBooleanInstance(LyComponent item)

isLyNumberInstance

public boolean isLyNumberInstance(LyComponent item)

isLyGaugeInstance

public boolean isLyGaugeInstance(LyComponent item)

isLyListInstance

public boolean isLyListInstance(LyComponent item)

isLyFileInstance

public boolean isLyFileInstance(LyComponent item)

isIconInstance

public boolean isIconInstance(LyFieldItem fieldItem)
Indicates if the field item is a icon component.

Returns:
true if it is icon, false otherwise

isLyRelationInstance

public boolean isLyRelationInstance(LyComponent item)
Check if the field is a LyRelation instance.

Parameters:
item - : represent the field to be checked.
Returns:
test result {true | false}.

isLyDictionaryInstance

public boolean isLyDictionaryInstance(LyComponent item)
Check if the field is a LyDictionary instance.

Parameters:
item - : represent the field to be checked.
Returns:
test result {true | false}.

isLyLinkInstance

public boolean isLyLinkInstance(LyComponent item)
Check if the field is a LyLink instance.

Parameters:
item - : represent the field to be checked.
Returns:
test result {true | false}.

isLyLabelInstance

public boolean isLyLabelInstance(LyComponent item)
Check if field is a LyText instance

Parameters:
item -
Returns:

isLyAreaInstance

public boolean isLyAreaInstance(LyComponent item)
Check if field is a lyArea

Parameters:
item -
Returns:

isLyTableInstance

public boolean isLyTableInstance(LyComponent item)
Check if field is a lyTable

Parameters:
item -
Returns:

setChecked

public void setChecked(boolean checked)
Description copied from interface: LyGraphicalFormField
Updates attribute checked to the given value.

Specified by:
setChecked in interface LyGraphicalFormField
Parameters:
checked - Boolean indicating if attribute checked is set or unset.

setEditable

public void setEditable(boolean editable)
Description copied from interface: LyGraphicalFormField
Updates attribute editable to the given value.

Specified by:
setEditable in interface LyGraphicalFormField
Specified by:
setEditable in interface LySetEditableInterface
Parameters:
editable - Boolean indicating if attribute editable is set or unset.

setEnabled

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

Specified by:
setEnabled in interface LyGraphicalFormField
Specified by:
setEnabled in interface LySetEnabledInterface
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.

setHidden

public void setHidden(boolean hidden)
(non-Javadoc)

Specified by:
setHidden in interface LyGraphicalFormField
Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.
See Also:
LyGraphicalFormField.setHidden(boolean)

setOptional

public void setOptional(boolean optional)
Description copied from interface: LyGraphicalFormField
Updates attribute optional to the given value.

Specified by:
setOptional in interface LyGraphicalFormField
Specified by:
setOptional in interface LySetOptionalInterface
Parameters:
optional - Boolean indicating if attribute optional is set or unset.

setState

public void setState(short state)
Description copied from interface: LyGraphicalFormField
Updates attribute state to the given value.

Specified by:
setState in interface LyGraphicalFormField
Specified by:
setState in interface LySetStateInterface
Parameters:
state - New value of state.

setToolBar

public void setToolBar(LyToolBar toolBar)
Description copied from interface: LyGraphicalFormField
Sets sub-component toolBar.

Specified by:
setToolBar in interface LyGraphicalFormField
Parameters:
toolBar - New value of toolBar

resetContent

public void resetContent()
Description copied from interface: LyResetContentInterface
Reset the view for a new XML Structure. Reinitialization.

Specified by:
resetContent in interface LyResetContentInterface

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)

setFocus

public void setFocus()
Description copied from interface: LySetFocusInterface
Method used to set the focus.

Specified by:
setFocus in interface LySetFocusInterface

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

reloadComponent

public void reloadComponent()

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

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

setMessage

public void setMessage(java.lang.String message)
Description copied from interface: LyGraphicalFormField
Updates attribute message to the given value.

Specified by:
setMessage in interface LyGraphicalFormField
Parameters:
message - New value of message.

(c) January 2013 - W4 S.A.

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