Class NatTableElementAdapter

java.lang.Object
org.eclipse.e4.ui.css.core.dom.ElementAdapter
org.eclipse.e4.ui.css.swt.dom.WidgetElement
org.eclipse.nebula.widgets.nattable.extension.e4.css.NatTableElementAdapter
All Implemented Interfaces:
org.eclipse.e4.ui.css.core.dom.CSSStylableElement, Element, Node, NodeList

public class NatTableElementAdapter extends org.eclipse.e4.ui.css.swt.dom.WidgetElement
  • Constructor Details

    • NatTableElementAdapter

      public NatTableElementAdapter(NatTable natTable, org.eclipse.e4.ui.css.core.engine.CSSEngine engine)
  • Method Details

    • getParentNode

      public Node getParentNode()
      Specified by:
      getParentNode in interface Node
      Overrides:
      getParentNode in class org.eclipse.e4.ui.css.swt.dom.WidgetElement
    • getControl

      protected NatTable getControl()
    • getChildNodes

      public NodeList getChildNodes()
      Specified by:
      getChildNodes in interface Node
      Overrides:
      getChildNodes in class org.eclipse.e4.ui.css.swt.dom.WidgetElement
    • getLength

      public int getLength()
      Specified by:
      getLength in interface NodeList
      Overrides:
      getLength in class org.eclipse.e4.ui.css.swt.dom.WidgetElement
    • item

      public Node item(int index)
      Specified by:
      item in interface NodeList
      Overrides:
      item in class org.eclipse.e4.ui.css.swt.dom.WidgetElement
    • addVirtualChild

      public void addVirtualChild(String label)
      Add a virtual child to the NatTableElementAdapter. This way the given label can be used as child selector in the CSS file.
      Parameters:
      label - The label that should be usable as child selector.
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.e4.ui.css.core.dom.CSSStylableElement
      Overrides:
      dispose in class org.eclipse.e4.ui.css.core.dom.ElementAdapter
      Since:
      2.0