org.olat.bookmark
Class AddAndEditBookmarkController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.bookmark.AddAndEditBookmarkController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class AddAndEditBookmarkController
extends BasicController

Responsability:

Offers the possibility to save a new bookmark with a title and a description, or edit an existing one.

Events fired:

Workflow:

Hints:

empty doDispose().

Author:
Sabina Jeger

Constructor Summary
AddAndEditBookmarkController(UserRequest ureq, WindowControl wControl, Bookmark bm)
          Constructor of controller for editing a bookmark
AddAndEditBookmarkController(UserRequest ureq, WindowControl wControl, java.lang.String proposedTitle, java.lang.String detailData, OLATResourceable olatres, java.lang.String displayResourceableType)
          Constructor of controller for adding a bookmark
 
Method Summary
 void event(UserRequest ureq, Component source, Event event)
          abstract event method for subclasses.
 void event(UserRequest ureq, Controller source, Event event)
          the only method of the interface controllereventlistener.
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddAndEditBookmarkController

public AddAndEditBookmarkController(UserRequest ureq,
                                    WindowControl wControl,
                                    java.lang.String proposedTitle,
                                    java.lang.String detailData,
                                    OLATResourceable olatres,
                                    java.lang.String displayResourceableType)
Constructor of controller for adding a bookmark

Parameters:
ureq -
wControl -
proposedTitle - max 255 chars
detailData - max 255 chars
olatres -
displayResourceableType -

AddAndEditBookmarkController

public AddAndEditBookmarkController(UserRequest ureq,
                                    WindowControl wControl,
                                    Bookmark bm)
Constructor of controller for editing a bookmark

Parameters:
ureq -
wControl -
bm - bookmark to be edited
Method Detail

event

public void event(UserRequest ureq,
                  Component source,
                  Event event)
Description copied from class: DefaultController
abstract event method for subclasses. the event received from the component we are listening to are always rerouted to this method here, except when the component has been disposed, in which case the events are simply ignored.


event

public void event(UserRequest ureq,
                  Controller source,
                  Event event)
Description copied from class: DefaultController
the only method of the interface controllereventlistener. always gets called when a controller we 'subscribed' to fires an event. we provide a default implementation here since there are many controllers which are standalone and need no subcontrollers