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
-
ImageButton()
- Creates a new ImageButton
-
ImageButton(File)
-
-
ImageButton(File, String)
-
-
ImageButton(Image)
-
-
ImageButton(Image, String)
-
-
ImageButton(String)
- Creates a new ImageButton with the image specified by the filename given.
-
ImageButton(String, String)
- creates an imagebutton with an image corresponding to the given string, and a flyout label
specified by the given label.
-
ImageButton(URL)
-
-
ImageButton(URL, String)
-
-
addActionListener(ActionListener)
-
-
addNotify()
-
-
adjustmentValueChanged(AdjustmentEvent)
-
-
focusGained(FocusEvent)
-
-
focusLost(FocusEvent)
-
-
getActionCommand()
-
-
getHelpMessage()
- returns the label
-
getImage()
-
-
getLabel()
-
-
getMinimumSize()
-
-
getPreferredSize()
-
-
isFocusTraversable()
-
-
mouseClicked(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
-
-
removeActionListener(ActionListener)
-
-
removeNotify()
-
-
setActionCommand(String)
-
-
setEnabled(boolean)
-
-
setImage(File)
-
-
setImage(Image)
-
-
setImage(String)
- Sets the image to the image specified by the given string.
-
setImage(URL)
-
-
setLabel(String)
- Sets the label to be the given string
-
update(Graphics)
-
ImageButton
public ImageButton()
- Creates a new ImageButton
ImageButton
public ImageButton(String filename)
- Creates a new ImageButton with the image specified by the filename given.
ImageButton
public ImageButton(File file)
ImageButton
public ImageButton(URL url)
ImageButton
public ImageButton(Image image)
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.
ImageButton
public ImageButton(File file,
String label)
ImageButton
public ImageButton(URL url,
String label)
ImageButton
public ImageButton(Image image,
String label)
setImage
public void setImage(String filename)
- Sets the image to the image specified by the given string.
setImage
public void setImage(URL url)
setImage
public void setImage(File file)
setImage
public void setImage(Image image)
getImage
public Image getImage()
setEnabled
public void setEnabled(boolean b)
- Overrides:
- setEnabled in class Component
isFocusTraversable
public boolean isFocusTraversable()
- Overrides:
- isFocusTraversable in class Component
focusGained
public void focusGained(FocusEvent evt)
focusLost
public void focusLost(FocusEvent evt)
addNotify
public void addNotify()
- Overrides:
- addNotify in class Component
removeNotify
public void removeNotify()
- Overrides:
- removeNotify in class Component
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
addActionListener
public synchronized void addActionListener(ActionListener l)
removeActionListener
public synchronized void removeActionListener(ActionListener l)
setLabel
public void setLabel(String label)
- Sets the label to be the given string
getLabel
public String getLabel()
getHelpMessage
public String getHelpMessage()
- returns the label
setActionCommand
public void setActionCommand(String command)
getActionCommand
public String getActionCommand()
All Packages Class Hierarchy This Package Previous Next Index