Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## waba.ui
Class Calculator

    java.lang.Object
      |
      +--waba.ui.Control
            |
            +--waba.ui.Container
                  |
                  +--waba.ui.Window
                        |
                        +--waba.ui.Calculator

public class Calculator
extends Window

This class is used by the Edit class when its type is CURRENCY and displays a calculator with the four basic operations and a numeric pad. The user can paste the value entered or the total value.

Fields inherited from class waba.ui.Window
`beepIfOut, borderStyle, canDrag, eraseBackgroundNow, flicker, HIDE_STATE, highResPrepared, imgCovered, lastSwappedContainer, mainSwapContainer, menubar, needsPaint, NO_BORDER, RECT_BORDER, ROUND_BORDER, TAB_BORDER, TAB_ONLY_BORDER, title, titleFont, topMost, VK_BOTTOM, VK_HIDE, VK_TOP, zStack`

Fields inherited from class waba.ui.Container
`BORDER_LOWERED, BORDER_NONE, BORDER_RAISED, BORDER_SIMPLE, children, lastH, lastW, lastX, lastY, parentWindow, tail`

Fields inherited from class waba.ui.Control
`AFTER, appId, asContainer, asWindow, backColor, backDis, BEFORE, BOTTOM, CENTER, enabled, FILL, FIT, fm, fmH, focusLess, font, foreColor, foreDis, height, LEFT, parent, PREFERRED, RANGE, RIGHT, SAME, TOP, visible, width, x, x2, y, y2`

Constructor Summary
`Calculator()`

Method Summary
`void` | `clear(boolean requestFocusOnOper1)` Clears everything in this calculator.
`String` | `getAnswer()` Gets the answer that the user selected to be pasted.
`void` | `onEvent(Event event)` Called to process key, pen, control and other posted events.
`void` | `onPopup()` Placeholder called imediatly before the popup began. the default implementation does nothing.
`void` | `onStart()` Called when this container can be initialized
`void` | `onUnpop()` Placeholder called imediatly before the unpop began. the default implementation does nothing.
`void` | `postPopup()` Placeholder called after the popup is done and after the repaint of this window. the default implementation does nothing.

Methods inherited from class waba.ui.Window
`_doPaint, _doPaint, _postEvent, damageRect, destroyZStack, dontSaveBehind, getClientRect, getFocus, getOffScreen, getPreferredHeight, getPreferredWidth, getTopMost, isTopMost, isVisible, loadBehind, makeUnmovable, onClickedOutside, paintTitle, popupBlockingModal, popupMenuBar, popupModal, postUnpop, pumpEvents, saveBehind, setBorderStyle, setDoubleBuffer, setFocus, setMenuBar, setStatePosition, setTitle, setTitleFont, swap, unpop`

Methods inherited from class waba.ui.Container
`add, add, add, broadcastEvent, findChild, getChildren, onColorsChanged, onPaint, paintChildren, remove, setEnabled`

Methods inherited from class waba.ui.Control
`addTimer, contains, createGraphics, getAbsoluteRect, getBackColor, getFont, getFontMetrics, getForeColor, getNext, getParent, getParentWindow, getPos, getRect, getSize, isDisplayed, isEnabled, onBoundsChanged, onFontChanged, onWindowPaintFinished, postEvent, removeTimer, repaint, repaintNow, requestFocus, setBackColor, setBackForeColors, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setVisible`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, toString, wait, wait`

Constructor Detail

### Calculator

    public Calculator()

Method Detail

### onStart

    public void onStart()

  Description copied from class: Container
  Called when this container can be initialized
  Overrides:
    onStart in class Container

### getAnswer

    public String getAnswer()

  Gets the answer that the user selected to be pasted. It can be the first operator, the total computed or null if canceled

### clear

    public void clear(boolean requestFocusOnOper1)

  Clears everything in this calculator. If you call it with (true) before the window is popped up, a trash will appear when the window is unpopped.

### onUnpop

    public void onUnpop()

  Description copied from class: Window
  Placeholder called imediatly before the unpop began. the default implementation does nothing.
  Overrides:
    onUnpop in class Window

### onPopup

    public void onPopup()

  Description copied from class: Window
  Placeholder called imediatly before the popup began. the default implementation does nothing.
  Overrides:
    onPopup in class Window

### postPopup

    public void postPopup()

  Description copied from class: Window
  Placeholder called after the popup is done and after the repaint of this window. the default implementation does nothing.
  Overrides:
    postPopup in class Window

### onEvent

    public void onEvent(Event event)

  Description copied from class: Control
  Called to process key, pen, control and other posted events.
  Overrides:
    onEvent in class Control
  Tags copied from class: Control
  Parameters:
    `event` - the event to process
  See Also:
    `Event`, `KeyEvent`, `PenEvent`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD