Examples of MapObjectivesTableModel


Examples of de.justi.yagw2api.explorer.model.MapObjectivesTableModel

    this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    this.setMinimumSize(new Dimension(640, 480));
    this.setPreferredSize(new Dimension(1024, 768));

    this.matchesTableModel = new MatchesTableModel();
    this.eternalMapModel = new MapObjectivesTableModel();
    this.greenMapModel = new MapObjectivesTableModel();
    this.blueMapModel = new MapObjectivesTableModel();
    this.redMapModel = new MapObjectivesTableModel();
    this.allMapsModel = new MapObjectivesTableModel();
    this.matchDetailsTableModel = new MatchDetailsTableModel();
    this.apiStatusTableModel = new APIStatusTableModel(YAGW2APIGW2Stats.INSTANCE.getGW2StatsService());
    this.mumbleLinkTableModel = new MumbleLinkTableModel(YAGW2APIMumbleLink.INSTANCE.getMumbleLink());

    this.getContentPanel().add(this.builtMainMenuBar(), BorderLayout.NORTH);
View Full Code Here

Examples of de.justi.yagw2api.explorer.model.MapObjectivesTableModel

  private static final long serialVersionUID = -8506469778783597659L;

  @Override
  public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    checkState(table.getModel() instanceof MapObjectivesTableModel);
    final MapObjectivesTableModel model = (MapObjectivesTableModel) table.getModel();
    final Optional<IWVWObjective> objective = model.getObjectiveForRow(table.convertRowIndexToModel(row));
    checkArgument(objective.isPresent());
    final Optional<IWorld> owner = objective.get().getOwner();
    checkArgument(owner.isPresent());
    final Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    final Optional<IWVWMap> map = objective.get().getMap();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.