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

Constructor Index

 o ImageButtonApplet()

Method Index

 o action(Event, Object)
 o getImageButton()
 o getParameterInfo()
Parameters
 o init()
General initialization.
 o mouseEnter(Event, int, int)
 o setClickAudioParam(Applet, ImageButton)
 o setDrawPushedInParam(Applet, ImageButton)
 o setEnabledParam(Applet, ImageButton)
 o setFontParam(Applet, ImageButton)
 o setImgLabelGapParam(Applet, ImageButton)
 o setImgScaleParam(Applet, ImageButton)
 o setPaddingParam(Applet, ImageButton)
 o setShowBorderParam(Applet, ImageButton)
 o setTarget(URL)
 o setTargetFrame(String)
 o setTextAlignParam(Applet, ImageButton)

Constructors

 o ImageButtonApplet
  public ImageButtonApplet()

Methods

 o init
  public void init()
General initialization.
Overrides:
init in class StdApplet
 o setTextAlignParam
  public static void setTextAlignParam(Applet app,
                                       ImageButton b)
 o setFontParam
  public static void setFontParam(Applet applet,
                                  ImageButton b)
 o setClickAudioParam
  public static void setClickAudioParam(Applet applet,
                                        ImageButton b)
 o setImgScaleParam
  public static void setImgScaleParam(Applet applet,
                                      ImageButton b)
 o setShowBorderParam
  public static void setShowBorderParam(Applet applet,
                                        ImageButton b)
 o setDrawPushedInParam
  public static void setDrawPushedInParam(Applet applet,
                                          ImageButton b)
 o setPaddingParam
  public static void setPaddingParam(Applet applet,
                                     ImageButton b)
 o setImgLabelGapParam
  public static void setImgLabelGapParam(Applet applet,
                                         ImageButton b)
 o setEnabledParam
  public static void setEnabledParam(Applet applet,
                                     ImageButton b)
 o setTarget
  public void setTarget(URL url)
 o setTargetFrame
  public void setTargetFrame(String f)
 o getImageButton
  public ImageButton getImageButton()
 o mouseEnter
  public boolean mouseEnter(Event e,
                            int x,
                            int y)
Overrides:
mouseEnter in class StdApplet
 o action
  public boolean action(Event e,
                        Object o)
Overrides:
action in class Component
 o getParameterInfo
  public String[][] getParameterInfo()
Parameters
Overrides:
getParameterInfo in class StdApplet

All Packages  Class Hierarchy  This Package  Previous  Next  Index