@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface DialogFactory
TabFactory
on its
methods. All methods annotated with TabFactory
will be detected and called to contribute tabs to the dialog.
The ordering of tabs inside the dialog can be set using the TabOrder
annotation.
For example:
@DialogFactory("page-properties") @TabOrder("Content", "Meta") public class PagePropertiesDialog { @TabFactory("Content") public void contentTab(TabBuilder tab) {...} @TabFactory("Meta") public void metaTab(TabBuilder tab) {...} }It can also be used on a method in a template. The method will be called to take care of the full dialog creation. Valid arguments for such a method are:
DialogBuilder
ConfiguredDialogDefinition
ConfiguredFormDialogDefinition
DialogCreationContext
Node
Item
UiConfig
WebContext
Context
User
MgnlUser
@DialogFactory("page-properties") public void pageProperties(DialogBuilder dialog) {...}You can use
I18nBasename
to specify which resource bundle should be
used for localization of the dialogs label and its fields.TabFactory
,
TabOrder
,
Template
,
DialogCreationContext
Copyright © 2009–2015 Magnolia International Ltd.. All rights reserved.