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