|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtbootstrap3.extras.growl.client.ui.GrowlOptions
public class GrowlOptions
This class represent basic Growl`s options, that you can use to customize display of each Growl.
You can also set current state as default for all new Growls.
makeDefault()| Constructor Summary | |
|---|---|
GrowlOptions()
|
|
| Method Summary | |
|---|---|
void |
makeDefault()
Make this GrowlOptions setting as default for all new Growls. |
void |
setAllowDismiss(boolean allowDismiss)
Allow display of dismiss button [X] in top right corner of Growl. |
void |
setAnimation(Animation enter,
Animation exit)
Set Animation to Growl when it enters and exit the screen. |
void |
setAnimation(String enter,
String exit)
Set custom CSS style for animations of Growl when it enters and exits the screen. |
void |
setDelay(int mDelay)
Set delay, how long Growl stays on screen. |
void |
setElement(String element)
Set element name or class or ID to append Growl to. |
void |
setIconType(String iconType)
Set type of icon you will use for Growl. |
void |
setOffset(int offX,
int offY)
Set offset (space between Growl and screen/browser edges) for each axis. |
void |
setPause(boolean pauseOnMouseOver)
Pause countdown of display timeout when mouse is hovering above the Growl. |
void |
setPosition(GrowlPosition position)
Set position of Growl on screen. |
void |
setSpacing(int space)
Set custom spacing between two Growls. |
void |
setTemplate(String html)
Set custom HTML Template of Growl. |
void |
setTimer(int timer)
Set timer. |
void |
setType(GrowlType type)
Set type of Growl (CSS style class name). |
void |
setType(String customType)
Set custom style name to Growl. |
void |
setUrlTarget(String urlTarget)
Set custom URL target. |
void |
setZIndex(int zIndex)
Set custom Z-index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrowlOptions()
| Method Detail |
|---|
public final void setElement(String element)
element - Name, class or IDpublic final void setPosition(GrowlPosition position)
position - Growl`s position.GrowlPositionpublic final void setAllowDismiss(boolean allowDismiss)
allowDismiss - TRUE = display dismiss button / FALSE = hide dismiss button
public final void setOffset(int offX,
int offY)
offX - Offset for X axis in PXoffY - Offset for Y axis in PXpublic final void setSpacing(int space)
space - Spacing in PXpublic final void setZIndex(int zIndex)
zIndex - Z-indexpublic final void setDelay(int mDelay)
mDelay - Delay in milliseconds or zero for unlimitedpublic final void setTimer(int timer)
timer - Time in millisecondssetDelay(int)public final void setUrlTarget(String urlTarget)
urlTarget - URL targetpublic final void setPause(boolean pauseOnMouseOver)
pauseOnMouseOver - TRUE = pause / FALSE = not pause
public final void setAnimation(Animation enter,
Animation exit)
enter - animation style when Growl enters the screenexit - animation style when Growl exists the screenAnimation
public final void setAnimation(String enter,
String exit)
enter - animation style when Growl enters the screenexit - animation style when Growl exists the screenpublic final void setIconType(String iconType)
iconType - "class" or "image"public final void setTemplate(String html)
html - Custom HTML templatepublic final void makeDefault()
public final void setType(GrowlType type)
type - one of INFO, WARNING, DANGER, SUCCESSGrowlTypepublic final void setType(String customType)
customType - Style name to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||