|
![]() |
||||||||
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<RecentFilesPresenter>
org.openpermis.editor.policy.view.RecentFilesTool
public class RecentFilesTool
Tool showing recently opened files.
Field Summary |
---|
Fields inherited from class org.openpermis.editor.policy.view.AbstractToolView |
---|
DEFAULT_LOCATION |
Constructor Summary | |
---|---|
RecentFilesTool(org.jdesktop.application.ApplicationContext context,
AdapterTrader trader,
PolicyLoader loader,
RecentFilesPresenter presenter)
Creates a new recent files tool. |
Method Summary | |
---|---|
protected void |
attachPresenter(RecentFilesPresenter presenter,
org.jdesktop.beansbinding.BindingGroup bindings)
Attaches any listeners required to the new presenter and binds components. |
void |
clearFiles()
|
JComponent |
createContentPane()
Creates the content pane of this view. |
void |
deleteSelectedFile()
|
protected void |
detachPresenter(RecentFilesPresenter 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. |
void |
listElementPropertyChanged(org.jdesktop.observablecollections.ObservableList fileList,
int index)
|
void |
listElementReplaced(org.jdesktop.observablecollections.ObservableList fileList,
int index,
Object oldElement)
|
void |
listElementsAdded(org.jdesktop.observablecollections.ObservableList fileList,
int index,
int length)
|
void |
listElementsRemoved(org.jdesktop.observablecollections.ObservableList fileList,
int index,
List oldElements)
|
void |
openOtherFile()
|
void |
openSelectedFile()
|
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 |
updateActions()
Prompts the tool to update its actions according to the presenter state. |
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, 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.View |
---|
attach, canClose, detach, getContentPane, getIcon, getTitle |
Constructor Detail |
---|
public RecentFilesTool(org.jdesktop.application.ApplicationContext context, AdapterTrader trader, PolicyLoader loader, RecentFilesPresenter presenter)
context
- the application context to retrieve resources from.loader
- the loader for policies.presenter
- the presenter of this tool.Method Detail |
---|
@Action public void openOtherFile()
@Action public void deleteSelectedFile()
@Action public void openSelectedFile()
@Action public void clearFiles()
protected void updateActions()
AbstractToolView
The default implementation does nothing.
updateActions
in class AbstractToolView<RecentFilesPresenter>
protected void attachPresenter(RecentFilesPresenter presenter, org.jdesktop.beansbinding.BindingGroup bindings)
AbstractToolView
The default implementation initializes the content pane if necessary.
attachPresenter
in class AbstractToolView<RecentFilesPresenter>
presenter
- the new presenter to attach to.bindings
- the binding group to add bindings to.protected void detachPresenter(RecentFilesPresenter presenter)
AbstractToolView
This is called before a new presenter is set.
The default implementation removes any bean bindings.
detachPresenter
in class AbstractToolView<RecentFilesPresenter>
presenter
- the presenter to unlink.AbstractToolView.setPresenter(Presenter)
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.public bibliothek.gui.dock.common.CLocation getDefaultLocation()
Tool
getDefaultLocation
in interface Tool
getDefaultLocation
in class AbstractToolView<RecentFilesPresenter>
public JComponent createContentPane()
AbstractView
createContentPane
in class AbstractView
null
.public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public void listElementPropertyChanged(org.jdesktop.observablecollections.ObservableList fileList, int index)
listElementPropertyChanged
in interface org.jdesktop.observablecollections.ObservableListListener
public void listElementReplaced(org.jdesktop.observablecollections.ObservableList fileList, int index, Object oldElement)
listElementReplaced
in interface org.jdesktop.observablecollections.ObservableListListener
public void listElementsAdded(org.jdesktop.observablecollections.ObservableList fileList, int index, int length)
listElementsAdded
in interface org.jdesktop.observablecollections.ObservableListListener
public void listElementsRemoved(org.jdesktop.observablecollections.ObservableList fileList, int index, List oldElements)
listElementsRemoved
in interface org.jdesktop.observablecollections.ObservableListListener
|
![]() |
||||||||
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