|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.LyWebPageWriter
leon.view.web.struts.LyStrutsContainer
leon.view.web.struts.LyStrutsTabs
public class LyStrutsTabs
This class implements the Tabs object (as described in the dtd) for Struts viewer.
TABS: Tabs
A container of tab type allows displaying different panels in the same graphical area, only one
panel being visible at once. Each panel is contained in a tab, the container being made up of a
set of tabs. The displaying that corresponds to a container of tab type must present two areas: a
first one showing the names of the different tabs and a second one allowing displaying the
panels.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
DECO_DISABLED_LABEL_PARAMETER
Constant used to generate CSS class name for selected label. |
static int |
DECO_DISABLED_SELECTED_LABEL_PARAMETER
Constant used to generate CSS class name for selected label. |
static int |
DECO_HEADERS_PARAMETER
Constant used to generate CSS class name for headers. |
static int |
DECO_LABEL_PARAMETER
Constant used to generate CSS class name for label. |
static int |
DECO_SELECTED_LABEL_PARAMETER
Constant used to generate CSS class name for selected label. |
static int |
DECO_TAB_CONTENT_PARAMETER
Constant used to generate CSS class name for tab content. |
static java.lang.String |
TABS_WRAP
Indicates if tabs must wrap automatically in web mode. |
Fields inherited from class leon.view.web.LyWebPageWriter |
---|
FORCE_AJAX, MAIN_BUFFER |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsTabs(LyTabs tabs)
Constructor. |
Method Summary | |
---|---|
void |
addTab(LyTab tab,
int pos)
Sets force reload to true . |
void |
clearBeginScripts()
(non-Javadoc). |
void |
clearCssScripts()
(non-Javadoc). |
void |
clearEndScripts()
(non-Javadoc). |
java.lang.String |
getActionUrl()
Method overriden to return the URL to the "Command" struts action path. |
java.util.Vector<LyWebPageWriter> |
getPageWriters()
(non-Javadoc). |
java.lang.String |
getRedirect(java.lang.String frame)
Gets the url for an alternate Web page. |
LyTab |
getSelectedTab()
Gets the selected tab in the current tabs view. |
void |
init()
Initialization method. |
boolean |
isFrameSet()
(non-Javadoc). |
void |
preparePage(java.lang.String frame,
java.lang.String targetWindow)
(non-Javadoc). |
void |
removeTab(LyTab tab)
Sets force reload to true . |
void |
setEnabled(java.lang.String tabId,
boolean enabled)
This method allows to enable or disable a specific tab. |
void |
setForceReloadState(boolean force)
(non-Javadoc). |
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 |
writeBeginPage(java.io.Writer pw,
java.lang.String frame)
Writes the beginning of the page. |
void |
writeEndPage(java.io.Writer pw,
java.lang.String frame)
Writes the end of the page. |
void |
writeHtml(LyWebPageWriter pw)
Write HTML description corresponding to this component. |
void |
writeHtml(java.io.Writer pw,
java.lang.String frame)
(non-Javadoc). |
Methods inherited from class leon.view.web.LyWebObject |
---|
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, 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 |
---|
public static final java.lang.String __VERSION
public static java.lang.String TABS_WRAP
public static int DECO_LABEL_PARAMETER
public static int DECO_DISABLED_LABEL_PARAMETER
public static int DECO_SELECTED_LABEL_PARAMETER
public static int DECO_DISABLED_SELECTED_LABEL_PARAMETER
public static int DECO_TAB_CONTENT_PARAMETER
public static int DECO_HEADERS_PARAMETER
Constructor Detail |
---|
public LyStrutsTabs(LyTabs tabs)
tabs
- the tabs componentMethod Detail |
---|
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
pw
- the page writerpublic void writeHtml(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
LyWebPageWriter
writeHtml
in class LyWebPageWriter
java.io.IOException
LyWebPageWriter.writeHtml(java.io.Writer, java.lang.String)
public java.lang.String getActionUrl()
getActionUrl
in class LyWebPageWriter
public void init()
init
in class LyWebPageWriter
leon.view.web.LyWebPage#init()
public void preparePage(java.lang.String frame, java.lang.String targetWindow)
LyWebPageWriter
preparePage
in class LyWebPageWriter
LyWebPageWriter.preparePage(java.lang.String, java.lang.String)
public java.lang.String getRedirect(java.lang.String frame)
LyWebPageWriter
getRedirect
in class LyWebPageWriter
frame
- the frame to redirect
public void setSelectedTab(java.lang.String selectedTab)
LyGraphicalTabs
setSelectedTab
in interface LyGraphicalTabs
selectedTab
- New value of selectedTab.public void writeBeginPage(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
writeBeginPage
in class LyWebPageWriter
pw
- the page writerframe
- the frame where the page is written
java.io.IOException
- if something is wrong during page writingLyWebPage#writeBeginPage(Writer, String)
public void writeEndPage(java.io.Writer pw, java.lang.String frame) throws java.io.IOException
writeEndPage
in class LyWebPageWriter
pw
- the page writerframe
- the frame where the page is written
java.io.IOException
- if something is wrong during end page writesLyWebPage#writeEndPage(Writer, String)
public LyTab getSelectedTab()
setSelectedTab(String)
public void clearBeginScripts()
LyWebPageWriter
clearBeginScripts
in class LyWebPageWriter
LyWebPageWriter.clearBeginScripts()
public void clearEndScripts()
LyWebPageWriter
clearEndScripts
in class LyWebPageWriter
LyWebPageWriter.clearEndScripts()
public void clearCssScripts()
LyWebPageWriter
clearCssScripts
in class LyWebPageWriter
LyWebPageWriter.clearCssScripts()
public boolean isFrameSet()
LyWebPageWriter
isFrameSet
in class LyWebPageWriter
LyWebPageWriter.isFrameSet()
public java.util.Vector<LyWebPageWriter> getPageWriters()
LyWebPageWriter
getPageWriters
in class LyWebPageWriter
LyWebPageWriter.getPageWriters()
public void setForceReloadState(boolean force)
LyWebPageWriter
setForceReloadState
in class LyWebPageWriter
LyWebPageWriter.setForceReloadState(boolean)
public void addTab(LyTab tab, int pos)
true
.
addTab
in interface LyGraphicalTabs
tab
- The tabs to add to tabs list.pos
- Position where the sub-component is inserted.LyGraphicalTabs.addTab(LyTab, int)
,
setForceReloadState(boolean)
public void removeTab(LyTab tab)
true
.
removeTab
in interface LyGraphicalTabs
tab
- The tabs to remove to tabs list.LyGraphicalTabs.removeTab(LyTab)
,
setForceReloadState(boolean)
public void setEnabled(java.lang.String tabId, boolean enabled)
LySetTabInterface
setEnabled
in interface LySetTabInterface
enabled
- true if the tab is enabled, false otherwisepublic void setLabel(java.lang.String tabId, java.lang.String newLabel)
setLabel
in interface LySetTabInterface
tabId
- the label or identifier of the tab to be changednewLabel
- the new label of the tab to be changed
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |