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


java.lang.Object
   org.eclipse.ui.internal.LayoutPart
      org.eclipse.ui.internal.PartStack

All known Subclasses:   org.eclipse.ui.internal.ViewStack,  org.eclipse.ui.internal.EditorStack,
PartStack
abstract public class PartStack extends LayoutPart implements ILayoutContainer(Code)
Implements the common behavior for stacks of Panes (ie: EditorStack and ViewStack) This layout container has PartPanes as children and belongs to a PartSashContainer.
since:
   3.0


Field Summary
final public static  intPROP_SELECTION
    
protected  intappearance
    
protected  booleanisMinimized
    
protected  DefaultStackPresentationSitepresentationSite
    
protected  IMementosavedPresentationState
    

Constructor Summary
public  PartStack(int appearance)
    
public  PartStack(int appearance, AbstractPresentationFactory factory)
    

Method Summary
public  voidadd(LayoutPart child)
    
protected  voidadd(LayoutPart newChild, Object cookie)
    
public  voidaddListener(IPropertyListener listener)
     Adds a property listener to this stack.
abstract protected  voidaddSystemActions(IMenuManager menuManager)
    
public  booleanallowsAdd(LayoutPart toAdd)
    
public  booleanallowsAutoFocus()
    
abstract protected  booleanallowsDrop(PartPane part)
    
protected static  voidappendToGroupIfPossible(IMenuManager m, String groupId, ContributionItem item)
    
abstract protected  booleancanMoveFolder()
    
public  booleanchildIsZoomed(LayoutPart toTest)
    
public  booleanchildObscuredByZoom(LayoutPart toTest)
    
public  voidchildRequestZoomIn(LayoutPart toZoom)
    
public  voidchildRequestZoomOut()
    
protected  voidclose(IPresentablePart[] parts)
    
protected  voidclose(IPresentablePart part)
    
public  intcomputePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)
    
public  voidcopyAppearanceProperties(PartStack copyTo)
     Copies all appearance related data from this stack to the given stack.
public  voidcreateControl(Composite parent)
    
public  voidcreateControl(Composite parent, StackPresentation presentation)
    
public  IDropTargetcreateDropTarget(PartPane pane, StackDropResult result)
    
abstract protected  voidderefPart(LayoutPart toDeref)
    
public  voiddescribeLayout(StringBuffer buf)
    
public  voiddispose()
    
public  voidfindSashes(LayoutPart part, PartPane.Sashes sashes)
    
public  intgetActive()
    
public  RectanglegetBounds()
     Gets the presentation bounds.
public  LayoutPart[]getChildren()
    
public  ControlgetControl()
    
public  IDropTargetgetDropTarget(Object draggedObject, Point position)
    
protected  AbstractPresentationFactorygetFactory()
    
public  intgetItemCount()
     Answer the number of children.
protected  WorkbenchPagegetPage()
    
protected  LayoutPartgetPaneFor(IPresentablePart part)
     Returns the LayoutPart for the given IPresentablePart, or null if the given IPresentablePart is not in this stack.
public  CompositegetParent()
     Get the parent control.
public  ListgetPresentableParts()
    
protected  StackPresentationgetPresentation()
    
protected  IStackPresentationSitegetPresentationSite()
    
public  StringgetProperty(String id)
    
public  IMementogetSavedPresentationState()
    
protected  IPresentablePartgetSelectedPart()
    
public  PartPanegetSelection()
     Returns the visible child.
public  intgetSizeFlags(boolean horizontal)
    
public  intgetState()
    
public  Control[]getTabList(LayoutPart part)
    
protected  voidhandleDeferredEvents()
    
public  booleanisDisposed()
    
abstract protected  booleanisMoveable(IPresentablePart part)
    
final protected  booleanisStandalone()
    
public  booleanisZoomed()
    
public  voidpaneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard)
    
protected  voidrefreshPresentationState()
    
public  voidremove(LayoutPart child)
    
