protected ActionSaveConfiguration() { super(Argo.localize(Argo.MENU_BUNDLE, "Save Configuration"), false); }
//////////////////////////////////////////////////////////////// // contructors public PropPanelComponent() { super("Component", _componentIcon, 2); Class mclass = MComponent.class; addCaption(Argo.localize("UMLMenu", "label.name"), 1, 0, 0); addField(nameField, 1, 0, 0); addCaption(Argo.localize("UMLMenu", "label.stereotype"), 2, 0, 0); addField(stereotypeBox, 2, 0, 0); addCaption(Argo.localize("UMLMenu", "label.namespace"), 3, 0, 0); addField(namespaceComboBox, 3, 0, 0); addCaption(Argo.localize("UMLMenu", "label.modifiers"), 4, 0, 1); JPanel modifiersPanel = new JPanel(new GridLayout(0, 3)); modifiersPanel.add( new UMLCheckBox( Argo.localize("UMLMenu", "checkbox.abstract-lc"), this, new UMLReflectionBooleanProperty("isAbstract", mclass, "isAbstract", "setAbstract"))); modifiersPanel.add( new UMLCheckBox( Argo.localize("UMLMenu", "checkbox.final-lc"), this, new UMLReflectionBooleanProperty("isLeaf", mclass, "isLeaf", "setLeaf"))); modifiersPanel.add( new UMLCheckBox( localize("root"), this, new UMLReflectionBooleanProperty("isRoot", mclass, "isRoot", "setRoot"))); addField(modifiersPanel, 4, 0, 0); addCaption("Generalizations:", 0, 1, 1); addField(extendsScroll, 0, 1, 1); addCaption("Specializations:", 1, 1, 1); addField(derivedScroll, 1, 1, 1); new PropPanelButton( this, buttonPanel, _navUpIcon, Argo.localize("UMLMenu", "button.go-up"), "navigateUp", null); new PropPanelButton( this, buttonPanel, _navBackIcon, Argo.localize("UMLMenu", "button.go-back"), "navigateBackAction", "isNavigateBackEnabled"); new PropPanelButton( this, buttonPanel, _navForwardIcon, Argo.localize("UMLMenu", "button.go-forward"), "navigateForwardAction", "isNavigateForwardEnabled"); new PropPanelButton( this, buttonPanel, _deleteIcon, localize("Delete component"), "removeElement", null); }