Class Clipboard.ClipboardItem

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    Clipboard

    public static class Clipboard.ClipboardItem
    extends Object
    implements Serializable
    Container for an item in the clipboard, wraps around an actor.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Name

        protected String m_Name
        the name of the item.
      • m_Actor

        protected Actor m_Actor
        the actor.
    • Constructor Detail

      • ClipboardItem

        public ClipboardItem​(String name,
                             Actor actor)
        Initializes the container item.
        Parameters:
        name - the name of the item
        actor - the actor to store
    • Method Detail

      • setName

        public void setName​(String value)
        Sets the name of the item.
        Parameters:
        value - the name
      • getName

        public String getName()
        The name of the item.
        Returns:
        the name
      • getActor

        public Actor getActor()
        Returns the stored actor.
        Returns:
        the actor
      • toString

        public String toString()
        Simply returns the name of the item.
        Overrides:
        toString in class Object
        Returns:
        the item