|
SalesPoint Framework v3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sale.FormSheet.FormButton
A button in the FormSheet's button bar.
FormSheet
, Serialized FormField Summary | |
protected JButton |
m_jbPeer
The button's peer used to display the button. |
Constructor Summary | |
FormSheet.FormButton(String sCaption,
int nID,
Action aAction)
Create a new, initially enabled FormButton. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
ActionListener interface method, invoked when the peer was clicked. |
void |
attach(FormSheet fs)
Notify this button that it has been attached to, or detached from, a FormSheet. |
String |
getCaption()
Get the caption of the button. |
FormSheet |
getFormSheet()
Get the FormSheet this button is attached to. |
int |
getID()
Get the unique ID of this button. |
JButton |
getPeer()
Get the JButton peer of this button. |
void |
hide()
Hook method called when the FormSheet is hidden. |
boolean |
isEnabled()
Return the enabled state of this button. |
Action |
setAction(Action aAction)
Set the action that is performed when this button is clicked. |
void |
setCaption(String sCaption)
Set the caption of the button. |
void |
setEnabled(boolean fEnabled)
Set the enabled state of the button. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected transient JButton m_jbPeer
Constructor Detail |
public FormSheet.FormButton(String sCaption, int nID, Action aAction)
sCaption
- the caption of the button.nID
- a unique ID that can be used to identify the button in its FormSheet.aAction
- an action to perform when the button was clicked.Method Detail |
public void attach(FormSheet fs)
fs
- the FormSheet the button has been attached to. If null
,
the button has been detached from a FormSheet.public FormSheet getFormSheet()
public void hide()
public void setCaption(String sCaption)
sCaption
- the new caption.public String getCaption()
public void setEnabled(boolean fEnabled)
fEnabled
- the new enabled state of the button.public boolean isEnabled()
public int getID()
public JButton getPeer()
public Action setAction(Action aAction)
aAction
- the action to be performed, when this button is clicked.public void actionPerformed(ActionEvent e)
setAction(sale.Action)
|
SalesPoint Framework v3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |