Class NamedDestination


  • public class NamedDestination
    extends java.lang.Object
    This class is a named destination element for use in the intermediate format.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private AbstractAction action  
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedDestination​(java.lang.String name, AbstractAction action)
      Creates a new named destination.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AbstractAction getAction()
      Returns the action performed when the destination is selected.
      java.lang.String getName()
      Returns the destination's name.
      void setAction​(AbstractAction action)
      Sets the action performed when the destination is selected.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
    • Constructor Detail

      • NamedDestination

        public NamedDestination​(java.lang.String name,
                                AbstractAction action)
        Creates a new named destination.
        Parameters:
        name - the destination's name
        action - the action performed when the destination is selected
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the destination's name.
        Returns:
        the name
      • getAction

        public AbstractAction getAction()
        Returns the action performed when the destination is selected.
        Returns:
        the action
      • setAction

        public void setAction​(AbstractAction action)
        Sets the action performed when the destination is selected.
        Parameters:
        action - the action