|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.control.DefaultController
public abstract class DefaultController
Description:
| Method Summary | |
|---|---|
void |
addControllerListener(ControllerEventListener el)
Adds a controller as listener to this controller |
void |
addLoggingResourceable(ILoggingResourceable loggingResourceable)
Add a LoggingResourceable (e.g. |
void |
dispatchEvent(UserRequest ureq,
Component source,
Event event)
The event method will be called when a listener is added to a source and the source fires an event |
void |
dispatchEvent(UserRequest ureq,
Controller source,
Event event)
|
void |
dispose()
Controller should override the method doDispose() instead of this one. |
static int |
getControllerCount()
for debugging / statistical information only! |
Component |
getInitialComponent()
Get the initial component from this controller. |
IUserActivityLogger |
getUserActivityLogger()
FRAMEWORK USE ONLY! |
WindowControl |
getWindowControlForDebug()
used for debugging and errorlog information only!!! |
boolean |
isDisposed()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static int getControllerCount()
public WindowControl getWindowControlForDebug()
Controller
getWindowControlForDebug in interface Controllerpublic void addControllerListener(ControllerEventListener el)
Controller
addControllerListener in interface Controllerel - The controller that should be added as listenerController.addControllerListener(org.olat.core.gui.control.ControllerEventListener)
public final void dispatchEvent(UserRequest ureq,
Component source,
Event event)
Controller
dispatchEvent in interface Controllerureq - The user requestsource - The component who fired the eventevent - The eventNote: This method is final to make sure no subclass fiddles with this - core - framework method. As
the framework part includes setting up ThreadLocalUserActivityLogger etc
public void dispatchEvent(UserRequest ureq,
Controller source,
Event event)
dispatchEvent in interface ControllerEventListenerControllerEventListener.dispatchEvent(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)public Component getInitialComponent()
Controller
getInitialComponent in interface Controllerpublic void addLoggingResourceable(ILoggingResourceable loggingResourceable)
This method is usually called in the constructor of a Controller - in rarer cases it can be called outside constructors as well.
loggingResourceable - the loggingResourceable to be set on this Controller's
IUserActivityLoggerpublic IUserActivityLogger getUserActivityLogger()
Returns the UserActivityLogger of this controller or null if no logger is set yet.
getUserActivityLogger in interface Controllerpublic void dispose()
dispose in interface Controllerdispose in interface Disposableasynchronous - if true, then this method is invoked by a different
thread than the current user-gui-thread ("mouse-click-thread").
this means if set to true, then you should inform the user by
replacing the current render subtree of your controller's
component with e.g. a velocitycontainer stating a message like
'this object has been disposed by an other process/user. please
click some other link to continue...public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean isDisposed()
isDisposed in interface ControllerController.isDisposed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||