Java Doc for JSPTableContainerProvider.java in  » Portal » Open-Portal » com » sun » portal » providers » containers » jsp » table » 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.table 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.providers.containers.JSPContainerProviderAdapter
   com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider

All known Subclasses:   com.sun.portal.providers.containers.tck.TCKContainerProvider,
JSPTableContainerProvider
public class JSPTableContainerProvider extends JSPContainerProviderAdapter (Code)
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.
See Also:   com.sun.portal.providers.containers.JSPContainerProviderAdapter


Field Summary
final public static  intBOTTOM
    
final public static  StringCATEGORY_CONTENT
    
final public static  intCENTER
    
final public static  intLEFT
    
final public static  intRIGHT
    
final public static  intTOP
    


Method Summary
public  voidgenMinimizedContent(Map channelsIsMinimized, List nonMinimizedList, 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.
public  MapgetChannelsInCategory(String categoryName)
     Gets the channels under the specified category.
public  StringgetColumn(HttpServletRequest req, String channel)
     Gets the column in which this channel should be displayed in.
public  intgetLayout()
     Gets the layout for this container.
public  intgetPopupWindowHeight(HttpServletRequest req, String channelName)
     gets the popup window height for the detach window when a channel is detached
Parameters:
  request - An HttpServletRequest that containsinformation related to thisrequest for content.
public  intgetPopupWindowWidth(HttpServletRequest req, String channelName)
     Gets the popup window width for the detach window when a channel is detached
Parameters:
  request - An HttpServletRequest that containsinformation related to thisrequest for content.
Parameters:
  channelName - Name of the channel for whichthe detach window width is requested.
public  StringgetRow(HttpServletRequest req, String channel)
     Gets the row in which this channel should be displayed in.
public  int[]getSupportedWindowStates()
     Gets the supported window states.
public  intgetTimeout()
     Gets the timeout for this container, in seconds.
public  intgetWidths(int column)
     Gets table's left,center,right width based of the table container's layout property. column.
public  StringgetWindowName(String channelName)
     Gets the window name for the detached window. The detached window name is used for naming browser windows for detached channels.
public  intgetWindowState(String channelName)
     Gets the window state of the channel.
Parameters:
  channelName - channel for which the window state is requested.
public  voidinit(String n, HttpServletRequest httpreq)
     Initializes the JSPTableContainerProvider.
public  URLprocessEdit(HttpServletRequest req, HttpServletResponse res)
     Processes data for this container. This method is called to process data associated with the provider.

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.

public  voidsetColumn(HttpServletRequest req, String channel, int column)
     Sets the column for this channel to be displayed in.
public  voidsetLayout(int lo)
     Sets the layout for this container.
public  voidsetRow(HttpServletRequest req, String channel, int row)
     Sets the row for this channel to be displayed in.
public  voidsetWindowState(String channelName, int windowState)
     Sets the window state of a channel.
public  MapsetupColumns(HttpServletRequest req)
     Constructs the channel into three columns, the left column, the center column, and the right column.

Field Detail
BOTTOM
final public static int BOTTOM(Code)
Bottom Row in the TableContainerProvider



CATEGORY_CONTENT
final public static String CATEGORY_CONTENT(Code)



CENTER
final public static int CENTER(Code)
Center column in the TableContainerProvider



LEFT
final public static int LEFT(Code)
Left column in the TableContainerProvider



RIGHT
final public static int RIGHT(Code)
Right column in the TableContainerProvider



TOP
final public static int TOP(Code)
Top Row in the TableContainerProvider





Method Detail
genMinimizedContent
public void genMinimizedContent(Map channelsIsMinimized, List nonMinimizedList, Map content, boolean dIsMinimized) throws ProviderException(Code)
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.
Parameters:
  channelsIsMinimized - Map of channelNames which are minimized.
Parameters:
  nonMinimizedList - List of channel names which are nonminimized.
Parameters:
  content - Map of channel contents, a map of StringBuffers.
Parameters:
  dIsMinimized - Default value for isMinimized property.



getChannelsInCategory
public Map getChannelsInCategory(String categoryName) throws ProviderException(Code)
Gets the channels under the specified category.
Parameters:
  categoryName - Name of the category for whichthe contained channels are requested.
exception:
  ProviderException - Map The channel names under the specified category , as a Map of Strings.



getColumn
public String getColumn(HttpServletRequest req, String channel) throws ProviderException(Code)
Gets the column in which this channel should be displayed in. The desktop calls this method when the front page is drawn, and when the layout page is drawn.
Parameters:
  req - An HttpServletRequest that contains information related to thisrequest for content.
Parameters:
  channel - Channel for which the column is requested The column for this channel; either "1", "2", or "3".
See Also:   com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider.setColumn



getLayout
public int getLayout() throws ProviderException(Code)
Gets the layout for this container. The desktop calls this method when the front page is drawn, and when the layout page is drawn. The layout; either LAYOUT_THIN_THICKor LAYOUT_THICK_THIN or LAYOUT_THIN_THICK_THINor LAYOUT_UNKNOWN
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_THIN_THICK
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_THICK_THIN
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_THIN_THICK_THIN
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_UNKNOWN
See Also:   com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider.setLayout



getPopupWindowHeight
public int getPopupWindowHeight(HttpServletRequest req, String channelName) throws ProviderException(Code)
gets the popup window height for the detach window when a channel is detached
Parameters:
  request - An HttpServletRequest that containsinformation related to thisrequest for content. channelName. name of the channel for whichthe detach window height is requested. int. The detach window height as an intbased on the channel width
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_THIN
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_THICK
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_FULL_TOP
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_FULL_BOTTOM



getPopupWindowWidth
public int getPopupWindowWidth(HttpServletRequest req, String channelName) throws ProviderException(Code)
Gets the popup window width for the detach window when a channel is detached
Parameters:
  request - An HttpServletRequest that containsinformation related to thisrequest for content.
Parameters:
  channelName - Name of the channel for whichthe detach window width is requested. int The detach window width as an intbased on the channel width
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_THIN
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_THICK
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_FULL_TOP
See Also:   com.sun.portal.providers.ProviderWidths.WIDTH_FULL_BOTTOM



getRow
public String getRow(HttpServletRequest req, String channel) throws ProviderException(Code)
Gets the row in which this channel should be displayed in. The desktop calls this method when the front page is drawn, and when the layout page is drawn.
Parameters:
  req - An HttpServletRequest that contains information related to thisrequest for content.
Parameters:
  channel - Channel for which the row is requested The row for this channel; either "1", "2", ....
See Also:   com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider.setRow



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



getTimeout
public int getTimeout() throws ProviderException(Code)
Gets the timeout for this container, in seconds. The number of seconds to wait to fetch the content for the selected channels when the front page is drwan. The number of seconds the front page should wait beforedisplaying a Content Not available message for a channel



getWidths
public int getWidths(int column) throws ProviderException(Code)
Gets table's left,center,right width based of the table container's layout property. column. column for which the width is requested.either LEFT or RIGHT or Center Column width. either left or right or center width.
exception:
  ProviderException - If the column width cannot be returned



getWindowName
public String getWindowName(String channelName)(Code)
Gets the window name for the detached window. The detached window name is used for naming browser windows for detached channels. The detached window name is guaranteed to end with "_detached".
Parameters:
  channelName - Name of the channel for whichthe detach window name is requested. String The window name as a string



getWindowState
public int getWindowState(String channelName) throws ProviderException(Code)
Gets the window state of the channel.
Parameters:
  channelName - channel for which the window state is requested. window state either ProviderWindowStates.Maximize orProviderWindowStates.Minimize or ProviderWindowStates.NORMAL
exception:
  ProviderException -
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.Minimize
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.Maximize
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.NORMAL
See Also:   com.sun.portal.providers.containers.JSPTableContainerProvider.getWindowState



init
public void init(String n, HttpServletRequest httpreq) throws ProviderException(Code)
Initializes the JSPTableContainerProvider.
Parameters:
  n - The unique indentifying name for this channel.
Parameters:
  httpreq - The servlet request.
exception:
  ProviderException - if JSPProvider.init throws an exception
See Also:   com.sun.portal.providers.jsp.JSPProvider.init



processEdit
public URL processEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)
Processes data for this container. This method is called to process data associated with the provider.

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 data. 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.desktop.DesktopServlet




