Class SchemaElementPanel

    • Field Detail

      • PANEL_BORDER

        protected Border PANEL_BORDER
        The empty border shared by all the schema element panels.
    • Constructor Detail

      • SchemaElementPanel

        public SchemaElementPanel()
    • Method Detail

      • addSchemaElementSelectionListener

        public void addSchemaElementSelectionListener​(SchemaElementSelectionListener listener)
        Adds a schema element selection listener.
        Parameters:
        listener - the listener.
      • removeSchemaElementSelectionListener

        public void removeSchemaElementSelectionListener​(SchemaElementSelectionListener listener)
        Removes a schema element selection listener.
        Parameters:
        listener - the listener.
      • notifySchemaSelectionListeners

        protected void notifySchemaSelectionListeners​(Object schemaElement)
        Notifies to all the listeners that a new schema element was selected.
        Parameters:
        schemaElement - the new schema element that has been selected.
      • mustCheckUnsavedChanges

        public boolean mustCheckUnsavedChanges()
        Method used to know if there are unsaved changes or not. It is used by the schema selection listener when the user changes the selection.
        Returns:
        true if there are unsaved changes (and so the selection of the schema should be canceled) and false otherwise.
      • checkUnsavedChanges

        public UnsavedChangesDialog.Result checkUnsavedChanges()
        Tells whether the user chose to save the changes in the panel, to not save them or simply cancelled the selection in the tree.
        Returns:
        the value telling whether the user chose to save the changes in the panel, to not save them or simply cancelled the selection in the tree.
      • objectClassSelected

        protected void objectClassSelected​(JList<?> list)
        Method called when there is an object class selected in a list.
        Parameters:
        list - the list.
      • getAliases

        protected Set<String> getAliases​(AttributeType attr)
        Returns the list of aliases for the provided attribute.
        Parameters:
        attr - the attribute.
        Returns:
        the list of aliases for the provided attribute.
      • getAliases

        protected Set<String> getAliases​(ObjectClass oc)
        Returns the list of aliases for the provided object class.
        Parameters:
        oc - the object class.
        Returns:
        the list of aliases for the provided object class.