Skip navigation links
org.openide.util.ui 9.8

Utilities API
Official

See: Description

Utilities API 
Package Description
org.openide
Provides ErrorManager - the central place for logging and reproting failures in NetBeans based system.
org.openide.util
A set of utility classes covering a few general infrastructure points in the Open APIs.
org.openide.util.actions
There are several types of standard actions that should be used for many user interactions within NetBeans.
org.openide.util.datatransfer
NetBeans uses special extensions to data transfer.

This module contains general classes needed in NetBeans, extensions to basic JRE contepts, useful methods and other UtilitiesAPI classes.

What is New (see all changes)?

Use Cases

How shall I do or influence logging in NetBeans?

If you are interested in logging from inside your module, or in writing your own log handler or in configuring the whole system, then best place to start is the NetBeans logging guide.

Exported Interfaces

This table lists all of the module exported APIs with defined stability classifications. It is generated based on answers to questions about the architecture of the module. Read them all...
Group of java interfaces
Interface NameIn/OutStabilitySpecified in What Document?
UtilitiesAPIExportedOfficial .../org/openide/util/doc-files/api.html

AWTBridgeExportedPrivate .../modules/openide/util/AWTBridge.java

a class that is looked up in Lookup.getDefault() and if registered can provide better UI elements for Actions.

SharedClassObject.setAccessibleExportedUnder Development .../org/openide/util/SharedClassObject.html

used to instantiate subclasses.

Group of property interfaces
Interface NameIn/OutStabilitySpecified in What Document?
BrandingSupportExportedOfficial .../org/openide/util/NbBundle.html

which is similar to localization but also supports changes of resorces for application build on top of NetBeans. This is handled by our class NbBundle which reimplements the JDK's standard ResourceBundle to to take branding into the consideration.

HelpIDExportedStandardorg/openide/util/HelpCtx.html

read from JComponent.getClientProperty to simulate the standard javahelp behaviour and extract the help id for given component.

org.openide.util.SharedClassObject.initializeExportedPrivate

For purposes of SystemOption the
SharedClassObject handles getProperty ("org.openide.util.SharedClassObject.initialize") in a special way, by returning null if initialization is not running and Boolean.TRUE if it is.

OpenIDE-Transmodal-ActionExportedUnder Development

CallbackSystemAction checks whether action.getValue("OpenIDE-Transmodal-Action") returns Boolean.TRUE to enable it in dialogs, otherwise the action is disabled when there is an open dialog.

Group of java.io.File interfaces
Interface NameIn/OutStabilitySpecified in What Document?
FileLocationExportedUnder Development

the JAR file is located in platform cluster under lib/org-openide-util.jar

Group of lookup interfaces
Interface NameIn/OutStabilitySpecified in What Document?
ActionManagerInvocationExportedPrivate

because of the API separation,
CallableSystemAction uses lookup for ActionsBridge provided by org-openide-actions module when looking for org.openide.actions.ActionManager implementation.

LookupSharedClassObjectExportedUnder Development

singleton subclasses of
SharedClassObject are searched for using Lookup.

LookupContextGlobalProviderExportedStable

actionsGlobalContext searches for ContextGlobalProvider in Lookup.getDefault(). The provider is usually provided by window system implementation.

LookupErrorManagerExportedUnder Development

ErrorManager delegates its methods to all instances of ErrorManagers found in Lookup

Implementation Details

Where are the sources for the module?

The sources for the module are in the NetBeans Mercurial repositories.

What do other modules need to do to declare a dependency on this one, in addition to or instead of a plain module dependency?

Nothing.

Read more about the implementation in the answers to architecture questions.

Skip navigation links
org.openide.util.ui 9.8

Built on October 23 2017.  |  Portions Copyright 1997-2017 Oracle. All rights reserved.