Class KeyMapModel<K extends Serializable,​V>

  • Type Parameters:
    K - type of the key in the map
    V - type of the value object in the map
    All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<V>, org.apache.wicket.util.io.IClusterable

    public class KeyMapModel<K extends Serializable,​V>
    extends Object
    implements org.apache.wicket.model.IModel<V>
    A model binding to a value object identified by the key object in the map
    See Also:
    Serialized Form
    • Constructor Detail

      • KeyMapModel

        public KeyMapModel​(org.apache.wicket.model.IModel<? extends Map<K,​V>> mapModel,
                           K key)
    • Method Detail

      • getObject

        public V getObject()
        Specified by:
        getObject in interface org.apache.wicket.model.IModel<K extends Serializable>
      • setObject

        public void setObject​(V object)
        Specified by:
        setObject in interface org.apache.wicket.model.IModel<K extends Serializable>
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
        Specified by:
        detach in interface org.apache.wicket.model.IModel<K extends Serializable>