@PostConstruct public void init() { initWidget( uiBinder.createAndBindUi( this ) ); if ( Window.Location.getParameterMap().containsKey( "no_search" ) ) { this.setVisible( false ); } search.addKeyPressHandler( new KeyPressHandler() { @Override public void onKeyPress( final KeyPressEvent event ) { if ( event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER ) { search( null ); } } } ); }
public AddOrganizationalUnitPopup() { setTitle(OrganizationalUnitManagerConstants.INSTANCE.AddOrganizationalUnitPopupTitle()); setBody(uiBinder.createAndBindUi(this)); add(footer); nameTextBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { nameGroup.setValidationState(ValidationState.NONE); nameHelpInline.setText(""); } }); }
public AddOrganizationalUnitPopup() { setTitle(OrganizationalUnitManagerConstants.INSTANCE.AddOrganizationalUnitPopupTitle()); setBody(uiBinder.createAndBindUi(this)); add(footer); nameTextBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { nameGroup.setValidationState(ValidationState.NONE); nameHelpInline.setText(""); } }); }
@Override public void init(final CloneRepositoryView.Presenter presenter, final boolean isOuMandatory) { this.presenter = presenter; setBody(uiBinder.createAndBindUi(this)); setTitle(CoreConstants.INSTANCE.CloneRepository()); ouLabel.setShowRequiredIndicator(isOuMandatory); nameTextBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { nameGroup.setValidationState(ValidationState.NONE); nameHelpInline.setText(""); } }); organizationalUnitDropdown.addValueChangeHandler(e -> { organizationalUnitGroup.setValidationState(ValidationState.NONE); organizationalUnitHelpInline.setText(""); }); gitURLTextBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { urlGroup.setValidationState(ValidationState.NONE); urlHelpInline.setText(""); } }); }
@Override public void init(final CloneRepositoryView.Presenter presenter, final boolean isOuMandatory) { this.presenter = presenter; setBody(uiBinder.createAndBindUi(this)); setTitle(CoreConstants.INSTANCE.CloneRepository()); ouLabel.setShowRequiredIndicator(isOuMandatory); nameTextBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { nameGroup.setValidationState(ValidationState.NONE); nameHelpInline.setText(""); } }); organizationalUnitDropdown.addValueChangeHandler(e -> { organizationalUnitGroup.setValidationState(ValidationState.NONE); organizationalUnitHelpInline.setText(""); }); gitURLTextBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { urlGroup.setValidationState(ValidationState.NONE); urlHelpInline.setText(""); } }); }
num.addKeyPressHandler( new KeyPressHandler() { public void onKeyPress( KeyPressEvent event ) { if ( Character.isLetter( event.getCharCode() ) ) {
private void configureDropDown() { searchBox.addKeyPressHandler(event -> { if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_TAB) { stopPropagation(event);