Interface IClearComponentArea

All Known Implementing Classes:
EGridLayout

public interface IClearComponentArea
Interface to implement by layout managers that supports Clear-And-Delete component action.
Author:
Christopher Mindus
  • Method Details

    • clearComponentArea

      boolean clearComponentArea(ComplexOperation op, UIComp comp)
      Clears the area occupied by a component.
      Parameters:
      op - Complex operation for undo/redo.
      comp - Component to delete.
      Returns:
      false for component not found, true for success.
    • clearComponentAreas

      int clearComponentAreas(ComplexOperation op, List<UIComp> comps)
      Clears the areas occupied by the components of ONE drop that leave this layout's container, all of them in one pass: a drop that moves its components out only after every area is cleared calls this once, never clearComponentArea(ComplexOperation,UIComp) per component.
      Parameters:
      op - Complex operation for undo/redo.
      comps - The components that leave; one that is not in this layout's container is skipped.
      Returns:
      The count of components whose area was cleared.
    • clearComponentAreas

      static void clearComponentAreas(ComplexOperation op, UIComp[] comps, LayoutMgr<?> except)
      Clears the areas of the components of ONE drop in the layouts they leave, before any of them is moved out: every layout manager that supports it gets one call of clearComponentAreas(ComplexOperation,List) with all the components of the drop that are in its container, in the order of the drop.
      Parameters:
      op - Complex operation for undo/redo.
      comps - The components of the drop.
      except - The layout manager whose components are left alone (the target of a drop that moves its own components itself), null for none.