本文整理匯總了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);
}