/** * Explicitly focus/unfocus this widget. Only one widget can have focus at a * time, and the widget that does will receive all keyboard events. * * @param focused whether this widget should take focus or release it */ public void setFocus(boolean focused) { box.setFocus(focused); }
public void onValueChange(ValueChangeEvent<Date> event) { setValue(parseDate(false), normalize(event.getValue()), true, true); hideDatePicker(); preventDatePickerPopup(); box.setFocus(true); }
/*************************************** * Sets the focus to the filter input field. * * @param bFocused The focused state to set */ public void setFocus(boolean bFocused) { aFilterValue.setFocus(bFocused); }
@Override public void run() { value.setFocus(true); } }.schedule(300);
/** * Explicitly focus/unfocus this widget. Only one widget can have focus at a * time, and the widget that does will receive all keyboard events. * * @param focused whether this widget should take focus or release it */ public void setFocus(boolean focused) { box.setFocus(focused); }
@Override public void run() { text.setFocus(true); } }.schedule(100);
@Override public void run() { expression.setFocus(true); } }.schedule(300);
@Override public void focusOnInput() { nameField.setFocus(true); }
@Override public void setFocus(boolean focused) { input.setFocus(focused); }
private void resetFilter() { filterInput.setText(""); filterInput.setFocus(true); } }
@Override public void resetAndFocus() { nameField.setFocus(true); nameField.selectAll(); }
private void changeEnabledState(boolean enabled) { projectName.setEnabled(enabled); if (enabled) { projectName.setFocus(true); } changeEnabledStateAll(enabled); }
public void show() { setAfterShow( new Command() { public void execute() { checkInCommentTextBox.setFocus( true ); } } ); super.show(); checkInCommentTextBox.setFocus( true ); }
@Override protected void onAttach() { super.onAttach(); tb.setFocus( true ); tb.selectAll(); }
@Override protected void onAttach() { super.onAttach(); tb.setFocus( true ); tb.selectAll(); }
public void onValueChange(ValueChangeEvent<Date> event) { setValue(parseDate(false), normalize(event.getValue()), true, true); hideDatePicker(); preventDatePickerPopup(); box.setFocus(true); }
public void onValueChange(ValueChangeEvent<Date> event) { setValue(parseDate(false), normalize(event.getValue()), true, true); hideDatePicker(); preventDatePickerPopup(); box.setFocus(true); }
@Override public void setFileNameTextBoxEnabled(boolean enabled) { fileName.setEnabled(enabled); if (enabled) { Scheduler.get().scheduleFinally(() -> fileName.setFocus(true)); } }
/** * This method sets focus on this widget.<p/> * But note that the combo box is not a focus event sourcer. It siply delegtes this functionality * to the text box. * * @param focus is a flag of focus. */ public void setFocus(boolean focus) { if (isCustomTextAllowed()) getSelectedValue().setFocus(focus); else getChoiceButton().setFocus(focus); }
@Override public void onClick(ClickEvent event) { textBox.setText(label.getText()); int width = label.getOffsetWidth(); int height = label.getOffsetHeight()+3; EditableLabel.this.setWidget(textBox); textBox.setWidth(""+width+"px"); textBox.setHeight(""+height+"px"); textBox.selectAll(); textBox.setFocus(true); } });