/**
* �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);
}
}
}