Package org.eclipse.e4.ui.css.swt.dom
Class ControlElement
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
- All Implemented Interfaces:
CSSStylableElement,Element,Node,NodeList
- Direct Known Subclasses:
ButtonElement,CompositeElement,LinkElement,ScaleElement,TableElement,TextElement,TreeElement
CSSStylableElement implementation which wrap SWT Control.-
Field Summary
FieldsFields inherited from class org.eclipse.e4.ui.css.swt.dom.WidgetElement
localName, namespaceURI, swtStylesFields inherited from class org.eclipse.e4.ui.css.core.dom.ElementAdapter
engineFields inherited from interface org.w3c.dom.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 TypeMethodDescriptionvoiddispose()Method called whenCSSEngine.dispose()is called.protected ControlvoidMethod called after theCSSStylableElementwas linked to the native widget.booleanReturn true ifsis pseudo instance (ex :focus) and false otherwise.voidreset()Called by the CSS engine upon a CSS theme switch.Methods inherited from class org.eclipse.e4.ui.css.swt.dom.WidgetElement
applyStyles, computeAttributeSWTStyle, computeLocalName, computeNamespaceURI, computeStaticPseudoInstances, getAttribute, getChildNodes, getCSSClass, getCSSClass, getCSSId, getCSSStyle, getEngine, getEngine, getID, getLength, getLocalName, getNamespaceURI, getWidget, hasAttribute, internalGetAttribute, item, setCSSClass, setEngine, setID, toStringMethods inherited from class org.eclipse.e4.ui.css.core.dom.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
-
Field Details
-
hasFocus
protected boolean hasFocus -
hasMouseHover
protected boolean hasMouseHover
-
-
Constructor Details
-
ControlElement
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:CSSStylableElementMethod called after theCSSStylableElementwas linked to the native widget. You can add UI listener into this method.- Specified by:
initializein interfaceCSSStylableElement- Overrides:
initializein classElementAdapter
-
dispose
public void dispose()Description copied from interface:CSSStylableElementMethod called whenCSSEngine.dispose()is called. You can remove UI listener into this method.- Specified by:
disposein interfaceCSSStylableElement- Overrides:
disposein classElementAdapter
-
isPseudoInstanceOf
Description copied from interface:CSSStylableElementReturn true ifsis pseudo instance (ex :focus) and false otherwise.- Specified by:
isPseudoInstanceOfin interfaceCSSStylableElement- Overrides:
isPseudoInstanceOfin classElementAdapter
-
getParentNode
- Specified by:
getParentNodein interfaceNode- Overrides:
getParentNodein classWidgetElement
-
getControl
-
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 classWidgetElement
-