use of com.ramussoft.gui.attribute.AttributePreferenciesDialog in project ramus by Vitaliy-Yakovchuk.
the class ModelPropertiesDialog method setupAttribute.
public void setupAttribute() {
TreeTableNode node = component.getTable().getSelectedNode();
if (node == null)
return;
Row row = node.getRow();
if (row == null)
return;
AttributePreferenciesDialog d = new AttributePreferenciesDialog(framework, this);
Attribute attribute = engine.getAttribute((Long) row.getAttribute(attributeId));
d.setAttribute(attribute);
d.getOKButton().setEnabled(rules.canUpdateAttribute(attribute.getId()));
d.setVisible(true);
}
use of com.ramussoft.gui.attribute.AttributePreferenciesDialog in project ramus by Vitaliy-Yakovchuk.
the class QualifierPreferencesPanel method setupAttribute.
public void setupAttribute() {
Row row = attributeEditor.getSelectedRow();
if (row == null)
return;
AttributePreferenciesDialog d;
if (dialog == null)
d = new AttributePreferenciesDialog(framework);
else
d = new AttributePreferenciesDialog(framework, dialog);
Attribute attribute = engine.getAttribute((Long) row.getAttribute(attributeId));
d.setAttribute(attribute);
d.getOKButton().setEnabled(rules.canUpdateAttribute(attribute.getId()));
d.setVisible(true);
}
Aggregations