예제 #1
0
  /* (non-Javadoc)
   * @see javax.microedition.lcdui.Displayable#handleHideEvent()
   */
  void eswtHandleHideCurrentEvent() {
    super.eswtHandleHideCurrentEvent();
    topShell.removeListener(SWT.Resize, resizeListener);

    nextDisplayable = null;
    resetTimerTask(false);

    // remove key filter for scrollable text composite
    org.eclipse.swt.widgets.Display.getCurrent().removeFilter(SWT.KeyDown, keyListener);
    org.eclipse.swt.widgets.Display.getCurrent().removeFilter(SWT.Traverse, keyListener);
    org.eclipse.swt.widgets.Display.getCurrent().removeFilter(SWT.MouseUp, keyListener);
  }
예제 #2
0
  /* (non-Javadoc)
   * @see javax.microedition.lcdui.Displayable#handleShowEvent()
   */
  void eswtHandleShowCurrentEvent() {
    // If it alert is first displayable, default
    // displayable should be shown behind alert
    if (topShell.isVisible() == false && nextDisplayable == null) {
      topShell.setVisible(true);
    }
    super.eswtHandleShowCurrentEvent();
    topShell.addListener(SWT.Resize, resizeListener);

    // add key filter for scrollable text composite
    org.eclipse.swt.widgets.Display.getCurrent().addFilter(SWT.KeyDown, keyListener);
    org.eclipse.swt.widgets.Display.getCurrent().addFilter(SWT.Traverse, keyListener);
    org.eclipse.swt.widgets.Display.getCurrent().addFilter(SWT.MouseUp, keyListener);
    resetTimerTask(true);
  }