Class FormattedTextToolBar
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.editor.formattedtext.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 ofToolBar
but provides it bygetControl()
.
-
-
Constructor Summary
Constructors Constructor Description FormattedTextToolBar(org.eclipse.swt.widgets.Composite parent, IFormattedTextEditableViewProvider formattedTextViewProvider, boolean editable, int style)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createToolButton()
Creates allToolItem
forToolBar
org.eclipse.swt.widgets.ToolBar
getControl()
Gets createdToolBar
void
onSelectionChanged()
Should be called when selection in text editing control of formatted string was changed.
-
-
-
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 benull
formattedTextViewProvider
- specialIFormattedTextEditableViewProvider
for getting editingFormattedTextEditableView
, cannot benull
editable
-true
if changes in formatted string enable,false
otherwisestyle
- styles ofToolBar
-
-
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 createdToolBar
- Returns:
- created
ToolBar
for formatted string, cannot benull
-
createToolButton
protected void createToolButton()
Creates allToolItem
forToolBar
-
-