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

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

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

Button.setIconSize介绍

暂无

代码示例

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@Override
public AbstractToolbarItem.View setIconSize(final IconSize size) {
  button.setIconSize(size);
  return this;
}

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

void configureIcon(Button itemButton,
          ImageResource imageResource) {
  if (getDock().getIconType() != null) {
    itemButton.setIcon(getIcon());
    itemButton.setIconFixedWidth(true);
    itemButton.setIconSize(IconSize.LARGE);
    itemButton.setIconPosition(IconPosition.LEFT);
  } else {
    configureImageIcon(itemButton,
              imageResource);
  }
}

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

void configureIcon(Button itemButton,
          ImageResource imageResource) {
  if (getDock().getIconType() != null) {
    itemButton.setIcon(getIcon());
    itemButton.setIconFixedWidth(true);
    itemButton.setIconSize(IconSize.LARGE);
    itemButton.setIconPosition(IconPosition.LEFT);
  } else {
    configureImageIcon(itemButton,
              imageResource);
  }
}

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

private void initPrevNextTodayButtons() {
  previousButton.setIcon( IconType.CARET_LEFT );
  previousButton.setTitle( Constants.INSTANCE.Previous() );
  previousButton.setIconSize( IconSize.LARGE );
  previousButton.addClickHandler( new ClickHandler() {
    @Override
    public void onClick( ClickEvent event ) {
      adjustDate( true );
    }
  } );
  nextButton.setIcon( IconType.CARET_RIGHT );
  nextButton.setTitle( Constants.INSTANCE.Next() );
  nextButton.setIconSize( IconSize.LARGE );
  nextButton.addClickHandler( new ClickHandler() {
    @Override
    public void onClick( ClickEvent event ) {
      adjustDate( false );
    }
  } );
  todayButton.setText( constants.Today() );
  todayButton.setEnabled( false );
  todayButton.addClickHandler( new ClickHandler() {
    @Override
    public void onClick( ClickEvent event ) {
      currentDate = new Date();
      propagateDateChanges();
    }
  } );
}

相关文章