public DeleteFeedbackQuestion(int code) { this.code = code; AdministrateFeedbackQuestionController fqController = new AdministrateFeedbackQuestionController(); fq = fqController.processSearchTerm(code, null, null, null); AdministrateFeedbackFormController ffController = new AdministrateFeedbackFormController(); ff = ffController.processSearchTerm(0, null, fq.getCode().get(0)); }
/** * This method initializes jFrame * * @return javax.swing.JFrame */ JFrame getJFrame() { if (jFrame == null) { jFrame = new JFrame(); jFrame.setTitle("Delete Feedback Question #" + fq.getCode().get(0).toString()); jFrame.setSize(new Dimension(500, 280)); jFrame.setContentPane(getJContentPane()); } return jFrame; }
/** * This method initializes questionTextField * * @return javax.swing.JTextField */ private JTextField getQuestionTextField() { if (questionTextField == null) { questionTextField = new JTextField(); questionTextField.setBounds(new Rectangle(160, 109, 300, 20)); questionTextField.setBackground(null); questionTextField.setBorder(null); questionTextField.setEditable(false); questionTextField.setText(fq.getQuestion().get(0)); } return questionTextField; }
/** * This method initializes typeTextField * * @return javax.swing.JTextField */ private JTextField getTypeTextField() { if (typeTextField == null) { typeTextField = new JTextField(); typeTextField.setBounds(new Rectangle(160, 79, 300, 20)); typeTextField.setBackground(null); typeTextField.setBorder(null); typeTextField.setEditable(false); typeTextField.setText(fq.getType().get(0)); } return typeTextField; }
/** * This method initializes dateTextField * * @return javax.swing.JTextField */ private JTextField getDateTextField() { if (dateTextField == null) { dateTextField = new JTextField(); dateTextField.setBounds(new Rectangle(160, 49, 300, 20)); dateTextField.setBackground(null); dateTextField.setBorder(null); dateTextField.setEditable(false); dateTextField.setText(fq.getCreationDate().get(0).toString()); } return dateTextField; }
/** * This method initializes codeTextField * * @return javax.swing.JTextField */ private JTextField getCodeTextField() { if (codeTextField == null) { codeTextField = new JTextField(); codeTextField.setBounds(new Rectangle(160, 19, 300, 20)); codeTextField.setBackground(null); codeTextField.setBorder(null); codeTextField.setEditable(false); codeTextField.setText(fq.getCode().get(0).toString()); } return codeTextField; }