Package org.freeplane.features.attribute

Examples of org.freeplane.features.attribute.NodeAttributeTableModel


  public boolean checkNode(final NodeModel node) {
    final URI nodeLink = NodeLinks.getValidLink(node);
    if (nodeLink != null && checkLink(nodeLink))
      return true;
    final NodeAttributeTableModel attributes = NodeAttributeTableModel.getModel(node);
    if(attributes == null){
      return false;
    }
    final int rowCount = attributes.getRowCount();
    for(int i = 0; i < rowCount; i++){
      final Attribute attribute = attributes.getAttribute(i);
      final Object value = attribute.getValue();
      if (value instanceof URI && checkLink((URI)value))
        return true;
    }
    return false;
View Full Code Here


      }
      final Object valueSelectedItem = attributeValues.getSelectedItem();
      final String value = valueSelectedItem != null ? valueSelectedItem.toString() : "";
      //Add attributes to nodes
      for (final NodeModel node : nodes) {
        final NodeAttributeTableModel attributes = attrContr.createAttributeTableModel(node);
        attrContr.performInsertRow(attributes, attributes.getRowCount(), name, value);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.freeplane.features.attribute.NodeAttributeTableModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.