public  voidremoveListener(IPropertyListener listener)
    
public  voidreparent(Composite newParent)
     Reparent a part.
public  voidreplace(LayoutPart oldChild, LayoutPart newChild)
    
public  IStatusrestoreState(IMemento memento)
    
protected  voidsavePresentationState()
     Saves the current state of the presentation to savedPresentationState, if the presentation exists.
public  IStatussaveState(IMemento memento)
    
public  voidsetActive(boolean isActive)
    
public  voidsetActive(int activeState)
     Set the active appearence on the tab folder.
public  voidsetBounds(Rectangle r)
     Sets the presentation bounds.
public  voidsetMinimized(boolean minimized)
     Sets the minimized state for this stack.
public  voidsetPresentationState(int newState)
     Explicitly sets the presentation state.
public  voidsetProperty(String id, String value)
    
public  voidsetSelection(LayoutPart part)
    
protected  voidsetState(int newState)
    
public  voidsetVisible(boolean makeVisible)
    
public  voidsetZoomed(boolean isZoomed)
     Called by the workbench page to notify this part that it has been zoomed or unzoomed.
public  voidshowPaneMenu()
    
public  voidshowPartList()
    
public  voidshowSystemMenu()
    
protected  voidsmartUnzoom()
    
abstract protected  booleansupportsState(int newState)
    
public  voidtestInvariants()
     Tests the integrity of this object.
abstract protected  voidupdateActions(PresentablePart current)
    

Field Detail
PROP_SELECTION
final public static int PROP_SELECTION(Code)



appearance
protected int appearance(Code)



isMinimized
protected boolean isMinimized(Code)



presentationSite
protected DefaultStackPresentationSite presentationSite(Code)



savedPresentationState
protected IMemento savedPresentationState(Code)




Constructor Detail
PartStack
public PartStack(int appearance)(Code)
Creates a new PartStack, given a constant determining which presentation to use
Parameters:
  appearance - one of the PresentationFactoryUtil.ROLE_* constants



PartStack
public PartStack(int appearance, AbstractPresentationFactory factory)(Code)
Creates a new part stack that uses the given custom presentation factory
Parameters:
  appearance -
Parameters:
  factory - custom factory to use (or null to use the default)




Method Detail
add
public void add(LayoutPart child)(Code)
See IVisualContainer#add



add
protected void add(LayoutPart newChild, Object cookie)(Code)
Add a part at a particular position



addListener
public void addListener(IPropertyListener listener)(Code)
Adds a property listener to this stack. The listener will receive a PROP_SELECTION event whenever the result of getSelection changes
Parameters:
  listener -



addSystemActions
abstract protected void addSystemActions(IMenuManager menuManager)(Code)



allowsAdd
public boolean allowsAdd(LayoutPart toAdd)(Code)



allowsAutoFocus
public boolean allowsAutoFocus()(Code)



allowsDrop
abstract protected boolean allowsDrop(PartPane part)(Code)



appendToGroupIfPossible
protected static void appendToGroupIfPossible(IMenuManager m, String groupId, ContributionItem item)(Code)



canMoveFolder
abstract protected boolean canMoveFolder()(Code)



childIsZoomed
public boolean childIsZoomed(LayoutPart toTest)(Code)



childObscuredByZoom
public boolean childObscuredByZoom(LayoutPart toTest)(Code)



childRequestZoomIn
public void childRequestZoomIn(LayoutPart toZoom)(Code)



childRequestZoomOut
public void childRequestZoomOut()(Code)



close
protected void close(IPresentablePart[] parts)(Code)

Parameters:
  parts -



close
protected void close(IPresentablePart part)(Code)

Parameters:
  part -



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



copyAppearanceProperties
public void copyAppearanceProperties(PartStack copyTo)(Code)
Copies all appearance related data from this stack to the given stack.



createControl
public void createControl(Composite parent)(Code)



createControl
public void createControl(Composite parent, StackPresentation presentation)(Code)



