Package it.uniroma1.dptu.stan

Examples of it.uniroma1.dptu.stan.Main


    }


    public void actionPerformed(ActionObservable observable, Action action) {
  if(action instanceof ActionPutChooseFrom) {
      final ChooseFromData chooseFrom = ((ActionPutChooseFrom)action).getChooseFrom();

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


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

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

      chooseFrom.setTitle("New Mutual Constraint");
      data.putChooseFrom(chooseFrom);
      }
View Full Code Here

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

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

  SceneryTreeTable table,
  boolean hasFocus,
  Object row,
  Object column
    ) {
  ChooseFromData chooseFrom = (ChooseFromData)column;

  renderer.setSelected(chooseFrom.isEnabled());
  return(renderer);
    }
View Full Code Here

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

      public void perform(ActionEvent actionEvent, Object row, SceneryBaseColumn column) {
      assert(column instanceof ColumnChooseFrom);
      ChooseFromData chooseFrom = (ChooseFromData)((ColumnChooseFrom)column).getIdentifier();

      PropertiesDialog dlg = new PropertiesDialog(
    sourceView,
    "Mutual Constraint Properties"
      );

      dlg.setTitle(chooseFrom.getTitle());
      dlg.setDescription(chooseFrom.getDescription());
      if(dlg.run()) {
    chooseFrom.setTitle(dlg.getTitle());
    chooseFrom.setDescription(dlg.getDescription());
      }
      }
View Full Code Here

  boolean hasFocus,
  Object row,
  Object column
    ) {
  OptionData option = (OptionData)row;
  ChooseFromData chooseFrom = (ChooseFromData)column;

  renderer.setSelected(chooseFrom.getOptions().contains(option));
  renderer.setEnabled(((ChooseFromData)column).isEnabled());
  return(renderer);
    }
View Full Code Here

  SceneryTreeTable table,
  boolean hasFocus,
  Object row,
  Object column
    ) {
  ChooseFromData chooseFrom = (ChooseFromData)column;

  renderer.setText(
      chooseFrom.hasAtMost()
  ?
      format.format(chooseFrom.getAtMost())
  :
      plusInf
  );
  renderer.setEnabled(((ChooseFromData)column).isEnabled());
  return(renderer);
View Full Code Here

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

  int value = 0;
  for(
      Iterator<OptionData> i = chooseFrom.getOptions().iterator();
      i.hasNext();
  )
      if(i.next().getValue())
    ++value;
View Full Code Here

  for(; e != null; e = (Element)e.getNextSibling()) {
      String nmTag = e.getTagName();

      if(ChooseFromData.TAG_CHOOSE_FROM.equals(nmTag))
    putChooseFrom(new ChooseFromData(this, e, mapOptions));
      else if(ColumnData.TAG_COLUMN.equals(nmTag))
    putColumn(new ColumnData(this, e, mapOptions));
  }
    }
View Full Code Here

  // Recupera constraint di choose-from
  for(
      Iterator<ChooseFromData> c = model.getChooseFroms().iterator();
      c.hasNext();
  ) {
      ChooseFromData chooseFrom = c.next();
      if(chooseFrom.isEnabled())
    addConstraint(chooseFrom);
  }

  // Recupera constraints di colonna
  for(
View Full Code Here

TOP

Related Classes of it.uniroma1.dptu.stan.Main

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.