See: Description
Package | Description |
---|---|
org.netbeans.api.actions |
Context Interfaces
are a design pattern used to add behaviors to existing objects
or to separate implementation from the main object.
|
org.netbeans.spi.actions |
Contains support classes for easier implementation of Context Interfaces.
|
org.openide.awt |
A set of utility classes pertaining to the visual appearance of NetBeans.
|
API/SPI for UI related aspects of application.
Add the GraphicsUtils.configureDefaultRenderingHints(Graphics) method (with a new GraphicsUtils class), to allow configuration of standard anti-aliasing settings from custom JComponent.paint(Graphics) implementations. These standard incantations were previously duplicated extensively throughout the NetBeans codebase.
Add the DropDownButtonFactory.getArrowIcon method, to expose the HiDPI-enabled dropdown arrow icon for use by other modules.
Context Actions which provide Action.SELECTED_KEY
value will be presented as checkbox (menu) or toggle button (toolbar) and
will reflect the state of an underlying model bean property, tracking models in Lookup and updating to model changes. Similar support
was added for enabled
Action property.
All that was required to be implemented by individual Actions in their ContextAwareAction implementations, this allows to use just annotation for the same behaviour in most cases.
Clients can specify notification category. There are 3 default categories (Info, Warning, Error) but clients can also create a custom category using layer.xml
A default value can be specified for a preference value for Actions.checkbox.
For general overview of the concepts of NetBeans action system and related UI elements, together with code samples, see chapter 5, of NetBeans Platform for Beginners by Jason Wexbridge and Walter Nyland.
|
|
|
|
|
|
|
The sources for the module are in the Apache Git repositories or in the GitHub repositories.
Nothing.
Read more about the implementation in the answers to architecture questions.