@Override public void onKeyPress( final KeyPressEvent event ) { nameGroup.setType( ControlGroupType.NONE ); nameHelpInline.setText( "" ); } } );
/** * Creates an empty widget. */ public HelpInline() { super(); setStyleName(Constants.HELP_INLINE); } }
@Override public void onFailure() { nameGroup.setType( ControlGroupType.ERROR ); nameHelpInline.setText( OrganizationalUnitManagerConstants.INSTANCE.OrganizationalUnitAlreadyExists() ); } } );
private void onOKButtonClick() { boolean hasError = false; if ( fileNameTextBox.getText() == null || fileNameTextBox.getText().trim().isEmpty() ) { fileNameGroup.setType( ControlGroupType.ERROR ); fileNameHelpInline.setText( NewItemPopupConstants.INSTANCE.fileNameIsMandatory() ); hasError = true; } else { fileNameGroup.setType( ControlGroupType.NONE ); } if ( hasError ) { return; } presenter.makeItem(); }
@Override public void show() { nameTextBox.setText( "" ); nameGroup.setType( ControlGroupType.NONE ); nameHelpInline.setText( "" ); ownerTextBox.setText( "" ); super.show(); } }
private void onOKButtonClick() { nameGroup.setType( ControlGroupType.NONE ); if ( nameTextBox.getText() == null || nameTextBox.getText().trim().isEmpty() ) { nameGroup.setType( ControlGroupType.ERROR ); nameHelpInline.setText( OrganizationalUnitManagerConstants.INSTANCE.OrganizationalUnitNameIsMandatory() ); return; } if ( validationCallbackCommand == null ) { onOKSuccess(); return; } validationCallbackCommand.execute( new ValidatorCallback() { @Override public void onSuccess() { onOKSuccess(); } @Override public void onFailure() { nameGroup.setType( ControlGroupType.ERROR ); nameHelpInline.setText( OrganizationalUnitManagerConstants.INSTANCE.OrganizationalUnitAlreadyExists() ); } } ); }