Examples of Displayable


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

Examples of javax.microedition.lcdui.Displayable

   *
   * @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

Examples of javax.microedition.lcdui.Displayable

   *
   * @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

Examples of javax.microedition.lcdui.Displayable

    {
      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

Examples of javax.microedition.lcdui.Displayable

   * 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

Examples of javax.microedition.lcdui.Displayable

    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

Examples of javax.microedition.lcdui.Displayable

    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

Examples of org.internna.iwebmvc.model.Displayable

      Assert.notNull(entity);
      for (PropertyDescriptor property : BeanUtils.getPropertyDescriptors(ClassUtils.getActualClass(entity))) {
            Object received = property.getReadMethod().invoke(entity);
            EntityParser parser = getParser(property.getPropertyType(), received);
            if (parser != null) {
                Displayable parsed = parser.parse((Displayable) received);
                property.getWriteMethod().invoke(entity, parsed);
            }
      }
      return entity;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.