当前位置: 首页>>代码示例>>Java>>正文


Java EditTextCell类代码示例

本文整理汇总了Java中com.google.gwt.cell.client.EditTextCell的典型用法代码示例。如果您正苦于以下问题:Java EditTextCell类的具体用法?Java EditTextCell怎么用?Java EditTextCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EditTextCell类属于com.google.gwt.cell.client包,在下文中一共展示了EditTextCell类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createAttributeNameColumn

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
protected com.google.gwt.user.cellview.client.Column<Entry<String, String>, String> createAttributeNameColumn(ColumnSortEvent.ListHandler<Entry<String, String>> sortHandler) {
    // Attribute name.
    final Cell<String> nameCell = canManageAttributes() ? new EditTextCell() : new TextCell();
    final com.google.gwt.user.cellview.client.Column<Entry<String, String>, String> keyColumn = new com.google.gwt.user.cellview.client.Column<Entry<String, String>, String>(
            nameCell) {
        @Override
        public String getValue(final Entry<String, String> object) {
            return object.getKey() != null ? object.getKey() : "";
        }
    };
    keyColumn.setSortable(true);
    sortHandler.setComparator(keyColumn,
                              new Comparator<Entry<String, String>>() {
                                  @Override
                                  public int compare(Entry<String, String> o1,
                                                     Entry<String, String> o2) {
                                      return o1.getKey().compareTo(o2.getKey());
                                  }
                              });
    keyColumn.setFieldUpdater(canManageAttributes() ? keyModifiedEventHandler : null);

    return keyColumn;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:24,代码来源:UserAttributesEditor.java

示例2: createAttributeValueColumn

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
protected com.google.gwt.user.cellview.client.Column<Entry<String, String>, String> createAttributeValueColumn(ColumnSortEvent.ListHandler<Entry<String, String>> sortHandler) {
    // Attribute value.
    final Cell<String> valueCell = canManageAttributes() ? new EditTextCell() : new TextCell();
    final com.google.gwt.user.cellview.client.Column<Entry<String, String>, String> valueColumn = new com.google.gwt.user.cellview.client.Column<Entry<String, String>, String>(
            valueCell) {
        @Override
        public String getValue(final Entry<String, String> object) {
            return object.getValue() != null ? object.getValue() : "";
        }
    };
    valueColumn.setSortable(true);
    sortHandler.setComparator(valueColumn,
                              new Comparator<Entry<String, String>>() {
                                  @Override
                                  public int compare(Entry<String, String> o1,
                                                     Entry<String, String> o2) {
                                      return o1.getValue().compareTo(o2.getValue());
                                  }
                              });
    valueColumn.setFieldUpdater(canManageAttributes() ? valueModifiedEventHandler : null);

    return valueColumn;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:24,代码来源:UserAttributesEditor.java

示例3: addTypeColumn

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
private void addTypeColumn() {

        Column<ListenerModel, String> column = new Column<ListenerModel, String>( new EditTextCell() ) {
            @Override
            public String getValue( ListenerModel listenerModel ) {
                return listenerModel.getType();
            }
        };

        column.setFieldUpdater( new FieldUpdater<ListenerModel, String>() {
            @Override
            public void update( int index,
                                ListenerModel model,
                                String value ) {
                model.setType( value );
            }
        } );

        dataGrid.addColumn( column,
                            ProjectEditorResources.CONSTANTS.Type() );
    }
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:22,代码来源:ListenersPanelViewImpl.java

示例4: addPropertyNameColumn

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
private void addPropertyNameColumn() {
    Column<PropertyRow, String> column = new Column<PropertyRow, String>( new EditTextCell() ) {
        @Override
        public String getValue( PropertyRow propertyRow ) {
            if ( propertyRow.getName() != null ) {
                return propertyRow.getName();
            } else {
                return "";
            }
        }
    };

    column.setFieldUpdater( new PropertyNameFieldUpdater<PropertyRow, String>( (EditTextCell) column.getCell() ) );

    dataGrid.addColumn( column,
                        Constants.INSTANCE.persistence_unit_property_grid_property_name_column() );
    dataGrid.setColumnWidth( column, 45, Style.Unit.PCT );
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:19,代码来源:PersistenceUnitPropertyGridViewImpl.java

示例5: addPropertyValueColumn

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
private void addPropertyValueColumn() {
    final Column<PropertyRow, String> column = new Column<PropertyRow, String>( new EditTextCell() ) {

        @Override
        public String getValue( PropertyRow propertyRow ) {
            if ( propertyRow.getValue() != null ) {
                return propertyRow.getValue();
            } else {
                return "";
            }
        }
    };

    column.setFieldUpdater( new PropertyValueFieldUpdater<PropertyRow, String>( (EditTextCell) column.getCell() ) );

    dataGrid.addColumn( column,
                        Constants.INSTANCE.persistence_unit_property_grid_property_value_column() );
    dataGrid.setColumnWidth( column, 45, Style.Unit.PCT );
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:20,代码来源:PersistenceUnitPropertyGridViewImpl.java

示例6: addParamValueColumn

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
private void addParamValueColumn() {
    final Column<TemplateParam, String> column = new Column<TemplateParam, String>(new EditTextCell()) {
        @Override
        public String getValue(TemplateParam templateParam) {
            if (templateParam.getValue() != null) {
                return templateParam.getValue();
            } else {
                return EMPTY_STRING;
            }
        }
    };

    column.setFieldUpdater(new ParamValueFieldUpdater((EditTextCell) column.getCell()));

    dataGrid.addColumn(column,
                       translationService.getTranslation(TemplateParamsTableView_ParamValueColumn));
    dataGrid.setColumnWidth(column,
                            55,
                            Style.Unit.PCT);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:21,代码来源:TemplateParamsTableView.java

示例7: addTextColumn

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
@Override
public MapEditor.View addTextColumn(final int columnIndex, final String heading, boolean isSortable, int width) {
    final com.google.gwt.user.cellview.client.Column<Map.Entry<String, String>, String> keyColumn =
            new com.google.gwt.user.cellview.client.Column<Map.Entry<String, String>, String>(new EditTextCell()) {
                @Override
                public String getValue(final Map.Entry<String, String> object) {
                    return presenter.getValue(columnIndex, object);
                }
            };
    addColumn(keyColumn, columnIndex, heading, isSortable, width);
    return this;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:13,代码来源:MapEditorView.java

示例8: TextColumnReadWrite

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
public TextColumnReadWrite() {
  super(new EditTextCell());
}
 
开发者ID:csavelief,项目名称:gwt-sandbox,代码行数:4,代码来源:TextColumnReadWrite.java

示例9: PropertyNameFieldUpdater

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
PropertyNameFieldUpdater( EditTextCell cell ) {
    this.cell = cell;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:4,代码来源:PersistenceUnitPropertyGridViewImpl.java

示例10: PropertyValueFieldUpdater

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
PropertyValueFieldUpdater( EditTextCell cell ) {
    this.cell = cell;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:4,代码来源:PersistenceUnitPropertyGridViewImpl.java

示例11: rollbackChange

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
private void rollbackChange(TableEntry<TYPE> model) {
    EditTextCell cell = (EditTextCell) column.getCell();
    cell.clearViewData(table.getDataProvider().getKey(model));
    table.redraw();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:6,代码来源:ColumnFieldUpdater.java

示例12: ParamValueFieldUpdater

import com.google.gwt.cell.client.EditTextCell; //导入依赖的package包/类
ParamValueFieldUpdater(EditTextCell cell) {
    this.cell = cell;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:4,代码来源:TemplateParamsTableView.java


注:本文中的com.google.gwt.cell.client.EditTextCell类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。