org.wicketstuff.datatable_autocomplete.model
Class MarkupIDInStringModel

java.lang.Object
  extended by org.wicketstuff.datatable_autocomplete.model.MarkupIDInStringModel
All Implemented Interfaces:
Serializable, IClusterable, IDetachable, IModel<String>

public class MarkupIDInStringModel
extends Object
implements IModel<String>

Author:
mocleiri Used for situations like rendering javascript method calls where we need the markupid for the component. The markupid is not available until the component is on a page so we need the model to defer the question until rendering time which by definition the context will exist.
See Also:
Serialized Form

Field Summary
static String MARKUP_ID_TAG
          Used by child classes to define the markupid placeholder in their attached template
 
Constructor Summary
MarkupIDInStringModel(String template, Component target)
           
MarkupIDInStringModel(String template, Component target, Map<String,IModel<? extends Serializable>> templateArgMap)
           
 
Method Summary
 void detach()
           
 String getObject()
           
 void setObject(String object)
           
protected  void storeTemplateArgument(String alias, IModel<? extends Serializable> valueModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARKUP_ID_TAG

public static final String MARKUP_ID_TAG
Used by child classes to define the markupid placeholder in their attached template

See Also:
Constant Field Values
Constructor Detail

MarkupIDInStringModel

public MarkupIDInStringModel(String template,
                             Component target,
                             Map<String,IModel<? extends Serializable>> templateArgMap)

MarkupIDInStringModel

public MarkupIDInStringModel(String template,
                             Component target)
Method Detail

storeTemplateArgument

protected void storeTemplateArgument(String alias,
                                     IModel<? extends Serializable> valueModel)

getObject

public final String getObject()
Specified by:
getObject in interface IModel<String>

setObject

public void setObject(String object)
Specified by:
setObject in interface IModel<String>

detach

public void detach()
Specified by:
detach in interface IDetachable


Copyright © 2009-2013. All Rights Reserved.