Package com.iizix.text
Class KStringHTMLTextTableTag
- All Implemented Interfaces:
- IKStringTextTag,- Cloneable
public class KStringHTMLTextTableTag extends KStringHTMLDynamicTag<KStringProp> implements IKStringTextTag
Class for the dynamic HTML tag IZ that refers to the text table.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class com.iizix.text.KStringTag- KStringTag.Type
- Field Summary- Fields inherited from class com.iizix.text.KStringHTMLTag- isClosed, ordinal
- Constructor SummaryConstructorsConstructorDescription- KStringHTMLTextTableTag- (int position, int ordinal, LinkedHashMap<String, - String> attributes, String inputString, int parsePosition) Creates a text table tag and resolves the name attribute.
- Method SummaryModifier and TypeMethodDescription- getHTMLString- (StringBuilder useme, IKStringInfoProvider provider) Gets the string representation of this tag in the HTML format, i.e.- getPLAINString- (StringBuilder useme, IKStringInfoProvider provider) Gets the string representation of this tag in the PLAIN format.- getPLAINTagText- (StringBuilder useme) Gets the "unparsed" string representation of this tag in the PLAIN format, i.e.Gets the reference.- Class<?>Returns the reference class used by this tag, e.g.- boolean- isRefreshRequired- (GEvent event, KStringProp ksp) 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.- boolean- isRefreshRequired- (RefreshEvent event) Returns whether the tags needs a refresh for the specified refresh type.- boolean- setReference- (String ref) Updates the reference for the tag.- booleanChecks if this string will lose formatting when translated to PLAIN.- Methods inherited from class com.iizix.text.KStringHTMLDynamicTag- getHTMLTagText, isReferenceTag- Methods inherited from class com.iizix.text.KStringHTMLTag- create, disposeTagReference, equalsName, resolve- Methods inherited from class com.iizix.text.KStringTag- appendHTMLAttributes, appendHTMLAttributes, appendHTMLAttributesSkip, appendPLAINAttributes, appendPLAINValue, clone, equals, getAttribute, getReferenceError, getReferenceType, getSourceEndPosition, getSourceLength, getSourcePosition, getType, isReferenceValid, setAttribute, setSourceLocation, verify- Methods inherited from class java.lang.Object- finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait- Methods inherited from interface com.iizix.text.IKStringTextTag- getAttribute, getSourceEndPosition, getSourcePosition, getType, setAttribute
- Constructor Details- KStringHTMLTextTableTagpublic KStringHTMLTextTableTag- (int position, int ordinal, LinkedHashMap<String, - String> attributes, String inputString, int parsePosition) throws KStringParseExceptionCreates a text table tag and resolves the name attribute.- Parameters:
- position- The position of the tag in the parsed string.
- attributes- The tag attributes.
- inputString- The input string to KString.
- parsePosition- The parsing position where tag starts.
- Throws:
- KStringParseException- For missing attributes.
 
 
- Method Details- getReferenceGets the reference.- Specified by:
- getReferencein interface- IKStringTextTag
- Specified by:
- getReferencein class- KStringHTMLDynamicTag<KStringProp>
- Returns:
- The reference string to the property.
 
- setReferenceUpdates the reference for the tag.- Specified by:
- setReferencein interface- IKStringTextTag
- Overrides:
- setReferencein class- KStringHTMLTag<KStringProp>
- Parameters:
- ref- The new reference string.
- Returns:
- true for changed, false for no change.
 
- getReferenceClassReturns the reference class used by this tag, e.g. KStringProp for text table, or the image class IImageTarget.class.- Overrides:
- getReferenceClassin class- KStringTag<KStringProp>
- Returns:
- KStringProp.class.
 
- willLoseFormattingpublic boolean willLoseFormatting()Checks if this string will lose formatting when translated to PLAIN. Note that translating PLAIN to HTML never loses formatting.- Specified by:
- willLoseFormattingin class- KStringHTMLDynamicTag<KStringProp>
- Returns:
- Always false.
 
- getPLAINTagTextGets the "unparsed" string representation of this tag in the PLAIN format, i.e. this HTML tag will reformat or translate itself for PLAIN. For the basic HTML tags, this results in an empty string.- Specified by:
- getPLAINTagTextin class- KStringHTMLDynamicTag<KStringProp>
 
- getPLAINStringGets the string representation of this tag in the PLAIN format.- Specified by:
- getPLAINStringin class- KStringHTMLDynamicTag<KStringProp>
- Parameters:
- useme- Temporary StringBuilder for any use.
- provider- The information provider or null for none.
- Returns:
- The Plain string resolved, or with error.
 
- getHTMLStringGets the string representation of this tag in the HTML format, i.e. return the text table item escaped for HTML.- Overrides:
- getHTMLStringin class- KStringHTMLDynamicTag<KStringProp>
- Parameters:
- useme- Temporary StringBuilder for any use.
- provider- The information provider or null for none.
 
- isRefreshRequiredReturns whether the tags needs a refresh for the specified refresh type.- Overrides:
- isRefreshRequiredin class- KStringTag<KStringProp>
- Parameters:
- event- The refresh event.
- Returns:
- true for refresh needed, false otherwise.
 
- isRefreshRequiredUpon 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:
- isRefreshRequiredin class- KStringTag<KStringProp>
- Parameters:
- event- The event.
- ksp- The target property for the tag.
- Returns:
- true to refresh the KString, false not to.