org.eclipse.swt.widgets.Composite#setFocus ( )源码实例Demo

下面列出了org.eclipse.swt.widgets.Composite#setFocus ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: olca-app   文件: ImpactNwPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	Section section = UI.section(body, toolkit,
			M.NormalizationWeightingSets);
	UI.gridData(section, true, true);
	Composite client = toolkit.createComposite(section);
	section.setClient(client);
	UI.gridLayout(client, 1);
	SashForm sashForm = createSash(client);
	setViewer = createNwSetViewer(section, sashForm);
	factorViewer = new NwFactorViewer(sashForm, editor);
	sashForm.setWeights(new int[] { 25, 75 });
	setViewer.selectFirst();
	body.setFocus();
	form.reflow(true);
	editor.getEventBus().register(this);
	editor.onSaved(() -> updateInput());
}
 
源代码2 项目: olca-app   文件: ProjectSetupPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, toolkit);
	createButton(infoSection.getContainer());
	new ImpactSection(editor).render(body, toolkit);
	createVariantsSection(body);
	Section section = UI.section(body, toolkit, M.Parameters);
	parameterTable = new ProjectParameterTable(editor);
	parameterTable.render(section, toolkit);
	initialInput();
	new ProcessContributionSection(editor).create(body, toolkit);
	body.setFocus();
	form.reflow(true);
}
 
源代码3 项目: olca-app   文件: InfoPage.java
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(this);
	FormToolkit tk = mform.getToolkit();
	Composite body = UI.formBody(form, tk);
	InfoSection info = new InfoSection(getEditor());
	info.render(body, tk);
	checkBox(info.getContainer(),
			M.InfrastructureProcess, "infrastructureProcess");
	createButtons(info.getContainer(), tk);
	createTimeSection(body, tk);
	createGeographySection(body, tk);
	createTechnologySection(body, tk);
	new ImageSection(getEditor(), tk, body);
	createDqSection(body, tk);
	body.setFocus();
	form.reflow(true);
}
 
源代码4 项目: olca-app   文件: ProcessExchangePage.java
@Override
protected void createFormContent(IManagedForm mform) {
	form = UI.formHeader(this);
	toolkit = mform.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	SashForm sash = new SashForm(body, SWT.VERTICAL);
	UI.gridData(sash, true, true);
	toolkit.adapt(sash);
	inputTable = createTable(sash, true);
	outputTable = createTable(sash, false);
	body.setFocus();
	form.reflow(true);
	sortExchanges();
	inputTable.setInput(getModel());
	outputTable.setInput(getModel());
	editor.onSaved(() -> {
		inputTable.setInput(getModel());
		outputTable.setInput(getModel());
	});
}
 
源代码5 项目: olca-app   文件: GlobalParameterInfoPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, toolkit);
	createAdditionalInfo(body);
	body.setFocus();
	form.reflow(true);
}
 
源代码6 项目: olca-app   文件: ImpactCategoryEditor.java
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(this);
	FormToolkit toolkit = mform.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection info = new InfoSection(getEditor());
	info.render(body, toolkit);
	Composite comp = info.getContainer();
	text(comp, M.ReferenceUnit, "referenceUnit");
	body.setFocus();
	form.reflow(true);
}
 
源代码7 项目: olca-app   文件: ImpactMethodInfoPage.java
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(this);
	FormToolkit tk = mform.getToolkit();
	Composite body = UI.formBody(form, tk);
	InfoSection info = new InfoSection(getEditor());
	info.render(body, tk);
	createIndicatorTable(tk, body);
	body.setFocus();
	form.reflow(true);
}
 
源代码8 项目: olca-app   文件: LocationInfoPage.java
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(this);
	FormToolkit tk = mform.getToolkit();
	Composite body = UI.formBody(form, tk);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, tk);
	createAdditionalInfo(body, tk);
	new MapSection(editor).render(body, tk);
	body.setFocus();
	form.reflow(true);
}
 
源代码9 项目: olca-app   文件: ActorInfoPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, toolkit);
	createAdditionalInfo(body);
	body.setFocus();
	form.reflow(true);
}
 
源代码10 项目: olca-app   文件: SocialIndicatorEditor.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	FormToolkit toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, toolkit);
	createAdditionalInfo(body, toolkit);
	createActivitySection(toolkit, body);
	body.setFocus();
	form.reflow(true);
}
 
源代码11 项目: olca-app   文件: FlowPropertiesPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	Section section = UI.section(body, toolkit, M.FlowProperties);
	UI.gridData(section, true, true);
	Composite client = UI.sectionClient(section, toolkit, 1);
	FlowPropertyFactorViewer viewer = new FlowPropertyFactorViewer(client, Cache.getEntityCache(), editor);
	setInitialInput(viewer);
	CommentAction.bindTo(section, viewer, "flowProperties", editor.getComments());
	editor.onSaved(() -> viewer.setInput(getModel()));
	body.setFocus();
	form.reflow(true);
}
 
源代码12 项目: olca-app   文件: FlowInfoPage.java
@Override
protected void createFormContent(IManagedForm mform) {
	form = UI.formHeader(this);
	toolkit = mform.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, toolkit);
	FlowUseSection useSection = new FlowUseSection(getModel(), Database.get());
	useSection.render(body, toolkit);
	createAdditionalInfo(infoSection, body);
	processButton(infoSection);
	body.setFocus();
	form.reflow(true);
}
 
源代码13 项目: olca-app   文件: SourceInfoPage.java
@Override
protected void createFormContent(IManagedForm mform) {
	form = UI.formHeader(this);
	tk = mform.getToolkit();
	Composite body = UI.formBody(form, tk);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, tk);
	additionalInfo(body);
	body.setFocus();
	form.reflow(true);
}
 
源代码14 项目: olca-app   文件: FlowPropertyInfoPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, toolkit);
	createAdditionalInfo(infoSection);
	body.setFocus();
	form.reflow(true);
}
 
源代码15 项目: olca-app   文件: CurrencyEditor.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	FormToolkit tk = managedForm.getToolkit();
	Composite body = UI.formBody(form, tk);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, tk);
	createAdditionalInfo(body, tk);
	table = new CurrencyTable(getModel());
	table.create(body, tk);
	body.setFocus();
	form.reflow(true);
}
 
源代码16 项目: olca-app   文件: ProductSystemInfoPage.java
@Override
protected void createFormContent(IManagedForm mform) {
	form = UI.formHeader(this);
	FormToolkit tk = mform.getToolkit();
	Composite body = UI.formBody(form, tk);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, tk);
	addCalculationButton(infoSection.getContainer(), tk);
	addInventoryInfo(infoSection.getContainer(), tk);
	createReferenceSection(body, tk);
	body.setFocus();
	form.reflow(true);
}
 
源代码17 项目: olca-app   文件: UnitGroupInfoPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	InfoSection infoSection = new InfoSection(getEditor());
	infoSection.render(body, toolkit);
	createAdditionalInfo(infoSection, body);
	body.setFocus();
	form.reflow(true);
}
 
源代码18 项目: olca-app   文件: AdminInfoPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	createAdminInfoSection(body);
	body.setFocus();
	form.reflow(true);
}
 
源代码19 项目: olca-app   文件: ProcessModelingPage.java
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	createModelingSection(body);
	createDataSourceSection(body);
	createEvaluationSection(body);
	createSourcesSection(body);
	body.setFocus();
	form.reflow(true);
}