public abstract class AbstractPage
extends com.vaadin.ui.CustomComponent
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.GridLayout |
grid |
protected com.vaadin.ui.AbstractSelect |
select |
protected boolean |
showEvents |
protected ToolBar |
toolBar |
Constructor and Description |
---|
AbstractPage() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventComponent() |
protected void |
addMainLayout() |
protected void |
addMenuBar()
Subclasses are expected to provide their own menuBar.
|
protected void |
addSearch() |
protected void |
addSelectComponent() |
void |
attach() |
protected abstract ToolBar |
createMenuBar() |
protected abstract com.vaadin.ui.AbstractSelect |
createSelectComponent()
Returns an implementation of
AbstractSelect ,
which will be displayed on the left side of the page,
allowing to select elements from eg. |
protected com.vaadin.ui.Component |
getDetailComponent() |
protected com.vaadin.ui.Component |
getEventComponent()
Get the component to display the events in.
|
com.vaadin.ui.Component |
getSearchComponent()
Override to get the search component to display above the table.
|
ToolBar |
getToolBar() |
protected void |
initUi()
Override this method (and call super()) when you want to influence the UI.
|
abstract void |
refreshSelectNext()
Refreshes the elements of the list, and selects the next
one (useful when the selected element is deleted).
|
abstract void |
selectElement(int index)
Select a specific element from the selection component.
|
protected void |
setDetailComponent(com.vaadin.ui.Component detail) |
addComponent, getComponentCount, getComponentIterator, getComponentType, getCompositionRoot, moveComponentsFrom, paintContent, removeAllComponents, removeComponent, replaceComponent, setComponentType, setCompositionRoot
addListener, addListener, detach, fireComponentAttachEvent, fireComponentDetachEvent, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, childRequestedRepaint, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setIcon, setParent, setReadOnly, setStyleName, setVisible
protected ToolBar toolBar
protected com.vaadin.ui.GridLayout grid
protected com.vaadin.ui.AbstractSelect select
protected boolean showEvents
public void attach()
attach
in interface com.vaadin.ui.Component
attach
in class com.vaadin.ui.AbstractComponentContainer
protected void initUi()
protected void addEventComponent()
protected void addMenuBar()
public ToolBar getToolBar()
protected abstract ToolBar createMenuBar()
protected void addMainLayout()
protected void addSearch()
protected void addSelectComponent()
protected abstract com.vaadin.ui.AbstractSelect createSelectComponent()
AbstractSelect
,
which will be displayed on the left side of the page,
allowing to select elements from eg. a list, tree, etc.public abstract void refreshSelectNext()
public abstract void selectElement(int index)
protected void setDetailComponent(com.vaadin.ui.Component detail)
protected com.vaadin.ui.Component getDetailComponent()
public com.vaadin.ui.Component getSearchComponent()
protected com.vaadin.ui.Component getEventComponent()
Copyright © 2016 Alfresco. All rights reserved.