Example usage for org.apache.wicket MetaDataKey MetaDataKey

List of usage examples for org.apache.wicket MetaDataKey MetaDataKey

Introduction

In this page you can find the example usage for org.apache.wicket MetaDataKey MetaDataKey.

Prototype

public MetaDataKey() 

Source Link

Document

Constructor.

Usage

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);
    }
}