gnu.kawa.models

Class Button

Implemented Interfaces:
Viewable
Known Direct Subclasses:
MenuItem

public class Button
extends Model

A model (data) for a clickable button.

Method Summary

Object
getAction()
Color
getBackground()
Color
getForeground()
String
getText()
boolean
isDisabled()
void
makeView(Display display, Object where)
void
setAction(Object action)
void
setBackground(Color bg)
void
setDisabled(boolean disabled)
void
setForeground(Color fg)
void
setText(String text)

Methods inherited from class gnu.kawa.models.Model

addListener, addListener, notifyListeners

Method Details

getAction

public Object getAction()

getBackground

public Color getBackground()

getForeground

public Color getForeground()

getText

public String getText()

isDisabled

public boolean isDisabled()

makeView

public void makeView(Display display,
                     Object where)
Specified by:
makeView in interface Viewable

setAction

public void setAction(Object action)

setBackground

public void setBackground(Color bg)

setDisabled

public void setDisabled(boolean disabled)

setForeground

public void setForeground(Color fg)

setText

public void setText(String text)