Creates the upper right component of the options grid.
Creation includes the initialization of {@link #m_filePathField}.

@return the upper right component in the options grid.
427058
private Component createUpperRightComponent() {

        HorizontalLayout upperRight = new HorizontalLayout();
        upperRight.setSizeFull();

        FormLayout fileNameDisplay = new FormLayout();
        fileNameDisplay.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT);
        fileNameDisplay.setSizeFull();

        m_filePathField = new TextField();
        m_filePathField.setWidth("100%");
        m_filePathField.setEnabled(true);
        m_filePathField.setReadOnly(true);

        fileNameDisplay.addComponent(m_filePathField);
        fileNameDisplay.setSpacing(true);

        FormLayout filePathDisplay = new FormLayout();
        filePathDisplay.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT);
        filePathDisplay.setSizeFull();
        filePathDisplay.addComponent(m_filePathField);
        filePathDisplay.setSpacing(true);

        upperRight.addComponent(filePathDisplay);
        upperRight.setExpandRatio(filePathDisplay, 2f);

        HorizontalLayout placeHolder = new HorizontalLayout();
        placeHolder.setWidth(CmsMessageBundleEditorTypes.OPTION_COLUMN_WIDTH_PX);
        upperRight.addComponent(placeHolder);

        return upperRight;
    }
1140182
public PartitionPlan<Partition<T>> getOrCreatePlan()
   {
      Node node = childNode.getOrCreate("plan");
      PartitionPlan<Partition<T>> plan = new PartitionPlanImpl<Partition<T>>(this, "plan", childNode, node);
      return plan;
   }
868891
public String buildDialogOptions() {

        StringBuffer result = new StringBuffer(256);

        boolean isMoved = isOperationOnMovedResource();
        if (!isMultiOperation()) {
            result.append(dialogSpacer());
            result.append(key(
                Messages.GUI_UNDO_LASTMODIFIED_INFO_3,
                new Object[] {getFileName(), getLastModifiedDate(), getLastModifiedUser()}));
            if (isMoved) {
                result.append(dialogSpacer());
                result.append(key(
                    Messages.GUI_UNDO_MOVE_OPERATION_INFO_2,
                    new Object[] {getFileName(), resourceOriginalPath(getCms(), getParamResource())}));
            }
        }
        result.append(dialogSpacer());
        result.append(key(Messages.GUI_UNDO_CONFIRMATION_0));
        if (isMoved || isOperationOnFolder()) {
            // show undo move option if both options are available
            result.append(dialogSpacer());
            result.append("<input type=\"checkbox\" name=\"");
            result.append(PARAM_MOVE);
            result.append("\" value=\"true\" checked='checked'>&nbsp;");
            if (isMultiOperation()) {
                result.append(key(Messages.GUI_UNDO_CHANGES_MOVE_MULTI_SUBRESOURCES_0));
            } else {
                result.append(key(Messages.GUI_UNDO_CHANGES_MOVE_SUBRESOURCES_0));
            }
        } else {
            if (isMoved) {
                result.append(dialogSpacer());
                result.append("<input type=\"hidden\" name=\"");
                result.append(PARAM_MOVE);
                result.append("\" value=\"true\">&nbsp;");
            }
        }
        if (isOperationOnFolder()) {
            // show recursive option if folder(s) is/are selected
            result.append(dialogSpacer());
            result.append(dialogBlockStart(key(Messages.GUI_UNDO_CHANGES_RECURSIVE_TITLE_0)));
            result.append("<input type=\"checkbox\" name=\"");
            result.append(PARAM_RECURSIVE);
            result.append("\" value=\"true\">&nbsp;");
            if (isMultiOperation()) {
                result.append(key(Messages.GUI_UNDO_CHANGES_RECURSIVE_MULTI_SUBRESOURCES_0));
            } else {
                result.append(key(Messages.GUI_UNDO_CHANGES_RECURSIVE_SUBRESOURCES_0));
            }
            result.append(dialogBlockEnd());
        }
        return result.toString();
    }
