Package no.ugland.utransprod.gui.model

Examples of no.ugland.utransprod.gui.model.AttributeChoiceModel


  private JTextArea textAreaComment;

  public EditAttributeChoiceView(boolean searchDialog,
      AttributeChoice attributeChoice,
      AttributeChoiceViewHandler viewHandler) {
    super(searchDialog, new AttributeChoiceModel(attributeChoice),
        viewHandler);
  }
View Full Code Here


    public void actionPerformed(ActionEvent e) {
      if (validationResultModel.hasErrors()) {
        Util.showErrorDialog(window, "Rett feil",
            "Rett alle feil f�r lagring!");
      } else {
        AttributeChoiceModel model = (AttributeChoiceModel) presentationModel
            .getBean();
        AttributeChoiceModel bufferedModel = model
            .getBufferedObjectModel(presentationModel);

        CheckObject checkObject = checkSaveObject(bufferedModel,
            presentationModel, window);

        String msg = null;
        boolean canSave = false;
        if (checkObject != null) {
          msg = checkObject.getMsg();
        }
        if (msg == null || msg.length() == 0) {
          canSave = true;
        } else {
          canSave = handleCheckObject(window, checkObject, msg);

        }

        if (canSave) {
          presentationModel.triggerCommit();
          bufferedModel.viewToModel();
          attributeModel.getObject()
              .addAttributeChoice(
                  ((AttributeChoiceModel) presentationModel
                      .getBean()).getObject());
          managerRepository.getAttributeManager().saveAttribute(
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.model.AttributeChoiceModel

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.