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) |
|
||||||||||||||||
|
00033 {
00034 this(u, name, param, false, true);
00035 }
|
|
||||||||||||||||||||||||
|
00040 {
00041 super(new JFrame(), "FuncParamEditor", modal);
00042 doInit(u, name, param, resizable);
00043 }
|
|
|
00050 {
00051 setVisible(true);
00052 }
|
|
|
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 }
|
|
|
00089 {
00090 if (e.getStateChange() == ItemEvent.SELECTED) {
00091 selString = (String)e.getItem();
00092 }
00093 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001