當前位置: 首頁>>代碼示例>>Java>>正文


Java Section.TWISTIE屬性代碼示例

本文整理匯總了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());
}
 
開發者ID:eclipse,項目名稱:cft,代碼行數:9,代碼來源:ApplicationMasterPart.java

示例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;
    }
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:14,代碼來源:OverviewProjectInformationSection.java

示例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;
}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:28,代碼來源:TourDataEditorView.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);
}
 
開發者ID:SSEHUB,項目名稱:EASyProducer,代碼行數:22,代碼來源:AbstractEASyEditorPage.java

示例6: OverviewModelDetailSection

/**
 * 생성자
 * 
 * @param page
 * @param parent
 */
public OverviewModelDetailSection(FormPage page, Composite parent) {
    super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);

}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:10,代碼來源:OverviewModelDetailSection.java

示例7: OverviewDocumentSection

/**
 * 생성자
 * 
 * @param overviewPage
 * @param parent
 */
public OverviewDocumentSection(OverviewPage page, Composite parent) {
    super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:9,代碼來源:OverviewDocumentSection.java

示例8: DetailsModelLibrarySection

/**
 * 생성자
 * 
 * @param detailsPage
 * @param parent
 */
public DetailsModelLibrarySection(DetailsPage detailsPage, Composite parent) {
    super(detailsPage, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:9,代碼來源:DetailsModelLibrarySection.java

示例9: FragmentSection

/**
 * 생성자
 * 
 * @param page
 * @param parent
 */
public FragmentSection(FormPage page, Composite parent) {
    super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:9,代碼來源:FragmentSection.java

示例10: DetailsProfileSection

/**
 * 생성자
 * 
 * @param page
 * @param parent
 */
public DetailsProfileSection(FormPage page, Composite parent) {
    super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:9,代碼來源:DetailsProfileSection.java

示例11: DiagramSection

/**
 * 생성자
 * 
 * @param fragmentDiagramPage
 * @param parent
 */
public DiagramSection(FormPage page, Composite parent) {
    super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:9,代碼來源:DiagramSection.java

示例12: OverviewGeneralSection

/**
 * 생성자
 * 
 * @param page
 * @param parent
 */
public OverviewGeneralSection(FormPage page, Composite parent) {
    super(page, parent, Section.TWISTIE | Section.EXPANDED | Section.DESCRIPTION);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:9,代碼來源:OverviewGeneralSection.java


注:本文中的org.eclipse.ui.forms.widgets.Section.TWISTIE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。