Class EditorVSFocusReference

All Implemented Interfaces:
EventListener, IGProp<String>, IPropReference, IReferencingGProp, Cloneable

public class EditorVSFocusReference extends VSFocusReference
Focus reference is used to set a reference to a focusable VSComponent.
Author:
Christopher Mindus
  • Constructor Details

    • EditorVSFocusReference

      public EditorVSFocusReference()
      Creates a VirtualSpace focus reference property with no name and with a null value.
    • EditorVSFocusReference

      public EditorVSFocusReference(Atom propertyAtom)
      Creates a VirtualSpace focus reference property with the specified name with a null value.
      Parameters:
      propertyAtom - the property atom.
    • EditorVSFocusReference

      public EditorVSFocusReference(Atom propertyAtom, String newValue)
      Creates a VirtualSpace focus reference property with the specified name and value.
      Parameters:
      propertyAtom - the property atom.
      newValue - the new string value for the property.
  • Method Details

    • clone

      public EditorVSFocusReference clone()
      Clones.
      Overrides:
      clone in class VSFocusReference
      Returns:
      A new cloned String property.
    • onResolved

      protected void onResolved(VSComponent target)
      Called when the property reference has been resolved. Overrides the super-method to avoid having the component references with listeners and to verify the focusability of the reference in the Designer.
      Overrides:
      onResolved in class VSFocusReference
      Parameters:
      target - The target reference.
    • onRemoved

      protected void onRemoved(VSComponent oldTarget)
      Called when the property reference has been disposed of e.g. due to new reference or pure disposal of this property.

      Overrides the super-method to remove the focus potential error property if the component is not focusable.

      Overrides:
      onRemoved in class VSFocusReference
      Parameters:
      oldTarget - The old target reference.