org.openide.util |
A set of
utility classes
covering a few general infrastructure points in the Open APIs.
|
Java Source File Name | Type | Comment |
AsyncGUIJob.java | Interface | Service provider interface (SPI) for executing of time consuming task which
results are visible in UI.
Typical usage is post-initialization of UI components or various long lasting
operations like network accessing invoked directly or indirectly by user
from UI.
Note that it's often desirable to provide cancel support, at least for
longer lasting jobs. |
AsyncInitSupport.java | Class | Performance helper class, allows to run post-init task for given component. |
Cancellable.java | Interface | Service provider interface (SPI) for adding cancel support to various jobs. |
ChangeSupport.java | Class | A simple equivalent of
java.beans.PropertyChangeSupport for
ChangeListener s. |
ChangeSupportTest.java | Class | |
ContextAwareAction.java | Interface | Interface to be implemented by an action whose behavior
is dependent on some context.
The action created by
ContextAwareAction.createContextAwareInstance is bound to the provided context:
Action.isEnabled ,
Action.actionPerformed , etc. |
ContextGlobalProvider.java | Interface | An interface that can be registered in a lookup by subsystems
wish to provide a global context actions should react to. |
Enumerations.java | Class | Factory methods for various types of
Enumeration .
Allows composition of existing enumerations, filtering their contents, and/or modifying them.
All of this is designed to be done lazily, i.e. |
EnumerationsTest.java | Class | This is the base test for new and old enumerations. |
Exceptions.java | Class | Useful utility and methods to work with exceptions as
described in detail in the NetBeans logging guide. |
ExceptionsTest.java | Class | |
HelpCtx.java | Class | Provides help for any window or other feature in the system. |
HttpServer.java | Class | Maps internal NetBeans resources such as repository objects to URLs.
The mapping is delegated to an HTTP server module, which registers to do
the mapping. |
IconManager.java | Class | Registers all loaded images into the AbstractNode, so nothing is loaded twice. |
IconManagerGetLoaderTest.java | Class | |
IconManagerTest.java | Class | |
InitJobTest.java | Class | |
Lookup.java | Class | A general registry permitting clients to find instances of services
(implementation of a given interface).
This class is inspired by the
Jini
registration and lookup mechanism. |
LookupEvent.java | Class | An event describing the change in the lookup's result. |
LookupListener.java | Interface | General listener for changes in lookup. |
MapFormat.java | Class | A text format similar to MessageFormat
but using string rather than numeric keys. |
MapFormatTest.java | Class | |
Mutex.java | Class | Read-many/write-one lock.
Allows control over resources that
can be read by several readers at once but only written by one writer.
It is guaranteed that if you are a writer you can also enter the
mutex as a reader. |
MutexException.java | Class | Encapsulates other exceptions thrown from a mutex method. |
MutexTest.java | Class | |
MutexWrapTest.java | Class | |
NbBundle.java | Class | Convenience class permitting easy loading of localized resources of various sorts. |
NbBundleTest.java | Class | Test normal-mode functionality of
NbBundle . |
NbCollections.java | Class | Utilities for working with generics.
Note that there is no checkedListByFilter method currently.
If constant-time operation is important (e.g. |
NbCollectionsTest.java | Class | |
NbPreferences.java | Class | Provides an implementation of the Preferences API which may be backed by
a NetBeans-specific implementation. |
NotImplementedException.java | Class | Should be thrown when a feature is not implemented.
Usage of this exception should allow us to distingush between
errors and unimplemented features.
Also this exception can easily be located in source code. |
Parameters.java | Class | Utilities for checking the values of method parameters.
Methods in this class generally take the name of
the parameter to check and its value and throw exceptions
with messages according to the method name or just return. |
ParametersTest.java | Class | |
Queue.java | Class | Queue of objects. |
RE13.java | Class | Implementation of translate regular expression methods. |
RequestProcessor.java | Class | Request processor that is capable to execute requests in dedicated threads.
You can create your own instance or use the shared one.
There are several use cases for RequestProcessor:
|
RequestProcessorTest.java | Class | |
SharedClassObject.java | Class | Shared object that allows different instances of the same class
to share common data. |
SharedClassObjectTest.java | Class | Test SharedClassObject singletons: esp. |
Task.java | Class | A task that may be executed in a separate thread and permits examination of its status. |
TaskListener.java | Interface | Listener which can be notifies when a task finishes. |
TaskTest.java | Class | |
TimedSoftReference.java | Class | A soft reference which is held strongly for a while after last access.
Lifecycle:
- Created.
|
TopologicalSortException.java | Class | Exception that signals that a topological sort failed due to
unsortable nature of the graph and that provides support for
reporting and recovering from that state. |
Union2.java | Class | A union type which can contain one of two kinds of objects.
Object.equals and
Object.hashCode treat this as a container,
not identical to the contained object, but the identity is based on the contained
object. |
Union2Test.java | Class | |
UserCancelException.java | Class | Exception that is thrown when user cancels interaction so the
requested result cannot be produced. |
UserQuestionException.java | Class | Exception that is thrown when the process is about to perform some
action that requires user confirmation. |
Utilities.java | Class | Otherwise uncategorized useful static methods. |
UtilitiesActionsTest.java | Class | Tests of actions related methods in Utilities class. |
UtilitiesActiveQueueTest.java | Class | |
UtilitiesCompositeActionMap.java | Class | |
UtilitiesFileURLConvertorTest.java | Class | Test File ↔ URL conversion. |
UtilitiesProgressCursorTest.java | Class | |
UtilitiesTest.java | Class | |
UtilitiesTopologicalSortTest.java | Class | Test Utilities.topologicalSort. |
UtilitiesTranslateTest.java | Class | |
WeakListener.java | Class | |
WeakListenerImpl.java | Class | A listener wrapper that delegates to another listener but hold
only weak reference to it, so it does not prevent it to be finalized. |
WeakListeners.java | Class | A generic weak listener factory.
Creates a weak implementation of a listener of type lType .
In the following examples, I'll use following naming:
There are four objects involved in weak listener usage:
- The event source object
- The observer - object that wants to listen on source
- The listener - the implementation of the corresponding
*Listener interface, sometimes the observer itself but
often some observer's inner class delegating the events to the observer.
- The weak listener implementation.
The examples are written for ChangeListener. |
WeakListenersSpeedTest.java | Class | |
WeakListenersTest.java | Class | |
WeakListenerTest.java | Class | |
WeakSet.java | Class | Set which holds its members by using of WeakReferences. |
WeakSetTest.java | Class | |