本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}