|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.GUI.Program
public class Program
Program A Program includes all program data. It is composed of: name, description, constants, types, functions. All programs include primitive types, must types (input, output, etc.) and must functions (output). A program renders itself by the generateCode() method. Initialize with: Program(name, description)
Field Summary | |
---|---|
javax.swing.DefaultListModel |
constants
|
javax.swing.DefaultListModel |
functions
|
java.lang.Object |
globalLock
|
java.lang.String |
outputFilename
|
ProgramDocument |
programDesc
|
ProgramDocument |
programDoc
|
ProgramDocument |
programName
|
javax.swing.DefaultListModel |
types
|
Constructor Summary | |
---|---|
Program(java.lang.String name,
java.lang.String description)
Create a new Program |
Method Summary | |
---|---|
java.lang.String |
generateCode()
Generate and get the whole program code |
void |
init(java.lang.String name,
java.lang.String description)
Initialize program. |
void |
setCodePanel(CodeWndPanel c)
Update code panel where this program will be shown |
java.lang.String |
toString()
Get the string representation |
void |
updateDoc()
Update the program Document object with the program code Also, if shown in a window, take care of restoring the position |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ProgramDocument programName
public ProgramDocument programDesc
public ProgramDocument programDoc
public javax.swing.DefaultListModel types
public javax.swing.DefaultListModel constants
public javax.swing.DefaultListModel functions
public java.lang.String outputFilename
public java.lang.Object globalLock
Constructor Detail |
---|
public Program(java.lang.String name, java.lang.String description)
name
- Program namedescription
- Program description (commented)Method Detail |
---|
public void init(java.lang.String name, java.lang.String description)
name
- Program namedescription
- Program description (commented)public java.lang.String generateCode()
public java.lang.String toString()
toString
in class java.lang.Object
public void setCodePanel(CodeWndPanel c)
public void updateDoc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |