69 lines
4.6 KiB
HTML
69 lines
4.6 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="concept" />
|
|
<meta name="DC.Title" content="Property sheet handling in Java" />
|
|
<meta name="abstract" content="Add property pages to property sheets of Java plug-ins. This allows you to build object names, display properties, share objects with third parties, and mix C++ and Java code in the same plug-in." />
|
|
<meta name="description" content="Add property pages to property sheets of Java plug-ins. This allows you to build object names, display properties, share objects with third parties, and mix C++ and Java code in the same plug-in." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakxcreateplugin.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakxexpropmngr.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakxexpropmngr.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzakxjavaproperty" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Property sheet handling in Java</title>
|
|
</head>
|
|
<body id="rzakxjavaproperty"><a name="rzakxjavaproperty"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Property sheet handling in Java</h1>
|
|
<div><p>Add property pages to property sheets of Java™ plug-ins. This allows you to build object names,
|
|
display properties, share objects with third parties, and mix C++ and Java code in the same plug-in.</p>
|
|
<p>To use property pages, you must build the properties manager interface, which provides the following methods:</p>
|
|
<ul><li>Initialize <p>Identifies the container object for the properties.</p>
|
|
</li>
|
|
<li>getPages <p>Construct and provide a vector of PanelManager objects.</p>
|
|
</li>
|
|
<li>CommitHandlers <p>Returns a vector of handlers to be called upon Commit.</p>
|
|
</li>
|
|
<li>CancelHandlers <p>Returns a vector of handlers to be called upon Cancel.</p>
|
|
</li>
|
|
</ul>
|
|
<p>Then enable the properties menu by having the ListManager getAttributes method return ListManager.OBJECT_HASPROPERTIES.</p>
|
|
<p>Finally, create a registry entry that identifies the PopertiesManagerInterface. For example:</p>
|
|
<pre>[HKEY_CLASSES_ROOT\IBM.AS400.Network\AS/400 Network\*
|
|
\shellex\PropertySheetHandlers\{1827A857-9C20-11d1-96C3-00062912C9B2}]
|
|
"JavaClass"="com.ibm.as400.opnav.TestPages.TestPropertiesManager"
|
|
"JavaClassType"="PropertiesManager"</pre>
|
|
<div class="note"><span class="notetitle">Note:</span> Multiple PropertiesManager implementations may register to provide property pages for a given object type. Do not assume that your entity is the only one supplying pages, or the order that the pages
|
|
will be added.</div>
|
|
<p>For more information, see the Properties Manager example.</p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzakxexpropmngr.htm">Example: Java Properties Manager</a></strong><br />
|
|
This is what a Java Properties Manager code might look like</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakxcreateplugin.htm" title="After modifying the sample plug-ins, you'll need to make some modifications to the registry files. This topic provides a walk-through of the registry files for each type of plug-in, and recommends some modifications.">Customize the plug-in registry files</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="rzakxexpropmngr.htm" title="This is what a Java Properties Manager code might look like">Example: Java Properties Manager</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |