|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.Wiki
public class Wiki
This class represents an AceWiki wiki instance (including its graphical user interface). There is such a wiki object for every wiki user.
Method Summary | |
---|---|
void |
actionPerformed(nextapp.echo.app.event.ActionEvent e)
|
void |
back()
Go to the previous page in the history. |
void |
clearCookie(java.lang.String name)
Clears the given cookie on the client. |
void |
dispose()
Cleans up when the object is no longer used. |
void |
enqueueStrongAsyncTask(java.lang.String title,
java.lang.String message,
Task task)
Runs the task in an asynchronous way and shows a wait window while it is executed. |
void |
enqueueTask(java.lang.Runnable task)
Runs the task without showing a wait window while it is executed. |
void |
enqueueWeakAsyncTask(Task task)
Runs the task in an asynchronous way without showing a wait window. |
void |
externalEvent(echopoint.externalevent.ExternalEvent e)
|
void |
forward()
Go to the next page in the history. |
nextapp.echo.app.ApplicationInstance |
getApplication()
Returns the application instance object of this wiki. |
nextapp.echo.app.ContentPane |
getContentPane()
Returns the content pane containing the wiki GUI. |
java.lang.String |
getCookie(java.lang.String name)
Returns the value of the cookie on the client, or "" if there is no such cookie. |
AceWikiEngine |
getEngine()
Returns the AceWiki engine. |
static nextapp.echo.app.ResourceImageReference |
getImage(java.lang.String fileName)
Returns an image reference for a file in the AceWiki image directory with the given file name. |
static java.lang.String |
getInfo(java.lang.String key)
Returns information about AceWiki, like the version number and the release date. |
java.lang.String |
getLanguage()
Returns the language of this wiki instance. |
LanguageHandler |
getLanguageHandler()
Returns the language handler. |
Logger |
getLogger()
Returns the logger object. |
Ontology |
getOntology()
Returns the ontology; |
java.util.List<OntologyElement> |
getOntologyElements()
Returns all ontology elements. |
OntologyExportManager |
getOntologyExportManager()
Returns the ontology export manager. |
java.lang.String |
getParameter(java.lang.String paramName)
Returns the value of the given parameter. |
User |
getUser()
Returns the user of this wiki object. |
UserBase |
getUserBase()
Returns the user base for this wiki. |
boolean |
isEditable()
Returns whether the wiki is in the current situation editable. |
boolean |
isLoginEnabled()
Returns whether the login features are enabled. |
boolean |
isLoginRequiredForEditing()
Returns whether login is required for editing the wiki data. |
boolean |
isLoginRequiredForViewing()
Returns whether login is required for viewing the wiki data. |
boolean |
isReadOnly()
Returns true if this wiki is set to be read-only. |
boolean |
isUserRegistrationOpen()
Returns whether the user registration is open to everyone. |
void |
lock(nextapp.echo.app.event.ActionListener lockedListener)
This methods locks the general buttons of the wiki interface. |
void |
log(java.lang.String type,
java.lang.String text)
Writes the log entry to the log file. |
void |
login(User user,
boolean stayLoggedIn)
Logs in the given user. |
void |
logout()
Logs out the current user. |
void |
refresh()
Refreshes the current page. |
void |
removeWindow(nextapp.echo.app.WindowPane window)
Removes the window. |
void |
setCookie(java.lang.String name,
java.lang.String value)
Sets a cookie on the client. |
void |
setUser(User user)
Sets the user. |
void |
showAboutPage()
Show the about page. |
void |
showCreatorWindow(java.lang.String type,
int wordNumber,
nextapp.echo.app.event.ActionListener actionListener)
Shows a word creator window for the given word type and number. |
void |
showEditorWindow(OntologyElement element)
Shows a word editor window. |
void |
showIndexPage()
Show the index page. |
void |
showLoginWindow()
Shows the login window. |
void |
showPage(OntologyElement e)
Switches to the page of the given ontology element. |
void |
showPage(WikiPage page)
Switches to the given page. |
void |
showSearchPage()
Show the search page. |
void |
showStartPage()
Show the start page. |
void |
showWindow(nextapp.echo.app.WindowPane window)
Shows the window. |
void |
unlock()
Unlocks the wiki interface, if it has been locked before. |
void |
update()
Updates the GUI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public nextapp.echo.app.ContentPane getContentPane()
public nextapp.echo.app.ApplicationInstance getApplication()
public java.lang.String getParameter(java.lang.String paramName)
paramName
- The parameter name.
public boolean isLoginEnabled()
public boolean isLoginRequiredForViewing()
public boolean isLoginRequiredForEditing()
public boolean isUserRegistrationOpen()
public boolean isEditable()
public boolean isReadOnly()
public void showWindow(nextapp.echo.app.WindowPane window)
window
- The window to be shown.public void showEditorWindow(OntologyElement element)
element
- The ontology element to be edited.public void showCreatorWindow(java.lang.String type, int wordNumber, nextapp.echo.app.event.ActionListener actionListener)
type
- The word type.wordNumber
- The word number.actionListener
- The actionlistener.public void removeWindow(nextapp.echo.app.WindowPane window)
window
- The window to be removed.public void showLoginWindow()
public void showPage(WikiPage page)
page
- The page to switch to.public void showPage(OntologyElement e)
e
- The ontology element the page of which should be shown.public void back()
public void forward()
public void showStartPage()
public void showIndexPage()
public void showSearchPage()
public void showAboutPage()
public Ontology getOntology()
public OntologyExportManager getOntologyExportManager()
public UserBase getUserBase()
public java.util.List<OntologyElement> getOntologyElements()
public void update()
public void refresh()
public void actionPerformed(nextapp.echo.app.event.ActionEvent e)
actionPerformed
in interface nextapp.echo.app.event.ActionListener
public void externalEvent(echopoint.externalevent.ExternalEvent e)
externalEvent
in interface echopoint.externalevent.ExternalEventListener
public void log(java.lang.String type, java.lang.String text)
type
- The type of the log entry.text
- The text of the log entry.public void login(User user, boolean stayLoggedIn)
user
- The user to log in.stayLoggedIn
- Defines whether the user should stay logged in or not.public void logout()
public User getUser()
public void setUser(User user)
user
- The user.public void setCookie(java.lang.String name, java.lang.String value)
name
- The name of the cookie.value
- The value of the cookie.public void clearCookie(java.lang.String name)
name
- The name of the cookie.public java.lang.String getCookie(java.lang.String name)
name
- The name of the cookie.
public AceWikiEngine getEngine()
public java.lang.String getLanguage()
public LanguageHandler getLanguageHandler()
public Logger getLogger()
public void enqueueTask(java.lang.Runnable task)
task
- The task.public void enqueueStrongAsyncTask(java.lang.String title, java.lang.String message, Task task)
title
- The title of the wait window.message
- The message of the wait window.task
- The task.public void enqueueWeakAsyncTask(Task task)
task
- The task.public static java.lang.String getInfo(java.lang.String key)
key
- The key string.
public void dispose()
public void lock(nextapp.echo.app.event.ActionListener lockedListener)
lockedListener
- The listener to be called when one of the buttons is pressed.public void unlock()
public static nextapp.echo.app.ResourceImageReference getImage(java.lang.String fileName)
fileName
- The name of the image file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |