|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.components.Component
org.olat.core.gui.components.link.Link
public class Link
Description:
Use @see LinkFactory to get Link objects.
Initial Date: July 06, 2006
| Nested Class Summary | |
|---|---|
static class |
Link.MouseEvent
valid events for the register mouse event stuff |
| Field Summary | |
|---|---|
static int |
BUTTON
|
static int |
BUTTON_SMALL
|
static int |
BUTTON_XSMALL
|
static int |
FLEXIBLEFORMLNK
|
static int |
LINK
|
static int |
LINK_BACK
|
static int |
LINK_CUSTOM_CSS
each can be combined with NONTRANSLATEDcan not be combined with each other! |
static int |
NONTRANSLATED
can be added to one of the following: |
static int |
TOOLENTRY_CLOSE
|
static int |
TOOLENTRY_DEFAULT
to be refactored later into own components |
| Method Summary | |
|---|---|
java.lang.String |
getCommand()
|
java.lang.String |
getCustomDisabledLinkCSS()
|
java.lang.String |
getCustomEnabledLinkCSS()
|
ComponentRenderer |
getHTMLRendererSingleton()
|
java.lang.String |
getI18n()
|
int |
getOffsetX()
returs the mouse position when the link was clicked. |
int |
getOffsetY()
returs the mouse position when the link was clicked. |
int |
getPresentation()
|
java.lang.String |
getTarget()
|
java.lang.String |
getTitle()
The link title, text that shows up when mouse hovers over link. |
java.lang.Object |
getUserObject()
|
boolean |
isAjaxEnabled()
|
boolean |
isSuppressDirtyFormWarning()
|
void |
registerForMousePositionEvent(boolean b)
get the mouse position as event.command coded as x123y456 and appended to the UserRequest catch it inside the event method with the ureq.getModuleUri() method. Uses prototype.js |
void |
registerMouseEvent(Link.MouseEvent event,
java.lang.String handlerFunction)
register a javascript function to an event of this link TODO:gs:b may pass the event and the link element to the function as arguments Uses prototype.js |
void |
removeCSS()
|
void |
setAccessKey(java.lang.String accessKey)
sets the accesskey, e.g. |
void |
setAjaxEnabled(boolean ajaxEnabled)
|
void |
setCustomDisabledLinkCSS(java.lang.String customDisabledLinkCSS)
|
void |
setCustomDisplayText(java.lang.String customDisplayText)
|
void |
setCustomEnabledLinkCSS(java.lang.String customEnabledLinkCSS)
|
void |
setEnabled(boolean b)
|
void |
setSuppressDirtyFormWarning(boolean suppressDirtyFormWarning)
When pressing this button, should the system prevent the check for any unsubmitted forms? |
void |
setTarget(java.lang.String target)
allows setting an custom href target like "_blank" which opens an link in a new window. |
void |
setTextReasonForDisabling(java.lang.String textReasonForDisabling)
|
void |
setTitle(java.lang.String i18nKey)
Set an link title which gets displayed when hovering over the link. |
void |
setTooltip(Component comp,
boolean stricky)
sets a tooltip with a more complext content which is passed as an component |
void |
setTooltip(java.lang.String tooltipI18nKey,
boolean sticky)
Sets a tooltip out off the text from the provided i18n key. |
void |
setUserObject(java.lang.Object userObject)
|
void |
setXYOffest(UserRequest ureq)
convenience method to set the x and y values you get by link.registerForMousePositionEvent(true)
to x and y |
| Methods inherited from class org.olat.core.gui.components.Component |
|---|
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getExtendedDebugInfo, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setSpanAsDomReplaceable, setVisible, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LINK_CUSTOM_CSS
NONTRANSLATED
public static final int BUTTON_XSMALL
public static final int BUTTON_SMALL
public static final int BUTTON
public static final int LINK_BACK
public static final int LINK
public static final int TOOLENTRY_DEFAULT
public static final int TOOLENTRY_CLOSE
public static final int NONTRANSLATED
public static final int FLEXIBLEFORMLNK
| Method Detail |
|---|
public ComponentRenderer getHTMLRendererSingleton()
getHTMLRendererSingleton in class ComponentComponent.getHTMLRendererSingleton()public java.lang.String getCommand()
public java.lang.String getI18n()
public int getPresentation()
public java.lang.String getTitle()
public void setTitle(java.lang.String i18nKey)
the - i18n key or the translated key depending on presentation modepublic void setEnabled(boolean b)
setEnabled in class Componenttrue - or falseComponent.setEnabled(boolean)public void setTextReasonForDisabling(java.lang.String textReasonForDisabling)
public java.lang.String getCustomDisabledLinkCSS()
public void setCustomDisabledLinkCSS(java.lang.String customDisabledLinkCSS)
customDisabledLinkCSS - the custom CSS class used for a disabled linkpublic java.lang.String getCustomEnabledLinkCSS()
public void setCustomEnabledLinkCSS(java.lang.String customEnabledLinkCSS)
customEnabledLinkCSS - the custom CSS class used for a enabled linkpublic void removeCSS()
public java.lang.String getTarget()
public void setTarget(java.lang.String target)
target - public java.lang.Object getUserObject()
public void setUserObject(java.lang.Object userObject)
public void setAccessKey(java.lang.String accessKey)
accessKey - public void setAjaxEnabled(boolean ajaxEnabled)
public boolean isAjaxEnabled()
public void setSuppressDirtyFormWarning(boolean suppressDirtyFormWarning)
suppressDirtyFormWarning - true: don't check for dirt forms; false:
check for dirty forms (default)public boolean isSuppressDirtyFormWarning()
public void setCustomDisplayText(java.lang.String customDisplayText)
public void registerForMousePositionEvent(boolean b)
b -
public void registerMouseEvent(Link.MouseEvent event,
java.lang.String handlerFunction)
event - handlerFunction: - A javascript function namepublic void setXYOffest(UserRequest ureq)
link.registerForMousePositionEvent(true)
to x and y
ureq - offsetX - offsetY - public int getOffsetX()
public int getOffsetY()
public void setTooltip(java.lang.String tooltipI18nKey,
boolean sticky)
sticky: - sets the tooltip sticky, which means the user has to click the tip to disappear
public void setTooltip(Component comp,
boolean stricky)
comp - stricky - if true the user has to close the tooltip himself
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||