Class TextRow
java.lang.Object
org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
org.libreoffice.ide.eclipse.core.gui.rows.TextRow
- All Implemented Interfaces:
EventListener,org.eclipse.swt.events.FocusListener,org.eclipse.swt.events.KeyListener,org.eclipse.swt.internal.SWTEventListener
- Direct Known Subclasses:
TypeRow
public class TextRow
extends LabeledRow
implements org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.KeyListener
GUI row for a text input. It supports only the Grid Layout and can be extended to manage more complex texts.
-
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfocusGained(org.eclipse.swt.events.FocusEvent event) voidfocusLost(org.eclipse.swt.events.FocusEvent event) getValue()Get or calculate the value of this property.voidkeyPressed(org.eclipse.swt.events.KeyEvent event) voidkeyReleased(org.eclipse.swt.events.KeyEvent event) voidsetFocus()Sets the focus on the row.voidSet the value of 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 Details
-
TextRow
Create a new text row.- Parameters:
parent- the parent composite where to create the rowproperty- the property name of the row's valuelabel- the label of the row
-
-
Method Details
-
focusGained
public void focusGained(org.eclipse.swt.events.FocusEvent event) - Specified by:
focusGainedin interfaceorg.eclipse.swt.events.FocusListener
-
focusLost
public void focusLost(org.eclipse.swt.events.FocusEvent event) - Specified by:
focusLostin interfaceorg.eclipse.swt.events.FocusListener
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent event) - Specified by:
keyPressedin interfaceorg.eclipse.swt.events.KeyListener
-
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent event) - Specified by:
keyReleasedin interfaceorg.eclipse.swt.events.KeyListener
-
getValue
Get or calculate the value of this property.- Specified by:
getValuein classLabeledRow- Returns:
- the property value
-
setValue
Set the value of the row.- Parameters:
pValue- the value to set
-
setFocus
public void setFocus()Sets the focus on the row.
-