Class TextRow
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
-
- org.libreoffice.ide.eclipse.core.gui.rows.TextRow
-
- All Implemented Interfaces:
java.util.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 Constructor Description TextRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, java.lang.String pLabel)Create a new text row.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfocusGained(org.eclipse.swt.events.FocusEvent pEvent)voidfocusLost(org.eclipse.swt.events.FocusEvent pEvent)java.lang.StringgetValue()Get or calculate the value of this property.voidkeyPressed(org.eclipse.swt.events.KeyEvent pEvent)voidkeyReleased(org.eclipse.swt.events.KeyEvent pEvent)voidsetFocus()Sets the focus on the row.voidsetValue(java.lang.String pValue)Set 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 Detail
-
TextRow
public TextRow(org.eclipse.swt.widgets.Composite pParent, java.lang.String pProperty, java.lang.String pLabel)Create a new text row.- Parameters:
pParent- the parent composite where to create the rowpProperty- the property name of the row's valuepLabel- the label of the row
-
-
Method Detail
-
focusGained
public void focusGained(org.eclipse.swt.events.FocusEvent pEvent)
- Specified by:
focusGainedin interfaceorg.eclipse.swt.events.FocusListener
-
focusLost
public void focusLost(org.eclipse.swt.events.FocusEvent pEvent)
- Specified by:
focusLostin interfaceorg.eclipse.swt.events.FocusListener
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent pEvent)
- Specified by:
keyPressedin interfaceorg.eclipse.swt.events.KeyListener
-
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent pEvent)
- Specified by:
keyReleasedin interfaceorg.eclipse.swt.events.KeyListener
-
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 the value of the row.- Parameters:
pValue- the value to set
-
setFocus
public void setFocus()
Sets the focus on the row.
-
-