Package com._1c.g5.lwt.controls
Class LightColorBoxEditorBar<C extends ILightControl>
- 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<C>
-
- com._1c.g5.lwt.controls.LightColorBoxEditorBar<C>
-
- All Implemented Interfaces:
IEditable
,ILightComposite
,ILightContentComposite<C>
,ILightControl
public class LightColorBoxEditorBar<C extends ILightControl> extends LightEditorBar<C>
TheLightEditorBar
implementation with ability to show given color at the left side. It usesLightColorBox
for displaying color and manages theColor
instances lifecycle. It operates withRGB
objects as identifiers of colors.
-
-
Constructor Summary
Constructors Constructor Description LightColorBoxEditorBar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this control.org.eclipse.swt.graphics.RGB
getRgb()
Returns current displaying color presented byRGB
instance.void
setRgb(org.eclipse.swt.graphics.RGB rgb)
Sets the given color as displaying color in color box at the left side of the editor bar.-
Methods inherited from class com._1c.g5.lwt.controls.LightEditorBar
contentSet, contentUnset, getBackgroundColor, getBorderColor, getImage, getLeftSide, getRightSide, isEditable, paint, setBackgroundColor, setBorderColor, setEditable, 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, 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
-
getRgb
public org.eclipse.swt.graphics.RGB getRgb()
Returns current displaying color presented byRGB
instance.- Returns:
- the
RGB
instance.
-
setRgb
public void setRgb(org.eclipse.swt.graphics.RGB rgb)
Sets the given color as displaying color in color box at the left side of the editor bar. If the givenrgb
isnull
the color box is removed.- Parameters:
rgb
- theRGB
instance.
-
dispose
public void dispose()
Disposes this control. Also disposes theColor
object of the color box at the left side if it's is notnull
.- Specified by:
dispose
in interfaceILightControl
- Overrides:
dispose
in classLightComposite
-
-