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


Java FlexTable.addStyleName方法代碼示例

本文整理匯總了Java中com.google.gwt.user.client.ui.FlexTable.addStyleName方法的典型用法代碼示例。如果您正苦於以下問題:Java FlexTable.addStyleName方法的具體用法?Java FlexTable.addStyleName怎麽用?Java FlexTable.addStyleName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.gwt.user.client.ui.FlexTable的用法示例。


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

示例1: DropDown

import com.google.gwt.user.client.ui.FlexTable; //導入方法依賴的package包/類
public DropDown() {
    current = new FlexTable();
    current.addStyleName("datatable");
    itemlist = new FlexTable();
    dropdown = new PopupPanel(true);
    scroller = new ScrollPanel();
    scroller.add(itemlist);
    dropdown.add(scroller);
    down =new HTML(" ▼");
    down.addStyleName("current-item");
    initWidget(current);
    HTML load = new HTML("loading...");
    load.addStyleName("current-item");
    current.setWidget(0, 0, load);
    current.setWidget(0, 1, down);
    current.addClickHandler(show);
}
 
開發者ID:NOAA-PMEL,項目名稱:LAS,代碼行數:18,代碼來源:DropDown.java

示例2: createTableWithStyles

import com.google.gwt.user.client.ui.FlexTable; //導入方法依賴的package包/類
private FlexTable createTableWithStyles(Element element) {
    table = new FlexTable();
    table.setStyleName(styleNames.QP_REPORT_TABLE());
    String cls = element.getAttribute(CLASS);
    if (cls != null) {
        table.addStyleName(cls);
    }
    return table;
}
 
開發者ID:YoungDigitalPlanet,項目名稱:empiria.player,代碼行數:10,代碼來源:ReportTableGenerator.java

示例3: 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

示例4: 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

示例5: 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

示例6: ExportPopup

import com.google.gwt.user.client.ui.FlexTable; //導入方法依賴的package包/類
public ExportPopup(String formid, FilterGroup selectedFilterGroup) {
  super();
  this.formId = formid;

  // ensure the filter group passed in is for the correct form
  if (selectedFilterGroup != null && formid.equals(selectedFilterGroup.getFormId())) {
    filtersBox = new FilterListBox(selectedFilterGroup);
  } else {
    filtersBox = new FilterListBox();
  }

  SecureGWT.getFilterService().getFilterSet(formId, new FiltersCallback());

  exportButton = new AggregateButton(CREATE_BUTTON_TXT, CREATE_BUTTON_TOOLTIP,
      CREATE_BUTTON_HELP_BALLOON);
  exportButton.addClickHandler(new CreateExportHandler());

  fileType = new EnumListBox<ExportType>(ExportType.values(), FILE_TYPE_TOOLTIP,
      FILE_TYPE_BALLOON);
  
  // set the standard header widgets
  optionsBar = new FlexTable();
  optionsBar.addStyleName("stretch_header");
  optionsBar.setWidget(0, 0, new HTML("<h2> Form:</h2>"));
  optionsBar.setWidget(0, 1, new HTML(formId));
  optionsBar.setWidget(0, 2, new HTML("<h2>Type:</h2>"));
  optionsBar.setWidget(0, 3, fileType);
  optionsBar.setWidget(0, 4, new HTML("<h2>Filter:</h2>"));
  optionsBar.setWidget(0, 5, filtersBox);
  optionsBar.setWidget(0, 6, exportButton);
  optionsBar.setWidget(0, 7, new ClosePopupButton(this));
  setWidget(optionsBar);
}
 
開發者ID:opendatakit,項目名稱:aggregate,代碼行數:34,代碼來源:ExportPopup.java

示例7: KmlOptionsPopup

import com.google.gwt.user.client.ui.FlexTable; //導入方法依賴的package包/類
public KmlOptionsPopup(String formid, FilterGroup selectedFilterGroup) {
  super();
  this.formId = formid;
  this.selectedfilterGroup = selectedFilterGroup;
  this.rows = new ArrayList<KmlSelectionGeneration>();

  SecureGWT.getFormService().getPossibleKmlSettings(formId, new KmlSettingsCallback());

  exportButton = new AggregateButton(CREATE_BUTTON_TXT, CREATE_BUTTON_TOOLTIP,
      CREATE_BUTTON_HELP_BALLOON);
  exportButton.addClickHandler(new CreateExportHandler());

  // disable export button until data received from server
  exportButton.setEnabled(false);
  
  // set the standard header widgets
  topBar = new FlexTable();
  topBar.addStyleName("stretch_header");
  topBar.setWidget(0, 0, new HTML("<h2> Form:</h2>"));
  topBar.setWidget(0, 1, new HTML(formId));
  topBar.setWidget(0, 2, new HTML("<h2>Filter:</h2>"));
  topBar.setWidget(0, 3, new HTML(selectedFilterGroup.getName()));
  topBar.setWidget(0, 6, exportButton);
  topBar.setWidget(0, 7, new ClosePopupButton(this));

  
  FlexTable initlayout = new FlexTable();
  initlayout.setWidget(0, 0, topBar);
  setWidget(initlayout);
}
 
開發者ID:opendatakit,項目名稱:aggregate,代碼行數:31,代碼來源:KmlOptionsPopup.java

示例8: SubmissionPaginationNavBar

import com.google.gwt.user.client.ui.FlexTable; //導入方法依賴的package包/類
public SubmissionPaginationNavBar() {

    getElement().setId("filter_submission_pagination");

    controls = new FlexTable();
    controls.addStyleName("form_title_bar");
    controls.getElement().setAttribute("align", "center");

    add(controls);
  }
 
開發者ID:opendatakit,項目名稱:aggregate,代碼行數:11,代碼來源:SubmissionPaginationNavBar.java


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