Horus Doc || Java GUI Reference || Doxygen's quick Index  

BpoProperties Class Reference

Inheritance diagram for BpoProperties::

PropertyDialog List of all members.

Public Methods

 BpoProperties ()
void show ()
String getText ()
void onOk ()

Public Attributes

String bpoName
String tagName
int tagValue
JTextField bpoField
JTextField nameField
JTextField valueField

Constructor & Destructor Documentation

BpoProperties::BpoProperties   [inline]
 

00187     {
00188         super("Bpo properties");
00189 
00190         bpoField = new JTextField(30);
00191         nameField = new JTextField(30);
00192         valueField = new JTextField(30);
00193         addPair("Bpo name:", bpoField);
00194         addPair("Tag name:", nameField);
00195         addPair("Tag value:", valueField);
00196     }


Member Function Documentation

void BpoProperties::show   [inline]
 

Reimplemented from PropertyDialog.

00199     {
00200         bpoField.setText(bpoName);
00201         nameField.setText(tagName);
00202         valueField.setText(""+tagValue);
00203         super.show();
00204     }

String BpoProperties::getText   [inline, virtual]
 

Reimplemented from PropertyDialog.

00207     {
00208         return bpoName;
00209     }

void BpoProperties::onOk   [inline, virtual]
 

Reimplemented from PropertyDialog.

00212     {
00213         bpoName = bpoField.getText();
00214         try {
00215             tagValue = Integer.parseInt(valueField.getText());
00216             tagName = nameField.getText();
00217         }
00218         catch(NumberFormatException e) {
00219             ErrorStreamArea.println("Not a number");
00220             tagName = "";
00221         }
00222     }


Member Data Documentation

String BpoProperties::bpoName
 

String BpoProperties::tagName
 

int BpoProperties::tagValue
 

JTextField BpoProperties::bpoField
 

JTextField BpoProperties::nameField
 

JTextField BpoProperties::valueField
 


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:13 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001