|
![]() |
||||||||
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.AbstractToolView<P>
P
- the presenter model type.public abstract class AbstractToolView<P extends Presenter<?>>
Abstract base class for tool views.
Field Summary | |
---|---|
protected static bibliothek.gui.dock.common.location.TreeLocationRoot |
DEFAULT_LOCATION
The default location for tool views. |
Constructor Summary | |
---|---|
AbstractToolView(org.jdesktop.application.ApplicationContext context,
AdapterTrader trader)
Creates an abstract tool view for the specified application context. |
Method Summary | |
---|---|
protected void |
attachPresenter(P presenter,
org.jdesktop.beansbinding.BindingGroup bindings)
Attaches any listeners required to the new presenter and binds components. |
protected void |
contentPaneCreated()
Hook called after the content pane has been created. |
protected JToolBar |
createToolBar()
Factory method to lazily create the view tool bar. |
protected void |
detachPresenter(P presenter)
Unlinks any listeners from the specified old presenter. |
bibliothek.gui.dock.common.CLocation |
getDefaultLocation()
Returns the desired default location relative to the working area for this tool view. |
protected P |
getPresenter()
Returns the presenter rendered by this view. |
JToolBar |
getToolBar()
Returns the tool bar of this tool view. |
String |
getToolIdentifier()
Returns a unique identifier for this tool view. |
protected void |
setPresenter(P presenter)
Sets the presenter that this view renders. |
protected void |
updateActions()
Prompts the tool to update its actions according to the presenter state. |
Methods inherited from class org.openpermis.editor.policy.view.AbstractView |
---|
attach, canClose, canEditPart, closeView, createContentPane, detach, editPart, getActionMap, getAdapteeTrader, getContentPane, getIcon, getResourceMap, getTitle, getTitleParameters, 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.Tool |
---|
refresh |
Methods inherited from interface org.openpermis.editor.policy.view.View |
---|
attach, canClose, detach, getContentPane, getIcon, getTitle |
Field Detail |
---|
protected static final bibliothek.gui.dock.common.location.TreeLocationRoot DEFAULT_LOCATION
Constructor Detail |
---|
public AbstractToolView(org.jdesktop.application.ApplicationContext context, AdapterTrader trader)
context
- the application context used to lookup the action and resource map.Method Detail |
---|
protected void updateActions()
The default implementation does nothing.
protected void detachPresenter(P presenter)
This is called before a new presenter is set.
The default implementation removes any bean bindings.
presenter
- the presenter to unlink.setPresenter(Presenter)
protected void attachPresenter(P presenter, org.jdesktop.beansbinding.BindingGroup bindings)
The default implementation initializes the content pane if necessary.
presenter
- the new presenter to attach to.bindings
- the binding group to add bindings to.protected void setPresenter(P presenter)
The view needs to take appropriate actions to rebind and render the presenter passed in, bindings to an old presenter are to be discarded in the process.
presenter
- the presenter to set.protected P getPresenter()
protected JToolBar createToolBar()
The default implementation creates a tool bar based on the resource key
View.toolbar
.
null
if this view does not feature a tool bar.public final String getToolIdentifier()
Tool
getToolIdentifier
in interface Tool
public bibliothek.gui.dock.common.CLocation getDefaultLocation()
Tool
getDefaultLocation
in interface Tool
public JToolBar getToolBar()
Tool
getToolBar
in interface Tool
protected void contentPaneCreated()
AbstractView
contentPaneCreated
in class AbstractView
|
![]() |
||||||||
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:33
Copyright (c) 2002-2007 Ergon Informatik AG