PDAP-Specific Packages

The java.awt, java.awt.event, java.awt.image, javax.microedition.pim and the additions to the java.io, java.net, java.util packages are available in PDAP only.

The java.awt Package

This package contains all the classes for creating user interfaces and for painting graphics and images for implementation of user interfaces for PDAP applications.

Interfaces
ActiveEvent ActiveEvent provides an interface for events that know how dispatch themselves. By implementing this interface, an event can be placed upon the event queue and its dispatch() method will be called when the event is dispatched, using the EventDispatchThread.
Adjustable The Adjustable interface is used for objects having an adjustable numeric value contained within a bounded range of values.
ItemSelectable The ItemSelectable provides an interface for objects containing a set of items for which zero or more can be selected.
LayotManager The LayoutManager interface defines methods for classes knowing how to layout Containers.
LayoutManager2 LayoutManager2 provides an interface for classes that know how to layout Containers based on a layout constraints object. It extends the LayoutManager interface to handle layouts explicitly in terms of constraint objects that specify how and where components should be added to the layout.
MenuContainer The MenuContainer interface provides methods for all menu related containers.
Shape The Shape interface provides definitions for graphical objects that represent some kind of geometric shapes.

Classes
AWTEvent The AWTEvent class is the root event for all AWT related events.
AWTEventMulticaster The AWTEventMulsticaster class provides a mechanism for efficient and thread-safe multi-cast event dispatching for the AWT events included in the java.awt.event package.
BorderLayout The BorderLayout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center.
Button The Button class represents a labeled button.
Canvas The Canvas class represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.
CardLayout The CardLayout lays out a container, arranging each component in the container as a card where only one card is visible at a time.
Checkbox The Checkbox class represents a graphical component that can be in either an “on” (true) or “off” (false) state.
CheckboxGroup The CheckboxGroup class is used to combine a set Checkboxes together in a group.
CheckboxMenuItem The CheckboxMenuItem represents a Checkbox that can be added to a menu.
Choice The Choice class represents a graphical pop-up menu component of choices.
Color The Color class is used to encapsulate colors in the RGB color space.
Component The Component class is the abstract super class of objects having a graphical representation that can be displayed on the screen and are able to interact with the user.
Container The Container class is a component that can contain other AWT components.
Cursor The Cursor class provides the bitmap representation of the mouse cursor.
Dialog A Dialog class is a top-level window with a title and a border that can be used to take input from the user.
Dimension The Dimension class encapsulates the width and height in integer precision of a component in a single object.
Event The Event class is a platform-independent implementation of events that can be dispatched from the platform's Graphical User Interface in the Java 1.0 event model.
EventQueue The EventQueue class provides a platform-independent mechanism for queuing events.
FlowLayout The FlowLayout class lays out components in a left-to-right flow, like lines of text in a paragraph.
Font The Font class represents a font.
FontMetrics The FontMetrics class defines a font metrics object, which encapsulates information about the rendering of a particular font on a particular screen.
Frame The Frame class represents a top-level window with a title and a border.
Graphics The Graphics class is the abstract base class for all graphics contexts that allow an application to draw onto components that are realized on various devices, as well as onto off-screen images.
GraphicsConfiguration The GraphicsConfiguration class describes the capabilities of a graphics destination.
GraphicsDevice The GraphicsDevice class holds the graphics devices that might be available in a particular graphics environment.
GraphicsEnvironment The GraphicsEnvironment class describes a set of GraphicsDevice and Font objects available on a particular platform.
GridBagConstraints The GridBagConstraints class defines constraints for components that are laid out in a GridBagLayout.
GridBagLayout The GridBagLayout class provides a flexible layout manager that is capable of positioning components according to constraints in the GridBayConstraints class.
GridLayout The GridLayout class lays out the components of a container in a rectangular grid.
Image The Image class is the super-class of all classes that represent graphical images.
Insets The Insets class represents the borders of a container. It specifies the space that a container must leave at each of its edges.
Label The Label class represents a component for placing text in a container.
List The List class represents a graphical component with a scrolling list of text items.
MediaTracker The MediaTracker class is a utility class providing a mechanism to track the status of media objects such as images.
Menu The Menu class represents an object acting as pull-down menu component that is deployed in a menu bar.
MenuBar The MenuBar class encapsulates the platform's concept of a menu bar bound to a frame.
MenuComponent The MenuComponent class is the super-class of all menu-related components.
MenuItem The MenuItem class represents on item in a menu.
MenuShortcut The MenuShortcut class represents a keyboard accelerator for a MenuItem.
Panel The Panel class is the simplest container class.
Point The Point class represents a location in (x, y) coordinate space, specified in integer precision.
Polygon The Polygon class represents a geometric description of a closed, two-dimensional region within a coordinate space.
PopupMenu The Popup class a menu that can be dynamically popped up at a specified position within a component.
Rectangle The Rectangle class specifies an area in a coordinate space that is enclosed by the Rectangle object's top-left point (x, y) in the coordinate space, its width, and its height.
Scrollbar The Scrollbar class represents a scroll bar user-interface object.
ScrollPane The ScrollPane class represents a container class which implements automatic horizontal and/or vertical scrolling for a single child component.
SystemColor The SystemColor class encapsulates a set symbolic colors representing the color of GUI objects on a particular platform.
TextArea The TextArea class represents a graphical component capable of displaying a multi-line region text.
TextComponent The TextComponent class is the super-class of any component that allows the editing of text.
TextField The TextField class represents a graphical component allowing the user to edit a single line of text.
Toolkit The Toolkit class is the abstract super-class of all actual implementations of the Abstract Window Toolkit. Subclasses of Toolkit are used to bind the various components to particular native toolkit implementations.
Window The Window class is a top-level window with no borders and no menubar.

Exceptions
AWTException The AWTException signalizes that an AWT related excaption occurred.
IllegalComponentStateException The IllegalComponentStateException signalizes that an AWT component is not in an appropriate state for the operation.

Error

The java.awt package consists of the AWTError only that signalizes that a serious error in the Abstract Window Toolkit occurred.

The java.awt.event Package

This package provides interfaces and classes for dealing with different types of events fired by AWT components.

Interfaces
ActionListener The ActionListener interface provides methods for receiving action events.
AdjustmentListener The AdjustmentListener interface provides methods for receiving adjustment events.
AWTEventListener The AWTEventListener interface provides methods for receiving notification of events dispatched to objects that are instances of Component or MenuComponent or their subclasses.
ComponentListener The ComponentListener interface provides methods for receiving component events.
ContainerListener The ContainerListener interface provides methods for receiving container events.
FocusListener The FocusListener interface provides methods for receiving keyboard focus events on a component.
ItemListener The ItemListener interface provides methods for receiving item events.
KeyListener The KeyListener interface provides methods for receiving keyboard events (keystrokes).
MouseListener The MouseListener interface provides methods for receiving mouse events such as (press, release, click, enter, and exit) on a component.
MouseMotionListener The MouseMotionListener interface provides methods for receiving mouse motion events on a component.
TextListener The TextListener interface provides methods for receiving text events.
WindowListener The WindowListener interface provides methods for receiving window events.

Classes
ActionEvent The ActionEvent class represents a semantic event, indicating that a component-defined action occurred.
AdjustmentEvent The AdjustmentEvent class encapsulates an event emitted by Adjustable objects.
ComponentAdapter The ComponentAdapter class provides an abstract adapter class for receiving component events.
ComponentEvent The ComponentEvent class encapsulates a low-level event indicating that a component moved, changed size, or changed visibility
ContainerAdapter The ContainerAdapter class provides an abstract adapter class for receiving container events.
ContainerEvent The ContainerEvent class encapsulates a low-level event which indicates that a container's contents has changed because a component was added or removed.
FocusAdapter The FocusAdapter class provides an abstract adapter class for receiving focus events.
FocusEvent The FocusEvent class encapsulates a low-level event indicating that a component has gained or lost the keyboard focus.
InputEvent The InputEvent class represents the root event class for all component-level input events.
InvocationEvent The InvocationEvent encapsulates an event executing the run() method on a Runnable object when dispatched by the AWT event dispatcher thread.
ItemEvent The ItemEvent encapsulates a semantic event which indicates that an item was selected or deselected.
KeyAdapter The KeyAdapter class provides an abstract adapter class for receiving keyboard events.
KeyEvent The KeyEvent class encapsulates an event indicating that a keystroke occurred in a component.
MouseAdapter The MouseAdapter class provides an abstract adapter class for receiving mouse events.
MouseEvent The MouseEvent class encapsulates an event indicating that a mouse action occurred in a component.
MouseMotionAdapter The MouseMotionAdapter class provides an abstract adapter class for receiving mouse motion events.
PaintEvent The PaintEvent class encapsulates a component-level paint event.
TextEvent The TextEvent class encapsulates a semantic event indicating that an object's text changed.
WindowAdapter The WindowAdapter class provides an abstract adapter class for receiving window events.
WindowEvent The WindowEvent class encapsulates a low-level event indicating that a window has changed its status.

