org.gwtbootstrap3.client.ui.Button.setSize()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中org.gwtbootstrap3.client.ui.Button.setSize()方法的一些代码示例,展示了Button.setSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setSize()方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Button
类名称:Button
方法名:setSize

Button.setSize介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

public DefaultWindow()
{
  setBackground(Color.black);
  setLocation(0, 0);
  setSize(1280,720);
  Button comp = new Button("Hello");
  setLocation(0, 0);
  comp.setSize(10, 10);
  add(comp);
  pack();
  setVisible(true);
}

代码示例来源:origin: org.uberfire/uberfire-simple-docks-client

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));
}

代码示例来源:origin: kiegroup/appformer

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));
}

代码示例来源:origin: stackoverflow.com

panel.setLayout(null);
Button b = new Button(....);
panel.add(b);
b.setSize(width, height);
b.setLocation(x,y);

代码示例来源:origin: org.uberfire/uberfire-commons-editor-client

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);
}

代码示例来源:origin: kiegroup/drools-wb

public ScenarioMenuItem(final String title, final Command command) {
  this.button = new Button(title);
  button.setSize(ButtonSize.SMALL);
  button.addClickHandler(clickEvent -> command.execute());
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-business-domain-client

public void setupMenuButton() {
  menuNewButton.setSize(ButtonSize.SMALL);
  menuNewButton.setText(Constants.INSTANCE.New_Deployment_Unit());
  menuNewButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent clickEvent) {
      supportsNewDeploymentUnit.onNewDeploymentUnit();
    }
  });
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

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);
  }
}

代码示例来源:origin: kiegroup/appformer

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);
  }
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

protected void setupMenuButton() {
  menuButton.setDataToggle(Toggle.DROPDOWN);
  menuButton.setIcon(IconType.COG);
  menuButton.setTitle(constants.AutoRefresh());
  menuButton.setSize(ButtonSize.SMALL);
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

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();
    }
  });
}

代码示例来源:origin: kiegroup/appformer

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();
    }
  });
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-generic-client

protected void setupMenuButton() {
  menuResetTabsButton.setIcon(IconType.FILTER);
  menuResetTabsButton.setSize(ButtonSize.SMALL);
  menuResetTabsButton.setTitle(Constants.INSTANCE.RestoreDefaultFilters());
  menuResetTabsButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent clickEvent) {
      supportsRestoreDefaultFilters.onRestoreDefaultFilters();
    }
  });
}

代码示例来源:origin: kiegroup/appformer

protected void setupMenuButton() {
  menuButton.setDataToggle(Toggle.DROPDOWN);
  menuButton.setIcon(IconType.COG);
  menuButton.setTitle(constants.AutoRefresh());
  menuButton.setSize(ButtonSize.SMALL);
}

代码示例来源: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/drools-wb

public RunMenuItem() {
  button.setText(ScenarioSimulationEditorConstants.INSTANCE.runScenarioSimulation());
  button.addClickHandler(event -> {
    if (command != null) {
      command.execute();
    }
  });
  button.setSize(ButtonSize.SMALL);
}

代码示例来源:origin: kiegroup/jbpm-wb

protected void setupMenuButton() {
  menuResetTabsButton.setIcon(IconType.FILTER);
  menuResetTabsButton.setSize(ButtonSize.SMALL);
  menuResetTabsButton.setTitle(Constants.INSTANCE.RestoreDefaultFilters());
  menuResetTabsButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent clickEvent) {
      supportsRestoreDefaultFilters.onRestoreDefaultFilters();
    }
  });
}

代码示例来源: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: org.jbpm/jbpm-console-ng-generic-client

public void render( final Cell.Context context, final T value, final SafeHtmlBuilder sb ) {
  final SafeHtmlBuilder mysb = new SafeHtmlBuilder();
  final Button btn = GWT.create( Button.class );
  btn.setText( getText( value ) );
  btn.setTitle( getText( value ) );
  btn.setType( ButtonType.DEFAULT );
  btn.setSize( ButtonSize.SMALL );
  btn.getElement().getStyle().setMarginRight( 5, Style.Unit.PX );
  mysb.appendHtmlConstant( btn.getElement().getString() );
  sb.append( mysb.toSafeHtml() );
}

代码示例来源: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());
}

相关文章