Java Doc for JSPTabContainerProvider.java in  » Portal » Open-Portal » com » sun » portal » providers » containers » jsp » tab » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.providers.containers.jsp.tab 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.providers.containers.JSPContainerProviderAdapter
   com.sun.portal.providers.containers.jsp.tab.JSPTabContainerProvider

All known Subclasses:   com.sun.portal.providers.containers.jsp.menu.JSPMenuContainerProvider,
JSPTabContainerProvider
public class JSPTabContainerProvider extends JSPContainerProviderAdapter implements TabContainer(Code)
This class provides the implementation for JSPTabContainerProvider and extends JSPContainerProviderAdapter and implements TabContainer A TabContainer provider is a container provider that generates its views primarily by being a client of table container objects.The Tab Container displays one of its contained channels at a time. The tab container allows table containers to be arranged onto virtual pages. The container can then switch between these pages allowing them to be physically viewed one at a time. It allows the user to switch logically separate row-column displays. Viewing this with container glasses on, each page is a table container. The tab container then contains multiple table containers, one for each page. Each tab in tab container corresponds to a table container. Here, a Tab container provider is defined as a container provider that has a selected and available channels list, and allows getting and setting of these lists. Tab container uses the selected channels list to hold the names of the tabs that the user has configured on their desktop. The available channels list is used to hold the list of tab topics, or the tabs that the user can add to their desktop. This does not adhere to the semantics of the getSelectedChannels defined in ContainerProvider. Selected Tabs are the container channels that are considered "active" on the portal page. Available Tabs are those that are available to be added to the portal page from the edit page.
See Also:   com.sun.portal.providers.containers.jsp.tab.TabContainer
See Also:   com.sun.portal.providers.containers.JSPContainerProviderAdapter




Method Summary
public  voidaddTab(String name, String title)
     Adds the tab back to the desktop that has been removed before name.
public  ListgetAvailableChannels()
     Gets the list of tab topics that are available to be added to the portal page.
public  ListgetAvailableTabs()
     Gets the List of available tab topics.
public  StringBuffergetContent(HttpServletRequest req, HttpServletResponse res)
    
public  URLgetContentURL(ModifiableTab tab, HttpServletRequest req)
     Gets the ContentPage URL. ModifiableTab tab.
protected  URLgetDesktopURL(HttpServletRequest req)
    
public  UnmodifiableTabgetMakeTab()
     Gets the make tab, the tab spec to be used for 'Make My Own tab' creation by the user .
public  StringgetMakeTabName()
     Gets the make tab channel Name, the tab spec to be used for 'Make My Own tab' creation by the user .
public  StringgetMakeTabProviderName()
     Gets the make tab provider Name, the tab spec to be used for 'Make My Own tab' creation by the user .
public  intgetMaxTabs()
     Gets the maximum number of tabs allowed on the user's desktop.
public  ListgetSelectedChannels()
     Gets the list of tab names that are available on the portal page. The semantics of this method are different than getSelectedChannels() in ContainerProvider.
public  UnmodifiableTabgetSelectedTab()
     Gets the selected tab, the current selected tab in the user's session .
public  StringgetSelectedTabName()
     Gets the selected tab Name, the current selected tab in the user's session .
public  ListgetSelectedTabs()
     Gets the List of selected tabs.
public  UnmodifiableTabgetStartTab()
     Gets the start tab, the tab to be displayed when the user logs in.
public  StringgetStartTabName()
     Gets the start tab Name, the name of the tab to be displayed when the user logs in.
public  int[]getSupportedWindowStates()
     Gets the supported window states.
public  UnmodifiableTabgetTab(String name)
     Gets a tab. This method returns an instance of the UnmodifiableTab for the named channel. name.
public  URLgetTabURL(UnmodifiableTab tab, HttpServletRequest req)
     Gets the Tab URL. This method gets the tab url used to switch the selected tab on the user's desktop. UnmodifiableTab tab.
public  intgetWindowState(String channelName)
     Gets the window state of the channel. This method just returns ProviderWindowStates.NORMAL.
Parameters:
  channelName - channel for which the window state is requested.
public  voidinit(String n, HttpServletRequest req)
     Initializes the TabContainerProvider. This method must be called by clients of the TabContainerProvider object when the provider object is created (after it is constructed, or before the object is used).
public  booleanisSetTabRequest(HttpServletRequest req)
    
public  URLprocessEdit(HttpServletRequest req, HttpServletResponse res)
     Process a form for this provider. This method is called to process form data associated with the tab container provider.
public  voidremoveTab(String name)
     Removes the tab. name.
