Class UosDialog

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.content.DialogInterface

        android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.ArrayList<UosDialog> dialogs
      현재 생성되어있는 UosDialog 클래스를 상속받은 Dialog의 목록.
      • Fields inherited from interface android.content.DialogInterface

        BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3
    • Constructor Summary

      Constructors 
      Constructor Description
      UosDialog​(android.content.Context context)  
      UosDialog​(android.content.Context context, int theme)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addDialog()
      UosDialog.dialogs에 동일한 클래스가 있을 경우 해당 UosDialog를 종료 및 UosDialog.dialogs에서 제거하고 현재 UosDialog를 UosDialog.dialogs에 추가.
      void dismiss()
      dismiss() 호출 시 dialogs 목록에서 현재 UosDialog 제거.
      static UosDialog get​(java.lang.Class targetUosDialog)
      현재 UosDialog.dialogs에 추가되어있는 UosDialog 중 매개변수로 전달된 클래스와 동일한 클래스를 가 진 UosDialog를 반환.
      • Methods inherited from class androidx.appcompat.app.AppCompatDialog

        addContentView, dispatchKeyEvent, findViewById, getDelegate, getSupportActionBar, invalidateOptionsMenu, onCreate, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onWindowStartingSupportActionMode, setContentView, setContentView, setContentView, setTitle, setTitle, supportRequestWindowFeature
      • Methods inherited from class android.app.Dialog

        cancel, closeOptionsMenu, create, dispatchGenericMotionEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onStart, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface android.view.Window.Callback

        onPointerCaptureChanged, onProvideKeyboardShortcuts
    • Field Detail

      • dialogs

        private static final java.util.ArrayList<UosDialog> dialogs
        현재 생성되어있는 UosDialog 클래스를 상속받은 Dialog의 목록.
    • Constructor Detail

      • UosDialog

        public UosDialog​(android.content.Context context)
      • UosDialog

        public UosDialog​(android.content.Context context,
                         int theme)
    • Method Detail

      • get

        public static UosDialog get​(java.lang.Class targetUosDialog)
        현재 UosDialog.dialogs에 추가되어있는 UosDialog 중 매개변수로 전달된 클래스와 동일한 클래스를 가 진 UosDialog를 반환. 만약 동일한 클래스를 가진 UosDialog가 없을 경우 Null 반환
        Parameters:
        targetUosDialog - 가져올 UosDialog의 클래스.
        Returns:
        UosDialog dialogs에 있는 UosDialog 객체.
      • dismiss

        public void dismiss()
        dismiss() 호출 시 dialogs 목록에서 현재 UosDialog 제거.
        Specified by:
        dismiss in interface android.content.DialogInterface
        Overrides:
        dismiss in class androidx.appcompat.app.AppCompatDialog
      • addDialog

        protected void addDialog()
        UosDialog.dialogs에 동일한 클래스가 있을 경우 해당 UosDialog를 종료 및 UosDialog.dialogs에서 제거하고 현재 UosDialog를 UosDialog.dialogs에 추가.