org.arakhne.neteditor.android.actionmode.creation
protected class AbstractAndroidCreationMode.ActionBar extends Object implements android.view.ActionMode.Callback, UndoListener
| Modifier and Type | Field and Description |
|---|---|
protected android.view.MenuItem |
redoItem
Item "Revert revert action".
|
protected android.view.MenuItem |
undoItem
Item "Revert action".
|
| Constructor and Description |
|---|
AbstractAndroidCreationMode.ActionBar() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onActionItemClicked(android.view.ActionMode mode,
android.view.MenuItem item)
Invoked each time the user click on an action button.
|
boolean |
onCreateActionMode(android.view.ActionMode mode,
android.view.Menu menu)
Invoked when the action mode is created, ie. when
startActionMode() was called. |
void |
onDestroyActionMode(android.view.ActionMode mode)
Invoked when the user exits the action mode.
|
boolean |
onPrepareActionMode(android.view.ActionMode mode,
android.view.Menu menu)
Invoked each time the action mode is shown.
|
void |
undoListChanged(UndoManager manager) |
protected android.view.MenuItem undoItem
protected android.view.MenuItem redoItem
public AbstractAndroidCreationMode.ActionBar()
public boolean onCreateActionMode(android.view.ActionMode mode,
android.view.Menu menu)
startActionMode() was called.onCreateActionMode in interface android.view.ActionMode.Callbackmode - is the new action mode.menu - is the menu to populate with action buttons.true if the action mode should
be created, false if entering this mode
should be aborted.public void onDestroyActionMode(android.view.ActionMode mode)
onDestroyActionMode in interface android.view.ActionMode.Callbackmode - is the action mode to be destroyedpublic boolean onPrepareActionMode(android.view.ActionMode mode,
android.view.Menu menu)
onCreateActionMode(android.view.ActionMode, Menu), but
may be called multiple times if the mode is invalidated.onPrepareActionMode in interface android.view.ActionMode.Callbackmode - is the action mode to be prepared.menu - is the menu to populate with action buttons.true if the menu or action mode
was updated, false otherwise.public boolean onActionItemClicked(android.view.ActionMode mode,
android.view.MenuItem item)
onActionItemClicked in interface android.view.ActionMode.Callbackmode - is the action mode in which the click occurs.item - is the clicked action button.true if this callback handled the event,
false if the standard MenuItem invocation should continue.public void undoListChanged(UndoManager manager)
undoListChanged in interface UndoListenerCopyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor