|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.context.JcmsContext
com.jalios.jcms.context.JcmsJspContext
com.jalios.jcmsplugin.virtualdesktop.DesktopHandler
public class DesktopHandler
DesktopHandler is a JavaBean which retrieves and updates a Desktop instance.
Nested Class Summary | |
---|---|
static class |
DesktopHandler.Action
Actions performed by this handler |
Field Summary |
---|
Fields inherited from class com.jalios.jcms.context.JcmsJspContext |
---|
BODY_HEADER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, JS_HEADER, jsboMap, jsboSet, jsfoMap, jsfoSet, out, pageContext, REVISION, SHOW_EDIT_ICON, STYLE_HEADER |
Fields inherited from class com.jalios.jcms.context.JcmsContext |
---|
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDebug, isLogged, loggedMember, request, response, userLang, userLocale, workspace |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Constructor Summary | |
---|---|
DesktopHandler()
|
Method Summary | |
---|---|
Desktop |
getDesktop()
Retrieves the Desktop instance managed by this handler. |
Service |
getService()
Retrieve the Service being modified. |
void |
setAction(String action)
Set the action to be performed by this DesktopHandler |
void |
setColumnNbr(int colNbr)
Sets the number of column to use for the current tab. |
void |
setColumnsIds(String[] ids)
Set the ids of the columns to be modified. |
void |
setColumnsWidth(double[] widths)
Set the column width for the current tab. |
void |
setCss(String css)
Set the css name to use for the desktop. |
void |
setFeedUrl(String url)
Set the feed URL for DesktopHandler.Action.ADD_FEED action. |
void |
setIcon(String iconName)
Set the icon name to use for the current tab. |
void |
setPortletId(String id)
Set the portlet Id to be used for the new service. |
void |
setServiceId(String id)
Set the id of the Service to be modified |
void |
setShowTitle(String showTitleStr)
Set whether the desktop title should be displayed or not. |
void |
setTabId(String id)
Set the id of the tab to be modified. |
void |
setTabIds(String[] ids)
Set the ids of the tabs in the correct order. |
void |
setTitle(String title)
Set the title to be updated for the current DesktopElement being modified |
boolean |
validate()
Retrieves and updates the Desktop associated to current user/session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DesktopHandler()
Method Detail |
---|
public boolean validate() throws IOException
IOException
public Desktop getDesktop()
public void setAction(String action)
action
- an action name from the enum values DesktopHandler.Action
, e.g. "ADD_SERVICE"public void setTabId(String id)
id
- a tab id from the current desktop.public void setTabIds(String[] ids)
Only used with action DesktopHandler.Action.REORDER_TAB
.
ids
- the tab idspublic void setColumnsIds(String[] ids)
Only used with action DesktopHandler.Action.UPDATE_COLUMNS
.
For each column, a parameter with the column id as the name and the column's services ids must be specified.
Example : columnsIds=c1&columnsIds=c2&c1=s1&c1=s2&c2=s3
ids
- the column idspublic void setPortletId(String id)
Only used with action DesktopHandler.Action.ADD_SERVICE
.
id
- a serviceable portlet idpublic void setServiceId(String id)
id
- a service idpublic void setTitle(String title)
title
- any titlepublic void setShowTitle(String showTitleStr)
showTitleStr
- "true" to display the title, "false" otherwisepublic void setCss(String css)
css
- an css theme name as returned by DesktopManager.getThemes()
public void setIcon(String iconName)
Only used with action DesktopHandler.Action.UPDATE_TAB
.
iconName
- an icon name as returned by DesktopManager.getIcons()
public void setColumnNbr(int colNbr)
Only used with action DesktopHandler.Action.UPDATE_TAB
.
colNbr
- number of columnpublic void setColumnsWidth(double[] widths)
Only used with action DesktopHandler.Action.UPDATE_TAB
.
widths
- an array of width in percent, (e.g {33.3,66.6)).
length of this array must be the same as the number of columns in the current tab.public void setFeedUrl(String url)
DesktopHandler.Action.ADD_FEED
action.
url
- an RSS feed URL;public Service getService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |