/** * Sets instructions that explain how to fill out the form and what the form is about. * * @param instructions instructions that explain how to fill out the form. */ public void setInstructions(String instructions) { // Split the instructions into multiple instructions for each existent newline ArrayList<String> instructionsList = new ArrayList<String>(); StringTokenizer st = new StringTokenizer(instructions, "\n"); while (st.hasMoreTokens()) { instructionsList.add(st.nextToken()); } // Set the new list of instructions dataForm.setInstructions(instructionsList); }
/** * Sets instructions that explain how to fill out the form and what the form is about. * * @param instructions instructions that explain how to fill out the form. */ public void setInstructions(String instructions) { // Split the instructions into multiple instructions for each existent newline ArrayList instructionsList = new ArrayList(); StringTokenizer st = new StringTokenizer(instructions, "\n"); while (st.hasMoreTokens()) { instructionsList.add(st.nextToken()); } // Set the new list of instructions dataForm.setInstructions(instructionsList); }
/** * Sets instructions that explain how to fill out the form and what the form is about. * * @param instructions instructions that explain how to fill out the form. */ public void setInstructions(String instructions) { // Split the instructions into multiple instructions for each existent newline ArrayList<String> instructionsList = new ArrayList<String>(); StringTokenizer st = new StringTokenizer(instructions, "\n"); while (st.hasMoreTokens()) { instructionsList.add(st.nextToken()); } // Set the new list of instructions dataForm.setInstructions(instructionsList); }
/** * Sets instructions that explain how to fill out the form and what the form is about. * * @param instructions instructions that explain how to fill out the form. */ public void setInstructions(String instructions) { // Split the instructions into multiple instructions for each existent newline ArrayList<String> instructionsList = new ArrayList<String>(); StringTokenizer st = new StringTokenizer(instructions, "\n"); while (st.hasMoreTokens()) { instructionsList.add(st.nextToken()); } // Set the new list of instructions dataForm.setInstructions(instructionsList); }