Public Member Functions | |
| void | Initialize () |
| void | EventsLoop () |
| void | dispose () |
| boolean | IsEnabled () |
| void | PutString (final String Str) |
Package Functions | |
| SciGUIConsole () | |
Private Attributes | |
| Display | display |
| Shell | shell |
| Text | textouput |
| Text | textinput |
| boolean | IsEnabled |
Definition at line 7 of file SciGUIConsole.java.
| SciGUIConsole::SciGUIConsole | ( | ) | [inline, package] |
Definition at line 15 of file SciGUIConsole.java.
References IsEnabled().
00016 { 00017 IsEnabled=false; 00018 }
Here is the call graph for this function:
| void SciGUIConsole::Initialize | ( | ) | [inline] |
Definition at line 20 of file SciGUIConsole.java.
References display, shell, textinput, and textouput.
00021 { 00022 display = new Display( ); 00023 shell = new Shell(display); 00024 shell.pack (); 00025 shell.setSize(620,520); 00026 shell.setText("Scilab 5.0"); 00027 00028 textouput = new Text(shell, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER | SWT.WRAP |SWT.READ_ONLY); 00029 textouput.setBounds(10,10,600,230); 00030 00031 textinput = new Text(shell, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER); 00032 textinput.setBounds(10,275,600,200); 00033 00034 textinput.addTraverseListener(new TraverseListener() { 00035 public void keyTraversed(TraverseEvent e) { 00036 if (e.detail == SWT.TRAVERSE_RETURN ) 00037 { 00038 System.out.println (textinput.getText()); 00039 textinput.setText(""); 00040 System.out.println ("number lines: "+textinput.getLineCount()); 00041 00042 } 00043 } 00044 }); 00045 00046 shell.open( ); 00047 IsEnabled=true; 00048 00049 00050 00051 }
| void SciGUIConsole::EventsLoop | ( | ) | [inline] |
| void SciGUIConsole::dispose | ( | ) | [inline] |
Definition at line 62 of file SciGUIConsole.java.
References display.
00063 { 00064 display.dispose( ); 00065 }
| boolean SciGUIConsole::IsEnabled | ( | ) | [inline] |
Definition at line 67 of file SciGUIConsole.java.
Referenced by SciGUIConsole().
00068 { 00069 return IsEnabled; 00070 }
Here is the caller graph for this function:
| void SciGUIConsole::PutString | ( | final String | Str | ) | [inline] |
Display SciGUIConsole::display [private] |
Shell SciGUIConsole::shell [private] |
Text SciGUIConsole::textouput [private] |
Text SciGUIConsole::textinput [private] |
boolean SciGUIConsole::IsEnabled [private] |
Definition at line 13 of file SciGUIConsole.java.
1.5.1