List of usage examples for org.apache.wicket MetaDataKey MetaDataKey
public MetaDataKey()
From source file:com.servoy.j2db.server.headlessclient.dataui.WebItemFactory.java
License:Open Source License
/** * Set a property on the runtime component *//* w w w . j a v a 2 s. com*/ public void setComponentProperty(Object component, Object key, Serializable value) { if (component instanceof org.apache.wicket.Component) { MetaDataKey metaDataKey = metaDataKeys.get(key); if (metaDataKey == null) { metaDataKey = new MetaDataKey<Serializable>() { private static final long serialVersionUID = 1L; }; metaDataKeys.put(key, metaDataKey); } ((org.apache.wicket.Component) component).setMetaData(metaDataKey, value); } }