@Component public class Date extends Object
| 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 javafx.beans.binding.StringBinding |
dayDateBinding |
private Locale |
locale |
private static Object |
lock
Lock for guaranteeing thread safety
|
private org.springframework.context.MessageSource |
messageSource |
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 |
|---|---|
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
|
String |
getEndOfWeek()
Retrieve the date of the end of the week in the form {Day of month}.
|
(package private) org.joda.time.DateTime |
getEndOfWeekInternal()
Retrieve the date of the of the Sunday of last week
|
String |
getStartOfWeek()
Retrieve the date of the start of the week in the form {Day of month}.
|
(package private) org.joda.time.DateTime |
getStartOfWeekInternal()
Retrieve the date of the start of the last week
|
int |
getWeekdayIndex()
Retrieve an index for the current weekday.
|
void |
setStartYear(int startYear) |
void |
setTickUpdate(int minutes)
Set the tick update in number of minutes
|
String |
toDisplayString()
Create a string representation for the user interface of the
form {Day of month}.
|
String |
todisplayString(int day,
int month,
int year) |
private String |
toShortDate(org.joda.time.DateTime c)
Convert the date into the form {Day in month}.
|
void |
updateTime(org.joda.time.DateTime newTime)
Change the time.
|
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 Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
public Date(int year)
public Date()
Date(org.joda.time.DateTime cal)
cal - public void setStartYear(int startYear)
public void updateTime(org.joda.time.DateTime newTime)
newTime - public void setTickUpdate(int minutes)
minutes - tick updatepublic String getStartOfWeek()
org.joda.time.DateTime getStartOfWeekInternal()
private String toShortDate(org.joda.time.DateTime c)
c - public String getEndOfWeek()
org.joda.time.DateTime getEndOfWeekInternal()
public String toDisplayString()
public javafx.beans.binding.StringBinding dayDateBinding()
public String todisplayString(int day, int month, int year)
public org.joda.time.DateTime getCurrentDate()
public javafx.beans.property.ObjectProperty<org.joda.time.DateTime> getCurrentDateProperty()
public final int getWeekdayIndex()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.