本文整理汇总了Java中org.eclipse.ui.forms.widgets.Section.TITLE_BAR属性的典型用法代码示例。如果您正苦于以下问题:Java Section.TITLE_BAR属性的具体用法?Java Section.TITLE_BAR怎么用?Java Section.TITLE_BAR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.ui.forms.widgets.Section
的用法示例。
在下文中一共展示了Section.TITLE_BAR属性的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ApplicationMasterPart
public ApplicationMasterPart(DockerFoundryApplicationsEditorPage editorPage, IManagedForm managedForm,
Composite parent, DockerFoundryServer cloudServer) {
super(parent, managedForm.getToolkit(), Section.TITLE_BAR | Section.DESCRIPTION);
this.editorPage = editorPage;
this.cloudServer = cloudServer;
this.toolkit = managedForm.getToolkit();
// this.provideServices = CloudFoundryBrandingExtensionPoint.getProvideServices(editorPage.getServer()
// .getServerType().getId());
String linksAsString = this.cloudServer.getDockerContainerLinks();
if(linksAsString != null && linksAsString.length() >0){
StringTokenizer st = new StringTokenizer(linksAsString, ",");
if(st != null){
while (st.hasMoreTokens()) {
String token = st.nextToken();
String[] s = token.split(":");
DockerApplicationService service = new DockerApplicationService();
service.setName(s[0]);
service.setLinkName(s[1]);
services.add(service);
}
}
}
}
示例2: Part
/**
* Contructor
*
* @param parent the parent control
* @param tk the toolit used to create controls
* @param title the title of the part
* @param doxyfile the doxyfile being edited
*/
public Part(Composite parent, FormToolkit tk, String title, Doxyfile doxyfile) {
super(parent, tk, Section.TITLE_BAR/*|Section.EXPANDED|Section.TWISTIE*/ );
this.doxyfile = doxyfile;
// Initializes the section and its client component.
Section section = getSection();
GridLayout layout = new GridLayout();
toolkit = tk;
content = toolkit.createComposite(section);
layout.numColumns = 2;
layout.marginTop = 0;
layout.marginRight = 0;
layout.marginBottom = 0;
layout.marginLeft = 0;
layout.marginHeight = 0;
layout.marginWidth = 0;
layout.verticalSpacing = 2;
content.setLayout(layout);
section.setText(title);
section.setClient(content);
}
示例3: 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());
}
示例4: AbstractSection
/**
* 생성자
*
* @param parent
* @param toolkit
* @param style
* @param titleBarYn
*/
public AbstractSection(FormPage page, Composite parent, int style, boolean titleBarYn) {
super(parent, page.getManagedForm().getToolkit(), titleBarYn ? (Section.TITLE_BAR | style) : style);
this.page = page;
// 설명, 에러 메시지를 출력할 컨트롤 설정
messageText = (Text) getSection().getDescriptionControl();
initialize(page.getManagedForm());
getSection().clientVerticalSpacing = CLIENT_VSPACING;
getSection().setData("part", this); //$NON-NLS-1$
createClient(getSection(), page.getManagedForm().getToolkit());
}
示例5: MasterPart
/**
* Constructor
*
* @param parent a composite that is the parent of all part controls
* @param toolkit a toolkit used to create the part controls.
* @param doxyfile a doxyfile to edit
*/
public MasterPart(Composite parent, FormToolkit toolkit, Doxyfile doxyfile) {
super(parent, toolkit, Section.TITLE_BAR | Section.COMPACT);
this.doxyfile = doxyfile;
// Initializes the managed section.
Section section = getSection();
section.setText("Settings");
section.marginHeight = 5;
section.marginWidth = 10;
toolkit.paintBordersFor(section);
// Creates the main section container.
Composite rootContainer = toolkit.createComposite(section);
section.setClient(rootContainer);
rootContainer.setLayout(new FormLayout());
// Continues with other initializations.
createFilterButtons(toolkit, rootContainer);
createSubControls(toolkit, rootContainer);
// Adds some filters.
addFilter(toolkit, defaultFilter);
addFilter(toolkit, new ByGroup());
addFilter(toolkit, new Custom());
addFilter(toolkit, new Modified());
// Activates the default filter.
activateFilter(defaultFilter);
}
示例6: 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
示例7: 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;
}
示例8: MuleEnvironmentConfigsPart
public MuleEnvironmentConfigsPart(Composite parent, FormToolkit toolkit, EnvironmentsSetting initialConfiguration) {
super(parent, toolkit, Section.TITLE_BAR);
getSection().setText("Environment Configuration");
this.toolkit = toolkit;
currentConfiguration = initialConfiguration;
configurePanel(getSection(), toolkit);
}
示例9: MuleEnvironmentKeysTreePart
public MuleEnvironmentKeysTreePart(Composite parent, FormToolkit toolkit, EnvironmentsConfiguration configuration, MuleEnvironmentsEditor editor) {
super(parent, toolkit, Section.TITLE_BAR);
this.keyModel = configuration.buildCombinedKeySet();
this.configuration = configuration;
this.editor = editor;
configurePanel(getSection(), toolkit);
}
示例10: DomainProjectsSectionPart
public DomainProjectsSectionPart(Composite parent, FormToolkit toolkit, List<String> modules, IProject currentProject) {
super(parent, toolkit, Section.TITLE_BAR);
getSection().setText("Domain Modules");
this.toolkit = toolkit;
this.modules = modules;
if (this.modules == null) {
modules = Collections.emptyList();
}
this.currentProject = currentProject;
configurePanel(getSection(), toolkit);
}
示例11: createFormContent
@Override
protected void createFormContent(IManagedForm managedForm) {
FormToolkit toolkit = managedForm.getToolkit();
ScrolledForm form = managedForm.getForm();
createActions(form.getToolBarManager());
form.setText("Overview");
Composite body = form.getBody();
toolkit.decorateFormHeading(form.getForm());
toolkit.paintBordersFor(body);
body.setLayout(new GridLayout(2, false));
DetailsSection detailsSection = new DetailsSection(managedForm.getForm().getBody(), toolkit, Section.TITLE_BAR);
detailsSection.initialize(managedForm);
GridData gdDetails = new GridData(GridData.FILL, GridData.FILL, true, true);
gdDetails.verticalSpan = 2;
gdDetails.verticalAlignment = SWT.BEGINNING;
gdDetails.widthHint = 300;
detailsSection.getSection().setLayoutData(gdDetails);
detailsSection.setFormInput(solution);
FeatureSection featureSection = new FeatureSection(managedForm.getForm().getBody(),
toolkit, Section.TITLE_BAR);
featureSection.initialize(managedForm);
GridData gdFeature = new GridData(GridData.FILL, GridData.FILL, true, false);
featureSection.getSection().setLayoutData(gdFeature);
featureSection.setFormInput(solution);
ShortDescriptionSection descriptionSection = new ShortDescriptionSection(managedForm.getForm().getBody(),
toolkit, Section.TITLE_BAR);
descriptionSection.initialize(managedForm);
GridData gdDescription = new GridData(GridData.FILL, GridData.FILL, true, true);
descriptionSection.getSection().setLayoutData(gdDescription);
descriptionSection.setFormInput(solution);
ImagesSection imagesSection = new ImagesSection(managedForm.getForm().getBody(), toolkit, Section.TITLE_BAR);
imagesSection.initialize(managedForm);
GridData gdImages = new GridData(GridData.FILL, GridData.FILL, true, true);
gdImages.verticalAlignment = SWT.BEGINNING;
gdImages.horizontalSpan = 2;
imagesSection.getSection().setLayoutData(gdImages);
imagesSection.setFormInput(solution);
}
示例12: ValidateableTableSectionPart
/**
* Constructor of the part without section flags
* @see ValidateableTableSectionPart#TableSectionPart(Composite, String, String, FormToolkit, int)
*/
public ValidateableTableSectionPart(Composite composite, String title, String description, FormToolkit toolkit,
BasicFormPage page, String sectionName)
{
this(composite, title, description, toolkit, Section.DESCRIPTION | Section.TITLE_BAR, page, sectionName);
}
示例13: GradleDependenciesTablePart
public GradleDependenciesTablePart(Composite parent, FormToolkit toolkit, IProject currentProject) {
super(parent, toolkit, Section.TITLE_BAR);
this.project = currentProject;
configureComponent(getSection(), toolkit);
}
示例14: 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);
}