Codota Logo
IPageMap.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
org.apache.wicket.IPageMap

Best Java code snippets using org.apache.wicket.IPageMap.getName (Showing top 20 results out of 315)

  • Common ways to obtain IPageMap
private void myMethod () {
IPageMap i =
  • Codota IconPage page;page.getPageMap()
  • Smart code suggestions by Codota
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @param pageMap
 *            Sets this page into the page map with the given name. If the page map does not yet
 *            exist, it is automatically created.
 */
final void setPageMap(final IPageMap pageMap)
{
  // Save transient reference to pagemap
  this.pageMap = pageMap;
  // Save name for restoring transient
  pageMapName = pageMap.getName();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @param pageMap
 *            Sets this page into the page map with the given name. If the page map does not yet
 *            exist, it is automatically created.
 */
final void setPageMap(final IPageMap pageMap)
{
  // Save transient reference to pagemap
  this.pageMap = pageMap;
  // Save name for restoring transient
  pageMapName = pageMap.getName();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Construct.
 * 
 * @param pagemap
 *            The pagemap where this popup must be in. Typically, you should put any popup in a
 *            separate page map as Wicket holds references to a limited number of pages/
 *            versions only. If you don't put your popup in a separate page map, the user might
 *            get page expired exceptions when getting back to the main window again.
 */
public PopupSettings(IPageMap pagemap)
{
  pageMapName = pagemap.getName();
  windowName = pageMapName;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Construct.
 * 
 * @param pagemap
 *            The pagemap where this popup must be in. Typically, you should put any popup in a
 *            separate page map as Wicket holds references to a limited number of pages/
 *            versions only. If you don't put your popup in a separate page map, the user might
 *            get page expired exceptions when getting back to the main window again.
 * @param displayFlags
 *            Display flags
 */
public PopupSettings(IPageMap pagemap, final int displayFlags)
{
  this.displayFlags = displayFlags;
  pageMapName = pagemap.getName();
  windowName = pageMapName;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * This constructor is ideal for constructing pages lazily.
 * 
 * Constructs an inline frame which invokes the getPage() method of the IPageLink interface when
 * the content of the inline frame is requested. Whatever Page objects is returned by this
 * method will be rendered back to the user.
 * 
 * @param id
 *            See Component
 * @param pageMap
 *            the pagemap where the page of the inline frame must be in
 * @param pageLink
 *            An implementation of IPageLink which will create the page to be contained in the
 *            inline frame if and when the content is requested
 */
public InternalFrame(final String id, final IPageMap pageMap, IPageLink pageLink)
{
  super(id);
  this.pageMapName = pageMap.getName();
  this.pageLink = pageLink;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * This constructor is ideal for constructing pages lazily.
 * 
 * Constructs an inline frame which invokes the getPage() method of the IPageLink interface when
 * the content of the inline frame is requested. Whatever Page objects is returned by this
 * method will be rendered back to the user.
 * 
 * @param id
 *            See Component
 * @param pageMap
 *            the pagemap where the page of the inline frame must be in
 * @param pageLink
 *            An implementation of IPageLink which will create the page to be contained in the
 *            inline frame if and when the content is requested
 */
public InlineFrame(final String id, final IPageMap pageMap, IPageLink pageLink)
{
  super(id);
  pageMapName = pageMap.getName();
  this.pageLink = pageLink;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * This constructor is ideal for constructing pages lazily.
 * 
 * Constructs an inline frame which invokes the getPage() method of the IPageLink interface when
 * the content of the inline frame is requested. Whatever Page objects is returned by this
 * method will be rendered back to the user.
 * 
 * @param id
 *            See Component
 * @param pageMap
 *            the pagemap where the page of the inline frame must be in
 * @param pageLink
 *            An implementation of IPageLink which will create the page to be contained in the
 *            inline frame if and when the content is requested
 */
public InternalFrame(final String id, final IPageMap pageMap, IPageLink pageLink)
{
  super(id);
  pageMapName = pageMap.getName();
  this.pageLink = pageLink;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @deprecated Use the {@link PopupSettings#PopupSettings(String, int)}
 */
@Deprecated
public PopupSettings(IPageMap pageMapName, final int displayFlags)
{
  this(pageMapName.getName(), displayFlags);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

  /**
   * @param pagemap
   *            the pagemap to add as used.
   * @return the boolean if it was added (didn't already contain the pagemap)
   */
  public boolean add(IPageMap pagemap)
  {
    return pageMapNames.add(pagemap.getName());
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

  /**
   * @param pagemap
   *            the pagemap to add as used.
   * @return the boolean if it was added (didn't already contain the pagemap)
   */
  public boolean add(IPageMap pagemap)
  {
    return pageMapNames.add(pagemap.getName());
  }
}
origin: org.ops4j.pax.wicket/pax-wicket-service

  public int compare(IPageMap pg1, IPageMap pg2)
  {
    Integer pg1Index = usedPageMapNames.indexOf(pg1.getName());
    Integer pg2Index = usedPageMapNames.indexOf(pg2.getName());
    return pg1Index.compareTo(pg2Index);
  }
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Construct.
 * 
 * @param pagemap
 *            The pagemap where this popup must be in. Typically, you should put any popup in a
 *            separate page map as Wicket holds references to a limited number of pages/
 *            versions only. If you don't put your popup in a separate page map, the user might
 *            get page expired exceptions when getting back to the main window again.
 * 
 * @deprecated Use the {@link PopupSettings#PopupSettings(String)}
 */
@Deprecated
public PopupSettings(IPageMap pagemap)
{
  this(pagemap.getName(), 0);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

  /**
   * Gets the page map name. Used to create URLs referencing the popup on the defined page map.
   * 
   * @param callee
   * @return the page map name
   */
  public String getPageMapName(Component callee)
  {
    if (pageMapName != null)
    {
      return pageMapName;
    }
    else
    {
      // TODO copy/past the relevant code from getPageMap if we remove it at some point
      return getPageMap(callee).getName();
    }
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @param pageMap
 *            The pagemap for this link's destination
 * @return This
 */
public final BookmarkablePageLink setPageMap(final IPageMap pageMap)
{
  if (pageMap != null)
  {
    pageMapName = pageMap.getName();
    add(new AttributeModifier("target", true, new Model(pageMapName)));
  }
  return this;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @param pageMap
 *            The pagemap for this link's destination
 * @return This
 */
public final BookmarkablePageLink<T> setPageMap(final IPageMap pageMap)
{
  if (pageMap != null)
  {
    pageMapName = pageMap.getName();
    add(new AttributeModifier("target", true, new Model<String>(pageMapName)));
  }
  return this;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @param pageMap
 *            Page map to remove
 */
public final void removePageMap(final IPageMap pageMap)
{
  PageMapAccessMetaData pagemapMetaData = getMetaData(PAGEMAP_ACCESS_MDK);
  if (pagemapMetaData != null)
  {
    pagemapMetaData.pageMapNames.remove(pageMap.getName());
  }
  synchronized (usedPageMapNames)
  {
    usedPageMapNames.remove(pageMap.getName());
  }
  // the page map also needs to be removed from the dirty objects list or
  // the requestDetached method will end up adding it back into session
  getDirtyObjectsList().remove(pageMap);
  removeAttribute(attributeForPageMapName(pageMap.getName()));
  dirty();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @param pageMap
 *            Page map to remove
 */
public final void removePageMap(final IPageMap pageMap)
{
  PageMapAccessMetaData pagemapMetaData = (PageMapAccessMetaData)getMetaData(PAGEMAP_ACCESS_MDK);
  if (pagemapMetaData != null)
  {
    pagemapMetaData.pageMapNames.remove(pageMap.getName());
  }
  synchronized (usedPageMaps)
  {
    usedPageMaps.remove(pageMap);
  }
  removeAttribute(attributeForPageMapName(pageMap.getName()));
  dirty();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Returns a bookmarkable URL that references a given page class using a given set of page
 * parameters. Since the URL which is returned contains all information necessary to instantiate
 * and render the page, it can be stored in a user's browser as a stable bookmark.
 * 
 * @param pageMap
 *            Pagemap to use. If null is passed the default page map will be used
 * @param pageClass
 *            Class of page
 * @param parameters
 *            Parameters to page
 * @return Bookmarkable URL to page
 */
public final CharSequence urlFor(final IPageMap pageMap, final Class pageClass,
  final PageParameters parameters)
{
  final IRequestTarget target = new BookmarkablePageRequestTarget(pageMap == null
    ? PageMap.DEFAULT_NAME : pageMap.getName(), pageClass, parameters);
  return encodeUrlFor(target);
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * THIS METHOD IS NOT PART OF THE WICKET API. DO NOT ATTEMPT TO OVERRIDE OR CALL IT.
 * 
 * Called when a link is clicked. The implementation of this method is currently to simply call
 * onClick(), but this may be augmented in the future.
 * 
 * @see ILinkListener
 */
public final void onLinkClicked()
{
  // if there are popupsettings and this link is clicked.
  // set the popup page map in the request parameters, so that pages that
  // are created in the onClick are made in the wanted pagemap
  if (popupSettings != null)
  {
    RequestCycle.get().getRequest().getRequestParameters().setPageMapName(
      popupSettings.getPageMap(this).getName());
  }
  // Invoke subclass handler
  onClick();
}
origin: org.ops4j.pax.wicket/pax-wicket-service

@Override
protected PageParameters getLinkPageParameters() {
  PageParameters params = new PageParameters();
  params.put("pageMap", getPage().getPageMap().getName());
  params.put("pageId", getPage().getId());
  params.put("version", getPage().getVersions()-1);
  return params;
}
org.apache.wicketIPageMapgetName

Popular methods of IPageMap

  • isDefault
  • remove
    Removes the page from the pagemap
  • attributeForId
  • clear
    Removes all pages from this map
  • containsPage
    Returns true if the PageMap contains page with given id and versonNumber
  • continueToOriginalDestination
    Redirects to any intercept page previously specified by a call to redirectToInterceptPage.
  • get
    Retrieves page with given id.
  • getEntry
    Retrieves entry with given id.
  • getSizeInBytes
  • nextId
  • put
  • redirectToInterceptPage
    Redirects browser to an intermediate page such as a sign-in page. The current request's url is saved
  • put,
  • redirectToInterceptPage

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • JFrame (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now