本文整理匯總了Java中org.eclipse.ui.forms.widgets.ScrolledForm類的典型用法代碼示例。如果您正苦於以下問題:Java ScrolledForm類的具體用法?Java ScrolledForm怎麽用?Java ScrolledForm使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ScrolledForm類屬於org.eclipse.ui.forms.widgets包,在下文中一共展示了ScrolledForm類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createHeaderContents
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
protected void createHeaderContents(IManagedForm headerForm) {
super.createHeaderContents(headerForm);
FormToolkit toolkit = headerForm.getToolkit();
ScrolledForm scrolledForm = headerForm.getForm();
Form form = scrolledForm.getForm();
toolkit.decorateFormHeading(form);
updateTitle();
makeActions();
IToolBarManager toolBarManager = form.getToolBarManager();
contributeToToolBar(headerForm, toolBarManager);
toolBarManager.update(true);
}
示例2: modelDestroyed
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
protected void modelDestroyed(GenericDataModelEvent event) {
if (getContainer().isDisposed()) {
return;
}
updateTitle();
editorDirtyStateChanged();
String modelDestroyedMessage = getModelDestroyedMessage();
if (modelDestroyedMessage != null) {
IManagedForm headerForm = getHeaderForm();
ScrolledForm scrolledForm = headerForm.getForm();
Form form = scrolledForm.getForm();
form.setMessage(modelDestroyedMessage, IMessageProvider.ERROR);
}
for (DataModelFormPage<M> page : _Pages) {
page.modelDestroyed(event);
}
}
示例3: updateTitle
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
protected void updateTitle() {
M model = getModel();
if (model == null) {
return;
}
setPartName(getPartName(model));
setTitleToolTip(getTitleToolTip(model));
setTitleImage(getTitleImage(model));
IManagedForm headerForm = getHeaderForm();
if (headerForm != null) {
ScrolledForm scrolledForm = headerForm.getForm();
Form form = scrolledForm.getForm();
form.setText(getFormText(model));
form.setImage(getFormImage(model));
}
}
示例4: createTableSection
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
protected Section createTableSection(ScrolledForm form, Composite client, FormToolkit toolkit, String title,
Image image, int sectionStyle, int tableStyle, String[] columnTitles, int[] columnAlignments) {
Section section = createSection(form, client, toolkit, title, image, sectionStyle);
Table table = toolkit.createTable(section, tableStyle);
for (int i = 0; i < columnTitles.length; i++) {
TableColumn column = new TableColumn(table, SWT.NONE);
column.setText(columnTitles[i]);
column.setAlignment(columnAlignments[i]);
}
table.setHeaderVisible(true);
table.setLinesVisible(true);
section.setClient(table);
return section;
}
示例5: createModelFormContent
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
final ScrolledForm form = managedForm.getForm();
FormToolkit toolkit = managedForm.getToolkit();
_EditSection = createEditSection(form, client, toolkit);
GridData editSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
_EditSection.setLayoutData(editSectionGridData);
_PropertiesSection = createPropertiesTableSection(form, client, toolkit);
GridData propertiesSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
_PropertiesSection.setLayoutData(propertiesSectionGridData);
_ZnodeSection = createZnodeSection(form, client, toolkit);
GridData znodeSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
_ZnodeSection.setLayoutData(znodeSectionGridData);
Table propertiesSectionTable = getPropertiesSectionTable();
initTableEdit(propertiesSectionTable, null, 1);
}
示例6: createModelFormContent
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
final ScrolledForm form = managedForm.getForm();
FormToolkit toolkit = managedForm.getToolkit();
_EditSection = createEditSection(form, client, toolkit);
GridData editSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
_EditSection.setLayoutData(editSectionGridData);
_PropertiesSection = createPropertiesTableSection(form, client, toolkit);
GridData propertiesSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
_PropertiesSection.setLayoutData(propertiesSectionGridData);
Table propertiesSectionTable = getPropertiesSectionTable();
initTableEdit(propertiesSectionTable, null, 1);
}
示例7: createDetailSection
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
protected Section createDetailSection(ScrolledForm form, Composite client, FormToolkit toolkit) {
Section section = createSection(form, client, toolkit, DETAIL_SECTION_TITLE, JmxActivator
.getManagedImage(JmxActivator.IMAGE_KEY_OBJECT_JMX_DOC));
Composite sectionClient = createSectionClient(section, toolkit);
_JmxDocFormText = toolkit.createFormText(sectionClient, false);
JmxDocFormText.initFormText(_JmxDocFormText);
FormData jmxdocFormTextFormData = new FormData();
jmxdocFormTextFormData.top = new FormAttachment(0, 0);
jmxdocFormTextFormData.left = new FormAttachment(0, 0);
_JmxDocFormText.setLayoutData(jmxdocFormTextFormData);
GridData detailSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
section.setLayoutData(detailSectionGridData);
return section;
}
示例8: createFormContent
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
FormToolkit toolkit=managedForm.getToolkit();
ScrolledForm form=managedForm.getForm();
form.setText("流程模版導出與部署");
ColumnLayout layout=new ColumnLayout();
layout.topMargin=0;
layout.bottomMargin=0;
layout.leftMargin=0;
layout.rightMargin=0;
layout.maxNumColumns=1;
layout.horizontalSpacing=5;
layout.verticalSpacing=5;
form.getBody().setLayout(layout);
this.createExportSection(toolkit, form);
this.createOnlineDeploymentSection(toolkit, form);
}
示例9: createFormContent
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
/**
* @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
*/
@Override
protected void createFormContent(final IManagedForm managedForm) {
final FormToolkit toolkit = managedForm.getToolkit();
final ScrolledForm scrolledForm = managedForm.getForm();
scrolledForm.setText(Messages.GeneratorEntryFormPage_formPageHeaderPrefix + getStatechartName());
final Form form = scrolledForm.getForm();
toolkit.decorateFormHeading(form);
final IToolBarManager toolBarManager = form.getToolBarManager();
toolBarManager.add(createGenerateAction());
form.updateToolBar();
final Composite body = scrolledForm.getBody();
body.setLayout(new TableWrapLayout());
createSections(toolkit, body);
startListeningToModelChanges();
}
示例10: createFormContent
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
final ScrolledForm form = managedForm.getForm();
FormToolkit toolkit = managedForm.getToolkit();
toolkit.decorateFormHeading(form.getForm());
IToolBarManager manager = form.getToolBarManager();
if (contributeToToolbar(manager)) {
form.updateToolBar();
}
String titleText = getFormTitleText();
if (titleText != null) {
form.setText(titleText);
}
Image titleImage = getFormTitleImage();
if (titleImage != null) {
form.setImage(titleImage);
}
toolkit.decorateFormHeading(form.getForm());
createUI(managedForm);
}
示例11: initialize
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
public void initialize(IManagedForm mform) {
super.initialize(mform);
FormToolkit toolkit = mform.getToolkit();
ScrolledForm sform = mform.getForm();
titleComposite = toolkit.createComposite(sform.getBody());
titleComposite.setLayout(new GridLayout(getNumTitleComponents(), false));
titleComposite.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
populateTitleComposite(toolkit, sform, titleComposite);
Composite separator = toolkit.createCompositeSeparator(sform.getBody());
TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP);
data.maxHeight = 2;
separator.setLayoutData(data);
}
示例12: setInput
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
@Override
public boolean setInput(Object input) {
ColumnLayout layout = new ColumnLayout();
layout.topMargin = 0;
layout.bottomMargin = 0;
layout.verticalSpacing = 0;
layout.maxNumColumns = 4;
body.setLayout(layout);
if (!(input instanceof EObject)) {
return false;
}
FormToolkit toolkit = getToolkit();
EObject object = (EObject) input;
List<IFormPart> formParts = EMFDetailFormPart.getFormParts(toolkit, object, true, selectionProvider);
for (IFormPart formPart : formParts) {
addPart(formPart);
}
boolean result = super.setInput(input);
ScrolledForm form = getForm();
form.reflow(true);
form.setOrigin(0, 0);
checkParts(layout, formParts, input);
return result;
}
示例13: initialize
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
private ScrolledForm initialize() {
GridLayout ourLayout = new GridLayout(1, false);
ourLayout.marginHeight = 0;
ourLayout.marginWidth = 0;
setLayout(ourLayout);
setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
ScrolledForm scrolledForm = toolkit.createScrolledForm(this);
scrolledForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
Composite formatComposite = XSPEditorUtil.createFormComposite(scrolledForm);
XSPEditorUtil.createCLabel(formatComposite, "Performance Properties", 2); // $NLX-XSPPerfPage.PerformanceProperties-1$
createLeftSide(formatComposite);
createRightSide(formatComposite);
return scrolledForm;
}
示例14: initialize
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
private ScrolledForm initialize() {
setParentPropertyName("xspProperties"); // $NON-NLS-1$
GridLayout ourLayout = new GridLayout(1, false);
ourLayout.marginHeight = 0;
ourLayout.marginWidth = 0;
setLayout(ourLayout);
setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
ScrolledForm scrolledForm = toolkit.createScrolledForm(this);
scrolledForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
Composite formatComposite = XSPEditorUtil.createFormComposite(scrolledForm);
XSPEditorUtil.createCLabel(formatComposite, "Page Generation Properties", 2); // $NLX-XSPGenPage.PageGenerationProperties-1$
createLeftSide(formatComposite);
createRightSide(formatComposite);
return scrolledForm;
}
示例15: initialize
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入依賴的package包/類
private ScrolledForm initialize() {
//setParentPropertyName("xspProperties"); // $NON-NLS-1$
GridLayout ourLayout = new GridLayout(1, false);
ourLayout.marginHeight = 0;
ourLayout.marginWidth = 0;
setLayout(ourLayout);
setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
ScrolledForm scrolledForm = toolkit.createScrolledForm(this);
scrolledForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
Composite formatComposite = XSPEditorUtil.createFormComposite(scrolledForm);
XSPEditorUtil.createCLabel(formatComposite, "XPage Properties", 2); // $NLX-XSPPage.XPageProperties-1$
createLeftSide(formatComposite);
createRightSide(formatComposite);
return scrolledForm;
}