本文整理了Java中org.gwtbootstrap3.client.ui.Button.add()
方法的一些代码示例,展示了Button.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.add()
方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Button
类名称:Button
方法名:add
暂无
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
protected void setupToggle() {
final Button btnToggle = GWT.create(Button.class);
btnToggle.removeStyleName("btn-default");
btnToggle.addStyleName(Styles.NAVBAR_TOGGLE);
btnToggle.setDataToggle(Toggle.COLLAPSE);
btnToggle.setDataTargetWidget(navbarCollapse);
btnToggle.add(createToggleBar());
btnToggle.add(createToggleBar());
btnToggle.add(createToggleBar());
navbarHeader.add(btnToggle);
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
public void setText(final Widget text) {
removeChildWidgets(button);
button.add(text);
addCaretToText();
}
代码示例来源:origin: oVirt/ovirt-engine
protected Container createItemContainerPanel(Row content, boolean hidden) {
Container panel = new Container();
panel.addStyleName(LIST_GROUP_ITEM_CONTAINER);
if (hidden) {
panel.addStyleName(ExpandableListViewItem.HIDDEN);
panel.setFluid(true);
Button closeButton = new Button();
closeButton.addStyleName(Styles.CLOSE);
getClickHandlerRegistrations().add(closeButton.addClickHandler(this));
Span icon = new Span();
icon.addStyleName(PatternflyConstants.PFICON);
icon.addStyleName(PatternflyConstants.PFICON_CLOSE);
closeButton.add(icon);
panel.add(closeButton);
}
panel.add(content);
return panel;
}
代码示例来源:origin: stackoverflow.com
button.add(image);
button.addListener(new ClickListener(){
@Override
代码示例来源:origin: kiegroup/appformer
protected void setupToggle() {
final Button btnToggle = GWT.create(Button.class);
btnToggle.removeStyleName("btn-default");
btnToggle.addStyleName(Styles.NAVBAR_TOGGLE);
btnToggle.setDataToggle(Toggle.COLLAPSE);
btnToggle.setDataTargetWidget(navbarCollapse);
btnToggle.add(createToggleBar());
btnToggle.add(createToggleBar());
btnToggle.add(createToggleBar());
navbarHeader.add(btnToggle);
}
代码示例来源:origin: kiegroup/appformer
public void setText(final Widget text) {
removeChildWidgets(button);
button.add(text);
addCaretToText();
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
public NavbarCollapseButton() {
button = new Button();
button.setStyleName(Styles.NAVBAR_TOGGLE);
button.setDataToggle(Toggle.COLLAPSE);
button.add(newBarIcon());
button.add(newBarIcon());
button.add(newBarIcon());
initWidget(button);
}
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
public NavbarCollapseButton() {
button = new Button();
button.setStyleName(Styles.NAVBAR_TOGGLE);
button.setDataToggle(Toggle.COLLAPSE);
button.add(newBarIcon());
button.add(newBarIcon());
button.add(newBarIcon());
initWidget(button);
}
代码示例来源:origin: stackoverflow.com
final Button button=new Button("buttn") {
public void onSubmit() {
System.out.println("change....");
setEnabled(false);
};
};
button.add(new AttributeModifier("class", true, new Model<Serializable>() {
@Override
public Serializable getObject() {
if (button.isEnabled())
return "your_enabled_class";
else return "your_disabled_class";
}
}));
代码示例来源:origin: oVirt/ovirt-engine
private void configureCloseButton() {
closeButton.setDataDismiss(ButtonDismiss.ALERT);
Span closeButtonSpan = new Span();
closeButtonSpan.addStyleName(PatternflyIconType.PF_BASE.getCssName());
closeButtonSpan.addStyleName(PatternflyIconType.PF_CLOSE.getCssName());
closeButton.add(closeButtonSpan);
}
代码示例来源:origin: stackoverflow.com
button.add(new AjaxFormValidatingBehavior(form, "onclick") {
代码示例来源:origin: stackoverflow.com
TextField textField1 = new TextField("field1");
textField1.setOutputMarkupId(true);
textField1.setMarkupId("field1");
TextField textField2 = new TextField("field2");
textField2.setOutputMarkupId(true);
textField2.setMarkupId("field2");
HiddenField hiddenField = new HiddenField("hidden");
hiddenField.setOutputMarkupId(true);
hiddenField.setMarkupId("hiddenField");
String function = "document.getElementById('"+ hiddenField.getMarkupId() +"').value = document.getElementById('"+ textField1.getMarkupId() +"').value + ' ' + document.getElementById('"+ textField2.getMarkupId() +"').value;";
Button concatButton = new Button("concat");
concatButton.add(new AttributeAppender("onclick", new Model(function), ";"));
代码示例来源:origin: stackoverflow.com
boldButton.add(new AttributeAppender("disabled", true, new Model<String>("disabled"), " "));
内容来源于网络,如有侵权,请联系作者删除!