本文整理汇总了Java中org.gwtbootstrap3.client.ui.constants.ButtonSize.SMALL属性的典型用法代码示例。如果您正苦于以下问题:Java ButtonSize.SMALL属性的具体用法?Java ButtonSize.SMALL怎么用?Java ButtonSize.SMALL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.gwtbootstrap3.client.ui.constants.ButtonSize
的用法示例。
在下文中一共展示了ButtonSize.SMALL属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addRemoveRowColumn
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);
}
示例2: createAttributeRemoveColumn
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;
}
示例3: TrashCanImageCell
public TrashCanImageCell() {
super( IconType.TRASH,
ButtonType.DANGER,
ButtonSize.SMALL );
}