Java Doc for StackPresentation.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » presentations » 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 » IDE Eclipse » ui workbench » org.eclipse.ui.presentations 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.presentations.StackPresentation

All known Subclasses:   org.eclipse.ui.internal.presentations.util.TabbedStackPresentation,  org.eclipse.ui.internal.presentations.NativeStackPresentation,
StackPresentation
abstract public class StackPresentation implements ISizeProvider(Code)
This represents an object that can supply trim around a IPresentablePart. Clients can implement subclasses to provide the appearance for editor workbooks, view folders, fast views, and detached windows.

StackPresentations do not store any persistent state and cannot directly make changes to the workbench. They are given an IStackPresentationSite reference on creation, which allows them to send events and requests to the workbench. However, the workbench is free to ignore these requests. The workbench will call one of the public methods on StackPresentation when (and if) the presentation is expected to change state.

For example, if the user clicks a button that is intended to close a part, the StackPresentation will send a close request to its site, but should not assume that the part has been closed until the workbench responds with a call StackPresentation.remove.


since:
   3.0


Field Summary
final public static  intAS_ACTIVE_FOCUS
    
final public static  intAS_ACTIVE_NOFOCUS
    
final public static  intAS_INACTIVE
     Inactive state.

Constructor Summary
protected  StackPresentation(IStackPresentationSite stackSite)
     Constructs a new stack presentation with the given site.

Method Summary
abstract public  voidaddPart(IPresentablePart newPart, Object cookie)
     Adds the given part to the stack.
public  PointcomputeMinimumSize()
     Returns the minimum size for this stack.
public  intcomputePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredResult)
    
abstract public  voiddispose()
     Disposes all SWT resources being used by the stack.
abstract public  StackDropResultdragOver(Control currentControl, Point location)
     This method is invoked whenever a part is dragged over the stack's control.
abstract public  ControlgetControl()
    
protected  IStackPresentationSitegetSite()
     Returns the presentation site (not null).
public  intgetSizeFlags(boolean width)
    
abstract public  Control[]getTabList(IPresentablePart part)
     Returns the tab-key traversal order for the given IPresentablePart.
public  voidmovePart(IPresentablePart toMove, Object cookie)
     Moves a part to a new location as the result of a drag/drop operation within this presentation.
abstract public  voidremovePart(IPresentablePart oldPart)
     Removes the given part from the stack.
public  voidrestoreState(IPresentationSerializer context, IMemento memento)
     Restores the state of this presentation to a previously saved state.
public  voidsaveState(IPresentationSerializer context, IMemento memento)
     Saves the state of this presentation to the given memento.
abstract public  voidselectPart(IPresentablePart toSelect)
     Brings the specified part to the foreground.
abstract public  voidsetActive(int newState)
     This is invoked to notify the presentation that its activation state has changed.
abstract public  voidsetBounds(Rectangle bounds)
     Sets the bounding rectangle for this presentation.
abstract public  voidsetState(int state)
     Sets the state of the presentation.
abstract public  voidsetVisible(boolean isVisible)
     This causes the presentation to become visible or invisible.
abstract public  voidshowPaneMenu()
    
public  voidshowPartList()
     Instructs the presentation to display a list of all parts in the stack, and allow the user to change the selection using the keyboard.
abstract public  voidshowSystemMenu()
    

Field Detail
AS_ACTIVE_FOCUS
final public static int AS_ACTIVE_FOCUS(Code)
Activation state indicating that one of the parts in the presentation currently has focus



AS_ACTIVE_NOFOCUS
final public static int AS_ACTIVE_NOFOCUS(Code)
Activation state indicating that none of the parts in the presentation have focus, but one of the parts is being used as the context for global menus and toolbars



AS_INACTIVE
final public static int AS_INACTIVE(Code)
Inactive state. This is the default state for deselected presentations.




Constructor Detail
StackPresentation
protected StackPresentation(IStackPresentationSite stackSite)(Code)
Constructs a new stack presentation with the given site.
Parameters:
  stackSite - the stack site




Method Detail
addPart
abstract public void addPart(IPresentablePart newPart, Object cookie)(Code)
Adds the given part to the stack. The presentation is free to determine where the part should be inserted. If the part is being inserted as the result of a drag/drop operation, it will be given a cookie identifying the drop location. Has no effect if an identical part is already in the presentation.
Parameters:
  newPart - the new part to add (not null)
