Class fvaswing.components.calculator.FvCalculatorUI

Description

UI declaration for FvCalculator component.

You can sets / retreives result using the getResult() method or setValue() method.

Field Index

CLASSIC, COMPLETE

Method Index

new FvCalculatorUI()
appendMemory(), getCalculatorType(), getMemory(), getResult(), setCalculatorType(), setMemory(), setValue(), toString()

Constructor Detail

FvCalculatorUI

public function FvCalculatorUI()

Constructor.

Field Detail

CLASSIC

static public CLASSIC:Number
Display a classic calculator UI.

COMPLETE

static public COMPLETE:Number
Display a complete calculator UI.

Method Detail

setValue

public function setValue(n:Number):Void

Apply n number into result field.

getResult

public function getResult():Number

Returns current number in result field.

setMemory

public function setMemory(n:Number):Void

Stores passed-in n value in memory.

appendMemory

public function appendMemory(n:Number):Void

Adds passed-in n value to memory.

getMemory

public function getMemory():Number

Returns the current memory value.

setCalculatorType

public function setCalculatorType(type:Number):Void

getCalculatorType

public function getCalculatorType():Number

toString

public function toString():String

Returns string representation.