|
||||||||||
| 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
fi.paatti.research.paattiapplication.views.ApplicationView
public abstract class ApplicationView
The base class for the views of the application.
![]() |
![]() |
![]() |
![]() |
| 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 ApplicationTabSheet |
applicationTabSheet
|
protected SearchComponent |
searchComponent
|
| 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 | |
|---|---|
ApplicationView(ApplicationTabSheet applicationTabSheet,
String tableName,
String tableColumnId)
Constructor of the class. |
|
| Method Summary | |
|---|---|
void |
addTab(com.vaadin.ui.CustomComponent tab,
String caption)
Adds a tab to the applicationView's tab layout. |
protected abstract String |
createInfoString(com.vaadin.data.Item item)
Creates the basic information string from the given item. |
fi.paatti.paattidatabaseutils.dbservice.PaattiResearchDBService |
getDBConnection()
Returns the database connection. |
String |
getSelectedItemId()
Returns the ID of the currently selected item. |
void |
refresh(Object itemId)
Refreshes the view's search component and selects the row that matches the given itemId. |
abstract void |
saveContents()
Saves the view's information. |
void |
setActiveTab(int tabIndex,
Object itemId)
Activates the tab at given tabIndex and refreshes its content using the given itemId. |
void |
setContents(com.vaadin.data.Item item)
Sets the item for the applicationViewTab. |
void |
setSelectedInfoLabel(String itemDescription)
Sets the caption for the label which identifies the current selection. |
void |
setTabsEnabled(boolean enabled)
Enables or disables all the tabs that have been added to the view's tab sheet. |
| 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 ApplicationTabSheet applicationTabSheet
protected SearchComponent searchComponent
| Constructor Detail |
|---|
public ApplicationView(ApplicationTabSheet applicationTabSheet,
String tableName,
String tableColumnId)
applicationTabSheet - the tabsheet that contains the view.tableName - the name of the db table related to the view.tableColumnId - the name of the id column of the related table.| Method Detail |
|---|
public void addTab(com.vaadin.ui.CustomComponent tab,
String caption)
tab - the CustomComponent to be added as a tab.caption - the caption of the tab.public void setContents(com.vaadin.data.Item item)
item - SQLContainer item.public abstract void saveContents()
public void setTabsEnabled(boolean enabled)
enabled - the enabled status.public void refresh(Object itemId)
itemId - the itemId.
public void setActiveTab(int tabIndex,
Object itemId)
public String getSelectedItemId()
public fi.paatti.paattidatabaseutils.dbservice.PaattiResearchDBService getDBConnection()
public void setSelectedInfoLabel(String itemDescription)
itemDescription - the description of the selected item.protected abstract String createInfoString(com.vaadin.data.Item item)
item - db item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||