JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
JTEKeyHandler Class Referenceabstract

#include <JTEKeyHandler.h>

Inheritance diagram for JTEKeyHandler:
[legend]

Public Member Functions

 JTEKeyHandler ()
 
virtual ~JTEKeyHandler ()
 
virtual bool HandleKeyPress (const JUtf8Character &c, const bool selectText, const JTextEditor::CaretMotion motion, const bool deleteToTabStop)=0
 
virtual void Initialize (JTextEditor *te)
 

Protected Member Functions

JTextEditorGetTE () const
 
void InsertKeyPress (const JUtf8Character &c)
 
void BackwardDelete (const bool deleteToTabStop, JString *text=nullptr)
 
void ForwardDelete (const bool deleteToTabStop, JString *text=nullptr)
 
void MoveCaretVert (const JInteger deltaLines)
 

Detailed Description

Base class to support processing key presses sent to JTextEditor.

Constructor & Destructor Documentation

◆ JTEKeyHandler()

JTEKeyHandler::JTEKeyHandler ( )

◆ ~JTEKeyHandler()

JTEKeyHandler::~JTEKeyHandler ( )
virtual

Member Function Documentation

◆ BackwardDelete()

void JTEKeyHandler::BackwardDelete ( const bool  deleteToTabStop,
JString text = nullptr 
)
protected

◆ ForwardDelete()

void JTEKeyHandler::ForwardDelete ( const bool  deleteToTabStop,
JString text = nullptr 
)
protected

◆ GetTE()

JTextEditor * JTEKeyHandler::GetTE ( ) const
inlineprotected

◆ HandleKeyPress()

virtual bool JTEKeyHandler::HandleKeyPress ( const JUtf8Character c,
const bool  selectText,
const JTextEditor::CaretMotion  motion,
const bool  deleteToTabStop 
)
pure virtual

◆ Initialize()

void JTEKeyHandler::Initialize ( JTextEditor te)
virtual

This is necessary because the old key handler is deleted in JTextEditor::SetKeyHandler(), after the jnew one is constructed.

Reimplemented in JVIKeyHandler, and JXVIKeyHandler.

◆ InsertKeyPress()

void JTEKeyHandler::InsertKeyPress ( const JUtf8Character c)
protected

◆ MoveCaretVert()

void JTEKeyHandler::MoveCaretVert ( const JInteger  deltaLines)
protected

The documentation for this class was generated from the following files: