|
![]() |
||||||||
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<ActionPresenter>
org.openpermis.editor.policy.view.ActionEditor
public class ActionEditor
Editor for a ActionPresenter
.
Nested Class Summary | |
---|---|
(package private) class |
ActionEditor.ParametersModel
A model for the table representing the action's parameters. |
(package private) class |
ActionEditor.TypesEditor
The editor for the parameter type. |
Field Summary | |
---|---|
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
private JTextField |
nameField
The name field. |
private JTable |
parameterList
The parameter list. |
private ActionEditor.ParametersModel |
parameterModel
The parameter list model. |
private static Class<?>[] |
SUPPORTED_TYPES
An array of allowed action types. |
Constructor Summary | |
---|---|
ActionEditor(org.jdesktop.application.ApplicationContext context,
AdapterTrader trader,
ActionPresenter presenter)
Creates a new editor view. |
Method Summary | |
---|---|
void |
addParameter()
|
void |
ancestorAdded(AncestorEvent event)
|
void |
ancestorMoved(AncestorEvent event)
|
void |
ancestorRemoved(AncestorEvent event)
|
protected void |
bind(org.jdesktop.beansbinding.BindingGroup bindings)
Binds all components to the presenter. |
private Class<?> |
classFromString(String classSimpleName)
|
void |
fillContentPane(JPanel panel)
|
private String[] |
getSimpleClassNames(Class<?>[] classes)
|
private JComponent |
headerName()
|
void |
moveDownParameter()
|
void |
moveUpParameter()
|
private JComponent |
parameterList()
|
void |
removeParameter()
|
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 |
---|
private static final org.slf4j.Logger LOGGER
private static final Class<?>[] SUPPORTED_TYPES
private JTextField nameField
private JTable parameterList
private ActionEditor.ParametersModel parameterModel
Constructor Detail |
---|
public ActionEditor(org.jdesktop.application.ApplicationContext context, AdapterTrader trader, ActionPresenter presenter)
context
- the application context used to lookup the action and resource map.presenter
- the presenter of this view.Method Detail |
---|
private JComponent parameterList()
@Action public void moveUpParameter()
@Action public void moveDownParameter()
@Action public void addParameter()
@Action public void removeParameter()
protected void bind(org.jdesktop.beansbinding.BindingGroup bindings)
AbstractEditor
This method is called after creation of the content pane.
bind
in class AbstractEditor<ActionPresenter>
bindings
- the binding group to add bindings to.private Class<?> classFromString(String classSimpleName)
private String[] getSimpleClassNames(Class<?>[] classes)
private JComponent headerName()
public void fillContentPane(JPanel panel)
fillContentPane
in class AbstractEditor<ActionPresenter>
public void ancestorAdded(AncestorEvent event)
ancestorAdded
in interface AncestorListener
public void ancestorMoved(AncestorEvent event)
ancestorMoved
in interface AncestorListener
public void ancestorRemoved(AncestorEvent event)
ancestorRemoved
in interface AncestorListener
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG