public interface Displayer extends DisplayerListener, com.google.gwt.user.client.ui.IsWidget
Modifier and Type | Method and Description |
---|---|
void |
addFormatter(String columnId,
ValueFormatter formatter)
Registers a custom formatter for the given column
|
void |
addListener(DisplayerListener... listeners)
Add a listener interested in receive events generated within this displayer component.
|
void |
close()
Frees any resource the displayer is consuming.
|
void |
draw()
Draw the chart
|
void |
export(ExportFormat format,
int maxRows,
ExportCallback callback)
Export the data being displayed into the specified output format.
|
DataSetHandler |
getDataSetHandler() |
DisplayerConstraints |
getDisplayerConstraints()
Every Displayer implementation must define the set of features it supports as well as other behavioral settings.
|
DisplayerSettings |
getDisplayerSettings() |
boolean |
isDrawn()
Check if the displayer is completely drawn.
|
boolean |
isRefreshOn()
Check if the automatic refresh is on.
|
void |
redraw()
Same as draw but does not necessary implies to repaint everything again.
|
void |
setDataSetHandler(DataSetHandler dataSetHandler)
The handler used to fetch and manipulate the data set.
|
void |
setDisplayerSettings(DisplayerSettings displayerSettings)
The data displayer to draw.
|
void |
setRefreshOn(boolean enabled)
Enables or disables the automatic refresh capability (enabled by default).
|
onClose, onDataLoaded, onDataLookup, onDraw, onError, onFilterEnabled, onFilterEnabled, onFilterReset, onFilterReset, onFilterUpdate, onRedraw
void setDisplayerSettings(DisplayerSettings displayerSettings)
DisplayerSettings getDisplayerSettings()
void setDataSetHandler(DataSetHandler dataSetHandler)
DataSetHandler getDataSetHandler()
DisplayerConstraints getDisplayerConstraints()
void addListener(DisplayerListener... listeners)
void addFormatter(String columnId, ValueFormatter formatter)
void draw()
void redraw()
boolean isDrawn()
void setRefreshOn(boolean enabled)
DisplayerSettings.getRefreshInterval()
boolean isRefreshOn()
void export(ExportFormat format, int maxRows, ExportCallback callback)
format
- The output formatmaxRows
- Max rows to be exported. If lower or equals to 0 then all rows will be exported.callback
- The callback instance to be notifiedvoid close()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.