Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Displayable


   *
   * @return The leaf editor displayable
   */
  protected Displayable getLeafEditor(MutableHierarchyNode rNode)
  {
    Displayable aEditor = rNodeController.createLeafEditor(rNode);

    aEditor.setCommandListener(this);
    setCommands(aEditor, aNodeEditorCommands);

    return aEditor;
  }
View Full Code Here


   *
   * @return The leaf viewer displayable
   */
  protected Displayable getLeafViewer(HierarchyNode rNode)
  {
    Displayable aViewer = rNodeController.createLeafViewer(rNode);

    aViewer.setCommandListener(this);
    setCommands(aViewer, aGeneralCommands);
    setCommands(aViewer, aNodeViewerCommands);

    if (rNode instanceof MutableHierarchyNode)
    {
View Full Code Here

   *
   * @return The topmost List on the view stack
   */
  protected HierarchyNodeDisplay getCurrentDisplay()
  {
    Displayable rCheck;
    int        nPos = aViewStack.size();

    do
    {
      rCheck = (Displayable) aViewStack.elementAt(--nPos);
View Full Code Here

    {
      aTitles[nCount] = getString("JL_NewItem");
      aImages[nCount] = aNewItemImage;
    }

    Displayable aDisplay = (Displayable) createNodeDisplay(rParent, aTitles,
                                 aImages);

    rViewController.setListCommands(aDisplay, rParent, bEditable,
                    aClipboard != null, bWithBackCommand);
View Full Code Here

   * displays temporary screens from time to time can use the ScreenManager
   * class too.</p>
   */
  public static void refresh()
  {
    Displayable rScreen = null;

    if (aTemporaryScreenStack.size() > 0)
    {
      rScreen = (Displayable) aTemporaryScreenStack.peek();
    }
View Full Code Here

    case 2:
      List l = (List) Display.getDisplay(m).getCurrent();
      int j = l.getSelectedIndex();
      String file_or_path = l.getTitle() + l.getString(j);
      Displayable f = null;
      currentPath = file_or_path;
      if (file_or_path.endsWith("/")) {
        f = new DirectoryEditor(file_or_path);
        f.addCommand(saveCommand);
      } else if (file_or_path.endsWith(".mp3")) {
        f = new FileEditor(file_or_path);
        f.addCommand(saveCommand);
      } else if (file_or_path.endsWith(".txt")) {
        f = new VisorDeTexto(file_or_path);
      }
      Display.getDisplay(m).setCurrent(f);
      f.setCommandListener(this);
      f.addCommand(backCommand);
    }

    q = s;
  }
View Full Code Here

    if (c == backCommand) {
      if (q == 2) {
        q--;
      }
      Displayable d2 = (Displayable) lifo.pop();
      if (lifo.isEmpty())
        q = 0;
      Display.getDisplay(m).setCurrent(d2);
    }
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.