Package no.ugland.utransprod.gui.model

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


  /**
   * �pner vindu for � velge attributter
   */
  public void openAttributeView(AttributeManager attributeManager) {

    ArticleTypeModel attributeable = (ArticleTypeModel) presentationModel
        .getBean();

    AttributeViewHandler attributeViewHandler = new AttributeViewHandler(
        login, managerRepository);
    AttributeView attributeView = new AttributeView(attributeViewHandler,
        false);
    WindowInterface dialog = new JDialogAdapter(new JDialog(
        ProTransMain.PRO_TRANS_MAIN, "Attributt", true));
    dialog.setName("AttributeView");
    dialog.add(attributeView.buildPanel(dialog));
    dialog.pack();
    Util.locateOnScreenCenter(dialog);
    dialog.setVisible(true);

    if (!attributeView.isCanceled()) {

      List<Attribute> newAttributes = attributeView.getSelectedObjects();
      if (newAttributes != null && newAttributes.size() != 0) {
        attributeList.addAll(attributeable
            .getArticleAttributes(newAttributes));
        bufferedAttributes.setValue(attributeList);
      }
    }
  }
View Full Code Here


  @Test
  public void testSaveObject() throws Exception {
    ArticleType articleType = new ArticleType();
    articleType.setArticleTypeName("test");
    viewHandler.saveObject(new ArticleTypeModel(articleType), null);
    assertEquals(1, viewHandler.getObjectSelectionListSize());
  }
View Full Code Here

   */
  public EditArticleTypeView(
      final boolean searchDialog,
      final ArticleType articleType,
      final AbstractViewHandler<ArticleType, ArticleTypeModel> aViewHandler) {
    super(searchDialog, new ArticleTypeModel(articleType), aViewHandler);
    articleTypeViewHandler = (ArticleTypeViewHandler) aViewHandler;
  }
View Full Code Here

TOP

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

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.