|
||||||||||
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.containers.ContainerProviderAdapter
This class provides default implementations of methods in the
ContainerProvider
interface implemented using a containerProviderContext object as the
persistent store.
For method details, see the descriptions in the Provider
interface.
ContainerProviderContext
,
Provider
Field Summary |
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 | |
ContainerProviderAdapter()
|
Method Summary | |
List |
getAvailableAndUserDefinedChannels()
Gets the list of available and user defined channel names. |
List |
getAvailableChannels()
Gets the list of available channel names. |
ContainerProviderContext |
getContainerProviderContext()
Gets the ContainerProviderContext for the container provider. |
long |
getRefreshTime()
Gets the refresh time for the channel. |
List |
getSelectedChannels()
Gets the list of selected channel names. |
int[] |
getSupportedWindowStates()
Gets the supported window states. |
int |
getWindowState(String channelName)
Gets the window state of the channel. |
void |
setAvailableChannels(List avail)
Sets the list of available channel names. |
void |
setSelectedChannels(List sel)
Sets the list of selected channel names. |
void |
setWindowState(String channelName,
int windowState)
Sets the window state of a channel. |
Methods inherited from class com.sun.portal.providers.ProviderAdapter |
getContent, getContent, getDescription, getEdit, getEdit, getEditType, getHelp, getHelp, getName, getProviderContext, getResourceBundle, getResourceBundle, getTitle, getWidth, init, isEditable, isPresentable, isPresentable, processEdit, processEdit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContainerProviderAdapter()
Method Detail |
public ContainerProviderContext getContainerProviderContext() throws ProviderException
ContainerProviderContext
for the container provider.
ContainerProviderContext
.
ProviderException
ContainerProviderContext
public List getSelectedChannels() throws ProviderException
ContainerProvider
getSelectedChannels
in interface ContainerProvider
ProviderException
- If the list of channel names cannot be
returned.public List getAvailableChannels() throws ProviderException
ContainerProvider
getAvailableChannels
in interface ContainerProvider
ProviderException
- If the list of channel names cannot be
returned.public List getAvailableAndUserDefinedChannels() throws ProviderException
ProviderException
- If the list of channel names cannot be returned.public void setSelectedChannels(List sel) throws ProviderException
ContainerProvider
setSelectedChannels
in interface ContainerProvider
ProviderException
- If the list of channel names cannot be
set.public void setAvailableChannels(List avail) throws ProviderException
ContainerProvider
setAvailableChannels
in interface ContainerProvider
ProviderException
- If the list of channel names cannot be
set.public long getRefreshTime() throws ProviderException
ProviderAdapter
getRefreshTime
in interface Provider
getRefreshTime
in class ProviderAdapter
ProviderException
- If there was an error getting the refresh
time for the channel.public int getWindowState(String channelName) throws ProviderException
getWindowState
in interface ContainerProvider
channelName
- channel for which the window state is requested.
ProviderException
ProviderWindowStates.NOT_DEFINED
public void setWindowState(String channelName, int windowState) throws UnsupportedWindowStateException
setWindowState
in interface ContainerProvider
channelName
- channel for which the window state needs to be setwindowState
- The new window state
UnsupportedWindowStateException.
UnsupportedWindowStateException
- If the window state cannot be set or
if the window state passed in is not in supported window states.com.sun.portal.providers.containers.ContainerProvider#getWindowState()
,
ContainerProvider.getSupportedWindowStates()
public int[] getSupportedWindowStates() throws ProviderException
getSupportedWindowStates
in interface ContainerProvider
ProviderException
- If the window states cannot be returned.com.sun.portal.providers.containers.ContainerProviderAdapter#getWindowState()
,
com.sun.portal.providers.containers.ContainerProviderAdapter#setWindowState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |