public class JotyActivity
extends android.support.v7.app.AppCompatActivity
android.app.Activity
class made in Joty 2.0 Mobile.
It inherits from the android.support.v7.app.AppCompatActivity to benefits of the action bar features
present in that class.
It hosts the references to the Term
objects that are instantiated in the activity, either
they are targeted to wrap Views that compose the criteria area in searching data or simply a data editing area.
The class collaborates to maintain the m_respManagerCatalog
member of the JotyApp
instance, essential to enable this class to identify the
ResponseHandlersManager to work with, by means of the getRespManager
method.
Handles the chance to manage the wait cursor if present in the layout file.
Manages the storing and the restoring of the visual state upon the stop and start events of the Activity instance for all the Joty objects added to it.
In its onResume
activity event handler it manages the chance of ending, of going back to the
home view or, simply, to stop the wait cursor or even to interrupt the viewing of a JotyToast
object.
The class has also methods that assist the state of the Term
objects hosted.
It has a built class (AccessorCoordinates
) that helps in addressing the Accessor coordinates when the
the Joty activity works in (remote) accessor mode.
JotyApp.m_respManagerCatalog
,
JotyApp.JotyToast
,
ActivityController
Modifier and Type | Class and Description |
---|---|
class |
JotyActivity.AccessorCoordinates |
class |
JotyActivity.WaitCursor |
Modifier and Type | Field and Description |
---|---|
protected JotyApp |
m_app |
protected org.joty.app.Common |
m_common |
android.os.Bundle |
m_extras |
java.util.HashMap<java.lang.Integer,Term> |
m_termMap |
java.util.Vector<Term> |
m_terms |
JotyActivity.WaitCursor |
m_waitCursor |
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, APP_OPS_SERVICE, APPWIDGET_SERVICE, AUDIO_SERVICE, BATTERY_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_EXTERNAL_SERVICE, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, BLUETOOTH_SERVICE, CAMERA_SERVICE, CAPTIONING_SERVICE, CARRIER_CONFIG_SERVICE, CLIPBOARD_SERVICE, COMPANION_DEVICE_SERVICE, CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, FINGERPRINT_SERVICE, HARDWARE_PROPERTIES_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, JOB_SCHEDULER_SERVICE, KEYGUARD_SERVICE, LAUNCHER_APPS_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_PROJECTION_SERVICE, MEDIA_ROUTER_SERVICE, MEDIA_SESSION_SERVICE, MIDI_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_NO_LOCALIZED_COLLATORS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NETWORK_STATS_SERVICE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, RECEIVER_VISIBLE_TO_INSTANT_APPS, RESTRICTIONS_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, SHORTCUT_SERVICE, STORAGE_SERVICE, STORAGE_STATS_SERVICE, SYSTEM_HEALTH_SERVICE, TELECOM_SERVICE, TELEPHONY_SERVICE, TELEPHONY_SUBSCRIPTION_SERVICE, TEXT_CLASSIFICATION_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, TV_INPUT_SERVICE, UI_MODE_SERVICE, USAGE_STATS_SERVICE, USB_SERVICE, USER_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_AWARE_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
Constructor and Description |
---|
JotyActivity() |
Modifier and Type | Method and Description |
---|---|
void |
addExtrasInOpenActivity(android.os.Bundle extras) |
void |
finish() |
protected JotyApp.QueryResponseHandlersManager |
getRespManager() |
protected java.lang.String |
getRespManagerKey()
composes the key to inquiry the
JotyApp.m_respManagerCatalog map. |
protected void |
guiDataExchange() |
protected void |
guiDataExchange(boolean save) |
protected void |
home() |
protected boolean |
isPortrait() |
java.lang.String |
jotyLang(java.lang.String literal) |
protected void |
lockRotation(boolean truth) |
void |
onBackPressed() |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
protected void |
onPostCreate(android.os.Bundle savedInstanceState) |
protected void |
onResume() |
protected void |
onSaveInstanceState(android.os.Bundle outState) |
void |
onWidgetClick(android.view.View view) |
void |
onWidgetItemSelected(android.widget.AdapterView<?> parent,
android.view.View view,
int position,
long id) |
protected void |
postInit() |
void |
resetDirtyStatus() |
void |
setContentView(int layoutResID) |
void |
setWaitCursor(boolean truth) |
void |
startActivity(java.lang.Class activityClass) |
void |
startActivity(java.lang.Class activityClass,
boolean forRenewing) |
void |
startActivity(java.lang.Class activityClass,
boolean forRenewing,
java.lang.Integer respManagerCount)
It performs the starting of another activity, blocking the command if an instance of the class is
already started (a part from the case in which one activity is going to renew itself: then, one
pre-existing instance is admitted, and the framework assures the subsequent finishing of the old one -
see
ActivityController.createRespHandler |
Term |
term(int resId) |
addContentView, dispatchKeyEvent, findViewById, getDelegate, getDrawerToggleDelegate, getMenuInflater, getResources, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onDestroy, onMenuItemSelected, onMenuOpened, onPanelClosed, onPostResume, onPrepareSupportNavigateUpTaskStack, onStart, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getLastCustomNonConfigurationInstance, getSupportFragmentManager, getSupportLoaderManager, onActivityResult, onAttachFragment, onCreatePanelMenu, onLowMemory, onMultiWindowModeChanged, onNewIntent, onPause, onPictureInPictureModeChanged, onPrepareOptionsPanel, onPreparePanel, onRequestPermissionsResult, onResumeFragments, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, startActivityForResult, startActivityFromFragment, startActivityFromFragment, startIntentSenderFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dismissKeyboardShortcutsHelper, dispatchGenericMotionEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, enterPictureInPictureMode, enterPictureInPictureMode, finishActivity, finishActivityFromChild, finishAffinity, finishAfterTransition, finishAndRemoveTask, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getContentScene, getContentTransitionManager, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMaxNumPictureInPictureActions, getMediaController, getParent, getParentActivityIntent, getPreferences, getReferrer, getRequestedOrientation, getSearchEvent, getSystemService, getTaskId, getTitle, getTitleColor, getVoiceInteractor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, isActivityTransitionRunning, isChangingConfigurations, isChild, isDestroyed, isFinishing, isImmersive, isInMultiWindowMode, isInPictureInPictureMode, isLocalVoiceInteractionSupported, isTaskRoot, isVoiceInteraction, isVoiceInteractionRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onActivityReenter, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onChildTitleChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreateNavigateUpTaskStack, onCreateOptionsMenu, onCreatePanelView, onCreateThumbnail, onDetachedFromWindow, onEnterAnimationComplete, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLocalVoiceInteractionStarted, onLocalVoiceInteractionStopped, onMultiWindowModeChanged, onNavigateUp, onNavigateUpFromChild, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPostCreate, onPrepareDialog, onPrepareDialog, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onProvideAssistContent, onProvideAssistData, onProvideKeyboardShortcuts, onProvideReferrer, onRestart, onRestoreInstanceState, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onVisibleBehindCanceled, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, overridePendingTransition, postponeEnterTransition, recreate, registerForContextMenu, releaseInstance, removeDialog, reportFullyDrawn, requestDragAndDropPermissions, requestPermissions, requestShowKeyboardShortcuts, requestVisibleBehind, requestWindowFeature, runOnUiThread, setActionBar, setContentTransitionManager, setDefaultKeyMode, setEnterSharedElementCallback, setExitSharedElementCallback, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setImmersive, setIntent, setMediaController, setPictureInPictureParams, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTaskDescription, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, setVrModeEnabled, shouldShowRequestPermissionRationale, shouldUpRecreateTask, showAssist, showDialog, showDialog, showLockTaskEscapeMessage, startActionMode, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderFromChild, startIntentSenderFromChild, startLocalVoiceInteraction, startLockTask, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startPostponedEnterTransition, startSearch, stopLocalVoiceInteraction, stopLockTask, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
applyOverrideConfiguration, attachBaseContext, getAssets, getTheme
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createContextForSplit, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getSharedPreferences, getSystemServiceName, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setWallpaper, setWallpaper, startForegroundService, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
protected JotyApp m_app
public java.util.Vector<Term> m_terms
public java.util.HashMap<java.lang.Integer,Term> m_termMap
public JotyActivity.WaitCursor m_waitCursor
public android.os.Bundle m_extras
protected org.joty.app.Common m_common
public void addExtrasInOpenActivity(android.os.Bundle extras)
protected void onCreate(@Nullable android.os.Bundle savedInstanceState)
onCreate
in class android.support.v7.app.AppCompatActivity
public java.lang.String jotyLang(java.lang.String literal)
public void setContentView(@LayoutRes int layoutResID)
setContentView
in class android.support.v7.app.AppCompatActivity
protected void onSaveInstanceState(android.os.Bundle outState)
onSaveInstanceState
in class android.support.v7.app.AppCompatActivity
protected void onPostCreate(@Nullable android.os.Bundle savedInstanceState)
onPostCreate
in class android.support.v7.app.AppCompatActivity
protected void postInit()
public void onBackPressed()
onBackPressed
in class android.support.v4.app.FragmentActivity
protected void onResume()
onResume
in class android.support.v4.app.FragmentActivity
protected void home()
public void onWidgetClick(android.view.View view)
public void onWidgetItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int position, long id)
public void resetDirtyStatus()
protected void guiDataExchange()
protected void guiDataExchange(boolean save)
public Term term(int resId)
public void setWaitCursor(boolean truth)
protected void lockRotation(boolean truth)
protected boolean isPortrait()
public void finish()
finish
in class android.app.Activity
public void startActivity(java.lang.Class activityClass)
public void startActivity(java.lang.Class activityClass, boolean forRenewing)
public void startActivity(java.lang.Class activityClass, boolean forRenewing, java.lang.Integer respManagerCount)
ActivityController.createRespHandler
activityClass
- Class object that defines the class of the activity to startforRenewing
- true if "this" activity is of the same type the starting activity (it happens when an Activity is going to finish to renew itself).respManagerCount
- when not null, an extra value is put in the Extras of the Intent so that the launched
JotyActivity can address the QueryResponseHandlersManager object by
means of the JotyActivity.getRespManager
method.finish()
,
JotyApp.m_activitiesInstancesCounters
,
ActivityController.createRespHandler(org.joty.mobile.gui.JotyActivity, int)
protected JotyApp.QueryResponseHandlersManager getRespManager()
protected java.lang.String getRespManagerKey()
JotyApp.m_respManagerCatalog
map.
If the "respManagerCount" extra value is available, its value is appended
to the class name.