Пример #1
0
 public void onCreateContextMenu(android.view.ContextMenu menu) {
   if (callbackProcs != null && callbackProcs[CB_CREATE_CONTEXT_MENU] != null) {
     super.onCreateContextMenu(menu);
     Script.callMethod(callbackProcs[CB_CREATE_CONTEXT_MENU], "call", menu);
   } else {
     super.onCreateContextMenu(menu);
   }
 }
Пример #2
0
 public void onSizeChanged(int w, int h, int oldw, int oldh) {
   if (callbackProcs != null && callbackProcs[CB_SIZE_CHANGED] != null) {
     super.onSizeChanged(w, h, oldw, oldh);
     Script.callMethod(callbackProcs[CB_SIZE_CHANGED], "call", new Object[] {w, h, oldw, oldh});
   } else {
     super.onSizeChanged(w, h, oldw, oldh);
   }
 }
Пример #3
0
 public void onAnimationStart() {
   if (callbackProcs != null && callbackProcs[CB_ANIMATION_START] != null) {
     super.onAnimationStart();
     Script.callMethod(callbackProcs[CB_ANIMATION_START], "call");
   } else {
     super.onAnimationStart();
   }
 }
Пример #4
0
 public void onWindowFocusChanged(boolean hasWindowFocus) {
   if (callbackProcs != null && callbackProcs[CB_WINDOW_FOCUS_CHANGED] != null) {
     super.onWindowFocusChanged(hasWindowFocus);
     Script.callMethod(callbackProcs[CB_WINDOW_FOCUS_CHANGED], "call", hasWindowFocus);
   } else {
     super.onWindowFocusChanged(hasWindowFocus);
   }
 }
Пример #5
0
 public void onWindowVisibilityChanged(int visibility) {
   if (callbackProcs != null && callbackProcs[CB_WINDOW_VISIBILITY_CHANGED] != null) {
     super.onWindowVisibilityChanged(visibility);
     Script.callMethod(callbackProcs[CB_WINDOW_VISIBILITY_CHANGED], "call", visibility);
   } else {
     super.onWindowVisibilityChanged(visibility);
   }
 }
Пример #6
0
 public void onAttachedToWindow() {
   if (callbackProcs != null && callbackProcs[CB_ATTACHED_TO_WINDOW] != null) {
     super.onAttachedToWindow();
     Script.callMethod(callbackProcs[CB_ATTACHED_TO_WINDOW], "call");
   } else {
     super.onAttachedToWindow();
   }
 }
Пример #7
0
 public void onDetachedFromWindow() {
   if (callbackProcs != null && callbackProcs[CB_DETACHED_FROM_WINDOW] != null) {
     super.onDetachedFromWindow();
     Script.callMethod(callbackProcs[CB_DETACHED_FROM_WINDOW], "call");
   } else {
     super.onDetachedFromWindow();
   }
 }
Пример #8
0
 public void onStartTemporaryDetach() {
   if (callbackProcs != null && callbackProcs[CB_START_TEMPORARY_DETACH] != null) {
     super.onStartTemporaryDetach();
     Script.callMethod(callbackProcs[CB_START_TEMPORARY_DETACH], "call");
   } else {
     super.onStartTemporaryDetach();
   }
 }
Пример #9
0
 public boolean onSetAlpha(int alpha) {
   if (callbackProcs != null && callbackProcs[CB_SET_ALPHA] != null) {
     super.onSetAlpha(alpha);
     return (Boolean) Script.callMethod(callbackProcs[CB_SET_ALPHA], "call", alpha, Boolean.class);
   } else {
     return super.onSetAlpha(alpha);
   }
 }
Пример #10
0
 public void onRestoreInstanceState(android.os.Parcelable state) {
   if (callbackProcs != null && callbackProcs[CB_RESTORE_INSTANCE_STATE] != null) {
     super.onRestoreInstanceState(state);
     Script.callMethod(callbackProcs[CB_RESTORE_INSTANCE_STATE], "call", state);
   } else {
     super.onRestoreInstanceState(state);
   }
 }
