当前位置: 首页>>代码示例>>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;未经允许,请勿转载。