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


org.eclipse.ui.forms.widgets.ExpandableComposite
   org.eclipse.ui.forms.widgets.Section

Section
public class Section extends ExpandableComposite (Code)
A variation of the expandable composite that adds optional description below the title. Section is often used as a basic building block in forms because it provides for logical grouping of information.

In case of the TITLE_BAR style, Section renders the title bar in a way compatible with the rest of the workbench. Since it is a widget, all the colors must be supplied directly. When created by the form toolkit, these colors are supplied by the toolkit. The toolkit initializes these colors based on the system colors. For this reason, it is recommended to create the section by the toolkit instead of through its own constructor.

Since 3.1, it is possible to set a control to be used for section description. If used, DESCRIPTION style should not be set. A typical way to take advantage of the new method is to set an instance of FormText to provide for hyperlinks and images in the description area.
since:
   3.0



Field Summary
final public static  intDESCRIPTION
     Description style.

Constructor Summary
public  Section(Composite parent, int style)
     Creates a new section instance in the provided parent.
 Section(Composite parent, int cstyle, int style)
    

Method Summary
public  StringgetDescription()
     Returns the current description text.
public  ControlgetDescriptionControl()
     Returns the control used to render the description.
public  ControlgetSeparatorControl()
     Returns the control that is used as a separator betweeen the title and the client, or null if not set.
public  ColorgetTitleBarBackground()
     Returns the title bar background when TITLE_BAR style is used.
public  ColorgetTitleBarBorderColor()
     Returns the title bar border color when TITLE_BAR style is used.
public  ColorgetTitleBarGradientBackground()
     Returns the title bar gradient background color when TITLE_BAR style is used.
protected  voidinternalSetExpanded(boolean expanded)
    
protected  voidonPaint(PaintEvent e)
    
protected  voidreflow()
     Reflows this section and all the parents up the hierarchy until a ScrolledForm is reached.
public  voidsetBackground(Color bg)
     Sets the background of the section.
final public  voidsetBackgroundImage(Image image)
     Background image is used for the title gradient - does nothing.
public  voidsetDescription(String description)
     Sets the description text.
public  voidsetDescriptionControl(Control descriptionControl)
     Sets the description control of this section.
public  voidsetForeground(Color fg)
     Sets the foreground of the section.
public  voidsetSeparatorControl(Control separator)
     Sets the separator control of this section.
public  voidsetTitleBarBackground(Color color)
     Sets the color of the title bar background when TITLE_BAR style is used.
public  voidsetTitleBarBorderColor(Color color)
     Sets the color of the title bar border when TITLE_BAR style is used.
public  voidsetTitleBarGradientBackground(Color color)
     Sets the color of the title bar gradient background when TITLE_BAR style is used.

Field Detail
DESCRIPTION
final public static int DESCRIPTION(Code)
Description style. If used, description will be rendered below the title.




Constructor Detail
Section
public Section(Composite parent, int style)(Code)
Creates a new section instance in the provided parent.
Parameters:
  parent - the parent composite
Parameters:
  style - the style to use



Section
Section(Composite parent, int cstyle, int style)(Code)




Method Detail
getDescription
public String getDescription()(Code)
Returns the current description text. description text or null if DESCRIPTION style wasnot used to create the control.



getDescriptionControl
public Control getDescriptionControl()(Code)
Returns the control used to render the description. In 3.1, this method was promoted to public. description control or null if DESCRIPTION stylewas not used to create the control and description control wasnot set by the client.
See Also:   Section.setDescriptionControl(org.eclipse.swt.widgets.Control)



getSeparatorControl
public Control getSeparatorControl()(Code)
Returns the control that is used as a separator betweeen the title and the client, or null if not set. separator control or null if not set.



getTitleBarBackground
public Color getTitleBarBackground()(Code)
Returns the title bar background when TITLE_BAR style is used. the title bar background



getTitleBarBorderColor
public Color getTitleBarBorderColor()(Code)
Returns the title bar border color when TITLE_BAR style is used. the title bar border color



getTitleBarGradientBackground
public Color getTitleBarGradientBackground()(Code)
Returns the title bar gradient background color when TITLE_BAR style is used. the title bar gradient background



internalSetExpanded
protected void internalSetExpanded(boolean expanded)(Code)



onPaint
protected void onPaint(PaintEvent e)(Code)



reflow
protected void reflow()(Code)
Reflows this section and all the parents up the hierarchy until a ScrolledForm is reached.



setBackground
public void setBackground(Color bg)(Code)
Sets the background of the section.
Parameters:
  bg - the new background



setBackgroundImage
final public void setBackgroundImage(Image image)(Code)
Background image is used for the title gradient - does nothing.



setDescription
public void setDescription(String description)(Code)
Sets the description text. Has no effect if DESCRIPTION style was not used to create the control.
Parameters:
  description -



setDescriptionControl
public void setDescriptionControl(Control descriptionControl)(Code)
Sets the description control of this section. The control must not be null and must be a direct child of this container. If defined, contol will be placed below the title text and the separator and will be hidden int he collapsed state.

This method and DESCRIPTION style are mutually exclusive. Use the method only if you want to create the description control yourself.
since:
   3.1
Parameters:
  descriptionControl - the control that will be placed below the title text.




setForeground
public void setForeground(Color fg)(Code)
Sets the foreground of the section.
Parameters:
  fg - the new foreground.



setSeparatorControl
public void setSeparatorControl(Control separator)(Code)
Sets the separator control of this section. The separator must not be null and must be a direct child of this container. If defined, separator will be placed below the title text and will remain visible regardless of the expansion state.
Parameters:
  separator - the separator that will be placed below the title text.



setTitleBarBackground
public void setTitleBarBackground(Color color)(Code)
Sets the color of the title bar background when TITLE_BAR style is used. This color is used as a starting color for the vertical gradient.
Parameters:
  color - the title bar border background



setTitleBarBorderColor
public void setTitleBarBorderColor(Color color)(Code)
Sets the color of the title bar border when TITLE_BAR style is used.
Parameters:
  color - the title bar border color



setTitleBarGradientBackground
public void setTitleBarGradientBackground(Color color)(Code)
Sets the color of the title bar gradient background when TITLE_BAR style is used. This color is used at the height where title controls end (toggle, tool bar).
Parameters:
  color - the title bar gradient background



Fields inherited from org.eclipse.ui.forms.widgets.ExpandableComposite
final public static int CLIENT_INDENT(Code)(Java Doc)
final public static int COMPACT(Code)(Java Doc)
final public static int EXPANDED(Code)(Java Doc)
final public static int FOCUS_TITLE(Code)(Java Doc)
protected int GAP(Code)(Java Doc)
final static int IGAP(Code)(Java Doc)
final static int IVGAP(Code)(Java Doc)
final public static int LEFT_TEXT_CLIENT_ALIGNMENT(Code)(Java Doc)
final public static int NO_TITLE(Code)(Java Doc)
final public static int SHORT_TITLE_BAR(Code)(Java Doc)
final public static int TITLE_BAR(Code)(Java Doc)
final public static int TREE_NODE(Code)(Java Doc)
final public static int TWISTIE(Code)(Java Doc)
protected int VGAP(Code)(Java Doc)
public int clientVerticalSpacing(Code)(Java Doc)
public int descriptionVerticalSpacing(Code)(Java Doc)
public int marginHeight(Code)(Java Doc)
public int marginWidth(Code)(Java Doc)
protected Control textLabel(Code)(Java Doc)
public int titleBarTextMarginWidth(Code)(Java Doc)
protected ToggleHyperlink toggle(Code)(Java Doc)

Methods inherited from org.eclipse.ui.forms.widgets.ExpandableComposite
public void addExpansionListener(IExpansionListener listener)(Code)(Java Doc)
public Point computeSize(int wHint, int hHint, boolean changed)(Code)(Java Doc)
public Control getClient()(Code)(Java Doc)
protected Control getDescriptionControl()(Code)(Java Doc)
public int getExpansionStyle()(Code)(Java Doc)
protected Control getSeparatorControl()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public Control getTextClient()(Code)(Java Doc)
public int getTextClientHeightDifference()(Code)(Java Doc)
public Color getTitleBarForeground()(Code)(Java Doc)
protected boolean hasTitleBar()(Code)(Java Doc)
protected void internalSetExpanded(boolean expanded)(Code)(Java Doc)
public boolean isExpanded()(Code)(Java Doc)
protected boolean isFixedStyle()(Code)(Java Doc)
protected void onPaint(PaintEvent e)(Code)(Java Doc)
public void removeExpansionListener(IExpansionListener listener)(Code)(Java Doc)
public void setActiveToggleColor(Color c)(Code)(Java Doc)
public void setBackground(Color bg)(Code)(Java Doc)
public void setClient(Control client)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setExpanded(boolean expanded)(Code)(Java Doc)
public void setFont(Font font)(Code)(Java Doc)
public void setForeground(Color fg)(Code)(Java Doc)
final public void setLayout(Layout layout)(Code)(Java Doc)
public void setMenu(Menu menu)(Code)(Java Doc)
public void setText(String title)(Code)(Java Doc)
public void setTextClient(Control textClient)(Code)(Java Doc)
public void setTitleBarForeground(Color color)(Code)(Java Doc)
public void setToggleColor(Color c)(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.