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

UpoProperties Class Reference

Inheritance diagram for UpoProperties::

PropertyDialog List of all members.

Public Methods

 UpoProperties ()
void show ()
String getText ()
void onOk ()

Public Attributes

String upoName
String tagName
int tagValue

Constructor & Destructor Documentation

UpoProperties::UpoProperties   [inline]
 

00178     {
00179         super("Upo properties");
00180 
00181         upoField = new JTextField(30);
00182         nameField = new JTextField(30);
00183         valueField = new JTextField(30);
00184         addPair("Upo name:", upoField);
00185         addPair("Tag name:", nameField);
00186         addPair("Tag value:", valueField);
00187     }


Member Function Documentation

void UpoProperties::show   [inline]
 

Reimplemented from PropertyDialog.

00190     {
00191         upoField.setText(upoName);
00192         nameField.setText(tagName);
00193         valueField.setText(""+tagValue);
00194 
00195         super.show();
00196     }

String UpoProperties::getText   [inline, virtual]
 

Reimplemented from PropertyDialog.

00199     {
00200         return upoName;
00201     }

void UpoProperties::onOk   [inline, virtual]
 

Reimplemented from PropertyDialog.

00204     {
00205         upoName = upoField.getText();
00206         try {
00207             tagValue = Integer.parseInt(valueField.getText());
00208             tagName = nameField.getText();
00209         }
00210         catch(NumberFormatException e) {
00211             ErrorStreamArea.println("Not a number");
00212             tagName = null;
00213         }
00214     }


Member Data Documentation

String UpoProperties::upoName
 

String UpoProperties::tagName
 

int UpoProperties::tagValue
 


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