当前位置: 首页>>代码示例>>Java>>正文


Java FlexTable.setWidth方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.FlexTable.setWidth方法的典型用法代码示例。如果您正苦于以下问题:Java FlexTable.setWidth方法的具体用法?Java FlexTable.setWidth怎么用?Java FlexTable.setWidth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.FlexTable的用法示例。


在下文中一共展示了FlexTable.setWidth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FuzzyDBPropertiesView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public FuzzyDBPropertiesView() {
	super();
	initWidget(BINDER.createAndBindUi(this));
	detailTable = new FlexTable();
	detailTable.setWidth("100%");
	detailTable.getColumnFormatter().setWidth(0, "40%");
	detailTable.getColumnFormatter().setWidth(1, "1%");
	detailTable.getColumnFormatter().setWidth(2, "59%");
	viewTable.setWidget(0, 0, detailTable);
	viewTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
	edit.setText(AdminConstants.EDIT_BUTTON);
	mappingButton.setText(AdminConstants.MAPPING_BUTTON);
	mappingButton.addClickHandler(new ClickHandler() {

		@Override
		public void onClick(ClickEvent arg0) {
			presenter.getController().getMainPresenter().showDocTypeMappingView();
		}
	});
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:24,代码来源:FuzzyDBPropertiesView.java

示例2: bind

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Processing to be done on load of this presenter.
 */
@Override
public void bind() {
	if (controller.getSelectedPlugin() != null) {
		this.dataTable = view.getViewTable();
		viewTable = new FlexTable();
		viewTable.setWidth("80%");
		viewTable.setCellSpacing(0);
		viewTable.getColumnFormatter().setWidth(0, "40%");
		viewTable.getColumnFormatter().setWidth(1, "1%");
		viewTable.getColumnFormatter().setWidth(2, "59%");
		dataTable.setWidget(0, 0, viewTable);
		dataTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
		setProperties();
		if (controller.getSelectedPlugin().getPlugin().getPluginName().equalsIgnoreCase(PluginNameConstants.CMIS_EXPORT_PLUGIN)) {
			view.getTestCMIS().setVisible(Boolean.TRUE);
		} else {
			view.getTestCMIS().setVisible(Boolean.FALSE);
		}
		enableCMISGetTokenButton();
	}
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:25,代码来源:PluginDetailPresenter.java

示例3: bind

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Processing to be done on load of this presenter.
 */
@Override
public void bind() {
	if (controller.getSelectedPlugin() != null) {
		this.dataTable = view.getViewTable();
		viewTable = new FlexTable();
		viewTable.setWidth("100%");
		viewTable.setCellSpacing(0);
		viewTable.getColumnFormatter().setWidth(0, "10%");
		viewTable.getColumnFormatter().setWidth(1, "1%");
		viewTable.getColumnFormatter().setWidth(2, "70%");
		viewTable.getFlexCellFormatter().addStyleName(0, 0, "topBorder");
		viewTable.getFlexCellFormatter().addStyleName(0, 1, "topBorder");
		viewTable.getFlexCellFormatter().addStyleName(0, 2, "topBorder");
		dataTable.setWidget(0, 0, viewTable);
		dataTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
		setProperties();
	}
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:22,代码来源:PluginDataPresenter.java

示例4: WikiPage

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * WikiPage
 */
public WikiPage() {
	table = new FlexTable();
	table.setWidth("100%");

	initWidget(table);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:10,代码来源:WikiPage.java

示例5: buildV3View

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
private void buildV3View() {
	final FlexTable table = new FlexTable();
	table.setWidth("500px");

	int i = 0;

	table.setWidget(i, 0, new Label("Country:"));
	table.setWidget(i, 1, V3lblId);
	i += 1;
	
	table.setWidget(i, 0, new Label("Longitude"));
	table.setWidget(i, 1, V3lblLongitude);
	i += 1;
	
	table.setWidget(i, 0, new Label("Latitude:"));
	table.setWidget(i, 1, V3lblLatitude);
	i += 1;
	
	table.setWidget(i, 0, new Label("Arrival Date:"));
	table.setWidget(i, 1, V3lblArrivalDate);
	i += 1;
	
	table.setWidget(i, 0, new Label("Departure Date:"));
	table.setWidget(i, 1, V3lblDepartDate);
	i += 1;
	
	table.setWidget(i, 0, new Label("Location:"));
	table.setWidget(i, 1, V3lblLocation);
	i += 1;
	
	table.setWidget(i, 0, new Label("Sights:"));
	table.setWidget(i, 1, V3lblSights);
	i += 1;
	
	table.setWidget(i, 0, new Label("Link:"));
	table.setWidget(i, 1, V3lblLink);
	i += 1;
	
	V3View.setWidget(table);
}
 
开发者ID:selu285-2015,项目名称:285_02_FA15G4,代码行数:41,代码来源:AllDialog.java

示例6: DocTypeMappingView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public DocTypeMappingView() {
	super();
	initWidget(BINDER.createAndBindUi(this));

	dbMappingPanel.setCaptionHTML(AdminConstants.DATABASE_MAPPING_HTML);
	pluginDetailsPanel.setCaptionHTML(AdminConstants.PLUGIN_DETAILS_HTML);

	detailsTable = new FlexTable();
	detailsTable.setWidth("100%");
	flexEditTable.setWidget(0, 0, detailsTable);
	flexEditTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);

}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:17,代码来源:DocTypeMappingView.java

示例7: EditBoxExporterView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public EditBoxExporterView() {
	super();
	initWidget(BINDER.createAndBindUi(this));

	cancel.setText(AdminConstants.CANCEL_BUTTON);

	ok.setText(AdminConstants.OK_BUTTON);

	authenticationTokenButton.setText(AdminConstants.AUTHENTICATION_TOKEN_BUTTON);
	flextable = new FlexTable();
	flextable.setWidth("100%");
	flextable.getColumnFormatter().setWidth(0, "40%");
	flextable.getColumnFormatter().setWidth(1, "1%");
	flextable.getColumnFormatter().setWidth(2, "59%");
	editTable.setWidget(0, 0, flextable);
	editTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
	docFieldWidgets = new ArrayList<EditableWidgetStorage>();

	authenticationTokenButton.addClickHandler(new ClickHandler() {

		@Override
		public void onClick(ClickEvent arg0) {
			Map<String, String> boxExportPropertyMap = presenter.boxExportPropertyMap;
			if (boxExportPropertyMap != null) {
				presenter.getNewTicket(true);
			} else {
				presenter.getBoxExporterProperties(true);
			}
		}
	});
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:35,代码来源:EditBoxExporterView.java

示例8: DocTypeFieldsMappingView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public DocTypeFieldsMappingView() {
	super();
	initWidget(BINDER.createAndBindUi(this));

	documentTypeDetails.setCaptionHTML(AdminConstants.DOCUMENT_TYPE_HTML);
	fieldMapping.setCaptionHTML(AdminConstants.FIELD_MAPPING_HTML);

	detailsTable = new FlexTable();
	detailsTable.setWidth("99%");
	flexEditTable.setWidget(0, 0, detailsTable);
	flexEditTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);

}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:17,代码来源:DocTypeFieldsMappingView.java

示例9: BoxExporterDetailView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public BoxExporterDetailView() {
	super();
	initWidget(BINDER.createAndBindUi(this));
	detailTable = new FlexTable();
	detailTable.setWidth("100%");
	detailTable.getColumnFormatter().setWidth(0, "40%");
	detailTable.getColumnFormatter().setWidth(1, "1%");
	detailTable.getColumnFormatter().setWidth(2, "59%");
	viewTable.setWidget(0, 0, detailTable);
	viewTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
	editBoxConfigurationButton.setText(AdminConstants.EDIT_BUTTON);
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:16,代码来源:BoxExporterDetailView.java

示例10: EditFuzzyDBPropertiesView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public EditFuzzyDBPropertiesView() {
	super();
	initWidget(BINDER.createAndBindUi(this));

	cancel.setText(AdminConstants.CANCEL_BUTTON);
	okButton.setText(AdminConstants.OK_BUTTON);

	mappingButton.setText(AdminConstants.MAPPING_BUTTON);

	flextable = new FlexTable();
	flextable.setWidth("100%");
	flextable.getColumnFormatter().setWidth(0, "40%");
	flextable.getColumnFormatter().setWidth(1, "1%");
	flextable.getColumnFormatter().setWidth(2, "59%");
	editTable.setWidget(0, 0, flextable);
	editTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);

	docFieldWidgets = new ArrayList<EditableWidgetStorage>();
	mappingButton.addClickHandler(new ClickHandler() {

		@Override
		public void onClick(ClickEvent arg0) {
			presenter.getController().getMainPresenter().showDocTypeMappingView();
		}
	});
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:30,代码来源:EditFuzzyDBPropertiesView.java

示例11: SamplePatternView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public SamplePatternView() {
	super();
	initWidget(BINDER.createAndBindUi(this));
	scrollPanel.setSize("490px", "495px");
	samplePatternTable = new FlexTable();
	samplePatternTable.setWidth("490px");
	samplePatternTable.setCellSpacing(0);
	samplePatternTable.addStyleName(AdminConstants.BORDER_RESULT_TABLE);
	backButton.setText(AdminConstants.CLOSE_BUTTON);
	patternListPanel.add(samplePatternTable);
	backButton.setFocus(true);
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:16,代码来源:SamplePatternView.java

示例12: KVExtractionTestResultView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public KVExtractionTestResultView() {
	super();
	initWidget(BINDER.createAndBindUi(this));

	scrollPanel.setSize("500px", "300px");

	resultTable = new FlexTable();
	resultTable.setWidth("100%");
	resultTable.setCellSpacing(0);
	resultTable.addStyleName("border-result-table");
	backButton.setText(AdminConstants.CLOSE_BUTTON);
	kvExtractionListPanel.add(resultTable);
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:17,代码来源:KVExtractionTestResultView.java

示例13: TableTestResultView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * Constructor.
 */
public TableTestResultView() {
	super();
	initWidget(BINDER.createAndBindUi(this));

	scrollPanel.setSize("500px", "300px");

	resultTable = new FlexTable();
	resultTable.setWidth("100%");
	resultTable.setCellSpacing(0);
	resultTable.addStyleName("border-result-table");
	backButton.setText(AdminConstants.CLOSE_BUTTON);
	tableListPanel.add(resultTable);
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:17,代码来源:TableTestResultView.java

示例14: setView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * To set the view.
 */
public void setView() {
	dataTable = new FlexTable();
	dataTable.setWidth("100%");
	flexEditTable.setWidget(0, 0, dataTable);
	flexEditTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
	saveButton.setText(AdminConstants.OK_BUTTON);
	cancelButton.setText(AdminConstants.CANCEL_BUTTON);
	saveButton.setHeight(AdminConstants.BUTTON_HEIGHT);
	cancelButton.setHeight(AdminConstants.BUTTON_HEIGHT);
	editScannerViewPanel.setSpacing(BatchClassManagementConstants.FIVE);
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:15,代码来源:EditScannerView.java

示例15: setView

import com.google.gwt.user.client.ui.FlexTable; //导入方法依赖的package包/类
/**
 * To set view.
 */
public void setView() {
	dataTable = new FlexTable();
	dataTable.setWidth("100%");
	flexEditTable.setWidget(0, 0, dataTable);
	flexEditTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:10,代码来源:ScannerDetailView.java


注:本文中的com.google.gwt.user.client.ui.FlexTable.setWidth方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。