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


Java GridData.FILL_HORIZONTAL屬性代碼示例

本文整理匯總了Java中org.eclipse.swt.layout.GridData.FILL_HORIZONTAL屬性的典型用法代碼示例。如果您正苦於以下問題:Java GridData.FILL_HORIZONTAL屬性的具體用法?Java GridData.FILL_HORIZONTAL怎麽用?Java GridData.FILL_HORIZONTAL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.eclipse.swt.layout.GridData的用法示例。


在下文中一共展示了GridData.FILL_HORIZONTAL屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createPropertiesGroup

/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(AnalysisMessages.ProtectionParameterValuePropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:14,代碼來源:ProtectionParameterValuePropertiesEditionPartImpl.java

示例2: createPropertiesGroup

/**
 * 
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
	Section propertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
	propertiesSection.setText(MetamodelMessages.OrderOnStockThresholdPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesSectionData.horizontalSpan = 3;
	propertiesSection.setLayoutData(propertiesSectionData);
	Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	propertiesSection.setClient(propertiesGroup);
	return propertiesGroup;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:16,代碼來源:OrderOnStockThresholdPropertiesEditionPartForm.java

示例3: createTimingPropertiesGroup

/**
 * 
 */
protected Composite createTimingPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
	Section timingPropertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
	timingPropertiesSection.setText(GrmMessages.TimingPropertiesEditionPart_TimingPropertiesGroupLabel);
	GridData timingPropertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
	timingPropertiesSectionData.horizontalSpan = 3;
	timingPropertiesSection.setLayoutData(timingPropertiesSectionData);
	Composite timingPropertiesGroup = widgetFactory.createComposite(timingPropertiesSection);
	GridLayout timingPropertiesGroupLayout = new GridLayout();
	timingPropertiesGroupLayout.numColumns = 3;
	timingPropertiesGroup.setLayout(timingPropertiesGroupLayout);
	timingPropertiesSection.setClient(timingPropertiesGroup);
	return timingPropertiesGroup;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:16,代碼來源:TimingPropertiesEditionPartForm.java

示例4: createIsWatchdogCheckbox

protected Composite createIsWatchdogCheckbox(FormToolkit widgetFactory, Composite parent) {
	isWatchdog = widgetFactory.createButton(parent, getDescription(SrmViewsRepository.General.Properties.isWatchdog,
			SrmMessages.GeneralPropertiesEditionPart_IsWatchdogLabel), SWT.CHECK);
	isWatchdog.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this,
								SrmViewsRepository.General.Properties.isWatchdog, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isWatchdog.getSelection())));
		}

	});
	GridData isWatchdogData = new GridData(GridData.FILL_HORIZONTAL);
	isWatchdogData.horizontalSpan = 2;
	isWatchdog.setLayoutData(isWatchdogData);
	EditingUtils.setID(isWatchdog, SrmViewsRepository.General.Properties.isWatchdog);
	EditingUtils.setEEFtype(isWatchdog, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent
			.getHelpContent(SrmViewsRepository.General.Properties.isWatchdog, SrmViewsRepository.FORM_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsWatchdogCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:32,代碼來源:GeneralPropertiesEditionPartForm.java

示例5: createPropertiesGroup

/**
 * @generated
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
	Section propertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
	propertiesSection.setText(AnalysisMessages.RequiredProtectionParameterPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesSectionData.horizontalSpan = 3;
	propertiesSection.setLayoutData(propertiesSectionData);
	Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	propertiesSection.setClient(propertiesGroup);
	return propertiesGroup;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:16,代碼來源:RequiredProtectionParameterPropertiesEditionPartForm.java

示例6: createIsBufferedCheckbox

protected Composite createIsBufferedCheckbox(FormToolkit widgetFactory, Composite parent) {
	isBuffered = widgetFactory.createButton(parent, getDescription(SrmViewsRepository.General.Properties.isBuffered,
			SrmMessages.GeneralPropertiesEditionPart_IsBufferedLabel), SWT.CHECK);
	isBuffered.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this,
								SrmViewsRepository.General.Properties.isBuffered, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isBuffered.getSelection())));
		}

	});
	GridData isBufferedData = new GridData(GridData.FILL_HORIZONTAL);
	isBufferedData.horizontalSpan = 2;
	isBuffered.setLayoutData(isBufferedData);
	EditingUtils.setID(isBuffered, SrmViewsRepository.General.Properties.isBuffered);
	EditingUtils.setEEFtype(isBuffered, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent
			.getHelpContent(SrmViewsRepository.General.Properties.isBuffered, SrmViewsRepository.FORM_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsBufferedCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:32,代碼來源:GeneralPropertiesEditionPartForm.java

示例7: createPropertiesGroup

/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(AnalysisMessages.MemoryResourcePropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:14,代碼來源:MemoryResourcePropertiesEditionPartImpl.java

示例8: createDialogArea

@Override
protected Control createDialogArea(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    container.setLayout(new GridLayout(2, false));
    container.setLayoutData(new GridData(GridData.FILL_BOTH));

    new Label(container, SWT.NONE).setText(Messages.FeedBackDialog_subject);

    txtSubject = new Text(container, SWT.BORDER);
    txtSubject.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    new Label(container, SWT.NONE).setText(Messages.e_mail);

    emailFrom = new Text(container, SWT.BORDER);
    emailFrom.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    new Label(container, SWT.NONE).setText(Messages.feedback_message);

    txtMessage = new Text(container, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.heightHint = new PixelConverter(container).convertHeightInCharsToPixels(8);
    txtMessage.setLayoutData(gd);

    new Label(container, SWT.NONE);

    btnCheckLog = new Button(container, SWT.CHECK);
    btnCheckLog.setText(Messages.add_log);

    return container;
}
 
開發者ID:pgcodekeeper,項目名稱:pgcodekeeper,代碼行數:30,代碼來源:FeedBackDialog.java

示例9: createIsBufferedCheckbox

protected Composite createIsBufferedCheckbox(Composite parent) {
	isBuffered = new Button(parent, SWT.CHECK);
	isBuffered.setText(getDescription(SrmViewsRepository.General.Properties.isBuffered,
			SrmMessages.GeneralPropertiesEditionPart_IsBufferedLabel));
	isBuffered.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
								SrmViewsRepository.General.Properties.isBuffered, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isBuffered.getSelection())));
		}

	});
	GridData isBufferedData = new GridData(GridData.FILL_HORIZONTAL);
	isBufferedData.horizontalSpan = 2;
	isBuffered.setLayoutData(isBufferedData);
	EditingUtils.setID(isBuffered, SrmViewsRepository.General.Properties.isBuffered);
	EditingUtils.setEEFtype(isBuffered, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent
			.getHelpContent(SrmViewsRepository.General.Properties.isBuffered, SrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsBufferedCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:33,代碼來源:GeneralPropertiesEditionPartImpl.java

示例10: createPropertiesGroup

/**
 * 
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
	Section propertiesSection = widgetFactory.createSection(parent,
			Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
	propertiesSection.setText(SrmMessages.OtherPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesSectionData.horizontalSpan = 3;
	propertiesSection.setLayoutData(propertiesSectionData);
	Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	propertiesSection.setClient(propertiesGroup);
	return propertiesGroup;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:17,代碼來源:OtherPropertiesEditionPartForm.java

示例11: createIsSynchronousCheckbox

protected Composite createIsSynchronousCheckbox(Composite parent) {
	isSynchronous = new Button(parent, SWT.CHECK);
	isSynchronous.setText(getDescription(HrmViewsRepository.General.Properties.isSynchronous,
			HrmMessages.GeneralPropertiesEditionPart_IsSynchronousLabel));
	isSynchronous.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
								HrmViewsRepository.General.Properties.isSynchronous, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isSynchronous.getSelection())));
		}

	});
	GridData isSynchronousData = new GridData(GridData.FILL_HORIZONTAL);
	isSynchronousData.horizontalSpan = 2;
	isSynchronous.setLayoutData(isSynchronousData);
	EditingUtils.setID(isSynchronous, HrmViewsRepository.General.Properties.isSynchronous);
	EditingUtils.setEEFtype(isSynchronous, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(
			HrmViewsRepository.General.Properties.isSynchronous, HrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsSynchronousCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:33,代碼來源:GeneralPropertiesEditionPartImpl.java

示例12: createOtherPropertiesGroup

/**
 * 
 */
protected Composite createOtherPropertiesGroup(Composite parent) {
	Group otherPropertiesGroup = new Group(parent, SWT.NONE);
	otherPropertiesGroup.setText(GrmMessages.OtherPropertiesEditionPart_OtherPropertiesGroupLabel);
	GridData otherPropertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	otherPropertiesGroupData.horizontalSpan = 3;
	otherPropertiesGroup.setLayoutData(otherPropertiesGroupData);
	GridLayout otherPropertiesGroupLayout = new GridLayout();
	otherPropertiesGroupLayout.numColumns = 3;
	otherPropertiesGroup.setLayout(otherPropertiesGroupLayout);
	return otherPropertiesGroup;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:14,代碼來源:OtherPropertiesEditionPartImpl.java

示例13: createPropertiesGroup

/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.OrderOnStockThresholdPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:14,代碼來源:OrderOnStockThresholdPropertiesEditionPartImpl.java

示例14: createPropertiesGroup

/**
 * 
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
	Section propertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
	propertiesSection.setText(MetamodelMessages.BinomialPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesSectionData.horizontalSpan = 3;
	propertiesSection.setLayoutData(propertiesSectionData);
	Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	propertiesSection.setClient(propertiesGroup);
	return propertiesGroup;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:16,代碼來源:BinomialPropertiesEditionPartForm.java

示例15: createPropertiesGroup

/**
 * 
 */
protected Composite createPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
	Section propertiesSection = widgetFactory.createSection(parent,
			Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
	propertiesSection.setText(HrmMessages.OtherPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesSectionData.horizontalSpan = 3;
	propertiesSection.setLayoutData(propertiesSectionData);
	Composite propertiesGroup = widgetFactory.createComposite(propertiesSection);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	propertiesSection.setClient(propertiesGroup);
	return propertiesGroup;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:17,代碼來源:OtherPropertiesEditionPartForm.java


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