Interface Clipboard

All Known Implementing Classes:
DefaultClipboard

public interface Clipboard
The clipboard with actions and expressions
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(MaleSocket maleSocket, List<String> errors)
    Add an item to the clipboard.
    Get the top item on the clipboard and remove it from the clipboard.
    Get the female socket root of the clipboard tree.
    Get the top item on the clipboard without removing it from the clipboard.
    boolean
    Is the clipboard empty?
    void
    Moves an item on the clipboard to the top of the clipboard.
    void
    Setup this object and its children.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Is the clipboard empty?
      Returns:
      true if empty, false otherwise
    • add

      boolean add(MaleSocket maleSocket, List<String> errors)
      Add an item to the clipboard.

      The last added item is on the top of the clipboard.

      Parameters:
      maleSocket - the item to add on the clipboard
      errors - a list of potential errors
      Returns:
      true if success, false otherwise
    • fetchTopItem

      Get the top item on the clipboard and remove it from the clipboard.

      The top item is the last item put on the clipboard

      Returns:
      the top item
    • getTopItem

      Get the top item on the clipboard without removing it from the clipboard.

      The top item is the last item put on the clipboard

      Returns:
      the top item
    • getFemaleSocket

      Get the female socket root of the clipboard tree.
      Returns:
      the root female socket
    • moveItemToTop

      void moveItemToTop(MaleSocket maleSocket)
      Moves an item on the clipboard to the top of the clipboard.

      If an item on the clipboard that is not the top item is cut, it's placed as the top item on the clipboard until it's pasted elsewhere.

      Parameters:
      maleSocket - the male socket to put on the top
    • setup

      void setup()
      Setup this object and its children. This method is used to lookup system names for child sockets.