createDropTarget
public IDropTarget createDropTarget(PartPane pane, StackDropResult result)(Code)



derefPart
abstract protected void derefPart(LayoutPart toDeref)(Code)



describeLayout
public void describeLayout(StringBuffer buf)(Code)



dispose
public void dispose()(Code)
See LayoutPart#dispose



findSashes
public void findSashes(LayoutPart part, PartPane.Sashes sashes)(Code)



getActive
public int getActive()(Code)



getBounds
public Rectangle getBounds()(Code)
Gets the presentation bounds.



getChildren
public LayoutPart[] getChildren()(Code)
See IVisualContainer#getChildren



getControl
public Control getControl()(Code)



getDropTarget
public IDropTarget getDropTarget(Object draggedObject, Point position)(Code)



getFactory
protected AbstractPresentationFactory getFactory()(Code)



getItemCount
public int getItemCount()(Code)
Answer the number of children.



getPage
protected WorkbenchPage getPage()(Code)



getPaneFor
protected LayoutPart getPaneFor(IPresentablePart part)(Code)
Returns the LayoutPart for the given IPresentablePart, or null if the given IPresentablePart is not in this stack. Returns null if given a null argument.
Parameters:
  part - to locate or null



getParent
public Composite getParent()(Code)
Get the parent control.



getPresentableParts
public List getPresentableParts()(Code)
Returns a list of IPresentablePart



getPresentation
protected StackPresentation getPresentation()(Code)



getPresentationSite
protected IStackPresentationSite getPresentationSite()(Code)



getProperty
public String getProperty(String id)(Code)



getSavedPresentationState
public IMemento getSavedPresentationState()(Code)
Returns the savedPresentationState.



getSelectedPart
protected IPresentablePart getSelectedPart()(Code)
Returns the currently selected IPresentablePart, or null if none



getSelection
public PartPane getSelection()(Code)
Returns the visible child. the currently visible part, or null if none



getSizeFlags
public int getSizeFlags(boolean horizontal)(Code)



getState
public int getState()(Code)



getTabList
public Control[] getTabList(LayoutPart part)(Code)



handleDeferredEvents
protected void handleDeferredEvents()(Code)



isDisposed
public boolean isDisposed()(Code)



isMoveable
abstract protected boolean isMoveable(IPresentablePart part)(Code)



isStandalone
final protected boolean isStandalone()(Code)



isZoomed
public boolean isZoomed()(Code)



paneDragStart
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard)(Code)



refreshPresentationState
protected void refreshPresentationState()(Code)



remove
public void remove(LayoutPart child)(Code)
See IVisualContainer#remove



removeListener
public void removeListener(IPropertyListener listener)(Code)



reparent
public void reparent(Composite newParent)(Code)
Reparent a part. Also reparent visible children...



replace
public void replace(LayoutPart oldChild, LayoutPart newChild)(Code)
See IVisualContainer#replace



restoreState
public IStatus restoreState(IMemento memento)(Code)

See Also:   IPersistable



savePresentationState
protected void savePresentationState()(Code)
Saves the current state of the presentation to savedPresentationState, if the presentation exists.



saveState
public IStatus saveState(IMemento memento)(Code)

See Also:   IPersistable



setActive
public void setActive(boolean isActive)(Code)



setActive
public void setActive(int activeState)(Code)
Set the active appearence on the tab folder.
Parameters:
  active -



setBounds
public void setBounds(Rectangle r)(Code)
Sets the presentation bounds.



