Is there a way to loop through Control array and get only one type of UI elements, for example, TextFields? Here is an array which contains TextFields, DatePickers, and ChoiceBoxes:
Control[] allControls = new Control[] {
name, surname, age, address, city,
telephoneNum, email, deptBox, idNum, startDate,
contractType, endDate, payFreq, accountNum, taxCoeficient,
netSalary
};
Is there a way to put if condition in for loop and get only one type of UI elements?