public abstract class ItemEditorLayout<ItemType extends PersistentEntity> extends com.vaadin.ui.HorizontalLayout implements DataLoadable, com.vaadin.ui.Button.ClickListener, com.vaadin.data.Property.ValueChangeListener
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandlercom.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.MarginInfo, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener| Constructor and Description |
|---|
ItemEditorLayout(Class<ItemType> itemClass,
I18NSource i18NSource,
ProcessToolRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindValues(com.vaadin.ui.Select select,
Collection<String> values) |
protected void |
buildLayout() |
void |
buttonClick(com.vaadin.ui.Button.ClickEvent event) |
protected com.vaadin.ui.CheckBox |
checkBox(String caption) |
protected abstract void |
clearDetails() |
protected com.vaadin.ui.Component |
createInfoLayout() |
protected abstract ItemType |
createItem() |
protected abstract com.vaadin.ui.Component |
createItemDetailsLayout() |
protected abstract List<ItemType> |
getAllItems() |
protected boolean |
getBoolean(com.vaadin.ui.CheckBox field) |
I18NSource |
getI18NSource() |
protected abstract String |
getItemCaption(ItemType item) |
protected String |
getMessage(String key) |
protected IBpmNotificationService |
getService() |
protected String |
getString(com.vaadin.ui.Field field) |
protected com.vaadin.ui.HorizontalLayout |
hl(com.vaadin.ui.Component... components) |
protected com.vaadin.ui.HorizontalLayout |
hl(String caption,
com.vaadin.ui.Component... components) |
void |
loadData() |
protected abstract void |
loadDetails(ItemType item) |
protected com.vaadin.ui.PasswordField |
passwordField(String caption) |
protected com.vaadin.ui.PasswordField |
passwordField(String caption,
int width) |
protected void |
prepareData() |
protected abstract ItemType |
refreshItem(Long id) |
protected abstract void |
saveDetails(ItemType item) |
protected abstract void |
saveItem(ItemType item) |
protected com.vaadin.ui.Select |
select(String caption) |
protected com.vaadin.ui.Select |
select(String caption,
int width) |
protected com.vaadin.ui.TextArea |
textArea(String caption) |
protected com.vaadin.ui.TextArea |
textArea(String caption,
int width) |
protected com.vaadin.ui.TextField |
textField(String caption) |
protected com.vaadin.ui.TextField |
textField(String caption,
int width) |
void |
valueChange(com.vaadin.data.Property.ValueChangeEvent event) |
addComponent, addComponent, addComponentAsFirst, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, paintContent, removeComponent, removeListener, replaceComponent, setComponentAlignment, setComponentAlignment, setComponentAlignment, setExpandRatio, setSpacingchangeVariables, fireClick, getMargin, setMargin, setMargin, setMarginaddListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidthaddListener, addListener, addListener, addListener, addListener, addStyleName, 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, setWidthUnitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, addListener, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAlladdListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisiblepublic ItemEditorLayout(Class<ItemType> itemClass, I18NSource i18NSource, ProcessToolRegistry registry)
protected void buildLayout()
protected com.vaadin.ui.Component createInfoLayout()
protected abstract com.vaadin.ui.Component createItemDetailsLayout()
protected abstract void clearDetails()
protected abstract void loadDetails(ItemType item)
protected abstract void saveDetails(ItemType item)
protected void prepareData()
protected abstract ItemType createItem()
protected abstract void saveItem(ItemType item)
public void buttonClick(com.vaadin.ui.Button.ClickEvent event)
buttonClick in interface com.vaadin.ui.Button.ClickListenerpublic void loadData()
loadData in interface DataLoadablepublic void valueChange(com.vaadin.data.Property.ValueChangeEvent event)
valueChange in interface com.vaadin.data.Property.ValueChangeListenerpublic I18NSource getI18NSource()
protected IBpmNotificationService getService()
protected com.vaadin.ui.TextField textField(String caption, int width)
protected com.vaadin.ui.PasswordField passwordField(String caption, int width)
protected com.vaadin.ui.PasswordField passwordField(String caption)
protected com.vaadin.ui.TextField textField(String caption)
protected com.vaadin.ui.TextArea textArea(String caption, int width)
protected com.vaadin.ui.TextArea textArea(String caption)
protected com.vaadin.ui.CheckBox checkBox(String caption)
protected com.vaadin.ui.Select select(String caption, int width)
protected com.vaadin.ui.Select select(String caption)
protected void bindValues(com.vaadin.ui.Select select,
Collection<String> values)
protected String getString(com.vaadin.ui.Field field)
protected boolean getBoolean(com.vaadin.ui.CheckBox field)
protected com.vaadin.ui.HorizontalLayout hl(String caption, com.vaadin.ui.Component... components)
protected com.vaadin.ui.HorizontalLayout hl(com.vaadin.ui.Component... components)
Copyright © 2013. All Rights Reserved.