setColumn
public void setColumn(HttpServletRequest req, String channel, int column) throws ProviderException(Code)
Sets the column for this channel to be displayed in. Either 1, 2, or 3. The desktop calls this method when the user changes the channel's display column from the layout page.
Parameters:
  req - An HttpServletRequest that contains information related to thisrequest for content.
Parameters:
  channel - Channel for which the column is to be set
Parameters:
  column - The new column.
See Also:   com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider.getColumn



setLayout
public void setLayout(int lo) throws ProviderException(Code)
Sets the layout for this container. The desktop calls this method when the user changes the layout in the layout page. lo; new layout either LAYOUT_THIN_THICKor LAYOUT_THICK_THIN or LAYOUT_THIN_THICK_THINor LAYOUT_UNKNOWN
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_THIN_THICK
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_THICK_THIN
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_THIN_THICK_THIN
See Also:   com.sun.portal.providers.util.Layout.LAYOUT_UNKNOWN
See Also:   com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider.setLayout



setRow
public void setRow(HttpServletRequest req, String channel, int row) throws ProviderException(Code)
Sets the row for this channel to be displayed in. Either 1, 2,... The desktop calls this method when the user changes the channel's display row from the layout page.
Parameters:
  req - An HttpServletRequest that contains information related to thisrequest for content.
Parameters:
  channel - Channel for which the row is to be set
Parameters:
  row - The new row.
See Also:   com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider.getRow



setWindowState
public void setWindowState(String channelName, int windowState) throws UnsupportedWindowStateException(Code)
Sets the window state of a channel.
Parameters:
  channelName - channel for which the window state needs to be set
Parameters:
  windowState - The new window state either ProviderWindowStates.Maximize orProviderWindowStates.Minimize or ProviderWindowStates.NORMAL
exception:
  UnsupportedWindowStateException - if the window state passed in is not insupported window states list.
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.Minimize
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.Maximize
See Also:   com.sun.portal.providers.containers.ProviderWindowStates.NORMAL
See Also:   com.sun.portal.providers.containers.JSPTableContainerProvider.getWindowState
See Also:   com.sun.portal.providers.containers.JSPTableContainerProvider.getSupportedWindowStates



setupColumns
public Map setupColumns(HttpServletRequest req) throws ProviderException(Code)
Constructs the channel into three columns, the left column, the center column, and the right column. Channel names are put into each column list and the list objects are put in a Map.
Parameters:
  req - An HttpServletRequest that contains information related to thisrequest for content. Map. Map of left, center, right, fullTop and fullBottom listsEach list contains the channel names in that column.
exception:
  ProviderException - If the columns Map cannot be returned



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)

w___w_w___._j___a___v_a__2s.__c__o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.