示例#1
0
 @Nullable
 @Override
 public TableCellEditor getEditor(final NoSqlTreeNode treeNode) {
   Object value = treeNode.getDescriptor().getValue();
   if (value instanceof Date) {
     return buildDateCellEditor(treeNode);
   }
   return defaultEditor;
 }
示例#2
0
    @Override
    public boolean isCellEditable(NoSqlTreeNode treeNode) {
      Object value = treeNode.getDescriptor().getValue();
      if (value instanceof DBObject) {
        return false;
      }

      if (value instanceof ObjectId) {
        return false;
      }

      return true;
    }
示例#3
0
 public Object valueOf(Object obj) {
   NoSqlTreeNode node = (NoSqlTreeNode) obj;
   return node.getDescriptor();
 }
示例#4
0
 @Override
 public void setValue(NoSqlTreeNode treeNode, Object value) {
   treeNode.getDescriptor().setValue(value);
 }
示例#5
0
 public Object valueOf(NoSqlTreeNode treeNode) {
   return treeNode.getDescriptor().getValue();
 }
示例#6
0
 public NodeDescriptor valueOf(NoSqlTreeNode treeNode) {
   return treeNode.getDescriptor();
 }