private void initOutputLocation() { // currently, the save location is populated deterministically by the combination of // the users's input final RootPanel outputPanel = RootPanel.get("output"); output = new TextBox(); output.setVisibleLength(150); output.addChangeHandler( new ChangeHandler() { @Override public void onChange(final ChangeEvent event) { outputPathUserSpecified = true; updateOutputLocation(); } }); outputPanel.add(output); final RootPanel outputWarning = RootPanel.get("outputWarning"); outputValidationPanel = new ValidationPanel(2); outputWarning.add(outputValidationPanel); connectOutputLocationAndFileTable(); // Fire userChanged to get the output location updated userChanged(); updateOutputLocation(); }
private void initTitleEditor() { final RootPanel titlePanel = RootPanel.get("title"); title.setVisibleLength(60); titlePanel.add(title); title.addKeyUpHandler( new KeyUpHandler() { @Override public void onKeyUp(final KeyUpEvent event) { userEditedTitle = true; updateOutputLocation(); } }); titleChangeListener = new TitleChangeListener(); title.addChangeHandler(titleChangeListener); }