本文整理汇总了Java中org.eclipse.ui.forms.widgets.Section.TWISTIE属性的典型用法代码示例。如果您正苦于以下问题:Java Section.TWISTIE属性的具体用法?Java Section.TWISTIE怎么用?Java Section.TWISTIE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.ui.forms.widgets.Section
的用法示例。
在下文中一共展示了Section.TWISTIE属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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
示例2: ApplicationMasterPart
public ApplicationMasterPart(CloudFoundryApplicationsEditorPage editorPage, IManagedForm managedForm,
Composite parent, CloudFoundryServer cloudServer) {
super(parent, managedForm.getToolkit(), Section.TITLE_BAR | Section.DESCRIPTION | Section.TWISTIE);
this.editorPage = editorPage;
this.cloudServer = cloudServer;
this.toolkit = managedForm.getToolkit();
this.provideServices = CloudFoundryBrandingExtensionPoint
.getProvideServices(editorPage.getServer().getServerType().getId());
}
示例3: 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;
}
}
示例4: createSection
private Section createSection( final Composite parent,
final FormToolkit tk,
final String title,
final boolean isGrabVertical,
final boolean isExpandable) {
final int style = isExpandable ? //
Section.TWISTIE //
| Section.TITLE_BAR
: Section.TITLE_BAR;
final Section section = tk.createSection(parent, style);
section.setText(title);
GridDataFactory.fillDefaults().grab(true, isGrabVertical).applyTo(section);
final Composite sectionContainer = tk.createComposite(section);
section.setClient(sectionContainer);
section.addExpansionListener(new ExpansionAdapter() {
@Override
public void expansionStateChanged(final ExpansionEvent e) {
onExpandSection();
}
});
return section;
}
示例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);
}