org.apache.wicket
Class DefaultMarkupIdGenerator

java.lang.Object
  extended by org.apache.wicket.DefaultMarkupIdGenerator
All Implemented Interfaces:
IMarkupIdGenerator

public class DefaultMarkupIdGenerator
extends Object
implements IMarkupIdGenerator

An implementation of IMarkupIdGenerator that uses the Session to generate sequence numbers for the component markup ids. As a prefix for the generated markup id in development mode it uses the component id and in production mode the string id.


Constructor Summary
DefaultMarkupIdGenerator()
           
 
Method Summary
 String generateMarkupId(Component component, boolean createIfDoesNotExist)
          Generates markup id for the given component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMarkupIdGenerator

public DefaultMarkupIdGenerator()
Method Detail

generateMarkupId

public String generateMarkupId(Component component,
                               boolean createIfDoesNotExist)
Description copied from interface: IMarkupIdGenerator
Generates markup id for the given component

Specified by:
generateMarkupId in interface IMarkupIdGenerator
Parameters:
component - The component for which to generate a markup id
createIfDoesNotExist - When there is no existing markup id, determines whether it should be generated or whether null should be returned.
Returns:
The generated markup id


Copyright © 2006–2015 Apache Software Foundation. All rights reserved.