Class SetFocus.Settings

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, IActionActorSettings, Cloneable
Direct Known Subclasses:
EditorSetFocus.Settings
Enclosing class:
SetFocus

public static class SetFocus.Settings extends AbstractPredefinedSettings
Settings property container.
  • Constructor Details

    • Settings

      public Settings()
      Creates the settings without name.
    • Settings

      public Settings(Atom propertyAtom)
      Creates the settings with specified name.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • createActor

      protected IActionActor<SetFocus.Settings> createActor(VSAction action)
      Create the instance of the action actor.
      Specified by:
      createActor in class AbstractSettings
      Parameters:
      action - The action instance.
      Returns:
      The new action actor implementation instance.
    • doesModifyVirtualSpace

      public boolean doesModifyVirtualSpace(VSAction action)
      Checks if the VirtualSpace is modified by the Action Actor. Override this method to return the correct setting, default returns true.
      Overrides:
      doesModifyVirtualSpace in class AbstractSettings
      Parameters:
      action - The action in question, perhaps null. If the action is null, it is assumed that the actor could be connected to multiple actions and should therefore return the "worst" scenario, i.e. that it does modify the VS.
      Returns:
      true if any field in the VS is modified (excludes focus).
    • getTargetFocus

      public VSComponent getTargetFocus()
      Gets the target focus VS component.
      Returns:
      The VSComponent instance, or null if not defined or not found.
    • getTargetFocusReference

      public VSFocusReference getTargetFocusReference()
      Gets the target focus component reference.
      Returns:
      The VSComponent reference instance, or null if not defined.