Class AbstractCSSSWTEngineImpl

All Implemented Interfaces:
Direct Known Subclasses:

public abstract class AbstractCSSSWTEngineImpl extends CSSEngineImpl
CSS SWT Engine implementation which configure CSSEngineImpl to apply styles to SWT widgets.
  • Field Details

    • display

      protected Display display
  • Constructor Details

    • AbstractCSSSWTEngineImpl

      public AbstractCSSSWTEngineImpl(Display display)
    • AbstractCSSSWTEngineImpl

      public AbstractCSSSWTEngineImpl(Display display, boolean lazyApplyingStyles)
  • Method Details

    • initializeCSSPropertyHandlers

      protected abstract void initializeCSSPropertyHandlers()
    • initializeCSSElementProvider

      protected abstract void initializeCSSElementProvider()
    • getResourcesRegistry

      public IResourcesRegistry getResourcesRegistry()
      Description copied from interface: CSSEngine
      Get the IResourcesRegistry registered used to cache/dispose resources.
      Specified by:
      getResourcesRegistry in interface CSSEngine
      getResourcesRegistry in class AbstractCSSEngine
    • getElement

      public Element getElement(Object element)
      Description copied from class: AbstractCSSEngine
      Return the w3c Element linked to the Object element.
      Specified by:
      getElement in interface CSSEngine
      getElement in class AbstractCSSEngine
    • isStylable

      protected boolean isStylable(Widget widget)
      Return true if the given widget can be styled
      widget - the widget
      true if the widget can be styled
    • reset

      public void reset()
      Description copied from interface: CSSEngine
      Reset all style sheet registered into CSS Engine. This method must be called if you want parse and apply new StyleSheet and remove the old StyleSheet parsed.
      Specified by:
      reset in interface CSSEngine
      reset in class AbstractCSSEngine