Class OrderDetailDialog

  • All Implemented Interfaces:
    android.content.DialogInterface, android.view.KeyEvent.Callback, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback, androidx.appcompat.app.AppCompatCallback

    public class OrderDetailDialog
    extends 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
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderDetailDialog​(android.content.Context context, boolean canceledOnTouchOutside, boolean cancelable, OrderItem orderItem)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void init()
      Dialog 실행 시 최초 실행해야하는 코드 및 변수 초기화를 담당하고 있는 함수.
      protected void onCreate​(android.os.Bundle savedInstanceState)  
      void updateOrderState​(int orderCode, java.lang.String responseCode)
      FCM 데이터 수신 시 ResponseCode에 따라 OrderDetailDialog 내 UI를 업데이트합니다.
      • Methods inherited from class androidx.appcompat.app.AppCompatDialog

        addContentView, dispatchKeyEvent, findViewById, getDelegate, getSupportActionBar, invalidateOptionsMenu, 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

      • context

        private final android.content.Context context
      • orderItem

        private final OrderItem orderItem
      • ibtnDlgOrderDetailClose

        private androidx.appcompat.widget.AppCompatImageButton ibtnDlgOrderDetailClose
      • tvDlgOrderDetailCompanyName

        private androidx.appcompat.widget.AppCompatTextView tvDlgOrderDetailCompanyName
      • tvDlgOrderDetailOrderDate

        private androidx.appcompat.widget.AppCompatTextView tvDlgOrderDetailOrderDate
      • tvDlgOrderDetailOrderCode

        private androidx.appcompat.widget.AppCompatTextView tvDlgOrderDetailOrderCode
      • clDlgOrderDetailCancelOrder

        private androidx.constraintlayout.widget.ConstraintLayout clDlgOrderDetailCancelOrder
      • tvDlgOrderDetailOrderTotalPrice

        private androidx.appcompat.widget.AppCompatTextView tvDlgOrderDetailOrderTotalPrice
      • rvDlgOrderDetail

        private androidx.recyclerview.widget.RecyclerView rvDlgOrderDetail
      • isCancelProcessRunning

        private boolean isCancelProcessRunning
    • Constructor Detail

      • OrderDetailDialog

        public OrderDetailDialog​(@NonNull
                                 android.content.Context context,
                                 boolean canceledOnTouchOutside,
                                 boolean cancelable,
                                 OrderItem orderItem)
    • Method Detail

      • onCreate

        protected void onCreate​(android.os.Bundle savedInstanceState)
        Overrides:
        onCreate in class androidx.appcompat.app.AppCompatDialog
      • init

        protected void init()
        Dialog 실행 시 최초 실행해야하는 코드 및 변수 초기화를 담당하고 있는 함수.
      • updateOrderState

        public void updateOrderState​(int orderCode,
                                     java.lang.String responseCode)
        FCM 데이터 수신 시 ResponseCode에 따라 OrderDetailDialog 내 UI를 업데이트합니다.
        Parameters:
        orderCode - 주문코드.
        responseCode - 주문상태.