Class powersoft.jcm.ui.PictureButton
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class powersoft.jcm.ui.PictureButton

java.lang.Object
   |
   +----powersoft.jcm.ui.Component
           |
           +----powersoft.jcm.ui.CommandButton
                   |
                   +----powersoft.jcm.ui.PictureButton

public class PictureButton
extends CommandButton

Variable Index

 o RAISED
 o SUNKEN
 o TEXT_BOTTOM
 o TEXT_TOP

Constructor Index

 o PictureButton()

Method Index

 o createAWTComponent(Component)
 o getDisabledImage()
 o getImage()
 o getInsets()
 o getShowFocus()
 o getState()
 o getSunkenImage()
 o getText()
 o getTextPosition()
 o setDisabledImage(Image)
 o setImage(Image)
Sets the image for the component.
 o setImage(String)
Sets the image for the component.
 o setImage(URL)
Sets the image for the component.
 o setInsets(Insets)
 o setShowFocus(boolean)
 o setState(int)
 o setSunkenImage(Image)
 o setText(String)
 o setTextPosition(int)

Variables

 o RAISED
  public final static int RAISED
 o SUNKEN
  public final static int SUNKEN
 o TEXT_TOP
  public final static int TEXT_TOP
 o TEXT_BOTTOM
  public final static int TEXT_BOTTOM

Constructors

 o PictureButton
  public PictureButton()

Methods

 o getDisabledImage
  public Image getDisabledImage()
 o setDisabledImage
  public void setDisabledImage(Image image)
 o getImage
  public Image getImage()
 o setImage
  public void setImage(Image image)
Sets the image for the component.
Parameters:
image - Specifies the image.
See Also:
setImage
 o setImage
  public void setImage(String filename)
Sets the image for the component.

Notes: This method is only useful for a Java application, since reading an image from a local file is neither allowed or desired for an applet.

Parameters:
filename - Specifies the GIF or JPEG file to read the image from.
See Also:
setImage
 o setImage
  public void setImage(URL url)
Sets the image for the component.

Notes: Using an absolute URL may violate the security model for an untrusted applet. In an applet a relative URL can be used as follows: java.net.URL url = new java.net.URL( this.getDocumentBase(), "images/i1.gif" ); pictbttn_1.setImage( url );

Parameters:
url - Specifies a URL to read the image from.
See Also:
setImage
 o getInsets
  public Insets getInsets()
 o setInsets
  public void setInsets(Insets insets)
 o getShowFocus
  public boolean getShowFocus()
 o setShowFocus
  public void setShowFocus(boolean showFocus)
 o getState
  public int getState()
 o setState
  public void setState(int state)
 o getSunkenImage
  public Image getSunkenImage()
 o setSunkenImage
  public void setSunkenImage(Image image)
 o getText
  public String getText()
Overrides:
getText in class CommandButton
 o setText
  public void setText(String text)
Overrides:
setText in class CommandButton
 o getTextPosition
  public int getTextPosition()
 o setTextPosition
  public void setTextPosition(int pos)
 o createAWTComponent
  protected Component createAWTComponent(Component parent)
Overrides:
createAWTComponent in class CommandButton

All Packages  Class Hierarchy  This Package  Previous  Next  Index