Class RadioGroupViewer

java.lang.Object
org.eclipse.jface.viewers.Viewer
org.eclipse.jface.viewers.ContentViewer
org.eclipse.jface.viewers.StructuredViewer
org.eclipse.jface.viewers.AbstractListViewer
org.eclipse.nebula.jface.viewer.radiogroup.RadioGroupViewer
All Implemented Interfaces:
org.eclipse.jface.viewers.IInputProvider, org.eclipse.jface.viewers.IInputSelectionProvider, org.eclipse.jface.viewers.IPostSelectionProvider, org.eclipse.jface.viewers.ISelectionProvider

public class RadioGroupViewer
extends org.eclipse.jface.viewers.AbstractListViewer
A concrete viewer based on a Nebula RadioGroup control.

PROVISIONAL: The superclass hierarchy of this viewer is provisional and expected to change. Specifically we plan to change this class to extend a new ItemViewer class in the near future. Therefore clients should avoid using API declared only in AbstractListViewer (however APIs declared in StructuredViewer and its superclasses are safe to use). Unsafe methods are tagged "noreference" in the javadoc.

Since:
3.5
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jface.viewers.StructuredViewer

    org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector, org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollectorWithProviders
  • Field Summary

    Fields inherited from class org.eclipse.jface.viewers.Viewer

    WIDGET_DATA_KEY
  • Constructor Summary

    Constructors 
    Constructor Description
    RadioGroupViewer​(RadioGroup group)
    Creates a radio group viewer on the given RadioGroup control.
    RadioGroupViewer​(org.eclipse.swt.widgets.Composite parent)
    Creates a radio group viewer on a newly-created RadioGroup control under the given parent.
    RadioGroupViewer​(org.eclipse.swt.widgets.Composite parent, int style)
    Creates a radio group viewer on a newly-created RadioGroup control under the given parent.
  • Method Summary

    Modifier and Type Method Description
    void add​(java.lang.Object element)  
    void add​(java.lang.Object[] elements)  
    org.eclipse.swt.widgets.Control getControl()  
    java.lang.Object getElementAt​(int index)  
    RadioGroup getRadioGroup()
    Returns this viewer's RadioGroup control.
    protected int indexForElement​(java.lang.Object element)  
    void insert​(java.lang.Object element, int position)  
    protected void listAdd​(java.lang.String string, int index)  
    protected void listDeselectAll()  
    protected int listGetItemCount()  
    protected int[] listGetSelectionIndices()  
    protected int listGetTopIndex()  
    protected void listRemove​(int index)  
    protected void listRemoveAll()  
    protected void listSetItem​(int index, java.lang.String string)  
    protected void listSetItems​(java.lang.String[] labels)  
    protected void listSetSelection​(int[] ixs)  
    protected void listSetTopIndex​(int index)  
    protected void listShowSelection()  
    void remove​(java.lang.Object element)  
    void remove​(java.lang.Object[] elements)  
    void reveal​(java.lang.Object element)  

    Methods inherited from class org.eclipse.jface.viewers.AbstractListViewer

    doFindInputItem, doFindItem, doUpdateItem, getLabelProvider, getSelectionFromWidget, inputChanged, internalRefresh, setLabelProvider, setSelectionToWidget

    Methods inherited from class org.eclipse.jface.viewers.StructuredViewer

    addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertContentProviderType, assertElementsNotNull, associate, buildLabel, disassociate, equals, filter, findItem, findItems, fireDoubleClick, fireOpen, firePostSelectionChanged, getColorAndFontCollector, getComparator, getComparer, getFilteredChildren, getFilters, getItem, getRawChildren, getRoot, getSelection, getSortedChildren, getSorter, getStructuredSelection, handleDispose, handleDoubleSelect, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, hookControl, internalRefresh, internalUpdate, mapElement, needsRefilter, preservingSelection, refresh, refresh, refresh, refresh, refreshItem, removeDoubleClickListener, removeFilter, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparator, setComparer, setContentProvider, setFilters, setInput, setSelection, setSelectionToWidget, setSorter, setUseHashlookup, testFindItem, testFindItems, unmapAllElements, unmapElement, unmapElement, update, update, updateItem, updateSelection, usingElementMap

    Methods inherited from class org.eclipse.jface.viewers.ContentViewer

    getContentProvider, getInput, labelProviderChanged

    Methods inherited from class org.eclipse.jface.viewers.Viewer

    addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider

    addSelectionChangedListener, removeSelectionChangedListener, setSelection
  • Constructor Details

    • RadioGroupViewer

      public RadioGroupViewer​(org.eclipse.swt.widgets.Composite parent)
      Creates a radio group viewer on a newly-created RadioGroup control under the given parent. The viewer has no input, no content provider, a default label provider, no sorter, and no filters.
      Parameters:
      parent - the parent control
    • RadioGroupViewer

      public RadioGroupViewer​(org.eclipse.swt.widgets.Composite parent, int style)
      Creates a radio group viewer on a newly-created RadioGroup control under the given parent. The radio group control is created using the given style bits. The viewer has no input, no content provider, a default label provider, no sorter, and no filters.
      Parameters:
      parent - the parent control
      style - SWT style bits
    • RadioGroupViewer

      public RadioGroupViewer​(RadioGroup group)
      Creates a radio group viewer on the given RadioGroup control. The viewer has no input, no content provider, a default label provider, no sorter, and no filters.
      Parameters:
      group - the RadioGroup control
  • Method Details

    • add

      public void add​(java.lang.Object element)
      Overrides:
      add in class org.eclipse.jface.viewers.AbstractListViewer
    • add

      public void add​(java.lang.Object[] elements)
      Overrides:
      add in class org.eclipse.jface.viewers.AbstractListViewer
    • getControl

      public org.eclipse.swt.widgets.Control getControl()
      Specified by:
      getControl in class org.eclipse.jface.viewers.Viewer
      See Also:
      Viewer.getControl()
    • getElementAt

      public java.lang.Object getElementAt​(int index)
      Overrides:
      getElementAt in class org.eclipse.jface.viewers.AbstractListViewer
    • getRadioGroup

      public RadioGroup getRadioGroup()
      Returns this viewer's RadioGroup control.
      Returns:
      the RadioGroup control
    • indexForElement

      protected int indexForElement​(java.lang.Object element)
      Overrides:
      indexForElement in class org.eclipse.jface.viewers.AbstractListViewer
    • insert

      public void insert​(java.lang.Object element, int position)
      Overrides:
      insert in class org.eclipse.jface.viewers.AbstractListViewer
    • listAdd

      protected void listAdd​(java.lang.String string, int index)
      Specified by:
      listAdd in class org.eclipse.jface.viewers.AbstractListViewer
    • listDeselectAll

      protected void listDeselectAll()
      Specified by:
      listDeselectAll in class org.eclipse.jface.viewers.AbstractListViewer
    • listGetItemCount

      protected int listGetItemCount()
      Specified by:
      listGetItemCount in class org.eclipse.jface.viewers.AbstractListViewer
    • listGetSelectionIndices

      protected int[] listGetSelectionIndices()
      Specified by:
      listGetSelectionIndices in class org.eclipse.jface.viewers.AbstractListViewer
    • listGetTopIndex

      protected int listGetTopIndex()
      Overrides:
      listGetTopIndex in class org.eclipse.jface.viewers.AbstractListViewer
    • listRemove

      protected void listRemove​(int index)
      Specified by:
      listRemove in class org.eclipse.jface.viewers.AbstractListViewer
    • listRemoveAll

      protected void listRemoveAll()
      Specified by:
      listRemoveAll in class org.eclipse.jface.viewers.AbstractListViewer
    • listSetItem

      protected void listSetItem​(int index, java.lang.String string)
      Specified by:
      listSetItem in class org.eclipse.jface.viewers.AbstractListViewer
    • listSetItems

      protected void listSetItems​(java.lang.String[] labels)
      Specified by:
      listSetItems in class org.eclipse.jface.viewers.AbstractListViewer
    • listSetSelection

      protected void listSetSelection​(int[] ixs)
      Specified by:
      listSetSelection in class org.eclipse.jface.viewers.AbstractListViewer
    • listSetTopIndex

      protected void listSetTopIndex​(int index)
      Overrides:
      listSetTopIndex in class org.eclipse.jface.viewers.AbstractListViewer
    • listShowSelection

      protected void listShowSelection()
      Specified by:
      listShowSelection in class org.eclipse.jface.viewers.AbstractListViewer
    • remove

      public void remove​(java.lang.Object element)
      Overrides:
      remove in class org.eclipse.jface.viewers.AbstractListViewer
    • remove

      public void remove​(java.lang.Object[] elements)
      Overrides:
      remove in class org.eclipse.jface.viewers.AbstractListViewer
    • reveal

      public void reveal​(java.lang.Object element)
      Specified by:
      reveal in class org.eclipse.jface.viewers.StructuredViewer