| Sample Files |
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
![]() | |
|
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.
|
---|---|
ShowText
![]() | |
|
A basic JavaBean. Illustrates how to create a simple JavaBean, and how to
package a JavaBean in a JAR.
|
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.
|
|
SimpleClientServer
![]() | |
Dynamic HTML |
Simple examples of:
|
---|---|
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.
|
CustomJSB
![]() | |
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.
|
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.
|
DatePicker
![]() | |
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.
|
DialogWidget
![]() | |
Dynamic HTML |
Creates a movable Dynamic HTML dialog box within the browser.
|
|
JSBDoc Tool
![]() | |
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.
|
---|---|
LDAPBeans
![]() | |
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.
|
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.
|
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.
|
FloatingWindow
![]() | |
JavaScript Bean Dynamic HTML |
FloatingWindow is a JavaScript Component that makes use of Netscape Communicator's Layers.
|