|
Sky View Café - Java | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
org.shetline.gui.KApplet
public class KApplet
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JApplet |
---|
JApplet.AccessibleJApplet |
Nested classes/interfaces inherited from class java.applet.Applet |
---|
Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected String |
altWebHost
|
protected boolean |
appletMode
|
protected static Vector<KApplet> |
applets
|
protected Object |
browserWindow
|
protected String |
cookieDomain
|
protected String |
cookieFrame
|
protected String |
cookieWriter
|
protected boolean |
isResourceReference
|
protected boolean |
liveConnectWorks
|
protected ResourceProvider |
resourceProvider
|
Fields inherited from class javax.swing.JApplet |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
KApplet()
|
Method Summary | |
---|---|
void |
addChoicesFromResource(JComboBox comboBox,
String key)
Fill in selections choices for a JComboBox using a delimited (as per ResourceProvider.getStrings(String) resource string. |
protected void |
beep()
|
boolean |
canDoLiveConnect()
|
void |
destroy()
|
String |
fillInURL(String url)
|
String |
format(String patternKey,
Object... args)
Return a formatted string, filled in using a specified list of arguments, as per ExtendedMessageFormat.format(String, Object...) , where the pattern argument
is a resource string matching the specified patternKey . |
static KApplet |
getApplet()
|
boolean |
getAppletMode()
|
String |
getCookie()
|
String |
getCookie(String name)
|
String |
getCookie(String name,
boolean raw)
|
String |
getFilledInURL(String key)
|
int |
getInt(String key)
Return an integer value for the given key. |
int |
getInt(String key,
int errorValue)
Return an integer value for the given key. |
String |
getParameter(String name)
|
protected Dimension |
getScreenSize()
|
String |
getString(String key)
Return a resource string for the given key. |
String |
getString(String key,
String defaultValue)
Return a resource string for the given key. |
String |
getString(String key,
String defaultValue,
boolean failQuietly)
Return a resource string for the given key. |
String[] |
getStrings(String key)
Return an array of strings parsed from the resource string for the given key. |
String[] |
getStrings(String key,
char delimiter)
Return an array of strings parsed from the resource string for the given key. |
String[] |
getStrings(String key,
char delimiter,
char escapeChar)
Return an array of strings parsed from the resource string for the given key. |
String |
getWebHost()
|
void |
init()
|
boolean |
isDestroyed()
|
boolean |
setCookie(String name,
String value)
|
boolean |
setCookie(String name,
String value,
Date expiration)
|
boolean |
setCookie(String name,
String value,
String path)
|
boolean |
setCookie(String name,
String value,
String path,
Date expiration)
|
protected boolean |
setCookieViaFrameHack(String name,
String value,
String path,
Date expiration)
|
static boolean |
showDocument(Applet applet,
String url)
|
static boolean |
showDocument(Applet applet,
String url,
String target)
|
boolean |
showDocument(String url)
|
boolean |
showDocument(String url,
String target)
|
Methods inherited from class javax.swing.JApplet |
---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
Methods inherited from class java.applet.Applet |
---|
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String altWebHost
protected boolean appletMode
protected Object browserWindow
protected String cookieDomain
protected String cookieFrame
protected String cookieWriter
protected boolean isResourceReference
protected boolean liveConnectWorks
protected ResourceProvider resourceProvider
protected static final Vector<KApplet> applets
Constructor Detail |
---|
public KApplet()
Method Detail |
---|
public void init()
init
in class Applet
public static KApplet getApplet()
public boolean getAppletMode()
public String getParameter(String name)
getParameter
in class Applet
public void destroy()
destroy
in class Applet
public boolean isDestroyed()
public String getString(String key)
ResourceProvider
getString
in interface ResourceProvider
key
- Resource key.
public String getString(String key, String defaultValue)
ResourceProvider
getString
in interface ResourceProvider
key
- Resource key.defaultValue
- Default return value if resource not found.
defaultValue
if no match is found.public String getString(String key, String defaultValue, boolean failQuietly)
ResourceProvider
getString
in interface ResourceProvider
key
- Resource key.defaultValue
- Default return value if resource not found.failQuietly
- If true, log no error for unmatched resource key.
defaultValue
if no match is found.public String[] getStrings(String key)
ResourceProvider
Return an array of strings parsed from the resource string for the given key.
The delimiters used to separate multiple string items will be automatically determined as follows, in this order of evaluation:
If none of the above delimiters are found, the resource will be treated as a single string.
getStrings
in interface ResourceProvider
key
- Resource key.
public String[] getStrings(String key, char delimiter)
ResourceProvider
getStrings
in interface ResourceProvider
key
- Resource key.delimiter
- The delimiter character used to separate individual string items. If the delimiter is either
semicolon (;) or comma (,) backslash (\) is used as an escape character.
public String[] getStrings(String key, char delimiter, char escapeChar)
ResourceProvider
getStrings
in interface ResourceProvider
key
- Resource key.delimiter
- The delimiter character used to separate individual string items.escapeChar
- An escape character. If the null character (\0) is specified, no escaping is performed.
public int getInt(String key)
ResourceProvider
getInt
in interface ResourceProvider
key
- Resource key.
public int getInt(String key, int errorValue)
ResourceProvider
getInt
in interface ResourceProvider
key
- Resource key.errorValue
- Value to return for missing or invalid resources.
errorValue
if no match is found
or if the matching resource does not parse as a proper integer.public String format(String patternKey, Object... args)
ResourceProvider
Return a formatted string, filled in using a specified list of arguments, as per
ExtendedMessageFormat.format(String, Object...)
, where the pattern
argument
is a resource string matching the specified patternKey
.
format
in interface ResourceProvider
patternKey
- Resource key for a formatting pattern.args
- Values to be applied to the formatting pattern.
MessageFormat.format(String, Object...)
public void addChoicesFromResource(JComboBox comboBox, String key)
ResourceProvider
ResourceProvider.getStrings(String)
resource string.
addChoicesFromResource
in interface ResourceProvider
comboBox
- Target JComboBox.key
- Resource key of delimited list of choices.public String getWebHost()
public String fillInURL(String url)
public String getFilledInURL(String key)
protected void beep()
protected Dimension getScreenSize()
public boolean canDoLiveConnect()
public String getCookie()
public String getCookie(String name)
public String getCookie(String name, boolean raw)
public boolean setCookie(String name, String value)
public boolean setCookie(String name, String value, String path)
public boolean setCookie(String name, String value, Date expiration)
public boolean setCookie(String name, String value, String path, Date expiration)
protected boolean setCookieViaFrameHack(String name, String value, String path, Date expiration)
public boolean showDocument(String url)
public boolean showDocument(String url, String target)
public static boolean showDocument(Applet applet, String url)
public static boolean showDocument(Applet applet, String url, String target)
|
Sky View Café - Java | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |