Examples of addItem()


Examples of com.rsslibj.elements.Channel.addItem()

        channel.setTitle("Ngqa questions");
       
        if (obj instanceof Pager) {
          Pager<Question> pager = (Pager<Question>) obj;
          for (Question question : pager.getData()) {
        channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
      }
        } else if (obj instanceof Question) {
          Question question = (Question) obj;
          channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
        }
View Full Code Here

Examples of com.salas.bb.utils.parser.Channel.addItem()

     * Tests normal update sequence with updates to times and retrieval counts.
     */
    public void testUpdateNotNull()
    {
        Channel channel = new Channel();
        channel.addItem(new Item("1"));

        DummyDataFeed feed = new DummyDataFeed();
        feed.setChannel(channel);

        long base = System.currentTimeMillis();
View Full Code Here

Examples of com.smartgwt.client.widgets.Window.addItem()

              Window window = new DockableWindow();
              window.setTitle(messages.exportToCsvWindowTitle());
              String content = CONTENT_PRE + messages.exportToCsvContentReady() + CONTENT_POST;
              String linktocsv = messages.exportToCsvDownloadLink(link) + LINK_POST;
              window.addItem(new HTMLFlow(content + linktocsv));
              window.centerInPage();
              window.setAutoSize(true);
              window.show();
              window.setKeepInParentRect(true);
            }
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.Portlet.addItem()

        final Label label = new Label();
        label.setHeight(30);
        label.setContents(I18nProvider.getSampleMessages().multipleListenersPortletText() + " = ?");
        portlet.setHeight(70);
        portlet.addItem(label);
        portalLayout.addPortlet(portlet, (column++) % 3, 0);

        final Listener listener = new AbstractListener() {

          public void onMouseMove(ListenerEvent event) {
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.SectionStackSection.addItem()

    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    overviewMap.setTargetMaxExtentRectangleStyle(new ShapeStyle("#888888", 0.3f, "#666666", 0.75f, 2));
    overviewMap.setRectangleStyle(new ShapeStyle("#6699FF", 0.3f, "#6699CC", 1f, 2));
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
    section2.setExpanded(true);
View Full Code Here

Examples of com.smartgwt.client.widgets.menu.Menu.addItem()

                        public void onClick(MenuItemClickEvent event) {
                            disableAllFooterControls();
                            tableAction.getAction().executeAction(listGrid.getSelectedRecords(), menuEntries.get(key));
                        }
                    });
                    menu.addItem(item);
                }

                IMenuButton menuButton = new IMenuButton(tableAction.getTitle());
                menuButton.setID(EnhancedUtility.getSafeId("menuButton" + id + tableAction.getTitle()));
                menuButton.setTooltip(tableAction.getTooltip());
View Full Code Here

Examples of com.sun.dtv.lwuit.List.addItem()

        final List list = new List();
        String[] arquivos = File.getAllFilesWithExtensions("/home/mos/xlets/", new String[] {"jar"});
        if (arquivos != null){
            for (int i=0;i<arquivos.length;i++)
                list.addItem(arquivos[i]);
        }
        list.setY(15);
        list.setHeight(10);
        Style stylebotao = new Style();
        stylebotao.setBgColor(0x000000, true);
View Full Code Here

Examples of com.sun.star.awt.XComboBox.addItem()

    public static void fillComboBox(Object list, Object[] items, Renderer renderer) {
        XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class,list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[] {});
        for (short i = 0; i < items.length; i++)
            if (items[i] != null)
                xComboBox.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
    }

}
View Full Code Here

Examples of com.sun.star.awt.XListBox.addItem()

    public static void fillList(Object list, Object[] items, Renderer renderer) {
        XListBox xlist = (XListBox) UnoRuntime.queryInterface(XListBox.class, list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[] {});
        for (short i = 0; i < items.length; i++)
            if (items[i] != null)
                xlist.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
    }
   
    public static void fillComboBox(Object list, Object[] items, Renderer renderer) {
        XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class,list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[] {});
View Full Code Here

Examples of com.trolltech.qt.gui.QBoxLayout.addItem()

   
    QBoxLayout bLayout = new QBoxLayout(Direction.TopToBottom);
    bLayout.addWidget(label);
    bLayout.addWidget(errorLabel);
    bLayout.addWidget(lSelectionTyp);
    bLayout.addItem(selBox);
    bLayout.addWidget(routeId);
    bLayout.addWidget(edgesWidget);
    bLayout.addItem(okCancelLayout);
   
    this.setLayout(bLayout);
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.