Package org.freeplane.features.attribute

Examples of org.freeplane.features.attribute.IAttributeTableModel


      final MTextController textController = (MTextController) TextController.getController();
      if(e instanceof KeyEvent){
        final KeyEvent kev = (KeyEvent) e;
        textController.getEventQueue().setFirstEvent(kev);
      }
      final IAttributeTableModel model = (IAttributeTableModel) getModel();
      final String text = getValueForEdit(row, col);
      final DialogTableCellEditor dialogTableCellEditor = new DialogTableCellEditor();
      EditNodeBase base = textController.getEditNodeBase(model.getNode(), text, dialogTableCellEditor.getEditControl(), false);
      if(base != null){
        dialogTableCellEditor.setEditBase(base);
        return dialogTableCellEditor;
      }
    }
View Full Code Here


  /**
   *
   */
  private void make() {
    final String attributeViewType = table.getAttributeView().getViewType();
    final IAttributeTableModel model = table.getAttributeTableModel();
    final int rowCount = model.getRowCount();
    add(getOptimalWidth());
    if(col == 1){
      add(getInsertLink());
      add(getInsertFileLink());
      add(getInsertNodeLink());
View Full Code Here

        column);
    if (hasFocus) {
      setBorder(UIManager.getBorder("Table.focusCellHighlightBorder"));
    }
    zoom = ((AttributeTable) table).getZoom();
      final IAttributeTableModel attributeTableModel = (IAttributeTableModel) table.getModel();
    final String originalText = value == null ? null : value.toString();
    String text = originalText;
    borderColor = null;
    Icon icon;
    if (column == 1 && value != null) {
      try {
        // evaluate values only
        final TextController textController = TextController.getController();
        Object transformedObject = textController.getTransformedObject(value, attributeTableModel.getNode(), null);
        text = transformedObject.toString();
        if (transformedObject instanceof HighlightedTransformedObject && TextController.isMarkTransformedTextSet()) {
          borderColor = Color.GREEN;
        }
      }
View Full Code Here

TOP

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

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.