ch.sahits.game.openpatrician.utilities.IInvalidatable@Component
public class Date
extends java.lang.Object
implements ch.sahits.game.openpatrician.utilities.IInvalidatable
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_INVALID_START_YEAR |
| Constructor | Description |
|---|---|
Date() |
|
Date(int year) |
Initialize the date with start year.
|
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.binding.StringBinding |
dayDateBinding() |
Bind the representation of the day as a String.
|
java.time.LocalDateTime |
getCurrentDate() |
Retrieve the immutable DateTime
|
javafx.beans.property.ObjectProperty<java.time.LocalDateTime> |
getCurrentDateProperty() |
Retrieve the immutable DateTime
|
void |
invalidate() |
|
void |
resetStartYear(int startYear) |
|
void |
setStartYear(int startYear) |
|
void |
setTickUpdate(int minutes) |
Set the tick update in number of minutes
|
void |
updateTime(java.time.LocalDateTime newTime) |
Change the time.
|
public static final int DEFAULT_INVALID_START_YEAR
public Date(int year)
public Date()
public void resetStartYear(int startYear)
public void setStartYear(int startYear)
public void updateTime(java.time.LocalDateTime newTime)
newTime - new timepublic void setTickUpdate(int minutes)
minutes - tick updatepublic javafx.beans.binding.StringBinding dayDateBinding()
ModelTranslations.toDisplayString(LocalDateTime)public java.time.LocalDateTime getCurrentDate()
public javafx.beans.property.ObjectProperty<java.time.LocalDateTime> getCurrentDateProperty()
public void invalidate()
invalidate in interface ch.sahits.game.openpatrician.utilities.IInvalidatableCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.