Forge - Parent 1.0.5-SNAPSHOT

org.jboss.forge.shell
Class Wait

java.lang.Object
  extended by org.jboss.forge.shell.Wait

@Singleton
public class Wait
extends Object

Display a "Please wait" spinner for the user, until cancelled. It is a good idea to wrap usage of Wait in a try-finally block to ensure that the wait is always completed.

Author:
Lincoln Baxter, III, Koen Aers

Constructor Summary
Wait(Shell shell)
           
 
Method Summary
 boolean isWaiting()
          Returns true if the waiting spinner is currently being displayed; otherwise, return false.
 void start()
          Start waiting, printing the default message.
 void start(String message)
          Start waiting.
 void stop()
          Stop waiting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wait

@Inject
public Wait(Shell shell)
Method Detail

start

public void start()
Start waiting, printing the default message.


start

public void start(String message)
Start waiting.


stop

public void stop()
Stop waiting.


isWaiting

public boolean isWaiting()
Returns true if the waiting spinner is currently being displayed; otherwise, return false.


Forge - Parent 1.0.5-SNAPSHOT

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.