Package com.blackberry.toolkit.sample.youtube.internal

Examples of com.blackberry.toolkit.sample.youtube.internal.VideoData


      resultsList.setColumnProperty(0, GridFieldManager.PREFERRED_SIZE, 0);
      resultsList.setColumnProperty(1, GridFieldManager.AUTO_SIZE, 0);
      resultsList.setColumnPadding(1);
      resultsList.setCellPadding(0);
      for (int i = 0; i < results.size(); i++) {
        VideoData data = (VideoData) results.elementAt(i);
        // Thumbnail
        BitmapFieldButton image = new BitmapFieldButton(_clock, BitmapField.FOCUSABLE);
        image.setSpace(2, 2);
        image.setCommandAction(new ThumbnailClick(data));
        data.setBitmapField(image);
        resultsList.add(image);
        // Text column
        VerticalFieldManager vfm = new VerticalFieldManager();
        vfm.add(new LabelField(data.getTitle(), LabelField.NON_FOCUSABLE));
        vfm.add(new LabelField(data.getDescription(), LabelField.USE_ALL_HEIGHT | LabelField.NON_FOCUSABLE
            | LabelField.ELLIPSIS));
        resultsList.add(vfm);
        // Break
        resultsList.add(new NullField(NullField.NON_FOCUSABLE));
        resultsList.add(new SeparatorField());
View Full Code Here

TOP

Related Classes of com.blackberry.toolkit.sample.youtube.internal.VideoData

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.