public abstract class InfoConfig extends Object
Info
.Modifier and Type | Class and Description |
---|---|
static class |
InfoConfig.InfoPosition
Defines the locations the Info is displayed.
|
Constructor and Description |
---|
InfoConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getDisplay()
Returns the time the info is displayed.
|
int |
getHeight()
Returns the info height.
|
HideEvent.HideHandler |
getHideHandler()
Returns the hide handler.
|
int |
getMargin()
Returns the amount of pixels between info's.
|
InfoConfig.InfoPosition |
getPosition()
Returns the info position.
|
ShowEvent.ShowHandler |
getShowHandler()
Returns the show handler.
|
int |
getWidth()
Returns the info width.
|
protected abstract SafeHtml |
render(Info info) |
void |
setDisplay(int display)
Sets the amount of time the info is displayed in milliseconds (defaults to 2500).
|
void |
setHeight(int height)
Sets the info height (defaults to -1).
|
void |
setHideHandler(HideEvent.HideHandler hideHandler)
Sets the handler to be notified when the info is hidden.
|
void |
setMargin(int margin)
Sets the margin between info's (defaults to 10).
|
void |
setPosition(InfoConfig.InfoPosition infoPosition)
Sets the position the info is displayed (defaults to TOP_RIGHT).
|
void |
setShowHandler(ShowEvent.ShowHandler showHandler)
Sets the handler to be notified when the info is displayed.
|
void |
setWidth(int width)
Sets the width of the info (defaults to 225).
|
public int getDisplay()
public int getHeight()
public HideEvent.HideHandler getHideHandler()
public int getMargin()
public InfoConfig.InfoPosition getPosition()
public ShowEvent.ShowHandler getShowHandler()
public int getWidth()
public void setDisplay(int display)
display
- public void setHeight(int height)
height
- the pixel height, -1 for auto heightpublic void setHideHandler(HideEvent.HideHandler hideHandler)
hideHandler
- the hide handlerpublic void setMargin(int margin)
margin
- the marginpublic void setPosition(InfoConfig.InfoPosition infoPosition)
infoPosition
- the positionpublic void setShowHandler(ShowEvent.ShowHandler showHandler)
showHandler
- the show handlerpublic void setWidth(int width)
width
- the width in pixelsprotected abstract SafeHtml render(Info info)
Copyright © 2018. All rights reserved.