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.
See Also:
  • Constructor Details

    • TextRow

      public TextRow(org.eclipse.swt.widgets.Composite parent, String property, String label)
      Create a new text row.
      Parameters:
      parent - the parent composite where to create the row
      property - the property name of the row's value
      label - the label of the row
  • Method Details

    • focusGained

      public void focusGained(org.eclipse.swt.events.FocusEvent event)
      Specified by:
      focusGained in interface org.eclipse.swt.events.FocusListener
    • focusLost

      public void focusLost(org.eclipse.swt.events.FocusEvent event)
      Specified by:
      focusLost in interface org.eclipse.swt.events.FocusListener
    • keyPressed

      public void keyPressed(org.eclipse.swt.events.KeyEvent event)
      Specified by:
      keyPressed in interface org.eclipse.swt.events.KeyListener
    • keyReleased

      public void keyReleased(org.eclipse.swt.events.KeyEvent event)
      Specified by:
      keyReleased in interface org.eclipse.swt.events.KeyListener
    • 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 the value of the row.
      Parameters:
      pValue - the value to set
    • setFocus

      public void setFocus()
      Sets the focus on the row.