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 cancelled.
 void submit(String text)
          A text has been submitted, never null.
 String validate(String text)
          Validates given text.
 

Method Detail

validate

String validate(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(String text)
A text has been submitted, never null.

Parameters:
text - the text.

cancel

void cancel()
The dialog has been cancelled.



Copyright © 2007-2008. All Rights Reserved.