• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ButtonSize类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.gwtbootstrap3.client.ui.constants.ButtonSize的典型用法代码示例。如果您正苦于以下问题:Java ButtonSize类的具体用法?Java ButtonSize怎么用?Java ButtonSize使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ButtonSize类属于org.gwtbootstrap3.client.ui.constants包,在下文中一共展示了ButtonSize类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: addButtons

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private ButtonGroup addButtons() {
  ButtonGroup buttonGroup = new ButtonGroup();
  buttonGroup.setHeight("4em");
  buttonGroup.setJustified(true);
  buttonGroup.setDataToggle(Toggle.BUTTONS);
  for (final ButtonType t : ButtonType.values()) {
    RadioButton radioButton = new RadioButton(t.toString());
    radioButton.setType(t);
    radioButton.setSize(ButtonSize.SMALL);
    radioButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        userColor = t.name();
      }
    });
    buttonGroup.add(radioButton);
  }
  return buttonGroup;
}
 
开发者ID:treblereel,项目名称:ErraiMessageBusChat,代码行数:20,代码来源:PropertyModalPanel.java


示例2: createButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
void createButton() {
    itemButton.setSize(ButtonSize.SMALL);
    itemButton.setType(ButtonType.LINK);
    configureIcon(itemButton,
                  getDock().getImageIcon());
    mouseEventHandler = new MouseEventHandler();
    itemButton.addDomHandler(mouseEventHandler,
                             MouseOverEvent.getType());
    itemButton.addStyleName(CSS.CSS().sideDockItem());
    itemButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            if (!isOpened()) {
                openAndExecuteExpandCommand();
            } else {
                closeAndExecuteCommand();
            }
        }
    });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:21,代码来源:SideDockItem.java


示例3: createButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
void createButton(final SideDockItem parent) {
    itemButton.setSize(ButtonSize.SMALL);
    itemButton.setType(ButtonType.INFO);
    parent.configureText(itemButton,
                         parent.getLabel());
    parent.configureIcon(itemButton,
                         parent.getDock().getImageIconFocused());
    onMouseOutHidePopup();
    itemButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            if (!parent.isOpened()) {
                active();
                parent.openAndExecuteExpandCommand();
            } else {
                inactive();
                parent.closeAndExecuteCommand();
            }
        }
    });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:22,代码来源:SideDockItemFocused.java


示例4: createButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
void createButton() {
    itemButton.setSize(ButtonSize.SMALL);
    itemButton.setType(ButtonType.LINK);
    configureText(itemButton,
                  getDock().getLabel());
    configureIcon(itemButton,
                  getDock().getImageIcon());
    itemButton.getElement().addClassName(CSS.CSS().southDockItem());
    itemButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            if (!opened) {
                open();
                openCommand.execute(getIdentifier());
            } else {
                close();
                closeCommand.execute(getIdentifier());
            }
        }
    });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:22,代码来源:SouthDockItem.java


