public interface DialogView
| Modifier and Type | Method and Description |
|---|---|
void |
clearObject(DialogObjectConstant target)
Clear the given dialog object.
|
void |
disable(DialogObjectConstant target)
Disable the given dialog object.
|
void |
dispatchEvent(ListRow listRow,
DialogObjectConstant trigger,
Object event,
String method)
Dispatch an event to the dialog controller.
|
void |
enable(DialogObjectConstant target)
Enable the given dialog object.
|
DialogObjectConstant |
getCurrentNotebookPage(DialogObjectConstant notebook)
Get the current page for the given Notebook.
|
DialogObjectConstant |
getDefaultButton()
Get the current default button for the dialog.
|
int |
getDialogInstanceNumber()
Gets the 1-based dialog instance number.
|
List<DialogObjectConstant> |
getDialogObjectConstants()
Returns the list of all dialog object constants for the dialog.
|
Object |
getEffect(DialogObjectConstant target)
Get the effect object for the given dialog object.
|
boolean |
getMandatory(DialogObjectConstant target)
Get the mandatory property for the given dialog object.
|
String |
getTitle(DialogObjectConstant dialogObject)
Get the message title property for the specified dialog object.
|
ViewModel |
getViewModel() |
Object |
getWidgetProperty(DialogObjectConstant target,
String key)
Get a property value for a widget.
|
void |
hide(DialogObjectConstant target)
Hide the given dialog object.
|
void |
init()
Invoked after the view has been fully initialized.
|
boolean |
isEditable(DialogObjectConstant target)
Check if the given dialog object is editable.
|
boolean |
isEnabled(DialogObjectConstant target)
Check if the given dialog object is enabled.
|
boolean |
isMandatory(DialogObjectConstant target)
Check if the given dialog object is mandatory.
|
boolean |
isModal()
Check if the given dialog is modal.
|
boolean |
isShown(DialogObjectConstant target)
Check if the given dialog object is shown.
|
void |
performAction(ActionType action,
DialogObjectConstant target)
Perform the specified action.
|
void |
setCurrentNotebookPage(DialogObjectConstant notebook,
DialogObjectConstant page)
Set the current Notebook page to show.
|
void |
setDefaultButton(DialogObjectConstant defaultButton)
Set the new default button for the dialog.
|
void |
setDialogTitle(String title)
Set the title to use for this dialog instance.
|
void |
setEditable(DialogObjectConstant target,
boolean value)
Set the editable property for the given dialog object.
|
void |
setEffect(DialogObjectConstant target,
Object effect)
Set the effect object for the given dialog object.
|
void |
setMandatory(DialogObjectConstant target,
boolean value)
Set the mandatory property for the given dialog object.
|
void |
setModal(boolean modal)
Set the modal property for a dialog.
|
void |
setProperty(DialogObjectConstant target,
String key,
Object value)
Set a property for the given dialog component.
|
void |
setWidgetProperty(DialogObjectConstant target,
String key,
Object value)
Set the given property value for a widget.
|
void |
show(DialogObjectConstant target)
Show the given dialog object.
|
void |
update(Collection<no.esito.jvine.controller.OSNode<?>> nodes)
Notify the view that the given roles are updated.
|
void init()
void update(Collection<no.esito.jvine.controller.OSNode<?>> nodes)
nodes - a collection of (generated) role enums.void performAction(ActionType action, DialogObjectConstant target)
action - the action to perform.target - the action's target.boolean isEditable(DialogObjectConstant target)
target - the dialog object to check.boolean isEnabled(DialogObjectConstant target)
target - the dialog object to check.boolean isMandatory(DialogObjectConstant target)
target - the dialog object to check.boolean isShown(DialogObjectConstant target)
target - the dialog object to check.void setModal(boolean modal)
modal - true if the dialog should be modalboolean isModal()
Object getEffect(DialogObjectConstant target)
target - the dialog object to check.void setEditable(DialogObjectConstant target, boolean value)
target - the dialog object to set.value - the new value for the property.void setMandatory(DialogObjectConstant target, boolean value)
target - the dialog object to set.value - the new value for the property.boolean getMandatory(DialogObjectConstant target)
target - the dialog object with said propertyvoid setEffect(DialogObjectConstant target, Object effect)
target - the dialog object to set.effect - the effect object to set.void enable(DialogObjectConstant target)
target - the dialog object to enable.void disable(DialogObjectConstant target)
target - the dialog object to disable.void show(DialogObjectConstant target)
target - the dialog object to show.void hide(DialogObjectConstant target)
target - the dialog object to hide.void setWidgetProperty(DialogObjectConstant target, String key, Object value)
target - the dialog object to set the property forkey - the property keyvalue - the property value to setObject getWidgetProperty(DialogObjectConstant target, String key)
target - the dialog object to get the property forkey - the property keyvoid clearObject(DialogObjectConstant target)
target - the dialog object to clear.void setCurrentNotebookPage(DialogObjectConstant notebook, DialogObjectConstant page)
notebook - the Notebook.page - the new current page for the Notebook.DialogObjectConstant getCurrentNotebookPage(DialogObjectConstant notebook)
notebook - the Notebook in question.void setProperty(DialogObjectConstant target, String key, Object value)
target - the dialog object to set the property on.key - the property to set.value - the new value to set for the property.ViewModel getViewModel()
String getTitle(DialogObjectConstant dialogObject)
dialogObject - the dialog objectnull if no title existvoid setDialogTitle(String title)
title - the new title to use for the instanceint getDialogInstanceNumber()
List<DialogObjectConstant> getDialogObjectConstants()
void dispatchEvent(ListRow listRow, DialogObjectConstant trigger, Object event, String method)
listRow - the Table or List row in which the event occurred, or null if not in a table/listtrigger - the cause of the eventevent - the type of eventmethod - the event method nameDialogObjectConstant getDefaultButton()
void setDefaultButton(DialogObjectConstant defaultButton)
defaultButton - the new default button for the dialogCopyright © 2006–2020 Esito AS. All rights reserved.