gnu.kawa.models

Class Button

public class Button extends Model

A model (data) for a clickable button.
Method Summary
ObjectgetAction()
ColorgetBackground()
ColorgetForeground()
StringgetText()
booleanisDisabled()
voidmakeView(Display display, Object where)
voidsetAction(Object action)
voidsetBackground(Color bg)
voidsetDisabled(boolean disabled)
voidsetForeground(Color fg)
voidsetText(String text)

Method Detail

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)

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)