Class EditorViewComponent
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.ui.AbstractComponentContainer
-
- com.vaadin.ui.AbstractLayout
-
- com.vaadin.ui.AbstractOrderedLayout
-
- com.vaadin.ui.VerticalLayout
-
- io.mateu.mdd.vaadin.components.views.AbstractViewComponent
-
- io.mateu.mdd.vaadin.components.views.EditorViewComponent
-
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier,com.vaadin.event.LayoutEvents.LayoutClickNotifier,com.vaadin.event.MethodEventSource,com.vaadin.server.ClientConnector,com.vaadin.server.Sizeable,com.vaadin.shared.Connector,com.vaadin.ui.Component,com.vaadin.ui.ComponentContainer,com.vaadin.ui.HasComponents,com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier,com.vaadin.ui.Layout,com.vaadin.ui.Layout.AlignmentHandler,com.vaadin.ui.Layout.MarginHandler,com.vaadin.ui.Layout.SpacingHandler,IEditorViewComponent,Serializable,Iterable
- Direct Known Subclasses:
FiltersViewFlowComponent,MethodParametersViewComponent,OwnedCollectionComponent,WizardComponent
public class EditorViewComponent extends AbstractViewComponent implements IEditorViewComponent
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
-
-
Field Summary
Fields Modifier and Type Field Description String_defaultActionprotected booleannewRecord-
Fields inherited from class io.mateu.mdd.vaadin.components.views.AbstractViewComponent
actionsByMethod, bar, menuItemIdsUnseen, menuItemsByGroup, menuItemsById, subheader
-
-
Constructor Summary
Constructors Constructor Description EditorViewComponent(ListViewComponent listViewComponent, Class modelType)EditorViewComponent(ListViewComponent listViewComponent, Class modelType, boolean createSaveButton)EditorViewComponent(ListViewComponent listViewComponent, Object owner, FieldInterfaced field, Class modelType, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields, boolean createSaveButton)EditorViewComponent(ListViewComponent listViewComponent, Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields)EditorViewComponent(ListViewComponent listViewComponent, Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields, boolean createSaveButton)EditorViewComponent(Class modelType)EditorViewComponent(Class modelType, boolean createSaveButton)EditorViewComponent(Object model)EditorViewComponent(Object model, boolean createSaveButton)EditorViewComponent(Object model, com.vaadin.ui.Component lastViewComponent)EditorViewComponent(Object owner, FieldInterfaced field, Class modelType, boolean createSaveButton)EditorViewComponent(Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields)EditorViewComponent(Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields, boolean createSaveButton)
-
Method Summary
-
Methods inherited from class io.mateu.mdd.vaadin.components.views.AbstractViewComponent
addActionsBar, addMenuItem, beforeBack, buildIfNeeded, createHeader, equals, expandOnOpen, getActionByMethod, getActionsContainer, getHiddens, getKpisContainer, getMenuItemById, getPageTitle, getParentView, getUnseenActions, getView, hashCode, hideHeader, isActionPresent, isBackable, isBarHidden, markAllAsUnseen, mustCreateHeader, removeUnseen, setAction, setBackable, setIcon, setStack, setTitle, setView, updateViewTitle
-
Methods inherited from class com.vaadin.ui.VerticalLayout
addComponentsAndExpand, getState, getState
-
Methods inherited from class com.vaadin.ui.AbstractOrderedLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
-
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
-
Methods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
-
Methods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
newRecord
protected boolean newRecord
-
_defaultAction
public String _defaultAction
-
-
Constructor Detail
-
EditorViewComponent
public EditorViewComponent(Class modelType)
-
EditorViewComponent
public EditorViewComponent(ListViewComponent listViewComponent, Class modelType)
-
EditorViewComponent
public EditorViewComponent(ListViewComponent listViewComponent, Object owner, FieldInterfaced field, Class modelType, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields, boolean createSaveButton)
-
EditorViewComponent
public EditorViewComponent(Object owner, FieldInterfaced field, Class modelType, boolean createSaveButton)
-
EditorViewComponent
public EditorViewComponent(Class modelType, boolean createSaveButton)
-
EditorViewComponent
public EditorViewComponent(ListViewComponent listViewComponent, Class modelType, boolean createSaveButton)
-
EditorViewComponent
public EditorViewComponent(Object model)
-
EditorViewComponent
public EditorViewComponent(Object model, com.vaadin.ui.Component lastViewComponent)
-
EditorViewComponent
public EditorViewComponent(Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields)
-
EditorViewComponent
public EditorViewComponent(ListViewComponent listViewComponent, Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields)
-
EditorViewComponent
public EditorViewComponent(Object model, boolean createSaveButton)
-
EditorViewComponent
public EditorViewComponent(Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields, boolean createSaveButton)
-
EditorViewComponent
public EditorViewComponent(ListViewComponent listViewComponent, Object model, List<FieldInterfaced> visibleFields, List<FieldInterfaced> hiddenFields, boolean createSaveButton)
-
-
Method Detail
-
getEmbeddedListViewComponents
public Map<FieldInterfaced,ListViewComponent> getEmbeddedListViewComponents()
-
getBeforeOpen
public Runnable getBeforeOpen()
-
setBeforeOpen
public void setBeforeOpen(Runnable beforeOpen)
-
getCreatorWindow
public BindedWindow getCreatorWindow()
- Specified by:
getCreatorWindowin interfaceIEditorViewComponent
-
getFocusedSectionId
public String getFocusedSectionId()
-
setFocusedSectionId
public void setFocusedSectionId(String focusedSectionId)
-
setFocusedSection
public void setFocusedSection(com.vaadin.ui.TabSheet sectionTabSheet, com.vaadin.ui.Component selectedTab)
-
setCreateSaveButton
public void setCreateSaveButton(boolean createSaveButton)
-
isCreateSaveButton
public boolean isCreateSaveButton()
-
getIcon
public com.vaadin.icons.VaadinIcons getIcon()
- Specified by:
getIconin interfacecom.vaadin.ui.Component- Overrides:
getIconin classAbstractViewComponent
-
setKpisContainer
public void setKpisContainer(com.vaadin.ui.Layout kpisContainer)
-
setParentView
public void setParentView(AbstractViewComponent parentView)
- Overrides:
setParentViewin classAbstractViewComponent
-
getListViewComponent
public ListViewComponent getListViewComponent()
-
setListViewComponent
public void setListViewComponent(ListViewComponent listViewComponent)
-
isModificado
public boolean isModificado()
-
isModificado
public static boolean isModificado(Map<String,Object> initialValues, Map<String,Object> currentValues)
-
isNewRecord
public boolean isNewRecord()
-
setModelType
public void setModelType(Class modelType)
-
addEditorListener
public void addEditorListener(EditorListener listener)
-
getBinder
public MDDBinder getBinder()
- Specified by:
getBinderin interfaceIEditorViewComponent
-
getModel
public Object getModel()
- Specified by:
getModelin interfaceIEditorViewComponent
-
setModel
public void setModel(Object model)
-
setModel
public void setModel(Object model, boolean updateChangesSignature)
-
removeUneditableFields
protected void removeUneditableFields(List<FieldInterfaced> fields)
-
updateModel
public void updateModel(Object model)
- Specified by:
updateModelin interfaceIEditorViewComponent
-
updatePageTitle
public void updatePageTitle()
- Overrides:
updatePageTitlein classAbstractViewComponent
-
getTitle
public String getTitle()
- Overrides:
getTitlein classAbstractViewComponent
-
getSubtitle
public String getSubtitle()
- Overrides:
getSubtitlein classAbstractViewComponent
-
getModelType
public Class getModelType()
-
build
public EditorViewComponent build() throws Exception
- Overrides:
buildin classAbstractViewComponent- Throws:
Exception
-
esForm
public boolean esForm()
- Overrides:
esFormin classAbstractViewComponent
-
addViewActionsMenuItems
public void addViewActionsMenuItems(com.vaadin.ui.CssLayout bar)
- Overrides:
addViewActionsMenuItemsin classAbstractViewComponent
-
getStylist
public AbstractStylist getStylist()
-
setStylist
public void setStylist(AbstractStylist stylist)
-
getActions
public List<AbstractAction> getActions()
- Overrides:
getActionsin classAbstractViewComponent
-
getMethod
public Method getMethod(String methodName)
- Specified by:
getMethodin interfaceIEditorViewComponent
-
getField
public FieldInterfaced getField(String fieldName)
- Specified by:
getFieldin interfaceIEditorViewComponent
-
save
public void save(boolean goBack) throws Throwable- Specified by:
savein interfaceIEditorViewComponent- Throws:
Throwable
-
preSave
public void preSave() throws Throwable- Specified by:
preSavein interfaceIEditorViewComponent- Throws:
Throwable
-
save
public void save(boolean goBack, boolean notify) throws Throwable- Specified by:
savein interfaceIEditorViewComponent- Throws:
Throwable
-
save
public void save(boolean goBack, boolean notify, boolean copyEditableValues) throws Throwable- Throws:
Throwable
-
validate
public boolean validate()
-
validate
public boolean validate(boolean silent)
-
load
public void load(Object id, Object parent, FieldInterfaced field) throws Throwable
- Throws:
Throwable
-
rebuildActions
public void rebuildActions()
-
clear
public void clear()
-
onGoBack
public void onGoBack()
-
goBack
public void goBack()
-
setCreatorWindow
public void setCreatorWindow(BindedWindow creatorWindow)
-
-