Пример #11
0
 public void onFinishTemporaryDetach() {
   if (callbackProcs != null && callbackProcs[CB_FINISH_TEMPORARY_DETACH] != null) {
     super.onFinishTemporaryDetach();
     Script.callMethod(callbackProcs[CB_FINISH_TEMPORARY_DETACH], "call");
   } else {
     super.onFinishTemporaryDetach();
   }
 }
Пример #12
0
 public void onAnimationEnd() {
   if (callbackProcs != null && callbackProcs[CB_ANIMATION_END] != null) {
     super.onAnimationEnd();
     Script.callMethod(callbackProcs[CB_ANIMATION_END], "call");
   } else {
     super.onAnimationEnd();
   }
 }
Пример #13
0
 public void onFinishInflate() {
   if (callbackProcs != null && callbackProcs[CB_FINISH_INFLATE] != null) {
     super.onFinishInflate();
     Script.callMethod(callbackProcs[CB_FINISH_INFLATE], "call");
   } else {
     super.onFinishInflate();
   }
 }
Пример #14
0
 public void onDraw(android.graphics.Canvas canvas) {
   if (callbackProcs != null && callbackProcs[CB_DRAW] != null) {
     super.onDraw(canvas);
     Script.callMethod(callbackProcs[CB_DRAW], "call", canvas);
   } else {
     super.onDraw(canvas);
   }
 }
Пример #15
0
 public void onScrollChanged(int l, int t, int oldl, int oldt) {
   if (callbackProcs != null && callbackProcs[CB_SCROLL_CHANGED] != null) {
     super.onScrollChanged(l, t, oldl, oldt);
     Script.callMethod(callbackProcs[CB_SCROLL_CHANGED], "call", new Object[] {l, t, oldl, oldt});
   } else {
     super.onScrollChanged(l, t, oldl, oldt);
   }
 }
Пример #16
0
 public boolean onCheckIsTextEditor() {
   if (callbackProcs != null && callbackProcs[CB_CHECK_IS_TEXT_EDITOR] != null) {
     super.onCheckIsTextEditor();
     return (Boolean)
         Script.callMethod(callbackProcs[CB_CHECK_IS_TEXT_EDITOR], "call", Boolean.class);
   } else {
     return super.onCheckIsTextEditor();
   }
 }
Пример #17
0
 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
   if (callbackProcs != null && callbackProcs[CB_MEASURE] != null) {
     super.onMeasure(widthMeasureSpec, heightMeasureSpec);
     Script.callMethod(
         callbackProcs[CB_MEASURE], "call", new Object[] {widthMeasureSpec, heightMeasureSpec});
   } else {
     super.onMeasure(widthMeasureSpec, heightMeasureSpec);
   }
 }
Пример #18
0
 public boolean onInterceptTouchEvent(android.view.MotionEvent ev) {
   if (callbackProcs != null && callbackProcs[CB_INTERCEPT_TOUCH_EVENT] != null) {
     super.onInterceptTouchEvent(ev);
     return (Boolean)
         Script.callMethod(callbackProcs[CB_INTERCEPT_TOUCH_EVENT], "call", ev, Boolean.class);
   } else {
     return super.onInterceptTouchEvent(ev);
   }
 }
Пример #19
0
 public void onLayout(boolean changed, int left, int top, int right, int bottom) {
   if (callbackProcs != null && callbackProcs[CB_LAYOUT] != null) {
     super.onLayout(changed, left, top, right, bottom);
     Script.callMethod(
         callbackProcs[CB_LAYOUT], "call", new Object[] {changed, left, top, right, bottom});
   } else {
     super.onLayout(changed, left, top, right, bottom);
   }
 }
Пример #20
0
 public boolean onTrackballEvent(android.view.MotionEvent event) {
   if (callbackProcs != null && callbackProcs[CB_TRACKBALL_EVENT] != null) {
     super.onTrackballEvent(event);
     return (Boolean)
         Script.callMethod(callbackProcs[CB_TRACKBALL_EVENT], "call", event, Boolean.class);
   } else {
     return super.onTrackballEvent(event);
   }
 }
