public class PrototipSettings extends Object implements Serializable
| Constructor and Description | 
|---|
PrototipSettings()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
String | 
getClassName()  | 
String | 
getCloseButton()  | 
String | 
getDelay()  | 
String | 
getDuration()  | 
String | 
getEffect()  | 
String | 
getExtraOptions()  | 
String | 
getFixed()  | 
String | 
getHideAfter()  | 
String | 
getHideOn()  | 
String | 
getHook()  | 
String | 
getOffset_x()  | 
String | 
getOffset_y()  | 
String | 
getOptionsString(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 
 | 
String | 
getShowOn()  | 
String | 
getTarget()  | 
String | 
getTitle()  | 
String | 
getViewpoint()  | 
int | 
hashCode()  | 
PrototipSettings | 
setClassName(String className)
you do not need to include the ' ' 
 | 
PrototipSettings | 
setCloseButton(String closeButton)
either false or true 
 | 
PrototipSettings | 
setDelay(String delay)
seconds before tooltip appears eg 0.2 
 | 
PrototipSettings | 
setDuration(String duration)
duration of the effect, if used eg 0.3 
 | 
PrototipSettings | 
setEffect(String effect)
you do not need to include the ' '
 
 false, appear or blind, or others if they get enabled 
 | 
PrototipSettings | 
setExtraOptions(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(String fixed)
eg false or true 
 | 
PrototipSettings | 
setHideAfter(String hideAfter)
false or a number eg 1.5 
 | 
PrototipSettings | 
setHideOn(String hideOn)
any event eg mouseout or false 
 | 
PrototipSettings | 
setHideOn(String element,
         String event)
eg: { element: 'element|target|tip|closeButton|.close', event: 'click|mouseover|mousemove' } 
 | 
PrototipSettings | 
setHook(String target,
       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(String offset_x)  | 
PrototipSettings | 
setOffset_y(String offset_y)  | 
PrototipSettings | 
setOffset(String offset_x,
         String offset_y)
Set both x and y offsets 
 | 
PrototipSettings | 
setShowOn(String showOn)  | 
PrototipSettings | 
setTarget(String target)  | 
PrototipSettings | 
setTitle(String title)  | 
PrototipSettings | 
setViewpoint(String viewpoint)  | 
public String getOptionsString(String title)
public String getClassName()
public PrototipSettings setClassName(String className)
className - the className to setpublic String getCloseButton()
public PrototipSettings setCloseButton(String closeButton)
closeButton - the closeButton to setpublic String getDuration()
public PrototipSettings setDuration(String duration)
duration - the duration to setpublic String getFixed()
public PrototipSettings setFixed(String fixed)
fixed - the fixed to setpublic String getDelay()
public PrototipSettings setDelay(String delay)
delay - the delay to setpublic String getEffect()
public PrototipSettings setEffect(String effect)
effect - the effect to setpublic String getHideAfter()
public PrototipSettings setHideAfter(String hideAfter)
hideAfter - the hideAfter to setpublic String getHideOn()
public PrototipSettings setHideOn(String hideOn)
hideOn - the hideOn to setpublic PrototipSettings setHideOn(String element, String event)
element - event - public String getHook()
public PrototipSettings setHookFalse()
hook - the hook to setpublic PrototipSettings setHook(String target, String tip)
target - tip - public String getOffset_x()
public PrototipSettings setOffset_x(String offset_x)
offset_x - the offset_x to setpublic String getOffset_y()
public PrototipSettings setOffset_y(String offset_y)
offset_y - the offset_y to setpublic PrototipSettings setOffset(String offset_x, String offset_y)
offset_x - offset_y - public String getShowOn()
public PrototipSettings setShowOn(String showOn)
showOn - the showOn to setpublic String getTarget()
public PrototipSettings setTarget(String target)
target - the target to setpublic String getTitle()
public PrototipSettings setTitle(String title)
title - the title to setpublic String getViewpoint()
public PrototipSettings setViewpoint(String viewpoint)
viewpoint - the viewpoint to setpublic String getExtraOptions()
public PrototipSettings setExtraOptions(String extraOptions)
extraOptions - the extraOptions to setCopyright © 2015. All rights reserved.