Parameters:
  cookie - an identifier for a drop location, or null. When the presentationattaches a cookie to a StackDropResult, that cookie is passed back intoaddPart when a part is actually dropped in that location.



computeMinimumSize
public Point computeMinimumSize()(Code)
Returns the minimum size for this stack. The stack is prevented from being resized smaller than this amount, and this is used as the default size for the stack when it is minimized. Typically, this is the amount of space required to fit the minimize, close, and maximize buttons and one tab. the minimum size for this stack (not null)



computePreferredSize
public int computePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredResult)(Code)



dispose
abstract public void dispose()(Code)
Disposes all SWT resources being used by the stack. This is the last method that will be invoked on the stack.



dragOver
abstract public StackDropResult dragOver(Control currentControl, Point location)(Code)
This method is invoked whenever a part is dragged over the stack's control. It returns a StackDropResult if and only if the part may be dropped in this location.
Parameters:
  currentControl - the control being dragged over
Parameters:
  location - cursor location (display coordinates) a StackDropResult or null if the presentation does not havea drop target in this location.



getControl
abstract public Control getControl()(Code)
Returns the control for this presentation the control for this presentation (not null)



getSite
protected IStackPresentationSite getSite()(Code)
Returns the presentation site (not null). IStackPresentationSite



getSizeFlags
public int getSizeFlags(boolean width)(Code)



getTabList
abstract public Control[] getTabList(IPresentablePart part)(Code)
Returns the tab-key traversal order for the given IPresentablePart.
Parameters:
  part - the part the tab-key traversal order



movePart
public void movePart(IPresentablePart toMove, Object cookie)(Code)
Moves a part to a new location as the result of a drag/drop operation within this presentation.
Parameters:
  toMove - a part that already belongs to this presentation
Parameters:
  cookie - a drop cookie returned by StackPresentation#dragOver
since:
   3.1



removePart
abstract public void removePart(IPresentablePart oldPart)(Code)
Removes the given part from the stack.
Parameters:
  oldPart - the part to remove (not null)



restoreState
public void restoreState(IPresentationSerializer context, IMemento memento)(Code)
Restores the state of this presentation to a previously saved state.
Parameters:
  context - object that can be used to find IPresentableParts given string IDs (thismay be a temporary object - the presentation should not keep any references to it)
Parameters:
  memento - memento where the data will be saved



saveState
public void saveState(IPresentationSerializer context, IMemento memento)(Code)
Saves the state of this presentation to the given memento.
Parameters:
  context - object that can be used to generate unique IDs for IPresentableParts (thismay be a temporary object - the presentation should not keep any references to it)
Parameters:
  memento - memento where the data will be saved



selectPart
abstract public void selectPart(IPresentablePart toSelect)(Code)
Brings the specified part to the foreground. This should not affect the current focus.
Parameters:
  toSelect - the new active part (not null)



setActive
abstract public void setActive(int newState)(Code)
This is invoked to notify the presentation that its activation state has changed. StackPresentations can have three possible activation states (see the AS_* constants above)
Parameters:
  newState - one of AS_INACTIVE, AS_ACTIVE, or AS_ACTIVE_NOFOCUS



setBounds
abstract public void setBounds(Rectangle bounds)(Code)
Sets the bounding rectangle for this presentation.
Parameters:
  bounds - new bounding rectangle (not null)



setState
abstract public void setState(int state)(Code)
Sets the state of the presentation. That is, notifies the presentation that is has been minimized, maximized, or restored. Note that this method is the only way that a presentation is allowed to change its state.

If a presentation wishes to minimize itself, it must call setState on its associated IStackPresentationSite. If the site chooses to respond to the state change, it will call this method at the correct time. The presentation should not call this method directly.


Parameters:
  state - one of the IStackPresentationSite.STATE_* constants.



setVisible
abstract public void setVisible(boolean isVisible)(Code)
This causes the presentation to become visible or invisible. When a presentation is invisible, it must not respond to user input or modify its parts. For example, a presentations will be made invisible if it belongs to a perspective and the user switches to another perspective.
Parameters:
  isVisible - the state to set visibility to
since:
   3.0



showPaneMenu
abstract public void showPaneMenu()(Code)
Instructs the presentation to display the pane menu



showPartList
public void showPartList()(Code)
Instructs the presentation to display a list of all parts in the stack, and allow the user to change the selection using the keyboard.



showSystemMenu
abstract public void showSystemMenu()(Code)
Instructs the presentation to display the system menu



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.