Labeled labeled = ( Labeled )node;
actualText = labeled.getText();
}
else if(node instanceof TextInputControl)
{
TextInputControl textInput = ( TextInputControl )node;
actualText = textInput.getText();
}else
{
Text textInput = ( Text)node;
actualText = textInput.getText();
}
return label.equals(actualText);
}