Public Member Functions | Public Attributes

fl7::faces::EditBox Class Reference

#include <EditBox.h>

Inheritance diagram for fl7::faces::EditBox:
fl7::faces::Control fl7::faces::Face pl7::console::PromptBox

List of all members.

Public Member Functions

 EditBox (Shell *const shell)
virtual ~EditBox (void)
const cl7::string_typeGetText () const
bool IsReadonly () const
bool IsProtected () const
size_t GetCursorPosition () const
void SetText (const cl7::string_type &text)
void IsReadonly (const bool readonly)
void IsProtected (const bool protected_)
void SetCursorPosition (const size_t cursor_position)
bool IsInIgnoreList (cl7::char_type chr)
void AddToIgnoreList (cl7::char_type chr)
void RemoveFromIgnoreList (cl7::char_type chr)
void ClearIgnoreList ()

Public Attributes

events::EventHandler
< events::EventArgs
OnTextChangedEventHandler
events::EventHandler
< events::EventArgs
OnConfirmEventHandler
friend Shell

Detailed Description

The class for editable text boxes.


Constructor & Destructor Documentation

fl7::faces::EditBox::EditBox ( Shell *const   shell  ) 

Explicit constructor.

fl7::faces::EditBox::~EditBox ( void   )  [virtual]

Destructor.


Member Function Documentation

void fl7::faces::EditBox::AddToIgnoreList ( cl7::char_type  chr  ) 

Adds the given character to the ignore list.

void fl7::faces::EditBox::ClearIgnoreList (  ) 

Clears the ignore list.

size_t fl7::faces::EditBox::GetCursorPosition (  )  const [inline]

Returns the position of the cursor.

const cl7::string_type& fl7::faces::EditBox::GetText (  )  const [inline]

Returns the text of this edit box.

bool fl7::faces::EditBox::IsInIgnoreList ( cl7::char_type  chr  ) 

Checks whether the given character is contained in the ignore list.

bool fl7::faces::EditBox::IsProtected (  )  const [inline]

Returns the flag specifying whether the text within this edit box is protected. If this flag is set to true, you can not edit or copy-and-paste the text.

void fl7::faces::EditBox::IsProtected ( const bool  protected_  )  [inline]

Sets the flag specifying whether the text within this edit box is protected. If this flag is set to true, you can not edit or copy-and-paste the text.

bool fl7::faces::EditBox::IsReadonly (  )  const [inline]

Returns the flag specifying whether the text within this edit box is readonly.

void fl7::faces::EditBox::IsReadonly ( const bool  readonly  )  [inline]

Sets the flag specifying whether the text within this edit box is readonly.

void fl7::faces::EditBox::RemoveFromIgnoreList ( cl7::char_type  chr  ) 

Removes the given character from the ignore list.

void fl7::faces::EditBox::SetCursorPosition ( const size_t  cursor_position  ) 

Sets the position of the cursor.

void fl7::faces::EditBox::SetText ( const cl7::string_type text  ) 

Sets the text of this text box.


Member Data Documentation

Will be called after the text of this edit box has been confirmed.

Will be called after the text of this edit box has been changed.

Reimplemented from fl7::faces::Control.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines