Package it.tidalwave.ui.core
Interface PanelGroupControl<T>
- Type Parameters:
T
- the concrete type of the top container (depending on the UI technology)
- All Known Implementing Classes:
PanelGroupControlSupport
@API(status=EXPERIMENTAL)
public interface PanelGroupControl<T>
This service looks up
PanelGroupProvider
s that describe portions of the User Interface and places them in the desired region of the main window.
Calling the method setup(Configuration)
with the proper configuration, the desired panel groups can be bound to existing UI controls. The runtime
will scan for instances of PanelGroupProvider
that declare and instantiate panels to be associated to each group.
Calling the method show(Object)
one of possibly many panels in the same group is brought to visibility. If the system includes a
message bus implementing MessageBus
, it is also possible to pick the shown panel by publishing the event
PanelShowRequest
; the event PanelShownNotification
will be published back to
confirm the operation.- Since:
- 2.0-ALPHA-3
- Author:
- Fabrizio Giudici
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A bag of configuration settings forPanelGroupProvider
.static enum
Standard groups.static interface
The group in the main window.static enum
Options for thesetup(Configuration)
method. -
Method Summary
Modifier and TypeMethodDescriptiondefault PanelGroupControl.Configuration
<T> config()
Returns an emptyPanelGroupControl.Configuration
.void
setup
(PanelGroupControl.Configuration<T> configuration) Sets up panel groups according to the givenPanelGroupControl.Configuration
.void
Sets the shown object in a group.
-
Method Details
-
setup
Sets up panel groups according to the givenPanelGroupControl.Configuration
.- Parameters:
configuration
- the configuration
-
show
Sets the shown object in a group.- Parameters:
object
- the object to show
-
config
Returns an emptyPanelGroupControl.Configuration
..- Returns:
- an empty
PanelGroupControl.Configuration
-