Class MarkupTagCompletion

    • Constructor Detail

      • MarkupTagCompletion

        public MarkupTagCompletion​(CompletionProvider provider,
                                   String name)
        Constructor.
        Parameters:
        provider - The parent provider instance.
        name - The name of the tag.
    • Method Detail

      • addAttributes

        protected void addAttributes​(StringBuilder sb)
        Adds HTML describing the attributes of this tag to a buffer.
        Parameters:
        sb - The buffer to append to.
      • addDefinitionString

        protected void addDefinitionString​(StringBuilder sb)
      • getAttributeCount

        public int getAttributeCount()
        Returns the number of attributes of this tag.
        Returns:
        The number of attributes of this tag.
        See Also:
        getAttribute(int)
      • getDefinedIn

        public String getDefinedIn()
        Returns where this variable is defined.
        Returns:
        Where this variable is defined.
        See Also:
        setDefinedIn(String)
      • getDescription

        public String getDescription()
        Returns a short description of this variable. This should be an HTML snippet.
        Returns:
        A short description of this variable. This may be null.
        See Also:
        setDescription(String)
      • getName

        public String getName()
        Returns the name of this tag.
        Returns:
        The name of this tag.
      • getReplacementText

        public String getReplacementText()
        Returns the text to insert as the result of this auto-completion. This is the "complete" text, including any text that replaces what the user has already typed.
        Returns:
        The replacement text.
        See Also:
        Completion.getInputText()
      • getSummary

        public String getSummary()
        Returns the description of this auto-complete choice. This can be used in a popup "description window."
        Returns:
        This item's description. This should be HTML. It may be null if there is no description for this completion.
      • possiblyAddDefinedIn

        protected void possiblyAddDefinedIn​(StringBuilder sb)
        Adds some HTML describing where this variable is defined, if this information is known.
        Parameters:
        sb - The buffer to append to.
      • possiblyAddDescription

        protected void possiblyAddDescription​(StringBuilder sb)
        Adds the description text as HTML to a buffer, if a description is defined.
        Parameters:
        sb - The buffer to append to.
      • setDefinedIn

        public void setDefinedIn​(String definedIn)
        Sets where this variable is defined.
        Parameters:
        definedIn - Where this variable is defined.
        See Also:
        getDefinedIn()
      • setDescription

        public void setDescription​(String desc)
        Sets the short description of this tag. This should be an HTML snippet.
        Parameters:
        desc - A short description of this tag. This may be null.
        See Also:
        getDescription()