Java Doc for PortletPlacementContextImpl.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » layout » impl » 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 » jetspeed 2.1.3 » org.apache.jetspeed.layout.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jetspeed.layout.impl.PortletPlacementContextImpl

PortletPlacementContextImpl
public class PortletPlacementContextImpl implements PortletPlacementContext(Code)
Portal Placement Context The purpose of the object is to provide an API that can be used to move a portlet fragment on the page. This includes moving, adding, removing and getting information about portlets that are on the page and portlets that are available to be added to the page. This object represents the fragment contents of a single layout fragment (i.e. nested depth cannot be captured by this object). An important note about this object: This object is really only intended to be used to do a single operation such as "moveabs" or "add". After performing the operation, the hashmap data structures are not correct and should not be used for subsequent operations. The reason they are incorrect is that when a fragment is moved, the coordinate of fragments below it are now different. These could be updated, but it really doesn't serve a purpose since this is a short lived object.
author:
   David Gurney
author:
   David Sean Taylor
author:
   Steve Milek
version:
   $Id: $

Inner Class :class FragmentLinkedListInfo
Inner Class :class FragmentLinkedListEntry

Field Summary
protected  ArrayList[]columnsList
    
final protected static  Stringeol
    
protected  MapfragmentCoordinateMap
    
protected  MapfragmentMap
    
protected  FragmentlayoutContainerFragment
    
protected  intnumberOfColumns
    
protected  Pagepage
    

Constructor Summary
public  PortletPlacementContextImpl(Page page, PortletRegistry registry)
    
public  PortletPlacementContextImpl(Page page, PortletRegistry registry, Fragment container)
    

Method Summary
public  Coordinateadd(Fragment fragment, Coordinate coordinate)
    
public  FragmentdebugFragments(String debug)
    
public  StringdumpFragments(String debug)
    
public static  intgetColumnCountAndSizes(Fragment layoutFragment, PortletRegistry registry, Map fragSizes)
    
public static  intgetColumnCountAndSizes(Fragment layoutFragment, PortletRegistry registry, Map fragSizes, boolean suppressErrorLogging)
    
public  FragmentgetFragment(String fragmentId)
    
protected  FragmentgetFragmentAtCoordinate(Coordinate coordinate, boolean useOldCoordinateValues, boolean suppressExceptions)
    
public  FragmentgetFragmentAtNewCoordinate(Coordinate coordinate)
    
public  FragmentgetFragmentAtOldCoordinate(Coordinate coordinate)
    
public  FragmentgetFragmentById(String fragmentId)
    
public  intgetFragmentCol(Fragment fragment)
    
public  intgetFragmentRow(Fragment fragment)
    
protected  intgetLatestColumn(Coordinate coordinate)
    
protected  intgetLatestRow(Coordinate coordinate)
    
public  intgetNumberColumns()
    
public  intgetNumberRows(int col)
    
protected  voidinit(Fragment container)
    
public  CoordinatemoveAbsolute(Fragment fragment, Coordinate newCoordinate)
    
public  CoordinatemoveAbsolute(Fragment fragment, Coordinate newCoordinate, boolean okToAddFragment)
    
protected  CoordinatemoveDirection(Fragment fragment, int deltaCol, int deltaRow)
    
public  CoordinatemoveDown(Fragment fragment)
    
public  CoordinatemoveLeft(Fragment fragment)
    
public  CoordinatemoveRight(Fragment fragment)
    
public  CoordinatemoveUp(Fragment fragment)
    
public  Coordinateremove(Fragment fragment)
    
protected  voidsyncFragments(boolean updateFragmentObjects, int onlyForColumnIndex)
    
public  PagesyncPageFragments()
     Takes the internal portlet placement state and stores back out to fragment state the managed page layout with updated fragment state.
protected  FragmentverifyFragmentAtExpectedCoordinate(int colIndex, int rowIndex, Fragment fragment, String sourceDesc)
    

Field Detail
columnsList
protected ArrayList[] columnsList(Code)



