All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class datarep.common.ImageButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----datarep.common.ImageButton

public class ImageButton
extends Component
implements MouseListener, AdjustmentListener, FocusListener, Helpable
An Image button is similar to a Button, except it holds an image rather than a text string. A text string can also be chosen for a flyout field (since this implements the Helpable interface). The flyout only works on platforms which are capable of displaying a Window (without a Frame).

Version:
1.2
Author:
Data Representations, Inc.
See Also:
Helpable

Constructor Index

 o ImageButton()
Creates a new ImageButton
 o ImageButton(File)
 o ImageButton(File, String)
 o ImageButton(Image)
 o ImageButton(Image, String)
 o ImageButton(String)
Creates a new ImageButton with the image specified by the filename given.
 o ImageButton(String, String)
creates an imagebutton with an image corresponding to the given string, and a flyout label specified by the given label.
 o ImageButton(URL)
 o ImageButton(URL, String)

Method Index

 o addActionListener(ActionListener)
 o addNotify()
 o adjustmentValueChanged(AdjustmentEvent)
 o focusGained(FocusEvent)
 o focusLost(FocusEvent)
 o getActionCommand()
 o getHelpMessage()
returns the label
 o getImage()
 o getLabel()
 o getMinimumSize()
 o getPreferredSize()
 o isFocusTraversable()
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
 o removeActionListener(ActionListener)
 o removeNotify()
 o setActionCommand(String)
 o setEnabled(boolean)
 o setImage(File)
 o setImage(Image)
 o setImage(String)
Sets the image to the image specified by the given string.
 o setImage(URL)
 o setLabel(String)
Sets the label to be the given string
 o update(Graphics)

Constructors

 o ImageButton
 public ImageButton()
Creates a new ImageButton

 o ImageButton
 public ImageButton(String filename)
Creates a new ImageButton with the image specified by the filename given.

 o ImageButton
 public ImageButton(File file)
 o ImageButton
 public ImageButton(URL url)
 o ImageButton
 public ImageButton(Image image)
 o ImageButton
 public ImageButton(String filename,
                    String label)
creates an imagebutton with an image corresponding to the given string, and a flyout label specified by the given label.

 o ImageButton
 public ImageButton(File file,
                    String label)
 o ImageButton
 public ImageButton(URL url,
                    String label)
 o ImageButton
 public ImageButton(Image image,
                    String label)

Methods

 o setImage
 public void setImage(String filename)
Sets the image to the image specified by the given string.

 o setImage
 public void setImage(URL url)
 o setImage
 public void setImage(File file)
 o setImage
 public void setImage(Image image)
 o getImage
 public Image getImage()
 o setEnabled
 public void setEnabled(boolean b)
Overrides:
setEnabled in class Component
 o isFocusTraversable
 public boolean isFocusTraversable()
Overrides:
isFocusTraversable in class Component
 o focusGained
 public void focusGained(FocusEvent evt)
 o focusLost
 public void focusLost(FocusEvent evt)
 o addNotify
 public void addNotify()
Overrides:
addNotify in class Component
 o removeNotify
 public void removeNotify()
Overrides:
removeNotify in class Component
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component
 o mouseEntered
 public void mouseEntered(MouseEvent e)
 o mouseExited
 public void mouseExited(MouseEvent e)
 o mouseClicked
 public void mouseClicked(MouseEvent e)
 o mouseReleased
 public void mouseReleased(MouseEvent e)
 o mousePressed
 public void mousePressed(MouseEvent e)
 o addActionListener
 public synchronized void addActionListener(ActionListener l)
 o removeActionListener
 public synchronized void removeActionListener(ActionListener l)
 o setLabel
 public void setLabel(String label)
Sets the label to be the given string

 o getLabel
 public String getLabel()
 o getHelpMessage
 public String getHelpMessage()
returns the label

 o setActionCommand
 public void setActionCommand(String command)
 o getActionCommand
 public String getActionCommand()

All Packages  Class Hierarchy  This Package  Previous  Next  Index