sk.baka.ambient.views
Interface ViewUtils.OnTextSubmit

Enclosing class:
ViewUtils

public static interface ViewUtils.OnTextSubmit

Fired when a text has been successfully entered.

Author:
Martin Vysny

Method Summary
 void cancel()
          The dialog has been canceled.
 void submit(java.lang.String text)
          A text has been submitted, never null.
 java.lang.String validate(java.lang.String text)
          Validates given text.
 

Method Detail

validate

java.lang.String validate(java.lang.String text)
Validates given text. If the text is valid then return null.

Parameters:
text - the text to validate, never null.
Returns:
null if the text is valid, error message otherwise.

submit

void submit(java.lang.String text)
A text has been submitted, never null.

Parameters:
text - the text.

cancel

void cancel()
The dialog has been canceled.



Copyright © 2007-2009. All Rights Reserved.