PoXtEditTextData Class Reference
[Dialog]

VSG extension Class to define an editable text. More...

#include <Inventor/dialog/PoXtEditTextData.h>

Inheritance diagram for PoXtEditTextData:
PoXtElementData

List of all members.

Public Member Functions

 PoXtEditTextData (const SbString &label="", const SbString &defaultString="", int numCharToRead=10)
virtual ~PoXtEditTextData ()
SoNONUNICODE void setLabel (const char *label)
void setLabel (const SbString &label)
SbString getLabel () const
SoNONUNICODE void setString (const char *label)
void setString (const SbString &label)
SbString getString () const
void setNumCharToRead (int number)
int getNumCharToRead () const
virtual TypeXtElement getType () const
virtual PoXtElementDatacopy () const

Detailed Description

VSG extension Class to define an editable text.

This element is composed of a label on the left and by an editable text on the right. By default the text of the label and of the editable text are empty strings and the number of characters to read is 10.

Deprecated:

Deprecated since Open Inventor 8000
Please use DialogViz classes for new development.

Constructor & Destructor Documentation

PoXtEditTextData::PoXtEditTextData ( const SbString label = "",
const SbString defaultString = "",
int  numCharToRead = 10 
)

Constructor.

virtual PoXtEditTextData::~PoXtEditTextData (  )  [virtual]

Destructor.


Member Function Documentation

virtual PoXtElementData* PoXtEditTextData::copy (  )  const [virtual]

Creates and returns a new Xt element which is a copy of this Xt element.

Implements PoXtElementData.

SbString PoXtEditTextData::getLabel (  )  const

Gets the text of the label on the left of editable text.

int PoXtEditTextData::getNumCharToRead (  )  const

Gets the number of character to read.

SbString PoXtEditTextData::getString (  )  const

Gets the string of the editable text.

virtual TypeXtElement PoXtEditTextData::getType (  )  const [virtual]

Returns the type of the Xt element.

Reimplemented from PoXtElementData.

void PoXtEditTextData::setLabel ( const SbString label  ) 

Sets the text of the label on the left of editable text.

SoNONUNICODE void PoXtEditTextData::setLabel ( const char *  label  ) 

Sets the text of the label on the left of editable text.

Non Unicode List:
This function should not be used in a Unicode application.
void PoXtEditTextData::setNumCharToRead ( int  number  ) 

Sets the number of character to read.

When the enter key is pressed or when the number of characters to read is reached, this element triggers the corresponding callback .

void PoXtEditTextData::setString ( const SbString label  ) 

Sets the string of the editable text.

SoNONUNICODE void PoXtEditTextData::setString ( const char *  label  ) 

Sets the string of the editable text.

Non Unicode List:
This function should not be used in a Unicode application.

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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/