LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsList

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsFieldItem
              extended by leon.view.web.struts.LyStrutsList
All Implemented Interfaces:
LyGetValueInterface, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalList, LyViewComponent, LyFreeInterface, LySetIdleInterface, LySetLabelInterface, LySetListOptionsInterface, LyWebComponent

public class LyStrutsList
extends LyStrutsFieldItem
implements LyGraphicalList, LySetIdleInterface, LyGetValueInterface

This class implements the List object (as described in the dtd) for web viewer.

LIST: Input Field of List Type
An input field of List type allows to choose one or more values among a discrete list of values. It is possible to specify if the selection is multiple or not as well as the height of the list.


Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsList(LyList list)
          Constructor.
 
Method Summary
 void addListOption(LyListOption listOption, int pos)
          Inserts a sub-component listOptions at given position.
 java.lang.String getDoubleClickScript()
          Gets the Javascript code used when double-clicking on the list.
 java.lang.String getValue()
          Return current component Value (LyGetValueInterface interface).
 void removeListOption(LyListOption listOption)
          Removes a sub-component listOptions.
 void setIdle(boolean status)
          Sets or unset the idle mode on the component/node.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
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

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyStrutsList

public LyStrutsList(LyList list)
Constructor.

Parameters:
table - the list component.
Method Detail

getDoubleClickScript

public java.lang.String getDoubleClickScript()
Gets the Javascript code used when double-clicking on the list.

Returns:
the String describing the Javascript code when double-clicking on the list

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

addListOption

public void addListOption(LyListOption listOption,
                          int pos)
Description copied from interface: LyGraphicalList
Inserts a sub-component listOptions at given position.

Specified by:
addListOption in interface LyGraphicalList
Specified by:
addListOption in interface LySetListOptionsInterface
Parameters:
listOption - The listOptions to add to listOptions list.
pos - Position where the sub-component is inserted.

removeListOption

public void removeListOption(LyListOption listOption)
Description copied from interface: LyGraphicalList
Removes a sub-component listOptions.

Specified by:
removeListOption in interface LyGraphicalList
Specified by:
removeListOption in interface LySetListOptionsInterface
Parameters:
listOption - The listOptions to remove to listOptions list.

setIdle

public void setIdle(boolean status)
Description copied from interface: LySetIdleInterface
Sets or unset the idle mode on the component/node.

Specified by:
setIdle in interface LySetIdleInterface
Parameters:
status - new idle status (LySetIdleInterface interface)

getValue

public java.lang.String getValue()
Description copied from interface: LyGetValueInterface
Return current component Value (LyGetValueInterface interface).

Specified by:
getValue in interface LyGetValueInterface

(c) January 2013 - W4 S.A.

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