Skip to content

Provide API to write custom TextInputControls #173

Description

@FlorianKirmaier

Some Controls can't implement the public TextInputControl interface.
But it would still like to be handled like TextInputControls from JPro.

We could provide an interface that the Control could implement to achieve this.

interface JProTextInputControl {
	void setText(String)
	IntegerProperty selectionStartProperty()
	IntegerProperty selectionEndProperty()
	IntegerProperty caretPosition()
}



class CustomTextInputControl implements JProTextInputControl {
	if(!WebAPI.isBrowser) {
	    < add TextInput Shortcuts>
	}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions