borland Packages  borland Class Hierarchy

Package borland.jbcl.util


About the util package

The util package contains utility classes and interfaces, such as interfaces containing groups of constants. These classes are accessed from other JBCL packages.

See also:


Interfaces

  • AbsLocation
  • BlackBox
  • ChainedException
  • CheckState
  • ExceptionDispatch
  • ExceptionHandler
  • Orientation
  • RelPosition
  • SelectFlags
  • TimerClient
  • TriState
  • TriStateProperty
  • VetoableDispatch
  • Classes and Components

  • ActionMulticaster
  • AdjustmentMulticaster
  • Alignment
  • ArrayResourceBundle
  • BasicBeanInfo
  • BooleanFormat
  • ColorWheel
  • Diagnosing
  • Diagnostic
  • DiagnosticCheckException
  • DiagnosticPreconditionException
  • DispatchableEvent
  • DottedLine
  • DummyPrintStream
  • ErrorResponse
  • EventMulticaster
  • ExceptionChain
  • FastStringBuffer
  • FocusMulticaster
  • Hex
  • ImageLoader
  • ImageTexture
  • InputStreamToByteArray
  • InvalidFormatException
  • ItemMulticaster
  • KeyMulticaster
  • LocaleUtil
  • LookAndFeelManager
  • LookAndFeelManagerBeanInfo
  • MouseMotionMulticaster
  • MouseMulticaster
  • PropertyChangeMulticaster
  • ResTable
  • SearchPath
  • SerializableImage
  • Stopwatch
  • TextFormat
  • Timer
  • Trace
  • Variant
  • VariantException
  • VetoException

  • Overview of classes in the util package

    Diagnostic classes

    Diagnostic - A useful collection of diagnostic functions for debugging program flow and output. This class is excluded from the compiled version of your code, so it doesn't show up in the real build. Use the compiler to strip the calls to the class, using the command: -exclude borland.jbcl.util.Diagnostic
    DiagnosticCheckException - The exception thrown when Diagnostic.check(...) methods fail.
    DiagnosticPreconditionException - The exception thrown when Diagnostic.precondition(...) methods fail.

    Event-dispatching classes

    DispatchableEvent - An interface for dispatchable events that jbcl.util.EventMulticaster can send to multiple listeners.
    VetoableDispatch - An interface for events that can be vetoed that jbcl.util.EventMulticaster can send to multiple listeners.
    VetoException - Thrown when an event listener wants to halt multicasting of a vetoable event.

    Exception-related classes

    ErrorResponse - Used for collecting a response to an error from a component.
    ExceptionDispatch - An interface for events that can throw exceptions that EventMulticaster can send to multiple listeners.
    ExceptionChain - Represents the node of a ChainedException object.
    ExceptionHandler - An interface that allows an object to generically handle exceptions.
    ChainedException - An interface that collects generic routines to handle chained exceptions.
    InvalidFormatException - The Exception class generated by format and parser code exceptions.
    VariantException - An exception thrown when Variant runs into a problem.

    I/O classes

    FastStringBuffer - A class to use instead of StringBuffer when a buffer is not shared. Avoids complications of synchronization and sharing.
    DummyPrintStream - Contains empty method stubs for all java.io.PrintStream methods.
    InputStreamToByteArray - A wrapper around ByteArrayInputStream.

    Image-related classes

    ColorWheel - A rainbow color iterator. Use next() to cycle through rainbow colors.
    DottedLine - Draws dotted vertical and horizontal lines in several styles.
    ImageLoader - An advanced image loading utility to load images from a variety of sources, such as URLs, resources, and BLOBs.
    ImageTexture - Copies the pixels of a source image onto a larger destination surface, repeating the source image, giving the appearance of a texture to the destination surface.
    SerializableImage - Enables serialization of java.awt.Image objects.

    Internationalization classes

    ArrayResourceBundle - An abstract subclass of java.util.ResourceBundle that manages locale-dependent resources in an array. Uses numeric references rather than string references, for less overhead and better performance than JDK resource bundle classes.
    LocaleUtil - Returns the locale identified by a single string with "locale_country_variant" as returned by Locale.toString().

    Multicaster classes

    Optimized, high-speed multicasters for different event sets. Each multicaster implements and broadcasts a particular event type.

    ActionMulticaster - Multicaster for the Action event set.
    AdjustmentMulticaster - Multicaster for the Adjustment event set.
    FocusMulticaster - Multicaster for the Focus event set.
    ItemMulticaster - Multicaster for the Item event set. Item events are emitted by ItemSelectable objects when an item is selected or de-selected.
    KeyMulticaster - Multicaster for the Key event set.
    MouseMotionMulticaster - Multicaster for MouseMotion events.
    MouseMulticaster - Multicaster for Mouse events.
    PropertyChangeMulticaster - Multicaster for the PropertyChange events. A PropertyChange event is fired when a bean changes a bound property.

    EventMulticaster - For user-defined events. Used for all JBCL events, such as model events and selection events.

    Placement-related classes

    Alignment - Provides general-purpose two-dimensional alignment constants for aligning an object within a rectangular container.
    Orientation - An interface that contains the HORIZONTAL and VERTICAL variables for describing the orientation of an object.
    AbsLocation - An interface that defines enumerated constants for absolute locations.
    RelPosition - An interface that defines enumerated constants for relative positions.

    Timer classes

    Timer - A timer. Requires clients to execute simple, short code snippets when called back by the engine.
    TimerClient - Implements a multithreaded timer, making callbacks to registered TimerClients.

    TriState interfaces

    TriState - A small, general-purpose interface containing the values YES, NO, and MAYBE.
    TriStateProperty - A general-purpose interface containing the values TRUE, FALSE, and DEFAULT.
    CheckState - A general-purpose interface containing the values CHECKED, UNCHECKED, and INDETERMINATE.

    Variant

    Variant - A type storage class used for the dataset package.
    VariantException - An exception thrown when Variant runs into a problem.

    Miscellaneous util classes

    BasicBeanInfo - A convenient implementation of the BeanInfo interface, designed to be subclassed to fill in appropriate properties, methods, and events for a JavaBean.
    BlackBox - An empty interface to indicate that the component is a non-container. A component that implements BlackBox cannot have a layout or contain other objects.
    BooleanFormat - A string-based pattern used to create a BooleanFormatter object. Enables working with two values, stored as true or false, but formatted using string values you specify.
    Hex - Static definitions of hexadecimal characters as chars and as bytes.
    LookAndFeelManager - A utility class used to change the look-and-feel style of the user interface.
    SearchPath - Encapsulates a search path (such as classpath), and can perform searches along that path given a relative directory and filename.
    SelectFlags - An interface used to determine the mouse and keyboard state, for driving a selection pool in a component.
    TextFormat - Extends the basic Format class but allows for special formatting of text. Uses standard control patterns for fill characters and replace characters.