973316
protected JPanel buildButtonPanel() {
        buttonPanel = new JPanel();

        leftToRight = new JButton(">");
        allLeftToRight = new JButton(">>");
        rightToLeft = new JButton("<");
        allRightToLeft = new JButton("<<");
        Font smallerFont = leftToRight.getFont().deriveFont(9.0F);
        leftToRight.setFont(smallerFont);
        allLeftToRight.setFont(smallerFont);
        rightToLeft.setFont(smallerFont);
        allRightToLeft.setFont(smallerFont);

        Insets margin = new Insets(2, 4, 2, 4);
        leftToRight.setMargin(margin);
        allLeftToRight.setMargin(margin);
        rightToLeft.setMargin(margin);
        allRightToLeft.setMargin(margin);

        GridBagLayout gbl = new GridBagLayout();
        GridBagConstraints gbc = new GridBagConstraints();

        buttonPanel.setLayout(gbl);

        gbc.gridwidth = GridBagConstraints.REMAINDER;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbl.setConstraints(leftToRight, gbc);
        gbl.setConstraints(allLeftToRight, gbc);
        gbl.setConstraints(rightToLeft, gbc);
        gbl.setConstraints(allRightToLeft, gbc);

        buttonPanel.add(leftToRight);
        buttonPanel.add(allLeftToRight);
        buttonPanel.add(rightToLeft);
        buttonPanel.add(allRightToLeft);

        leftToRight.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveLeftToRight();
            }
        });
        allLeftToRight.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveAllLeftToRight();
            }
        });
        rightToLeft.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveRightToLeft();
            }
        });
        allRightToLeft.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                moveAllRightToLeft();
            }
        });

        buttonPanel.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
        // buttonPanel.setBackground( Color.lightGray );
        return buttonPanel;
    }
92307
private Component createImageButton() {

        CssLayout layout = new CssLayout();
        layout.addStyleName(OpenCmsTheme.USER_IMAGE);
        Image userImage = new Image();
        userImage.setSource(
            new ExternalResource(
                OpenCms.getWorkplaceAppManager().getUserIconHelper().getBigIconPath(A_CmsUI.getCmsObject(), m_user)));

        layout.addComponent(userImage);

        if (!CmsAppWorkplaceUi.isOnlineProject() & (m_uploadListener != null)) {
            CmsUploadButton uploadButton = createImageUploadButton(
                null,
                FontOpenCms.UPLOAD_SMALL,
                m_user,
                m_uploadListener);
            layout.addComponent(uploadButton);
            if (CmsUserIconHelper.hasUserImage(m_user)) {
                Button deleteButton = new Button(FontOpenCms.TRASH_SMALL);
                deleteButton.addClickListener(new ClickListener() {

                    private static final long serialVersionUID = 1L;

                    public void buttonClick(ClickEvent event) {

                        OpenCms.getWorkplaceAppManager().getUserIconHelper().deleteUserImage(A_CmsUI.getCmsObject());
                        m_context.updateUserInfo();

                    }
                });
                layout.addComponent(deleteButton);
            }
        }

        return layout;
    }
1317202
public JcString upper() {
		JcString ret = new JcString(null, this,
				new FunctionInstance(FUNCTION.String.UPPER, 1));
		QueryRecorder.recordInvocationConditional(this, "upper", ret);
		return ret;
	}
1302581
protected FormLayout createAliasComponent(String alias, boolean red) {

        FormLayout layout = new FormLayout();
        TextField field = new TextField(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_ALIAS_0));
        field.setWidth("100%");
        field.setValue(alias);
        field.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_ALIAS_HELP_0));
        CheckBox redirect = new CheckBox(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_ALIAS_REDIRECT_0), red);
        redirect.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_ALIAS_REDIRECT_HELP_0));
        layout.addComponent(field);
        layout.addComponent(redirect);
        return layout;
    }
1078947
public static synchronized JFileChooser getFileChooser() { // NOPMD
		if (fileChooser == null) {
			final String currentDirectory = System.getProperty("user.dir");
			fileChooser = new JFileChooser(currentDirectory);
		}
		return fileChooser;
	}
511642
@Override
    public File inputrc() {
        if(inputrc == null) {
            inputrc = new File(System.getProperty("user.home")+Config.getPathSeparator()+".inputrc");
        }
        return inputrc;
    }
440449
public alluxio.grpc.CreateDirectoryPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.CreateDirectoryPOptions.getDefaultInstance() : options_;
  }
1313538
public alluxio.grpc.CreateDirectoryPOptions getOptions() {
    return options_ == null ? alluxio.grpc.CreateDirectoryPOptions.getDefaultInstance() : options_;
  }
