Class UAElement

java.lang.Object
org.eclipse.help.internal.UAElement
All Implemented Interfaces:
IUAElement
Direct Known Subclasses:
Anchor, CommandLink, Include, Topic

public class UAElement extends Object implements IUAElement
  • Field Details

  • Constructor Details

    • UAElement

      public UAElement(Element element)
    • UAElement

      public UAElement(String name)
    • UAElement

      public UAElement(String name, IUAElement src)
  • Method Details

    • appendChild

      public void appendChild(UAElement uaElementToAppend)
    • appendChildren

      public void appendChildren(IUAElement[] children)
    • getAttribute

      public String getAttribute(String name)
    • getChildren

      public IUAElement[] getChildren()
      Description copied from interface: IUAElement
      Returns all sub-elements (children) of this element.
      Specified by:
      getChildren in interface IUAElement
      Returns:
      the sub-elements of this element
    • getChildren

      public <T> T[] getChildren(Class<T> clazz)
    • getElementName

      public String getElementName()
    • getParentElement

      public UAElement getParentElement()
    • insertBefore

      public void insertBefore(UAElement newChild, UAElement refChild)
    • isEnabled

      public boolean isEnabled(IEvaluationContext context)
      Description copied from interface: IUAElement
      Returns whether or not this element should be enabled in the given context. Elements may be hidden (filtered) if certain conditions are true.
      Specified by:
      isEnabled in interface IUAElement
      Parameters:
      context - the context in which the element appears
      Returns:
      whether or not the element is enabled in the given context
    • removeChild

      public void removeChild(UAElement elementToRemove)
    • setAttribute

      public void setAttribute(String name, String value)
    • getElement

      public Element getElement()