org.openpermis.editor.policy.view
Class TargetEditor

java.lang.Object
  extended by org.openpermis.editor.policy.view.AbstractView
      extended by org.openpermis.editor.policy.view.AbstractEditor<TargetPresenter>
          extended by org.openpermis.editor.policy.view.TargetEditor
All Implemented Interfaces:
ErrorReporter, Editor, View

public class TargetEditor
extends AbstractEditor<TargetPresenter>

Editor for a TargetPresenter.

Since:
0.1.0

Field Summary
private  CheckList<org.openpermis.policy.bean.ActionBean> actionList
          The list of actions in the target.
private static org.slf4j.Logger LOGGER
          The logger object of this class.
private  JComboBox resourceDomain
          Chooser for the resource domain of the target.
 
Constructor Summary
TargetEditor(org.jdesktop.application.ApplicationContext context, AdapterTrader trader, TargetPresenter presenter)
          Creates a new editor view.
 
Method Summary
private  JComponent actionList()
           
 void addAction()
           
 void addResourceDomain()
           
protected  void bind(org.jdesktop.beansbinding.BindingGroup bindings)
          Binds all components to the presenter.
 void close()
           
 void editAction()
           
 void editResourceDomain()
           
 void fillContentPane(JPanel panel)
           
 void removeAction()
           
 void removeResourceDomain()
           
private  JComponent resourceDomainChooser()
           
 
Methods inherited from class org.openpermis.editor.policy.view.AbstractEditor
adjustTitleParameters, canClose, contentPaneCreated, createContentPane, dispose, getModelSerialNumber, getPresenter, getTitleParameters, showYesNoDialog
 
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

LOGGER

private static final org.slf4j.Logger LOGGER
The logger object of this class.

Since:
0.1.0

resourceDomain

private JComboBox resourceDomain
Chooser for the resource domain of the target.

Since:
0.1.0

actionList

private CheckList<org.openpermis.policy.bean.ActionBean> actionList
The list of actions in the target.

Since:
0.1.0
Constructor Detail

TargetEditor

public TargetEditor(org.jdesktop.application.ApplicationContext context,
                    AdapterTrader trader,
                    TargetPresenter presenter)
Creates a new editor view.

Parameters:
context - the application context used to lookup the action and resource map.
presenter - the presenter of this view.
Since:
0.1.0
Method Detail

addAction

@Action
public void addAction()
Since:
0.1.0

addResourceDomain

@Action
public void addResourceDomain()
Since:
0.1.0

removeResourceDomain

@Action
public void removeResourceDomain()
Since:
0.1.0

removeAction

@Action
public void removeAction()
Since:
0.1.0

editResourceDomain

@Action
public void editResourceDomain()
Since:
0.1.0

editAction

@Action
public void editAction()
Since:
0.1.0

close

@Action
public void close()
Since:
0.1.0

bind

protected void bind(org.jdesktop.beansbinding.BindingGroup bindings)
Description copied from class: AbstractEditor
Binds all components to the presenter.

This method is called after creation of the content pane.

Specified by:
bind in class AbstractEditor<TargetPresenter>
Parameters:
bindings - the binding group to add bindings to.
Since:
0.1.0

resourceDomainChooser

private JComponent resourceDomainChooser()
Since:
0.1.0

actionList

private JComponent actionList()
Since:
0.1.0

fillContentPane

public void fillContentPane(JPanel panel)
Specified by:
fillContentPane in class AbstractEditor<TargetPresenter>
Since:
0.1.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG