Package com.iizix.text
Class KStringPLAINVirtualSpaceTag
- All Implemented Interfaces:
- IKStringTextTag,- Cloneable
public class KStringPLAINVirtualSpaceTag extends KStringPLAINTag<VSField> implements IKStringTextTag
Class for the VirtualSpace tag for KString that is of type PLAIN.
- 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.KStringPLAINTag- ref
- Constructor SummaryConstructorsConstructorDescription- KStringPLAINVirtualSpaceTag- (String ref, String inputString, int position, LinkedHashMap<String, - String> attributes) Creates a VirtualSpace tag for KString that is of type PLAIN.
- 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.- Class<?>Returns the reference class used by this tag, e.g.- boolean- isReferenceValid- (KStringHolder holder, GProp<?> gp) Validates a reference.- 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.- Methods inherited from class com.iizix.text.KStringPLAINTag- equalsName, getHTMLTagText, getPLAINTagText, getReference, isReferenceTag, setReference, willLoseFormatting- Methods inherited from class com.iizix.text.KStringTag- appendHTMLAttributes, appendHTMLAttributes, appendHTMLAttributesSkip, appendPLAINAttributes, appendPLAINValue, clone, disposeTagReference, equals, getAttribute, getReferenceError, getReferenceType, getSourceEndPosition, getSourceLength, getSourcePosition, getType, isRefreshRequired, resolve, 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, getReference, getSourceEndPosition, getSourcePosition, getType, setAttribute, setReference
- Constructor Details- KStringPLAINVirtualSpaceTagpublic KStringPLAINVirtualSpaceTag- (String ref, String inputString, int position, LinkedHashMap<String, - String> attributes) throws KStringParseExceptionCreates 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 Details- getReferenceClassReturns the reference class used by this tag, e.g. KStringProp for text table, or the image class IImageTarget.class.- Overrides:
- getReferenceClassin class- KStringTag<VSField>
- Returns:
- VSField.class.
 
- getPLAINStringGets the string representation of this tag in the PLAIN format.- Specified by:
- getPLAINStringin class- KStringTag<VSField>
- Parameters:
- useme- Temporary StringBuilder for any use.
- provider- The information provider or null for none.
 
- getHTMLStringGets the string representation of this tag in the HTML format, i.e. return the text table item escaped for HTML.- Specified by:
- getHTMLStringin class- KStringTag<VSField>
- Parameters:
- useme- Temporary StringBuilder for any use.
- provider- The information provider or null for none.
 
- isReferenceValidValidates a reference.- Overrides:
- isReferenceValidin class- KStringTag<VSField>
- Parameters:
- holder- The KString holder.
- gp- The reference found.
- Returns:
- Validates the reference.
 
- 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<VSField>
- Parameters:
- event- The event.
- field- The target property for the tag.
- Returns:
- true to refresh the KString, false not to.