Пример #21
0
 public boolean onKeyPreIme(int keyCode, android.view.KeyEvent event) {
   if (callbackProcs != null && callbackProcs[CB_KEY_PRE_IME] != null) {
     super.onKeyPreIme(keyCode, event);
     return (Boolean)
         Script.callMethod(
             callbackProcs[CB_KEY_PRE_IME], "call", new Object[] {keyCode, event}, Boolean.class);
   } else {
     return super.onKeyPreIme(keyCode, event);
   }
 }
Пример #22
0
 public android.os.Parcelable onSaveInstanceState() {
   if (callbackProcs != null && callbackProcs[CB_SAVE_INSTANCE_STATE] != null) {
     super.onSaveInstanceState();
     return (android.os.Parcelable)
         Script.callMethod(
             callbackProcs[CB_SAVE_INSTANCE_STATE], "call", android.os.Parcelable.class);
   } else {
     return super.onSaveInstanceState();
   }
 }
Пример #23
0
 public int[] onCreateDrawableState(int extraSpace) {
   if (callbackProcs != null && callbackProcs[CB_CREATE_DRAWABLE_STATE] != null) {
     super.onCreateDrawableState(extraSpace);
     return (int[])
         Script.callMethod(
             callbackProcs[CB_CREATE_DRAWABLE_STATE], "call", extraSpace, int[].class);
   } else {
     return super.onCreateDrawableState(extraSpace);
   }
 }
Пример #24
0
 public void onFocusChanged(
     boolean gainFocus, int direction, android.graphics.Rect previouslyFocusedRect) {
   if (callbackProcs != null && callbackProcs[CB_FOCUS_CHANGED] != null) {
     super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
     Script.callMethod(
         callbackProcs[CB_FOCUS_CHANGED],
         "call",
         new Object[] {gainFocus, direction, previouslyFocusedRect});
   } else {
     super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
   }
 }
Пример #25
0
 public boolean onKeyMultiple(int keyCode, int repeatCount, android.view.KeyEvent event) {
   if (callbackProcs != null && callbackProcs[CB_KEY_MULTIPLE] != null) {
     super.onKeyMultiple(keyCode, repeatCount, event);
     return (Boolean)
         Script.callMethod(
             callbackProcs[CB_KEY_MULTIPLE],
             "call",
             new Object[] {keyCode, repeatCount, event},
             Boolean.class);
   } else {
     return super.onKeyMultiple(keyCode, repeatCount, event);
   }
 }
Пример #26
0
 public boolean onRequestFocusInDescendants(
     int direction, android.graphics.Rect previouslyFocusedRect) {
   if (callbackProcs != null && callbackProcs[CB_REQUEST_FOCUS_IN_DESCENDANTS] != null) {
     super.onRequestFocusInDescendants(direction, previouslyFocusedRect);
     return (Boolean)
         Script.callMethod(
             callbackProcs[CB_REQUEST_FOCUS_IN_DESCENDANTS],
             "call",
             new Object[] {direction, previouslyFocusedRect},
             Boolean.class);
   } else {
     return super.onRequestFocusInDescendants(direction, previouslyFocusedRect);
   }
 }
Пример #27
0
 public android.view.inputmethod.InputConnection onCreateInputConnection(
     android.view.inputmethod.EditorInfo outAttrs) {
   if (callbackProcs != null && callbackProcs[CB_CREATE_INPUT_CONNECTION] != null) {
     super.onCreateInputConnection(outAttrs);
     return (android.view.inputmethod.InputConnection)
         Script.callMethod(
             callbackProcs[CB_CREATE_INPUT_CONNECTION],
             "call",
             outAttrs,
             android.view.inputmethod.InputConnection.class);
   } else {
     return super.onCreateInputConnection(outAttrs);
   }
 }
 private Ruby getRuby() {
   if (__ruby__ == null) __ruby__ = Script.getRuby();
   return __ruby__;
 }