setMinimized
public void setMinimized(boolean minimized)(Code)
Sets the minimized state for this stack. The part may call this method to minimize or restore itself. The minimized state only affects the view when unzoomed in the 3.0 presentation (in 3.3 it's handled by the ViewStack directly and works as expected).



setPresentationState
public void setPresentationState(int newState)(Code)
Explicitly sets the presentation state. This is used by the new min/max code to force the CTabFolder to show the proper state without going through the 'setState' code (which causes nasty side-effects.
Parameters:
  newState - The state to set the presentation to



setProperty
public void setProperty(String id, String value)(Code)



setSelection
public void setSelection(LayoutPart part)(Code)



setState
protected void setState(int newState)(Code)



setVisible
public void setVisible(boolean makeVisible)(Code)



setZoomed
public void setZoomed(boolean isZoomed)(Code)
Called by the workbench page to notify this part that it has been zoomed or unzoomed. The PartStack should not call this method itself -- it must request zoom changes by talking to the WorkbenchPage.



showPaneMenu
public void showPaneMenu()(Code)



showPartList
public void showPartList()(Code)



showSystemMenu
public void showSystemMenu()(Code)



smartUnzoom
protected void smartUnzoom()(Code)



supportsState
abstract protected boolean supportsState(int newState)(Code)



testInvariants
public void testInvariants()(Code)
Tests the integrity of this object. Throws an exception if the object's state is invalid. For use in test suites.



updateActions
abstract protected void updateActions(PresentablePart current)(Code)
Subclasses should override this method to update the enablement state of their actions



Fields inherited from org.eclipse.ui.internal.LayoutPart
final public static String PROP_VISIBILITY(Code)(Java Doc)
protected ILayoutContainer container(Code)(Java Doc)
protected String id(Code)(Java Doc)

Methods inherited from org.eclipse.ui.internal.LayoutPart
public boolean allowsAdd(LayoutPart toAdd)(Code)(Java Doc)
public boolean allowsAutoFocus()(Code)(Java Doc)
public boolean childIsZoomed(LayoutPart childToTest)(Code)(Java Doc)
public boolean childObscuredByZoom(LayoutPart toTest)(Code)(Java Doc)
public void childRequestZoomIn(LayoutPart toZoom)(Code)(Java Doc)
public void childRequestZoomOut()(Code)(Java Doc)
public int computePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)(Code)(Java Doc)
abstract public void createControl(Composite parent)(Code)(Java Doc)
final public void deferUpdates(boolean shouldDefer)(Code)(Java Doc)
public void describeLayout(StringBuffer buf)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
public void flushLayout()(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public String getCompoundId()(Code)(Java Doc)
public ILayoutContainer getContainer()(Code)(Java Doc)
abstract public Control getControl()(Code)(Java Doc)
public IDropTarget getDropTarget(Object draggedObject, Point displayCoordinates)(Code)(Java Doc)
public String getID()(Code)(Java Doc)
public LayoutPart getPart()(Code)(Java Doc)
public String getPlaceHolderId()(Code)(Java Doc)
public Shell getShell()(Code)(Java Doc)
public Point getSize()(Code)(Java Doc)
public int getSizeFlags(boolean horizontal)(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public IWorkbenchWindow getWorkbenchWindow()(Code)(Java Doc)
protected void handleDeferredEvents()(Code)(Java Doc)
public boolean isCompressible()(Code)(Java Doc)
final protected boolean isDeferred()(Code)(Java Doc)
public boolean isDocked()(Code)(Java Doc)
final public boolean isObscuredByZoom()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void moveAbove(Control refControl)(Code)(Java Doc)
public void reparent(Composite newParent)(Code)(Java Doc)
final public void requestZoomIn()(Code)(Java Doc)
final public void requestZoomOut()(Code)(Java Doc)
public void resizeChild(LayoutPart childThatChanged)(Code)(Java Doc)
public void setBounds(Rectangle r)(Code)(Java Doc)
public void setContainer(ILayoutContainer container)(Code)(Java Doc)
public void setFocus()(Code)(Java Doc)
public void setID(String str)(Code)(Java Doc)
public void setVisible(boolean makeVisible)(Code)(Java Doc)
public void setZoomed(boolean isZoomed)(Code)(Java Doc)
protected void startDeferringEvents()(Code)(Java Doc)
public void testInvariants()(Code)(Java Doc)

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.