Class DefaultControlsKitFilter

java.lang.Object
com.levigo.jadice.web.client.rendercontrols.DefaultControlsKitFilter
All Implemented Interfaces:
ControlsKitFilter

public class DefaultControlsKitFilter extends Object implements ControlsKitFilter

Default Filter SettingsNames.AFFINE_TRANSFORM is excluded because it won't be serialized completely yet.

SettingsNames.DEVICE_RESOLUTION is excluded because it should not be serialized when person A is saving a document with a device resolution r on their machine and person B is loading the document again, but wants to have resolution s applied as usual on their machine.

SettingsNames.ZOOM is excluded because like SettingsNames.DEVICE_RESOLUTION, it is probably mostly used in cases where a person is using it as a personal preference.
  • Constructor Details

    • DefaultControlsKitFilter

      public DefaultControlsKitFilter()
  • Method Details

    • allows

      public boolean allows(SettingsNames settingsName)
      Description copied from interface: ControlsKitFilter
      Checks if a setting should be included in the serialized output.
      Specified by:
      allows in interface ControlsKitFilter
      Parameters:
      settingsName - name of the Setting.
      Returns:
      whether the setting should be allowed in the output.