|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.minis.prototipbehaviour.PrototipSettings
public class PrototipSettings
This is a class for creating settings to be used with the prototip lib (the optional third argument) in all cases you do not need to worry about enclosing your strings in ' ' There is logic in place so that if you enter false or true (ie the boolean), or a number it will not enclose your string in '', where as any other string it will see http://www.nickstakenburg.com/projects/prototip/ for a better description of the options that prototip uses
| Constructor Summary | |
|---|---|
PrototipSettings()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getClassName()
|
java.lang.String |
getCloseButton()
|
java.lang.String |
getDelay()
|
java.lang.String |
getDuration()
|
java.lang.String |
getEffect()
|
java.lang.String |
getExtraOptions()
|
java.lang.String |
getFixed()
|
java.lang.String |
getHideAfter()
|
java.lang.String |
getHideOn()
|
java.lang.String |
getHook()
|
java.lang.String |
getOffset_x()
|
java.lang.String |
getOffset_y()
|
java.lang.String |
getOptionsString(java.lang.String title)
Generates the correct Javascript code to add as the third parameter to a prototip tooltip any title passed in here will override any title which is set in this object eg: PrototipBehaviour title > PrototipSettings title |
java.lang.String |
getShowOn()
|
java.lang.String |
getTarget()
|
java.lang.String |
getTitle()
|
java.lang.String |
getViewpoint()
|
int |
hashCode()
|
PrototipSettings |
setClassName(java.lang.String className)
you do not need to include the ' ' |
PrototipSettings |
setCloseButton(java.lang.String closeButton)
either false or true |
PrototipSettings |
setDelay(java.lang.String delay)
seconds before tooltip appears eg 0.2 |
PrototipSettings |
setDuration(java.lang.String duration)
duration of the effect, if used eg 0.3 |
PrototipSettings |
setEffect(java.lang.String effect)
you do not need to include the ' ' false, appear or blind, or others if they get enabled |
PrototipSettings |
setExtraOptions(java.lang.String extraOptions)
Futureproofing - this allows you at add any string as an option (note you will need to take care of ' and { } yourself |
PrototipSettings |
setFixed(java.lang.String fixed)
eg false or true |
PrototipSettings |
setHideAfter(java.lang.String hideAfter)
false or a number eg 1.5 |
PrototipSettings |
setHideOn(java.lang.String hideOn)
any event eg mouseout or false |
PrototipSettings |
setHideOn(java.lang.String element,
java.lang.String event)
eg: { element: 'element|target|tip|closeButton|.close', event: 'click|mouseover|mousemove' } |
PrototipSettings |
setHook(java.lang.String target,
java.lang.String tip)
Set the hook, where you want eg: { target: 'topLeft|topRight|bottomLeft|bottomRight| topMiddle|bottomMiddle|leftMiddle|rightMiddle', tip: 'topLeft|topRight|bottomLeft|bottomRight| topMiddle|bottomMiddle|leftMiddle|rightMiddle' } for false use setHookFalse() |
PrototipSettings |
setHookFalse()
|
PrototipSettings |
setOffset_x(java.lang.String offset_x)
|
PrototipSettings |
setOffset_y(java.lang.String offset_y)
|
PrototipSettings |
setOffset(java.lang.String offset_x,
java.lang.String offset_y)
Set both x and y offsets |
PrototipSettings |
setShowOn(java.lang.String showOn)
|
PrototipSettings |
setTarget(java.lang.String target)
|
PrototipSettings |
setTitle(java.lang.String title)
|
PrototipSettings |
setViewpoint(java.lang.String viewpoint)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrototipSettings()
| Method Detail |
|---|
public java.lang.String getOptionsString(java.lang.String title)
public java.lang.String getClassName()
public PrototipSettings setClassName(java.lang.String className)
className - the className to set
public java.lang.String getCloseButton()
public PrototipSettings setCloseButton(java.lang.String closeButton)
closeButton - the closeButton to set
public java.lang.String getDuration()
public PrototipSettings setDuration(java.lang.String duration)
duration - the duration to set
public java.lang.String getFixed()
public PrototipSettings setFixed(java.lang.String fixed)
fixed - the fixed to set
public java.lang.String getDelay()
public PrototipSettings setDelay(java.lang.String delay)
delay - the delay to set
public java.lang.String getEffect()
public PrototipSettings setEffect(java.lang.String effect)
effect - the effect to set
public java.lang.String getHideAfter()
public PrototipSettings setHideAfter(java.lang.String hideAfter)
hideAfter - the hideAfter to set
public java.lang.String getHideOn()
public PrototipSettings setHideOn(java.lang.String hideOn)
hideOn - the hideOn to set
public PrototipSettings setHideOn(java.lang.String element,
java.lang.String event)
element - event -
public java.lang.String getHook()
public PrototipSettings setHookFalse()
hook - the hook to set
public PrototipSettings setHook(java.lang.String target,
java.lang.String tip)
target - tip -
public java.lang.String getOffset_x()
public PrototipSettings setOffset_x(java.lang.String offset_x)
offset_x - the offset_x to set
public java.lang.String getOffset_y()
public PrototipSettings setOffset_y(java.lang.String offset_y)
offset_y - the offset_y to set
public PrototipSettings setOffset(java.lang.String offset_x,
java.lang.String offset_y)
offset_x - offset_y -
public java.lang.String getShowOn()
public PrototipSettings setShowOn(java.lang.String showOn)
showOn - the showOn to set
public java.lang.String getTarget()
public PrototipSettings setTarget(java.lang.String target)
target - the target to set
public java.lang.String getTitle()
public PrototipSettings setTitle(java.lang.String title)
title - the title to setpublic java.lang.String getViewpoint()
public PrototipSettings setViewpoint(java.lang.String viewpoint)
viewpoint - the viewpoint to set
public java.lang.String getExtraOptions()
public PrototipSettings setExtraOptions(java.lang.String extraOptions)
extraOptions - the extraOptions to set
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||