Source Code Cross Referenced for ISection.java in  » IDE-Eclipse » ui » org » eclipse » ui » views » properties » tabbed » 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 » org.eclipse.ui.views.properties.tabbed 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2001, 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.views.properties.tabbed;
011:
012:        import org.eclipse.jface.viewers.ISelection;
013:        import org.eclipse.swt.widgets.Composite;
014:        import org.eclipse.ui.IWorkbenchPart;
015:
016:        /**
017:         * Represents a section of properties for a given input.
018:         * <p>
019:         * The lifecycle of an ISection is as follows:
020:         * <ul>
021:         * <li><code>ISection.createControls()</code></li>
022:         * <li><code>ISection.setInput()</code></li>
023:         * <li><code>ISection.aboutToBeShown()</code></li>
024:         * <li><code>ISection.refresh()</code></li>
025:         * <li><code>ISection.aboutToBeHidden()</code></li>
026:         * <li><code>ISection.dispose()</code></li>
027:         * </ul>
028:         * </p>
029:         * <p>
030:         * Implementors of this class should be aware that a section instance might be
031:         * reused for different input objects (as long as they are valid section
032:         * inputs). It means that <code>ISection.setInput</code> can be called at any
033:         * time between <code>ISection.createControls</code> and
034:         * <code>ISection.dispose</code>.
035:         * </p>
036:         * <p>
037:         * When an input change event occurs, such as a tab selection or a workbench
038:         * selection change, an ISection is sent:
039:         * <ul>
040:         * <li><code>ISection.setInput()</code></li>
041:         * <li><code>ISection.refresh()</code></li>
042:         * </ul>
043:         * </p>
044:         * <p>
045:         * When an part activation event occurs, such as the contributor part activation
046:         * event, an ISection is sent:
047:         * <ul>
048:         * <li><code>ISection.setInput()</code></li>
049:         * <li><code>ISection.aboutToBeShown()</code></li>
050:         * <li><code>ISection.refresh()</code></li>
051:         * <li><code>ISection.setInput()</code></li>
052:         * <li><code>ISection.refresh()</code></li>
053:         * </ul>
054:         * This is because both a tab selection event and an input selection event have
055:         * occurred.
056:         * </p>
057:         * <p>
058:         * This interface should not be extended or implemented. New section instances
059:         * should be created using <code>AbstractPropertySection</code>.
060:         * </p>
061:         * @see org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage
062:         * 
063:         * @author Anthony Hunter
064:         */
065:        public interface ISection {
066:
067:            /**
068:             * Creates the controls for the section.
069:             * <p>
070:             * Clients should take advantage of the widget factory provided by the
071:             * framework to achieve a common look between property sections.
072:             * </p>
073:             * @see org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage#getWidgetFactory()
074:             * 
075:             * @param parent
076:             *            the parent composite for the section.
077:             * @param tabbedPropertySheetPage
078:             *            the tabbed property sheet page.
079:             */
080:            public abstract void createControls(Composite parent,
081:                    TabbedPropertySheetPage tabbedPropertySheetPage);
082:
083:            /**
084:             * Notifies the section that the workbench selection has changed. 
085:             * @param part The active workench part.
086:             * @param selection The active selection in the workbench part.
087:             */
088:            public abstract void setInput(IWorkbenchPart part,
089:                    ISelection selection);
090:
091:            /**
092:             * Notifies the section that its controls are about to be shown. It is
093:             * expected that sections enable domain related functions in this method,
094:             * most commonly add listeners.
095:             * <p>
096:             * Since the controls are not visible, the section should wait for the
097:             * refresh() before updating the section controls.
098:             * </p>
099:             */
100:            public abstract void aboutToBeShown();
101:
102:            /**
103:             * Notifies the section that its controls are about to be hidden. It is
104:             * expected that sections disable domain related functions in this method,
105:             * most commonly remove listeners.
106:             */
107:            public abstract void aboutToBeHidden();
108:
109:            /**
110:             * Dispose this section.
111:             */
112:            public abstract void dispose();
113:
114:            /**
115:             * Returns the minimum height needed by this section. A return value of
116:             * <code>SWT.DEFAULT</code> indicates that no minimum height is defined.
117:             * 
118:             * @return the minimum height needed by this section.
119:             */
120:            public abstract int getMinimumHeight();
121:
122:            /**
123:             * Determine whether this section would like extra height space in case
124:             * there is some left. Normally this is true when the section is the last to
125:             * be displayed on a tab or is the only section on a tab.
126:             * @return <code>true</code> if this section would like extra height space.
127:             */
128:            public abstract boolean shouldUseExtraSpace();
129:
130:            /**
131:             * Refresh the contents of the controls displayed in this section.
132:             */
133:            public abstract void refresh();
134:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.