1349473
protected CmsSelectBox createSelectBox() {

        CmsSelectBox selectbox = new CmsSelectBox();
        selectbox.setTitle(CmsAliasMode.page.toString(), aliasMessages.pageDescription());
        selectbox.setTitle(CmsAliasMode.redirect.toString(), aliasMessages.redirectDescription());
        selectbox.setTitle(CmsAliasMode.permanentRedirect.toString(), aliasMessages.movedDescription());
        selectbox.addOption(CmsAliasMode.page.toString(), aliasMessages.optionPage());
        selectbox.addOption(CmsAliasMode.redirect.toString(), aliasMessages.optionRedirect());
        selectbox.addOption(CmsAliasMode.permanentRedirect.toString(), aliasMessages.optionMoved());

        selectbox.getElement().getStyle().setWidth(190, Unit.PX);
        selectbox.getElement().getStyle().setMarginRight(5, Unit.PX);
        return selectbox;
    }
664017
public static HLayout createDefaultDock() {
		HLayout windowDock = new HLayout(5);
		windowDock.setHeight(22);
		windowDock.setAutoWidth();
		windowDock.setSnapTo("BL");
		windowDock.setSnapOffsetTop(-0);
		windowDock.setSnapOffsetLeft(0);
		windowDock.setBorder("thin dashed red");
		return windowDock;
	}
653918
public JToolBar createToolBar() {
		// Create the tool bar
		toolBar = new JToolBar();
		toolBar.putClientProperty("jgoodies.headerStyle", "Both");
		toolBar.setRollover(true);
		toolBar.setFloatable(false);

		for (int i = 0; i < beans.length; i++) {
			Icon icon;
			JButton button;

			try {
				final JComponent bean = beans[i];
				URL iconURL = bean.getClass().getResource(
						"images/" + bean.getName() + "Color16.gif");
				icon = new ImageIcon(iconURL);

				button = new JButton(icon);

				ActionListener actionListener = new ActionListener() {
					public void actionPerformed(ActionEvent e) {
						installBean(bean);
					}
				};

				button.addActionListener(actionListener);
			} catch (Exception e) {
				System.out.println("JCalendarDemo.createToolBar(): " + e);
				button = new JButton(beans[i].getName());
			}

			button.setFocusPainted(false);
			toolBar.add(button);
		}

		return toolBar;
	}
578678
private FormLayout initContent() {

        FormLayout form = new FormLayout();
        CmsPathSelectField field = new CmsPathSelectField();
        field.setValue(getInitialTarget(m_context.getCms(), m_context.getResources().get(0)));
        field.setStartWithSitempaView(true);
        field.setResourceFilter(CmsResourceFilter.IGNORE_EXPIRATION.addRequireFolder());
        field.setCaption(CmsVaadinUtils.getMessageText(org.opencms.workplace.commons.Messages.GUI_COPY_MOVE_TARGET_0));
        form.addComponent(field);
        m_targetSelect = field;
        m_copyMode.addItem(CmsContainerPageCopier.CopyMode.automatic);
        m_copyMode.setItemCaption(
            CmsContainerPageCopier.CopyMode.automatic,
            CmsVaadinUtils.getMessageText(Messages.GUI_COPYPAGE_MODE_AUTO_0));

        m_copyMode.addItem(CmsContainerPageCopier.CopyMode.smartCopyAndChangeLocale);
        m_copyMode.setItemCaption(
            CmsContainerPageCopier.CopyMode.smartCopyAndChangeLocale,
            CmsVaadinUtils.getMessageText(Messages.GUI_COPYPAGE_MODE_SMART_0));
        m_copyMode.addItem(CmsContainerPageCopier.CopyMode.reuse);
        m_copyMode.setItemCaption(
            CmsContainerPageCopier.CopyMode.reuse,
            CmsVaadinUtils.getMessageText(Messages.GUI_COPYPAGE_MODE_REUSE_0));
        m_copyMode.setValue(CmsContainerPageCopier.CopyMode.automatic);
        form.addComponent(m_copyMode);
        m_copyMode.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_COPYPAGE_COPY_MODE_0));
        return form;
    }
1168692
private FormLayout initForm() {

        FormLayout form = new FormLayout();
        form.setWidth("100%");

        IndexedContainer sites = CmsVaadinUtils.getAvailableSitesContainer(m_context.getCms(), CAPTION_PROPERTY);
        m_siteComboBox = prepareComboBox(sites, org.opencms.workplace.Messages.GUI_LABEL_SITE_0);
        m_siteComboBox.select(m_context.getCms().getRequestContext().getSiteRoot());
        form.addComponent(m_siteComboBox);
        ValueChangeListener changeListener = new ValueChangeListener() {

            private static final long serialVersionUID = 1L;

            public void valueChange(ValueChangeEvent event) {

                submit();
            }
        };
        m_siteComboBox.addValueChangeListener(changeListener);
        return form;
    }
269055
public alluxio.grpc.CreateFilePOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.CreateFilePOptions.getDefaultInstance() : options_;
  }