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


org.eclipse.ui.internal.layout.ITrimManager

All known Subclasses:   org.eclipse.ui.internal.layout.TrimLayout,
ITrimManager
public interface ITrimManager (Code)
Allow programmatic access to the workbench window trim areas.

Note: This is highly experimental and will change between M4 and M5. For example, the current trim area IDs will be changes to Strings, amongst other things.


since:
   3.2


Field Summary
final public static  intBOTTOM
     Trim area location.
final public static  intLEFT
     Trim area location.
final public static  intNONTRIM
     Trim area location.
final public static  intRIGHT
     Trim area location.
final public static  intTOP
     Trim area location.


Method Summary
public  voidaddTrim(int areaId, IWindowTrim trim)
     Adds the given control to the layout's trim.
public  voidaddTrim(int areaId, IWindowTrim trim, IWindowTrim beforeMe)
     Adds the given control to the layout's trim.
public  voidforceLayout()
    
public  ListgetAllTrim()
     This method returns an aggregate array of all trim items known to this TrimLayout.
public  int[]getAreaIds()
     Return all of the IDs for the currently supported trim areas.
public  ListgetAreaTrim(int areaId)
     Return a copy of the IWindowTrim in an ordered array.
public  IWindowTrimgetTrim(String id)
     Return the window trim for a given id.
public  voidremoveTrim(IWindowTrim toRemove)
     Removes the given window trim.
public  voidsetTrimVisible(IWindowTrim trim, boolean visible)
     Update the visibility of the trim controls.
public  voidupdateAreaTrim(int id, List trim, boolean removeExtra)
     Update ID's area description with the new window trim ordering.

Field Detail
BOTTOM
final public static int BOTTOM(Code)
Trim area location.



LEFT
final public static int LEFT(Code)
Trim area location.



NONTRIM
final public static int NONTRIM(Code)
Trim area location.



RIGHT
final public static int RIGHT(Code)
Trim area location.



TOP
final public static int TOP(Code)
Trim area location.





Method Detail
addTrim
public void addTrim(int areaId, IWindowTrim trim)(Code)
Adds the given control to the layout's trim. The same as calling addTrim(areaId, trim, null);
Parameters:
  trim - new window trim to be added
Parameters:
  areaId - the area ID
See Also:   ITrimManager.getAreaIds()
See Also:   ITrimManager.addTrim(int,IWindowTrim,IWindowTrim)



addTrim
public void addTrim(int areaId, IWindowTrim trim, IWindowTrim beforeMe)(Code)
Adds the given control to the layout's trim. Note that this must be called for every trim control. If the given widget is already a trim widget, it will be moved to the new position. Specifying a position allows a new widget to be inserted between existing trim widgets.

For example, this method allows the caller to say "insert this new control as trim along the bottom of the layout, to the left of this existing control".


Parameters:
  trim - new window trim to be added
Parameters:
  areaId - the area ID
Parameters:
  beforeMe - trim to insert before, null to insert at theend
See Also:   ITrimManager.getAreaIds()



forceLayout
public void forceLayout()(Code)
Force the trim areas to layout to pick up changes
since:
   3.2



getAllTrim
public List getAllTrim()(Code)
This method returns an aggregate array of all trim items known to this TrimLayout. The List of all IWindowTrim elements
since:
   3.2



getAreaIds
public int[] getAreaIds()(Code)
Return all of the IDs for the currently supported trim areas. This is experimental and will be changing. the list of IDs that can be used with area descriptions. Wecurrently support SWT.TOP, SWT.BOTTOM, SWT.LEFT, and SWT.RIGHT.
since:
   3.2



getAreaTrim
public List getAreaTrim(int areaId)(Code)
Return a copy of the IWindowTrim in an ordered array. This will not return null. This array can be used to shuffle items around in ITrimManager.updateAreaTrim(int,List,boolean) .
Parameters:
  areaId - the trim area id the IWindowTrim array
since:
   3.2
See Also:   ITrimManager.getAreaIds()



getTrim
public IWindowTrim getTrim(String id)(Code)
Return the window trim for a given id.
Parameters:
  id - the id the window trim, or null if not found.



removeTrim
public void removeTrim(IWindowTrim toRemove)(Code)
Removes the given window trim. Note that this has no effect if window trim is not our window trim.
Parameters:
  toRemove - a piece of trim.



setTrimVisible
public void setTrimVisible(IWindowTrim trim, boolean visible)(Code)
Update the visibility of the trim controls. It updates any docking handles as well. It has no effect on visiblity if the window trim doesn't belong to this TrimLayout.
Parameters:
  trim - the trim to update
Parameters:
  visible - visible or not
since:
   3.2



updateAreaTrim
public void updateAreaTrim(int id, List trim, boolean removeExtra)(Code)
Update ID's area description with the new window trim ordering. This applies the IWindowTrim contains in the array to the trim area named "ID".
Parameters:
  id - the trim area ID
Parameters:
  trim - the trim array must not be null.
Parameters:
  removeExtra - if true the any trim in the specified trim areathat's not contained in the List is removed from the windowtrim (but not disposed()). If false then theextra trim is shuffled to the beginning of the trim area.
since:
   3.2
See Also:   ITrimManager.getAreaIds()



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.