this.attributeTypeClass = attributeClass;
}
protected AttributeColumn[] getColumns() {
List<AttributeColumn> cols = new ArrayList<AttributeColumn>();
AttributeModel model = Lookup.getDefault().lookup(AttributeController.class).getModel();
if (model != null) {
if (editorClass.equals(EditorClass.NODE) || editorClass.equals(EditorClass.NODEEDGE)) {
for (AttributeColumn column : model.getNodeTable().getColumns()) {
if (attributeTypeClass.equals(AttributeTypeClass.NUMBER) && isNumberColumn(column)) {
cols.add(column);
} else if (attributeTypeClass.equals(AttributeTypeClass.DYNAMIC_NUMBER) && isDynamicNumberColumn(column)) {
cols.add(column);
} else if (attributeTypeClass.equals(AttributeTypeClass.ALL_NUMBER) && (isDynamicNumberColumn(column) || isNumberColumn(column))) {
cols.add(column);
} else if (attributeTypeClass.equals(AttributeTypeClass.ALL)) {
cols.add(column);
} else if (attributeTypeClass.equals(attributeTypeClass.STRING) && isStringColumn(column)) {
cols.add(column);
}
}
}
if (editorClass.equals(EditorClass.EDGE) || editorClass.equals(EditorClass.NODEEDGE)) {
for (AttributeColumn column : model.getEdgeTable().getColumns()) {
if (attributeTypeClass.equals(AttributeTypeClass.NUMBER) && isNumberColumn(column)) {
cols.add(column);
} else if (attributeTypeClass.equals(AttributeTypeClass.DYNAMIC_NUMBER) && isDynamicNumberColumn(column)) {
cols.add(column);
} else if (attributeTypeClass.equals(AttributeTypeClass.ALL_NUMBER) && (isDynamicNumberColumn(column) || isNumberColumn(column))) {