Package com.iizix.prop
Class PropMgrInfoProviderAdapter
java.lang.Object
com.iizix.prop.PropMgrInfoProviderAdapter
- All Implemented Interfaces:
IPropMgrInfoProvider,IKStringInfoProvider
Abstract adapter for the Property Manager Information Provider.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionfinal booleancacheCustomCSS(String url) Caches the custom CSS URL.final intAdds the SVG image information as being sent to the client.booleanGets the flag for adding the reference string in an attribute when editing the KString.Gets the HTTP Server string prefix including port.abstract IImageTargetgetImageTarget(String ref) Gets the image reference.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.iizix.text.IKStringInfoProvider
getDPR, getResolveReferenceProperty, getResourcePrefix, getTargetLanguageCode, installFont, installFonts, installFonts, shouldResolve
Constructor Details
PropMgrInfoProviderAdapter
public PropMgrInfoProviderAdapter()
Method Details
getHTTPServer
Gets the HTTP Server string prefix including port.- Specified by:
getHTTPServerin interfaceIKStringInfoProvider- Returns:
- The "HTTP[S]//server[:port]" String or null for none. This adapter returns "".
getImageTarget
Gets the image reference. This method must be implemented by subclasses.- Specified by:
getImageTargetin interfaceIKStringInfoProvider- Parameters:
ref- The image definition reference string.- Returns:
- The image found, or null if not found.
doAddReference
public boolean doAddReference()Gets the flag for adding the reference string in an attribute when editing the KString.- Specified by:
doAddReferencein interfaceIKStringInfoProvider- Returns:
- false, the adapter always returns false.
cacheSVG
Adds the SVG image information as being sent to the client.- Specified by:
cacheSVGin interfaceIPropMgrInfoProvider- Parameters:
svgString- The SVG string.- Returns:
- The cached index value for the SVG string. A negative value indicates that it needs sending to the client, whereas a positive means only the index is required to be sent. A return value of zero is an error and means not to send it to client at all.
cacheCustomCSS
Caches the custom CSS URL.- Specified by:
cacheCustomCSSin interfaceIPropMgrInfoProvider- Parameters:
url- The URL of the Custom CSS.- Returns:
- Flag indicating the URL needs to be sent to client when
trueor if is already cached on the client sidefalse.