public class Resolver
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.applet.Applet |
getApplet()
return the appet that is running
|
Message |
getMessage(java.lang.String bundle,
java.lang.String key)
Return a message with the specified key from the specified bundle.
|
static Resolver |
getResolver()
Return the current Resolver for this VM.
|
Message |
getTaggedMessage(java.lang.String bundle,
java.lang.String key)
Called from MXException
This message will tag the group and key information also
Return a message with the specified key from the specified bundle.
|
static boolean |
isApp()
Is the class currently running as an application, i.e.
|
static void |
isApp(boolean state)
Call with true from main to inform other applications that this is an
application, not just an applet
|
java.io.InputStream |
resolveDoclink(java.lang.String name)
Find a doclink image.
|
java.io.InputStream |
resolveImage(java.lang.String name)
Find an image.
|
java.io.InputStream |
resolveMenu(java.lang.String name)
Find a menu file
|
java.io.InputStream |
resolveMessage(java.lang.String msg)
Find a message bundle.
|
java.lang.String |
resolveScreen(java.lang.String name)
Find a screen file
|
java.io.InputStream |
resolveTextFile(java.lang.String name)
Find a generic file given the name.
|
void |
setApplet(java.applet.Applet ap)
Set pointer to applet.
|
static void |
setMapResourceFileName(java.lang.String fileName)
Sets the map resource filename default is /resources/resource.map :
Note : Before calling any resource mapping programmer first has to call this if they do not
like the default value.
|
void |
setPath(java.lang.String p) |
public static Resolver getResolver()
public void setPath(java.lang.String p)
public static void setMapResourceFileName(java.lang.String fileName)
fileName
- public java.io.InputStream resolveMessage(java.lang.String msg)
public java.io.InputStream resolveMenu(java.lang.String name)
public java.lang.String resolveScreen(java.lang.String name)
public java.io.InputStream resolveImage(java.lang.String name)
public java.io.InputStream resolveDoclink(java.lang.String name)
public java.io.InputStream resolveTextFile(java.lang.String name)
public static boolean isApp()
public static void isApp(boolean state)
public void setApplet(java.applet.Applet ap)
public java.applet.Applet getApplet()
public Message getMessage(java.lang.String bundle, java.lang.String key)
public Message getTaggedMessage(java.lang.String bundle, java.lang.String key)