java.lang.Object
org.hippoecm.frontend.plugins.yui.javascript.Setting<K>
All Implemented Interfaces:
Serializable, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
BooleanSetting, DoubleSetting, FunctionSetting, IntSetting, SettingsArraySetting, StringArraySetting, StringMapSetting, StringSetting

public abstract class Setting<K> extends Object implements org.apache.wicket.util.io.IClusterable
See Also:
  • Constructor Details

    • Setting

      public Setting(String javascriptKey, K defaultValue)
  • Method Details

    • get

      public final K get(YuiObject settings)
    • set

      public final void set(K value, YuiObject settings)
    • setFromConfig

      public void setFromConfig(IPluginConfig config, YuiObject settings)
    • getKey

      public String getKey()
    • isValid

      public boolean isValid(K value)
    • setAllowNull

      public void setAllowNull(boolean allowNull)
    • getScriptValue

      public abstract String getScriptValue(K value)
    • newValue

      public abstract K newValue()
    • setFromString

      public abstract void setFromString(String value, YuiObject settings)
    • getValueFromConfig

      protected abstract K getValueFromConfig(IPluginConfig config, YuiObject settings)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object