Java Doc for PartSashContainer.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.PartSashContainer

All known Subclasses:   org.eclipse.ui.internal.EditorSashContainer,  org.eclipse.ui.internal.ViewSashContainer,
PartSashContainer
abstract public class PartSashContainer extends LayoutPart implements ILayoutContainer,IDragOverListener(Code)
Abstract container that groups various layout parts (possibly other containers) together as a unit. Manages the placement and size of these layout part based on the location of sashes within the container.

Inner Class :protected static class RelationshipInfo

Field Summary
 booleanactive
    
protected  ArrayListchildren
    
 booleanlayoutDirty
    
protected  WorkbenchPagepage
    
protected  Compositeparent
    
protected  ControlListenerresizeListener
    
protected  LayoutTreeroot
    

Constructor Summary
public  PartSashContainer(String id, WorkbenchPage page, Composite parentWidget)
    

Method Summary
public  voidadd(LayoutPart child)
     Add a part.
public  voidadd(LayoutPart child, int relationship, float ratio, LayoutPart relative)
     Add a part relative to another.
 voidadd(LayoutPart child, int relationship, int left, int right, LayoutPart relative)
    
protected  voidaddChild(RelationshipInfo info)
    
 voidaddChildForPlaceholder(LayoutPart child, LayoutPart placeholder)
     Adds the child using ratio and position attributes from the specified placeholder without replacing the placeholder FIXME: I believe there is a bug in computeRelation() when a part is positioned relative to the editorarea.
 voidaddEnhanced(LayoutPart child, int swtDirectionConstant, float ratioForNewPart, LayoutPart relative)
     Add a new part relative to another.
public  booleanallowsAutoFocus()
    
public  booleanallowsBorder()
    
protected  voidchildAdded(LayoutPart child)
     Notification that a child layout part has been added to the container.
public  booleanchildIsZoomed(LayoutPart toTest)
    
public  booleanchildObscuredByZoom(LayoutPart toTest)
    
protected  voidchildRemoved(LayoutPart child)
     Notification that a child layout part has been removed from the container.
public  voidchildRequestZoomIn(LayoutPart toZoom)
    
public  voidchildRequestZoomOut()
    
public  intcomputePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)
     Returns the maximum size that can be utilized by this part if the given width and height are available.
public  RelationshipInfo[]computeRelation()
     Returns an array with all the relation ship between the parts.
public  voidcreateControl(Composite parentWidget)
    
abstract protected  CompositecreateParent(Composite parentWidget)
     Subclasses override this method to specify the composite to use to parent all children layout parts it contains.
abstract protected  PartStackcreateStack()
    
protected  voidderefPart(LayoutPart sourcePart)
    
public  voiddescribeLayout(StringBuffer buf)
     Writes a description of the layout to the given string buffer. This is used for drag-drop test suites to determine if two layouts are the same.
public  voiddispose()
    
abstract protected  voiddisposeParent()
     Subclasses override this method to dispose of any swt resources created during createParent.
public  voiddisposeSashes()
     Dispose all sashs used in this perspective.
public  IDropTargetdrag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle)
    
protected  voiddropObject(PartPane[] toDrop, LayoutPart visiblePart, LayoutPart targetPart, int side)
    
public  LayoutPartfindBottomRight()
     Return the most bottom right part or null if none.
public  voidfindSashes(LayoutPart pane, PartPane.Sashes sashes)
     Find the sashs around the specified part.
public  voidflushLayout()
    
public  RectanglegetBounds()
    
public  LayoutPart[]getChildren()
    
public  ControlgetControl()
    
protected  floatgetDockingRatio(LayoutPart dragged, LayoutPart target)
    
public  LayoutTreegetLayoutTree()
    
public  WorkbenchPagegetPage()
     For themes.
public  CompositegetParent()
     Returns the composite used to parent all the layout parts contained within.
public  intgetSizeFlags(boolean width)
    
protected  intgetVisibleChildrenCount(ILayoutContainer container)
    
abstract protected  LayoutPartgetVisiblePart(ILayoutContainer container)
    
public  LayoutPartgetZoomedPart()
    
protected  voidhandleDeferredEvents()
    
protected  booleanisChild(LayoutPart part)
    
abstract public  booleanisPaneType(LayoutPart toTest)
    
abstract public  booleanisStackType(LayoutPart toTest)
     Returns true iff this PartSashContainer allows its parts to be stacked onto the given container.
public  booleanisZoomed()
     Returns whether this container is zoomed.
static  intmeasureTree(Rectangle outerBounds, LayoutTree toMeasure, boolean horizontal)
    
public  LayoutPartpickPartToZoom()
    
public  voidremove(LayoutPart child)
     Remove a part.
public  voidreplace(LayoutPart oldChild, LayoutPart newChild)
     Replace one part with another.
public  voidresizeChild(LayoutPart childThatChanged)
    
public  voidsetActive(boolean isActive)
    
public  voidsetBounds(Rectangle r)
    
public  voidsetVisible(boolean makeVisible)
    
abstract protected  voidsetVisiblePart(ILayoutContainer container, LayoutPart visiblePart)
    
public  voidsetZoomed(boolean isZoomed)
    
public  voidstack(LayoutPart newPart, ILayoutContainer container)
    
protected  voidstartDeferringEvents()
    
public  voidtestInvariants()
    

Field Detail
active
boolean active(Code)



children
protected ArrayList children(Code)



layoutDirty
boolean layoutDirty(Code)



page
protected WorkbenchPage page(Code)



parent
protected Composite parent(Code)



resizeListener
protected ControlListener resizeListener(Code)



root
protected LayoutTree root(Code)




Constructor Detail
PartSashContainer
public PartSashContainer(String id, WorkbenchPage page, Composite parentWidget)(Code)




Method Detail
add
public void add(LayoutPart child)(Code)
Add a part.



add
public void add(LayoutPart child, int relationship, float ratio, LayoutPart relative)(Code)
Add a part relative to another. For compatibility only. New code should use addEnhanced, above.
Parameters:
  child - the new part to add
Parameters:
  relationship - one of PageLayout.TOP, PageLayout.BOTTOM, PageLayout.LEFT, or PageLayout.RIGHT
Parameters:
  ratio - a value between 0.0 and 1.0, indicating how much space will be allocated to the UPPER-LEFT pane
Parameters:
  relative - part where the new part will be attached



add
void add(LayoutPart child, int relationship, int left, int right, LayoutPart relative)(Code)
Adds a new child to the container relative to some part
Parameters:
  child -
Parameters:
  relationship -
Parameters:
  left - preferred pixel size of the left/top child
Parameters:
  right - preferred pixel size of the right/bottom child
Parameters:
  relative - relative part



addChild
protected void addChild(RelationshipInfo info)(Code)



addChildForPlaceholder
void addChildForPlaceholder(LayoutPart child, LayoutPart placeholder)(Code)
Adds the child using ratio and position attributes from the specified placeholder without replacing the placeholder FIXME: I believe there is a bug in computeRelation() when a part is positioned relative to the editorarea. We end up with a null relative and 0.0 for a ratio.



addEnhanced
void addEnhanced(LayoutPart child, int swtDirectionConstant, float ratioForNewPart, LayoutPart relative)(Code)
Add a new part relative to another. This should be used in place of add. It differs as follows:
  • relationships are specified using SWT direction constants
  • the ratio applies to the newly added child -- not the upper-left child

Parameters:
  child - new part to add to the layout
Parameters:
  swtDirectionConstant - one of SWT.TOP, SWT.BOTTOM, SWT.LEFT, or SWT.RIGHT
Parameters:
  ratioForNewPart - a value between 0.0 and 1.0 specifying how much space will be allocated for the newly added part
Parameters:
  relative - existing part indicating where the new child should be attached
since:
   3.0



allowsAutoFocus
public boolean allowsAutoFocus()(Code)



allowsBorder
public boolean allowsBorder()(Code)
See ILayoutContainer#allowBorder



childAdded
protected void childAdded(LayoutPart child)(Code)
Notification that a child layout part has been added to the container. Subclasses may override this method to perform any container specific work.



childIsZoomed
public boolean childIsZoomed(LayoutPart toTest)(Code)



childObscuredByZoom
public boolean childObscuredByZoom(LayoutPart toTest)(Code)



childRemoved
protected void childRemoved(LayoutPart child)(Code)
Notification that a child layout part has been removed from the container. Subclasses may override this method to perform any container specific work.



childRequestZoomIn
public void childRequestZoomIn(LayoutPart toZoom)(Code)



childRequestZoomOut
public void childRequestZoomOut()(Code)



computePreferredSize
public int computePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)(Code)
Returns the maximum size that can be utilized by this part if the given width and height are available. Parts can overload this if they have a quantized set of preferred sizes.
Parameters:
  width - available horizontal space (pixels) returns a new point where point.x is <= availableWidth and point.y is <= availableHeight



