org.ujorm.wicket.component.tools
Class LocalizedModel

java.lang.Object
  extended by org.apache.wicket.model.AbstractReadOnlyModel<String>
      extended by org.apache.wicket.model.ResourceModel
          extended by org.ujorm.wicket.component.tools.LocalizedModel
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IComponentAssignedModel<String>, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<String>, org.apache.wicket.util.io.IClusterable

public class LocalizedModel
extends org.apache.wicket.model.ResourceModel

Extended ResourceModel where default value is the original key by default.

Author:
Pavel Ponec
See Also:
Serialized Form

Constructor Summary
LocalizedModel(String resourceKey)
          Default value is the same as key
LocalizedModel(String resourceKey, String defaultValue)
           
 
Method Summary
static String getSimpleKeyName(Key key)
          Get a full key name with no alias information by example:
 
Methods inherited from class org.apache.wicket.model.ResourceModel
getObject, wrapOnAssignment
 
Methods inherited from class org.apache.wicket.model.AbstractReadOnlyModel
detach, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.wicket.model.IModel
setObject
 
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
 

Constructor Detail

LocalizedModel

public LocalizedModel(String resourceKey)
Default value is the same as key


LocalizedModel

public LocalizedModel(String resourceKey,
                      String defaultValue)
Method Detail

getSimpleKeyName

public static final String getSimpleKeyName(Key key)
Get a full key name with no alias information by example:



Copyright © 2015. All Rights Reserved.