|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.presenter.Presenter<ApplicationState>
org.openpermis.editor.policy.presenter.RecentFilesPresenter
public class RecentFilesPresenter
Presenter class for the application recent files list.
Constructor Summary | |
---|---|
RecentFilesPresenter(ApplicationState applicationState)
Creates a recent files presenter that uses the global application state. |
Method Summary | |
---|---|
void |
activeToFront()
Moves the active element to the front of the list. |
void |
clearRecentFiles()
Clears the list of recent files. |
void |
dispose()
Disposes this presenter. |
String |
getActive()
Returns the currently active file. |
org.jdesktop.observablecollections.ObservableList<String> |
getRecentFiles()
Returns the recent files list as observable list. |
void |
recentFilesChanged()
Called whenever the recent files list of the application state model changes. |
void |
removeActive()
Removes the active file. |
void |
setActive(String active)
Sets the currently active file. |
Methods inherited from class org.openpermis.editor.policy.presenter.Presenter |
---|
addPropertyChangeListener, firePropertyChange, getModel, getTitleParameters, removePropertyChangeListener, setTitleParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecentFilesPresenter(ApplicationState applicationState)
Application.getApplicationState()
Method Detail |
---|
public org.jdesktop.observablecollections.ObservableList<String> getRecentFiles()
public void activeToFront()
public void removeActive()
public void clearRecentFiles()
public String getActive()
null
.public void setActive(String active)
active
- the file to set active.public void dispose()
Presenter
The presenter has to remove all listeners registered.
dispose
in class Presenter<ApplicationState>
public void recentFilesChanged()
|
![]() |
||||||||
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