public  voidsetAvailableChannels(List avail)
     Sets the list of available channel names.
public  voidsetSelectedChannels(List sel)
     Sets the list of selected channel names.
public  voidsetSelectedTab(ModifiableTab t)
     Sets the selected tab Name in the session.
protected  voidsetSelectedTab(HttpServletRequest req)
    
public  voidsetSelectedTabName(String tabName)
     Sets the selected tab Name in the session tabName.
public  voidsetStartTabName()
     Sets the start tab Name, the name of the tab to be displayed when the user logs in.
public  voidsetStartTabName(UnmodifiableTab t)
     Sets the start tab Name, the name of the tab to be displayed when the user logs in.
public  voidsetStartTabName(String name)
     Sets the start tab Name, the name of the tab to be displayed when the user logs in. name.
public  voidsetTab(ModifiableTab t)
     Sets a tab. ModifiableTab.
public  voidsetTab(ModifiableTab t, boolean selected)
     Sets a tab. ModifiableTab.
public  voidsetWindowState(String channelName, int windowState)
     Sets the window state of a channel.



Method Detail
addTab
public void addTab(String name, String title) throws ProviderException(Code)
Adds the tab back to the desktop that has been removed before name. Name of the tab. title. displayname of the tab.
exception:
  ProviderException - If the tab cannot be added.



getAvailableChannels
public List getAvailableChannels() throws ProviderException(Code)
Gets the list of tab topics that are available to be added to the portal page. The list of available channel names, a list of string names.
exception:
  ProviderException - If the list of channel names cannot bereturned.



getAvailableTabs
public List getAvailableTabs() throws ProviderException(Code)
Gets the List of available tab topics. The list of available tabs, a list of UnmodifiableTabs.
exception:
  ProviderException - If the list of available tabs cannot bereturned.
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab



getContent
public StringBuffer getContent(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)



getContentURL
public URL getContentURL(ModifiableTab tab, HttpServletRequest req) throws ProviderException(Code)
Gets the ContentPage URL. ModifiableTab tab. The tab used in generating the URLto be used to redirect to when theuser is making a tab from scratch in the Make New Tab Page..
Parameters:
  req - An HttpServletRequest that containsinformation related to thisrequest for content. The URL that the desktop will redirect to when theuser is making a tab from scratch in the Make New Tab Page.
exception:
  ProviderException - If the ContentPage URL cannot be generated.



getDesktopURL
protected URL getDesktopURL(HttpServletRequest req)(Code)



getMakeTab
public UnmodifiableTab getMakeTab() throws ProviderException(Code)
Gets the make tab, the tab spec to be used for 'Make My Own tab' creation by the user . The make tab, UnmodifiableTab .
exception:
  ProviderException - If the make tab cannot bereturned.
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab



getMakeTabName
public String getMakeTabName() throws ProviderException(Code)
Gets the make tab channel Name, the tab spec to be used for 'Make My Own tab' creation by the user . The make tab channel name as a String.
exception:
  ProviderException - If the make tab name cannot bereturned.



getMakeTabProviderName
public String getMakeTabProviderName() throws ProviderException(Code)
Gets the make tab provider Name, the tab spec to be used for 'Make My Own tab' creation by the user . The make tab provider name as a String.
exception:
  ProviderException - If the make tab provider name cannot bereturned.



getMaxTabs
public int getMaxTabs() throws ProviderException(Code)
Gets the maximum number of tabs allowed on the user's desktop. The maximum number of tabs.
exception:
  ProviderException - If the maximum number of tabs cannot bereturned.



getSelectedChannels
public List getSelectedChannels() throws ProviderException(Code)
Gets the list of tab names that are available on the portal page. The semantics of this method are different than getSelectedChannels() in ContainerProvider. This method returns the names of the tabs that the user has configured on their desktop. The list of selected channel names, a list of string names.
exception:
  ProviderException - If the list of channel names cannot bereturned.



getSelectedTab
public UnmodifiableTab getSelectedTab() throws ProviderException(Code)
Gets the selected tab, the current selected tab in the user's session . This method implements the semantics of getSelectedChannels() in ContainerProvider and gets the active tab on the portal page. The selected tab, UnmodifiableTab.
exception:
  ProviderException - If the selected tab cannot bereturned.
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab
See Also:   com.sun.portal.providers.containers.ContainerProvider



getSelectedTabName
public String getSelectedTabName() throws ProviderException(Code)
Gets the selected tab Name, the current selected tab in the user's session . The selected tab name as a String.
exception:
  ProviderException - If the selected tab name cannot bereturned.



