java.lang.Object
org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
org.libreoffice.ide.eclipse.core.gui.rows.FileRow

public class FileRow extends LabeledRow
GUI row for a file selection. It supports only the Grid Layout and can be configured to select either a file or a directory.
  • Constructor Details

    • FileRow

      public FileRow(org.eclipse.swt.widgets.Composite pParent, String property, String label, boolean directory)
      File row constructor.
      Parameters:
      pParent - composite parent of the row.
      property - property name used in field changing event.
      label - label to print on the left of the row.
      directory - if true, the field is a directory path, otherwise the field is a file path.
  • Method Details

    • browse

      protected void browse()
      Method called when the button browse is clicked.
    • doOpenFileSelectionDialog

      protected void doOpenFileSelectionDialog()
      Open the File selection dialog.
    • getValue

      public String getValue()
      Get or calculate the value of this property.
      Specified by:
      getValue in class LabeledRow
      Returns:
      the property value
    • setValue

      public void setValue(String pValue)
      Set a new value to the row.
      Parameters:
      pValue - the new value