Package docking.widgets.fieldpanel.support

# Class FieldSelectionHelper

java.lang.Object
docking.widgets.fieldpanel.support.FieldSelectionHelper

public class FieldSelectionHelper extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FieldSelectionHelper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `getAllSelectedText(FieldSelection selection, FieldPanel panel)`
  Returns the text within the given selection.
  `static String`
  `getFieldSelectionText(FieldSelection selection, FieldPanel panel)`
  Gets the selected text that pertains to an individual field.
  `static boolean`
  `isStringSelection(FieldSelection selection)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FieldSelectionHelper

    public FieldSelectionHelper()

- ## Method Details

  - ### isStringSelection

    public static boolean isStringSelection(FieldSelection selection)

  - ### getFieldSelectionText

    public static String getFieldSelectionText(FieldSelection selection, FieldPanel panel)
    Gets the selected text that pertains to an individual field. Null is returned if the given selection spans more than one field.
    Parameters:
      `selection` - the selection
      `panel` - the field panel
    Returns:
      the text

  - ### getAllSelectedText

    public static String getAllSelectedText(FieldSelection selection, FieldPanel panel)
    Returns the text within the given selection.
    Parameters:
      `selection` - the selection
      `panel` - the field panel
    Returns:
      the text