{"id":45577,"date":"2011-07-01T05:13:07","date_gmt":"2011-07-01T05:13:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/java-applet-embed\/"},"modified":"2011-07-01T05:49:45","modified_gmt":"2011-07-01T05:49:45","slug":"java-applet-embed","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/java-applet-embed\/","author":8026264,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.5.1.1","stable_tag":"0.5.1.1","tested":"3.0.5","requires":"","requires_php":"","requires_plugins":"","header_name":"Java Applet Embed","header_author":"Huy Z, Anthony Mattox","header_description":"","assets_banners_color":"","last_updated":"2011-07-01 05:49:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/huyz.us\/wp-java-applet-embed\/","header_author_uri":"http:\/\/huyz.us\/,%20http:\/\/www.anthonymattox.com","rating":0,"author_block_rating":0,"active_installs":30,"downloads":5940,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.5","0.5.1","0.5.1.1"],"block_files":[],"assets_screenshots":{"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1573858","resolution":"5","location":"plugin"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1573858","resolution":"4","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1573858","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573858","resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1573858","resolution":"2","location":"plugin"}},"screenshots":{"1":"Administration settings","2":"Editing post or page with shortcodes","3":"The rendered post or page.  An applet with the 'onclick' loading method first only shows <em>alternate\ncontent<\/em> for the user to click.","4":"The Java virtual machine loading, after the user clicks to load the 'onclick applet'.","5":"The rendered post or page with a sample applet."}},"plugin_section":[],"plugin_tags":[37775,87035,230,8882,87036],"plugin_category":[56],"plugin_contributors":[87038,87037],"plugin_business_model":[],"class_list":["post-45577","plugin","type-plugin","status-closed","hentry","plugin_tags-applet","plugin_tags-applets","plugin_tags-embed","plugin_tags-java","plugin_tags-java-applet","plugin_category-social-and-sharing","plugin_contributors-ahmattox","plugin_contributors-huyz","plugin_committers-huyz"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/java-applet-embed.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/java-applet-embed\/trunk\/screenshot-1.png?rev=1573858","caption":"Administration settings"},{"src":"https:\/\/ps.w.org\/java-applet-embed\/trunk\/screenshot-2.png?rev=1573858","caption":"Editing post or page with shortcodes"},{"src":"https:\/\/ps.w.org\/java-applet-embed\/trunk\/screenshot-3.png?rev=1573858","caption":"The rendered post or page.  An applet with the 'onclick' loading method first only shows <em>alternate\ncontent<\/em> for the user to click."},{"src":"https:\/\/ps.w.org\/java-applet-embed\/trunk\/screenshot-4.png?rev=1573858","caption":"The Java virtual machine loading, after the user clicks to load the 'onclick applet'."},{"src":"https:\/\/ps.w.org\/java-applet-embed\/trunk\/screenshot-5.png?rev=1573858","caption":"The rendered post or page with a sample applet."}],"raw_content":"<!--section=description-->\n<p>(NOTE: This plugin was tested with WordPress 3.0.5 but is likely to be\ncompatible with any WordPress after 2.5 including the latest 3.2)<\/p>\n\n<p>If you've ever tried to embed a Java applet in a post or page by inserting\nyour usual <code>&lt;applet&gt;<\/code> or <code>&lt;object&gt;<\/code> tags, you would have noticed that\nWordPress doesn't recognize the tags and the tags disappear. This plugin\nsupports new shortcodes permitting WordPress to recognize and properly render\nthe applets.<\/p>\n\n<p>You can choose among three possible applet-loading modes:<\/p>\n\n<ol>\n<li>Inline, loaded immediately.<\/li>\n<li>Inline, loaded only when the user clicks. This one is great for letting\nyour visitors control whether to load the JVM or not.<\/li>\n<li>Popup window, loaded only when the user clicks.<\/li>\n<\/ol>\n\n<p>You can reference your JAR archive with any full URL, even on another web\nsite.  And you can even upload the JAR into WordPress using the Media\nLibrary and then reference the JAR file as you would any other image, video,\nor audio.<\/p>\n\n<p>Thanks to the integration of Oracle\u2019s <a href=\"http:\/\/download.oracle.com\/javase\/6\/docs\/technotes\/guides\/jweb\/deployment_advice.html#deplToolkit\">Deployment\nToolkit<\/a>\n, it works for multiple types of browsers and can offer to download the Java\nPlug-in (this probably needs more testing) or update it if the required JVM\nversion doesn\u2019t match (this feature hasn\u2019t yet been implemented but it easily\ncould be, if there is demand.)<\/p>\n\n<p>It is based on the great work done by\n<a href=\"http:\/\/profiles.wordpress.org\/users\/ahmattox\/\">ahmattox<\/a> on his\n<a href=\"http:\/\/wordpress.org\/extend\/plugins\/wordpress-processing-embed\/\">WordPress Processing Embed<\/a>.\nIn fact, it works almost exactly the same way and offers the same features.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Look at the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/java-applet-embed\/other_notes\/\">Other Notes<\/a>\npage.<\/p>\n\n<h4>Contribution<\/h4>\n\n<p>You're welcome to fork this code at https:\/\/github.com\/huyz\/wp-java-applet-embed\nand request pulls.\nI'll try to release regularly to http:\/\/wordpress.org\/extend\/plugins.<\/p>\n\n<h3>Usage<\/h3>\n\n<h4>Global Settings<\/h4>\n\n<p>First, you can optionally set some global default settings for all applets by\nvisiting the \"Java Applet Embed\" settings page in the Administration screens.<\/p>\n\n<h4>JAR code<\/h4>\n\n<p>Then, you need to make your applets' Java code accessible.  Either, make the\nJAR archive(s) available from an URL not managed by WordPress (even on some\nexternal web site), or upload the file using the WordPress Media Library, as\nyou would any other image, video, or audio file.<\/p>\n\n<h4>For each applet<\/h4>\n\n<p>For each Java applet, simply add the shortcode to the content of the appropriate\npost or page.  Multiple applets are allowed.<\/p>\n\n<p>The most basic format is:\n    [applet code=\"your.applet.ClassName\" file=\"http:\/\/domain.com\/full\/path\/to\/yourJar.jar\"]\nThis shortcode is in non-enclosing form.<\/p>\n\n<p>You can override global default settings by specifying 'width', 'height',\nor 'method' attributes in the shortcode, where the method can be 'inline',\n'onclick', or 'popup'.<\/p>\n\n<p>By using the enclosing form of the applet shortcode, you can specify \"alternate\ncontent\" and, optionally, applet parameters.  The enclosing format is:\n    [applet code=\"your.applet.ClassName\" file=\"http:\/\/domain.com\/full\/path\/to\/yourJar.jar\"]\n    [param name=\"paramName\" value=\"paramValue\"]\n    alternate content\n    [\/applet]<\/p>\n\n<p>Alternate content is used differently depending on the loading method of the\napplet: for the 'popup' and 'onclick' methods, alternate content will be\nwrapped in a link and displayed for the user to click; for the 'inline'\nmethod, it will only be displayed if Java is not installed.<\/p>\n\n<h4>Examples<\/h4>\n\n<p>Example:\n    [applet code=\"us.huyz.SlickApplet\" file=\"http:\/\/huyz.us\/wp-content\/uploads\/2011\/06\/slickApplets.jar\"\n    method=\"popup\"]Popup the applet \u2192[\/applet]<\/p>\n\n<p>Example (Note <code>files\/<\/code> for multisite):<\/p>\n\n\n    [applet code=\"de.mud.jta.Applet\" file=\"http:\/\/huyz.us\/files\/2011\/06\/jta26.jar\"\n    width=\"1000\" height=\"400\" method=\"onclick\"]\n    [param name=\"config\" value=\"http:\/\/huyz.us\/non-wp-content\/applet.conf\"]\n    [param name=\"Terminal.size\" value=\"[112,24]\"]\n    \u2191\n    \u2190 Load the applet \u2192\n    \u2193\n    [\/applet]\n    \n\n<h4>Details about shortcodes<\/h4>\n\n<p>As with all WordPress shortcodes, you cannot\n<a href=\"http:\/\/codex.wordpress.org\/Shortcode_API#Unclosed_Shortcodes\">mix shortcodes<\/a>\nin enclosing form and non-enclosing (a.k.a. \"unclosed\") form.<\/p>\n\n<p>Either do\n    [applet...]\n    [applet...]\n    [applet...]\nor\n    [applet...]...[\/applet]\n    [applet...]...[\/applet]\n    [applet...]...[\/applet]\nbut don't mix and match within a single post or page.<\/p>\n\n<p>Unlike with true WordPress shortcodes, there is no restriction about <a href=\"http:\/\/codex.wordpress.org\/Shortcode_API#Square_Brackets\">square\nbrackets<\/a> within\nattributes of <code>[param]<\/code> shortcodes.  Thus, this is allowed:\n    [param name=\"Terminal.size\" value=\"[112,24]\"]<\/p>\n\n<!--section=installation-->\n<p>The installation procedure is as usual:<\/p>\n\n<ol>\n<li>Upload the 'java-applet-embed' folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why use the 'onclick' loading method?<\/dt>\n<dd><p>Loading a Java applet takes time, especially the first time the Java plug-in\nis loaded by the browser and especially the first time the JAR file is\ndownloaded by the browser.  Your users may be annoyed if your page immediately\ndoes all this without their initial confirmation and causes delays.<\/p><\/dd>\n<dt>Why use the 'inline' loading method?<\/dt>\n<dd><p>The 'onclick' and 'popup' methods require users to run Javascript, while the\n'inline' method doesn't.  These days, everyone should be running Javascript\nbut who knows what your crazy requirements.<\/p><\/dd>\n<dt>Will this plugin work with WordPress 2.x or 3.1?<\/dt>\n<dd><p>It's very likely to work for other versions of WordPress, so give it a shot,\nand let me know how it works out.<\/p><\/dd>\n<dt>How can I upload other supporting files such as config files?<\/dt>\n<dd><p>Right now, that's not supported.  Only JAR files can be uploaded to WordPress.\nYou have to place your supporting files somewhere else: outside of the\nmanagement of WordPress or some other web site.\nIf there's enough user demand, I'll look into supporting more file types for\nupload.<\/p><\/dd>\n<dt>Is there a way to specify a minimum Java version?<\/dt>\n<dd><p>Not right now.  I don't know if there's demand for it.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.5.1.1<\/h4>\n\n<ul>\n<li>Just updates to web page.  No code change.<\/li>\n<\/ul>\n\n<h4>0.5.1<\/h4>\n\n<ul>\n<li>Just updates to README.  No code change.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Initial Release, based on <a href=\"http:\/\/downloads.wordpress.org\/plugin\/wordpress-processing-embed.0.5.zip\">WordPress Processing Embed<\/a> version 0.5<\/li>\n<\/ul>","raw_excerpt":"Allows you to insert Java applets into your Wordpress blog.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/45577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=45577"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/huyz"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=45577"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=45577"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=45577"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=45577"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=45577"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=45577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}