JButton
instead.@Deprecated public class IlvImageButton extends Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvImageButton(Image image)
Deprecated.
Creates a new IlvImageButton.
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate()
Deprecated.
This method is called when the user presses the button.
|
void |
addActionListener(ActionListener listener)
Deprecated.
Adds the specified action listener to receive action events
from this button.
|
Color |
getHighlightColor()
Deprecated.
Returns the highlight color of the button.
|
Image |
getImage()
Deprecated.
Returns the image of the button.
|
Dimension |
getMinimumSize()
Deprecated.
Returns the minimum size of the component.
|
Dimension |
getPreferredSize()
Deprecated.
Returns the preferred size of the component.
|
boolean |
getState()
Deprecated.
Returns the state of the button.
|
boolean |
imageUpdate(Image img,
int flags,
int x,
int y,
int w,
int h)
Deprecated.
Repaints the component when the image has changed.
|
boolean |
isRelief()
Deprecated.
Lets user change the way the button is drawn when it is not activated.
|
boolean |
isToggle()
Deprecated.
Returns true if the button is a toggle button; false otherwise.
|
void |
paint(Graphics g)
Deprecated.
Paints the component.
|
protected void |
processMouseEvent(MouseEvent e)
Deprecated.
Processes mouse events in the component.
|
protected void |
processMouseMotionEvent(MouseEvent e)
Deprecated.
Processes mouse motion events in the component.
|
void |
removeActionListener(ActionListener listener)
Deprecated.
Removes the specified action listener so it no longer receives
action events from this button.
|
void |
setHighlightColor(Color color)
Deprecated.
Changes the highlight color of the button.
|
void |
setImage(Image image)
Deprecated.
Changes the image of the button.
|
void |
setRelief(boolean relief)
Deprecated.
Tells the button whether a relief must be drawn or not when
the button is not activated.
|
void |
setState(boolean state)
Deprecated.
Changes the state of the button.
|
void |
setToggle(boolean toggle)
Deprecated.
Changes the type of the button.
|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public IlvImageButton(Image image)
image
- the image to display.public Image getImage()
public void setImage(Image image)
public Color getHighlightColor()
public void setHighlightColor(Color color)
public boolean getState()
public void setState(boolean state)
public boolean isToggle()
public void setToggle(boolean toggle)
toggle
- if true the button becomes a toggle button; otherwise it
is a pushed button.public boolean isRelief()
public void setRelief(boolean relief)
public void paint(Graphics g)
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h)
imageUpdate
in interface ImageObserver
imageUpdate
in class Component
protected void processMouseEvent(MouseEvent e)
processMouseEvent
in class Component
protected void processMouseMotionEvent(MouseEvent e)
processMouseMotionEvent
in class Component
public void addActionListener(ActionListener listener)
listener
- the action listenerpublic void removeActionListener(ActionListener listener)
listener
- the action listenerprotected void activate()
public Dimension getMinimumSize()
getMinimumSize
in class Component
public Dimension getPreferredSize()
getPreferredSize
in class Component
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.