blob: 1b7ec21d5995339651edbd5fbcd4c53ac9fc8626 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<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.png" 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>
</body>
</html>