本文整理汇总了Java中org.gwtbootstrap3.client.ui.constants.IconType.TRASH属性的典型用法代码示例。如果您正苦于以下问题:Java IconType.TRASH属性的具体用法?Java IconType.TRASH怎么用?Java IconType.TRASH使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.gwtbootstrap3.client.ui.constants.IconType
的用法示例。
在下文中一共展示了IconType.TRASH属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addDeleteColumn
private void addDeleteColumn() {
final ButtonCell deleteCell = new ButtonCell( ButtonType.DANGER, IconType.TRASH );
final Column<ListenerModel, String> column = new Column<ListenerModel, String>( deleteCell ) {
@Override
public String getValue( ListenerModel object ) {
return "";
}
};
column.setFieldUpdater( new FieldUpdater<ListenerModel, String>() {
@Override
public void update( int index,
ListenerModel model,
String value ) {
presenter.onDelete( model );
}
} );
column.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
dataGrid.addColumn( column,
CommonConstants.INSTANCE.Delete() );
dataGrid.setColumnWidth( column,
60,
Style.Unit.PX );
}
示例2: addDeleteColumn
private void addDeleteColumn() {
final ButtonCell deleteCell = new ButtonCell( ButtonType.DANGER, IconType.TRASH );
final Column<WorkItemHandlerModel, String> column = new Column<WorkItemHandlerModel, String>( deleteCell ) {
@Override
public String getValue( WorkItemHandlerModel object ) {
return "";
}
};
column.setFieldUpdater( new FieldUpdater<WorkItemHandlerModel, String>() {
@Override
public void update( int index,
WorkItemHandlerModel model,
String value ) {
presenter.onDelete( model );
}
} );
column.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
dataGrid.addColumn( column,
CommonConstants.INSTANCE.Delete() );
dataGrid.setColumnWidth( column,
60,
Style.Unit.PX );
}
示例3: 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);
}
示例4: TrashCanImageCell
public TrashCanImageCell() {
super( IconType.TRASH,
ButtonType.DANGER,
ButtonSize.SMALL );
}
示例5: getDeleteIcon
private Widget getDeleteIcon( boolean disabled ) {
final Icon icon = new Icon( IconType.TRASH );
return ( disabled ) ? ban( icon ) : icon;
}