Class ClassResourceModel

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<String>, org.apache.wicket.util.io.IClusterable

    public class ClassResourceModel
    extends org.apache.wicket.model.LoadableDetachableModel<String>
    Resource model that uses the wicket string resource locator mechanism, but not limited to Components.
    See Also:
    Serialized Form
    • Constructor Detail

      • ClassResourceModel

        public ClassResourceModel​(String key,
                                  Class<?> clazz,
                                  Object... parameters)
      • ClassResourceModel

        public ClassResourceModel​(String key,
                                  Class<?> clazz,
                                  org.apache.wicket.model.IModel<Locale> localeModel,
                                  String style,
                                  Object... parameters)
    • Method Detail

      • load

        protected String load()
        Specified by:
        load in class org.apache.wicket.model.LoadableDetachableModel<String>
      • onDetach

        protected void onDetach()
        Overrides:
        onDetach in class org.apache.wicket.model.LoadableDetachableModel<String>
      • toString

        public String toString()
        Overrides:
        toString in class org.apache.wicket.model.LoadableDetachableModel<String>