|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.portal.providers.ProviderAdapter
com.sun.portal.providers.ProfileProviderAdapter
com.sun.portal.providers.jsp.JSPProvider
com.sun.portal.providers.containers.JSPContainerProviderAdapter
com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider
This class provides the implementation for JSPTableContainerProvider
and extends JSPContainerProviderAdapter
The table container facilitates the aggregation of multiple channels
into a single display. JSPTableContainerProvider aggregates channels into HTML
rows and Columns.
JSPContainerProviderAdapter| Field Summary | |
static int |
BOTTOM
Bottom Row in the TableContainerProvider |
static int |
CENTER
Center column in the TableContainerProvider |
static int |
LEFT
Left column in the TableContainerProvider |
static int |
RIGHT
Right column in the TableContainerProvider |
static int |
TOP
Top Row in the TableContainerProvider |
| Fields inherited from interface com.sun.portal.providers.util.ProviderProperties |
ACTIVE_BULLET_IMAGE, ARRANGE_PROVIDER_JS, ATTACH_IMAGE, BANNER, BANNER_TEMPLATE, BANNER_TEMPLATE_NOCONTEXT, BARE_PROVIDER_WRAPPER_TEMPLATE, BG_COLOR, BGCOLOR, BORDER_COLOR, BORDER_SIZE, BORDER_WIDTH, BORDERLESS_CHANNELS, BRAND_BG_COLOR, BRAND_IMAGE, BRAND_IMAGE_BG_COLOR, BRAND_IMAGE_WIDTH, BRAND_IMAGE2, BRAND_IMAGE2_BG_COLOR, BULLET_COLOR, BULLET_COLOR_JS, CHANNEL_HIGHLIGHT_COLOR, CHANNEL_LINK_COLOR, CHANNELS_BACKGROUND_COLOR, CHANNELS_COLUMN, CHANNELS_HAS_FRAME, CHANNELS_IS_DETACHABLE, CHANNELS_IS_DETACHED, CHANNELS_IS_MAXIMIZABLE, CHANNELS_IS_MINIMIZABLE, CHANNELS_IS_MINIMIZED, CHANNELS_IS_MOVABLE, CHANNELS_IS_REMOVABLE, CHANNELS_ROW, CHANNELS_WIDTH, CONTENT, CONTENT_BAR_IN_CONTENT, CONTENT_BAR_IN_CONTENT_TEMPLATE, CONTENT_BAR_IN_LAYOUT, CONTENT_BAR_IN_LAYOUT_TEMPLATE, CONTENT_LAYOUT, CONTENT_LAYOUT_LINK_COLOR, CONTENT_LAYOUT_TEMPLATE, CONTENT_LAYOUT_TEXT, CONTENT_TEMPLATE, DEFAULT_BORDERLESS_CHANNEL, DEFAULT_CHANNEL_COLUMN, DEFAULT_CHANNEL_HAS_FRAME, DEFAULT_CHANNEL_IS_DETACHABLE, DEFAULT_CHANNEL_IS_DETACHED, DEFAULT_CHANNEL_IS_MAXIMIZABLE, DEFAULT_CHANNEL_IS_MINIMIZABLE, DEFAULT_CHANNEL_IS_MINIMIZED, DEFAULT_CHANNEL_IS_MOVABLE, DEFAULT_CHANNEL_IS_REMOVABLE, DEFAULT_CHANNEL_ROW, DEFAULT_CHANNEL_WIDTH, DESKTOP_URL, DETACH_IMAGE, EDIT_CONTAINER_NAME, EDIT_IMAGE, EDIT_PROVIDER_TEMPLATE, EDIT_TEMPLATE, ERR_MESSAGE, ERROR_TEMPLATE, ERROR_TEMPLATE_NOCONTEXT, FONT_COLOR, FONT_FACE, FONT_FACE1, FONT_SIZE, FRONT_CONTAINER_NAME, FULLWIDTH_POPUP_HEIGHT, FULLWIDTH_POPUP_WIDTH, HAS_FRAME, HEADER_BG_COLOR, HEADER_FONT_COLOR, HEADER_TEXT, HELP_ICON, HELP_IMAGE, HELP_LINK, HELP_TAG, HELP_URL, HELP_URLS, INACTIVE_BULLET_IMAGE, INLINE_ERROR, INLINE_ERROR_TEMPLATE, LAST_CHANNEL_NAME, LAUNCH_POPUP, LAUNCH_POPUP_JS, LAYOUT, LAYOUT_FULL_BOTTOM_TEMPLATE, LAYOUT_FULL_TOP_TEMPLATE, LAYOUT1_TEMPLATE, LAYOUT2_TEMPLATE, LAYOUT3_TEMPLATE, LAYOUT4_TEMPLATE, LINK_SEPARATOR_COLOR, LOCALE_STRING, LOGOUT_URL, MAXIMIZE_IMAGE, MAXIMIZED_CHANNEL, MAXIMIZED_TEMPLATE, MENUBAR, MENUBAR_TEMPLATE, MINIMIZE_IMAGE, MINIMIZED_TEMPLATE, NORMALIZE_IMAGE, OPENURL_INPARENT_JS, OPTIONS_TEMPLATE, OVERLOAD_TEMPLATE, PARALLEL_CHANNELS_INIT, PARENT_CONTAINER_NAME, PARENT_TAB_CONTAINER, PERFORM_COLUMN_SUBSTITUTION_JS, PERFORM_SUBSTITUTION_JS, POPUP_MENUBAR_TEMPLATE, POPUP_TEMPLATE, PRODUCT_NAME, PROVIDER_CMDS, PROVIDER_NAME, PROVIDER_TITLE, PROVIDER_WRAPPER_TEMPLATE, REFRESH_PARENT_CONTAINER_ONLY, REMOVE_IMAGE, REMOVE_PROVIDER_JS, S_ATTACH_IMAGE, S_BRAND_IMAGE, S_BRAND_IMAGE2, S_DETACH_IMAGE, S_EDIT_IMAGE, S_HELP_IMAGE, S_MAXIMIZE_IMAGE, S_MINIMIZE_IMAGE, S_NORMALIZE_IMAGE, S_REMOVE_IMAGE, SELECT_ALL_JS, SELECTED_TAB_NAME, SIZE, STACK_TRACE, STATIC_CONTENT, SWITCH_COLUMNS_JS, TAB_COLOR, TAB_FONT_COLOR, TAB_NOTCH_IMAGE, TABLE_BG_COLOR, THEME_CHANNEL, THICK_POPUP_HEIGHT, THICK_POPUP_WIDTH, THIN_POPUP_HEIGHT, THIN_POPUP_WIDTH, TIMEOUT, TITLE, TITLE_BAR_COLOR, TITLE_FONT_COLOR, TITLE_TEXT, TOOLBAR_ROLLOVER, TOOLBAR_ROLLOVER_JS, USER_TEMPLATE |
| Fields inherited from interface com.sun.portal.providers.ProviderWidths |
WIDTH_FULL_BOTTOM, WIDTH_FULL_TOP, WIDTH_THICK, WIDTH_THIN |
| Fields inherited from interface com.sun.portal.providers.ProviderEditTypes |
EDIT_COMPLETE, EDIT_SUBSET |
| Constructor Summary | |
JSPTableContainerProvider()
|
|
| Method Summary | |
void |
genMinimizedContent(java.util.Map channelsIsMinimized,
java.util.List nonMinimizedList,
java.util.Map content,
boolean dIsMinimized)
Generates the minimized content for the channels that are minimized This method puts an empty stringbuffer in the content Map for the channels that are minimized in the table container. |
java.lang.String |
getColumn(javax.servlet.http.HttpServletRequest req,
java.lang.String channel)
Gets the column in which this channel should be displayed in. |
int |
getLayout()
Gets the layout for this container. |
int |
getPopupWindowHeight(javax.servlet.http.HttpServletRequest req,
java.lang.String channelName)
gets the popup window height for the detach window when a channel is detached |
int |
getPopupWindowWidth(javax.servlet.http.HttpServletRequest req,
java.lang.String channelName)
Gets the popup window width for the detach window when a channel is detached |
java.lang.String |
getRow(javax.servlet.http.HttpServletRequest req,
java.lang.String channel)
Gets the row in which this channel should be displayed in. |
int[] |
getSupportedWindowStates()
Gets the supported window states. |
int |
getTimeout()
Gets the timeout for this container, in seconds. |
int |
getWidths(int column)
Gets table's left,center,right width based of the table container's layout property. |
java.lang.String |
getWindowName(java.lang.String channelName)
Gets the window name for the detached window. |
int |
getWindowState(java.lang.String channelName)
Gets the window state of the channel. |
void |
init(java.lang.String n,
javax.servlet.http.HttpServletRequest httpreq)
Initializes the JSPTableContainerProvider. |
java.net.URL |
processEdit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Processes data for this container. |
void |
setColumn(javax.servlet.http.HttpServletRequest req,
java.lang.String channel,
int column)
Sets the column for this channel to be displayed in. |
void |
setLayout(int lo)
Sets the layout for this container. |
void |
setRow(javax.servlet.http.HttpServletRequest req,
java.lang.String channel,
int row)
Sets the row for this channel to be displayed in. |
java.util.Map |
setupColumns(javax.servlet.http.HttpServletRequest req)
Constructs the channel into three columns, the left column, the center column, and the right column. |
void |
setWindowState(java.lang.String channelName,
int windowState)
Sets the window state of a channel. |
| Methods inherited from class com.sun.portal.providers.containers.JSPContainerProviderAdapter |
getAvailableAndUserDefinedChannels, getAvailableChannels, getContainerProviderContext, getRefreshTime, getSelectedChannels, setAvailableChannels, setSelectedChannels |
| Methods inherited from class com.sun.portal.providers.jsp.JSPProvider |
getContent, getContentPage, getEdit, getEditPage, getExistingJSPPath, getMostSpecificJSPPath, getProcessPage, includeJspPage, isPresentable |
| Methods inherited from class com.sun.portal.providers.ProviderAdapter |
getContent, getDescription, getEdit, getEditType, getHelp, getHelp, getName, getProviderContext, getResourceBundle, getResourceBundle, getTitle, getWidth, isEditable, isPresentable, processEdit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LEFT
public static final int RIGHT
public static final int CENTER
public static final int TOP
public static final int BOTTOM
| Constructor Detail |
public JSPTableContainerProvider()
| Method Detail |
public void init(java.lang.String n,
javax.servlet.http.HttpServletRequest httpreq)
throws ProviderException
init in interface Providerinit in class JSPProvidern - The unique indentifying name for this channel.httpreq - The servlet request.
ProviderException - if JSPProvider.init throws an exceptionJSPProvider.init(java.lang.String, javax.servlet.http.HttpServletRequest)
public int getLayout()
throws ProviderException
LAYOUT_THIN_THICK
or LAYOUT_THICK_THIN or LAYOUT_THIN_THICK_THIN
or LAYOUT_UNKNOWN
ProviderExceptionLayout.LAYOUT_THIN_THICK,
Layout.LAYOUT_THICK_THIN,
Layout.LAYOUT_THIN_THICK_THIN,
Layout.LAYOUT_UNKNOWN,
setLayout(int)
public void setLayout(int lo)
throws ProviderException
ProviderExceptionLayout.LAYOUT_THIN_THICK,
Layout.LAYOUT_THICK_THIN,
Layout.LAYOUT_THIN_THICK_THIN,
Layout.LAYOUT_UNKNOWN,
setLayout(int)
public int getTimeout()
throws ProviderException
Content Not available message for a channel
ProviderException
public java.util.Map setupColumns(javax.servlet.http.HttpServletRequest req)
throws ProviderException
req - An HttpServletRequest that contains information related to this
request for content.
ProviderException - If the columns Map cannot be returned
public int getWidths(int column)
throws ProviderException
ProviderException - If the column width cannot be returned
public java.lang.String getColumn(javax.servlet.http.HttpServletRequest req,
java.lang.String channel)
throws ProviderException
req - An HttpServletRequest that contains information related to this
request for content.channel - Channel for which the column is requested
ProviderExceptionsetColumn(javax.servlet.http.HttpServletRequest, java.lang.String, int)
public java.lang.String getRow(javax.servlet.http.HttpServletRequest req,
java.lang.String channel)
throws ProviderException
req - An HttpServletRequest that contains information related to this
request for content.channel - Channel for which the row is requested
ProviderExceptionsetRow(javax.servlet.http.HttpServletRequest, java.lang.String, int)
public void setColumn(javax.servlet.http.HttpServletRequest req,
java.lang.String channel,
int column)
throws ProviderException
req - An HttpServletRequest that contains information related to this
request for content.channel - Channel for which the column is to be setcolumn - The new column.
ProviderExceptiongetColumn(javax.servlet.http.HttpServletRequest, java.lang.String)
public void setRow(javax.servlet.http.HttpServletRequest req,
java.lang.String channel,
int row)
throws ProviderException
req - An HttpServletRequest that contains information related to this
request for content.channel - Channel for which the row is to be setrow - The new row.
ProviderExceptiongetRow(javax.servlet.http.HttpServletRequest, java.lang.String)
public java.net.URL processEdit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws ProviderException
When the desktop servlet receives a request where the action is "process", it looks at the parameters to identify which provider will handle the action, through this method. The request passed in contains the parameters.
After calling this method, the desktop servlet will re-direct to the URL
returned from this method. Therefore, the result of a provider post
can be any desktop serlvet action, or the content of an arbitrary URL.
For more information on constructing desktop serlvet URLs, see
DesktopSerlvet.
processEdit in interface ProviderprocessEdit in class JSPProviderProviderException - If there was an error processing
the data. How this exception is handled is up to the client of the
provider object.DesktopServletpublic java.lang.String getWindowName(java.lang.String channelName)
channelName - Name of the channel for which
the detach window name is requested.
String The window name as a string
public int getPopupWindowWidth(javax.servlet.http.HttpServletRequest req,
java.lang.String channelName)
throws ProviderException
channelName - Name of the channel for which
the detach window width is requested.
ProviderExceptionProviderWidths.WIDTH_THIN,
ProviderWidths.WIDTH_THICK,
ProviderWidths.WIDTH_FULL_TOP,
ProviderWidths.WIDTH_FULL_BOTTOM
public int getPopupWindowHeight(javax.servlet.http.HttpServletRequest req,
java.lang.String channelName)
throws ProviderException
int. The detach window height as an int
based on the channel width
ProviderExceptionProviderWidths.WIDTH_THIN,
ProviderWidths.WIDTH_THICK,
ProviderWidths.WIDTH_FULL_TOP,
ProviderWidths.WIDTH_FULL_BOTTOM
public void genMinimizedContent(java.util.Map channelsIsMinimized,
java.util.List nonMinimizedList,
java.util.Map content,
boolean dIsMinimized)
throws ProviderException
channelsIsMinimized - Map of channelNames which are minimized.nonMinimizedList - List of channel names which are nonminimized.content - Map of channel contents, a map of StringBuffers.dIsMinimized - Default value for isMinimized property.
ProviderException
public int getWindowState(java.lang.String channelName)
throws ProviderException
getWindowState in interface ContainerProvidergetWindowState in class JSPContainerProviderAdapterchannelName - channel for which the window state is requested.
ProviderWindowStates.Maximize or
ProviderWindowStates.Minimize or ProviderWindowStates.NORMAL
ProviderExceptioncom.sun.portal.providers.containers.ProviderWindowStates#Minimize,
com.sun.portal.providers.containers.ProviderWindowStates#Maximize,
ProviderWindowStates.NORMAL,
com.sun.portal.providers.containers.JSPTableContainerProvider#getWindowState
public void setWindowState(java.lang.String channelName,
int windowState)
throws UnsupportedWindowStateException
setWindowState in interface ContainerProvidersetWindowState in class JSPContainerProviderAdapterchannelName - channel for which the window state needs to be setwindowState - The new window state either ProviderWindowStates.Maximize or
ProviderWindowStates.Minimize or ProviderWindowStates.NORMAL
UnsupportedWindowStateException - if the window state passed in is not in
supported window states list.com.sun.portal.providers.containers.ProviderWindowStates#Minimize,
com.sun.portal.providers.containers.ProviderWindowStates#Maximize,
ProviderWindowStates.NORMAL,
com.sun.portal.providers.containers.JSPTableContainerProvider#getWindowState,
com.sun.portal.providers.containers.JSPTableContainerProvider#getSupportedWindowStates()
public int[] getSupportedWindowStates()
throws ProviderException
getSupportedWindowStates in interface ContainerProvidergetSupportedWindowStates in class JSPContainerProviderAdapterProviderWindowStates.Maximize,
ProviderWindowStates.Minimize, ProviderWindowStates.NORMAL
ProviderException - If the window states cannot be returned.com.sun.portal.providers.containers.ProviderWindowStates#Minimize,
com.sun.portal.providers.containers.ProviderWindowStates#Maximize,
ProviderWindowStates.NORMAL,
com.sun.portal.providers.containers.ContainerProvider#getWindowState(),
com.sun.portal.providers.containers.ContainerProvider#setWindowState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||