< prev index next >

src/java.desktop/macosx/classes/com/apple/eawt/OpenURIHandler.java

Print this page




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.apple.eawt;
  27 
  28 import com.apple.eawt.AppEvent.OpenURIEvent;
  29 
  30 /**
  31  * An implementor is notified when the application is asked to open a URI.
  32  * The application only sends {@link com.apple.eawt.EAWTEvent.OpenURIEvent}s when it has been launched as a bundled Mac application, and it's Info.plist claims URL schemes in it's <code>CFBundleURLTypes</code> entry.
  33  * See the <a href="http://developer.apple.com/mac/library/documentation/General/Reference/InfoPlistKeyReference">Info.plist Key Reference</a> for more information about adding a <code>CFBundleURLTypes</code> key to your app's Info.plist.
  34  *
  35  * @see Application#setOpenURIHandler(OpenURIHandler)
  36  *
  37  * @since Java for Mac OS X 10.6 Update 3
  38  * @since Java for Mac OS X 10.5 Update 8
  39  */
  40 public interface OpenURIHandler {
  41     /**
  42      * Called when the application is asked to open a URI
  43      * @param e the request to open a URI
  44      */
  45     public void openURI(final OpenURIEvent e);
  46 }


  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.apple.eawt;
  27 
  28 import com.apple.eawt.AppEvent.OpenURIEvent;
  29 
  30 /**
  31  * An implementor is notified when the application is asked to open a URI.
  32  * The application only sends {@link com.apple.eawt.EAWTEvent.OpenURIEvent}s when it has been launched as a bundled Mac application, and it's Info.plist claims URL schemes in it's {@code CFBundleURLTypes} entry.
  33  * See the <a href="http://developer.apple.com/mac/library/documentation/General/Reference/InfoPlistKeyReference">Info.plist Key Reference</a> for more information about adding a {@code CFBundleURLTypes} key to your app's Info.plist.
  34  *
  35  * @see Application#setOpenURIHandler(OpenURIHandler)
  36  *
  37  * @since Java for Mac OS X 10.6 Update 3
  38  * @since Java for Mac OS X 10.5 Update 8
  39  */
  40 public interface OpenURIHandler {
  41     /**
  42      * Called when the application is asked to open a URI
  43      * @param e the request to open a URI
  44      */
  45     public void openURI(final OpenURIEvent e);
  46 }
< prev index next >