Package com.smartgwt.client.tools
Class SelectionOutline
java.lang.Object
com.smartgwt.client.tools.SelectionOutline
This static singleton class implements a component that can be used to highlight any other Canvas or FormItem by drawing
a line around it and optional label. The selection outline moves, resizes and hides with the target object, and does
not occlude any part of it. The outline is not a peer, child or member of the target object; the target object does not
know about the outline.
NOTE: This class is for internal use only by EditContext.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Returns the CSS border of this component.static void
Returns the background color for the selection label.static void
Set the CSS border of this component as a CSS string including border-width, border-style, and/or color (eg "1px dashed blue").static void
setLabelBackgroundColor
(String color) Set the background color for the selection label.
-
Constructor Details
-
SelectionOutline
public SelectionOutline()
-
-
Method Details
-
getBorder
public static void getBorder()Returns the CSS border of this component. -
getLabelBackgroundColor
public static void getLabelBackgroundColor()Returns the background color for the selection label. -
setBorder
Set the CSS border of this component as a CSS string including border-width, border-style, and/or color (eg "1px dashed blue").This property applies the same border to all four sides of this component.
- Parameters:
border
- css border string
-
setLabelBackgroundColor
Set the background color for the selection label. It corresponds to the CSS background-color attribute. You can set this property to an RGB value (e.g. #22AAFF) or a named color (e.g. red) from a list of browser supported color names.- Parameters:
color
- css color
-