@Templated public class ShiftTemplateEditForm extends AbstractFormPopup
| Constructor and Description |
|---|
ShiftTemplateEditForm(PopupFactory popupFactory,
CallbackFactory callbackFactory,
NotificationFactory notificationFactory,
elemental2.dom.HTMLDivElement root,
elemental2.dom.HTMLElement popupTitle,
elemental2.dom.HTMLButtonElement closeButton,
elemental2.dom.HTMLButtonElement cancelButton,
RotationTimeSelector from,
RotationTimeSelector to,
org.gwtbootstrap3.client.ui.ListBox spotSelect,
org.gwtbootstrap3.client.ui.ListBox employeeSelect,
elemental2.dom.HTMLButtonElement deleteButton,
elemental2.dom.HTMLButtonElement applyButton,
TenantStore tenantStore,
EventManager eventManager,
org.jboss.errai.ui.client.local.spi.TranslationService translationService) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
fromDayOffsetAndTimeToDuration(int dayOffset,
LocalTime time) |
Duration |
getDurationOfShiftTemplate(int startDayOffset,
LocalTime startTime,
int endDayOffset,
LocalTime endTime,
int rotationLength) |
void |
init(ShiftTemplateGridObject shiftTemplateGridObject) |
void |
onApplyButtonClick(elemental2.dom.MouseEvent e) |
protected void |
onClose() |
void |
onDeleteButtonClick(elemental2.dom.MouseEvent e) |
boolean |
updateShiftTemplateFromWidgetsIfValid(ShiftTemplateView template) |
hide, onCancelButtonClick, onClick, onCloseButtonClick, setTitle, show, showFor@Inject public ShiftTemplateEditForm(PopupFactory popupFactory, CallbackFactory callbackFactory, NotificationFactory notificationFactory, elemental2.dom.HTMLDivElement root, @Named(value="span") elemental2.dom.HTMLElement popupTitle, elemental2.dom.HTMLButtonElement closeButton, elemental2.dom.HTMLButtonElement cancelButton, RotationTimeSelector from, RotationTimeSelector to, org.gwtbootstrap3.client.ui.ListBox spotSelect, org.gwtbootstrap3.client.ui.ListBox employeeSelect, elemental2.dom.HTMLButtonElement deleteButton, elemental2.dom.HTMLButtonElement applyButton, TenantStore tenantStore, EventManager eventManager, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
public void init(ShiftTemplateGridObject shiftTemplateGridObject)
protected void onClose()
onClose in class AbstractFormPopup@EventHandler(value="apply-button")
public void onApplyButtonClick(@ForEvent(value="click")
elemental2.dom.MouseEvent e)
@EventHandler(value="delete-button")
public void onDeleteButtonClick(@ForEvent(value="click")
elemental2.dom.MouseEvent e)
public boolean updateShiftTemplateFromWidgetsIfValid(ShiftTemplateView template)
public Duration fromDayOffsetAndTimeToDuration(int dayOffset, LocalTime time)
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.