cern::gp::beans::editors::YesNoEditor Class Reference

Collaboration diagram for cern::gp::beans::editors::YesNoEditor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 YesNoEditor ()
String[] getTags ()
String getJavaInitializationString ()
void setAsText (String text) throws IllegalArgumentException
String getAsText ()

Static Private Attributes

static final String YES = "yes"
static final String NO = "no"
static String[] tagStrings = { YES, NO}

Detailed Description

Editor that interprets a boolean as yes or no choice.

Version:
Revision
1.2
Date
2006/09/25 08:52:36
Author:
Vito Baggiolini

Constructor & Destructor Documentation

cern::gp::beans::editors::YesNoEditor::YesNoEditor (  )  [inline]

Member Function Documentation

String cern::gp::beans::editors::YesNoEditor::getAsText (  )  [inline]

return the boolean property as Text. This method returns a string that corresponds to the boolean value

Returns:
one of the two tags

References NO, and YES.

Referenced by getJavaInitializationString().

String cern::gp::beans::editors::YesNoEditor::getJavaInitializationString (  )  [inline]

used by the IDE for code generation

References getAsText().

String [] cern::gp::beans::editors::YesNoEditor::getTags (  )  [inline]
Returns:
the tags recognized by this editor

References tagStrings.

void cern::gp::beans::editors::YesNoEditor::setAsText ( String  text  )  throws IllegalArgumentException [inline]

Sets the boolean property from a String. This method interprets the string and converts it into a boolean

Parameters:
text must be one of the tags

References NO, and YES.


Member Data Documentation

final String cern::gp::beans::editors::YesNoEditor::NO = "no" [static, private]

Referenced by getAsText(), and setAsText().

String [] cern::gp::beans::editors::YesNoEditor::tagStrings = { YES, NO} [static, private]

Referenced by getTags().

final String cern::gp::beans::editors::YesNoEditor::YES = "yes" [static, private]

the tags recognized by this editor

Referenced by getAsText(), and setAsText().


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

Generated by  doxygen 1.6.2