|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcsdk.v1_0.helper.application.AbstractApplication
csdk.v1_0.helper.AbstractCSDKApplication
csdk.v1_0.helper.AbstractCSDKWindowApplication
simplecalculator.SimpleCalculator
public class SimpleCalculator
Aplicação de calculadora simples.
| Field Summary | |
|---|---|
static int |
OpDivide
The following integer values are being set as "final" because they are going to be used for determining what button has been pushed |
static int |
OpMClear
The following integer values are being set as "final" because they are going to be used for determining what button has been pushed |
static int |
OpMinus
The following integer values are being set as "final" because they are going to be used for determining what button has been pushed |
static int |
OpMPlus
The following integer values are being set as "final" because they are going to be used for determining what button has been pushed |
static int |
OpMR
The following integer values are being set as "final" because they are going to be used for determining what button has been pushed |
static int |
OpMultiply
The following integer values are being set as "final" because they are going to be used for determining what button has been pushed |
static int |
OpPlus
The following integer values are being set as "final" because they are going to be used for determining what button has been pushed |
| Constructor Summary | |
|---|---|
SimpleCalculator(ICSDKEnvironment csdkInterface)
Construtor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
This method is called whenever an action is performed on the applet, * specifically whenever one of the buttons on the applet is pressed * |
protected void |
applicationEnded()
|
protected void |
applicationStarted(JFrame frame)
Montagem do diálogo principal. |
JPanel |
buildPanel()
This the only method that is called explicitly -- every other method is called depending on the user's actions. |
boolean |
canEndApplication()
Método que permite sempre ao usuário matar a aplicação. |
void |
DecimalButton()
This is a method that is called whenever the decimal button is pressed. |
boolean |
keyDown(Event evt,
int key)
The following method handles all of the key events that occurs when a user enters values from the keyboard. |
void |
NumericButton(int i)
This method is called whenever a numeric button (0-9) is pushed. |
void |
OperatorButton(int i)
|
| Methods inherited from class csdk.v1_0.helper.AbstractCSDKWindowApplication |
|---|
addWindow, closeDependentWindows, getApplicationFrame, onApplicationEnd, onApplicationStart, removeWindow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface csdk.v1_0.api.core.IContext |
|---|
isActive, onContextActivate, onContextDeactivate |
| Field Detail |
|---|
public static final int OpMinus
public static final int OpMultiply
public static final int OpPlus
public static final int OpDivide
public static final int OpMPlus
public static final int OpMClear
public static final int OpMR
| Constructor Detail |
|---|
public SimpleCalculator(ICSDKEnvironment csdkInterface)
csdkInterface - interface padrão para o ambiente CSDK.| Method Detail |
|---|
protected void applicationStarted(JFrame frame)
applicationStarted in class AbstractCSDKWindowApplicationpublic boolean canEndApplication()
canEndApplication in interface IApplicationcanEndApplication in class AbstractApplicationpublic JPanel buildPanel()
public void NumericButton(int i)
i - The pushed buttompublic void OperatorButton(int i)
i - operationpublic void DecimalButton()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListener
public boolean keyDown(Event evt,
int key)
evt - eventkey - key
protected void applicationEnded()
applicationEnded in class AbstractCSDKWindowApplication
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||