Class SwtUtil


  • public class SwtUtil
    extends java.lang.Object
    Utility methods for the SWT.
    Author:
    Daniel Sagenschneider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BACKGROUND_COLOR
      Name of the background.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void autoHideScrollbars​(org.eclipse.swt.custom.StyledText text)
      Provides auto hiding of the scroll bars.
      static void autoHideScrollbars​(org.eclipse.swt.widgets.Text text)
      Provides auto hiding of the scroll bars.
      static org.eclipse.jface.fieldassist.ControlDecoration errorDecoration​(org.eclipse.swt.widgets.Control control, int style)
      Creates error decoration on the Control.
      static java.util.Map<java.lang.String,​javafx.scene.paint.Color> loadThemeColours​(java.lang.Object uiObject, boolean isDispose)
      Loads the ITheme Color instances.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 the Control.
        Parameters:
        control - Control to have error decoration.
        style - SWT style.
        Returns:
        ControlDecoration.
      • loadThemeColours

        public static java.util.Map<java.lang.String,​javafx.scene.paint.Color> loadThemeColours​(java.lang.Object uiObject,
                                                                                                      boolean isDispose)
        Loads the ITheme Color instances.
        Parameters:
        uiObject - UI object to extract Color instances.
        isDispose - Indicates to dispose the Widget once complete.
        Returns:
        Map of CSS property to Color.