Package org.apache.wicket.markup.repeater

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()


        final RepeatingView rv = new RepeatingView(idProperties);
        mc.add(rv);
        final List<PropertyMemento> mementos = buildPropertyMementos(properties);
        for (final PropertyMemento pm : mementos) {
            final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
            rv.add(container);

            final ScalarModel scalarModel = entityModel.getPropertyModel(pm);
            getComponentFactoryRegistry().addOrReplaceComponent(container, idProperty, ComponentType.SCALAR_NAME_AND_VALUE, scalarModel);
        }
View Full Code Here


        {
            Class pageClass = tab.getKey();
            String tabReference = tab.getValue()[ 0 ];
            String tabLabel = tab.getValue()[ 1 ];

            WebMarkupContainer tabView = new WebMarkupContainer( tabsView.newChildId() );
            if( tabReference.equals( activeTab ) )
            {
                tabView.add( new AttributeModifier( "id", "current" ) );
            }
View Full Code Here

        {
            Class pageClass = tab.getKey();
            String tabReference = tab.getValue()[ 0 ];
            String tabLabel = tab.getValue()[ 1 ];

            WebMarkupContainer tabView = new WebMarkupContainer( tabsView.newChildId() );
            if( tabReference.equals( activeTab ) )
            {
                tabView.add( new AttributeModifier( "id", "current" ) );
            }
View Full Code Here

   */
  private void addTour() {
    RepeatingView view = new RepeatingView("tourDemo");
    add(view);

    Label stepOne = new Label(view.newChildId(), "Step One");
    view.add(stepOne);

    Label stepTwo = new Label(view.newChildId(), "Step Two");
    view.add(stepTwo);

View Full Code Here

    add(view);

    Label stepOne = new Label(view.newChildId(), "Step One");
    view.add(stepOne);

    Label stepTwo = new Label(view.newChildId(), "Step Two");
    view.add(stepTwo);

    Label stepThree = new Label(view.newChildId(), "Step Three");
    view.add(stepThree);
View Full Code Here

    view.add(stepOne);

    Label stepTwo = new Label(view.newChildId(), "Step Two");
    view.add(stepTwo);

    Label stepThree = new Label(view.newChildId(), "Step Three");
    view.add(stepThree);

    TourBehavior tourBehavior = new TourBehavior() {
      @Override
      protected CharSequence createExtraConfig() {
View Full Code Here

        final RepeatingView rv = new RepeatingView(idProperties);
        mc.add(rv);
        final List<PropertyMemento> mementos = buildPropertyMementos(properties);
        for (final PropertyMemento pm : mementos) {
            final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
            rv.add(container);

            final ScalarModel scalarModel = entityModel.getPropertyModel(pm);
            getComponentFactoryRegistry().addOrReplaceComponent(container, idProperty,
                ComponentType.SCALAR_NAME_AND_VALUE, scalarModel);
View Full Code Here

            final RepeatingView rv = new RepeatingView(ID_ACTION_PARAMETERS);
            add(rv);
            final List<ActionParameterMemento> mementos = buildParameterMementos(parameters);
            for (final ActionParameterMemento apm : mementos) {
                final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
                rv.add(container);

                final ScalarModel argumentModel = actionModel.getArgumentModel(apm);
                getComponentFactoryRegistry().addOrReplaceComponent(container, ComponentType.SCALAR_NAME_AND_VALUE,
                    argumentModel);
View Full Code Here

        setRenderBodyOnly(true);

        final RepeatingView menuItemRv = new RepeatingView(getId());
        add(menuItemRv);
        for (final CssMenuItem cssMenuItem : getModel().getObject()) {
            final WebMarkupContainer menuItemMarkup = new WebMarkupContainer(menuItemRv.newChildId());
            menuItemRv.add(menuItemMarkup);

            addSubMenuItems(menuItemMarkup, cssMenuItem);
        }
    }
View Full Code Here

        final RepeatingView menuItemRv = new RepeatingView(CssMenuPanel.ID_MENU_ITEMS);
        add(menuItemRv);

        for (final CssMenuItem cssMenuItem : this.getModel().getObject()) {
            final WebMarkupContainer menuItemMarkup = new WebMarkupContainer(menuItemRv.newChildId());
            menuItemRv.add(menuItemMarkup);

            menuItemMarkup.add(new CssMenuItemPanel(CssMenuPanel.ID_MENU_ITEM, cssMenuItem));
        }
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.