|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.view.AbstractView
org.openpermis.editor.policy.view.AbstractEditor<P>
P
- the type of presenter bound to this view.public abstract class AbstractEditor<P extends PartPresenter<?>>
Abstract base class for editors of part presenters.
Constructor Summary | |
---|---|
protected |
AbstractEditor(ApplicationContext context,
Adapter adapter,
P presenter)
Creates an editor for the specified presenter. |
Method Summary | |
---|---|
void |
adjustTitleParameters()
Instructs the view to update its title once the parameters change. |
protected abstract void |
bind(org.jdesktop.beansbinding.BindingGroup bindings)
Binds all components to the presenter. |
boolean |
canClose()
Prompts the view to save unsaved changes before closing. |
void |
close()
|
protected void |
contentPaneCreated()
Hook called after the content pane has been created. |
void |
dispose()
Disposes the editor which should remove all listeners it has added. |
org.openpermis.policy.bean.SerialNumber |
getModelSerialNumber()
Returns the serial number of the model this editor is editing. |
protected P |
getPresenter()
Returns the presenter of this view. |
Object[] |
getTitleParameters()
Returns the parameters for the title of this view. |
boolean |
showYesNoDialog(String title,
String body,
int expectedValue)
Show yes-no-dialog. |
Methods inherited from class org.openpermis.editor.policy.view.AbstractView |
---|
attach, canEditPart, closeView, createContentPane, createEditor, createFormBuilder, createTranslationConverter, detach, editPart, getAction, getActionMap, getAdapteeTrader, getApplicationContext, getContentPane, getControlFactory, getDefaultFocusComponent, getIcon, getParentView, getResourceMap, getTitle, getViewContext, isEmbedded, openView, setEnabled, setParentView, showStatusError, updateTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openpermis.editor.policy.view.View |
---|
attach, detach, getContentPane, getDefaultFocusComponent, getIcon, getParentView, getTitle, isEmbedded, setParentView |
Constructor Detail |
---|
protected AbstractEditor(ApplicationContext context, Adapter adapter, P presenter)
context
- the application context.presenter
- the presenter for this editor.Method Detail |
---|
protected final P getPresenter()
public void adjustTitleParameters()
protected abstract void bind(org.jdesktop.beansbinding.BindingGroup bindings)
This method is called after creation of the content pane.
bindings
- the binding group to add bindings to.public boolean showYesNoDialog(String title, String body, int expectedValue)
title
- title-textbody
- body-textpublic void close()
public final org.openpermis.policy.bean.SerialNumber getModelSerialNumber()
Editor
getModelSerialNumber
in interface Editor
null
.public void dispose()
Editor
dispose
in interface Editor
protected void contentPaneCreated()
AbstractView
contentPaneCreated
in class AbstractView
public Object[] getTitleParameters()
AbstractView
The default implementations returns an empty array.
getTitleParameters
in class AbstractView
null
.public boolean canClose()
View
canClose
in interface View
canClose
in class AbstractView
true
if the view may be closed, false
otherwise.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG