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


java.lang.Object
   org.eclipse.ui.internal.presentations.r33.PaneFolder

PaneFolder
final public class PaneFolder (Code)
This class implements the tab folders that contains can contain two toolbars and status text. Wherever possible, the toolbars are aligned with the tabs. If there is not enough room beside the tabs, the toolbars are aligned with the status text. This is the same tab folder that is used to arrange views and editors in Eclipse.

This is closely related to DefaultPartPresentation, but they have different responsibilities. This is essentially a CTabFolder that can manage a toolbar. It should not depend on data structures from the workbench, and its public interface should only use SWT objects or listeners. DefaultPartPresentation uses a PaneFolder to arrange views or editors. Knowledge of higher-level data structures should go there.

Although it is not actually a control, the public interface is much like an SWT control. Implementation-wise, this is actually a combination of a CTabFolder and a ViewForm. It encapsulates the details of moving the toolbar between the CTabFolder and the ViewForm, and provides a simpler interface to the ViewForm/CTabFolder.

To be consistent with SWT composites, this object can deal with its children being disposed without warning. This is treated like a removal.
since:
   3.0



Constructor Summary
public  PaneFolder(Composite parent, int flags)
     Creates a pane folder.

Method Summary
public  voidaboutToResize()
     Optimization: calling this method immediately before setting the control's bounds will allow for improved caching.
public  voidaddButtonListener(PaneFolderButtonListener listener)
    
public  PointcomputeMinimumSize()
    
public  RectanglecomputeTrim(int i, int j, int k, int l)
    
public  CTabItemcreateItem(int style, int index)
    
public  voidflushTopCenterSize()
    
public  PointgetChevronLocation()
    
public  ControlgetContent()
    
public  CompositegetContentParent()
    
public  CompositegetControl()
    
public  CTabItemgetItem(int idx)
    
public  CTabItemgetItem(Point toGet)
    
public  intgetItemCount()
    
public  CTabItem[]getItems()
    
public  CTabItemgetSelection()
    
public  intgetSelectionIndex()
    
public  intgetState()
    
public  intgetTabHeight()
    
public  intgetTabPosition()
    
public  RectanglegetTitleArea()
     Returns the title area (the empty region to the right of the tabs), in the tab folder's coordinate system.
public  ViewFormgetViewForm()
    
public  voidhideTitle()
    
public  intindexOf(CTabItem toFind)
    
public  booleanisDisposed()
    
public  voidlayout(boolean flushCache)
    
protected  voidnotifyButtonListeners(int buttonId)
    
protected  voidnotifyCloseListeners(CTabItem tabItem)
    
protected  voidnotifyShowListeners(CTabFolderEvent event)
    
public  voidremoveButtonListener(PaneFolderButtonListener listener)
    
public  voidsetContent(Control newContent)
    
public  voidsetMaximizeVisible(boolean isVisible)
    
public  voidsetMinimizeVisible(boolean isVisible)
    
public  voidsetMinimumCharacters(int count)
     Changes the minimum number of characters to display in a pane folder tab.
public  voidsetSelection(int selection)
    
public  voidsetSelectionBackground(Color[] bgColors, int[] percentages, boolean vertical)
     Set the selection gradient with the activation state.
public  voidsetSelectionForeground(Color fgColor)
    
public  voidsetSimpleTab(boolean traditionalTab)
    
public  voidsetSingleTab(boolean b)
    
public  voidsetState(int state)
    
public  voidsetTabHeight(int height)
    
public  voidsetTabPosition(int newTabPosition)
    
public  voidsetTopCenter(Control topCenter)
     Sets the top-center control (usually a toolbar), or null if none.
public  voidsetTopLeft(Control topLeft)
    
public  voidsetTopRight(Control topRight)
    
public  voidsetUnselectedCloseVisible(boolean b)
    
public  voidsetUnselectedImageVisible(boolean b)
    
public  voidsetVisible(boolean visible)
     Propogate the visibility change requests to the proxy controls.
public  voidshowMinMax(boolean show)
     Cause the folder to hide or show its Minimize and Maximize affordances.


Constructor Detail
PaneFolder
public PaneFolder(Composite parent, int flags)(Code)
Creates a pane folder. This will create exactly one child control in the given parent.
Parameters:
  parent -
Parameters:
  flags -




Method Detail
aboutToResize
public void aboutToResize()(Code)
Optimization: calling this method immediately before setting the control's bounds will allow for improved caching.



addButtonListener
public void addButtonListener(PaneFolderButtonListener listener)(Code)



computeMinimumSize
public Point computeMinimumSize()(Code)



computeTrim
public Rectangle computeTrim(int i, int j, int k, int l)(Code)

Parameters:
  i -
Parameters:
  j -
Parameters:
  k -
Parameters:
  l -



createItem
public CTabItem createItem(int style, int index)(Code)



