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

FuncDialog Class Reference

List of all members.

Public Methods

 FuncDialog (FuncDialogUser u, String name, Class param)
 FuncDialog (FuncDialogUser u, String name, Class param, boolean modal, boolean resizable)
void pop ()
void actionPerformed (ActionEvent e)
void itemStateChanged (ItemEvent e)

Constructor & Destructor Documentation

FuncDialog::FuncDialog FuncDialogUser    u,
String    name,
Class    param
[inline]
 

00033     {
00034         this(u, name, param, false, true);
00035     }

FuncDialog::FuncDialog FuncDialogUser    u,
String    name,
Class    param,
boolean    modal,
boolean    resizable
[inline]
 

00040     {
00041         super(new JFrame(), "FuncParamEditor", modal);
00042         doInit(u, name, param, resizable);
00043     }


Member Function Documentation

void FuncDialog::pop   [inline]
 

00050     {
00051         setVisible(true);
00052     }

void FuncDialog::actionPerformed ActionEvent    e [inline]
 

00059     {
00060         setVisible(false);
00061 
00062         if (e.getSource() == cancelButton) {
00063             user.handleFuncDialogCancel();
00064         } else {
00065             Object[] objs = new Object[1];
00066             switch (selMode) {
00067                 case BOOLEAN : objs[0] = getBoolean(selString);
00068                                break;
00069                 case COLOR   : objs[0] = getColor(selString);
00070                                break;
00071                 case INT     : objs[0] = getInteger(field.getText());
00072                                break;
00073                 case FLOAT   : objs[0] = getFloat(field.getText());
00074                                break;
00075                 case STRING  : objs[0] = field.getText();
00076                                break;
00077                 default      : objs[0] = null;
00078                                break;
00079             }
00080             user.handleFuncDialogOK(operation, objs);
00081         }
00082     }

void FuncDialog::itemStateChanged ItemEvent    e [inline]
 

00089     {
00090         if (e.getStateChange() == ItemEvent.SELECTED) {
00091             selString = (String)e.getItem();
00092         }
00093     }


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