Package org.apache.wicket.markup.repeater

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


    panels.add(tab);
  }
 
  public SettingsPanel(String id, int active) {
    super(id);
    RepeatingView tabs = new RepeatingView("tabs");
    addTab(tabs, WebSession.getString(1170), getTabId(PROFILE_TAB_ID));
    addTab(tabs, WebSession.getString(1188), getTabId(MESSAGES_TAB_ID));
    addTab(tabs, WebSession.getString(1171), getTabId(EDIT_PROFILE_TAB_ID));
    addTab(tabs, WebSession.getString(1172), getTabId(SEARCH_TAB_ID));
    addTab(tabs, WebSession.getString(1548), getTabId(DASHBOARD_TAB_ID));
   
    RepeatingView panels = new RepeatingView("panels");
    addPanel(panels, getTabId(PROFILE_TAB_ID), new UserProfilePanel("tab", getUserId()));
    addPanel(panels, getTabId(MESSAGES_TAB_ID), new MessagesContactsPanel("tab"));
    addPanel(panels, getTabId(EDIT_PROFILE_TAB_ID), new ProfilePanel("tab"));
    addPanel(panels, getTabId(SEARCH_TAB_ID), new UserSearchPanel("tab"));
    addPanel(panels, getTabId(DASHBOARD_TAB_ID), new WidgetsPanel("tab"));
View Full Code Here


        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

          private static final long serialVersionUID = 9180559138402389613L;

          @Override
          protected void onEvent(AjaxRequestTarget target) {
            Field[] ff = Client.class.getDeclaredFields();
            RepeatingView lines = new RepeatingView("line");
            Client c = item.getModelObject();
            for (Field f : ff) {
              int mod = f.getModifiers();
              if (Modifier.isStatic(mod) || Modifier.isTransient(mod)) {
                continue;
              }
              WebMarkupContainer line = new WebMarkupContainer(lines.newChildId());
              line.add(new Label("name", f.getName()));
              String val = "";
              try {
                f.setAccessible(true);
                val = "" + f.get(c);
              } catch (Exception e) {
                //noop
              }
              line.add(new Label("value", val));
              lines.add(line);
            }
            details.addOrReplace(lines);
            target.add(details.setVisible(true));
          }
        });
View Full Code Here

        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

        final FeedbackPanel feedback = new FeedbackPanel(ID_FEEDBACK);
        feedback.setOutputMarkupId(true);
        addOrReplace(feedback);

        RepeatingView repeating = new RepeatingView(ID_REPEATING_SUMMARY_CHARTS);
        addOrReplace(repeating);

        List<ObjectAssociation> numberAssociations = elementSpec.getAssociations(CollectionContentsAsSummaryChartsFactory.OF_TYPE_BIGDECIMAL);
        for (ObjectAssociation numberAssociation : numberAssociations) {
            AbstractItem item = new AbstractItem(repeating.newChildId());

            repeating.add(item);

            String propertyName = numberAssociation.getName();
            item.add(new Label(ID_PROPERTY_NAME, new Model<String>(propertyName)));

            List<ObjectAdapter> adapters = model.getObject();
View Full Code Here

     * @param id
     */
    private ToolbarsContainer(final String id)
    {
      super(id);
      toolbars = new RepeatingView("toolbars");
      add(toolbars);
    }
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 HeadersToolbar(final DataTable table, final ISortStateLocator stateLocator)
  {
    super(table);


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

    final IColumn[] columns = table.getColumns();
    for (int i = 0; i < columns.length; i++)
    {
      final IColumn column = columns[i];

      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

      do
      {
        // Build a row
        Item rowItem = newRowItem(newChildId(), row);
        RepeatingView rowView = new RepeatingView("cols");
        rowItem.add(rowView);
        add(rowItem);

        // Populate the row
        for (int index = 0; index < cols; index++)
        {
          final Item cellItem;
          if (items.hasNext())
          {
            cellItem = (Item)items.next();
          }
          else
          {
            cellItem = newEmptyItem(newChildId(), index);
            populateEmptyItem(cellItem);
          }
          rowView.add(cellItem);
        }

        // increase row
        row++;
View Full Code Here

      do
      {
        // Build a row
        Item<?> rowItem = newRowItem(newChildId(), row);
        RepeatingView rowView = new RepeatingView("cols");
        rowItem.add(rowView);
        add(rowItem);

        // Populate the row
        for (int index = 0; index < cols; index++)
        {
          final Item<T> cellItem;
          if (items.hasNext())
          {
            cellItem = items.next();
          }
          else
          {
            cellItem = newEmptyItem(newChildId(), index);
            populateEmptyItem(cellItem);
          }
          rowView.add(cellItem);
        }

        // increase row
        row++;
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.