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
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
cacheCustomCSS
(String url) Caches the custom CSS URL.final int
Adds the SVG image information as being sent to the client.boolean
Gets the flag for adding the reference string in an attribute when editing the KString.Gets the HTTP Server string prefix including port.abstract IImageTarget
getImageTarget
(String ref) Gets the image reference.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getHTTPServer
in 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:
getImageTarget
in 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:
doAddReference
in interfaceIKStringInfoProvider
- Returns:
- false, the adapter always returns false.
cacheSVG
Adds the SVG image information as being sent to the client.- Specified by:
cacheSVG
in 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:
cacheCustomCSS
in interfaceIPropMgrInfoProvider
- Parameters:
url
- The URL of the Custom CSS.- Returns:
- Flag indicating the URL needs to be sent to client when
true
or if is already cached on the client sidefalse
.