What Should the Parameters Be Named?

Started by sukishan, Jul 15, 2009, 03:17 PM

Previous topic - Next topic

sukishan

What Should the Parameters Be Named?
Once you decide what parameters your applet will support, you need to figure out their names. Here are some typical parameter names:
SOURCE or SRC
For a data file such as an image file.
XXXSOURCE (for example, IMAGESOURCE)
Used in applets that let the user specify more than one type of data file.
XXXS
For a parameter that takes a list of XXXs (where XXX might be IMAGE, again).
NAME
Used only for an applet's name. Applet names are used for interapplet communication, as described in Sending Messages to Other Applets.


What Should the Applet Let the User Configure?
The parameters your applet should support depend on what your applet does and on how flexible you want it to be. Applets that display images might have parameters to specify the image locations. Similarly, applets that play sounds might have parameters to specify the sounds.
Besides parameters that specify resource locations (such as image and sound files), applets sometimes provide parameters for specifying details of the applet's appearance or operation. For example, an animation applet might let the user specify the number of images shown per second. Or an applet might let the user change the strings the applet displays
A good beginning makes a good ending

kimseane

I have read the information which you have mentioned here on What Should the Parameters Be Named. I was totally unknown from the Parameters Be Named. And came to know after reading your this post.