java.lang.Object
it.tidalwave.ui.core.spi.PanelGroupControlSupport<T,S>
- Type Parameters:
T
- the type of the controlS
- the type of the top container
- All Implemented Interfaces:
PanelGroupControl<T>
,it.tidalwave.util.As
@API(status=EXPERIMENTAL)
public abstract class PanelGroupControlSupport<T,S>
extends Object
implements it.tidalwave.util.As, PanelGroupControl<T>
A support implementation of
PanelGroupControl
.- Since:
- 2.0-ALPHA-3
- Author:
- Fabrizio Giudici
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.util.As
it.tidalwave.util.As.Type<T>
Nested classes/interfaces inherited from interface it.tidalwave.ui.core.PanelGroupControl
PanelGroupControl.Configuration<T>, PanelGroupControl.DefaultGroups, PanelGroupControl.Group, PanelGroupControl.Options
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PanelGroupControlSupport
(Function<it.tidalwave.util.As, Collection<PanelGroupProvider<S>>> pgProvider, org.springframework.beans.factory.BeanFactory beanFactory, String messageBusBeanName) Constructor for tets.protected
PanelGroupControlSupport
(org.springframework.beans.factory.BeanFactory beanFactory, String messageBusBeanName) This class doesn't rely on the @SimpleSubscriber/@ListensTo annotations to avoid having a dependency on the MessageBus runtime, so it dynamically queries aBeanFactory
. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
assemble
(PanelGroupControl.Group group, List<? extends PanelGroupProvider<S>> panelProviders, T topContainer, Map<PanelGroupControl.Group, List<PanelGroupControl.Options>> groupOptions, List<PanelGroupControl.Options> options) Assemble a set of panes for the given group.protected abstract void
onShowRequest
(PanelShowRequest panelShowRequest) protected void
void
setup
(PanelGroupControl.Configuration<T> configuration) Sets up panel groups according to the givenPanelGroupControl.Configuration
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.tidalwave.util.As
as, as, asMany, asMany, maybeAs, maybeAs
Methods inherited from interface it.tidalwave.ui.core.PanelGroupControl
config, show
-
Constructor Details
-
PanelGroupControlSupport
protected PanelGroupControlSupport(@Nonnull org.springframework.beans.factory.BeanFactory beanFactory, @Nonnull String messageBusBeanName) This class doesn't rely on the @SimpleSubscriber/@ListensTo annotations to avoid having a dependency on the MessageBus runtime, so it dynamically queries aBeanFactory
. -
PanelGroupControlSupport
protected PanelGroupControlSupport(@Nonnull Function<it.tidalwave.util.As, Collection<PanelGroupProvider<S>>> pgProvider, @Nonnull org.springframework.beans.factory.BeanFactory beanFactory, @Nonnull String messageBusBeanName) Constructor for tets.
-
-
Method Details
-
setup
Sets up panel groups according to the givenPanelGroupControl.Configuration
.- Specified by:
setup
in interfacePanelGroupControl<T>
- Parameters:
configuration
- the configuration
-
assemble
protected abstract void assemble(@Nonnull PanelGroupControl.Group group, @Nonnull List<? extends PanelGroupProvider<S>> panelProviders, @Nonnull T topContainer, @Nonnull Map<PanelGroupControl.Group, List<PanelGroupControl.Options>> groupOptions, @Nonnull List<PanelGroupControl.Options> options) Assemble a set of panes for the given group.- Parameters:
group
- theGroup
panelProviders
- thePanelGroupProvider
s associated to the givenGroup
topContainer
- the top containergroupOptions
- options for each groupoptions
- options for doing the job
-
onShowRequest
-
publish
-