Class wb.TextButton
All Packages Class Hierarchy This Package Previous Next Index
Class wb.TextButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----wb.WBButton
|
+----wb.TextButton
- public class TextButton
- extends WBButton
TextButton extends WBButton and writes some text
-
TextButton(String, WBDrawPanel)
- Creates an instance of TextButton with its label string used
for display on the status bar
-
TextButton(String, WBDrawPanel, boolean)
- Creates an instance of TextButton with its label string used
for display on the status bar
-
draw(Graphics)
- Overides the parents draw method to draw the required in the
rectangular region.
TextButton
public TextButton(String name,
WBDrawPanel above)
- Creates an instance of TextButton with its label string used
for display on the status bar
- Parameters:
- name - String containing the label of this button
- above - the WBDrawPanel which holds this button and
understands the type "TEXTS" and displays the
label in its status line
TextButton
public TextButton(String name,
WBDrawPanel above,
boolean displaytext)
- Creates an instance of TextButton with its label string used
for display on the status bar
- Parameters:
- name - String containing the label of this button
- above - the WBDrawPanel which holds this button and
understands the type "TEXTS" and displays the
label in its status line
- displaytext - boolean to show the label
draw
protected void draw(Graphics g)
- Overides the parents draw method to draw the required in the
rectangular region. In this case it writes ``T t''
- Parameters:
- g - Graphics
- Overrides:
- draw in class WBButton
All Packages Class Hierarchy This Package Previous Next Index