public class RightsEditorContext
extends java.lang.Object
RightsEditor
.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,RightsEditor> |
editors
The map of registered editors, the map key is the resource type name
|
private InputDialog |
inputDialog
The input dialog the rights editors may use for their UI
|
private static RightsEditorContext |
instance
The singleton instance
|
private ModalDialogs |
modalDialogs
The modal dialog UI service the rights editors may use for their UI
|
private com.google.gwt.user.client.ui.HasWidgets |
parent
The parent widget the rights editors may use for their UI
|
Modifier | Constructor and Description |
---|---|
private |
RightsEditorContext()
Default ctor.
|
Modifier and Type | Method and Description |
---|---|
RightsEditor |
getEditor(java.lang.String resourceType)
Returns the registered editor instance for a particular resource type.
|
InputDialog |
getInputDialog()
Returns the input dialog the rights editors may use for their UI.
|
ModalDialogs |
getModalDialogs()
Returns the modal dialog UI service the rights editors may use for their UI.
|
com.google.gwt.user.client.ui.HasWidgets |
getParent()
Returns the parent widget the rights editors may use for their UI.
|
static RightsEditorContext |
instance()
Singleton creator method.
|
RightsEditorContext |
registerEditor(java.lang.String resourceType,
RightsEditor editor)
Registers an editor for a particular resource type.
|
void |
setInputDialog(InputDialog inputDialog)
Sets the input dialog the rights editors may use for their UI.
|
void |
setModalDialogs(ModalDialogs modalDialogs)
Sets the modal dialog UI service the rights editors may use for their UI.
|
void |
setParent(com.google.gwt.user.client.ui.HasWidgets parent)
Sets the parent widget the rights editors may use for their UI.
|
private static RightsEditorContext instance
private java.util.Map<java.lang.String,RightsEditor> editors
private InputDialog inputDialog
private com.google.gwt.user.client.ui.HasWidgets parent
private ModalDialogs modalDialogs
public static RightsEditorContext instance()
public RightsEditor getEditor(java.lang.String resourceType)
resourceType
- Resource type name.public RightsEditorContext registerEditor(java.lang.String resourceType, RightsEditor editor)
resourceType
- Resource type name.editor
- The editor being registered.public InputDialog getInputDialog()
public void setInputDialog(InputDialog inputDialog)
inputDialog
- InputDialog
instance.public com.google.gwt.user.client.ui.HasWidgets getParent()
public void setParent(com.google.gwt.user.client.ui.HasWidgets parent)
parent
- Parent widget.public ModalDialogs getModalDialogs()
public void setModalDialogs(ModalDialogs modalDialogs)
modalDialogs
- Modal dialog service.