Codota Logo
MIDletBridge.getMIDletAccess
Code IndexAdd Codota to your IDE (free)

How to use
getMIDletAccess
method
in
org.microemu.MIDletBridge

Best Java code snippets using org.microemu.MIDletBridge.getMIDletAccess (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.microemu/microemu-javase-swing

  public void run() {
    try {
      MIDletBridge.getMIDletAccess(midlet).startApp();
    } catch (MIDletStateChangeException ex) {
      System.err.println(ex);
    }
  }
}.start();
origin: org.microemu/microemu-javase-swing

public void destroy() {
  try {
    MIDletBridge.getMIDletAccess(midlet).destroyApp(true);
  } catch (MIDletStateChangeException ex) {
    System.err.println(ex);
  }
}
origin: org.microemu/microemu-javase-swing

public void stop() {
  MIDletBridge.getMIDletAccess(midlet).pauseApp();
}
origin: org.microemu/microemu-javase-swing

  public void windowDeiconified(WindowEvent ev) {
    try {
      MIDletBridge.getMIDletAccess(MIDletBridge.getCurrentMIDlet()).startApp();
    } catch (MIDletStateChangeException ex) {
      System.err.println(ex);
    }
  }
};
origin: org.microemu/microemu-javase-swt

public void mouseReleased(int keyCode) 
{
  MIDletAccess ma = MIDletBridge.getMIDletAccess();
  if (ma == null) {
    return;
  }
  
  DisplayAccess da = ma.getDisplayAccess();
  if (da == null) {
    return;
  }
  da.keyReleased(keyCode);
}
origin: org.microemu/microemu-javase-swing

public boolean isFullScreenMode() {
  MIDletAccess ma = MIDletBridge.getMIDletAccess();
  if (ma == null) {
    return false;
  } else {
    DisplayAccess da = ma.getDisplayAccess();
    if (da == null) {
      return false;
    } else {
      return da.isFullScreenMode();
    }
  }
}
origin: org.microemu/microemu-javase-swt

public boolean isFullScreenMode() 
{ 
  MIDletAccess ma = MIDletBridge.getMIDletAccess();
  if (ma == null) {
    return false;
  } else {
    DisplayAccess da = ma.getDisplayAccess();
    if (da == null) {
      return false;
    } else {
      return da.isFullScreenMode();
    }
  }
}
origin: org.microemu/microemu-javase-swing

public void windowIconified(WindowEvent ev) {
  MIDletBridge.getMIDletAccess(MIDletBridge.getCurrentMIDlet()).pauseApp();
}
origin: org.microemu/microemu-javase

  public void commandAction(Command c, Displayable d) 
  {
    if (menuList == null) {
      lateInit();
    }
    MIDletBridge.getMIDletAccess().getDisplayAccess().setCurrent(previous);
    
    if ((c == CMD_SELECT) || c == List.SELECT_COMMAND) {
      MIDletBridge.getMIDletAccess().getDisplayAccess().commandAction(
          (Command) menuCommands.elementAt(menuList.getSelectedIndex()), 
          previous);
    }
  }        
};
origin: org.microemu/microemu-javase-swing

  public void run() {
    if (repeatModeKeyCode != Integer.MIN_VALUE) {
      MIDletAccess ma = MIDletBridge.getMIDletAccess();
      if (ma == null) {
        return;
      }
      DisplayAccess da = ma.getDisplayAccess();
      if (da == null) {
        return;
      }
      da.keyReleased(repeatModeKeyCode);
      eventAlreadyConsumed = false;
      repeatModeKeyCode = Integer.MIN_VALUE;
    }
  }
};
origin: org.microemu/microemu-javase-swt

  public void run() {
    if (repeatModeKeyCode != Integer.MIN_VALUE) {
      MIDletAccess ma = MIDletBridge.getMIDletAccess();
      if (ma == null) {
        return;
      }
      
      DisplayAccess da = ma.getDisplayAccess();
      if (da == null) {
        return;
      }
      if (clearRepeatFlag) {
        da.keyReleased(repeatModeKeyCode);                            
        repeatModeKeyCode = Integer.MIN_VALUE;
      }                
    }
  }
};
origin: org.microemu/microemu-javase

public void commandAction(Command command)
{
  if (menuList == null) {
    lateInit();
  }
  previous = MIDletBridge.getMIDletAccess().getDisplayAccess().getCurrent();
  MIDletBridge.getMIDletAccess().getDisplayAccess().setCurrent(menuList);
}

origin: org.microemu/microemu-javase

public void pointerPressed(int x, int y) {		
  if (DeviceFactory.getDevice().hasPointerEvents()) {
    MIDletBridge.getMIDletAccess().getDisplayAccess().pointerPressed(x, y);
  }
}
origin: org.microemu/microemu-javase-swt

public int getClipWidth() 
{
  Rectangle rect = g.getClipping();
  if (rect == null) {
    DisplayAccess da = MIDletBridge.getMIDletAccess().getDisplayAccess();
    return da.getCurrent().getWidth();
  } else {
    return rect.width;
  }
}
origin: org.microemu/microemu-javase-swt

public int getClipHeight() 
{
  Rectangle rect = g.getClipping();
  if (rect == null) {
    DisplayAccess da = MIDletBridge.getMIDletAccess().getDisplayAccess();
    return da.getCurrent().getHeight();
  } else {
    return rect.height;
  }
}
origin: org.microemu/microemu-javase

public void pointerReleased(int x, int y) {
  if (DeviceFactory.getDevice().hasPointerEvents()) {
    MIDletBridge.getMIDletAccess().getDisplayAccess().pointerReleased(x, y);
  }
}
origin: org.microemu/microemu-javase

public void pointerDragged(int x, int y) {
  if (DeviceFactory.getDevice().hasPointerMotionEvents()) {
    MIDletBridge.getMIDletAccess().getDisplayAccess().pointerDragged(x, y);
  }
}

origin: org.microemu/microemu-javase-swt

public void keyReleased(KeyEvent ev) 
{
  if (DeviceFactory.getDevice().hasRepeatEvents() && inputMethodListener == null) {
    clearRepeatFlag = true;
    keyRepeatTimer.schedule(new KeyRepeatTask(), 50);
  } else {		
    MIDletAccess ma = MIDletBridge.getMIDletAccess();
    if (ma == null) {
      return;
    }
    
    DisplayAccess da = ma.getDisplayAccess();
    if (da == null) {
      return;
    }

    da.keyReleased(ev.keyCode);
  }
}
origin: org.microemu/microemu-javase

private void updateCommands() {
  CommandManager.getInstance().updateCommands(getCommandsUI());
  MIDletAccess ma = MIDletBridge.getMIDletAccess();
  if (ma == null) {
    return;
  }
  DisplayAccess da = ma.getDisplayAccess();
  if (da == null) {
    return;
  }
  da.repaint();
}
origin: org.microemu/microemu-javase

public static void dispose() {
  try {
    MIDletAccess midletAccess = MIDletBridge.getMIDletAccess();
    if (midletAccess != null) {
      midletAccess.destroyApp(true);
    }
  } catch (MIDletStateChangeException ex) {
    Logger.error(ex);
  }
  // TODO to be removed when event dispatcher will run input method task
  DeviceFactory.getDevice().getInputMethod().dispose();
}
org.microemuMIDletBridgegetMIDletAccess

Popular methods of MIDletBridge

  • getCurrentMIDlet
  • getMIDletContext
  • setMicroEmulator
  • clear
  • destroyMIDletContext
  • getMicroEmulator
  • getRecordStoreManager
  • setThreadMIDletContext

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now