Class Option

All Implemented Interfaces:
Copyable, XMLNode, Serializable

public class Option extends AbstractAction
Option Class Used to parse the files in 'menu' folder with XStream Generates a menu option
Author:
Pablo GARCIA - 28/JUN/2010
See Also:
  • Constructor Details

    • Option

      public Option()
  • Method Details

    • copy

      public Option copy()
      Description copied from interface: Copyable
      Get a copy of this element
      Returns:
      element copy
    • getText

      public String getText()
      Returns the option text
      Returns:
      Option text
    • setRestricted

      public void setRestricted(boolean restricted)
      Stores if option is restricted or not
      Parameters:
      restricted - Option is restricted
    • isInvisible

      public boolean isInvisible()
      Returns if option is invisible or not
      Returns:
      Option is invisible
    • isVisible

      public boolean isVisible()
      Returns if option is visible or not
      Returns:
      Option is visible
    • getOptions

      public List<Option> getOptions()
      Retrieve Option list
      Returns:
      Option list
    • getOptionByScreen

      public Option getOptionByScreen(String screen)
      Search an initial option by screen name
      Parameters:
      screen - Screen name
      Returns:
      Option found
    • getOptionByName

      public Option getOptionByName(String optionName)
      Search an initial option by name
      Parameters:
      optionName - Option name
      Returns:
      Option found
    • defineRelationship

      public void defineRelationship()
      Define all options parent