Package it.uniroma1.dptu.stan.gui.model

Examples of it.uniroma1.dptu.stan.gui.model.FieldOtherMaximum


  } else if(action instanceof ActionRemoveChooseFrom)
      removeColumn(
    getColumn(((ActionRemoveChooseFrom)action).getChooseFrom())
      );
  else if(action instanceof ActionPutColumn) {
      final ColumnData column = ((ActionPutColumn)action).getColumn();

      addColumn(new ColumnOther(column));
      java.awt.EventQueue.invokeLater(
    new Runnable() {
        public void run()
View Full Code Here


    //cell.setColspan(3);
    table.addCell(optionNameHeader,row++,column);
    table.endHeaders();
    //table.addCell(new Cell(o.getTitle()),row++,column);
    while ((iActors.hasNext())) {
        ColumnData cd = iActors.next();
        WedgeData wd = cd.getWedge(o);
        Cell c;
        if(wd == null) {
      //c = new Cell("-");
      c = new Cell();
        } else {
View Full Code Here

  SceneryTreeTable table,
  boolean hasFocus,
  Object row,
  Object theColumn
    ) {
  ColumnData column = (ColumnData)theColumn;

  renderer.setText(
      column.hasAtMost()
  ?
      format.format(column.getAtMost())
  :
      plusInf
  );
  renderer.setEnabled(((ColumnData)column).getMode() == ColumnData.MODE_CONSTRAINT);
  return(renderer);
View Full Code Here

      for(
    Iterator<ColumnData> i = data.getColumns().iterator();
    i.hasNext();
      ) {
    ColumnData column = i.next();
    if(column.getMode() == ColumnData.MODE_CONSTRAINT)
        newCache.add(column);
      }
  }

  rowCache = newCache;
View Full Code Here

      super.setupUI(parent, row, column);
  }

      public void perform(ActionEvent actionEvent, Object row, SceneryBaseColumn col) {
      Data data = (Data)sourceView.getData();
      ColumnData column = new ColumnData(data);

      column.setTitle("New Expression/Constraint/Objective");
      data.putColumn(column);
      }
View Full Code Here

      super.setupUI(parent, row, column);
  }

      public void perform(ActionEvent actionEvent, Object row, SceneryBaseColumn col) {
      assert(column instanceof ColumnOther);
      ColumnData column = (ColumnData)col.getIdentifier();
      if(
    JOptionPane.showConfirmDialog(
        (Container)sourceView,
        new StringBuffer()
      .append("You are about to remove the EVO column\n")
      .append('"').append(column.getTitle()).append("\".\n")
      .append("Are you shure?")
        .toString(),
        "Confirm EVO deletion",
        JOptionPane.YES_NO_OPTION
    ) == JOptionPane.YES_OPTION
      )
    ((Data)column.getDocumentData()).removeColumn(column);
      }
View Full Code Here

      super.setupUI(parent, row, column);
  }

      public void perform(ActionEvent actionEvent, Object row, SceneryBaseColumn col) {
      assert(column instanceof ColumnOther);
      ColumnData column = (ColumnData)((ColumnOther)col).getIdentifier();

      PropertiesDialog dlg = new PropertiesDialog(
    sourceView,
    "EVO Properties"
      );

      dlg.setTitle(column.getTitle());
      dlg.setDescription(column.getDescription());
      if(dlg.run()) {
    column.setTitle(dlg.getTitle());
    column.setDescription(dlg.getDescription());

    getTableHeader().repaint();
      }
      }
View Full Code Here

  SceneryTreeTable table,
  boolean hasFocus,
  Object row,
  Object theColumn
    ) {
  ColumnData column = (ColumnData)theColumn;
  if(column.getDocumentData().getStatus() != Data.STATUS_COMPLETED)
      return(null);

  double value = 0;
  for(
      Iterator<WedgeData> i = column.getWedges().iterator();
      i.hasNext();
  ) {
      WedgeData wedge = i.next();
      value += wedge.getMean() * wedge.getOption().getStatisticalValue();
  }
 
View Full Code Here

  SceneryTreeTable table,
  boolean hasFocus,
  Object row,
  Object theColumn
    ) {
  ColumnData column = (ColumnData)theColumn;

  renderer.setText(
      column.hasAtLeast()
  ?
      format.format(column.getAtLeast())
  :
      minusInf
  );
  renderer.setEnabled(((ColumnData)column).getMode() == ColumnData.MODE_CONSTRAINT);
  return(renderer);
View Full Code Here

  SceneryTreeTable table,
  boolean hasFocus,
  Object row,
  Object theColumn
    ) {
  ColumnData column = (ColumnData)theColumn;

  renderer.setSelectedIndex(column.getMode());
  return(renderer);
    }
View Full Code Here

TOP

Related Classes of it.uniroma1.dptu.stan.gui.model.FieldOtherMaximum

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.