|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewContext
Manager for tool and editor views.
The view manager provides methods to:
Method Summary | |
---|---|
void |
addViewContextListener(ViewContextListener listener)
Adds a listener for view context events. |
boolean |
canEditPart(org.openpermis.policy.bean.PartBean part)
Tests if the part specified can be edited. |
boolean |
closeView(View view,
boolean force)
Closes the specified view. |
Editor |
editPart(org.openpermis.policy.bean.PartBean part)
Opens an editor for the specified part. |
void |
openView(View view)
Opens the specified view. |
void |
removeViewContextListener(ViewContextListener listener)
Removes a listener from this view context. |
void |
updateViewTitle(View view)
Updates the title of the specified view. |
Methods inherited from interface org.openpermis.editor.policy.gui.binding.ErrorReporter |
---|
showStatusError |
Method Detail |
---|
void addViewContextListener(ViewContextListener listener)
The same listener
object may be added more than once, and will be called as many
times as it is added.
If the listener
is null
, no action is taken.
listener
- the listener to add, may be null
.void removeViewContextListener(ViewContextListener listener)
If the same listener
was added more than once, it will be notified one less
time after being removed.
If the listener
is null
, or was never added, no action is taken.
listener
- the listener to be removed, may be null
.Editor editPart(org.openpermis.policy.bean.PartBean part)
If there is already an editor open, the editor will be shown.
part
- the part to edit.
null
if the part cannot be edited.boolean canEditPart(org.openpermis.policy.bean.PartBean part)
There are part types for which there may be no editor type registered, in such a case
the part is not editable and calling editPart(PartBean)
will yield a null
editor. Use this method if you want to test prior to actually creating the editor.
part
- the part to test.
true
if the part can be edited, false
otherwise.void updateViewTitle(View view)
view
- the view for which to update the title.void openView(View view)
view
- the view to be opened.boolean closeView(View view, boolean force)
view
- the view to be closed.force
- true
to force closing of the view.
true
if the view was closed, false
if the view denied closing.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG