Class ObjectClassCellPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class ObjectClassCellPanel
    extends JPanel
    A simple panel used in the LDAP entry viewers to display the object class values of an entry. It displays the structural and auxiliary object classes. It does not allow to edit directly the object class value. It is used for instance in the entry editors (simplified and table views).
    See Also:
    Serialized Form
    • Constructor Detail

      • ObjectClassCellPanel

        public ObjectClassCellPanel()
        Default constructor.
    • Method Detail

      • setValue

        public void setValue​(ObjectClassValue value)
        Sets the object class value to be displayed in this panel.
        Parameters:
        value - the object class value to be displayed in this panel.
      • getValue

        public ObjectClassValue getValue()
        Returns the object class value displayed in this panel.
        Returns:
        the object class value displayed in this panel.
      • setLockIconVisible

        public void setLockIconVisible​(boolean visible)
        Updates the visibility of the lock icon.
        Parameters:
        visible - whether the lock icon is visible or not.
      • addEditActionListener

        public void addEditActionListener​(ActionListener listener)
        Adds an action listener to this panel. The action listener will be invoked when the user clicks on the 'Edit' button.
        Parameters:
        listener - the action listener.
      • removeEditActionListener

        public void removeEditActionListener​(ActionListener listener)
        Removes an action listener previously added with the method addEditActionListener.
        Parameters:
        listener - the action listener.
      • setEditButtonVisible

        public void setEditButtonVisible​(boolean visible)
        Updates the visibility of the edit button.
        Parameters:
        visible - whether the edit button must be visible or not.
      • getMessage

        public org.forgerock.i18n.LocalizableMessage getMessage​(ObjectClassValue value)
        Returns the message describing the provided object class value.
        Parameters:
        value - the object class value.
        Returns:
        the message describing the provided object class value.