示例#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__;
 }