Code with Finding: |
class PasswordAttributeEditor {
/**
* Initialize the editor
* @param w the ResourceWrapper father of the attribute
* @param a the Attribute we are editing
* @param o the value of the above attribute
* @param p some Properties, used to fine-tune the editor
* @exception RemoteAccessException if a remote access error occurs.
*/
public void initialize(RemoteResourceWrapper w, Attribute a, Object o,
Properties p)
throws RemoteAccessException
{
frame = ((org.w3c.jigadmin.RemoteResourceWrapper)
w).getServerBrowser().getFrame();
RemoteResource r = w.getResource();
name = (String) r.getValue("identifier");
if(o == null) {
String v = null;
v = (String) r.getValue(a.getName());
if(v == null)
if(a.getDefault() != null)
v = a.getDefault().toString();
if ( v != null ) {
origs = v;
}
} else {
origs = o.toString();
}
current = origs;
setText(origs);
ActionListener al = new ActionListener() {
public void actionPerformed(ActionEvent ae) {
popupDialog();
}
};
widget.addActionListener(al);
}
}
|