Class LightTextEditorBar

    • Constructor Detail

      • LightTextEditorBar

        public LightTextEditorBar()
        Constructor.
    • Method Detail

      • setEditable

        public void setEditable​(boolean isEditable,
                                Predicate<LightImageButton> buttonsEnablementPredicate)
        Sets control editable state and configures buttons enabled state.
        Parameters:
        isEditable - - true if control is editable.
        buttonsEnablementPredicate - - predicate to configure buttons enabled state. Can't be null.
      • setTextEditable

        public void setTextEditable​(boolean isTextEditable)
        Sets editor bar text editable state.
        Parameters:
        isTextEditable - - true if editor bar text is editable.
      • isTextEditable

        public boolean isTextEditable()
        Returns true if editor bar text is editable.
        Returns:
        true if editor bar text is editable.
      • addButton

        public void addButton​(LightImageButton button)
        Adds button to editor bar buttons.
        Parameters:
        button - - button to add. Can't be null.
      • removeButton

        public void removeButton​(LightImageButton button)
        Removes button from editor bar buttons.
        Parameters:
        button - - button to remove. Can't be null.
      • getButtons

        public Collection<LightImageButton> getButtons()
        Returns editor bar buttons.
        Returns:
        editor bar buttons. Can't return null.