Package com.storedobject.ui.common
Class AbstractTextContentEditor<T extends TextContent>
java.lang.Object
com.storedobject.vaadin.View
com.storedobject.vaadin.AbstractDataForm<T>
com.storedobject.vaadin.AbstractDataEditor<T>
com.storedobject.ui.ObjectEditor<T>
com.storedobject.ui.common.AbstractTextContentEditor<T>
- All Implemented Interfaces:
Executable,Reentrant,HasLogic,ObjectSetter<T>,AlertHandler,ObjectChangedListener<T>,ObjectEditorListener,ObjectProvider<T>,Transactional,TransactionCreator,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,Consumer<T>
- Direct Known Subclasses:
ProcessingLanguageEditor,TextContentEditor
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.vaadin.AbstractDataEditor
AbstractDataEditor.DFormNested classes/interfaces inherited from class com.storedobject.vaadin.AbstractDataForm
AbstractDataForm.FieldErrorNested 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.ui.ObjectEditor
add, audit, buttonPanel, cancel, delete, edit, exit, ledger, print, report, save, searchFields inherited from class com.storedobject.vaadin.AbstractDataForm
form -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTextContentEditor(Class<T> objectClass) AbstractTextContentEditor(Class<T> objectClass, int actions) AbstractTextContentEditor(Class<T> objectClass, int actions, String caption) AbstractTextContentEditor(String className) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomizeField(String fieldName, com.vaadin.flow.component.HasValue<?, ?> field) Customize a field.protected voidThis method is invoked when the form is constructed.protected booleansave()Save the current instance to the database.Methods inherited from class com.storedobject.ui.ObjectEditor
acceptValueChange, actionAllowed, add, addExtraButtons, addExtraEditingButtons, addObject, addObject, addObject, addObjectChangedListener, addObjectEditorListener, addValidator, allowedActions, anchorFieldsCreated, anchorsCancelled, anchorsSet, attachField, attachLinkField, canAdd, canAllowAction, canDelete, canEdit, canPostLedger, canSearch, canViewLedger, clean, clicked, create, create, create, create, createExtraButtons, createFormFieldEditor, createLinkFieldGrid, createNewInstance, createObjectInstance, customizeLinkField, delete, deleted, deleteObject, deleteObject, doAdd, doAudit, doCancel, doDelete, doEdit, doReport, doSave, doSearch, editingCancelled, editingEnded, editingStarted, editObject, editObject, editObject, enablePrintButtons, executeAnchorForm, executeAnchorForm, extraInfoCreated, extraInfoLoaded, extraLinks, fieldAttached, filterActions, getActionPrefix, getAlertCaption, getAlertIcon, getAnchorField, getAnchorFilter, getApplication, getAttachmentField, getContactField, getContainer, getExtraInfoField, getField, getFieldName, getGrid, getLinkField, getLogic, getObject, getObjectFieldType, getParentLinkType, getParentObject, getSearcher, getTabName, getTransaction, handleAlert, handleValueSetError, initUI, inserted, isBuffered, isDoNotSaveAllowed, isEditing, isFieldEditable, isReadOnly, isViewOnly, linkFields, postLedger, postLedger, refreshMe, reload, remove, removeObjectChangedListener, removeObjectEditorListener, removeSetNotAllowed, removeValidator, resetAnchor, save, saveObject, savingExtraInfo, setAllowDoNotSave, setAnchorFieldReadOnly, setBuffered, setCaption, setColumns, setContactData, setDeleter, setDoNotSave, setEmbeddedView, setExtraInfo, setFieldContainerProvider, setLogic, setNewObjectGenerator, setNoTab, setObject, setParentObject, setRawObject, setSaver, setSearchFilter, setSearchFilter, setSetNotAllowed, setTab, setTransactionCreator, skipFirstFocus, trackValueChange, updated, validateAnchorValues, validateData, viewLedger, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObject, viewObjectMethods inherited from class com.storedobject.vaadin.AbstractDataEditor
addField, addField, addField, addField, addField, addField, addField, addField, constructField, createField, getDataClass, getFieldCreator, getFieldGetMethod, getFieldNames, getFieldOrder, getFieldSetMethod, getForm, getObjectClass, includeField, isFieldIncluded, newObject, setFixedValue, setFixedValue, setFixedValues, setObjectMethods inherited from class com.storedobject.vaadin.AbstractDataForm
addConstructedListener, addField, addField, addIncludeFieldChecker, addValidator, addValidator, clearAlerts, clearError, clearErrors, clearFields, commit, connect, connect, connect, createButtonLayout, createField, createField, createFieldContainer, createLayout, detachField, fieldDetached, fireFormConstructed, getColumns, getColumnSpan, getContent, getData, getErrorDisplay, getFieldLabel, getFieldLabel, getFieldName, getLabel, isFieldEditable, isFieldVisible, isFieldVisible, load, markError, newLine, removeAll, removeField, removeField, removeField, setColumnSpan, setErrorDisplay, 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, streamFieldsCreatedMethods inherited from class com.storedobject.vaadin.View
abort, aborted, addClosedListener, addOpenedListener, close, createCloseableView, createWindow, decorateComponent, execute, execute, execute, executing, focus, focus, focusAny, getCaption, getComponent, getCreatedBy, getEmbeddedView, getMenuItem, getMenuItem, getView, invoke, isFullScreen, isScrollable, isWindowMode, select, setComponent, setCreatedBy, setDefaultPadding, setFirstFocus, setFullScreen, setScrollable, setWindowModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.ui.AlertHandler
handleAlertMethods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClickedMethods inherited from interface com.storedobject.common.Executable
actMethods inherited from interface com.storedobject.vaadin.ExecutableView
abort, clearAlerts, close, createMenuItem, error, execute, getCaption, getMenuIconName, getMenuItem, getView, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, tray, valueChanged, warningMethods inherited from interface com.storedobject.ui.ObjectChangedListener
saved, undeletedMethods inherited from interface com.storedobject.ui.ObjectProvider
getObjectClass, getObjectIdMethods inherited from interface com.storedobject.core.ObjectSetter
accept, getObjectClass, isAllowAny, setObjectMethods inherited from interface com.storedobject.common.Reentrant
isReentrantMethods inherited from interface com.storedobject.ui.Transactional
commit, execute, getTransactionManager, run, transact, transact, transactControl, transactControl, transactControl, transactControlMethods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
AbstractTextContentEditor
-
AbstractTextContentEditor
-
AbstractTextContentEditor
-
AbstractTextContentEditor
-
-
Method Details
-
formConstructed
protected void formConstructed()Description copied from class:AbstractDataFormThis method is invoked when the form is constructed.- Overrides:
formConstructedin classAbstractDataForm<T extends TextContent>
-
customizeField
Description copied from class:AbstractDataEditorCustomize a field. This method is invoked when a field is created. One may do some customization here.- Overrides:
customizeFieldin classAbstractDataEditor<T extends TextContent>- Parameters:
fieldName- Name of the fieldfield- Field
-
save
Description copied from class:ObjectEditorSave the current instance to the database. This method carries out the save operation set by theObjectEditor.setSaver(Function). If no such operation is specified, then, it invokesObjectEditor.save(Transaction)to carry out the operation.- Overrides:
savein classObjectEditor<T extends TextContent>- Returns:
- True if the operation was successful. Otherwise, false is returned.
- Throws:
Exception- Raises when save operation is not successful.
-