LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.tab
Class LyJQTabs

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.LyJQContainer
                  extended by leon.view.web.jquery.component.tab.LyJQTabs
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalContainer, LyGraphicalFieldItem, LyGraphicalPanel, LyGraphicalTabs, LyViewComponent, LyFreeInterface, LySetTabInterface, LyWebComponent

public class LyJQTabs
extends LyJQContainer
implements LyGraphicalTabs, LySetTabInterface

Type : leon.view.web.web2.tabs.LyWeb2Tabs The peer component of LyTabs 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.LyGraphicalTabs
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetTabInterface
__VERSION
 
Constructor Summary
LyJQTabs(LyTabs tabs)
           
 
Method Summary
 void addTab(LyTab tab, int pos)
          reload the whole component if tab is added
 java.lang.String getReloadScript()
          this method is to be implemented by internal views to get the reload script for the page element
 LyTab getSelectedTab()
          get actually selected tab
 java.util.List<LyTab> getTabList()
           
 void removeTab(LyTab tab)
          reload the whole tabs component when a tab is removeds
 void setEnabled(java.lang.String tabId, boolean enabled)
          This method allows to enable or disable a specific tab.
 void setLabel(java.lang.String tabId, java.lang.String newLabel)
          This method allows to change the label of a specific tab.
 void setSelectedTab(java.lang.String selectedTab)
          Updates attribute selectedTab to the given value.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.jquery.LyJQContainer
isArea, isSplitter, isTabs
 
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

LyJQTabs

public LyJQTabs(LyTabs tabs)
Method Detail

getTabList

public java.util.List<LyTab> getTabList()

getSelectedTab

public LyTab getSelectedTab()
get actually selected tab

Returns:
currently selected tab

setEnabled

public void setEnabled(java.lang.String tabId,
                       boolean enabled)
Description copied from interface: LySetTabInterface
This method allows to enable or disable a specific tab.

Specified by:
setEnabled in interface LySetTabInterface
enabled - true if the tab is enabled, false otherwise

setLabel

public void setLabel(java.lang.String tabId,
                     java.lang.String newLabel)
Description copied from interface: LySetTabInterface
This method allows to change the label of a specific tab.

Specified by:
setLabel in interface LySetTabInterface
Parameters:
tabId - the label or identifier of the tab to be changed
newLabel - the new label of the tab to be changed

setSelectedTab

public void setSelectedTab(java.lang.String selectedTab)
Description copied from interface: LyGraphicalTabs
Updates attribute selectedTab to the given value.

Specified by:
setSelectedTab in interface LyGraphicalTabs
Parameters:
selectedTab - New value of selectedTab.

addTab

public void addTab(LyTab tab,
                   int pos)
reload the whole component if tab is added

Specified by:
addTab in interface LyGraphicalTabs
Parameters:
tab - The tabs to add to tabs list.
pos - Position where the sub-component is inserted.

removeTab

public void removeTab(LyTab tab)
reload the whole tabs component when a tab is removeds

Specified by:
removeTab in interface LyGraphicalTabs
Parameters:
tab - The tabs to remove to tabs 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

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

(c) January 2013 - W4 S.A.

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