getSelectedTabs
public List getSelectedTabs() throws ProviderException(Code)
Gets the List of selected tabs. The list of selected tabs, a list of UnmodifiableTabs.
exception:
  ProviderException - If the list of selected tabs cannot bereturned.
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab



getStartTab
public UnmodifiableTab getStartTab() throws ProviderException(Code)
Gets the start tab, the tab to be displayed when the user logs in. The start tab, UnmodifiableTab.
exception:
  ProviderException - If the start tab cannot bereturned.
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab



getStartTabName
public String getStartTabName() throws ProviderException(Code)
Gets the start tab Name, the name of the tab to be displayed when the user logs in. The start tab name as a String.
exception:
  ProviderException - If the start tab name cannot bereturned.



getSupportedWindowStates
public int[] getSupportedWindowStates() throws ProviderException(Code)
Gets the supported window states. Supported Window States as an integer array containingProviderWindowStates.NORMAL
exception:
  ProviderException - If the window states cannot be returned.
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.NORMAL
See Also:   com.sun.portal.providers.containers.jsp.tab.JSPTabContainerProvider.getWindowState
See Also:   com.sun.portal.providers.containers.jsp.tab.JSPTabContainerProvider.setWindowState



getTab
public UnmodifiableTab getTab(String name) throws ProviderException(Code)
Gets a tab. This method returns an instance of the UnmodifiableTab for the named channel. name. The name of the channel for which the tab Object is requested. The tab, UnmodifiableTab.
exception:
  ProviderException - If the tab cannot bereturned.
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab



getTabURL
public URL getTabURL(UnmodifiableTab tab, HttpServletRequest req) throws ProviderException(Code)
Gets the Tab URL. This method gets the tab url used to switch the selected tab on the user's desktop. UnmodifiableTab tab. The tab used in generating the URLto be used to switch the selected tab to the passed in tab on the user's desktop.
Parameters:
  req - An HttpServletRequest that containsinformation related to thisrequest for content. The URL that is used for tab switching on the desktop.
exception:
  ProviderException - If the Tab URL cannot be generated.



getWindowState
public int getWindowState(String channelName) throws ProviderException(Code)
Gets the window state of the channel. This method just returns ProviderWindowStates.NORMAL.
Parameters:
  channelName - channel for which the window state is requested. window state
exception:
  ProviderException -
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.NORMAL



init
public void init(String n, HttpServletRequest req) throws ProviderException(Code)
Initializes the TabContainerProvider. This method must be called by clients of the TabContainerProvider object when the provider object is created (after it is constructed, or before the object is used). This method should not be called more than once per object.
Parameters:
  n - Unique name identifying this TabContainerprovider. This valueshould always be returned from getName().
Parameters:
  req - The HTTP request object corresponding to the HTTP requestthat caused this provider object ot be created. This request may beused to extract session or user information that could be used togain access to external resources.
exception:
  ProviderException - If there was an error initializing theTabContainerProvider. How this exception is handled is up to the client of theTabContainerProvider object.
See Also:   com.sun.portal.providers.Provider.getName



isSetTabRequest
public boolean isSetTabRequest(HttpServletRequest req)(Code)



processEdit
public URL processEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)
Process a form for this provider. This method is called to process form data associated with the tab container provider. Typically, this method is called to process the edit page generated from the getEdit() method. Usually, the client calling this method on a provider object is the desktop servlet.

Form data, passed into this method in the request, has been decoded into Unicode.

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.
Parameters:
  request - An HttpServletRequest that containsinformation related to thisrequest for content.
Parameters:
  response - An HttpServletResponse that allows theprovider to influence theoverall response for the desktop page (besides generating the content).
exception:
  ProviderException - If there was an error processingthe edit form. How this exception is handled is up to the client of theprovider object. The URL that the iPS desktop will re-direct to. A valueof null should indicate to the client that it should return to itsdefault view.
See Also:   com.sun.portal.providers.Provider.getEdit
See Also:   com.sun.portal.providers.Provider.isEditable
See Also:   com.sun.portal.providers.InvalidEditFormDataException
See Also:   com.sun.portal.desktop.DesktopServlet




removeTab
public void removeTab(String name) throws ProviderException(Code)
Removes the tab. name. Name of the tab to be removed.This method removes the tab from the selected channels list if predefinedand removes the tab from the selected and available lists and deletes thecorresponding table container if user created.
exception:
  ProviderException - If the tab cannot be removed.



