blob: d84f247ac832fd9ab3cc6e4711ee6a3d302418f5 [file]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>
Parameters page
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Parameters page
</h1>
<h1>
<img src="../images/tasks-163a.gif" width=423 height=270 alt="Parameters Page for the Self Encapsulate Field Refactoring Command">
</h1>
<p>
Parameters Page for the Self Encapsulate Field Refactoring Command
</p>
<ul>
<li>
In the <strong>Getter name</strong> field, enter the name for the getter.
</li>
<li>
In the <strong>Setter name</strong> field, enter the name for the setter.
</li>
<li>
Use the <strong>Insert new method after</strong> combo-box to indicate the location for the getter and/or setter methods.
</li>
<li>
Select one radio button from the <strong>Access modifier</strong> group to specify the new method's visibility.
</li>
<li>
In the class in which the field is declared, read and write accesses can be direct or you can use getter and setter.
<ul>
<li>
Select the <strong>use getter and setter</strong> radio button if you want the refactoring to convert all these accesses to use getter and setter.
</li>
<li>
Select the <strong>keep field reference</strong> radio button if you do not want the refactoring to modify the current field accesses in the class in which the field is
declared.
</li>
</ul>
</li>
<li> Press <strong>Preview</strong> to perform refactoring with preview or press
<strong>OK</strong> to perform refactoring without preview. </li>
</ul>
<p>
Related Topics:
</p>
<ul>
<li>
<a href="tasks-82.htm">See Refactoring without Preview</a>
</li>
<li>
<a href="tasks-83.htm">See Refactoring with Preview</a>
</li>
</ul>
<p>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" width="324" height="14"></a>
</p>
</body>
</html>