當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。