|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.CustomComponent
org.apertereports.dashboard.AbstractDashboardComponent
public abstract class AbstractDashboardComponent
An abstract class that manages the portlet session and preferences.
The preferences are transformed from an Base64 encoded XML to a list ofReportConfig objects.
Extending classes use these configuration objects to either display the dashboard
or show an edit form.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
|---|
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler |
| Nested classes/interfaces inherited from interface com.vaadin.ui.ComponentContainer |
|---|
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener |
| Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
|---|
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener |
| Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable |
|---|
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener |
| Field Summary | |
|---|---|
protected MapCache |
cache
An instance of a MapCache for general caching purposes. |
protected String |
portletId
|
protected javax.portlet.PortletPreferences |
preferences
|
protected List<ReportConfig> |
reportConfigs
|
protected javax.portlet.PortletSession |
session
|
protected String |
template
|
| Fields inherited from interface com.vaadin.terminal.Sizeable |
|---|
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
| Constructor Summary | |
|---|---|
AbstractDashboardComponent()
|
|
| Method Summary | |
|---|---|
protected abstract void |
initComponentData()
Init extending class view. |
void |
initData()
Loads preferences and initializes the view. |
protected void |
prepareData()
Loads the dashboard HTML template from preferences with a key specified by DashboardPreferences.PREFERENCE_TEMPLATE_KEY. |
protected void |
saveData()
Stores the dashboard HTML template to preferences. |
void |
setPortletId(String portletId)
|
void |
setPortletPreferences(javax.portlet.PortletPreferences preferences)
|
void |
setPortletSession(javax.portlet.PortletSession session)
|
| Methods inherited from class com.vaadin.ui.CustomComponent |
|---|
addComponent, getComponentCount, getComponentIterator, getComponentType, getCompositionRoot, moveComponentsFrom, paintContent, removeAllComponents, removeComponent, replaceComponent, setComponentType, setCompositionRoot |
| Methods inherited from class com.vaadin.ui.AbstractComponentContainer |
|---|
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth |
| Methods inherited from class com.vaadin.ui.AbstractComponent |
|---|
addListener, addListener, addListener, addListener, addListener, addStyleName, changeVariables, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
addListener, addStyleName, childRequestedRepaint, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setIcon, setParent, setReadOnly, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.terminal.Paintable |
|---|
addListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugId |
| Methods inherited from interface com.vaadin.terminal.VariableOwner |
|---|
changeVariables, isImmediate |
| Methods inherited from interface com.vaadin.terminal.Sizeable |
|---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUnits |
| Field Detail |
|---|
protected List<ReportConfig> reportConfigs
protected String template
protected javax.portlet.PortletPreferences preferences
protected javax.portlet.PortletSession session
protected String portletId
protected MapCache cache
MapCache for general caching purposes.
MapCache| Constructor Detail |
|---|
public AbstractDashboardComponent()
| Method Detail |
|---|
protected void prepareData()
DashboardPreferences.PREFERENCE_TEMPLATE_KEY.
Also loads an XML containing a list of ReportConfigs which is transformed so that
classes extending this class can use it.
protected void saveData()
DashboardPreferences.PREFERENCE_TEMPLATE_KEY key
as a Base64 encoded string.
Also stores the list of ReportConfig which is marshaled to a single string using JAXB.
public void initData()
protected abstract void initComponentData()
public void setPortletPreferences(javax.portlet.PortletPreferences preferences)
public void setPortletSession(javax.portlet.PortletSession session)
public void setPortletId(String portletId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||