private void initialize() { view.addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { timer.setLocked(false); saveDialogPosition(); } public void windowClosed(WindowEvent e) { timer.setLocked(false); saveDialogPosition(); } }); this.getView().getJComboBoxStreamType().setSelectedItem(timer.getJgrabberStreamType()); this.getView().getCbRecordVtxt().setSelected(timer.isRecordVtxt()); this.getView().getJTextFieldUdrecOptions().setText(timer.getUdrecOptions().toString()); this.getView().getCbStoreEPG().setSelected(timer.isStoreEPG()); this.getView().getCbStoreLogAfterRecord().setSelected(timer.isStoreLogAfterRecord()); this.getView().getCbShutdownAfterRecord().setSelected(timer.isShutdownAfterRecord()); this.getView().getCbStopPlaybackAtRecord().setSelected(timer.isStopPlaybackAtRecord()); this.getView().getJTextFieldFilePattern().setText(timer.getFilePattern()); this.getView().getJTextFieldDirPattern().setText(timer.getDirPattern()); this.getView().getJTextFieldRecordSavePath().setText(timer.getSavePath()); this.getView().getJTextFieldDescription().setText(timer.getDescription()); this.getView().getJComboBoxBoxSender().setSelectedItem(timer.getMainTimer().getSenderName()); this.getView().getTfRecordTimerStartDate().setText(timer.getMainTimer().getStartDate()); this.getView().getTfRecordTimerStartTime().setText(timer.getMainTimer().getShortStartTime()); this.getView().getTfRecordTimerStopTime().setText(timer.getMainTimer().getStopTime()); this.getView() .getJComboBoxRepeatRecordTimer() .setSelectedItem( controlTimer.convertShortEventRepeat(timer.getMainTimer().getEventRepeatId())); this.initializeAudioSettings(); this.initializeStreamingEngine(); }
public void selectRepeatDaysForRecordTimer(BOTimer timer) { ControlTimerTab.selectRepeatDaysForRecordTimer(timer, this.getView().jRadioButtonWhtage); }