Package com.storedobject.ui.inventory
Class POEditor<T extends InventoryPO>
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.inventory.POEditor<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>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.vaadin.AbstractDataEditor
AbstractDataEditor.DForm
Nested 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.ui.ObjectEditor
add, audit, buttonPanel, cancel, delete, edit, exit, ledger, print, report, save, search
Fields inherited from class com.storedobject.vaadin.AbstractDataForm
form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is invoked when anchor values are set via the anchor form and if any exception is thrown from this method, anchor values will be asked again.boolean
Check whether delete operation is allowed for the current object instance.boolean
canDelete
(InventoryPO po) boolean
canEdit()
Check whether edit operation is allowed for the current object instance.boolean
protected com.vaadin.flow.component.HasValue
<?, ?> createField
(String fieldName, String label) Create the field for a particular "field name".boolean
void
doDelete()
This is equivalent to pressing the "Delete" button.protected String
Prefix string that is added to the "action" string to determine the actualUIAction
to be checked.Get the searcher for this editor.protected void
saveObject
(Transaction t, T object) Save the given object.Methods inherited from class com.storedobject.ui.ObjectEditor
acceptValueChange, actionAllowed, add, addExtraButtons, addExtraEditingButtons, addObject, addObject, addObject, addObjectChangedListener, addObjectEditorListener, addValidator, allowedActions, anchorFieldsCreated, anchorsCancelled, attachField, attachLinkField, canAdd, canAllowAction, canPostLedger, canSearch, canViewLedger, clean, clicked, create, create, create, create, createExtraButtons, createFormFieldEditor, createLinkFieldGrid, createNewInstance, createObjectInstance, customizeLinkField, delete, deleted, deleteObject, deleteObject, doAdd, doAudit, doCancel, doEdit, doReport, doSave, doSearch, editingCancelled, editingEnded, editingStarted, editObject, editObject, editObject, enablePrintButtons, executeAnchorForm, executeAnchorForm, extraInfoCreated, extraInfoLoaded, extraLinks, fieldAttached, filterActions, getAlertCaption, getAlertIcon, getAnchorField, getAnchorFilter, getApplication, getAttachmentField, getContactField, getContainer, getExtraInfoField, getField, getFieldName, getGrid, getLinkField, getLogic, getObject, getObjectFieldType, getParentLinkType, getParentObject, getTabName, getTransaction, handleAlert, handleValueSetError, initUI, inserted, isBuffered, isDoNotSaveAllowed, isEditing, isFieldEditable, isReadOnly, isViewOnly, linkFields, postLedger, postLedger, refreshMe, reload, remove, removeObjectChangedListener, removeObjectEditorListener, removeSetNotAllowed, removeValidator, resetAnchor, save, save, savingExtraInfo, setAllowDoNotSave, setAnchorFieldReadOnly, setBuffered, setCaption, setColumns, setContactData, setDeleter, setDoNotSave, 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
Methods inherited from class com.storedobject.vaadin.AbstractDataEditor
addField, addField, addField, addField, addField, addField, addField, addField, constructField, createField, customizeField, getDataClass, getFieldCreator, getFieldGetMethod, getFieldNames, getFieldOrder, getFieldSetMethod, getForm, getObjectClass, includeField, isFieldIncluded, newObject, setFixedValue, setFixedValue, setFixedValues, setObject
Methods inherited from class com.storedobject.vaadin.AbstractDataForm
addConstructedListener, addField, addField, addIncludeFieldChecker, addValidator, addValidator, clearAlerts, clearError, clearErrors, clearFields, commit, connect, connect, connect, createButtonLayout, createField, createFieldContainer, createLayout, detachField, fieldDetached, fireFormConstructed, formConstructed, 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, streamFieldsCreated
Methods 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, setEmbeddedView, setFirstFocus, setFullScreen, setScrollable, setWindowMode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.ui.AlertHandler
handleAlert
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, clearAlerts, close, createMenuItem, error, execute, getCaption, getMenuIconName, getMenuItem, getView, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, tray, valueChanged, warning
Methods inherited from interface com.storedobject.ui.ObjectChangedListener
saved, undeleted
Methods inherited from interface com.storedobject.ui.ObjectProvider
getObjectClass, getObjectId
Methods inherited from interface com.storedobject.core.ObjectSetter
accept, getObjectClass, isAllowAny, setObject
Methods inherited from interface com.storedobject.common.Reentrant
isReentrant
Methods inherited from interface com.storedobject.ui.Transactional
commit, execute, getTransactionManager, run, transact, transact, transactControl, transactControl
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
POEditor
-
POEditor
-
POEditor
-
POEditor
-
-
Method Details
-
getActionPrefix
Description copied from class:ObjectEditor
Prefix string that is added to the "action" string to determine the actualUIAction
to be checked. SeeObjectEditor.actionAllowed(String)
. For example,POBrowser
returns the value "PO" for this method.- Overrides:
getActionPrefix
in classObjectEditor<T extends InventoryPO>
- Returns:
- Prefix string. Default implementation returns null. That means that all the actions are allowed.
-
canEdit
public boolean canEdit()Description copied from class:ObjectEditor
Check whether edit operation is allowed for the current object instance.- Overrides:
canEdit
in classObjectEditor<T extends InventoryPO>
- Returns:
- True if allowed.
-
canEdit
-
canDelete
public boolean canDelete()Description copied from class:ObjectEditor
Check whether delete operation is allowed for the current object instance.- Overrides:
canDelete
in classObjectEditor<T extends InventoryPO>
- Returns:
- True if allowed.
-
canDelete
-
doDelete
public void doDelete()Description copied from class:ObjectEditor
This is equivalent to pressing the "Delete" button.- Overrides:
doDelete
in classObjectEditor<T extends InventoryPO>
-
deletePO
-
createField
Description copied from class:AbstractDataForm
Create the field for a particular "field name".- Overrides:
createField
in classAbstractDataForm<T extends InventoryPO>
- Parameters:
fieldName
- Field namelabel
- Label for the field- Returns:
- Field created.
-
getSearcher
Description copied from class:ObjectEditor
Get the searcher for this editor.- Overrides:
getSearcher
in classObjectEditor<T extends InventoryPO>
- Returns:
- Searcher.
-
anchorsSet
Description copied from class:ObjectEditor
This method is invoked when anchor values are set via the anchor form and if any exception is thrown from this method, anchor values will be asked again.- Overrides:
anchorsSet
in classObjectEditor<T extends InventoryPO>
- Throws:
Exception
- If anchor values are not acceptable for some reason.
-
saveObject
Description copied from class:ObjectEditor
Save the given object. This is invoked from theObjectEditor.save(Transaction)
method to just save the object. The default implementation just saves the object by invokingStoredObject.save(Transaction)
.- Overrides:
saveObject
in classObjectEditor<T extends InventoryPO>
- Parameters:
t
- Transaction.object
- Object to be saved.- Throws:
Exception
- Raises when save operation is not successful.
-