|
![]() |
||||||||
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.
Field Summary | |
---|---|
private org.jdesktop.beansbinding.BindingGroup |
bindingGroup
The binding group used to bind the presenter to view components. |
private P |
presenter
The presenter of this view. |
private PropertyChangeDispatcher |
propertyChangeDispatcher
Dispatcher attached to the presenter to update the title parameters. |
Constructor Summary | |
---|---|
protected |
AbstractEditor(org.jdesktop.application.ApplicationContext context,
AdapterTrader trader,
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. |
protected void |
contentPaneCreated()
Hook called after the content pane has been created. |
protected JComponent |
createContentPane()
Creates the content pane of this view. |
void |
dispose()
Disposes the editor which should remove all listeners it has added. |
(package private) abstract void |
fillContentPane(JPanel panel)
|
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, detach, editPart, getActionMap, getAdapteeTrader, getContentPane, getIcon, getResourceMap, getTitle, getViewContext, label, openView, showStatusError, toolBar, 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, getIcon, getTitle |
Field Detail |
---|
private final P extends PartPresenter<?> presenter
private final PropertyChangeDispatcher propertyChangeDispatcher
private final org.jdesktop.beansbinding.BindingGroup bindingGroup
Constructor Detail |
---|
protected AbstractEditor(org.jdesktop.application.ApplicationContext context, AdapterTrader trader, 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 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.abstract void fillContentPane(JPanel panel)
protected JComponent createContentPane()
AbstractView
createContentPane
in class AbstractView
null
.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG