|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ToolController
Description:
A graphical thing displayed on the right side of the screen, containing
mainly links which are offered in the current process. The order the Header,
Links, or component are added determines their vertical position. Direction
is top-down.
| Method Summary | |
|---|---|
void |
addComponent(Component component)
the most generic solution, the Tool renderer will just display the component, nothing more |
void |
addComponent(Component component,
java.lang.String ident)
the most generic solution, the Tool renderer will just display the component, nothing more |
void |
addHeader(java.lang.String text)
a header text like 'Course tools' 'Actions' 'Edit' or whatever |
void |
addHeader(java.lang.String text,
java.lang.String ident)
a header text like 'Course tools' 'Actions' 'Edit' or whatever |
void |
addHeader(java.lang.String text,
java.lang.String ident,
java.lang.String cssClass)
a header text like 'Course tools' 'Actions' 'Edit' or whatever |
void |
addLink(java.lang.String action,
java.lang.String text)
a link (= a velocity $r.link(..)). |
void |
addLink(java.lang.String action,
java.lang.String text,
java.lang.String ident,
java.lang.String cssClass)
a link (= a velocity $r.link(..)). |
void |
addLink(java.lang.String action,
java.lang.String text,
java.lang.String ident,
java.lang.String cssClass,
boolean isDownloadLink)
a link (= a velocity $r.link(..)). |
void |
addPopUpLink(java.lang.String action,
java.lang.String text,
java.lang.String ident,
java.lang.String cssClass,
java.lang.String width,
java.lang.String height,
boolean browserMenubarEnabled)
a link (= a velocity $r.link(..)). |
boolean |
isEmpty()
|
void |
remove(java.lang.String ident)
Remove tool entry with given ident |
void |
setDragEnabled(boolean dragEnabled)
|
void |
setEnabled(java.lang.String ident,
boolean enabled)
Enable/Disable a tool entry. |
| Methods inherited from interface org.olat.core.gui.control.Controller |
|---|
addControllerListener, dispatchEvent, dispose, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed |
| Method Detail |
|---|
void addHeader(java.lang.String text)
text -
void addHeader(java.lang.String text,
java.lang.String ident)
text - ident - An ident to reference this entry
void addHeader(java.lang.String text,
java.lang.String ident,
java.lang.String cssClass)
text - ident - An ident to reference this entrycssClass - a css class that provides an toolbox title bar image.
optional, can be null (default image)
void addLink(java.lang.String action,
java.lang.String text)
action - the command which the event will have when the event is fired
because the user clicked this link.text -
void addLink(java.lang.String action,
java.lang.String text,
java.lang.String ident,
java.lang.String cssClass)
action - the command which the event will have when the event is fired
because the user clicked this link.text - ident - An ident to reference this entrycssClass - The class for the enclosing div tag or null if default
class used
void addLink(java.lang.String action,
java.lang.String text,
java.lang.String ident,
java.lang.String cssClass,
boolean isDownloadLink)
action - the command which the event will have when the event is fired
because the user clicked this link.text - ident - An ident to reference this entrycssClass - The class for the enclosing div tag or null if default
class usedisDownloadLink - if the link results in a download !! works not together with cssClass != null
void addPopUpLink(java.lang.String action,
java.lang.String text,
java.lang.String ident,
java.lang.String cssClass,
java.lang.String width,
java.lang.String height,
boolean browserMenubarEnabled)
action - the command which the event will have when the event is fired
because the user clicked this link.text - ident - An ident to reference this entrycssClass - The class for the enclosing div tag or null if default
class usedwidth - popup window widthheight - popup window heightbrowserMenubarEnabled - true: browser menu bar visiblevoid addComponent(Component component)
component -
void addComponent(Component component,
java.lang.String ident)
component - ident - An ident to reference this entryvoid remove(java.lang.String ident)
ident -
void setEnabled(java.lang.String ident,
boolean enabled)
ident - enabled - void setDragEnabled(boolean dragEnabled)
dragEnabled - if true, all active toolentries can be draggedboolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||