Package com.iizix.text
Interface IKStringInfoProvider
- All Known Subinterfaces:
- IKStringValuePropHolder<PROP_VALUE>,- IPropMgrInfoProvider
- All Known Implementing Classes:
- AppFactory,- BadgeProp,- KStringInfoProviderAdapter,- KStringProp,- PatternProp,- PlainKStringProp,- PropMgrInfoProviderAdapter,- RichTextEditorDialog,- TableCell,- TextTableEditor,- TooltipProp,- ValidationKStringInfoProviderHolder
public interface IKStringInfoProvider
Provider of information required by KString's when converted to HTML.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- booleanGets the flag for adding the reference string in an attribute when editing the KString in a rich text editor.- double- getDPR()Gets the device pixel ratio.Gets the HTTP Server string prefix including port.- getImageTarget- (String ref) Gets the image reference.- static IKStringInfoProviderGets the session's IKStringInfoProvider from the ClientSessionGyro threads, and if not found, from the application session gyro threads.- GProp<?>Gets the property used for references look-up's.Gets the base reference name for the resource, typically an image, for the Server or the Designer.Gets the language code to use.- boolean- installFont- (String fontFamily) Installs the font family specified.- default boolean- installFonts- (String fontFamilies) Installs the font families as specified by the font family.- boolean- installFonts- (List<FontFiles> fontList) Installs the font face as specified by the- FontFilesinstance for the Client Session.- booleanFlag indicating the "real" resolved string should be returned.
- Method Details- getKStringInfoProviderInstanceGets the session's IKStringInfoProvider from the ClientSessionGyro threads, and if not found, from the application session gyro threads.- Returns:
- The current client or application session's IKStringInfoProvider instance, or null if not found.
 
- getHTTPServerString getHTTPServer()Gets the HTTP Server string prefix including port.- Returns:
- The "HTTP[S]//server[:port]" String or null for none.
 
- getImageTargetGets the image reference.- Parameters:
- ref- The image definition reference string.
- Returns:
- The image found, or null if not found.
 
- doAddReferenceboolean doAddReference()Gets the flag for adding the reference string in an attribute when editing the KString in a rich text editor.- Returns:
- true for the Designer (will add additional parameters for the rich text editor), false for normal processing.
 
- shouldResolveboolean shouldResolve()Flag indicating the "real" resolved string should be returned. This value is true for the runtime client when in "real run mode".- Returns:
- true to resolve all references, false if inside e.g. the Designer.
 
- getResolveReferencePropertyGProp<?> getResolveReferenceProperty()Gets the property used for references look-up's.- Returns:
- The property to use for reference property look-up.
 
- getDPRdouble getDPR()Gets the device pixel ratio.- Returns:
- The device pixel ratio, default 1.0.
 
- getTargetLanguageCodeString getTargetLanguageCode()Gets the language code to use.- Returns:
- The language code, or null for default.
 
- getResourcePrefixString getResourcePrefix()Gets the base reference name for the resource, typically an image, for the Server or the Designer. This reference is "/$" (the default in this interface) for the Designer, but should be "/$APPID/" for the Server, where APPID is the application being run by the client. The Server must therefore implement this method and return that string instead.- Returns:
- The resource prefix string, "/$" by default, but "/$APPID/" for the Server,' where APPID is the application being run by the client.
 
- installFontInstalls the font family specified.- Parameters:
- fontFamily- The font family.
- Returns:
- true for success, false if the remote part doesn't support installation, e.g. in a preview browser.
 
- installFontsInstalls the font families as specified by the font family.- Parameters:
- fontFamilies- The font family or families, comma separated.
- Returns:
- true for success, false if the remote part doesn't support installation, e.g. in a preview browser.
 
- installFontsInstalls the font face as specified by the- FontFilesinstance for the Client Session. Once installed, the font family can be used.- Parameters:
- fontList- The list of font files to install.
- Returns:
- true for success, false if the remote part doesn't support installation, e.g. in a preview browser.