flushTopCenterSize
public void flushTopCenterSize()(Code)



getChevronLocation
public Point getChevronLocation()(Code)



getContent
public Control getContent()(Code)



getContentParent
public Composite getContentParent()(Code)



getControl
public Composite getControl()(Code)
Return the main control for this pane folder



getItem
public CTabItem getItem(int idx)(Code)



getItem
public CTabItem getItem(Point toGet)(Code)



getItemCount
public int getItemCount()(Code)



getItems
public CTabItem[] getItems()(Code)



getSelection
public CTabItem getSelection()(Code)



getSelectionIndex
public int getSelectionIndex()(Code)



getState
public int getState()(Code)
Returns the current state of the folder (as shown on the button icons) one of the IStackPresentationSite.STATE_* constants



getTabHeight
public int getTabHeight()(Code)



getTabPosition
public int getTabPosition()(Code)



getTitleArea
public Rectangle getTitleArea()(Code)
Returns the title area (the empty region to the right of the tabs), in the tab folder's coordinate system. the title area (the empty region to the right of the tabs)



getViewForm
public ViewForm getViewForm()(Code)



hideTitle
public void hideTitle()(Code)



indexOf
public int indexOf(CTabItem toFind)(Code)



isDisposed
public boolean isDisposed()(Code)



layout
public void layout(boolean flushCache)(Code)



notifyButtonListeners
protected void notifyButtonListeners(int buttonId)(Code)

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



notifyCloseListeners
protected void notifyCloseListeners(CTabItem tabItem)(Code)
Notifies all listeners that the close button was pressed
Parameters:
  tabItem -



notifyShowListeners
protected void notifyShowListeners(CTabFolderEvent event)(Code)
Notifies all listeners that the user clicked on the chevron
Parameters:
  tabItem -



removeButtonListener
public void removeButtonListener(PaneFolderButtonListener listener)(Code)



setContent
public void setContent(Control newContent)(Code)



setMaximizeVisible
public void setMaximizeVisible(boolean isVisible)(Code)

Parameters:
  isVisible -



setMinimizeVisible
public void setMinimizeVisible(boolean isVisible)(Code)

Parameters:
  isVisible -



setMinimumCharacters
public void setMinimumCharacters(int count)(Code)
Changes the minimum number of characters to display in a pane folder tab. This control how much information will be displayed to the user.
Parameters:
  count - The number of characters to display in the tab folder; thisvalue should be a positive integer.
See Also:   org.eclipse.swt.custom.CTabFolder.setMinimumCharacters(int)
since:
   3.1



setSelection
public void setSelection(int selection)(Code)



setSelectionBackground
public void setSelectionBackground(Color[] bgColors, int[] percentages, boolean vertical)(Code)
Set the selection gradient with the activation state.
Parameters:
  bgColors -
Parameters:
  percentages -
Parameters:
  vertical -
Parameters:
  activationState - one of the StackPresentation AS constants.



setSelectionForeground
public void setSelectionForeground(Color fgColor)(Code)

Parameters:
  fgColor -



setSimpleTab
public void setSimpleTab(boolean traditionalTab)(Code)

Parameters:
  traditionalTab -



setSingleTab
public void setSingleTab(boolean b)(Code)

Parameters:
  b -



setState
public void setState(int state)(Code)
Sets the state that will be shown on the CTabFolder's buttons
Parameters:
  state - one of the IStackPresentationSite.STATE_* constants



setTabHeight
public void setTabHeight(int height)(Code)



setTabPosition
public void setTabPosition(int newTabPosition)(Code)



setTopCenter
public void setTopCenter(Control topCenter)(Code)
Sets the top-center control (usually a toolbar), or null if none. Note that the control can have any parent.
Parameters:
  topCenter - the top-center control or null if none



setTopLeft
public void setTopLeft(Control topLeft)(Code)
Sets the top-left control (usually a title label), or null if none
Parameters:
  topLeft -



setTopRight
public void setTopRight(Control topRight)(Code)
Sets the top-right control (usually a dropdown), or null if none
Parameters:
  topRight -



setUnselectedCloseVisible
public void setUnselectedCloseVisible(boolean b)(Code)

Parameters:
  b -



setUnselectedImageVisible
public void setUnselectedImageVisible(boolean b)(Code)

Parameters:
  b -



setVisible
public void setVisible(boolean visible)(Code)
Propogate the visibility change requests to the proxy controls. When their target is null, they no longer get visibility updates. Currently this only propagates the changes to the ProxyControls held by this folder.
Parameters:
  visible - true - it's visible.
since:
   3.2



showMinMax
public void showMinMax(boolean show)(Code)
Cause the folder to hide or show its Minimize and Maximize affordances.
Parameters:
  show - true - the min/max buttons are visible.
since:
   3.3



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.