use of org.rstudio.core.client.FocusTransitionManager in project rstudio by rstudio.
the class FileBrowserWidget method createTopWidget.
// Private methods ---------------------------------------------------------
private Widget createTopWidget() {
String nameLabel = host_.getFilenameLabel();
if (nameLabel == null)
return null;
HorizontalPanel filenamePanel = new HorizontalPanel();
FileDialogStyles styles = FileDialogResources.INSTANCE.styles();
filenamePanel.setStylePrimaryName(styles.filenamePanel());
filenamePanel.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
Label filenameLabel = new Label(nameLabel + ":", false);
filenameLabel.setStylePrimaryName(styles.filenameLabel());
filenamePanel.add(filenameLabel);
filename_ = new TextBox();
if (initialFilename_ != null)
filename_.setText(initialFilename_);
filename_.setStylePrimaryName(styles.filename());
filenamePanel.add(filename_);
filenamePanel.setCellWidth(filename_, "100%");
ftm_ = new FocusTransitionManager();
ftm_.add(filename_, directory_);
return filenamePanel;
}
Aggregations