示例5: makeDropDownMenuButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private Widget makeDropDownMenuButton(final String caption,
                                      final List<Widget> widgetList) {
    final ButtonGroup buttonGroup = GWT.create(ButtonGroup.class);
    final Button dropdownButton = GWT.create(Button.class);
    dropdownButton.setText(caption);
    dropdownButton.setDataToggle(Toggle.DROPDOWN);
    dropdownButton.setSize(ButtonSize.SMALL);
    final DropDownMenu dropDownMenu = GWT.create(DropDownMenu.class);
    dropDownMenu.setPull(Pull.RIGHT);
    for (final Widget _item : widgetList) {
        dropDownMenu.add(_item);
    }
    buttonGroup.add(dropdownButton);
    buttonGroup.add(dropDownMenu);
    return buttonGroup;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:17,代码来源:ListBarWidgetImpl.java


示例6: getMenuActionsButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
protected ButtonGroup getMenuActionsButton() {
    return new ButtonGroup() {{
        add(new Button( Constants.INSTANCE.menu_button_actions()) {{
            setSize(ButtonSize.EXTRA_SMALL);
            addStyleName(Pull.RIGHT.getCssName());
            setDataToggle(Toggle.DROPDOWN);
        }} );
        add(new DropDownMenu() {{
            add(new AnchorListItem(Constants.INSTANCE.menu_edit()) {{
                addClickHandler(event -> getEditCommand().execute());
            }} );
            add(new AnchorListItem(Constants.INSTANCE.menu_clone() ) {{
                addClickHandler(event -> getCloneCommand().execute());
            }} );
            add(new AnchorListItem(Constants.INSTANCE.menu_export_csv() ) {{
                addClickHandler(event -> getExportCsvCommand().execute());
            }} );
            add(new AnchorListItem(Constants.INSTANCE.menu_export_excel()) {{
                addClickHandler(event -> getExportExcelCommand().execute());
            }} );
        }} );
    }};
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:24,代码来源:DisplayerScreenPresenter.java


示例7: buildDevMenuItem

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private MenuItem buildDevMenuItem() {
    final DropDownMenu menu = new DropDownMenu() {{
        addStyleName("pull-right");
    }};
    for (final MenuDevCommand command : devCommands) {
        menu.add(new AnchorListItem(command.getText()) {{
            setIcon(command.getIcon());
            addClickHandler(event -> command.execute());
        }});
    }
    final IsWidget group = new ButtonGroup() {{
        add(new Button() {{
            setToggleCaret(false);
            setDataToggle(Toggle.DROPDOWN);
            setIcon(IconType.COG);
            setSize(ButtonSize.SMALL);
            setTitle("Development");
        }});
        add(menu);
    }};
    return MenuUtils.buildItem(group);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:23,代码来源:MenuDevCommandsBuilder.java


示例8: addRemoveRowColumn

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private void addRemoveRowColumn() {
    ButtonCell buttonCell = new ButtonCell(IconType.TRASH,
                                           ButtonType.DANGER,
                                           ButtonSize.SMALL);
    Column<ContainerConfig, String> column = new Column<ContainerConfig, String>(buttonCell) {
        @Override
        public String getValue(ContainerConfig containerConfig) {
            return translationService.getTranslation(ContainerConfigParamsView_Delete);
        }
    };

    column.setFieldUpdater((index, containerConfig, value) -> presenter.onDeleteContainer(containerConfig));

    dataGrid.addColumn(column,
                       "");
    dataGrid.setColumnWidth(column,
                            90,
                            Style.Unit.PX);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:20,代码来源:ContainerConfigParamsView.java


示例9: initActionColumn

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private void initActionColumn() {
	ButtonCell buttonCell = new ButtonCell(IconType.COG, ButtonType.LINK, ButtonSize.DEFAULT);
	PopupCell<String> popupCell = new PopupCell<String>(
			contextPanel, buttonCell);
	actionColumn = new Column<TemplateDto, String>(
			popupCell) {
		@Override
		public String getValue(TemplateDto object) {
			return "";
		}
	};
	actionColumn.setCellStyleNames("templates-action-cell " + style.templatesActionCell());
	addColumntoTemplateTable(actionColumn, "");
}
 
开发者ID:wte4j,项目名称:wte4j,代码行数:15,代码来源:TemplateListPanel.java


示例10: addPluginButtons

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private void addPluginButtons() {
  if(property.getPlugins() != null) {
    pluginButtonGroup = new ButtonGroup();
    pluginButtonGroup.addStyleName("btn-group-responsive has-bottom-margin");
    for(Plugin plugin : property.getPlugins()) {
      if(!plugin.isAutomaticallyTriggered()) {
        final Button btn = new Button(plugin.getLabel());
        btn.setSize(ButtonSize.EXTRA_SMALL);
        btn.setType(ButtonType.INFO);
        btn.setIcon(IconType.fromStyleName(plugin.getIcon()));
        pluginButtonGroup.add(btn);
        final String pluginname = plugin.getName();
        btn.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            btn.state().loading();
            runPlugin(pluginname);
          }
        });
        pluginbuttons.put(plugin.getName(), btn);
      }
    }
    if(pluginButtonGroup.getWidgetCount() > 0)
      this.add(pluginButtonGroup);
  }
  
  // Enable/Disable plugin buttons
  for(Entity entity : this.entities) {
      handleEntityPlugins(entity);
  }
}
 
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:32,代码来源:PropertyFormGroup.java


示例11: getView

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
@WorkbenchPartView
public IsWidget getView() {
    final FlowPanel widgets = new FlowPanel();

    widgets.getElement().getStyle().setPadding(15,
                                               Style.Unit.PX);

    for (final YouTubeVideo video : VIDEOS) {

        final Heading h3 = new Heading(HeadingSize.H3,
                                       video.getName());
        final Paragraph p = new Paragraph(video.getDescription());
        final Button play = new Button("Play",
                                       new ClickHandler() {
                                           @Override
                                           public void onClick(final ClickEvent e) {
                                               event.fire(video);
                                           }
                                       });
        play.setIcon(IconType.YOUTUBE_PLAY);
        play.setSize(ButtonSize.SMALL);

        widgets.add(h3);
        widgets.add(p);
        widgets.add(play);
    }

    return widgets;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:30,代码来源:VideoListScreen.java


示例12: PropertyEditorItemButtons

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
public PropertyEditorItemButtons() {
        initWidget(uiBinder.createAndBindUi(this));
        removalButton.setType(ButtonType.DANGER);
        removalButton.setSize(ButtonSize.EXTRA_SMALL);
        removalButton.setIcon(IconType.MINUS);
//        removalButton.addClickHandler( clickHandler );
    }
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:PropertyEditorItemButtons.java


示例13: addRemovalButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
public void addRemovalButton(ClickHandler clickHandler) {
    removalButton.setVisible(true);
    removalButton.setType(ButtonType.DANGER);
    removalButton.setSize(ButtonSize.EXTRA_SMALL);
    removalButton.setIcon(IconType.MINUS);
    removalButton.addClickHandler(clickHandler);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:PropertyEditorItemButtons.java


示例14: setupMenuButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
public void setupMenuButton() {
    menuRefreshButton.setIcon(IconType.REFRESH);
    menuRefreshButton.setSize(ButtonSize.SMALL);
    menuRefreshButton.setTitle(CommonConstants.INSTANCE.Refresh());
    menuRefreshButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent clickEvent) {
            supportsRefresh.onRefresh();
        }
    });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:RefreshMenuBuilder.java


示例15: addResetButtom

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
protected void addResetButtom(final int left,
                              final int top,
                              VerticalPanel popupContent) {
    if (gridPreferences != null) {
        Button resetButton = GWT.create(Button.class);
        resetButton.setText(CommonConstants.INSTANCE.Reset());
        resetButton.setSize(ButtonSize.EXTRA_SMALL);
        resetButton.addClickHandler(event -> resetTableColumns(left,
                                                               top));

        popupContent.add(resetButton);
    }
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:ColumnPicker.java


示例16: createAttributeRemoveColumn

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
protected com.google.gwt.user.cellview.client.Column<Entry<String, String>, String> createAttributeRemoveColumn() {
    // On read mode, remove button not present.
    if (!canManageAttributes()) {
        return null;
    }

    // Create remove button column.
    final ButtonCell removeButtonCell = new ButtonCell(IconType.CLOSE,
                                                       ButtonType.LINK,
                                                       ButtonSize.SMALL);
    final com.google.gwt.user.cellview.client.Column<Entry<String, String>, String> removeColumn =
            new com.google.gwt.user.cellview.client.Column<Entry<String, String>, String>(removeButtonCell) {

                @Override
                public String getValue(final Entry<String, String> object) {
                    // if can be removed return empty string, if not, return null
                    if (object != null) {
                        final UserManager.UserAttribute attribute = getAttribute(object.getKey());
                        if (attribute != null && !attribute.isMandatory() && attribute.isEditable()) {
                            removeButtonCell.setEnabled(true);
                            return "";
                        }
                    }
                    removeButtonCell.setEnabled(false);
                    return null;
                }
            };

    removeColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    removeColumn.setFieldUpdater(canManageAttributes() ? removeButtonHandler : null);

    return removeColumn;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:34,代码来源:UserAttributesEditor.java


示例17: SaveButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
public SaveButton() {
    button.setText(CommonConstants.INSTANCE.Save());
    button.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            if (command != null) {
                command.execute();
            }
        }
    });
    button.setSize(ButtonSize.SMALL);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:13,代码来源:SaveButton.java


示例18: createButtons

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private void createButtons(final String identifier,
                           final ParameterizedCommand<String> closeCommand) {

    collapse = GWT.create(Button.class);
    collapse.setSize(ButtonSize.SMALL);
    collapse.addClickHandler(even -> closeCommand.execute(identifier));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:DocksExpandedBar.java


示例19: makeDropDownMenuButton

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
private Widget makeDropDownMenuButton(final String caption,
                                      final List<Widget> widgetList) {
    final ButtonGroup buttonGroup = new ButtonGroup();
    final Button dropdownButton = new Button(caption);
    dropdownButton.setDataToggle(Toggle.DROPDOWN);
    dropdownButton.setSize(ButtonSize.SMALL);
    final DropDownMenu dropDownMenu = new DropDownMenu();
    for (final Widget _item : widgetList) {
        dropDownMenu.add(_item);
    }
    buttonGroup.add(dropdownButton);
    buttonGroup.add(dropDownMenu);
    return buttonGroup;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:15,代码来源:MenuBuilder.java


示例20: createButtom

import org.gwtbootstrap3.client.ui.constants.ButtonSize; //导入依赖的package包/类
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());
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:10,代码来源:SingleSideDockItem.java



注:本文中的org.gwtbootstrap3.client.ui.constants.ButtonSize类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GetQueueInfoRequestProto类代码示例发布时间:2022-05-22
下一篇:
Java TOCReference类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap