Package org.apache.wicket.markup.repeater

Examples of org.apache.wicket.markup.repeater.RepeatingView


        getBean(FlvRecordingDao.class).delete(r);
        target.add(trees); //FIXME add correct refresh
      }
    }.dropCenter("span"));
    add(trash/*.add(new WindowsTheme())*/); //TODO check theme here
    RepeatingView treesView = new RepeatingView("tree");
    treesView.add(selected = new RecordingTree(treesView.newChildId(), new MyRecordingTreeProvider()));
    treesView.add(new RecordingTree(treesView.newChildId(), new PublicRecordingTreeProvider(null, null)));
    for (Organisation_Users ou : getBean(UserDao.class).get(getUserId()).getOrganisation_users()) {
      Organisation o = ou.getOrganisation();
      treesView.add(new RecordingTree(treesView.newChildId(), new PublicRecordingTreeProvider(o.getOrganisation_id(), o.getName())));
    }
    add(trees.add(treesView).setOutputMarkupId(true));
    updateSizes();
    add(sizes.add(new Label("homeSize", homeSize), new Label("publicSize", publicSize)).setOutputMarkupId(true));
    sizes.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)) {
View Full Code Here


      }
    };
    datagrid.setRowsPerPage(rowsPerPage);
    add(datagrid);

    topToolbars = new RepeatingView("topToolbars")
    {
      private static final long serialVersionUID = 1L;

      public boolean isVisible()
      {
        return size() > 0;
      }

    };

    bottomToolbars = new RepeatingView("bottomToolbars")
    {

      private static final long serialVersionUID = 1L;

      public boolean isVisible()
View Full Code Here

   */
  public <T> HeadersToolbar(final DataTable<T> table, final ISortStateLocator stateLocator)
  {
    super(table);

    RepeatingView headers = new RepeatingView("headers");
    add(headers);

    final List<IColumn<T>> columns = table.getColumns();
    for (final IColumn<T> column : columns)
    {
      AbstractItem item = new AbstractItem(headers.newChildId());
      headers.add(item);

      WebMarkupContainer header = null;
      if (column.isSortable())
      {
        header = newSortableHeader("header", column.getSortProperty(), stateLocator);
View Full Code Here

   */
  public RepeatingPage()
  {
    Iterator<Contact> contacts = new ContactDataProvider().iterator(0, 10);

    RepeatingView repeating = new RepeatingView("repeating");
    add(repeating);

    int index = 0;
    while (contacts.hasNext())
    {
      WebMarkupContainer item = new WebMarkupContainer(repeating.newChildId());
      repeating.add(item);
      Contact contact = contacts.next();

      item.add(new ActionPanel("actions", new DetachableContactModel(contact)));
      item.add(new Label("contactid", String.valueOf(contact.getId())));
      item.add(new Label("firstname", contact.getFirstName()));
View Full Code Here

   * @see org.apache.wicket.markup.repeater.RefreshingView#populateItem(org.apache.wicket.markup.repeater.Item)
   */
  @Override
  protected final void populateItem(Item<T> item)
  {
    RepeatingView cells = new RepeatingView(CELL_REPEATER_ID);
    item.add(cells);

    ArrayIteratorAdapter<ICellPopulator<T>> populators = getPopulatorsIterator();

    for (int i = 0; populators.hasNext(); i++)
    {
      IModel<ICellPopulator<T>> populatorModel = populators.next();
      Item<ICellPopulator<T>> cellItem = newCellItem(cells.newChildId(), i, populatorModel);
      cells.add(cellItem);

      ICellPopulator<T> populator = cellItem.getModelObject();
      populator.populateItem(cellItem, CELL_ITEM_ID, item.getModel());

      if (cellItem.get("cell") == null)
View Full Code Here

   */
  public HeadersToolbar(final DataTable<?> table, final ISortStateLocator stateLocator)
  {
    super(table);

    RepeatingView headers = new RepeatingView("headers");
    add(headers);

    final IColumn<?>[] columns = table.getColumns();
    for (final IColumn<?> column : columns)
    {
      WebMarkupContainer item = new WebMarkupContainer(headers.newChildId());
      headers.add(item);

      WebMarkupContainer header = null;
      if (column.isSortable())
      {
        header = newSortableHeader("header", column.getSortProperty(), stateLocator);
View Full Code Here

     * @param id
     */
    private ToolbarsContainer(final String id)
    {
      super(id);
      toolbars = new RepeatingView("toolbars");
      add(toolbars);
    }
View Full Code Here

      }
    }));

    td.add(new Label("exportTo", messageModel));

    RepeatingView linkContainers = new RepeatingView("linkContainer");
    td.add(linkContainers);

    for (IDataExporter exporter : dataExporters)
    {
      WebMarkupContainer span = new WebMarkupContainer(linkContainers.newChildId());
      linkContainers.add(span);

      span.add(createExportLink("exportLink", exporter));
    }
  }
View Full Code Here

  private RepeatingView menuitems;

  public TopNavbar(String id)
  {
    super(id);
    menuitems = new RepeatingView("items");
    add(menuitems);
  }
View Full Code Here

   */
  public RepeatingPage()
  {
    Iterator contacts = new ContactDataProvider().iterator(0, 10);

    RepeatingView repeating = new RepeatingView("repeating");
    add(repeating);

    int index = 0;
    while (contacts.hasNext())
    {
      WebMarkupContainer item = new WebMarkupContainer(repeating.newChildId());
      repeating.add(item);
      Contact contact = (Contact)contacts.next();

      item.add(new ActionPanel("actions", new DetachableContactModel(contact)));
      item.add(new Label("contactid", String.valueOf(contact.getId())));
      item.add(new Label("firstname", contact.getFirstName()));
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.repeater.RepeatingView

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.