de.esw.eengine.renderable.wtk
Class AbstractButton
java.lang.Object
de.esw.eengine.renderable.AbstractRenderable
de.esw.eengine.renderable.wtk.Component
de.esw.eengine.renderable.wtk.AbstractButton
- All Implemented Interfaces:
- IActivatable, IRenderable
- Direct Known Subclasses:
- Button, Checkbox
public abstract class AbstractButton
- extends Component
- Since:
- 1.0
- Version:
- $Id: AbstractButton.java 204 2005-07-18 17:53:40Z markusw $
- Author:
- markusw
| Methods inherited from class de.esw.eengine.renderable.wtk.Component |
contains, getBorder, getBounds, getClientRect, getComponentAt, getLocation, isActive, move, render, setActive, setBorder, setImage, setLocation, toggle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractButton
public AbstractButton(int x,
int y,
int width,
int height)
- Parameters:
x - X location of this Componenty - Y location of this Componentwidth - Width of this Componentheight - Height of this Component
AbstractButton
public AbstractButton(java.awt.Rectangle extents)
- Parameters:
extents - Extents of this Component
getText
public final java.lang.String getText()
- Returns:
- Returns the text.
setText
public final void setText(java.lang.String text)
- Parameters:
text - The text to set.
getColor
public final java.awt.Color getColor()
- Returns:
- Returns the color.
setColor
public final void setColor(java.awt.Color color)
- Parameters:
color - The color to set.
getFont
public final Font getFont()
- Returns:
- Returns the font.
setFont
public final void setFont(Font font)
- Parameters:
font - The font to set.
addMouseListener
public void addMouseListener(java.awt.event.MouseListener l)
- Parameters:
l - The listener to add
removeMouseListener
public void removeMouseListener(java.awt.event.MouseListener l)
- Parameters:
l - The listener to remove