|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.repository.api.ProgressIndicatorAdapter
public abstract class ProgressIndicatorAdapter
A trivial implementation of ProgressIndicator that does nothing.
| Constructor Summary | |
|---|---|
ProgressIndicatorAdapter()
|
|
| Method Summary | |
|---|---|
void |
cancel()
Try to cancel this operation. |
double |
getFraction()
|
boolean |
isCanceled()
|
boolean |
isCancellable()
|
boolean |
isIndeterminate()
|
void |
logError(java.lang.String s)
Logs an error. |
void |
logError(java.lang.String s,
java.lang.Throwable e)
Logs an error, including a stacktrace. |
void |
logInfo(java.lang.String s)
Logs an info message. |
void |
logWarning(java.lang.String s)
Logs a warning. |
void |
logWarning(java.lang.String s,
java.lang.Throwable e)
Logs a warning, including a stacktrace. |
void |
setCancellable(boolean cancellable)
Sets whether the user should be able to cancel this operation. |
void |
setFraction(double v)
Sets how much progress should be shown on the progress bar, between 0 and 1. |
void |
setIndeterminate(boolean indeterminate)
Sets whether this progress indicator should show indeterminate progress. |
void |
setSecondaryText(java.lang.String s)
Sets the secondary text on the progress indicator. |
void |
setText(java.lang.String s)
Sets the main text shown in the progress indicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressIndicatorAdapter()
| Method Detail |
|---|
public void setText(@Nullable
java.lang.String s)
ProgressIndicator
setText in interface ProgressIndicatorpublic boolean isCanceled()
isCanceled in interface ProgressIndicatorpublic void cancel()
ProgressIndicator
cancel in interface ProgressIndicatorpublic void setCancellable(boolean cancellable)
ProgressIndicator
setCancellable in interface ProgressIndicatorpublic boolean isCancellable()
isCancellable in interface ProgressIndicatorpublic void setIndeterminate(boolean indeterminate)
ProgressIndicator
setIndeterminate in interface ProgressIndicatorpublic boolean isIndeterminate()
isIndeterminate in interface ProgressIndicatorpublic void setFraction(double v)
ProgressIndicator
setFraction in interface ProgressIndicatorpublic double getFraction()
getFraction in interface ProgressIndicator
public void setSecondaryText(@Nullable
java.lang.String s)
ProgressIndicator
setSecondaryText in interface ProgressIndicator
public void logWarning(@NonNull
java.lang.String s)
ProgressIndicator
logWarning in interface ProgressIndicator
public void logWarning(@NonNull
java.lang.String s,
@Nullable
java.lang.Throwable e)
ProgressIndicator
logWarning in interface ProgressIndicator
public void logError(@NonNull
java.lang.String s)
ProgressIndicator
logError in interface ProgressIndicator
public void logError(@NonNull
java.lang.String s,
@Nullable
java.lang.Throwable e)
ProgressIndicator
logError in interface ProgressIndicator
public void logInfo(@NonNull
java.lang.String s)
ProgressIndicator
logInfo in interface ProgressIndicator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||