本文整理了Java中org.gwtbootstrap3.client.ui.Button.setIconSize()
方法的一些代码示例,展示了Button.setIconSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setIconSize()
方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Button
类名称: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();
}
} );
}
内容来源于网络,如有侵权,请联系作者删除!