mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-18 02:00:58 +00:00
bug4210 Ensured debug ids for selenium test purposes
This commit is contained in:
1 parent
ea33bcf595
commit
e82fe2aa7a
2 files changed
+14
-2
No files matched your search
@@ -28,6 +28,11 @@ abstract class AbstractInput extends Composite implements DateTimeInput {
|
||||
initWidget(delegate.asWidget());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void onEnsureDebugId(String baseId) {
|
||||
getWidget().ensureDebugId(baseId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Date getValue() {
|
||||
return delegate.getValue();
|
||||
|
||||
+9
-2
@@ -37,13 +37,20 @@ public class DateAndTimeInput extends AbstractInput {
|
||||
private DateAndTimePanel(Accuracy accuracy) {
|
||||
add(this.dateInput = new DateInput());
|
||||
add(this.timeInput = new TimeInput(accuracy));
|
||||
dateInput.addStyleName(DateTimeInputResources.INSTANCE.css().dateTimeInput());
|
||||
timeInput.addStyleName(DateTimeInputResources.INSTANCE.css().dateTimeInput());
|
||||
this.dateInput.addStyleName(DateTimeInputResources.INSTANCE.css().dateTimeInput());
|
||||
this.timeInput.addStyleName(DateTimeInputResources.INSTANCE.css().dateTimeInput());
|
||||
this.dateFormat = Accuracy.getDateFormat();
|
||||
this.timeFormat = accuracy.getTimeFormat();
|
||||
this.datetimeFormat = accuracy.getDatetimeFormat();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onEnsureDebugId(String baseId) {
|
||||
super.onEnsureDebugId(baseId);
|
||||
this.dateInput.ensureDebugId("dateInput");
|
||||
this.timeInput.ensureDebugId("timeInput");
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler) {
|
||||
final ValueChangeHandler<Date> internalHandler = event -> ValueChangeEvent.fire(this, getValue());
|
||||
|
||||
Reference in new issue
Block a user