Class EditorVSGroup

All Implemented Interfaces:
IShowJavaSource, ILinkCapable, IUICreationFromVS, IPropDesigner, IPropRenameable, IEVSComponent, EventListener, IFocusComp, IMessageBox, ICustomDataProvider, IGProp<GProp<?>[]>, IPropCnr, IVSComponent, IVSComponentListener, IVSComponentState, Cloneable, IAdaptable

public class EditorVSGroup extends VSGroup implements IEVSComponent, IUICreationFromVS
The Editor VirtualSpace Group property class.
Author:
Christopher Mindus
  • Constructor Details

    • EditorVSGroup

      public EditorVSGroup()
      Creates the VirtualSpace group property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • EditorVSGroup

      public EditorVSGroup(Atom propertyAtom)
      Creates the VirtualSpace group property container with the specified name. All system-reserved names for components begins with "$".
      Parameters:
      propertyAtom - the name of the component, unique within it's parent.
  • Method Details

    • getDesigner

      public VirtualSpaceDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • getVirtualSpace

      public EditorVirtualSpace getVirtualSpace()
      Gets the VirtualSpace instance.
      Specified by:
      getVirtualSpace in interface IUICreationFromVS
      Specified by:
      getVirtualSpace in interface IVSComponent
      Overrides:
      getVirtualSpace in class VSComponent
      Returns:
      The VirtualSpace instance (an ancestor of this property or itself), or null if not found (i.e. property is not yet attached to a VirtualSpace).
    • clone

      public EditorVSGroup clone()
      Clone must be overridden.
      Overrides:
      clone in class VSGroup
    • getPossibleChildren

      public Class<?>[] getPossibleChildren()
      Gets the acceptable children property classes that can be used in conjunction with e.g. a Paste operation.
      Specified by:
      getPossibleChildren in interface IPropCnr
      Overrides:
      getPossibleChildren in class PropCnr
      Returns:
      An array containing the classes of possible children, or null for no support.
    • onEventSelf

      public void onEventSelf(GEvent event)
      Checks for state change events and fires it to listeners.
      Specified by:
      onEventSelf in interface IGProp<GProp<?>[]>
      Overrides:
      onEventSelf in class VSComponent
      Parameters:
      event - The property event.
    • getExtendsPossibleClasses

      public Class<?>[] getExtendsPossibleClasses()
      Gets the possible classes this container supports for the Extends Framework. The default implementation is to return null.
      Specified by:
      getExtendsPossibleClasses in interface IPropCnr
      Overrides:
      getExtendsPossibleClasses in class PropCnr
      Returns:
      List of supported classes, or null for none.
    • canCreateUI

      public boolean canCreateUI(LinkData data)
      Method returning if this property could potentially be (action, field or table) or contain (group) properties that can create UI components when drag-dropped.

      The VSGroup recurses down its VS components to query them for creation support.

      Specified by:
      canCreateUI in interface IUICreationFromVS
      Parameters:
      data - The link data.
      Returns:
      true if the result would lead to UI creations, false otherwise.
    • addCreateUILinkOperations

      public void addCreateUILinkOperations(LinkData data, Collection<ILinkOperation> linkOps)
      Adds all possible operations that could be done in a link operation for UI creation from VS.

      The VSGroup recurses down its VS components so that they can add what is required.

      Specified by:
      addCreateUILinkOperations in interface IUICreationFromVS
      Parameters:
      data - The link data.
      linkOps - List of link operations is filled in when operations are found.