|
![]() |
||||||||
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<ProblemListPresenter>
org.openpermis.editor.policy.view.ProblemListTool
public class ProblemListTool
Tool view that displays all target access rules in a policy.
Constructor Summary | |
---|---|
ProblemListTool(ApplicationContext context,
Adapter trader,
PolicyIconRegistry iconRegistry)
Creates an target access rules tool view. |
Method Summary | |
---|---|
protected void |
attachPresenter(ProblemListPresenter presenter,
org.jdesktop.beansbinding.BindingGroup bindings)
Attaches any listeners required to the new presenter and binds components. |
JComponent |
createContentPane()
Creates the content pane of this view. |
protected void |
detachPresenter(ProblemListPresenter presenter)
Unlinks any listeners from the specified old presenter. |
void |
editProblem()
Command to edit the active target access rule. |
String |
getDefaultLocation()
Returns the desired default location relative to the working area for this tool view. |
void |
propertyChange(PropertyChangeEvent event)
|
void |
refresh(org.openpermis.policy.bean.PolicyBean policy,
PolicyContext context)
Instructs the tool to refresh itself with the specified policy. |
protected void |
updateContent()
Prompts the tool to update its content according to the presenter state. |
void |
valueChanged(ListSelectionEvent e)
|
Methods inherited from class org.openpermis.editor.policy.view.AbstractToolView |
---|
contentPaneCreated, createToolBar, getPresenter, getToolBar, getToolIdentifier, setPresenter |
Methods inherited from class org.openpermis.editor.policy.view.AbstractView |
---|
attach, canClose, canEditPart, closeView, createEditor, createFormBuilder, createTranslationConverter, detach, editPart, getAction, getActionMap, getAdapteeTrader, getApplicationContext, getContentPane, getControlFactory, getDefaultFocusComponent, getIcon, getParentView, getResourceMap, getTitle, getTitleParameters, 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, canClose, detach, getContentPane, getDefaultFocusComponent, getIcon, getParentView, getTitle, isEmbedded, setParentView |
Constructor Detail |
---|
public ProblemListTool(ApplicationContext context, Adapter trader, PolicyIconRegistry iconRegistry)
context
- the application context used to lookup the action and resource map.iconRegistry
- the registry for policy icons.Method Detail |
---|
@Action public void editProblem()
public void refresh(org.openpermis.policy.bean.PolicyBean policy, PolicyContext context)
Tool
Called whenever the policy that this view renders changes.
refresh
in interface Tool
policy
- the policy to refresh with.context
- the policy context to use.protected void updateContent()
AbstractToolView
The default implementation does nothing.
updateContent
in class AbstractToolView<ProblemListPresenter>
protected void detachPresenter(ProblemListPresenter presenter)
AbstractToolView
This is called before a new presenter is set.
The default implementation removes any bean bindings.
detachPresenter
in class AbstractToolView<ProblemListPresenter>
presenter
- the presenter to unlink.AbstractToolView.setPresenter(Presenter)
protected void attachPresenter(ProblemListPresenter presenter, org.jdesktop.beansbinding.BindingGroup bindings)
AbstractToolView
The default implementation does nothing.
attachPresenter
in class AbstractToolView<ProblemListPresenter>
presenter
- the new presenter to attach to.bindings
- the binding group to add bindings to.public String getDefaultLocation()
Tool
getDefaultLocation
in interface Tool
getDefaultLocation
in class AbstractToolView<ProblemListPresenter>
public JComponent createContentPane()
AbstractView
createContentPane
in class AbstractView
null
.public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
|
![]() |
||||||||
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