Search in sources :

Example 1 with FocusTransitionManager

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;
}
Also used : HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel) Label(com.google.gwt.user.client.ui.Label) FocusTransitionManager(org.rstudio.core.client.FocusTransitionManager) TextBox(com.google.gwt.user.client.ui.TextBox)

Aggregations

HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)1 Label (com.google.gwt.user.client.ui.Label)1 TextBox (com.google.gwt.user.client.ui.TextBox)1 FocusTransitionManager (org.rstudio.core.client.FocusTransitionManager)1