Class KStringPLAINVirtualSpaceTag

    • Constructor Detail

      • KStringPLAINVirtualSpaceTag

        public KStringPLAINVirtualSpaceTag​(java.lang.String ref,
                                           java.lang.String inputString,
                                           int position,
                                           java.util.LinkedHashMap<java.lang.String,​java.lang.String> attributes)
                                    throws KStringParseException
        Creates a VirtualSpace tag for KString that is of type PLAIN.
        Parameters:
        ref - The reference value.
        inputString - The input string.
        position - The position in the character based and parsed string.
        attributes - The attributes for the tag.
        Throws:
        KStringParseException
    • Method Detail

      • getReferenceClass

        public java.lang.Class<?> getReferenceClass()
        Returns the reference class used by this tag, e.g. KStringProp for text table, or the image class IImageTarget.class.
        Overrides:
        getReferenceClass in class KStringTag<VSField>
        Returns:
        VSField.class.
      • getPLAINString

        public java.lang.String getPLAINString​(java.lang.StringBuilder useme,
                                               IKStringInfoProvider provider)
        Gets the string representation of this tag in the PLAIN format.
        Specified by:
        getPLAINString in class KStringTag<VSField>
        Parameters:
        useme - Temporary StringBuilder for any use.
        provider - The information provider or null for none.
      • getHTMLString

        public java.lang.String getHTMLString​(java.lang.StringBuilder useme,
                                              IKStringInfoProvider provider)
        Gets the string representation of this tag in the HTML format, i.e. return the text table item escaped for HTML.
        Specified by:
        getHTMLString in class KStringTag<VSField>
        Parameters:
        useme - Temporary StringBuilder for any use.
        provider - The information provider or null for none.
      • isReferenceValid

        public boolean isReferenceValid​(KStringHolder holder,
                                        GProp<?> gp)
        Validates a reference.
        Overrides:
        isReferenceValid in class KStringTag<VSField>
        Parameters:
        holder - The KString holder.
        gp - The reference found.
        Returns:
        Validates the reference.
      • isRefreshRequired

        public boolean isRefreshRequired​(GEvent event,
                                         VSField field)
        Upon a property event received on the target reference property (or its children), this method verifies if the event would affect the KString contents needing to be refreshed.
        Overrides:
        isRefreshRequired in class KStringTag<VSField>
        Parameters:
        event - The event.
        field - The target property for the tag.
        Returns:
        true to refresh the KString, false not to.