mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
patch3
This commit is contained in:
parent
7b55fc7be1
commit
fbdaf6d368
@ -107,13 +107,8 @@ public class MainWindow extends TWindow {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
ChangeListener valueMustBeTime = new ChangeListener() {
|
ChangeListener valueMustBeTime =
|
||||||
@Override
|
(property, oldValue, newValue) -> new TTime((String) newValue);
|
||||||
public void changed(Property property, Object oldValue,
|
|
||||||
Object newValue) {
|
|
||||||
new TTime((String) newValue);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.arrivalTextField = new TTextField(Constants.DEFAULT_ARRIVAL_TIME, 40, true,valueMustBeTime);
|
this.arrivalTextField = new TTextField(Constants.DEFAULT_ARRIVAL_TIME, 40, true,valueMustBeTime);
|
||||||
this.overtimeTextField = new TTextField(Constants.DEFAULT_OVERTIME, 40, true,valueMustBeTime);
|
this.overtimeTextField = new TTextField(Constants.DEFAULT_OVERTIME, 40, true,valueMustBeTime);
|
||||||
this.workingTimeTextField = new TTextField("08:00", 40, true,valueMustBeTime);
|
this.workingTimeTextField = new TTextField("08:00", 40, true,valueMustBeTime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user