Source Code Cross Referenced for IWindowTrim.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2005, 2006 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.ui.internal.layout;
011:
012:        import org.eclipse.swt.widgets.Control;
013:
014:        /**
015:         * Interface for trim controls that can be docked to the edge of a Workbench
016:         * window using drag-and-drop.
017:         * 
018:         * <p>
019:         * <b>Note:</b> This interface is highly experimental, and will probably change
020:         * between M4 and M5. For example, it will support a "lifecycle" that allows the
021:         * {@link ITrimManager} to update its modifiers (like SWT.TOP or SWT.LEFT) so the
022:         * IWindowTrim can dispose and re-create its control. This will likely effect
023:         * methods like {@link #dock(int) }, {@link #getControl() },
024:         * {@link #getValidSides() }, etc.
025:         * </p>
026:         * 
027:         * @since 3.2
028:         */
029:        public interface IWindowTrim {
030:            /**
031:             * Returns the control representing this trim widget, or null if it has not
032:             * yet been created.
033:             * 
034:             * @return the control for the trim widget.
035:             */
036:            Control getControl();
037:
038:            /**
039:             * Returns the set of sides that this trim can be docked onto.
040:             * 
041:             * @return bitwise OR of one or more of SWT.TOP, SWT.BOTTOM, SWT.LEFT, and
042:             *         SWT.RIGHT
043:             */
044:            int getValidSides();
045:
046:            /**
047:             * Called to notify the trim object that it has been docked on the given
048:             * side of the layout
049:             * 
050:             * @param dropSide
051:             *            the trim drop area
052:             * 
053:             */
054:            void dock(int dropSide);
055:
056:            /**
057:             * Each piece of window trim must have a unique ID to participate fully as
058:             * trim.
059:             * 
060:             * @return The unique id
061:             * @since 3.2
062:             */
063:            public String getId();
064:
065:            /**
066:             * Returns the (localized) display name for this trim. This is used, for
067:             * example, to construct menu items...
068:             * 
069:             * @return The display name for this trim
070:             * 
071:             * @since 3.2
072:             */
073:            public String getDisplayName();
074:
075:            /**
076:             * Determines whether a particular trim can be 'closed' using the common
077:             * Trim UI.
078:             * 
079:             * @return true if the UI should profer the close affordance; false
080:             *         otherwise
081:             * 
082:             * @since 3.2
083:             */
084:            public boolean isCloseable();
085:
086:            /**
087:             * This method is called when the trim UI has closed (hidden) the trim. The
088:             * controls associated with the trim will have already been removed from the
089:             * trim layout. The implementor should take any necessary clean up actions
090:             * here.
091:             * 
092:             * @since 3.2
093:             */
094:            public void handleClose();
095:
096:            /**
097:             * Overrides the preferred width of the control (pixels). If SWT.DEFAULT,
098:             * then the control's preferred width will be used. This has no effect for
099:             * horizontally resizable controls.
100:             * 
101:             * @return pixels, or SWT.DEFAULT
102:             * @since 3.2
103:             */
104:            public int getWidthHint();
105:
106:            /**
107:             * Overrides the preferred height of the control (pixels). If SWT.DEFAULT,
108:             * then the control's preferred height will be used. This has no effect for
109:             * vertically resizable controls.
110:             * 
111:             * @return pixels, or SWT.DEFAULT
112:             * @since 3.2
113:             */
114:            public int getHeightHint();
115:
116:            /**
117:             * If true, the control will be resized with the layout. If there is more
118:             * than one resizable control on the same side of the layout, the available
119:             * space will be divided equally among all the resizeable controls.
120:             * 
121:             * @return <code>true</code> or <code>false</code>.
122:             * @since 3.2
123:             */
124:            public boolean isResizeable();
125:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.