home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
inprise
/
JRUNTIME.Z
/
BeanInfo.snippet
< prev
next >
Wrap
Text File
|
1998-05-08
|
3KB
|
121 lines
// This snippet creates a bean info shell for the specified class.
// Example descriptors can be commented out to enable specific
// bean info functionlity.
// Snippet Note: Use the parameter button to change the name of the bean class.
//<Target text="Name for bean info class" pattern=%classnameBeanInfo% default="MyComponentBeanInfo">
//<Prompt text="Bean class" pattern=%classname% default="MyComponent">
//<Package>
import java.beans.BeanInfo;
import borland.jbcl.util.BasicBeanInfo;
public class %classnameBeanInfo% extends BasicBeanInfo {
public %classnameBeanInfo%() {
beanClass = %classname%.class;
/*
customizerClass=null; //Optional customizer class
*/
/**
* The event information for your JavaBean.
* Format: {{"EventSetName", "EventListenerClass", "AddMethod", "RemoveMethod"}, ...}
* Example: {{"ActionListener", "java.awt.event.ActionListener", "addActionListener", "removeActionListener"}, ...}
*/
/*
eventSetDescriptors = new String[][] {
{"ActionListener", "java.awt.event.ActionListener", "addActionListener", "removeActionListener"},
};
*/
/**
* The names of each event set's listener methods.
* Format: {{"listener1Method1", "listener1Method2", "listener1Method3", ...}, ...}
* Example: {{"actionPerformed"}, ...}
*/
/*
eventListenerMethods = new String[][] {
{"actionPerformed"},
};
*/
/**
* The index of the default event for your JavaBean.
*/
defaultEventIndex = -1;
// Property Info
/**
* The property information for your JavaBean.
* Format: {{"PropertyName", ""PropertyDescription", "ReadMethod", "WriteMethod"}, ...}
* Example: {{"fontSize", "Get the font size (points)", "getFontSize", "setFontSize"}, ...}
*/
/*
propertyDescriptors = new String[][] {
{"fontSize", "Get the font size (points)", "getFontSize", "setFontSize"},
};
*/
/**
* The index of the default property for your JavaBean.
*/
defaultPropertyIndex = -1;
// Method Info
/**
* The method names (non-properties) for your JavaBean.
* Format: {"method1", "method2", "method3", ...}
* Example: {"fillRect", "eraseRect", "close", "open"}
*/
/*
methodNames = new String[] {"fillRect", "eraseRect", "close", "open"};
*/
/**
* The method parameters for each of your JavaBean's methods.
* Format: {{"method1Parameter1", "method1Parameter2", ...}, ...}
* Example: {{"java.awt.Graphics", "java.awt.Rectangle", ...}, ...}
*/
/*
methodParameters = new String[][] {
{"java.awt.Graphics", "java.awt.Rectangle"},
};
*/
// Icon Info
/**
* A 16x16 color icon for your JavaBean.
*/
iconColor16x16 = null;
/**
* A 32x32 color icon for your JavaBean.
*/
iconColor32x32 = null;
/**
* A 16x16 monochromatic icon for your JavaBean.
*/
iconMono16x16 = null;
/**
* A 32x32 monochromatic icon for your JavaBean.
*/
iconMono32x32 = null;
// Additional Info
/**
* Any additional BeanInfo for this JavaBean.
*/
/*
additionalBeanInfo = new BeanInfo[0];
*/
}
}