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

All known Subclasses:   org.eclipse.ui.internal.EditorPane,  org.eclipse.ui.internal.ViewPane,
PartPane
abstract public class PartPane extends LayoutPart implements IPropertyListener,Listener,IPropertyChangeListener(Code)
Provides the common behavior for both views and editor panes. TODO: Delete ViewPane and EditorPane, and make this class non-abstract. TODO: Stop subclassing LayoutPart. This class cannot be interchanged with other LayoutParts. Pointers that refer to PartPane instances should do so directly rather than referring to LayoutPart and downcasting. The getPresentablePart() method only applies to PartPanes, and should be removed from LayoutPart.

Inner Class :public static class Sashes

Field Summary
final public static  StringPROP_ZOOMED
    
protected  Compositecontrol
    
protected  WorkbenchPagepage
    
protected  IWorkbenchPartReferencepartReference
    

Constructor Summary
public  PartPane(IWorkbenchPartReference partReference, WorkbenchPage workbenchPage)
     Construct a pane for a part.

Method Summary
public  voidaddPartPropertyListener(IPropertyChangeListener listener)
    
public  voidaddPropertyListener(IPropertyListener listener)
    
protected  voidaddSizeItem(Menu sizeMenu, String labelMessage, Sash sash)
    
protected  voidaddSizeItems(Menu sizeMenu)
     Add the Left,Right,Up,Botton menu items to the Size menu.
public  voidaddSizeMenuItem(Menu menu, int index)
    
public  booleanallowsAutoFocus()
    
public  intcomputePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)
    
public  voidcreateControl(Composite parent)
    
abstract protected  voidcreateTitleBar()
     Create a title bar for the pane if required.
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()
    
protected  voiddoDock()
     Pin this part.
abstract public  voiddoHide()
     User has requested to close the pane.
protected  voiddoZoom()
     Zooms in on the part contained in this pane.
protected  SashesfindSashes()
     Finds and return the sashes around this part.
public  voidfirePartPropertyChange(PropertyChangeEvent event)
    
public  voidfirePropertyChange(int propertyId)
    
public  RectanglegetBounds()
     Gets the presentation bounds.
public  ControlgetControl()
     Get the control.
public  booleangetInLayout()
    
public  WorkbenchPagegetPage()
     Returns the workbench page of this pane.
public  IWorkbenchPartReferencegetPartReference()
     Answer the part child.
public  intgetSizeFlags(boolean horizontal)
    
public  PartStackgetStack()
     Returns the PartStack that contains this PartPane, or null if none.
abstract public  ControlgetToolBar()
    
public  voidhandleEvent(Event event)
    
public  booleanhasViewMenu()
    
public  booleanisBusy()
    
abstract public  booleanisCloseable()
    
public  booleanisZoomed()
    
public  voidmoveAbove(Control refControl)
     Move the control over another one.
protected  voidmoveSash(Sash sash)
    
public static  voidmoveSash(Sash sash, LayoutPart toGetFocusWhenDone)
    
public  voidpropertyChange(PropertyChangeEvent event)
    
public  voidpropertyChanged(Object source, int propId)
    
public  voidremoveContributions()
     Clears all contribution items from the contribution managers (this is done separately from dispose() since it is done after the part is disposed).
public  voidremovePartPropertyListener(IPropertyChangeListener listener)
    
public  voidremovePropertyListener(IPropertyListener listener)
    
public  voidrequestActivation()
     Notify the workbook page that the part pane has been activated by the user.
public  voidsetBusy(boolean isBusy)
     Set the busy state of the pane.
public  voidsetContainer(ILayoutContainer container)
     Sets the parent for this part.
public  voidsetFocus()
     Sets focus to this part.
public  voidsetInLayout(boolean inLayout)
    
public  voidsetVisible(boolean makeVisible)
     Shows the receiver if visible is true otherwise hide it.
public  voidsetWorkbenchPage(WorkbenchPage workbenchPage)
     Sets the workbench page of the view.
public  voidsetZoomed(boolean isZoomed)
    
abstract  voidshellActivated()
     Informs the pane that it's window shell has been activated.
abstract  voidshellDeactivated()
     Informs the pane that it's window shell has been deactivated.
abstract public  voidshowFocus(boolean inFocus)
     Indicate focus in part.
public  voidshowHighlight()
     Show a highlight for the receiver if it is not currently the part in the front of its presentation.
public  voidshowPaneMenu()
     Show a title label menu for this pane.
public  voidshowSystemMenu()
     Show the context menu for this part.
public  voidshowViewMenu(Point location)
    
public  LayoutParttargetPartFor(LayoutPart dragSource)
    

Field Detail
PROP_ZOOMED
final public static String PROP_ZOOMED(Code)



control
protected Composite control(Code)



page
protected WorkbenchPage page(Code)



partReference
protected IWorkbenchPartReference partReference(Code)




Constructor Detail
PartPane
public PartPane(IWorkbenchPartReference partReference, WorkbenchPage workbenchPage)(Code)
Construct a pane for a part.




