Package net.officefloor.eclipse.ide.swt
Class SwtUtil
- java.lang.Object
-
- net.officefloor.eclipse.ide.swt.SwtUtil
-
public class SwtUtil extends java.lang.ObjectUtility methods for the SWT.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBACKGROUND_COLORName of the background.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidautoHideScrollbars(org.eclipse.swt.custom.StyledText text)Provides auto hiding of the scroll bars.static voidautoHideScrollbars(org.eclipse.swt.widgets.Text text)Provides auto hiding of the scroll bars.static org.eclipse.jface.fieldassist.ControlDecorationerrorDecoration(org.eclipse.swt.widgets.Control control, int style)Creates error decoration on theControl.static java.util.Map<java.lang.String,javafx.scene.paint.Color>loadThemeColours(java.lang.Object uiObject, boolean isDispose)Loads theIThemeColorinstances.
-
-
-
Field Detail
-
BACKGROUND_COLOR
public static final java.lang.String BACKGROUND_COLOR
Name of the background.- See Also:
- Constant Field Values
-
-
Method Detail
-
autoHideScrollbars
public static void autoHideScrollbars(org.eclipse.swt.widgets.Text text)
Provides auto hiding of the scroll bars.- Parameters:
text-Text.
-
autoHideScrollbars
public static void autoHideScrollbars(org.eclipse.swt.custom.StyledText text)
Provides auto hiding of the scroll bars.- Parameters:
text-StyledText.
-
errorDecoration
public static org.eclipse.jface.fieldassist.ControlDecoration errorDecoration(org.eclipse.swt.widgets.Control control, int style)Creates error decoration on theControl.- Parameters:
control-Controlto have error decoration.style-SWTstyle.- Returns:
ControlDecoration.
-
loadThemeColours
public static java.util.Map<java.lang.String,javafx.scene.paint.Color> loadThemeColours(java.lang.Object uiObject, boolean isDispose)Loads theIThemeColorinstances.- Parameters:
uiObject- UI object to extractColorinstances.isDispose- Indicates to dispose theWidgetonce complete.- Returns:
Mapof CSS property toColor.
-
-