home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78a98.iso
/
Micrsoft
/
VJ
/
VJ98
/
PROJITEM
/
FORM
/
DESIGN.JAV
< prev
next >
Wrap
Text File
|
1998-02-11
|
2KB
|
70 lines
// %FILENAME%.java
import wfc.core.*;
import wfc.ui.*;
public class %FILENAME% extends DesignPage
{
public %FILENAME%()
{
//Required for Visual J++ Form Designer support
initForm();
// TODO: Add any constructor code after initForm call
}
/**
* NOTE: The following code is required by the Visual J++ form
* designer. It can be modified using the form editor. Do not
* modify it using the code editor.
*/
Container components = new Container();
private void initForm()
{
this.setSize(new Point(300, 300));
this.setText("%FILENAME%");
}
// NOTE: End of form designer support code
/**
* this is called when we need to read a property from the design page
* and store it in an object. You should override this in your own
* implementation.
*
* @param name The name of the property to read.
*
* @return An object that reflects what the UI currently contains for
* the property. If the UI doesn't support the property, or if the UI
* contains the original, default value for the property, this should return
* null.
*/
protected Object onReadProperty(String name)
{
// TODO: Add property read code here
return null;
}
/**
* this is called when we need to put a property value into the page's UI.
* You should override this in your own implementation.
*
* @param name The name of the property to write.
* @param value The value of the property. This will be null if several
* objects are in the object list and they have inconsistent values for
* the property. In this case, the UI should show an indeterminate state
* for this property.
*/
protected void onWriteProperty(String name, Object value)
{
// TODO: Add property write code here
}
public static class ClassInfo extends DesignPage.ClassInfo
{
// TODO: Add your property and event infos here
}
}