本文整理匯總了Java中org.eclipse.ui.forms.widgets.Section.EXPANDED屬性的典型用法代碼示例。如果您正苦於以下問題:Java Section.EXPANDED屬性的具體用法?Java Section.EXPANDED怎麽用?Java Section.EXPANDED使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.eclipse.ui.forms.widgets.Section
的用法示例。
在下文中一共展示了Section.EXPANDED屬性的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: OverviewProjectInformationSection
/**
* @param page
* @param parent
* @param style
*/
public OverviewProjectInformationSection(FormPage page, Composite parent) {
super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
try {
this.rmData = RMDataUtil.findRMData(model);
} catch (Exception e) {
this.rmData = null;
}
}
示例2: createSectionTitle
public Composite createSectionTitle(Composite parent, String text, boolean expandable, int columns, int span) {
int style = Section.EXPANDED | Section.TITLE_BAR;
if (expandable)
style = style | Section.TWISTIE;
Section section = new NotifyExpandSection(parent, style, sectionSizeChange);
section.titleBarTextMarginWidth = 0;
// section.marginWidth = 2;
section.setTitleBarBorderColor(SWTResourceManager.getColor(SWT.COLOR_GRAY));
section.setTitleBarBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND));
// section.setFont(SWTResourceManager.getBoldFont(section.getFont()));
if (parent.getLayout() instanceof GridLayout) {
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = span;
section.setLayoutData(gd);
}
section.setText(text);
if (sectionSizeChange != null)
section.addExpansionListener(sectionSizeChange);
// section.setSeparatorControl(new Label(section, SWT.SEPARATOR
// | SWT.HORIZONTAL));
parent = createComposite(section, SWT.BORDER);
GridLayout layout = new GridLayout(columns, false);
layout.marginHeight = 4;
layout.marginWidth = 2;
parent.setLayout(layout);
section.setClient(parent);
return parent;
}
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:31,代碼來源:TabbedPropertySheetWidgetFactory.java
示例3: createSection
public Composite createSection(Composite parent, String text, boolean expandable, int columns, int span, int style) {
style = style | Section.EXPANDED;
if (expandable)
style = style | Section.TREE_NODE;
Section section = new NotifyExpandSection(parent, style, sectionSizeChange);
section.titleBarTextMarginWidth = 0;
section.setFont(SWTResourceManager.getBoldFont(section.getFont()));
if (parent.getLayout() instanceof GridLayout) {
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = span;
section.setLayoutData(gd);
}
section.setText(text);
section.setSeparatorControl(new Label(section, SWT.SEPARATOR | SWT.HORIZONTAL));
if (sectionSizeChange != null)
section.addExpansionListener(sectionSizeChange);
Composite cmp = createComposite(section, SWT.NONE);
GridLayout layout = new GridLayout(columns, false);
layout.marginHeight = 4;
layout.marginWidth = 2;
cmp.setLayout(layout);
section.setClient(cmp);
return cmp;
}
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:27,代碼來源:TabbedPropertySheetWidgetFactory.java
示例4: createAndGetSection
/**
* Create a section and return it. The client of the section is a composite where the control can be created
*/
public Section createAndGetSection(Composite parent, String text, boolean expandable, int columns, int span, int style) {
style = style | Section.EXPANDED;
if (expandable)
style = style | Section.TREE_NODE;
Section section = new NotifyExpandSection(parent, style, sectionSizeChange);
section.titleBarTextMarginWidth = 0;
section.setFont(SWTResourceManager.getBoldFont(section.getFont()));
if (parent.getLayout() instanceof GridLayout) {
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = span;
section.setLayoutData(gd);
}
section.setText(text);
section.setSeparatorControl(new Label(section, SWT.SEPARATOR | SWT.HORIZONTAL));
if (sectionSizeChange != null)
section.addExpansionListener(sectionSizeChange);
Composite cmp = createComposite(section, SWT.NONE);
GridLayout layout = new GridLayout(columns, false);
layout.marginHeight = 4;
layout.marginWidth = 2;
cmp.setLayout(layout);
section.setClient(cmp);
return section;
}
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:30,代碼來源:TabbedPropertySheetWidgetFactory.java
示例5: createSection
/**
* Creates a new subsection inside the current page. This subsection has its own heading and can be (un-)folded.
*
* @param title
* The title of the section
* @param description
* The description of the section (will be shown directly under the title)
* @param gridStyle A GridData constants for configuring the behavior of the section.
* Usually, <tt>GridData.FILL_HORIZONTAL</tt> should be appropriate.
* @return A new composite where new elements can be added to.
* The newly created composite must be configured with a {@link GridLayout} otherwise
* nested elements will not be displayed.
* @see #createSection(String, String, int, int)
*/
protected Composite createSection(String title, String description, int gridStyle) {
int style = Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED;
if (null != description) {
style |= Section.DESCRIPTION;
}
return createSection(title, description, style, gridStyle);
}
示例6: OverviewModelDetailSection
/**
* 생성자
*
* @param page
* @param parent
*/
public OverviewModelDetailSection(FormPage page, Composite parent) {
super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
示例7: OverviewDocumentSection
/**
* 생성자
*
* @param overviewPage
* @param parent
*/
public OverviewDocumentSection(OverviewPage page, Composite parent) {
super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
示例8: DetailsModelLibrarySection
/**
* 생성자
*
* @param detailsPage
* @param parent
*/
public DetailsModelLibrarySection(DetailsPage detailsPage, Composite parent) {
super(detailsPage, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
示例9: FragmentSection
/**
* 생성자
*
* @param page
* @param parent
*/
public FragmentSection(FormPage page, Composite parent) {
super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
示例10: DetailsProfileSection
/**
* 생성자
*
* @param page
* @param parent
*/
public DetailsProfileSection(FormPage page, Composite parent) {
super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
示例11: DiagramSection
/**
* 생성자
*
* @param fragmentDiagramPage
* @param parent
*/
public DiagramSection(FormPage page, Composite parent) {
super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
示例12: OverviewGeneralSection
/**
* 생성자
*
* @param page
* @param parent
*/
public OverviewGeneralSection(FormPage page, Composite parent) {
super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}