Feature Showcase : Feature Set & Examples

Use joystick mode

Text Components

ItsNat leverages HTML text field (<input> based) and textarea elements as components. All of them implement the interface ItsNatTextComponent and use javax.swing.text.Document data models (javax.swing.text.PlainDocument by default).

Text based components uses internally the "change" DOM event to update the data model when the user changes the text.

If the component text is changed partially (several characters added, updated or removed) the javax.swing.event.DocumentEvent notifies this incremental change.

The text rendered visually can be changed from the server modifying the document data model directly or calling to ItsNatTextComponent.setText(String) (this method is a shortcut of several calls to the data model), the data model change is detected by the component and the new text is sent to the client to update the HTML control (updating the value property).