Table of Contents
Previous Section
In the component's ".wod" file, associate each identifier with a WOApplet dynamic element and initialize the standard WOApplet attributes as well as those specific to the applet class.
INPUTFIELD : WOApplet { code = "next.wo.client.controls.TextFieldApplet.class"; codebase = "/WebObjects/Java"; width = "200"; height = "20"; associationClass = "next.wo.client.SimpleAssociation"; stringValue = inputString }; FUNCTION : WOApplet { code = "next.wo.client.controls.ChoiceApplet.class"; codebase = "/WebObjects/Java"; width = "100"; height = "20"; associationClass = "next.wo.client.SimpleAssociation"; itemList = functionItemList; selectedItem = functionSelectedItem; backgroundColor = "white"; }; BUTTON : WOApplet { code = "next.wo.client.controls.ButtonApplet.class"; codebase = "/WebObjects/Java"; width = "200"; height = "20"; associationClass = "next.wo.client.SimpleAssociation"; title = "DoIt"; action = "capitalizeString" }; OUTPUTFIELD : WOApplet { code = "next.wo.client.controls.TextFieldApplet.class"; codebase = "/WebObjects/Java"; width = "200"; height = "20"; associationClass = "next.wo.client.SimpleAssociation"; stringValue = outputString; enabled = "NO"; };
The following WOApplet attributes are standard and require assigned values. Although you could bind these attributes to variables, they are assigned constants in most cases. Constant values should be quoted.
DOCUMENT_ROOT
subdirectory containing the package specified in the code attribute.The reference section "Client-Side Applet Controls" describes the attributes representing the keys and actions of particular applets provided by NeXT.