Class OptionsGroup

    • Field Detail

      • id

        private final java.lang.String id
      • icon

        private final javax.swing.Icon icon
      • visible

        private boolean visible
      • enabled

        private boolean enabled
      • children

        private final java.util.List<OptionsGroup> children
      • ICON_ENVIRONMENT_OPTIONS

        protected static javax.swing.Icon ICON_ENVIRONMENT_OPTIONS
    • Constructor Detail

      • OptionsGroup

        protected OptionsGroup​(java.lang.String id,
                               @CheckForNull
                               javax.swing.Icon icon,
                               boolean visible)
      • OptionsGroup

        protected OptionsGroup​(java.lang.String id,
                               boolean visible)
    • Method Detail

      • getId

        public java.lang.String getId()
      • getGroupIcon

        @CheckForNull
        @OpenApi
        public javax.swing.Icon getGroupIcon()
        Returns icon to display with options.
        Returns:
        icon to display with options.
      • getIcon

        @Deprecated
        @CheckForNull
        @OpenApi
        public SwingImageIcon getIcon()
        Deprecated.
        use #getGroupIcon()
        Returns icon to display with options.
        Returns:
        icon to display with options
      • createOptionsPanel

        @CheckForNull
        public abstract com.nomagic.magicdraw.ui.dialogs.options.BaseOptionsPanel createOptionsPanel()
        Creates options panel for editing the properties.
        Returns:
        created options panel.
      • isVisible

        public boolean isVisible()
      • setVisible

        public void setVisible​(boolean visible)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getOptionsToSave

        @CheckForNull
        public Style getOptionsToSave()
      • firstInit

        public void firstInit​(boolean pluginsLoaded)
      • afterSave

        public void afterSave()
      • loadOptions

        public void loadOptions​(Style style,
                                boolean pluginsLoaded)
      • beforeLoad

        public void beforeLoad​(boolean pluginsLoaded)
      • afterLoad

        protected void afterLoad​(@CheckForNull
                                 com.nomagic.magicdraw.lic.MDVersion version,
                                 boolean pluginsLoaded)
      • getName

        @OpenApi
        public java.lang.String getName()
        Gets human-readable name of options.
        Returns:
        human-readable name of options.
      • getBanner

        @CheckForNull
        public com.nomagic.ui.banners.Banner getBanner()
      • setParent

        private void setParent​(@CheckForNull
                               OptionsGroup parent)
      • getChildren

        public java.util.List<OptionsGroup> getChildren()
      • sortChildren

        public void sortChildren​(java.util.Comparator<OptionsGroup> comparator)
      • resetCachedValues

        protected void resetCachedValues()