Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Displayable


    public String prompt()
    {
        final Waiter waiter = new Waiter();
        final Display display = Application.getManager().getDisplay();
        final Displayable current = display.getCurrent();
        display.setCurrent( displayable );
        waiter.start();
        try
        {
            waiter.join();
View Full Code Here


  protected abstract void createNavigation();

  public void commandAction(final Command c, final Displayable d) {
    Runnable execute = new Runnable() {
      public void run() {
        Displayable progressView = progressListner.getDisplay();
        try {
          //TODO: start after .5 sec
          setView(progressView);
          ActionCommand command = (ActionCommand) c;
          Navigation navigation = command.execute(d);
View Full Code Here

      throw new IllegalArgumentException("${invalid.page.type}:" + entry.getClass());
    return page;
  }

  protected void setView(Displayable display) {
    final Displayable view = getView();
    if(view != null && !skipOnBack.contains(view.getClass().getName()))
      previousView = view;
    display.setCommandListener(this);
    Display.getDisplay(midlet).setCurrent(display);
  }
View Full Code Here

    /**
     * Switches a display to previous displayable of the current displayable.
     * The <code>display</code> instance is obtain from the <code>getDisplay</code> method.
     */
    public void switchToPreviousDisplayable() {
        Displayable __currentDisplayable = getDisplay().getCurrent();
        if (__currentDisplayable != null) {
            Displayable __nextDisplayable = (Displayable) __previousDisplayables.get(__currentDisplayable);
            if (__nextDisplayable != null) {
                switchDisplayable(null, __nextDisplayable);
            }
        }
    }
View Full Code Here

     * @param nextDisplayable the Displayable to be set
     */
    public void switchDisplayable(Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch
        // write pre-switch user code here
        Display display = getDisplay();
        Displayable __currentDisplayable = display.getCurrent();
        if (__currentDisplayable != null  &&  nextDisplayable != null) {
            __previousDisplayables.put(nextDisplayable, __currentDisplayable);
        }
        if (alert == null) {
            display.setCurrent(nextDisplayable);
View Full Code Here

    /**
     * Switches a display to previous displayable of the current displayable.
     * The <code>display</code> instance is obtain from the <code>getDisplay</code> method.
     */
    public void switchToPreviousDisplayable() {
        Displayable __currentDisplayable = getDisplay().getCurrent();
        if (__currentDisplayable != null) {
            Displayable __nextDisplayable = (Displayable) __previousDisplayables.get(__currentDisplayable);
            if (__nextDisplayable != null) {
                switchDisplayable(null, __nextDisplayable);
            }
        }
    }
View Full Code Here

    private Displayable goBack() {
        if (backStack.empty()) {
            listener.mainMenuDone();
            return null;
        } else {
            Displayable d = (Displayable) backStack.pop();
            display.setCurrent(d);
            return d;
        }
    }
View Full Code Here

    private Displayable goBack() {
        if (backStack.empty()) {
            listener.mainMenuDone();
            return null;
        } else {
            Displayable d = (Displayable) backStack.pop();
            display.setCurrent(d);
            return d;
        }
    }
View Full Code Here

    private Displayable goBack() {
        if (backStack.empty()) {
            listener.mainMenuDone();
            return null;
        } else {
            Displayable d = (Displayable) backStack.pop();
            display.setCurrent(d);
            return d;
        }
    }
View Full Code Here

        return browser;
    }

    void showCurrDir() {
        Displayable oldDisplayable = display.getCurrent();

        final WaitCanvas wc = WaitCanvas.getInstance();
        wc.setText(T._("Reading directory..."));
        wc.setProgress(0);
        display.setCurrent(wc);
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.Displayable

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.