Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ObjCryst::WXFieldName Class Reference

A field with the name of a WXCrystObj. More...

#include <wxCryst.h>

Inheritance diagram for ObjCryst::WXFieldName::

ObjCryst::WXField ObjCryst::WXCrystObjBasic List of all members.

Public Methods

 WXFieldName (wxWindow *parent, const string &label, WXCrystObj *owner, const int field_id, const int hsize=50, bool isEditable=true)
void OnUpdateUI (wxUpdateUIEvent &WXUNUSED(event))
 UpdateUI does not grab new values in the underlying object, but only updates the values which have been supplied.

void OnEnter (wxCommandEvent &event)
 When a new value is entered (must type it and then hit the 'enter' key). The Field reads the new value, then forwards the event to its owner, who will take care of anything that must be done.

void SetValue (const string &)
 This posts an UpdateUI event.

const string GetValue () const
 Get the current name.

virtual void CrystUpdate ()
 This does nothing. Updates should be done by the owner in the particular case of names.

void Revert ()
 After a user entry, this allows to go back to the last value, if for some reason the entry was rejected (because the object is currently busy, ...).


Protected Attributes

WXCrystObjmpWXObj
 The WXCrystObj whose name is shown here.

wxString mValue
 Last name displayed.

wxTextCtrl * mpField
 The text window.

wxString mValueOld
 Last name displayed, before the value was changed by the user. Not used yet, could be useful for undo.


Detailed Description

A field with the name of a WXCrystObj.

Updating must be done by the WXCrystObj owner.


The documentation for this class was generated from the following file:
Generated on Wed Nov 14 19:48:38 2001 for ObjCryst++ by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001