computeRelation
public RelationshipInfo[] computeRelation()(Code)
Returns an array with all the relation ship between the parts.



createControl
public void createControl(Composite parentWidget)(Code)

See Also:   LayoutPart.getControl



createParent
abstract protected Composite createParent(Composite parentWidget)(Code)
Subclasses override this method to specify the composite to use to parent all children layout parts it contains.



createStack
abstract protected PartStack createStack()(Code)



derefPart
protected void derefPart(LayoutPart sourcePart)(Code)

Parameters:
  sourcePart -



describeLayout
public void describeLayout(StringBuffer buf)(Code)
Writes a description of the layout to the given string buffer. This is used for drag-drop test suites to determine if two layouts are the same. Like a hash code, the description should compare as equal iff the layouts are the same. However, it should be user-readable in order to help debug failed tests. Although these are english readable strings, they should not be translated or equality tests will fail.
Parameters:
  buf -



dispose
public void dispose()(Code)

See Also:   LayoutPart.dispose



disposeParent
abstract protected void disposeParent()(Code)
Subclasses override this method to dispose of any swt resources created during createParent.



disposeSashes
public void disposeSashes()(Code)
Dispose all sashs used in this perspective.



drag
public IDropTarget drag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle)(Code)



dropObject
protected void dropObject(PartPane[] toDrop, LayoutPart visiblePart, LayoutPart targetPart, int side)(Code)



findBottomRight
public LayoutPart findBottomRight()(Code)
Return the most bottom right part or null if none.



findSashes
public void findSashes(LayoutPart pane, PartPane.Sashes sashes)(Code)
Find the sashs around the specified part.



flushLayout
public void flushLayout()(Code)



getBounds
public Rectangle getBounds()(Code)

See Also:   LayoutPart.getBounds



getChildren
public LayoutPart[] getChildren()(Code)

See Also:   ILayoutContainer.getChildren



getControl
public Control getControl()(Code)

See Also:   LayoutPart.getControl



getDockingRatio
protected float getDockingRatio(LayoutPart dragged, LayoutPart target)(Code)



getLayoutTree
public LayoutTree getLayoutTree()(Code)



getPage
public WorkbenchPage getPage()(Code)
For themes. the current WorkbenchPage.



getParent
public Composite getParent()(Code)
Returns the composite used to parent all the layout parts contained within.



getSizeFlags
public int getSizeFlags(boolean width)(Code)



getVisibleChildrenCount
protected int getVisibleChildrenCount(ILayoutContainer container)(Code)



getVisiblePart
abstract protected LayoutPart getVisiblePart(ILayoutContainer container)(Code)

Parameters:
  container -



getZoomedPart
public LayoutPart getZoomedPart()(Code)
Returns the currently zoomed part or null if none the currently zoomed part or null if none
since:
   3.1



handleDeferredEvents
protected void handleDeferredEvents()(Code)



isChild
protected boolean isChild(LayoutPart part)(Code)



isPaneType
abstract public boolean isPaneType(LayoutPart toTest)(Code)



isStackType
abstract public boolean isStackType(LayoutPart toTest)(Code)
Returns true iff this PartSashContainer allows its parts to be stacked onto the given container.
Parameters:
  container -



isZoomed
public boolean isZoomed()(Code)
Returns whether this container is zoomed.



measureTree
static int measureTree(Rectangle outerBounds, LayoutTree toMeasure, boolean horizontal)(Code)



pickPartToZoom
public LayoutPart pickPartToZoom()(Code)



remove
public void remove(LayoutPart child)(Code)
Remove a part.



replace
public void replace(LayoutPart oldChild, LayoutPart newChild)(Code)
Replace one part with another.



resizeChild
public void resizeChild(LayoutPart childThatChanged)(Code)



setActive
public void setActive(boolean isActive)(Code)



setBounds
public void setBounds(Rectangle r)(Code)

See Also:   LayoutPart.setBounds



setVisible
public void setVisible(boolean makeVisible)(Code)



setVisiblePart
abstract protected void setVisiblePart(ILayoutContainer container, LayoutPart visiblePart)(Code)

Parameters:
  container -
Parameters:
  visiblePart -



setZoomed
public void setZoomed(boolean isZoomed)(Code)



stack
public void stack(LayoutPart newPart, ILayoutContainer container)(Code)



startDeferringEvents
protected void startDeferringEvents()(Code)



testInvariants
public void testInvariants()(Code)



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.