JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

expand all

Profile: desktop, common

Overview

This node specifies an input-control for a position on a tape. It contains a label and a textbox

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicfiniteAutomateBoolean

determine if the transition is a transition of an finite automaton or not

public-readhasErrorBoolean

inidcates if the node has input errors

public-readinputTextBox

the textbox for this node

public-initonTextChangedfunction():Void

a callback function wich is invoked if the text changes

publictextString

the current value of the textbox ( use this only to set the current value of the textbox, to retrieve the Transiation, use getTransition() instead), forces validation on update

Inherited Variables

Function Summary

protected create() : javafx.scene.Node
Returns
Node
 
public forceValidation() : Boolean

forces validation of the node

forces validation of the node

Returns
Boolean
 
public getTransition(blankSymbol: char) : org.TMSIM.Model.Transition

returns the transition of the node if there are no input errors, otherwise it throws an Exception

returns the transition of the node if there are no input errors, otherwise it throws an Exception

Parameters
blankSymbol
the blanksymbol of the TM
Returns
Transition
the Transition of the node
 
public setTransition(transition: org.TMSIM.Model.Transition, isFiniteAutomate: Boolean) : java.lang.String

sets the transition of the node

sets the transition of the node

Parameters
transition
the transition to set
isFiniteAutomate
isFiniteAutomate
Returns
String
 
validateInput() : Boolean

checks the node for input-errors Regex if finiteAutomation == true: [A-Za-z0-9](_[A-Za-z0-9]+)?

checks the node for input-errors Regex if finiteAutomation == true: [A-Za-z0-9](_[A-Za-z0-9]+)?[, ]([A-Za-z0-9]|Z_[12])[, ][A-Za-z0-9](_[A-Za-z0-9]+)?[, ][LRS] Regex if finiteAutomation == false: [A-Za-z0-9](_[A-Za-z0-9]+)?[, ]([A-Za-z0-9]|Z_[12])[, ]([A-Za-z0-9]|Z_0)[, ][A-Za-z0-9](_[A-Za-z0-9]+)?[, ]([A-Za-z0-9]|Z_0)[, ][LRS][, ][LRS]

Returns
Boolean
 

Inherited Functions