public class InvoiceDetail
extends com.google.gwt.user.client.ui.Composite
| Constructor and Description |
|---|
InvoiceDetail(com.google.web.bindery.event.shared.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Invoice invoice) |
void |
clear() |
void |
fill(Invoice invoice) |
Invoice |
getInvoice()
Returns the current invoice model used to render this panel.
|
void |
setReadOnly(boolean readOnly)
If
true sets all editable fields read only. |
void |
setStatus(Invoice.Status status)
Sets the current invoice status, visualized by 3 steps.
|
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 InvoiceDetail(com.google.web.bindery.event.shared.EventBus eventBus)
public void setReadOnly(boolean readOnly)
true sets all editable fields read only.public Invoice getInvoice()
null if none yetpublic void clear()
public void setStatus(@Nonnull Invoice.Status status)
Invoice.Status#SENT step has click handlers added in order to give possibility to change.
Invoice.Status#CANCELED has a special handling, this status visually replaces
Invoice.Status#PAID step (last third step).
status - the current status to be setCopyright © 2023. All rights reserved.