Calculator_Widget

${tags}

Author

martin.krischik

Since

1.0

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
protected open class Service_Connection
connection to service

Properties

Link copied to clipboard
private val Alpha_Text: Array<Array<Short>>
Text to be displayed on the calculator display.
Link copied to clipboard
connection to service
Link copied to clipboard
Handle property changes.
Link copied to clipboard
private val TAG: String
TAG as class name for logging

Functions

Link copied to clipboard
Add a PropertyChangeListener to the listener list.
open fun addPropertyChangeListener(propertyName: String, listener: PropertyChangeListener)
Add a PropertyChangeListener for a specific property.
Link copied to clipboard
open fun bindCPUThread(CPU_Thread: Thread)
Set calculator Thread so the canvas can wake up the calculator after key / touch screen clicks.
Link copied to clipboard
open fun displayException(Exception: Throwable)
display additional information on the error.
Link copied to clipboard
open fun getDisplayText(row: Int): Array<Short>
Link copied to clipboard
Set the indicators (Shift, Alpha, Deg, Grad, Gra, etc.
Link copied to clipboard
open fun getJavaText(): String
open fun getJavaText(row: Int): String
Link copied to clipboard
open fun getPressedKey(): Short
Get calculator key code of the currently pressed key.
Link copied to clipboard
open fun getReadKey(): Short
Get calculator key code of the last key (de)pressed.
Link copied to clipboard
Check if a calculator key code is available
Link copied to clipboard
open fun onUpdate(context: Context, appWidgetManager: AppWidgetManager, appWidgetIds: Array<Int>)
Called in response to the ACTION_APPWIDGET_UPDATE broadcast when this AppWidget provider is being asked to provide RemoteViews for a set of AppWidgets.
Link copied to clipboard
Remove a PropertyChangeListener from the listener list.
Remove a PropertyChangeListener for a specific property.
Link copied to clipboard
open fun setDisplayText(Row: Int, Text: Array<Short>)
Set text to be displayed (calculator alpha codes).
Link copied to clipboard
open fun setIndicators(Indicators: Array<Boolean>)
Set the indicators (Shift, Alpha, Deg, Grad, Gra, etc.
Link copied to clipboard
open fun setJavaText(Text: String)
Set text to be displayed (java string).
Link copied to clipboard
open fun setOnOff(on: Boolean)
set the calculators on of status.
Link copied to clipboard
open fun setPressedKey(i: Short)
Link copied to clipboard
open fun setReadKey(i: Short)
Link copied to clipboard
open fun toggleHelp()
Toggle Keyboard help on and off