Enum Open.OpenRule

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Open.OpenRule>
    Enclosing class:
    Open

    public static enum Open.OpenRule
    extends java.lang.Enum<Open.OpenRule>
    Rules that describe how a file should be opened by the open action. The rules for various file types are set by file name extension.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CUSTOM_COMMAND
      Uses a custom command line to handle the file.
      DESKTOP_EDIT
      Attempt to open the file using the application set to "edit" files of this type on the user's desktop.
      DESKTOP_OPEN
      Attempt to open the file using the application set to "open" files of this type on the user's desktop.
      DESKTOP_PRINT
      Attempt to open the file using the application set to "print" files of this type on the user's desktop.
      INTERNAL_EDIT
      If a registered Open.InternalOpener accepts this file, then the first such opener is used to open the file.
      INTERNAL_OPEN
      If a registered Open.InternalOpener accepts this file, then the first such opener is used to open the file.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Open.OpenRule valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Open.OpenRule[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • DESKTOP_EDIT

        public static final Open.OpenRule DESKTOP_EDIT
        Attempt to open the file using the application set to "edit" files of this type on the user's desktop.
      • DESKTOP_OPEN

        public static final Open.OpenRule DESKTOP_OPEN
        Attempt to open the file using the application set to "open" files of this type on the user's desktop.
      • DESKTOP_PRINT

        public static final Open.OpenRule DESKTOP_PRINT
        Attempt to open the file using the application set to "print" files of this type on the user's desktop.
      • INTERNAL_EDIT

        public static final Open.OpenRule INTERNAL_EDIT
        If a registered Open.InternalOpener accepts this file, then the first such opener is used to open the file. If no opener is registered but Strange Eons has a built-in method for dealing with the file, then the built-in method is used. Otherwise, the DESKTOP_EDIT rule is used.
      • INTERNAL_OPEN

        public static final Open.OpenRule INTERNAL_OPEN
        If a registered Open.InternalOpener accepts this file, then the first such opener is used to open the file. If no opener is registered but Strange Eons has a built-in method for dealing with the file, then the built-in method is used. Otherwise, the DESKTOP_OPEN rule is used.
    • Method Detail

      • values

        public static Open.OpenRule[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Open.OpenRule c : Open.OpenRule.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Open.OpenRule valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null