Examples of AttributeView


Examples of com.google.testing.testify.risk.frontend.client.view.AttributeView

    // Test setup
    ProjectRpcAsync projServiceObserver = EasyMock.createMock(ProjectRpcAsync.class);
    AttributesView.Presenter mockParent = EasyMock.createMock(AttributesView.Presenter.class);

    AttributeView mockAttributeView = EasyMock.createMock(AttributeView.class);
    Attribute targetAttribute = new Attribute();
    targetAttribute.setParentProjectId(0L);
    targetAttribute.setAttributeId(1234L);
    targetAttribute.setDescription("Test");

    // Verify this initialization sequence
    mockAttributeView.setPresenter((Presenter) EasyMock.anyObject());
    mockAttributeView.setAttributeName(targetAttribute.getName());
    mockAttributeView.setDescription("Test");
    mockAttributeView.setAttributeId(1234L);
    mockAttributeView.setLabels(new ArrayList<AccLabel>());

    EasyMock.replay(mockAttributeView, mockParent);

    AttributePresenter testPresenter = new AttributePresenter(
        targetAttribute, mockAttributeView, mockParent);
View Full Code Here

Examples of no.ugland.utransprod.gui.AttributeView

    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

Examples of no.ugland.utransprod.gui.AttributeView

    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);

    AttributeViewHandler viewHandler = new AttributeViewHandler(login,
        managerRepository);
    final AttributeView view = new AttributeView(viewHandler, false);

    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
        JDialog dialog = new JDialog();
        WindowInterface window = new JDialogAdapter(dialog);
        dialog.add(view.buildPanel(window));
        dialog.pack();
        return dialog;
      }
    });
    dialogFixture = new DialogFixture(dialog);
View Full Code Here

Examples of no.ugland.utransprod.gui.AttributeView

      Set<ExternalOrderLineAttribute> attributes = (Set<ExternalOrderLineAttribute>) presentationModel
          .getBufferedValue(ExternalOrderLineModel.PROPERTY_EXTERNAL_ORDER_LINE_ATTRIBUTES);

      AttributeViewHandler attributeViewHandler = new AttributeViewHandler(login,managerRepository);// ,
                                    // attributes);
      AttributeView attributeView = new AttributeView(
          attributeViewHandler, true);
      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);

      List<Attribute> newAttributes = attributeView.getSelectedObjects();
      if (newAttributes != null && newAttributes.size() == 1) {

        Attribute att = newAttributes.get(0);
        Object[] selectionValues = null;
        List<String> choices = att.getChoices();
View Full Code Here

Examples of no.ugland.utransprod.gui.AttributeView

    ConstructionTypeModel constructionTypeModel = (ConstructionTypeModel) presentationModel
        .getBean();

    AttributeViewHandler attributeViewHandler = new AttributeViewHandler(
        login, managerRepository);
    AttributeView attributeView = new AttributeView(attributeViewHandler,
        true);
    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);

    List<Attribute> newAttributes = attributeView.getSelectedObjects();
    if (newAttributes != null && newAttributes.size() == 1) {
      String useAsUniversal = "";
      if (masterDialog) {
        useAsUniversal = (String) JOptionPane.showInputDialog(window
            .getComponent(),
View Full Code Here

Examples of org.freeplane.view.swing.map.attribute.AttributeView

    UITools.convertPointToAncestor(this, p, getMap());
  }

  public void createAttributeView() {
    if (attributeView == null && NodeAttributeTableModel.getModel(model).getNode() != null) {
      attributeView = new AttributeView(this, true);
    }
    syncronizeAttributeView();
  }
View Full Code Here

Examples of org.freeplane.view.swing.map.attribute.AttributeView

  }

  public AttributeView getAttributeView() {
    if (attributeView == null) {
      AttributeController.getController(getMap().getModeController()).createAttributeTableModel(model);
      attributeView = new AttributeView(this, true);
    }
    return attributeView;
  }
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.