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


Java Section.EXPANDED屬性代碼示例

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

示例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);
}
 
開發者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.EXPANDED屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。