Class FormattedTextToolBar


  • public class FormattedTextToolBar
    extends Object
    ToolBar for formatted string, contains logic for inserting special symbols, pictures, colors and font into formatting string. Class is not instance of ToolBar but provides it by getControl().
    • Constructor Detail

      • FormattedTextToolBar

        public FormattedTextToolBar​(org.eclipse.swt.widgets.Composite parent,
                                    IFormattedTextEditableViewProvider formattedTextViewProvider,
                                    boolean editable,
                                    int style)
        Constructor
        Parameters:
        parent - parent composit for slaces tool bar, cannot be null
        formattedTextViewProvider - special IFormattedTextEditableViewProvider for getting editing FormattedTextEditableView, cannot be null
        editable - true if changes in formatted string enable, false otherwise
        style - styles of ToolBar
    • Method Detail

      • onSelectionChanged

        public void onSelectionChanged()
        Should be called when selection in text editing control of formatted string was changed.
      • getControl

        public org.eclipse.swt.widgets.ToolBar getControl()
        Gets created ToolBar
        Returns:
        created ToolBar for formatted string, cannot be null
      • createToolButton

        protected void createToolButton()
        Creates all ToolItem for ToolBar