Tabnine Logo
IPageMap
Code IndexAdd Tabnine to your IDE (free)

How to use
IPageMap
in
org.apache.wicket

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

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 map
 *            The page map to add to dirty objects list
 */
void dirtyPageMap(final IPageMap map)
{
  if (!map.isDefault())
  {
    synchronized (usedPageMaps)
    {
      usedPageMaps.remove(map);
      usedPageMaps.addLast(map);
    }
  }
  List dirtyObjects = getDirtyObjectsList();
  if (!dirtyObjects.contains(map))
  {
    dirtyObjects.add(map);
  }
}
origin: org.wamblee/wamblee-wicket-components

@Override
public void onDetach(WebPage aPage) {
  aPage.getPageMap().remove(aPage);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

final String pageMapName = pageMap.isDefault() ? "" : pageMap.getName();
if (component instanceof BookmarkablePageLink)
origin: org.apache.wicket/com.springsource.org.apache.wicket

page.getPageMap().put(page);
  attribute = page.getPageMap().attributeForId(page.getNumericId());
  if (getAttribute(attribute) == null)
  attribute = attributeForPageMapName(((IPageMap)object).getName());
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.
 * 
 * Returns the page with given id and versionNumber. It keeps asking pageMaps for given page
 * until it finds one that contains it.
 * 
 * @param pageId
 * @param versionNumber
 * @return The page of that pageid and version, null if not found
 */
public final Page getPage(final int pageId, final int versionNumber)
{
  if (Application.get().getSessionSettings().isPageIdUniquePerSession() == false)
  {
    throw new IllegalStateException(
      "To call this method ISessionSettings.setPageIdUniquePerSession must be set to true");
  }
  List pageMaps = getPageMaps();
  for (Iterator i = pageMaps.iterator(); i.hasNext();)
  {
    IPageMap pm = (IPageMap)i.next();
    if (pm.containsPage(pageId, versionNumber))
    {
      return getPage(pm.getName(), "" + pageId, versionNumber);
    }
  }
  return null;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

add(new Label("name", pageMap.getName() == null ? "null" : pageMap.getName()));
add(new Label("size", "" + Bytes.bytes(pageMap.getSizeInBytes())));
origin: org.ops4j.pax.wicket/pax-wicket-service

IPageMapEntry entry = pageMap.getEntry(access.getId());
PageParameters parameters = new PageParameters();
parameters.put("pageId", "" + entry.getNumericId());
parameters.put("pageMap", pageMap.getName() == null ? "" : pageMap.getName());
Link<?> link = new BookmarkablePageLink<Void>("link", InspectorPage.class, parameters);
link.add(new Label("id", "" + entry.getNumericId()));
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Redirects to any intercept page previously specified by a call to redirectToInterceptPage.
 * 
 * @return True if an original destination was redirected to
 * @see Component#redirectToInterceptPage(Page)
 */
public final boolean continueToOriginalDestination()
{
  return getPage().getPageMap().continueToOriginalDestination();
}
origin: org.ops4j.pax.wicket/pax-wicket-service

  public void pageMap(IPageMap pageMap)
  {
    pageMap.clear();
  }
});
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @return Size of this session, including all the pagemaps it contains
 */
public final long getSizeInBytes()
{
  long size = Objects.sizeof(this);
  for (final Iterator iterator = getPageMaps().iterator(); iterator.hasNext();)
  {
    final IPageMap pageMap = (IPageMap)iterator.next();
    size += pageMap.getSizeInBytes();
  }
  return size;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

final IPageMapEntry oldestEntry = pageMap.getEntry(oldestAccess.getId());
origin: org.apache.wicket/com.springsource.org.apache.wicket

pageMapsUsedInRequest.put(pageMap, newEntry);
final String id = Strings.firstPathComponent(path, Component.PATH_SEPARATOR);
Page page = pageMap.get(Integer.parseInt(id), versionNumber);
if (page == null)
origin: org.apache.wicket/com.springsource.org.apache.wicket

final String pageMapName = pageMap.isDefault() ? "" : pageMap.getName();
if (component instanceof BookmarkablePageLink)
origin: org.ops4j.pax.wicket/pax-wicket-service

page.getPageMap().put(page);
  attribute = page.getPageMap().attributeForId(page.getNumericId());
  if (getAttribute(attribute) == null)
  attribute = attributeForPageMapName(((IPageMap)object).getName());
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.
 * 
 * Returns the page with given id and versionNumber. It keeps asking pageMaps for given page
 * until it finds one that contains it.
 * 
 * @param pageId
 * @param versionNumber
 * @return The page of that pageid and version, null if not found
 */
public final Page getPage(final int pageId, final int versionNumber)
{
  if (Application.get().getSessionSettings().isPageIdUniquePerSession() == false)
  {
    throw new IllegalStateException(
      "To call this method ISessionSettings.setPageIdUniquePerSession must be set to true");
  }
  List<IPageMap> pageMaps = getPageMaps();
  for (IPageMap pageMap : pageMaps)
  {
    if (pageMap.containsPage(pageId, versionNumber))
    {
      return getPage(pageMap.getName(), "" + pageId, versionNumber);
    }
  }
  return null;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Redirects to any intercept page previously specified by a call to redirectToInterceptPage.
 * 
 * @return True if an original destination was redirected to
 * @see Component#redirectToInterceptPage(Page)
 */
public final boolean continueToOriginalDestination()
{
  return getPage().getPageMap().continueToOriginalDestination();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

  public void pageMap(IPageMap pageMap)
  {
    pageMap.clear();
  }
});
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @return Size of this session, including all the pagemaps it contains
 */
public final long getSizeInBytes()
{
  long size = Objects.sizeof(this);
  for (IPageMap pageMap : getPageMaps())
  {
    size += pageMap.getSizeInBytes();
  }
  return size;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

final IPageMapEntry oldestEntry = pageMap.getEntry(oldestAccess.getId());
org.apache.wicketIPageMap

Javadoc

FIXME IPageMap javadoc

Most used methods

  • getName
  • 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
  • nextId,
  • put,
  • redirectToInterceptPage

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now