Resources

Inheritance: java.lang.Object

public final class Resources

Class representing page resources.

Methods

MethodDescription
clearImagesCache()
getForms()Gets Forms forms collection
getImages()Gets Images images collection
getFonts(boolean createIfAbsent)Returns fonts collection.
getFonts()Gets Fonts resources collection
getExtGStates()Gets all ExGStates from resources.
getResourcesFor(Form form)Gets resources for
isCommonResource()True if this resources are common i.e.
setResourceDictionary(IResourceDictionary resourceDictionary)For internal usage only!

clearImagesCache()

public final void clearImagesCache()

getForms()

public XFormCollection getForms()

Gets Forms forms collection

Returns: XFormCollection - XFormCollection object

getImages()

public XImageCollection getImages()

Gets Images images collection

Returns: XImageCollection - XImageCollection object

getFonts(boolean createIfAbsent)

public FontCollection getFonts(boolean createIfAbsent)

Returns fonts collection. If resources don’t contain fonts entry it will be created in depends of CreateIfAbsent flag.

Parameters:

ParameterTypeDescription
createIfAbsentbooleanIf this flag is true then fonts will be created if this entry is absent.

Returns: FontCollection - Fonts collection.

getFonts()

public FontCollection getFonts()

Gets Fonts resources collection

Returns: FontCollection - FontCollection object

getExtGStates()

public final System.Collections.Generic.Dictionary<String,Resources.ExtGStateValue> getExtGStates()

Gets all ExGStates from resources.

Returns: Dictionary - Returns dictionary with ExGStates names keys.

getResourcesFor(Form form)

public static Resources getResourcesFor(Form form)

Gets resources for

Parameters:

ParameterTypeDescription
formFormForm object

Returns: Resources - Resources object

isCommonResource()

public boolean isCommonResource()

True if this resources are common i.e. are shared for several pages (placed in pages dictionary or in every page as object reference) Manipulation with common resources must be performed very carefully for example deleting object form common resources in one page may cause errors on other pages if deleted object was used for other pages.

Returns: boolean - boolean value

setResourceDictionary(IResourceDictionary resourceDictionary)

public void setResourceDictionary(IResourceDictionary resourceDictionary)

For internal usage only!

Parameters:

ParameterTypeDescription
resourceDictionaryIResourceDictionaryinernal instance