List of usage examples for org.apache.wicket.markup.html.panel Fragment Fragment
public Fragment(final String id, final String markupId, final MarkupContainer markupProvider, final IModel<?> model)
From source file:de.alpharogroup.wicket.components.examples.fragment.swapping.AddressPanel.java
License:Apache License
/** * Creates the fragment edit address.// w ww . j a v a 2s. co m * * @return the fragment */ private Fragment createFragmentEditAddress() { final Fragment editAddress = new Fragment("group", "edit", this, getDefaultModel()); editAddress.setOutputMarkupPlaceholderTag(true); editAddress.add(createAddressForm()); return editAddress; }
From source file:de.alpharogroup.wicket.components.examples.fragment.swapping.AddressPanel.java
License:Apache License
/** * Creates the fragment view address.//from w w w . j ava 2 s.co m * * @return the fragment */ private Fragment createFragmentViewAddress() { final Fragment viewAddress = new Fragment("group", "view", this, getDefaultModel()); viewAddress.add(new Label("street")); viewAddress.add(new Label("localNumber")); viewAddress.add(new Label("city")); viewAddress.add(new Label("code")); viewAddress.setOutputMarkupPlaceholderTag(true); return viewAddress; }
From source file:de.alpharogroup.wicket.components.factory.ComponentFactory.java
License:Apache License
/** * Factory method for create a new {@link Fragment}. * * @param <T>//www. ja v a 2s .c o m * the generic type * @param id * the id * @param markupId * The associated id of the associated markup fragment * @param markupProvider * The component whose markup contains the fragment's markup * @param model * The model for this {@link Fragment} * @return The new {@link Fragment}. */ public static <T> Fragment newFragment(final String id, final String markupId, final MarkupContainer markupProvider, final IModel<T> model) { final Fragment fragment = new Fragment(id, markupId, markupProvider, model); fragment.setOutputMarkupId(true); return fragment; }
From source file:de.alpharogroup.wicket.components.swap.SwapComponentsFragmentPanel.java
License:Apache License
/** * {@inheritDoc}//from w ww. j a va 2 s . co m */ @Override protected Fragment newEditFragment(final String id) { final Fragment editFragment = new Fragment(id, "edit", this, getDefaultModel()); editFragment.setOutputMarkupPlaceholderTag(true); editFragment.add(newEditComponent("editComponent", getModel())); return editFragment; }
From source file:de.alpharogroup.wicket.components.swap.SwapComponentsFragmentPanel.java
License:Apache License
/** * {@inheritDoc}/*from ww w. j a v a 2 s . c o m*/ */ @Override protected Fragment newViewFragment(final String id) { final Fragment viewFragment = new Fragment(id, "view", this, getModel()); viewFragment.setOutputMarkupPlaceholderTag(true); viewFragment.add(newViewComponent("viewComponent", getModel())); return viewFragment; }
From source file:name.martingeisse.wicket.helpers.FragmentPopulator.java
License:Open Source License
@Override public void populateItem(Item<ICellPopulator<T>> cellItem, String componentId, IModel<T> rowModel) { final Fragment fragment = new Fragment(componentId, fragmentMarkupId, markupProvider, rowModel); cellItem.add(fragment);// ww w . j a v a 2s .c o m populateFragment(fragment, rowModel); }