@Component public class Date extends Object implements IInvalidatable
| Modifier and Type | Field and Description |
|---|---|
private javafx.beans.property.ObjectProperty<org.joda.time.DateTime> |
cal
Current date
|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private DateService |
dateService |
private javafx.beans.binding.StringBinding |
dayDateBinding |
static int |
DEFAULT_INVALID_START_YEAR |
private static Object |
lock
Lock for guaranteeing thread safety
|
private org.apache.logging.log4j.Logger |
logger |
private IModelTranslationService |
modelTranslationService |
private org.joda.time.DateTime |
startDate |
private Integer |
startYear
Start year
|
private int |
tickUpdate
Tick update in minutes
|
| Constructor and Description |
|---|
Date() |
Date(org.joda.time.DateTime cal)
Constructor for testing purposes only
|
Date(int year)
Initialize the date with start year.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
checkStartYear(int startYear) |
javafx.beans.binding.StringBinding |
dayDateBinding()
Bind the representation of the day as a String.
|
org.joda.time.DateTime |
getCurrentDate()
Retrieve the immutable DateTime
|
javafx.beans.property.ObjectProperty<org.joda.time.DateTime> |
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(org.joda.time.DateTime newTime)
Change the time.
|
private final org.apache.logging.log4j.Logger logger
public static final int DEFAULT_INVALID_START_YEAR
private int tickUpdate
private javafx.beans.property.ObjectProperty<org.joda.time.DateTime> cal
private org.joda.time.DateTime startDate
private Integer startYear
private static Object lock
private javafx.beans.binding.StringBinding dayDateBinding
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired private IModelTranslationService modelTranslationService
@Autowired private DateService dateService
public Date(int year)
public Date()
Date(org.joda.time.DateTime cal)
cal - public void resetStartYear(int startYear)
public void setStartYear(int startYear)
private boolean checkStartYear(int startYear)
public void updateTime(org.joda.time.DateTime newTime)
newTime - public void setTickUpdate(int minutes)
minutes - tick updatepublic javafx.beans.binding.StringBinding dayDateBinding()
public org.joda.time.DateTime getCurrentDate()
public javafx.beans.property.ObjectProperty<org.joda.time.DateTime> getCurrentDateProperty()
public void invalidate()
invalidate in interface IInvalidatableCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.