Class FileRow
- 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.
-
-
Field Summary
-
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty
-
-
Constructor Summary
Constructors Constructor Description FileRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, java.lang.String pLabel, boolean pDirectory)File row constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbrowse()Method called when the button browse is clicked.protected voiddoOpenFileSelectionDialog()Open the File selection dialog.java.lang.StringgetValue()Get or calculate the value of this property.voidsetValue(java.lang.String pValue)Set a new value to the row.-
Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
addBrowseSelectionListener, createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisible
-
-
-
-
Constructor Detail
-
FileRow
public FileRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, java.lang.String pLabel, boolean pDirectory)File row constructor.- Parameters:
pParent- composite parent of the row.pProperty- property name used in field changing event.pLabel- label to print on the left of the row.pDirectory- iftrue, the field is a directory path, otherwise the field is a file path.
-
-
Method Detail
-
browse
protected void browse()
Method called when the button browse is clicked.
-
doOpenFileSelectionDialog
protected void doOpenFileSelectionDialog()
Open the File selection dialog.
-
getValue
public java.lang.String getValue()
Get or calculate the value of this property.- Specified by:
getValuein classLabeledRow- Returns:
- the property value
-
setValue
public void setValue(java.lang.String pValue)
Set a new value to the row.- Parameters:
pValue- the new value
-
-