The java.awt.image Package

This package provides classes for creating and modifying images.

Interfaces
ImageConsumer The ImageConsumer interface is used for expressing interest in image data through the ImageProducer interfaces.
ImageObserver The ImageObserver interface is asynchronous update interface for receiving notifications about Image information as the Image is constructed.
ImageProducer The ImageProducer interface defines methods for objects that can produce the image data for images.

Classes
AreaAveragingScaleFilter The AreaAveragingScaleFilter class is used to scale images using a simple area averaging algorithm that produces smoother results than the nearest neighbor algorithm.
ColorModel The ColorModel class is an abstract class encapsulating methods for translating a pixel value to color components and an alpha component.
CropImageFilter The CropImagefilter class is used for cropping images.
DirectColorModel The DirectColorModel is a ColorModel class that works with pixel values that represent RGB color and alpha information as separate samples and that pack all samples for a single pixel into a single int, short, or byte quantity.
FilteredImageSource The FilteredImageSource class is an implementation of the ImageProducer interface which takes an existing image and a filter object and uses them to produce image data for a new filtered version of the original image.
ImageFilter The ImageFilter class implements a filter for the set of interface methods that are used to deliver data from an ImageProducer to an ImageConsumer.
IndexColorModel The IndexColorModel class that works with pixel values consisting of a single sample which is an index into a fixed colormap.
MemoryImageSource The MemoryImageSource is an implementation of the ImageProducer interface which uses an array to produce pixel values for an Image.
PixelGrabber The PixelGrabber class is an implementation of the ImageConsumer class which can be attached to an Image or ImageProducer object to retrieve a subset of the pixels in that image.
ReplicateScaleFilter The ReplicateScaleFilter class is used for scaling images using the simplest algorithm.
RGBImageFilter The RGBImageFilter class provides an easy way to create an ImageFilter which modifies the pixels of an image in the default RGB ColorModel.

The javax.microedition.pim Package

This package contains all of the classes for accessing the Personal Information Manager for PDAP applications.

Interfaces
Contact The Contact interface defines all methods that need to be implemented by a Contact object of an address book.
ContactList The ContactList interface defines all methods that need to be implemented by a ContactList object which is used to store the Contacts of an address book
Event The Event interface defines all methods that needs to be implemented by an Event object of a calendar.
EventList The EventList interface defines all methods that needs to be implemented by a EventList object which is used to store Events of a given calendar.
PIMElement The PIMElement interface defines all methods necessary for an element of a PIMList. Interfaces extending the PIMElement interface are Contact, Event and ToDo.
PIMList The PIMList interface defines all methods necessary for a list that is capable of storing PIMElements. Interfaces extending the PIMList interface are ContactList, EventList and ToDoList.
ToDo The ToDo interface defines all methods that need to be implemented by an entry of a ToDoList.
ToDoList The ToDoList interface defines all methods that needs to be implemented by a ToDoList object which is used to store ToDo elements.

Classes
EventRepeat The EventRepeat class represents a description for a repeating pattern for an Event element.
PIM The PIM class is used to access all PIM databases which are available on the device by providing static access methods.

Exception
PimException The PimException is thrown to indicate that a general error in the pim classes occurred.

PDAP Additions to the java.io package

PDAP adds the PrintWriter class which is used to print formatted representations of objects to a text-output stream.

PDAP Additions to the java.lang.reflect package

PDAP adds the InvocationTargetException that can be thrown in the java.awt. EventQueue.invokeAndWait() method.

PDAP Additions to the java.net package

PDAP need to add the following class and exception to the java.net package.

URL The URL class represents a Uniform Resource Locator, a pointer to a “resource” on the World Wide Web.
MalformedURLException The MalformedURLException is thrown to indicate that a malformed URL has occurred.

PDAP Additions to the java.util package

PDAP need to add the following class and exception to the java.net package.

Interface
EventListener The EventListener interface is a tagging interface that all event listener interfaces must extend.

Classes
EventObject The EventObject is the root class from which all event state objects shall be derived.
Locale The Locale class represents a specific geographical, political, or cultural region.

Exception
MissingResourceException The MissingResourceException is thrown to indicate that a resource could not be found.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset