本文整理汇总了Java中com.google.gwt.user.client.ui.HTML.setStylePrimaryName方法的典型用法代码示例。如果您正苦于以下问题:Java HTML.setStylePrimaryName方法的具体用法?Java HTML.setStylePrimaryName怎么用?Java HTML.setStylePrimaryName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.ui.HTML
的用法示例。
在下文中一共展示了HTML.setStylePrimaryName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MotdUi
import com.google.gwt.user.client.ui.HTML; //导入方法依赖的package包/类
/**
* Creates a new output panel for MOTD.
*/
private MotdUi() {
// Initialize UI
text = new HTML();
text.setSize("100%", "100%");
text.setStylePrimaryName("ode-Motd");
panel = new VerticalPanel();
panel.add(text);
panel.setSize("100%", "100%");
panel.setCellHeight(text, "100%");
panel.setCellWidth(text, "100%");
initWidget(panel);
}
示例2: MessagesOutput
import com.google.gwt.user.client.ui.HTML; //导入方法依赖的package包/类
/**
* Creates a new output panel for messages.
*/
private MessagesOutput() {
// Initialize UI
text = new HTML();
text.setSize("100%", "100%");
text.setStylePrimaryName("ode-MessagesOutput");
panel = new VerticalPanel();
panel.add(text);
panel.setSize("100%", "100%");
panel.setCellHeight(text, "100%");
panel.setCellWidth(text, "100%");
initWidget(panel);
}
示例3: createWidget
import com.google.gwt.user.client.ui.HTML; //导入方法依赖的package包/类
@Override
public HTML createWidget() {
HTML b = GWT.create(HTML.class);
b.addClickHandler(this);
b.setStylePrimaryName("v-nativelabel");
return b;
}
示例4: createWidget
import com.google.gwt.user.client.ui.HTML; //导入方法依赖的package包/类
/**
* dirty hack - before we fire onClick we keep last clicked button because of the lost of RelativeElement during converting and the
* issue of different layouts
*/
@Override
public FlowPanel createWidget() {
FlowPanel buttonBar = GWT.create(FlowPanel.class);
buttonBar.setStylePrimaryName("v-button-bar");
int buttonsAdded = 0;
if ((this.buttonBITM & VIEW_BITM) != 0) {
buttonBar.add(genButton(VIEW_BITM));
buttonsAdded++;
}
if ((this.buttonBITM & EDIT_BITM) != 0) {
buttonBar.add(genButton(EDIT_BITM));
buttonsAdded++;
}
if ((this.buttonBITM & DELETE_BITM) != 0) {
buttonBar.add(genButton(DELETE_BITM));
buttonsAdded++;
}
FlowPanel panel = GWT.create(FlowPanel.class);
panel.setStylePrimaryName(STYLE_NAME);
if (buttonsAdded == 3) {
panel.addStyleName("three-buttons");
} else if (buttonsAdded == 2) {
panel.addStyleName("two-buttons");
} else {
panel.addStyleName("one-button");
}
panel.add(buttonBar);
HTML valueLabel = GWT.create(HTML.class);
valueLabel.setStylePrimaryName("v-cell-value");
panel.add(valueLabel);
return panel;
}