eol
final protected static String eol(Code)



fragmentCoordinateMap
protected Map fragmentCoordinateMap(Code)



fragmentMap
protected Map fragmentMap(Code)



layoutContainerFragment
protected Fragment layoutContainerFragment(Code)



numberOfColumns
protected int numberOfColumns(Code)



page
protected Page page(Code)




Constructor Detail
PortletPlacementContextImpl
public PortletPlacementContextImpl(Page page, PortletRegistry registry) throws PortletPlacementException(Code)



PortletPlacementContextImpl
public PortletPlacementContextImpl(Page page, PortletRegistry registry, Fragment container) throws PortletPlacementException(Code)




Method Detail
add
public Coordinate add(Fragment fragment, Coordinate coordinate) throws PortletPlacementException(Code)



debugFragments
public Fragment debugFragments(String debug)(Code)



dumpFragments
public String dumpFragments(String debug)(Code)



getColumnCountAndSizes
public static int getColumnCountAndSizes(Fragment layoutFragment, PortletRegistry registry, Map fragSizes)(Code)



getColumnCountAndSizes
public static int getColumnCountAndSizes(Fragment layoutFragment, PortletRegistry registry, Map fragSizes, boolean suppressErrorLogging)(Code)



getFragment
public Fragment getFragment(String fragmentId) throws PortletPlacementException(Code)



getFragmentAtCoordinate
protected Fragment getFragmentAtCoordinate(Coordinate coordinate, boolean useOldCoordinateValues, boolean suppressExceptions) throws PortletPlacementException(Code)



getFragmentAtNewCoordinate
public Fragment getFragmentAtNewCoordinate(Coordinate coordinate) throws PortletPlacementException(Code)



getFragmentAtOldCoordinate
public Fragment getFragmentAtOldCoordinate(Coordinate coordinate) throws PortletPlacementException(Code)



getFragmentById
public Fragment getFragmentById(String fragmentId) throws PortletPlacementException(Code)



getFragmentCol
public int getFragmentCol(Fragment fragment)(Code)



getFragmentRow
public int getFragmentRow(Fragment fragment)(Code)



getLatestColumn
protected int getLatestColumn(Coordinate coordinate)(Code)



getLatestRow
protected int getLatestRow(Coordinate coordinate)(Code)



getNumberColumns
public int getNumberColumns() throws PortletPlacementException(Code)



getNumberRows
public int getNumberRows(int col) throws PortletPlacementException(Code)



init
protected void init(Fragment container) throws PortletPlacementException(Code)



moveAbsolute
public Coordinate moveAbsolute(Fragment fragment, Coordinate newCoordinate) throws PortletPlacementException(Code)



moveAbsolute
public Coordinate moveAbsolute(Fragment fragment, Coordinate newCoordinate, boolean okToAddFragment) throws PortletPlacementException(Code)



moveDirection
protected Coordinate moveDirection(Fragment fragment, int deltaCol, int deltaRow) throws PortletPlacementException(Code)



moveDown
public Coordinate moveDown(Fragment fragment) throws PortletPlacementException(Code)



moveLeft
public Coordinate moveLeft(Fragment fragment) throws PortletPlacementException(Code)



moveRight
public Coordinate moveRight(Fragment fragment) throws PortletPlacementException(Code)



moveUp
public Coordinate moveUp(Fragment fragment) throws PortletPlacementException(Code)



remove
public Coordinate remove(Fragment fragment) throws PortletPlacementException(Code)



syncFragments
protected void syncFragments(boolean updateFragmentObjects, int onlyForColumnIndex)(Code)



syncPageFragments
public Page syncPageFragments()(Code)
Takes the internal portlet placement state and stores back out to fragment state the managed page layout with updated fragment state.



verifyFragmentAtExpectedCoordinate
protected Fragment verifyFragmentAtExpectedCoordinate(int colIndex, int rowIndex, Fragment fragment, String sourceDesc) throws PortletPlacementException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.