本文整理了Java中org.gwtbootstrap3.client.ui.Button.setType()
方法的一些代码示例,展示了Button.setType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setType()
方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Button
类名称:Button
方法名:setType
暂无
代码示例来源:origin: org.uberfire/uberfire-widgets-core-client
public void enableFinishButton(final boolean enabled) {
btnFinish.setEnabled(enabled);
if (enabled) {
btnFinish.setType(ButtonType.PRIMARY);
} else {
btnFinish.setType(ButtonType.DEFAULT);
}
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-library-client
private Button button(final String text,
final Command command,
final ButtonType type) {
Button button = new Button(text,
event -> command.execute());
button.setType(type);
return button;
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-library-client
private Button button(final String text,
final Command command,
final ButtonType type) {
Button button = new Button(text,
event -> command.execute());
button.setType(type);
return button;
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-library-client
private Button button(final String text,
final Command command,
final ButtonType type) {
Button button = new Button(text,
event -> command.execute());
button.setType(type);
return button;
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-library-client
public static Button button(final String text,
final Command command,
final ButtonType type) {
Button button = new Button(text,
event -> command.execute());
button.setType(type);
return button;
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
protected void addDefaultFooter() {
final Button close = GWT.create(Button.class);
close.setText("OK");
close.setDataDismiss(ButtonDismiss.MODAL);
close.setType(ButtonType.PRIMARY);
setFooterContent(close);
}
代码示例来源:origin: kiegroup/appformer
protected void addDefaultFooter() {
final Button close = GWT.create(Button.class);
close.setText("OK");
close.setDataDismiss(ButtonDismiss.MODAL);
close.setType(ButtonType.PRIMARY);
setFooterContent(close);
}
代码示例来源:origin: org.jbpm/jbpm-wb-data-filters-client
@Inject
public AdvancedFilterEditor(DataSetClientServices dataSetClientServices) {
initWidget(uiBinder.createAndBindUi(this));
this.dataSetClientServices = dataSetClientServices;
okButton.setType(ButtonType.PRIMARY);
okButton.addClickHandler(event -> ok());
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
public ListDropdown() {
super.add(button);
super.add(dropDownMenu);
button.setType(ButtonType.LINK);
this.addStyleName("uf-list-dropdown");
}
代码示例来源:origin: kiegroup/appformer
public ListDropdown() {
super.add(button);
super.add(dropDownMenu);
button.setType(ButtonType.LINK);
this.addStyleName("uf-list-dropdown");
}
代码示例来源:origin: kiegroup/appformer
public PropertyEditorItemButtons() {
initWidget(uiBinder.createAndBindUi(this));
removalButton.setType(ButtonType.DANGER);
removalButton.setSize(ButtonSize.EXTRA_SMALL);
removalButton.setIcon(IconType.MINUS);
// removalButton.addClickHandler( clickHandler );
}
代码示例来源:origin: kiegroup/appformer
public void addRemovalButton(ClickHandler clickHandler) {
removalButton.setVisible(true);
removalButton.setType(ButtonType.DANGER);
removalButton.setSize(ButtonSize.EXTRA_SMALL);
removalButton.setIcon(IconType.MINUS);
removalButton.addClickHandler(clickHandler);
}
代码示例来源:origin: kiegroup/appformer
@Test
public void createTest() {
verify(button).setSize(ButtonSize.SMALL);
verify(button).setType(ButtonType.INFO);
verify(sideDockItem).configureText(any(Button.class), eq((String) null));
verify(sideDockItem).configureIcon(any(Button.class), eq((ImageResource) null));
verify(sideDockItem, never()).configureImageIcon(any(Button.class), any(ImageResource.class));
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Test
public void createTest() {
verify(button).setSize(ButtonSize.SMALL);
verify(button).setType(ButtonType.INFO);
verify(sideDockItem).configureText(any(Button.class), eq((String) null));
verify(sideDockItem).configureIcon(any(Button.class), eq((ImageResource) null));
verify(sideDockItem, never()).configureImageIcon(any(Button.class), any(ImageResource.class));
}
代码示例来源:origin: kiegroup/appformer
@Override
public void open() {
opened = true;
itemButton.setType(ButtonType.INFO);
if (getDock().getImageIconFocused() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIconFocused());
}
}
代码示例来源:origin: kiegroup/appformer
@Override
public void close() {
opened = false;
itemButton.setType(ButtonType.LINK);
if (getDock().getImageIcon() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIcon());
}
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Override
public void open() {
opened = true;
itemButton.setType(ButtonType.INFO);
if (getDock().getImageIconFocused() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIconFocused());
}
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Override
public void open() {
opened = true;
itemButton.setActive(true);
itemButton.setType(ButtonType.INFO);
if (getDock().getImageIconFocused() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIconFocused());
}
}
代码示例来源:origin: kiegroup/appformer
@Override
public void close() {
opened = false;
popup.inactive();
itemButton.setActive(false);
itemButton.setType(ButtonType.LINK);
if (getDock().getImageIcon() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIcon());
}
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
private void createButtom() {
itemButton.addStyleName(CSS.CSS().singleDockItem());
itemButton.addStyleName(CSS.CSS().sideDockItem());
itemButton.setIcon(IconType.CHEVRON_RIGHT);
itemButton.setIconFixedWidth(true);
itemButton.setSize(ButtonSize.SMALL);
itemButton.setType(ButtonType.LINK);
itemButton.addClickHandler(event -> openAndExecuteExpandCommand());
}
内容来源于网络,如有侵权,请联系作者删除!