Class spt.applets.ImageButtonApplet
All Packages Class Hierarchy This Package Previous Next Index
Class spt.applets.ImageButtonApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----spt.applets.StdApplet
|
+----spt.applets.ImageButtonApplet
- public class ImageButtonApplet
- extends StdApplet
A button applet that displays an image and optional text label.
Parameters
IMG URL Button image (optional)
IMGSCALE float Scale the image to (1.0 = normal) (optional)
CLICKAUDIO URL Sound played when the button is pushed (optional)
TEXT String Button text (optional)
TEXTALIGN String Alignment of the text in relation to the image: LEFT|RIGHT|TOP|BOTTOM (optional)
FONT Font Font for the text: Family,Style,PointSize (optional)
ENABLED bool Start the button enable? TRUE|FALSE or 1|0 or YES|NO (optional)
SHOWBORDER bool Show the button's border? TRUE|FALSE or 1|0 or YES|NO (optional)
DRAWPUSHEDIN bool Change look when button depressed? TRUE|FALSE or 1|0 or YES|NO (optional)
PADDING int Pixel buffer around inside of button border (optional)
IMAGELABELGAP int Pixel buffer between image and text (optional)
TARGETURL URL URL to go to when button pushed (optional)
TARGETFRAME String Frame to display the TARGETURL in (see AppletContext.showDocument()) (optional)
Plus StdApplet parameters.
- See Also:
- ImageButton
-
ImageButtonApplet()
-
-
action(Event, Object)
-
-
getImageButton()
-
-
getParameterInfo()
- Parameters
-
init()
- General initialization.
-
mouseEnter(Event, int, int)
-
-
setClickAudioParam(Applet, ImageButton)
-
-
setDrawPushedInParam(Applet, ImageButton)
-
-
setEnabledParam(Applet, ImageButton)
-
-
setFontParam(Applet, ImageButton)
-
-
setImgLabelGapParam(Applet, ImageButton)
-
-
setImgScaleParam(Applet, ImageButton)
-
-
setPaddingParam(Applet, ImageButton)
-
-
setShowBorderParam(Applet, ImageButton)
-
-
setTarget(URL)
-
-
setTargetFrame(String)
-
-
setTextAlignParam(Applet, ImageButton)
-
ImageButtonApplet
public ImageButtonApplet()
init
public void init()
- General initialization.
- Overrides:
- init in class StdApplet
setTextAlignParam
public static void setTextAlignParam(Applet app,
ImageButton b)
setFontParam
public static void setFontParam(Applet applet,
ImageButton b)
setClickAudioParam
public static void setClickAudioParam(Applet applet,
ImageButton b)
setImgScaleParam
public static void setImgScaleParam(Applet applet,
ImageButton b)
setShowBorderParam
public static void setShowBorderParam(Applet applet,
ImageButton b)
setDrawPushedInParam
public static void setDrawPushedInParam(Applet applet,
ImageButton b)
setPaddingParam
public static void setPaddingParam(Applet applet,
ImageButton b)
setImgLabelGapParam
public static void setImgLabelGapParam(Applet applet,
ImageButton b)
setEnabledParam
public static void setEnabledParam(Applet applet,
ImageButton b)
setTarget
public void setTarget(URL url)
setTargetFrame
public void setTargetFrame(String f)
getImageButton
public ImageButton getImageButton()
mouseEnter
public boolean mouseEnter(Event e,
int x,
int y)
- Overrides:
- mouseEnter in class StdApplet
action
public boolean action(Event e,
Object o)
- Overrides:
- action in class Component
getParameterInfo
public String[][] getParameterInfo()
- Parameters
- Overrides:
- getParameterInfo in class StdApplet
All Packages Class Hierarchy This Package Previous Next Index