|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ambient.activity.main.AbstractController
sk.baka.ambient.activity.main.TaskSwitcherController
public class TaskSwitcherController
Controls trackbar and background tasks display window.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class sk.baka.ambient.activity.main.AbstractController |
|---|
AbstractController.Listener |
| Field Summary | |
|---|---|
static List<ActionsEnum> |
actions
The actions to display on the Task switcher. |
| Fields inherited from class sk.baka.ambient.activity.main.AbstractController |
|---|
app, cycle, listener, mainActivity, mainView |
| Constructor Summary | |
|---|---|
TaskSwitcherController(MainActivity mainActivity)
Creates the controller |
|
| Method Summary | |
|---|---|
void |
backgroundTask(int taskCount,
String arbitraryTaskName,
int progress,
int maxProgress)
Informs that a background task has been started or has ended. |
void |
highlightAction(ActionsEnum action)
Highlights given action. |
static void |
highlightAction(ActionsEnum action,
ButtonBar bar)
Highlights given action on the button bar. |
protected void |
performZoom(boolean zoom)
Zooms, or un-zooms the controller. |
| Methods inherited from class sk.baka.ambient.activity.main.AbstractController |
|---|
destroy, equals, flipVisibility, hashCode, hide, initButtonBar, initButtonBar, initButtonBar, isDestroyed, isVisible, isZoomed, onAction, setVisibility, show, update, visibilityChanged, zoom |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final List<ActionsEnum> actions
| Constructor Detail |
|---|
public TaskSwitcherController(MainActivity mainActivity)
mainActivity - the activity| Method Detail |
|---|
public void highlightAction(ActionsEnum action)
action - the action to highlight, may be null - in such
case all actions will be de-highlighted.
public static void highlightAction(ActionsEnum action,
ButtonBar bar)
actions in order for this method to work correctly.
action - the action to highlight, may be null - in such
case all actions will be de-highlighted.bar - the button bar.
public void backgroundTask(int taskCount,
String arbitraryTaskName,
int progress,
int maxProgress)
IBackgroundTask
backgroundTask in interface IBackgroundTasktaskCount - current task count. Ignored if used for progress reporting.arbitraryTaskName - a name of random active task. null if no tasks
are executed or the executor failed to obtain a name. If used
for a progress reporting then this is the new name of the
task.progress - total current progress of all tasks. If used for a progress
reporting then this is the progress of this task.maxProgress - total maximum progress of all tasks. If used for a progress
reporting then this is the maximum progress of this task.protected void performZoom(boolean zoom)
AbstractController
performZoom in class AbstractControllerzoom - true zoom the controller in, false
zoom the controller out.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||