Package de.yaams.extensions.basemap.tiled.mapeditor.util

Examples of de.yaams.extensions.basemap.tiled.mapeditor.util.PropertiesTableModel


    changeImageButton.addActionListener(this);
    duplicateTileButton.addActionListener(this);
    // animationButton.addActionListener(this);

    // Tile properties table
    tileProperties = new JTable(new PropertiesTableModel());
    tileProperties.getSelectionModel().addListSelectionListener(this);
    JScrollPane propScrollPane = new JScrollPane(tileProperties);
    propScrollPane.setPreferredSize(new Dimension(150, 150));

    // Tile list
View Full Code Here


      editor.stopCellEditing();
    }

    // Apply possibly changed properties
    if (currentTile != null) {
      PropertiesTableModel model = (PropertiesTableModel) tileProperties.getModel();
      currentTile.setProperties(model.getProperties());
    }
  }
View Full Code Here

  /**
   * Updates the properties table with the properties of the current tile.
   */
  private void updateTileInfo() {
    PropertiesTableModel model = (PropertiesTableModel) tileProperties.getModel();

    if (currentTile == null) {
      model.setProperties(new Properties());
    } else {
      model.setProperties(currentTile.getProperties());
    }
  }
View Full Code Here

TOP

Related Classes of de.yaams.extensions.basemap.tiled.mapeditor.util.PropertiesTableModel

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.