@Templated public class ShiftGridObject extends AbstractHasTimeslotGridObject<ShiftRosterMetadata> implements SingleGridObject<LocalDateTime,ShiftRosterMetadata>
| Constructor and Description |
|---|
ShiftGridObject() |
| Modifier and Type | Method and Description |
|---|---|
Employee |
getEmployee() |
Long |
getId() |
ShiftView |
getShiftView() |
Spot |
getSpot() |
protected HasTimeslot |
getTimeslot() |
protected void |
init(Lane<LocalDateTime,ShiftRosterMetadata> lane) |
protected void |
onMouseClick(elemental2.dom.MouseEvent e) |
void |
save()
Update the server version of this GridObject
|
void |
setEndPositionInScaleUnits(LocalDateTime newEndPosition)
This method only affects the backing data, not the actual position of the
element, which is handled in GridObjectPlacer
|
void |
setSelected(boolean isSelected) |
void |
setStartPositionInScaleUnits(LocalDateTime newStartPosition)
This method only affects the backing data, not the actual position of the
element, which is handled in GridObjectPlacer
|
ShiftGridObject |
withShiftView(ShiftView shiftView) |
getEndPositionInScaleUnits, getLane, getStartPositionInScaleUnits, withLaneclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGridObjectsgetEndPositionInScaleUnits, getLane, getStartPositionInScaleUnits, setClassProperty, withLanepublic ShiftView getShiftView()
public void setStartPositionInScaleUnits(LocalDateTime newStartPosition)
GridObjectsetStartPositionInScaleUnits in interface GridObject<LocalDateTime,ShiftRosterMetadata>public void setEndPositionInScaleUnits(LocalDateTime newEndPosition)
GridObjectsetEndPositionInScaleUnits in interface GridObject<LocalDateTime,ShiftRosterMetadata>public ShiftGridObject withShiftView(ShiftView shiftView)
public Long getId()
getId in interface GridObject<LocalDateTime,ShiftRosterMetadata>getId in interface HasGridObjects<LocalDateTime,ShiftRosterMetadata>protected void onMouseClick(elemental2.dom.MouseEvent e)
onMouseClick in class AbstractHasTimeslotGridObject<ShiftRosterMetadata>protected HasTimeslot getTimeslot()
getTimeslot in class AbstractHasTimeslotGridObject<ShiftRosterMetadata>protected void init(Lane<LocalDateTime,ShiftRosterMetadata> lane)
init in class AbstractHasTimeslotGridObject<ShiftRosterMetadata>public Spot getSpot()
public Employee getEmployee()
public void setSelected(boolean isSelected)
public void save()
GridObjectsave in interface GridObject<LocalDateTime,ShiftRosterMetadata>Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.