/* * (non-Javadoc) * * @see * freemind.controller.filter.condition.Condition#checkNode(freemind.modes * .MindMapNode) */ public boolean checkNode(Controller c, MindMapNode node) { AttributeTableModel attributes = node.getAttributes(); for (int i = 0; i < attributes.getRowCount(); i++) { if (attributes.getValueAt(i, 0).equals(attribute)) return false; } return true; }
private void make() { String attributeViewType = table.getAttributeView().getViewType(); AttributeTableModel model = table.getAttributeTableModel(); int rowCount = model.getRowCount(); if (attributeViewType.equals(AttributeTableLayoutModel.SHOW_ALL)) { if (rowCount != 0) { add(getOptimalWidth()); } add(getInsert()); if (row != -1) { add(getDelete()); if (row != 0) { add(getUp()); } if (row != rowCount - 1) { add(getDown()); } } } else { if (rowCount != 0) { add(getOptimalWidth()); } } }