setAvailableChannels
public void setAvailableChannels(List avail) throws ProviderException(Code)
Sets the list of available channel names. This method sets the available tab topics ussed by the user to configure the portal desktop.
Parameters:
  avail - The new list of channel names.
exception:
  ProviderException - If the list of channel names cannot beset.



setSelectedChannels
public void setSelectedChannels(List sel) throws ProviderException(Code)
Sets the list of selected channel names. This method sets the available tabs on the portal page.
Parameters:
  sel - The new list of channel names.
exception:
  ProviderException - If the list of channel names cannot beset.



setSelectedTab
public void setSelectedTab(ModifiableTab t) throws ProviderException(Code)
Sets the selected tab Name in the session. ModifiableTab.Whose tab name needs to be set as the selected tab name.This method sets the active tab name on the user's desktop to the name ofModifiableTab that was passed in.
exception:
  ProviderException - If the start tab name cannot be set
See Also:   com.sun.portal.providers.containers.jsp.tab.ModifiableTab



setSelectedTab
protected void setSelectedTab(HttpServletRequest req) throws ProviderException(Code)



setSelectedTabName
public void setSelectedTabName(String tabName) throws ProviderException(Code)
Sets the selected tab Name in the session tabName. The name of the channel which needs to be set as the selected tab.This method sets the active tab on the user's desktopto the name passed in..
exception:
  ProviderException - If the selected tab name cannot be set.



setStartTabName
public void setStartTabName() throws ProviderException(Code)
Sets the start tab Name, the name of the tab to be displayed when the user logs in. This method sets the current selected tab name in the user's session to the start tab.
exception:
  ProviderException - If the start tab name cannot bereturned.



setStartTabName
public void setStartTabName(UnmodifiableTab t) throws ProviderException(Code)
Sets the start tab Name, the name of the tab to be displayed when the user logs in. UnmodifiableTab.Whose tab name needs to be set as the start tab name.This method sets the start tab name to the name of UnmodifiableTab that was passed in.
exception:
  ProviderException - If the start tab name cannot be set
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab



setStartTabName
public void setStartTabName(String name) throws ProviderException(Code)
Sets the start tab Name, the name of the tab to be displayed when the user logs in. name. The name of the channel which needs to be set as the start tab.This method sets the start tab to the name passed in..
exception:
  ProviderException - If the start tab name cannot be set.



setTab
public void setTab(ModifiableTab t) throws ProviderException(Code)
Sets a tab. ModifiableTab. Tab that needs to be set.This method adds the ModifiableTab to the selected tabs list.
exception:
  ProviderException - If the tab cannot be set
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab
See Also:   com.sun.portal.providers.containers.jsp.tab.ModifiableTab



setTab
public void setTab(ModifiableTab t, boolean selected) throws ProviderException(Code)
Sets a tab. ModifiableTab. Tab that needs to be set. selected. if true Sets the tab to the currentselected tab on the user's desktop.This method adds the ModifiableTab to the selected tabs list
exception:
  ProviderException - If the tab cannot be set
See Also:   com.sun.portal.providers.containers.jsp.tab.UnmodifiableTab
See Also:   com.sun.portal.providers.containers.jsp.tab.ModifiableTab



setWindowState
public void setWindowState(String channelName, int windowState) throws UnsupportedWindowStateException(Code)
Sets the window state of a channel. This method currently has no effect and throws UnsupportedWindowStateException if windowState passed is not ProviderWindowStates#NORMAL. Subclasses that wish to allow setting a WindowState should override this method.
Parameters:
  channelName - channel for which the window state needs to be set
Parameters:
  windowState - The new window state UnsupportedWindowStateException.



Methods inherited from com.sun.portal.providers.containers.JSPContainerProviderAdapter
public List getAvailableAndUserDefinedChannels() throws ProviderException(Code)(Java Doc)
public List getAvailableChannels() throws ProviderException(Code)(Java Doc)
public ContainerProviderContext getContainerProviderContext() throws ProviderException(Code)(Java Doc)
public long getRefreshTime() throws ProviderException(Code)(Java Doc)
public List getSelectedChannels() throws ProviderException(Code)(Java Doc)
public int[] getSupportedWindowStates() throws ProviderException(Code)(Java Doc)
public int getWindowState(String channelName) throws ProviderException(Code)(Java Doc)
public void setAvailableChannels(List avail) throws ProviderException(Code)(Java Doc)
public void setSelectedChannels(List sel) throws ProviderException(Code)(Java Doc)
public void setWindowState(String channelName, int windowState) throws UnsupportedWindowStateException(Code)(Java Doc)

ww_w__._jav___a2_s._c___o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.