PromptStyle (enum)

How prompting for new values of a property/arguments for an action should be performed

API

PromptStyle.java
enum PromptStyle {
  AS_CONFIGURED     (1)
  DIALOG     (2)
  DIALOG_SIDEBAR     (3)
  DIALOG_MODAL     (4)
  INLINE     (5)
  INLINE_AS_IF_EDIT     (6)
  NOT_SPECIFIED     (7)
  boolean isDialogAny()
  boolean isInline()
  boolean isInlineAsIfEdit()
  boolean isInlineAny()
}
1 AS_CONFIGURED

Prompt using the style configured by causeway.viewer.wicket.promptStyle .

2 DIALOG

Use a dialog for the prompt.

3 DIALOG_SIDEBAR

Use a dialog for the prompt, rendered in a sidebar.

4 DIALOG_MODAL

Use a dialog for the prompt, rendered in a modal dialog.

5 INLINE

Show the form inline, temporarily replacing the rendering of the property.

6 INLINE_AS_IF_EDIT

Applies only to actions, show the form inline, invoked as if editing the property.

7 NOT_SPECIFIED

Ignore the value provided by this annotation (meaning that the framework will keep searching, in meta annotations or superclasses/interfaces).

Members

AS_CONFIGURED

Prompt using the style configured by causeway.viewer.wicket.promptStyle .

If no style is configured, then #INLINE is assumed.

DIALOG

Use a dialog for the prompt.

This will be either modal dialog (same as if #DIALOG_MODAL was selected) or sidebar (same as if #DIALOG_SIDEBAR was selected) depending on the value of the causeway.viewer.wicket.dialogMode configuration property.

DIALOG_SIDEBAR

Use a dialog for the prompt, rendered in a sidebar.

DIALOG_MODAL

Use a dialog for the prompt, rendered in a modal dialog.

INLINE

Show the form inline, temporarily replacing the rendering of the property.

INLINE_AS_IF_EDIT

Applies only to actions, show the form inline, invoked as if editing the property.

Note that:

  • Only one such action should have this attribute set per property. If there are multiple actions, then the first one discovered with the attribute is used.

  • If the property is editable, then this attribute is ignored (and the action is treated as having a prompt style of #INLINE ).

  • If applied to a property, then the property’s prompt style is simply treated as #INLINE .

NOT_SPECIFIED

Ignore the value provided by this annotation (meaning that the framework will keep searching, in meta annotations or superclasses/interfaces).