}
public void setInPasswordMode(boolean passwordMode)
{
TextMask newMask = passwordMode ? PasswordMask.instance : IdentityMask.instance;
final TextModel model = getModel();
if(model.getMask() != newMask)
{
model.setMask(newMask);
model.clearCache();
markAsDirty();
}
}