Package com.storedobject.ui.inventory
Class HandleReturnedItems
java.lang.Object
com.storedobject.vaadin.View
com.storedobject.vaadin.AbstractDataForm<Object>
com.storedobject.vaadin.DataForm
com.storedobject.ui.inventory.HandleReturnedItems
- 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
- Direct Known Subclasses:
ReceiveReturnedItems
Handle items at external organization / custody that were sent to them earlier
(Sent for repairs, rented out, custody etc.)
- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested 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.vaadin.DataForm
buttonPanel, cancel, okFields inherited from class com.storedobject.vaadin.AbstractDataForm
form -
Constructor Summary
ConstructorsConstructorDescriptionHandleReturnedItems(String caption, int type, InventoryStoreBin storeBin, InventoryLocation eo, boolean allowJumpToOld) HandleReturnedItems(String caption, int type, InventoryStoreBin storeBin, InventoryLocation eo, boolean allowJumpToOld, boolean autoMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidBuild the buttons.protected voidOverride this if you want to do something before the View comes up on the screen.intGet the minimum "content width" (Percentage value of the view port width).protected abstract voidproceed(List<InventoryItem> items) protected booleanprocess()This method is invoked if the "Ok" button is pressed and there is no error raised byDataForm.validateData()method.protected abstract voidMethods inherited from class com.storedobject.vaadin.DataForm
buildFields, cancel, clicked, getMaximumContentHeight, getMaximumContentWidth, getMinimumContentHeight, initUI, setButtonsAtTop, setCloseable, setWindowMode, sizeSet, skipFirstFocus, validateDataMethods 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, setRequired, streamFieldNamesCreated, streamFieldsCreatedMethods inherited from class com.storedobject.vaadin.View
abort, aborted, addClosedListener, addOpenedListener, close, createCloseableView, createWindow, decorateComponent, 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, setScrollableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, 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, warningMethods inherited from interface com.storedobject.common.Reentrant
isReentrantMethods inherited from interface com.storedobject.ui.Transactional
commit, execute, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl, transactControl, transactControlMethods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
HandleReturnedItems
public HandleReturnedItems(String caption, int type, InventoryStoreBin storeBin, InventoryLocation eo, boolean allowJumpToOld) -
HandleReturnedItems
public HandleReturnedItems(String caption, int type, InventoryStoreBin storeBin, InventoryLocation eo, boolean allowJumpToOld, boolean autoMode)
-
-
Method Details
-
buildButtons
protected void buildButtons()Description copied from class:DataFormBuild 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:
buildButtonsin classDataForm
-
getMinimumContentWidth
public int getMinimumContentWidth()Description copied from class:DataFormGet the minimum "content width" (Percentage value of the view port width). Value should be between 10 and 80. This value is used only in "window mode" or "centered" mode.- Overrides:
getMinimumContentWidthin classDataForm- Returns:
- Percentage value of the view port width. Default is 10%.
-
execute
Description copied from class:ViewOverride this if you want to do something before the View comes up on the screen. Call super.execute(parent, doNotLock) to make the View appear on the screen. Parent view is automatically selected when this view closes. -
process
protected boolean process()Description copied from class:DataFormThis method is invoked if the "Ok" button is pressed and there is no error raised byDataForm.validateData()method. This method has to returntruein order to close the "data entry screen". -
processOld
protected abstract void processOld() -
proceed
-