Package com.storedobject.ui
Class MailForm
java.lang.Object
com.storedobject.vaadin.View
com.storedobject.vaadin.AbstractDataForm<Object>
com.storedobject.vaadin.DataForm
com.storedobject.ui.MailForm
- All Implemented Interfaces:
Executable
,Reentrant
,HasLogic
,Transactional
,ClickHandler
,ExecutableView
,HasContainer
,ValueChangeHandler
,com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>
,com.vaadin.flow.component.HasValue.ValueChangeListener
,Serializable
,Runnable
,EventListener
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.storedobject.vaadin.AbstractDataForm
AbstractDataForm.FieldError
Nested classes/interfaces inherited from interface com.storedobject.vaadin.ClickHandler
ClickHandler.ModifiedClickEvent<C extends com.vaadin.flow.component.Component>
-
Field Summary
Fields inherited from class com.storedobject.vaadin.DataForm
buttonPanel, cancel, ok
Fields inherited from class com.storedobject.vaadin.AbstractDataForm
form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddress
(Person person) void
addAddress
(PersonRole person) <T extends StoredObject>
voidaddAddress
(Class<T> personClass) <T extends StoredObject>
voidaddAddress
(Iterable<T> persons) void
addAddress
(String email) void
addAllowedAddress
(String email) <T extends StoredObject>
voidaddAllowedAddresses
(Class<T> personClass) <T extends StoredObject>
voidaddAllowedAddresses
(Iterable<T> persons) void
addAllowedCC
(String email) <T extends StoredObject>
voidaddAllowedCCs
(Class<T> personClass) <T extends StoredObject>
voidaddAllowedCCs
(Iterable<T> persons) void
void
addCC
(PersonRole person) <T extends StoredObject>
void<T extends StoredObject>
voidvoid
void
addOtherAttachments
(Mail mail) protected void
Build the buttons.protected void
This is where the fields are built.protected boolean
process()
This method is invoked if the "Ok" button is pressed and there is no error raised byDataForm.validateData()
method.void
setAddress
(Person person) void
setAddress
(PersonRole person) <T extends StoredObject>
voidsetAddress
(Class<T> personClass) <T extends StoredObject>
voidsetAddress
(Iterable<T> persons) void
setAddress
(String email) void
setAllowAttachments
(boolean allow) void
setAllowedAddress
(String email) <T extends StoredObject>
voidsetAllowedAddresses
(Class<T> personClass) <T extends StoredObject>
voidsetAllowedAddresses
(Iterable<T> persons) void
setAllowedCC
(String email) <T extends StoredObject>
voidsetAllowedCCs
(Class<T> personClass) <T extends StoredObject>
voidsetAllowedCCs
(Iterable<T> persons) void
void
setCC
(PersonRole person) <T extends StoredObject>
void<T extends StoredObject>
voidvoid
void
setContent
(String content) void
setSenderGroup
(SenderGroup senderGroup) void
setSubject
(String subject) Methods inherited from class com.storedobject.vaadin.DataForm
cancel, clicked, getMaximumContentHeight, getMaximumContentWidth, getMinimumContentHeight, getMinimumContentWidth, initUI, setButtonsAtTop, setCloseable, setWindowMode, sizeSet, skipFirstFocus, validateData
Methods inherited from class com.storedobject.vaadin.AbstractDataForm
add, addConstructedListener, addField, addField, addIncludeFieldChecker, addValidator, addValidator, attachField, clean, clearAlerts, clearError, clearErrors, clearFields, commit, connect, connect, connect, createButtonLayout, createField, createField, createFieldContainer, createLayout, detachField, fieldAttached, fieldDetached, fireFormConstructed, formConstructed, getColumns, getColumnSpan, getContainer, getContent, getData, getErrorDisplay, getField, getFieldLabel, getFieldLabel, getFieldName, getFieldNames, getForm, getLabel, isFieldEditable, isFieldEditable, isFieldVisible, isFieldVisible, isReadOnly, load, markError, newLine, remove, removeAll, removeField, removeField, removeField, setColumns, setColumnSpan, setErrorDisplay, setFieldContainerProvider, setFieldCustomizer, setFieldEditable, setFieldEditable, setFieldHidden, setFieldHidden, setFieldLabel, setFieldLabel, setFieldReadOnly, setFieldReadOnly, setFieldReadOnly, setFieldReadOnly, setFieldVisible, setFieldVisible, setFieldVisible, setFieldVisible, setIncludeFieldChecker, setReadOnly, setRequired, setRequired, setRequired, setRequired, setRequired, setRequired, setRequired, setRequired, streamFieldNamesCreated, streamFieldsCreated
Methods inherited from class com.storedobject.vaadin.View
abort, aborted, addClosedListener, addOpenedListener, close, createCloseableView, createWindow, decorateComponent, execute, execute, execute, executing, focus, focus, focusAny, getApplication, getCaption, getComponent, getCreatedBy, getEmbeddedView, getMenuItem, getMenuItem, getView, invoke, isFullScreen, isScrollable, isWindowMode, select, setCaption, setComponent, setCreatedBy, setDefaultPadding, setEmbeddedView, setFirstFocus, setFullScreen, setScrollable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClicked
Methods inherited from interface com.storedobject.common.Executable
act
Methods inherited from interface com.storedobject.vaadin.ExecutableView
abort, clean, clearAlerts, clicked, close, createMenuItem, error, execute, getApplication, getCaption, getMenuIconName, getMenuItem, getView, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setCaption, setClickable, speak, trackValueChange, tray, valueChanged, warning
Methods inherited from interface com.storedobject.common.Reentrant
isReentrant
Methods inherited from interface com.storedobject.ui.Transactional
commit, execute, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
MailForm
public MailForm() -
MailForm
-
-
Method Details
-
setAllowAttachments
public void setAllowAttachments(boolean allow) -
buildFields
protected void buildFields()Description copied from class:DataForm
This is where the fields are built. Typically, we create the fields and add it usingAbstractDataForm.addField(HasValue...)
orAbstractDataForm.addField(String, HasValue)
methods.- Overrides:
buildFields
in classDataForm
-
buildButtons
protected void buildButtons()Description copied from class:DataForm
Build the buttons. Button "Ok" and "Cancel" are already created. This method add those to theDataForm.buttonPanel
. You can add additional custom buttons and components to theDataForm.buttonPanel
.- Overrides:
buildButtons
in classDataForm
-
process
protected boolean process()Description copied from class:DataForm
This method is invoked if the "Ok" button is pressed and there is no error raised byDataForm.validateData()
method. This method has to returntrue
in order to close the "data entry screen". -
addOtherAttachments
-
setAllowedAddresses
-
addAllowedAddresses
-
setAllowedAddresses
-
addAllowedAddresses
-
setAddress
-
addAddress
-
setAddress
-
addAddress
-
setAddress
-
addAddress
-
setAddress
-
addAddress
-
setAllowedAddress
-
addAllowedAddress
-
setAddress
-
addAddress
-
setAllowedCCs
-
addAllowedCCs
-
setAllowedCCs
-
addAllowedCCs
-
setCC
-
addCC
-
setCC
-
addCC
-
setCC
-
addCC
-
setCC
-
addCC
-
setAllowedCC
-
addAllowedCC
-
setCC
-
addCC
-
setSubject
-
setContent
-
getSenderGroup
-
setSenderGroup
-