Package com._1c.g5.lwt.controls
Class LightTextEditorBar
- java.lang.Object
-
- com._1c.g5.lwt.AbstractLightControl
-
- com._1c.g5.lwt.LightComposite
-
- com._1c.g5.lwt.AbstractLightContentComposite<C>
-
- com._1c.g5.lwt.controls.LightEditorBar<LightText>
-
- com._1c.g5.lwt.controls.LightTextEditorBar
-
- All Implemented Interfaces:
IEditable
,ILightComposite
,ILightContentComposite<LightText>
,ILightControl
- Direct Known Subclasses:
AbstractLightSpinner
,LightCombo
public class LightTextEditorBar extends LightEditorBar<LightText>
Implementation ofLightTextEditorBar
withLightText
control in the middle, image (LightImage
/LightColorBox
) in the left side and buttons (LightImageButton
) in right side.
-
-
Constructor Summary
Constructors Constructor Description LightTextEditorBar()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addButton(LightImageButton button)
Adds button to editor bar buttons.Collection<LightImageButton>
getButtons()
Returns editor bar buttons.boolean
isTextEditable()
Returnstrue
if editor bar text is editable.void
removeButton(LightImageButton button)
Removes button from editor bar buttons.void
setEditable(boolean isEditable)
Sets control editable state.void
setEditable(boolean isEditable, Predicate<LightImageButton> buttonsEnablementPredicate)
Sets control editable state and configures buttons enabled state.void
setTextEditable(boolean isTextEditable)
Sets editor bar text editable state.-
Methods inherited from class com._1c.g5.lwt.controls.LightEditorBar
contentSet, contentUnset, getBackgroundColor, getBorderColor, getImage, getLeftSide, getRightSide, isEditable, paint, setBackgroundColor, setBorderColor, setEnabled, setImage, setVisible
-
Methods inherited from class com._1c.g5.lwt.AbstractLightContentComposite
getContent, setContent
-
Methods inherited from class com._1c.g5.lwt.LightComposite
addChild, addChild, addChildAfter, addLayerAbove, addLayerBehind, computeSize, controlFromPoint, dispose, getActiveControl, getChildCount, getChildren, getLayers, getLayout, layout, layout, removeChild, removeChild, revealRectangle, setActiveControl, setBounds, setFocus, setLayout, translatePointFromControl, translatePointToControl, translateRectangleFromControl, translateRectangleToControl, traverse, traverse
-
Methods inherited from class com._1c.g5.lwt.AbstractLightControl
addControlListener, getBounds, getCursor, getData, getLayoutData, getOverlay, getParent, getTooltip, getVisibleBounds, handleEvent, invalidate, invalidate, isDisposed, isEnabled, isFocused, isVisible, removeControlListener, setCursor, setData, setFocusable, setLayoutData, setOverlay, setParent, setTooltip
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.lwt.ILightComposite
getMainLayer
-
Methods inherited from interface com._1c.g5.lwt.ILightControl
addControlListener, getBounds, getCursor, getData, getLayoutData, getParent, getTooltip, getVisibleBounds, handleEvent, initialize, invalidate, invalidate, isDisposed, isEnabled, isFocused, isVisible, removeControlListener, setCursor, setData, setLayoutData, setParent, setTooltip
-
-
-
-
Method Detail
-
setEditable
public void setEditable(boolean isEditable)
Description copied from interface:IEditable
Sets control editable state.- Specified by:
setEditable
in interfaceIEditable
- Overrides:
setEditable
in classLightEditorBar<LightText>
- Parameters:
isEditable
- -true
if control can be edited.
-
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 benull
.
-
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()
Returnstrue
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 benull
.
-
removeButton
public void removeButton(LightImageButton button)
Removes button from editor bar buttons.- Parameters:
button
- - button to remove. Can't benull
.
-
getButtons
public Collection<LightImageButton> getButtons()
Returns editor bar buttons.- Returns:
- editor bar buttons. Can't return
null
.
-
-