Class MutableResouce
java.lang.Object
com.codename1.ui.util.Resources
com.codename1.ui.util.MutableResource
com.codename1.ui.util.MutableResouce
Deprecated.
Deprecated typo-preserving wrapper for
MutableResource.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MutableResource
clear, containsResource, getData, getDataByteArray, isModified, save, saveL10N, setData, setImage, setIndexedImage, setL10N, setSVG, setTheme, setThemeProperty, setTimeline, setUi, writeImageModifier and TypeMethodDescriptionvoidclear()booleancontainsResource(String name) Returns the data resource from the filebyte[]booleanvoidsave(OutputStream out) protected voidsaveL10N(DataOutputStream output, Hashtable l10n) voidvoidvoidsetIndexedImage(String name, Image image) voidvoidvoidvoidsetThemeProperty(String themeName, String key, Object value) voidsetTimeline(String name, Timeline timeline) voidprotected voidwriteImage(DataOutputStream output, Image image) Methods inherited from class Resources
getDataResourceNames, getFont, getFontResourceNames, getGlobalResources, getImage, getImageResourceNames, getL10N, getL10NResourceNames, getMajorVersion, getMetaData, getMinorVersion, getResourceNames, getSystemResource, getTheme, getThemeResourceNames, getUIResourceNames, isAnimation, isData, isEnableMediaQueries, isFailOnMissingTruetype, isFont, isImage, isL10N, isTheme, isUI, l10NLocaleSet, listL10NLocales, open, open, open, openLayered, openLayered, override, setEnableMediaQueries, setFailOnMissingTruetype, setGlobalResources, setPassword, setRuntimeMultiImageEnabledModifier and TypeMethodDescriptionString[]Returns the names of the data resources within this bundleReturns the font resource from the fileString[]Returns the names of the fonts within this bundlestatic ResourcesGlobal resources are used by new GUI builder apps to keep track of the applications resourcesReturns the image resource from the fileString[]Returns the names of the images within this bundleReturns a hashmap containing localized String key/value pairs for the given locale nameString[]Returns the names of the localization bundles within this bundleintReturns the version number for this resource file.String[]Returns optional meta-data associated with the resource fileintReturns the minor version number for this resource file This value relates to the value from the header defined by the resource file specification.String[]Returns the names of the resources within this bundlestatic ResourcesGets the system resource which can be located /CN1Images.res.Returns the theme resource from the fileString[]Returns the names of the images within this bundleString[]Returns the names of the ui resources within this bundlebooleanisAnimation(String name) Returns true if this is an animation resourcebooleanReturns true if this is a data resourcestatic booleanstatic booleanReturns
booleanReturns true if this is a font resourcebooleanReturns true if this is an image resourcebooleanReturns true if this is a generic data resourcebooleanReturns true if this is a theme resourcebooleanReturns true if this is a UI resourcel10NLocaleSet(String id) Returns a collection of the l10 locale namesReturns an enumration of the locales supported by this resource idstatic Resourcesopen(InputStream resource, int dpi) Creates a resource object from the given input streamstatic ResourcesCreates a resource object from the local JAR resource identifierstatic ResourcesCreates a resource object from the local JAR resource identifierstatic ResourcesopenLayered(String resource) Opens a multi-layer resource file that supports overriding features on a specific platform.static ResourcesopenLayered(String resource, int dpi) Opens a multi-layer resource file that supports overriding features on a specific platform.voidoverride(InputStream input) This method allows overriding the data of a resource file with another resource file thus replacing or enhancing existing content with platform specific content.static voidsetEnableMediaQueries(boolean enable) static voidsetFailOnMissingTruetype(boolean aFailOnMissingTruetype) Parameters
static voidGlobal resources are used by new GUI builder apps to keep track of the applications resourcesstatic voidsetPassword(String password) Sets the password to use for password protected resource filesstatic voidsetRuntimeMultiImageEnabled(boolean b) This flag should be off and it is off by default, some special case implementations for development e.g.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
MutableResouce
public MutableResouce()Deprecated.
-
-
Method Details
-
open
Deprecated.- Throws:
IOException
-