@ComponentSpecification public interface DialogManager
Dialog
s.Modifier and Type | Method and Description |
---|---|
Dialog |
getCurrentDialog(String type)
This method gets the current
Dialog of the given type . |
Dialog |
getCurrentMainDialog()
|
DialogPlace |
getCurrentPlace()
This method gets the current
DialogPlace . |
PopupDialog |
getCurrentPopupDialog()
This method gets the current
PopupDialog . |
Dialog |
getDialog(String dialogId)
|
void |
initialize(DialogPlace defaultPlace)
This method initializes this
DialogManager . |
void |
navigateBack()
This method navigates back in the history to the
DialogPlace that has been visited before. |
void |
navigateForward()
This method navigates forward in the history.
|
void |
navigateTo(DialogPlace place)
|
void |
navigateTo(String dialogId)
This is a convenience method for
. |
ApplicationWindow |
openInNewWindow(DialogPlace place)
|
Dialog getDialog(String dialogId) throws ObjectNotFoundException
dialogId
- the ID
of the requested Dialog
.Dialog
.ObjectNotFoundException
- if no Dialog
with the given dialogId
.PopupDialog getCurrentPopupDialog()
PopupDialog
. If multiple PopupDialog
s are open, it will
return the top-level one. PopupDialog
there can also be simple
popups
that are NOT considered by this method.PopupDialog
or null
if no PopupDialog
is currently open.void initialize(DialogPlace defaultPlace)
DialogManager
. It opens the first dialog according to the initial
DialogPlace
that may be provided by the user e.g. from a bookmark. If no DialogPlace
is
given by the user, the defaultPlace
is opened.defaultPlace
- is the DialogPlace
of the start Dialog
to open as default.DialogPlace getCurrentPlace()
DialogPlace
.DialogPlace
. Will be null
until initialize(DialogPlace)
has been called.void navigateBack()
DialogPlace
that has been visited before. In a
web-application this can also be triggered by pressing the back button.void navigateForward()
navigateBack()
was invoked, this method will
go to the DialogPlace
that has been visited before the invocation of navigateBack()
. In
a web-application this can also be triggered by pressing the forward button.void navigateTo(String dialogId)
navigateTo
(new DialogPlace
(dialogId))
. DialogPlace
for further details.dialogId
- is the ID
of the dialog to open.void navigateTo(DialogPlace place)
DialogPlace
and its according Dialog
in the current
ApplicationWindow
. The current place
is added to the navigation
history.place
- is the DialogPlace
identifying the Dialog
to open.ApplicationWindow openInNewWindow(DialogPlace place)
DialogPlace
and its according Dialog
in a new
ApplicationWindow
. The operation does not affect the current navigation history. In case of a
web-application a new browser window (or tab) is opened that starts another instance of the client at the
given place
. In a native client a new window is opened with its own DialogManager
instance and new instances of all Dialog
s.place
- is the DialogPlace
to open in the new window.Copyright © 2001–2016 mmm-Team. All rights reserved.