Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Gauge


    private int counter = 0;

    public ServerConection(BTMIDlet bTMIDlet) {
        this.bTMIDlet = bTMIDlet;
        form = new Form("Please wait");
        gauge = new Gauge("Waiting for players...", false, 100, 0);

        timer = new Timer();
        timer.schedule(this, 0, 10);

        form.append(gauge);
View Full Code Here


  private String labelPrefix = "${loading}: ";

  public DefaultProgressView() {
    super("${please.wait}");
    if("MIDP-1.0".equals(System.getProperty("microedition.profiles")))
      gauge = new Gauge(labelPrefix, false, 100, 50);
    else
      gauge = new Gauge(labelPrefix, false, -1 /*Gauge.INDEFINITE*/,
          0 /*Gauge.CONTINUOUS_RUNNING*/);
    append(gauge);
    addCommand(new ActionCommand("${abort}",Command.BACK, 1){
      public Navigation execute(Displayable d) throws Exception {
        throw new InterruptedException();
View Full Code Here

  private void playSong(int song) throws IOException, MediaException
  {
    ASAP_ModuleInfo module_info = asap.getModuleInfo();
    int duration = module_info.durations[song];

    gauge = new Gauge(null, false, 1, 0);
    Form playForm = new Form("ASAP " + ASAP.VERSION);
    appendStringItem(playForm, "Name: ", module_info.name);
    appendStringItem(playForm, "Author: ", module_info.author);
    appendStringItem(playForm, "Date: ", module_info.date);
    appendStringItem(playForm, "Time: ", ASAP.durationToString(duration));
View Full Code Here

  {
    super(sTitle);

    aInfo      = new StringItem(null, null);
    aProgressInfo = new StringItem(null, null);
    aProgressBar  = new Gauge(null, false, 100, 0);

    if (rImage != null)
    {
      append(rImage);
    }
View Full Code Here

        super( "Please wait" );
        if( display == null )
            throw new IllegalArgumentException( "parameter 'display' is null" );
        if( next == null )
            throw new IllegalArgumentException( "parameter 'next' is null" );
        gauge_ = new Gauge( operation, false, steps, 0 );
        display_ = display;
        next_ = next;
    }
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.Gauge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.