home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78a98.iso
/
Internet
/
Javadraw
/
DATA.Z
/
Objects.vis
< prev
next >
Wrap
INI File
|
1997-09-12
|
28KB
|
1,029 lines
[Allevents]
\?onClick\if ((e.target instanceof T\Name\) & (e.id == Event.ACTION_EVENT)) { return \onClick\ (e); }\-\
\?onKeyPress\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
\?onKeyRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
\?onGotFocus\if ((e.target instanceof T\Name\) & (e.id == Event.GOT_FOCUS)) { return \onGotFocus\ (e); }\-\
\?onKeyAction\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_ACTION)) { return \onKeyAction\ (e); }\-\
\?onKeyActionRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_ACTION_RELEASE)) { return \onKeyActionRelease\ (e); }\-\
\?onListDeselect\if ((e.target instanceof T\Name\) & (e.id == Event.LIST_DESELECT)) { return \onListDeselect\ (e); }\-\
\?onListSelect\if ((e.target instanceof T\Name\) & (e.id == Event.LIST_SELECT)) { return \onListSelect\ (e); }\-\
\?onLoadFile\if ((e.target instanceof T\Name\) & (e.id == Event.LOAD_FILE)) { return \onLoadFile\ (e); }\-\
\?onLostFocus\if ((e.target instanceof T\Name\) & (e.id == Event.LOST_FOCUS)) { return \onLostFocus\ (e); }\-\
\?onMouseDown\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_DOWN)) { return \onMouseDown\ (e); }\-\
\?onMouseDrag\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_DRAG)) { return \onMouseDrag\ (e); }\-\
\?onMouseEnter\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_ENTER)) { return \onMouseEnter\ (e); }\-\
\?onMouseExit\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_EXIT)) { return \onMouseExit\ (e); }\-\
\?onMouseMove\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_MOVE)) { return \onMouseMove\ (e); }\-\
\?onMouseUp\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_UP)) { return \onMouseUp\ (e); }\-\
\?onSaveFile\if ((e.target instanceof T\Name\) & (e.id == Event.SAVE_FILE)) { return \onSaveFile\ (e); }\-\
\?onScrollAbsolute\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_ABSOLUTE)) { return \onScrollAbsolute\ (e); }\-\
\?onScrollLineDown\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_LINE_DOWN)) { return \onScrollLineDown\ (e); }\-\
\?onScrollLineUp\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_LINE_UP)) { return \onScrollLineUp\ (e); }\-\
\?onScrollPageDown\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_PAGE_DOWN)) { return \onScrollPageDown\ (e); }\-\
\?onScrollPageUp\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_PAGE_UP)) { return \onScrollPageUp\ (e); }\-\
\?onWindowDeiconify\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_DEICONIFY)) { return \onWindowDeiconify\ (e); }\-\
\?onWindowDestroy\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_DESTROY)) { return \onWindowDestroy\ (e); }\-\
\?onWindowExpose\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_EXPOSE)) { return \onWindowExpose\ (e); }\-\
\?onWindowIconify\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_ICONIFY)) { return \onWindowIconify\ (e); }\-\
\?onWindowMoved\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_MOVED)) { return \onWindowMoved\ (e); }\-\
[Events]
FocusGained=FocusEvent
FocusLost=FocusEvent
ComponentHidden=ComponentEvent
ComponentMoved=ComponentEvent
ComponentResized=ComponentEvent
ComponentShown=ComponentEvent
CharUndefined=KeyEvent
KeyPressed=KeyEvent
KeyReleased=KeyEvent
KeyTyped=KeyEvent
MouseClicked=MouseEvent
MouseDragged=MouseEvent
MouseEntered=MouseEvent
MouseExited=MouseEvent
MouseMoved=MouseEvent
MousePressed=MouseEvent
MouseReleased=MouseEvent
[EventNameChanges]
onGotFocus=focusGained
onLostFocus=focusLost
onKeyPress=keyPressed
onKeyRelease=keyReleased
onClick=mouseClicked
onMouseDrag=mouseDragged
onMouseEnter=mouseEntered
onMouseExit=mouseExited
onMouseMove=mouseMoved
onMouseDown=mousePressed
onMouseUp=mouseReleased
[Visualmain]
Background=lightGray
Constraints=
Foreground=darkGray
Height=300
Left=
Name=
Top=
Width=450
Layout=
[Visualmain.Properties]
Background=java.awt.Color
Constraints=Hidden
Foreground=java.awt.Color
Height=int
Left=int
Name=Name
Top=int
Width=int
Layout=LayoutManager
[Visualmain.Eventlist]
FocusGained=
FocusLost=
componentHidden=
componentMoved=
componentResized=
componentShown=
charUndefined=
keyPressed=
keyReleased=
keyTyped=
mouseClicked=
mouseDragged=
mouseEntered=
mouseExited=
mouseMoved=
mousePressed=
mouseReleased=
[Visualmain.Init]
1=setBackground (\Background\); setForeground (\Foreground\);
2=setSize (\Width\,\Height\);
3=\?Layout\setLayout (new \Layout\);\-\
4=\?!Layout\setLayout (null);\-\
[Visualmain.Events]
1=\?focusGained\if ((e.target == this) && (e.id == Event.GOT_FOCUS)) { return \focusGained\ (e); }\-\
2=\?keyPressed\if ((e.target == this) && (e.id == Event.KEY_PRESS)) { return \keyPressed\ (e); }\-\
3=\?keyReleased\if ((e.target == this) && (e.id == Event.KEY_RELEASE)) { return \keyReleased\ (e); }\-\
4=\?focusLost\if ((e.target == this) && (e.id == Event.LOST_FOCUS)) { return \focusLost\ (e); }\-\
5=\?mousePressed\if ((e.target == this) && (e.id == Event.MOUSE_DOWN)) { return \mousePressed\ (e); }\-\
6=\?mouseMoved\if ((e.target == this) && (e.id == Event.MOUSE_MOVE)) { return \mouseMoved\ (e); }\-\
7=\?mouseReleased\if ((e.target == this) && (e.id == Event.MOUSE_UP)) { return \mouseReleased\ (e); }\-\
[Visualmain.ComponentEvents]
1=\?componentHidden\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_HIDDEN)) { \componentHidden\ (e); }\-\
2=\?componentMoved\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_MOVED)) { \componentMoved\ (e); }\-\
3=\?componentResized\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_RESIZED)) { \componentResized\ (e); }\-\
4=\?componentShown\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_SHOWN)) { \componentShown\ (e); }\-\
[Visualmain.FocusEvents]
1=\?focusGained\if ((e.getSource()==this)&&(e.getID()==FocusEvent.FOCUS_GAINED)) { \focusGained\ (e); }\-\
2=\?focusLost\if ((e.getSource()==this)&&(e.getID()==FocusEvent.FOCUS_LOST)) { \focusLost\ (e); }\-\
[Visualmain.KeyEvents]
1=\?charUndefined\if ((e.getSource()==this)&&(e.getID()==KeyEvent.CHAR_UNDEFINED)) { \charUndefined\ (e); }\-\
2=\?keyPressed\if ((e.getSource()==this)&&(e.getID()==KeyEvent.KEY_PRESSED)) { \keyPressed\ (e); }\-\
3=\?keyReleased\if ((e.getSource()==this)&&(e.getID()==KeyEvent.KEY_RELEASED)) { \keyReleased\ (e); }\-\
4=\?keyTyped\if ((e.getSource()==this)&&(e.getID()==KeyEvent.KEY_TYPED)) { \keyTyped\ (e); }\-\
[Visualmain.MouseEvents]
1=\?mouseClicked\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_CLICKED)) { \mouseClicked\ (e); }\-\
2=\?mouseEntered\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_ENTERED)) { \mouseEntered\ (e); }\-\
3=\?mouseExited\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_EXITED)) { \mouseExited\ (e); }\-\
4=\?mousePressed\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_PRESSED)) { \mousePressed\ (e); }\-\
5=\?mouseReleased\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_RELEASED)) { \mouseReleased\ (e); }\-\
[Visualmain.MouseMotionEvents]
1=\?mouseDragged\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_DRAGGED)) { \mouseDragged\ (e); }\-\
2=\?mouseMoved\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_MOVED)) { \mouseMoved\ (e); }\-\
[Label]
_layed_out=
_constraints_4_add=
Background=lightGray
Caption=ALabel
Constraints=
Font=java.awt.Font("Dialog",Font.PLAIN,10)
Foreground=black
Height=25
Left=10
Name=
Owner=
Parent=
Top=10
Width=75
[Label.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
Caption=java.lang.String
Constraints=Constraints
Font=java.awt.Font
Foreground=java.awt.Color
Height=int
Left=int
Name=Name
Owner=java.lang.String
Parent=java.lang.String
Top=int
Width=int
[Label.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[Label.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[Label.Class]
1=Label \Name\ = new Label ("\Caption\")\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[Label.Init]
1=\Name\.setFont (new \Font\);
2=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
3=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\",\-\ \Name\);
[Label.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);\-\
[Button]
_layed_out=
_constraints_4_add=
Background=lightGray
Caption=AButton
Constraints=
Foreground=black
Left=10
Name=
Owner=
Parent=
Top=10
Height=25
Width=75
[Button.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
Caption=java.lang.String
Constraints=Constraints
Foreground=java.awt.Color
Left=int
Name=Name
Owner=java.lang.String
Parent=java.lang.String
Top=int
Height=int
Width=int
[Button.Class]
1=Button \Name\ = new Button ("\Caption\")\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[Button.Init]
1=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
2=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\);
[Button.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);\-\
[Button.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[Button.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[Button.Events]
1=\?onClick\if ((e.target instanceof Button) && (e.equals ("\Caption\")) & (e.id == Event.ACTION_EVENT)) {return \onClick\ (e); }\-\
2=\?onKeyPress\if ((e.target instanceof Button) && (e.equals ("\Caption\")) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
3=\?onKeyRelease\if ((e.target instanceof Button) && (e.equals ("\Caption\")) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
[CheckboxGroup]
Height=0
Left=0
Name=
Owner=
Parent=
Top=0
Width=0
[CheckboxGroup.Properties]
Height=Hidden
Left=Hidden
Name=Name
Owner=Hidden
Parent=Hidden
Top=Hidden
Width=Hidden
[CheckboxGroup.Class]
1=CheckboxGroup \Name\ = new CheckboxGroup ();
[Checkbox]
_layed_out=
_constraints_4_add=
Background=lightGray
Caption=ACheckbox
Constraints=
Checked=false
Foreground=black
Group=
Height=12
Left=10
Name=
Owner=
Parent=
Top=10
Width=100
[Checkbox.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
Caption=java.lang.String
Constraints=Constraints
Checked=boolean
Foreground=java.awt.Color
Group=java.lang.String
Height=int
Left=int
Name=Name
Owner=java.lang.String
Parent=java.lang.String
Top=int
Width=int
[Checkbox.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[Checkbox.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[Checkbox.Class]
1=Checkbox \Name\ = new Checkbox ("\Caption\")\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[Checkbox.class.tmp]
1=\?Group\>CheckboxGroup \Group\\-\
2=Checkbox \Name\ = new Checkbox ("\Caption\");
[Checkbox.Init]
1=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
2=\Name\.setState (\Checked\);
3=\?Group\\Name\.setCheckboxGroup (\Group\);\-\
4=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\);
[Checkbox.Init.tmp]
1=add (\Name\);
2=\?Owner=VISUALWINNAME\\Name\.setState (\Checked\);\-\
[Checkbox.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);\-\
[Checkbox.Events]
1=\?onClick\if ((e.target instanceof Checkbox) && (e.equals ("\Caption\")) & (e.id == Event.ACTION_EVENT)) { return \onClick\ (e); }\-\
2=\?onKeyPress\if ((e.target instanceof Checkbox) && (e.equals ("\Caption\")) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
3=\?onKeyRelease\if ((e.target instanceof Checkbox) && (e.equals ("\Caption\")) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
[TextField]
_layed_out=
_constraints_4_add=
Background=white
Columns=11
Constraints=
Foreground=black
Height=22
Left=10
Name=
Owner=
Parent=
Text=ATextField
Top=10
Width=110
[TextField.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
Columns=int
Constraints=Constraints
Foreground=java.awt.Color
Height=int
Left=int
Name=Name
Owner=java.lang.String
Parent=java.lang.String
Text=java.lang.String
Top=int
Width=int
[TextField.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[TextField.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[TextField.Class]
1=TextField \Name\ = new TextField ("\Text\", \Columns\)\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[TextField.Init]
1=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
2=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\);
[TextField.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);\-\
[TextField.Events]
1=\?onKeyPress\if ((e.target instanceof TextField) && (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
2=\?onKeyRelease\if ((e.target instanceof TextField) && (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
[TextArea]
_layed_out=
_constraints_4_add=
Background=white
Columns=15
Constraints=
Foreground=black
Height=200
Left=150
Name=
Owner=
Parent=
Rows=20
Text=ATextArea
Top=10
Width=150
[TextArea.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
Columns=int
Constraints=Constraints
Foreground=java.awt.Color
Height=int
Left=int
Name=Name
Owner=java.lang.String
Parent=java.lang.String
Rows=int
Text=java.lang.String
Top=int
Width=int
[TextArea.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[TextArea.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[TextArea.Class]
1=TextArea \Name\ = new TextArea (\?Text\"\Text\",\-\\Rows\,\Columns\)\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[TextArea.Init]
1=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
2=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\);
[TextArea.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);\-\
[FileDialog]
Caption=Make your choices...
FileDlgMode=LOAD
Left=10
Height=30
Name=
Top=10
Width=30
[FileDialog.Properties]
Caption=java.lang.String
Left=int
Height=Hidden
Name=Name
Top=int
Width=Hidden
[FileDialog.Class]
1=FileDialog \Name\ = new FileDialog (new Frame(),"\Caption\");
[FileDialog.Start]
1=//\Name\.setVisible(true);
[MessageFrame]
CancelButton=false
Caption=A Message occured
Left=10
Name=
NoButton=false
OkButton=true
Text=Information
Top=10
YesButton=false
[MessageFrame.Properties]
CancelButton=boolean
Caption=java.lang.String
Left=int
Name=Name
NoButton=boolean
OkButton=boolean
Text=java.lang.String
Top=int
YesButton=boolean
[MessageFrame.Class]
1=T\Name\ \Name\ = new T\Name\ (new Frame(),\OkButton\,\YesButton\,\NoButton\,\CancelButton\);
[MessageFrame.Start]
1=//\Name\.start("\Text\","\Caption\");
2=//if (\Name\.getResult==?) // ?: 0=OK 1=Yes 2=No 3=Cancel
[MessageFrame.Typedef]
1=class T\Name\ extends Dialog { boolean wrhd; String TheText; int Width; Button Okbu=new Button("OK"); Button Yesbu=new Button("Yes"); Button Nobu=new Button("No"); Button Canbu=new Button("Cancel");
2=int AResult; T\Name\ (Frame AFrame,boolean okbu,boolean yesbu,boolean nobu,boolean canbu) { super(AFrame,true); setResizable (false); wrhd=false; Width=100; if(okbu) { Okbu.setVisible(true); add (Okbu);
3=Okbu.setBounds (Width-50,90,75,25); Width+=100; } if(yesbu) { Yesbu.setVisible(true); add (Yesbu); Yesbu.setBounds (Width-50,90,75,25); Width+=100; } if(nobu) { Nobu.setVisible(true); add (Nobu); Nobu.setBounds (Width-50,90,75,25);
4=Width+=100; } if(canbu) { Canbu.setVisible(true); add (Canbu); Canbu.setBounds (Width-50,90,75,25); Width+=100; } super.setBounds (250,250,Width,150); } public int getResult () { return AResult; } public void paint (Graphics g) { if (!wrhd)
5={ setBounds (250,250,Width-25,150); wrhd=true; } g.setFont (new Font ("TimesRoman",Font.PLAIN,15)); g.drawString (TheText,((Width - (TheText.length()*10))/2),36); super.paint (g); } public int start (String ACaption,String AText)
6={ TheText=AText; wrhd=false; setTitle (ACaption); setVisible (true); return AResult; } public boolean action (Event e,Object o) { switch (e.id) { case Event.ACTION_EVENT: { if ("OK".equals(o)) AResult=0; if ("Yes".equals (o))
7=AResult=1; if ("No".equals (o)) AResult=2; if ("Cancel".equals (o)) AResult=3; super.dispose(); return true; } default: return false; } } }
[FindDialog]
Left=10
Name=
Text=
Top=10
[FindDialog.Properties]
Left=int
Name=Name
Text=java.lang.String
Top=int
[FindDialog.Class]
1=T\Name\ \Name\ = new T\Name\ (new Frame(),"\Text\");
[FindDialog.Start]
1=//\Name\.setVisible(true);
2=//if (\Name\.getSearchtext ().equals ("")) { };
[FindDialog.Typedef]
1=class T\Name\ extends Dialog { Checkbox Cbox1=new Checkbox("Hole word"); Checkbox Cbox2=new Checkbox("Case sensitive"); CheckboxGroup Cbgr1=new CheckboxGroup();
2=Checkbox Cbox3=new Checkbox("Down",Cbgr1,true); Checkbox Cbox4=new Checkbox("Up",Cbgr1,false); CheckboxGroup Cbgr2=new CheckboxGroup();
3=Checkbox Cbox5=new Checkbox("From cursor",Cbgr2,false); Checkbox Cbox6=new Checkbox("Entire text",Cbgr2,true); Button Button1=new Button("Search");
4=TextField TxtFld1=new TextField(); boolean wsrhd;
5=T\Name\ (Frame AFrame,String ASearch) { super(AFrame,"Text search...",true); setBounds (50,50,420,150); wsrhd=false; add(Cbox1); add(Cbox2);
6=add(Cbox3); add(Cbox4); add(Cbox5); add(Cbox6); add(Button1); add(TxtFld1); TxtFld1.setText(ASearch); }
7=public boolean action(Event e,Object o) { switch(e.id) { case Event.ACTION_EVENT: { if ("Search".equals (o)) { dispose(); return true; } } default: return false; } }
8=public String getSearchtext () { return TxtFld1.getText(); } public boolean getHoleword() { return Cbox1.getState(); } public boolean getCasesensitive() { return Cbox2.getState(); }
9=public boolean getDown() { return Cbox3.getState(); } public boolean getEntiretext () { return Cbox6.getState(); }
10=public void paint(Graphics g) { g.setFont(new Font("TimesRoman",Font.PLAIN,10)); g.setColor(Color.black); g.drawString("Search for:",20,25); g.drawString("Direction",170,45); g.drawString("Method",170,75);
11=if (!wsrhd) { setBounds(50,50,420,150); Cbox1.setBounds(20,70,100,12); Cbox1.setState(false); Cbox2.setBounds(20,100,120,12); Cbox2.setState(false); Cbox3.setBounds(195,70,90,12); Cbox4.setBounds(310,70,100,12);
12=Cbox5.setBounds(195,100,105,12); Cbox6.setBounds(310,100,100,12); Button1.setBounds(334,34,76,25); TxtFld1.setBounds(70,35,256,23); wsrhd=true; } super.paint (g); } }
[Rectangle]
Foreground=black
Height=20
Left=10
Name=
Parent=
Top=10
Width=20
[Rectangle.Properties]
Foreground=java.awt.Color
Height=int
Left=int
Name=Name
Top=int
Width=int
[Rectangle.Paint]
1=g.setColor (new \Foreground\);
2=g.drawRect (\Left\,\Top\,\Width\,\Height\);
[Image]
Filename=
Height=
Left=10
Name=
Owner=
Parent=
Path=
Top=10
Width=
[Image.Properties]
Filename=Filename
Left=int
Name=Name
Height=Hidden
Owner=java.lang.String
Parent=java.lang.String
Path=Path
Top=int
Width=Hidden
[Image.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[Image.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[Image.Class]
1=Image \Name\;
2=\?APPLET\URL \Name\URL = null;\-\
[Image.Init]
1=\?APPLET\try { \Name\URL = new URL (getCodeBase(), "\Filename\"); } catch (MalformedURLException \Name\URL) { showStatus("Error"); }\-\
2=\?APPLET\\Name\ = getImage (\Name\URL);\-\
3=\?!APPLET\\Name\ = Toolkit.getDefaultToolkit().getImage (getClass().getResource("\Filename\"));\-\
4=prepareImage (\Name\, \Left\, \Top\, this);
[Image.Paint]
1=if (\Name\ != null) g.drawImage (\Name\, \Left\, \Top\, this);
[Scrollbar]
_layed_out=
_constraints_4_add=
Background=white
BlockIncrement=5
Constraints=
Foreground=black
Height=70
Left=10
UnitIncrement=1
Maximum=100
Minimum=0
Name=
Orientation=Scrollbar.HORIZONTAL
Owner=
Parent=
Top=10
Value=0
VisibleAmount=5
Width=70
[Scrollbar.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
BlockIncrement=int
Constraints=Constraints
Foreground=java.awt.Color
Height=int
Left=int
UnitIncrement=int
Maximum=int
Minimum=int
Name=Name
Orientation=java.lang.String
Owner=java.lang.String
Parent=java.lang.String
Top=int
Value=int
VisibleAmount=int
Width=int
[Scrollbar.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[Scrollbar.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[Scrollbar.Class]
1=Scrollbar \Name\ = new Scrollbar (\Orientation\, \Value\, \VisibleAmount\, \Minimum\, \Maximum\)\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[Scrollbar.Init]
1=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
2=\Name\.setBlockIncrement (\BlockIncrement\);
3=\Name\.setUnitIncrement (\UnitIncrement\);
4=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\);
[Scrollbar.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);\-\
[List]
_layed_out=
_constraints_4_add=
Background=white
Constraints=
Foreground=black
Height=200
Items=
Left=10
Name=
Multiselect=false
Owner=
Parent=
Selected=0
Top=10
Width=100
[List.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
Constraints=Constraints
Foreground=java.awt.Color
Height=int
Items=Items
Left=int
Name=Name
Multiselect=boolean
Owner=java.lang.String
Parent=java.lang.String
Selected=int
Top=int
Width=int
[List.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[List.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[List.Class]
1=List \Name\ = new List ()\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[List.Init]
1=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
2=\Name\.setMultipleSelections (\Multiselect\);
3=\░░0\
4=\?Items░0\\Name\.addItem ("\Items░0\");\-\
5=\░+0\
6=\?Items░0\\░>0\\-\
7=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\);
[List.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);\-\
[MenuBar]
Items=
Name=
Owner=
[MenuBar.Properties]
Items=Items
Name=Name
Owner=java.lang.String
[MenuBar.Listeners]
Component=
Focus=
Key=
Mouse=
MouseMotion=
[MenuBar.Eventlist]
focusGained=Focus
focusLost=Focus
componentHidden=Component
componentMoved=Component
componentResized=Component
componentShown=Component
charUndefined=Key
keyPressed=Key
keyReleased=Key
keyTyped=Key
mouseClicked=Mouse
mouseDragged=MouseMotion
mouseEntered=Mouse
mouseExited=Mouse
mouseMoved=MouseMotion
mousePressed=Mouse
mouseReleased=Mouse
[MenuBar.Class]
1=MenuBar \Name\ = new MenuBar ();
2=\░░0\
3=\?Items░0\Menu \Items░0\ = new Menu ("\Items░0\");\-\
4=\░░1\
5=\?Items░0░1\MenuItem \Items░0░1\ = new MenuItem ("\Items░0░1\");\-\
6=\░+1\
7=\?Items░0░1\\░>1\\-\
8=\░+0\
9=\?Items░0\\░>0\\-\
[MenuBar.Init]
1=\░░0\
2=\?Items░0\\Name\.add (\Items░0\);\-\
3=\░░1\
4=\?Items░0░1\\Items░0\.add (\Items░0░1\);\-\
5=\░+1\
6=\?Items░0░1\\░>1\\-\
7=\░+0\
8=\?Items░0\\░>0\\-\
9=setMenuBar (\Name\);
[Bean.Class]
1=\BeanName\ \Name\;
[Bean.Init]
1=try { \Name\=((\BeanName\)Beans.instantiate (Class.forName("\BeanName\").getClassLoader(),"\Name\"));
2=\?!Owner=Parent\\Parent\.\-\add(\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\); }
3=catch (Exception e) { try { \Name\=((\BeanName\)Beans.instantiate(Class.forName("\BeanName\").getClassLoader(),"\BeanName\"));
4= \?!Owner=Parent\\Parent\.\-\add(\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\); }
5= catch (Exception ex) { \Name\ = new \BeanName\ ();
6= \?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\); } }
[Bean.Paint]
1=if (\Name\!=null) \Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
[Panel]
_layed_out=
_constraints_4_add=
Background=lightGray
Constraints=
Foreground=darkGray
Height=30
Left=10
Name=
Owner=
Parent=
Top=10
Width=70
Layout=
[Panel.Properties]
_layed_out=Hidden
_constraints_4_add=Hidden
Background=java.awt.Color
Constraints=Constraints
Foreground=java.awt.Color
Height=int
Left=int
Name=Name
Owner=java.lang.String
Parent=java.lang.String
Top=int
Width=int
Layout=LayoutManager
[Panel.Class]
1=Panel \Name\ = new Panel ()\?_layed_out\ { public Dimension getPreferredSize() { return new Dimension (\Width\,\Height\); }}\-\;
[Panel.Init]
1=\Name\.setBackground (\Background\); \Name\.setForeground (\Foreground\);
2=\?!Owner=Parent\\Parent\.\-\add (\?_constraints_4_add\"\_constraints_4_add\", \-\\Name\);
3=\?Layout\\Name\.setLayout (new \Layout\);\-\
4=\?!Layout\\Name\.setLayout (null);\-\
[Panel.Paint]
1=\?!_layed_out\\Name\.setBounds (\Left\, \Top\, \Width\, \Height\);\-\