Category Archive for: Java Beans

Constrained Properties

Constrained Properties A Bean that has a constrained property generates an event when an attempt is made to change its value. The event is of type Property Change Event. It is sent to objects that, previously registered an interest in receiving such notifications. Those other objects have the ability to veto the proposed change. This capability allows a…

Read More →

Using Bound Properties

Using Bound Properties A Bean that has a bound property generates an event when the property is changed. The event is of type Property Change Event and is sent to objects that previously , registered an interest in receiving such notifications. The Tick Tock Bean is supplied with the BDK. It generates a property change event every N…

Read More →

Compile the Source Code for the New Bean

Compile the Source Code for the New Bean Compile the source code to create a ‘class file, Type the following: Javac Colors, java . Create a Manifest File . You must now create a manifest file. First, switch to the c:\bdk\demo directory.  This is the directory in which the manifest files for the BDK demos are…

Read More →

Developing a Simple Bean

Developing a Simple Bean This section presents an example that shows how to develop a simple, Bean and connect it to other components via the BDK.   Our new component is called the Colors Bean. It appears as either a rectangle or ellipse that is filled, with a color. A color is chosen’ at random when the Bean…

Read More →

Indexed Properties

Indexed Properties An indexed property consists of multiple values. It can be identified by following design patterns. where N is,the’ name of the property and ‘I’ is its type: public T getN(int illde,.) public void setN(int index, T value); public T[‘] getN( ) public void sptN(T value[ f) Design Patterns for Events Beans use the…

Read More →

Introspection

Introspection Introspection is the process of analyzing a Bean to determine its capabilities. This is an. essential feature of the Java Beans API, because it allows an application builder tool to present information about a component to a software designer: Without introspection, the Java Beans technology could not operate.  There are two ways in which the developer…

Read More →

JAR FILES

JAR FILES Before developing your own Bean, it is necessary for you to understand JAR (Java Archive) files, because tools such as the BDK expect Beans to be packaged within JAR  files. A JAR file allows you to efficiently deploy a set of classes and their-associated resources, For example,a developer may build a multimedia application that Uses various…

Read More →

The Bean Developer Kit (BDK)

The Bean Developer Kit (BDK) The Bean Developer Kit (BDK), available from the Java Soft site, is a simple example of  a tool that enables you to create, configure, and connect a set of Beans. There is also a set of sample Beans with their source code. This section provides-step-by-step instructions for installing and using this tool.…

Read More →

Application Builder Tools

Application Builder Tools When working with Java Beans, most developers use an application builder tool, a utility that enables. you to configure a set of Beans, connect them together, and produce a working application. Its major capabilities arc the following: 1. A palette is provided that lists all of the available Beans. As addition Beans are developed or…

Read More →

What is Java bean

What is Java bean A farm, Be all is a software’ component that has been designed “to be reusable in a variety of different environments. There is no restriction on the capability of a Bean. It may perform a simple function, such as checking the spelling of a document, or a complex junction, such as forecasting the…

Read More →

Back to Top