|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.gui.rows.LabeledRow
org.openoffice.ide.eclipse.core.gui.rows.FileRow
public class FileRow
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.openoffice.ide.eclipse.core.gui.rows.LabeledRow |
---|
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty |
Constructor Summary | |
---|---|
FileRow(org.eclipse.swt.widgets.Composite pParent,
java.lang.String pProperty,
java.lang.String pLabel,
boolean pDirectory)
File row constructor. |
Method Summary | |
---|---|
protected void |
browse()
Method called when the button browse is clicked. |
protected void |
doOpenFileSelectionDialog()
Open the File selection dialog. |
java.lang.String |
getValue()
Get or calculate the value of this property. |
void |
setValue(java.lang.String pValue)
Set a new value to the row. |
Methods inherited from class org.openoffice.ide.eclipse.core.gui.rows.LabeledRow |
---|
createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, java.lang.String pLabel, boolean pDirectory)
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
- if true
, the field is a directory path,
otherwise the field is a file path.Method Detail |
---|
protected void browse()
protected void doOpenFileSelectionDialog()
public java.lang.String getValue()
getValue
in class LabeledRow
public void setValue(java.lang.String pValue)
pValue
- the new value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |