List of usage examples for com.google.gwt.user.datepicker.client DateBox setEnabled
public void setEnabled(boolean enabled)
From source file:com.ponysdk.ui.terminal.ui.PTDateBox.java
License:Apache License
@Override public void update(final PTInstruction update, final UIService uiService) { final DateBox dateBox = cast(); if (update.containsKey(PROPERTY.VALUE)) { dateBox.getTextBox().setText(update.getString(PROPERTY.VALUE)); } else if (update.containsKey(PROPERTY.DATE_FORMAT)) { final DefaultFormat format = new DefaultFormat( DateTimeFormat.getFormat(update.getString(PROPERTY.DATE_FORMAT))); dateBox.setFormat(format);// w w w .j a v a2 s .c o m } else if (update.containsKey(PROPERTY.DATE_FORMAT_PATTERN)) { dateBox.setFormat( new DefaultFormat(DateTimeFormat.getFormat(update.getString(PROPERTY.DATE_FORMAT_PATTERN)))); } else if (update.containsKey(PROPERTY.ENABLED)) { dateBox.setEnabled(update.getBoolean(PROPERTY.ENABLED)); } else { super.update(update, uiService); } }