Class ValueComboChooserViewer
- java.lang.Object
-
- org.eclipse.jface.viewers.Viewer
-
- org.eclipse.jface.viewers.ContentViewer
-
- org.eclipse.jface.viewers.StructuredViewer
-
- org.eclipse.jface.viewers.AbstractListViewer
-
- com._1c.g5.v8.dt.common.ui.controls.ValueComboChooserViewer
-
- All Implemented Interfaces:
IInputProvider
,IInputSelectionProvider
,IPostSelectionProvider
,ISelectionProvider
- Direct Known Subclasses:
AutoCompleteValueComboChooserViewer
public class ValueComboChooserViewer extends AbstractListViewer
Viewer lifecycle addition to theValueComboChooser
.
Consumes domain model via associated content provider and converts it to elements of the combo via associated label provider (including both text decorations and text)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.StructuredViewer
StructuredViewer.ColorAndFontCollector, StructuredViewer.ColorAndFontCollectorWithProviders
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
-
-
Constructor Summary
Constructors Constructor Description ValueComboChooserViewer(ValueComboChooser chooser)
Creates a new instance of the viewer with the given chooser instance.ValueComboChooserViewer(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit, int maxDecorationWidth, int style)
Creates an instance of the viewer with controls adapted via FormToolkit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertElementsNotNull(Object... elements)
TODO docValueComboChooser
getControl()
}void
insert(Object element, int position)
protected void
listAdd(String string, int index)
}protected void
listDeselectAll()
}protected int
listGetItemCount()
}protected int[]
listGetSelectionIndices()
}protected void
listRemove(int index)
}protected void
listRemoveAll()
}protected void
listSetItem(int index, String label)
}protected void
listSetItems(String[] labels)
}protected void
listSetSelection(int[] ixs)
}protected void
listShowSelection()
}void
reveal(Object element)
}-
Methods inherited from class org.eclipse.jface.viewers.AbstractListViewer
add, add, doFindInputItem, doFindItem, doUpdateItem, getElementAt, getLabelProvider, getSelectionFromWidget, indexForElement, inputChanged, internalRefresh, listGetTopIndex, listSetTopIndex, remove, remove, setLabelProvider, setSelectionToWidget
-
Methods inherited from class org.eclipse.jface.viewers.StructuredViewer
addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertContentProviderType, 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 Detail
-
ValueComboChooserViewer
public ValueComboChooserViewer(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit, int maxDecorationWidth, int style)
Creates an instance of the viewer with controls adapted via FormToolkit.- Parameters:
parent
- The parent composite.toolkit
- The reference to the toolkit context.maxDecorationWidth
- Maximum width of the decoration shown in the content area.style
- The produced control style modification flags.
-
ValueComboChooserViewer
public ValueComboChooserViewer(ValueComboChooser chooser)
Creates a new instance of the viewer with the given chooser instance.- Parameters:
chooser
- theValueComboChooser
-
-
Method Detail
-
getControl
public ValueComboChooser getControl()
}- Specified by:
getControl
in classViewer
-
listAdd
protected void listAdd(String string, int index)
}- Specified by:
listAdd
in classAbstractListViewer
-
insert
public void insert(Object element, int position)
- Overrides:
insert
in classAbstractListViewer
-
listSetItem
protected void listSetItem(int index, String label)
}- Specified by:
listSetItem
in classAbstractListViewer
-
listGetSelectionIndices
protected int[] listGetSelectionIndices()
}- Specified by:
listGetSelectionIndices
in classAbstractListViewer
-
listGetItemCount
protected int listGetItemCount()
}- Specified by:
listGetItemCount
in classAbstractListViewer
-
listSetItems
protected void listSetItems(String[] labels)
}- Specified by:
listSetItems
in classAbstractListViewer
-
listRemoveAll
protected void listRemoveAll()
}- Specified by:
listRemoveAll
in classAbstractListViewer
-
listRemove
protected void listRemove(int index)
}- Specified by:
listRemove
in classAbstractListViewer
-
listSetSelection
protected void listSetSelection(int[] ixs)
}- Specified by:
listSetSelection
in classAbstractListViewer
-
listShowSelection
protected void listShowSelection()
}- Specified by:
listShowSelection
in classAbstractListViewer
-
listDeselectAll
protected void listDeselectAll()
}- Specified by:
listDeselectAll
in classAbstractListViewer
-
reveal
public void reveal(Object element)
}- Specified by:
reveal
in classStructuredViewer
-
assertElementsNotNull
protected void assertElementsNotNull(Object... elements)
TODO doc- Overrides:
assertElementsNotNull
in classStructuredViewer
-
-