| Sample Files

About the CDK Samples:
The examples below are broken into three categories: Simple, Intermediate, and Advanced. Simple examples are used only to introduce basic concepts for re-usable component creation. Intermediate examples illustrate how to flesh out components with icons, help files, and other trimmings as part of building more complex re-usable logic. Advanced examples are not necessarily complete components, and are used strictly to illustrate advanced concepts.

HelloWorldJSB
JavaScript Bean | A basic client-side JavaScript Bean (JSB) component. Illustrates how to create a simple JSB, and how to package a JSB in a JAR file for distribution as a re-usable component. How To Build the component
ShowText
JavaBean | A basic JavaBean. Illustrates how to create a simple JavaBean, and how to package a JavaBean in a JAR. All About the component
CustomDisplay
JavaScript Bean Java | Illustrates how to combine supporting images, JavaScript, and Java in a single component packaged into a JAR file. CustomDisplay is a simple JavaScript Bean which uses Java to draw a custom visual appearance. Building the component

Intermediate Samples:

SimpleClientServer
JavaScript Bean Dynamic HTML | Simple examples of: A simple client-side JSB that controls a layer A simple server-side JSB that echoes form contents How to package related components, help files, icons, and documentation together in one JAR. All about the component
HelloCorba
Corba (IDL) Java | The Hello World of CORBA Crossware components (IDLs). Illustrates how to build a CORBA component and Java CORBA service using the idl2java compiler from Enterprise Server. All About the component
CustomJSB
JavaScript Bean Java | Illustrates how to build a JavaScript Bean with a Customizer that appears at design-time to help users of the JSB to customize behavior. As a complete component, it includes help documentation and icons which are all packaged in a JAR file. JavaBeans can have the same functionality, too -- for information, see the CustomProperty sample below. All About the component
CustomProperty
Java Bean | Illustrates how to extend the ShowText JavaBean to include a Customizer that appears at design-time to help users of the JavaBean to customize behavior. As a complete component, it includes help documentation and icons which are all packaged in a JAR file. Also illustrates the similarities between JavaBeans and JavaScript Beans. Building the component
DatePicker
JavaScript Bean Java | A calendar component implemented as a Pagelet controlled by a JavaScript Bean. Illustrates how to build a JavaScript Bean that sends and receives events. All about the component
DialogWidget
JavaScript Bean Dynamic HTML | Creates a movable Dynamic HTML dialog box within the browser. All about the component

Advanced Samples:

JSBDoc Tool
JavaScript Bean Java Bean | JavaScript Bean Documentation Tool built as command-line Java utility. The command-line makes calls into the main parsing engine, which is implemented as an Invisible Bean. This example illustrates a powerful cross-platform re-use architecture, showing how the parsing-engine component can be imported into visual tools like SUN's BeanBox (to build Java Applications) or Visual JavaScript (to build Web Applications), or called from the command line. Also illustrates the use of a JavaScript Bean wrapper on a Java Bean to extend the JavaBean with additional methods (and potentially properties and events) written in JavaScript. Main page
LDAPBeans
LDAP Java Bean | A set of Java Beans that provides access to LDAP Directory Services, illustrating how to build a sample query tool as a Web Application. All about the component

Visual JavaScript Palette Item Source
JavaScript Bean Java Bean | The source code to the components that ship with Visual JavaScript. Includes JavaBeans and JavaScript beans. Java class documentation JavaScript components Table And Row samples making use of these components JavaScript Form Widgets for Radio Buttons and Select Boxes and CheckBoxes illustrate JavaScript Bean encapsulation of these HTML Form elements for easier use in visual Web Application Builders. DBSelect shows a server-side component that populates a select list with the contents of a database table. ValidatedText component implements validation of form fields, and how to import a JavaScript Bean within a package into Visual JavaScript without using a JAR file.
SourceLoader
JavaScript Bean Java | The SourceLoader encapsulates Java functionality within JavaScript -- sample Web Applications included allow the insertion of arbitrary (primitive) CSS Style Sheet directives into a document, as well as search / replace on text. Building the Component
FloatingWindow
JavaScript Bean Dynamic HTML | FloatingWindow is a JavaScript Component that makes use of Netscape Communicator's Layers. Learn more about the Component

( return to the top of the page )