LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.item
Class LyJQItem

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.item.LyJQItem
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalItem, LyViewComponent, LyFreeInterface, LySetEnabledInterface, LySetImageInterface, LySetLabelInterface, LySetVisibleInterface, LyWebComponent

public class LyJQItem
extends LyJQInternalView
implements LyGraphicalItem, LySetVisibleInterface

LyWeb2Item


Field Summary
 LyItem _item
           
 
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.LyGraphicalItem
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetVisibleInterface
__VERSION
 
Constructor Summary
LyJQItem(LyItem item)
           
 
Method Summary
 int getImageHeight(java.lang.String key)
          getImageHeight return height of the image
 int getImageWidth(java.lang.String key)
          getImageWidth return width of the image
 java.lang.String getLabel()
          Get dialog
 java.lang.String getReloadScript()
          this method is to be implemented by internal views to get the reload script for the page element
 boolean isItem()
          method used by the lymenu velocity template
 boolean isMenu()
          method used by the lymenu velocity template
 boolean isSep()
          Check if the component is a seperator.
 boolean isVisible()
           
 void setChecked(boolean checked)
          Updates attribute checked to the given value.
 void setEnabled(boolean enabled)
          Updates attribute enabled to the given value.
 void setImage(java.lang.String image)
          Updates attribute image to the given value.
 void setLabel(java.lang.String label)
          Updates attribute label to the given value.
 void setVisible(boolean status)
          Sets the visibility status of this component.
 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

_item

public LyItem _item
Constructor Detail

LyJQItem

public LyJQItem(LyItem item)
Parameters:
viewComponent -
Method Detail

getLabel

public java.lang.String getLabel()
Get dialog


getImageWidth

public int getImageWidth(java.lang.String key)
getImageWidth return width of the image


getImageHeight

public int getImageHeight(java.lang.String key)
getImageHeight return height of the image


isItem

public boolean isItem()
method used by the lymenu velocity template

Returns:
true

isMenu

public boolean isMenu()
method used by the lymenu velocity template

Returns:
false

isSep

public boolean isSep()
Check if the component is a seperator.

Returns:
boolean

setVisible

public void setVisible(boolean status)
Description copied from interface: LySetVisibleInterface
Sets the visibility status of this component.

Specified by:
setVisible in interface LySetVisibleInterface
Parameters:
status - new visibility status, if true the component will be shown, if false it will be hiden
See Also:
LySetVisibleInterface.setVisible(boolean)

setLabel

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

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

setEnabled

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

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

setChecked

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

Specified by:
setChecked in interface LyGraphicalItem
Parameters:
checked - Boolean indicating if attribute checked is set or unset.
See Also:
LyGraphicalItem.setChecked(boolean)

setImage

public void setImage(java.lang.String image)
Description copied from interface: LyGraphicalItem
Updates attribute image to the given value.

Specified by:
setImage in interface LyGraphicalItem
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.
See Also:
LyGraphicalItem.setImage(java.lang.String)

isVisible

public boolean isVisible()
Returns:
_visible

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
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

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