Method Detail
addPartPropertyListener
public void addPartPropertyListener(IPropertyChangeListener listener)(Code)



addPropertyListener
public void addPropertyListener(IPropertyListener listener)(Code)



addSizeItem
protected void addSizeItem(Menu sizeMenu, String labelMessage, Sash sash)(Code)
Add a menu item to the Size Menu



addSizeItems
protected void addSizeItems(Menu sizeMenu)(Code)
Add the Left,Right,Up,Botton menu items to the Size menu.



addSizeMenuItem
public void addSizeMenuItem(Menu menu, int index)(Code)



allowsAutoFocus
public boolean allowsAutoFocus()(Code)



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



createControl
public void createControl(Composite parent)(Code)



createTitleBar
abstract protected void createTitleBar()(Code)
Create a title bar for the pane if required.



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 do not need to be translated.
Parameters:
  buf -



dispose
public void dispose()(Code)



doDock
protected void doDock()(Code)
Pin this part.



doHide
abstract public void doHide()(Code)
User has requested to close the pane. Take appropriate action depending on type.



doZoom
protected void doZoom()(Code)
Zooms in on the part contained in this pane.



findSashes
protected Sashes findSashes()(Code)
Finds and return the sashes around this part.



firePartPropertyChange
public void firePartPropertyChange(PropertyChangeEvent event)(Code)



firePropertyChange
public void firePropertyChange(int propertyId)(Code)



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



getControl
public Control getControl()(Code)
Get the control.



getInLayout
public boolean getInLayout()(Code)



getPage
public WorkbenchPage getPage()(Code)
Returns the workbench page of this pane.



getPartReference
public IWorkbenchPartReference getPartReference()(Code)
Answer the part child.



getSizeFlags
public int getSizeFlags(boolean horizontal)(Code)



getStack
public PartStack getStack()(Code)
Returns the PartStack that contains this PartPane, or null if none.



getToolBar
abstract public Control getToolBar()(Code)



handleEvent
public void handleEvent(Event event)(Code)

See Also:   Listener



hasViewMenu
public boolean hasViewMenu()(Code)



isBusy
public boolean isBusy()(Code)



isCloseable
abstract public boolean isCloseable()(Code)

since:
   3.1



isZoomed
public boolean isZoomed()(Code)
Return whether the pane is zoomed or not



moveAbove
public void moveAbove(Control refControl)(Code)
Move the control over another one.



moveSash
protected void moveSash(Sash sash)(Code)
Enable the user to resize this part using the keyboard to move the specified sash



moveSash
public static void moveSash(Sash sash, LayoutPart toGetFocusWhenDone)(Code)



propertyChange
public void propertyChange(PropertyChangeEvent event)(Code)



propertyChanged
public void propertyChanged(Object source, int propId)(Code)



removeContributions
public void removeContributions()(Code)
Clears all contribution items from the contribution managers (this is done separately from dispose() since it is done after the part is disposed). This is a bit of a hack. Really, the contribution managers should be part of the site, not the PartPane. If these were moved elsewhere, then disposal of the PartPane would be atomic and this method could be removed.



removePartPropertyListener
public void removePartPropertyListener(IPropertyChangeListener listener)(Code)



removePropertyListener
public void removePropertyListener(IPropertyListener listener)(Code)



requestActivation
public void requestActivation()(Code)
Notify the workbook page that the part pane has been activated by the user.



setBusy
public void setBusy(boolean isBusy)(Code)
Set the busy state of the pane.



setContainer
public void setContainer(ILayoutContainer container)(Code)
Sets the parent for this part.



setFocus
public void setFocus()(Code)
Sets focus to this part.



setInLayout
public void setInLayout(boolean inLayout)(Code)



setVisible
public void setVisible(boolean makeVisible)(Code)
Shows the receiver if visible is true otherwise hide it.



setWorkbenchPage
public void setWorkbenchPage(WorkbenchPage workbenchPage)(Code)
Sets the workbench page of the view.



setZoomed
public void setZoomed(boolean isZoomed)(Code)
Set whether the pane is zoomed or not



shellActivated
abstract void shellActivated()(Code)
Informs the pane that it's window shell has been activated.



shellDeactivated
abstract void shellDeactivated()(Code)
Informs the pane that it's window shell has been deactivated.



showFocus
abstract public void showFocus(boolean inFocus)(Code)
Indicate focus in part.



showHighlight
public void showHighlight()(Code)
Show a highlight for the receiver if it is not currently the part in the front of its presentation.



showPaneMenu
public void showPaneMenu()(Code)
Show a title label menu for this pane.



showSystemMenu
public void showSystemMenu()(Code)
Show the context menu for this part.



showViewMenu
public void showViewMenu(Point location)(Code)

Parameters:
  location -



targetPartFor
public LayoutPart targetPartFor(LayoutPart dragSource)(Code)

See Also:    IPartDropTarget::targetPartFor



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.