Class TableElement
java.lang.Object
org.eclipse.e4.ui.css.core.dom.ElementAdapter
org.eclipse.e4.ui.css.swt.dom.WidgetElement
org.eclipse.e4.ui.css.swt.dom.ControlElement
org.eclipse.e4.ui.css.swt.dom.TableElement
- All Implemented Interfaces:
CSSStylableElement, IHeaderCustomizationElement, Element, Node, NodeList
-
Field Summary
Fields inherited from class ControlElement
hasFocus, hasMouseHoverFields inherited from class WidgetElement
localName, namespaceURI, swtStylesFields inherited from class ElementAdapter
engineFields inherited from interface Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTable()internalGetAttribute(String attr) The goal forWidgetElement.internalGetAttribute(String)is to share the code ofWidgetElement.hasAttribute(String)andWidgetElement.getAttribute(String)and to keep the performance footprint forWidgetElement.hasAttribute(String)small.voidreset()Called by the CSS engine upon a CSS theme switch.voidsetHeaderBackgroundColor(Color color) voidsetHeaderColor(Color color) Methods inherited from class ControlElement
dispose, getControl, getParentNode, initialize, isPseudoInstanceOfMethods inherited from class WidgetElement
applyStyles, computeAttributeSWTStyle, computeLocalName, computeNamespaceURI, computeStaticPseudoInstances, getAttribute, getChildNodes, getCSSClass, getCSSClass, getCSSId, getCSSStyle, getEngine, getEngine, getID, getLength, getLocalName, getNamespaceURI, getWidget, hasAttribute, item, setCSSClass, setEngine, setID, toStringMethods inherited from class ElementAdapter
addStaticPseudoInstance, appendChild, cloneNode, compareDocumentPosition, copyDefaultStyleDeclarations, doApplyStyles, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getDefaultStyleDeclaration, getElement, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getLastChild, getNativeWidget, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getSchemaTypeInfo, getStaticPseudoInstances, getStyle, getTagName, getTextContent, getUserData, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isStaticPseudoInstance, isSupported, lookupNamespaceURI, lookupPrefix, normalize, onStylesApplied, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultStyleDeclaration, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData
-
Constructor Details
-
TableElement
-
-
Method Details
-
reset
public void reset()Description copied from class:WidgetElementCalled by the CSS engine upon a CSS theme switch. Implementations should restore the default value so that the new theme can be applied to the application without restart- Overrides:
resetin classControlElement
-
setHeaderColor
- Specified by:
setHeaderColorin interfaceIHeaderCustomizationElement
-
setHeaderBackgroundColor
- Specified by:
setHeaderBackgroundColorin interfaceIHeaderCustomizationElement
-
getTable
-
internalGetAttribute
Description copied from class:WidgetElementThe goal forWidgetElement.internalGetAttribute(String)is to share the code ofWidgetElement.hasAttribute(String)andWidgetElement.getAttribute(String)and to keep the performance footprint forWidgetElement.hasAttribute(String)small. This shall be accomplished by:- The method shall only be a lookup for a supplier, no actual computation shall be made.
- The result of the supplier must hold the requirements of the result
of
WidgetElement.getAttribute(String). Especially it must not returnnull. - If the attribute isn't set on the widget, the method must return
null.
- Overrides:
internalGetAttributein classWidgetElement- Parameters:
attr- the name of the attribute to look for.- Returns:
- a supplier which will return the actual attribute value or
nullif the attribute isn't set for the widget.
-