Class BinaryCellPanel

    • Constructor Detail

      • BinaryCellPanel

        public BinaryCellPanel()
        Default constructor.
    • Method Detail

      • getString

        public org.forgerock.i18n.LocalizableMessage getString​(byte[] value,
                                                               boolean isImage)
        Returns the message describing the provided array of bytes.
        Parameters:
        value - the array of bytes.
        isImage - whether the array of bytes represents an image or not.
        Returns:
        the message describing the provided array of bytes.
      • setLockIconVisible

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

        public void setEditButtonText​(org.forgerock.i18n.LocalizableMessage text)
        Sets the text of the edit button (for instance if this panel is displaying a read-only value, the user might set a value of 'View...' that launches a viewer).
        Parameters:
        text - the text of the button.
      • getMessage

        public org.forgerock.i18n.LocalizableMessage getMessage​(BinaryValue value,
                                                                boolean isImage)
        Returns the message describing the provided binary value.
        Parameters:
        value - the binary value.
        isImage - whether the binary value represents an image or not.
        Returns:
        the message describing the provided binary value.
      • setValue

        public void setValue​(byte[] value,
                             boolean isImage)
        Sets the value to be displayed by this panel.
        Parameters:
        value - the binary value as an array of bytes.
        isImage - whether the binary value represents an image or not.
      • setValue

        public void setValue​(BinaryValue value,
                             boolean isImage)
        Sets the value to be displayed by this panel.
        Parameters:
        value - the binary value as a BinaryValue object.
        isImage - whether the binary value represents an image or not.
      • getValue

        public Object getValue()
        Returns the object represented by this panel.
        Returns:
        the object represented by this panel.
      • 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 or the icon.
        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.
      • addDeleteActionListener

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

        public void removeDeleteActionListener​(ActionListener listener)
        Removes an action listener previously added with the method addDeleteActionListener.
        Parameters:
        listener - the action listener.
      • isDisplayDelete

        public boolean isDisplayDelete()
        Tells whether the 'Delete' button is displayed or not.
        Returns:
        true if the 'Delete' button is visible and false otherwise.
      • setDisplayDelete

        public void setDisplayDelete​(boolean displayDelete)
        Sets whether the 'Delete' button must be displayed or not.
        Parameters:
        displayDelete - whether the 'Delete' button must be displayed or not.