public class OrderDetail
extends com.google.gwt.user.client.ui.Composite
| Constructor and Description |
|---|
OrderDetail(com.google.web.bindery.event.shared.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Order order) |
void |
fill(Order order) |
void |
setBeginOnReadOnly(boolean readOnly)
Sets the order's Begin on date whether it's allowed to be edited by user or not.
|
void |
setDueDate(Date date)
Sets order's due date (a date placed at invoice once issued).
|
void |
setNextBillingDate(Date next)
Sets the order's Next billing date, evaluated based on the current periodicity.
|
void |
setNumberOfDays(Integer days)
Sets the number of days to calculate due date.
|
void |
setStatus(Order.Status status)
Sets the current order status, visualized by 4 steps (
Order.Status#TRIALING is for time being hidden). |
void |
updatePricing(Double totalPriceExclVat,
Double totalVatBase,
Double totalPrice,
List<PricingItem> items)
Updates total price details.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString@Inject public OrderDetail(com.google.web.bindery.event.shared.EventBus eventBus)
public void setStatus(@Nonnull Order.Status status)
Order.Status#TRIALING is for time being hidden).
Following steps has click handlers added in order to give possibility to change.
Order.Status#ACTIVEOrder.Status#SUSPENDEDOrder.Status#ISSUEstatus - the current status to be setpublic void updatePricing(@Nullable Double totalPriceExclVat, @Nullable Double totalVatBase, @Nullable Double totalPrice, @Nullable List<PricingItem> items)
public void setBeginOnReadOnly(boolean readOnly)
readOnly - true to be read onlypublic void setNextBillingDate(@Nonnull Date next)
next - the next billing date to be setpublic void setDueDate(@Nullable Date date)
date - the due date to be setpublic void setNumberOfDays(Integer days)
days - the number of days to be setCopyright © 2020. All rights reserved.