net.rim.device.api.ui.component.progressindicator
Class ActivityIndicatorModel

java.lang.Object
  extended by net.rim.device.api.ui.component.progressindicator.AbstractProgressIndicatorModel
      extended by net.rim.device.api.ui.component.progressindicator.ActivityIndicatorModel

public class ActivityIndicatorModel
extends AbstractProgressIndicatorModel

Implementation of AbstractProgressIndicatorModel. This model represents progress with no finite representation. Since there is no finite representation, the progress cannot be represented by values. Therefore, no Adjustment object is accepted for this object. Both ActivityIndicatorModel.setAdjustment(net.rim.device.api.ui.Adjustment) and ActivityIndicatorModel.removeAdjustment(net.rim.device.api.ui.Adjustment) are null operations.

Since:
BlackBerry API 6.0.0

Constructor Summary
ActivityIndicatorModel()
          Constructs a new ActivityIndicatorModel.
 
Method Summary
 boolean isComplete()
          Indicates whether or not the progress has reached completion.
 void removeAdjustment(Adjustment adjustment)
          Because ActivityIndicatorModel is not represented by a value, it does not accept Adjustment objects.
 void setAdjustment(Adjustment adjustment)
          Because ActivityIndicatorModel is not represented by a value, it does not accept Adjustment objects.
 
Methods inherited from class net.rim.device.api.ui.component.progressindicator.AbstractProgressIndicatorModel
addListener, cancel, getAdjustment, getController, removeListener, reset, resume, setController, setNonProgrammaticValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

ActivityIndicatorModel

public ActivityIndicatorModel()
Constructs a new ActivityIndicatorModel.

Since:
BlackBerry API 6.0.0


Method Detail

isComplete

public boolean isComplete()
Indicates whether or not the progress has reached completion.

Specified by:
isComplete in class AbstractProgressIndicatorModel
Returns:
Always returns false.
Since:
BlackBerry API 6.0.0

removeAdjustment

public void removeAdjustment(Adjustment adjustment)
Because ActivityIndicatorModel is not represented by a value, it does not accept Adjustment objects. Therefore, there is no Adjustment to remove. This is a null operation.

Overrides:
removeAdjustment in class AbstractProgressIndicatorModel
Parameters:
adjustment - The Adjustment object to remove from this model.
Since:
BlackBerry API 6.0.0

setAdjustment

public void setAdjustment(Adjustment adjustment)
Because ActivityIndicatorModel is not represented by a value, it does not accept Adjustment objects. This method does not throw an exception, but is instead a null operation.

Overrides:
setAdjustment in class AbstractProgressIndicatorModel
Parameters:
adjustment - The Adjustment object to associate with this model.
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.