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 SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- final boolean- cacheCustomCSS- (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 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- PropMgrInfoProviderAdapterpublic PropMgrInfoProviderAdapter()
 
- Method Details- getHTTPServerGets the HTTP Server string prefix including port.- Specified by:
- getHTTPServerin interface- IKStringInfoProvider
- Returns:
- The "HTTP[S]//server[:port]" String or null for none. This adapter returns "".
 
- getImageTargetGets the image reference. This method must be implemented by subclasses.- Specified by:
- getImageTargetin interface- IKStringInfoProvider
- Parameters:
- ref- The image definition reference string.
- Returns:
- The image found, or null if not found.
 
- doAddReferencepublic boolean doAddReference()Gets the flag for adding the reference string in an attribute when editing the KString.- Specified by:
- doAddReferencein interface- IKStringInfoProvider
- Returns:
- false, the adapter always returns false.
 
- cacheSVGAdds the SVG image information as being sent to the client.- Specified by:
- cacheSVGin interface- IPropMgrInfoProvider
- 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.
 
- cacheCustomCSSCaches the custom CSS URL.- Specified by:
- cacheCustomCSSin interface- IPropMgrInfoProvider
- 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.