PATH
WebObjects 4.0 Documentation >
JavaClient Tutorial
Server Files
The server-side project files are, as usual, accessible from the first column of the project browser (the main project). Most notable of these is the Main component (Main.wo
) in the WebComponents suitcase. The Main.html
file contains this generated HTML code:
<HTML>
<HEAD>
<TITLE>Main</TITLE>
</HEAD>
<BODY>
<CENTER><WEBOBJECT NAME=Applet></WEBOBJECT></CENTER>
</BODY>
</HTML>
The WOJavaClientApplet Component
The "Applet" WEBOBJECT tag in the HTML above represents a WOJavaClientApplet component. Java Client applications use this component to create an applet (of class com.apple.client.interface.EOApplet) and to pass this applet several parameters, some standard, such as size and codebase, and others specific to Java Client applications, such as channel class and interface-controller class.
The Main.wod
file created by Project Builder contains the following default bindings for WOJavaClientApplet:
Applet: WOJavaClientApplet {
height = 512;
width = 512;
interfaceControllerClassName =
"studiomanager.client.StudioManager";
useJavaPlugin = NO;
}
Note that Project Builder automatically provides the binding for interfaceControllerClassName
(see "
The Interface Controller
," above for details).
The WOJavaClientApplet bindings specific to the EODistribution layer are:
|
Property
|
Value
|
|
useJavaPlugin
|
If YES, generates HTML that causes Internet Explorer and Netscape browsers to use SunSoft's Java Plug-in.
|
|
distributionContext
|
The EODistributionContext that the applet uses to handle requests from the client. If no binding is specified, WOJavaClientApplet instantiates one with the session's default editing context and sets the session as the delegate of the distribution context and itself as the invocation target.
|
|
interfaceControllerClassName
|
The name of the initial EOInterfaceController subclass.
|
|
applicationClassName
|
The name of the EOApplication subclass used for the shared application object.
|
|
language
|
The preferred language for the application. This corresponds to a localized
language
directory in the application's resources. When searching for localized resources, Java Client first looks in the
directory of the preferred language, next
(if English is not the preferred language), and finally
for non-localized resources.
|
|
channelClassName
|
The class name of the distribution channel to be used by the client, EOHTTPChannel by default.
|
Other Server Files
A Java Client project includes these other server-side files:
-
The application, session, and direct action class (.java
) files; if you selected Objective-C as the primary language, these would be Objective-C implementation (.m
) and header files.
- In the Resources suitcase, the model file (StudioManager.eomodeld
)
- Also in the Resources suitcase, the exported bindings file for the Main component (Main.api
)
- In the Supporting Files suitcase, the makefiles Makefile
, Makefile.preamble
, and Makefile.postamble
.
\xA9 1999 Apple Computer, Inc.
Previous | Back Up One Level | Next