Package com._1c.g5.v8.dt.ui.validation
Class ChecksViewerControl
- java.lang.Object
- 
- com._1c.g5.v8.dt.ui.validation.ChecksViewerControl
 
- 
 public abstract class ChecksViewerControl extends Object Base control class for vewing/selecting validation cheks,
- 
- 
Constructor SummaryConstructors Constructor Description ChecksViewerControl(ChecksViewerProvider checksViewerProvider)Creates a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateAdditionalControls(org.eclipse.swt.widgets.Composite parent)Creates additional controls at the end of the contents.protected voidcreateHeader(org.eclipse.swt.widgets.Composite parent)Creates header part of the controlObject[]getCheckedElements()Returns a list of checked elements in this viewer's tree, including currently hidden ones that are marked as checked but are under a collapsed ancestor.ChecksViewerProvidergetChecksViewerProvider()Returns check viewer providerorg.eclipse.swt.widgets.ControlgetControl(org.eclipse.swt.widgets.Composite parent)Provides the control with contents.org.eclipse.core.databinding.observable.value.WritableValue<com._1c.g5.v8.dt.internal.ui.validation.ChecksTreeProvider.ChecksTreeNode>getSelectedCheckObjects()Returns writable selected check objectsbooleanisDirty()Returns the dirty statebooleanisTreeViewerInitialized()Indicates that check tree viewer is created.voidrefresh()Refreshes this viewer starting with the given element.voidrefresh(Object element, boolean updateLabels)Refreshes this viewer starting with the given element.voidsetDirty(boolean dirty)Sets the dirty statevoidsetSelection(ISelection selection)Sets a new selection for this viewer and optionally makes it visible.voidsetTreeChecked(boolean checked)Sets check state for all elements.protected voidupdateIdHighlight()Updates highlights
 
- 
- 
- 
Constructor Detail- 
ChecksViewerControlpublic ChecksViewerControl(ChecksViewerProvider checksViewerProvider) Creates a new instance.- Parameters:
- checksViewerProvider- Cheks viewer provider, cannot be- null
 
 
- 
 - 
Method Detail- 
isTreeViewerInitializedpublic boolean isTreeViewerInitialized() Indicates that check tree viewer is created.- Returns:
- trueif tree viewer is initialized
 
 - 
setSelectionpublic void setSelection(ISelection selection) Sets a new selection for this viewer and optionally makes it visible.- Parameters:
- selection- the new selection, can be- null
- See Also:
- Viewer.setSelection(ISelection)
 
 - 
setTreeCheckedpublic void setTreeChecked(boolean checked) Sets check state for all elements.- Parameters:
- checked- checked
- See Also:
- ChecksTreeViewer.setTreeChecked(boolean)
 
 - 
refreshpublic void refresh() Refreshes this viewer starting with the given element.- See Also:
- Viewer.refresh()
 
 - 
refreshpublic void refresh(Object element, boolean updateLabels) Refreshes this viewer starting with the given element. Labels are updated as described inrefresh(boolean updateLabels).- Parameters:
- element- the element, never- null
- updateLabels-- trueto update labels for existing elements,- falseto only update labels as needed, assuming that labels for existing elements are unchanged.
- See Also:
- ColumnViewer.refresh(Object, boolean)
 
 - 
setDirtypublic void setDirty(boolean dirty) Sets the dirty state- Parameters:
- dirty- the dirty to set
- See Also:
- ChecksTreeViewer.setDirty(boolean)
 
 - 
isDirtypublic boolean isDirty() Returns the dirty state- Returns:
- the dirty
- See Also:
- ChecksTreeViewer.isDirty()
 
 - 
getCheckedElementspublic Object[] getCheckedElements() Returns a list of checked elements in this viewer's tree, including currently hidden ones that are marked as checked but are under a collapsed ancestor.- Returns:
- the array of checked elements, never null
- See Also:
- CheckboxTreeViewer.getCheckedElements()
 
 - 
getChecksViewerProviderpublic ChecksViewerProvider getChecksViewerProvider() Returns check viewer provider- Returns:
- ChecksViewerProvider, never- null
 
 - 
getSelectedCheckObjectspublic org.eclipse.core.databinding.observable.value.WritableValue<com._1c.g5.v8.dt.internal.ui.validation.ChecksTreeProvider.ChecksTreeNode> getSelectedCheckObjects() Returns writable selected check objects- Returns:
- selected check objects, never null
 
 - 
getControlpublic org.eclipse.swt.widgets.Control getControl(org.eclipse.swt.widgets.Composite parent) Provides the control with contents.- Parameters:
- parent- the parent composite, cannot be- null
- Returns:
- Control, never- null
 
 - 
createHeaderprotected void createHeader(org.eclipse.swt.widgets.Composite parent) Creates header part of the control- Parameters:
- parent- the parent composite, cannot be- null
 
 - 
updateIdHighlightprotected void updateIdHighlight() Updates highlights
 - 
createAdditionalControlsprotected void createAdditionalControls(org.eclipse.swt.widgets.Composite parent) Creates additional controls at the end of the contents.- Parameters:
- parent- the parent composite, cannot be- null
 
 
- 
 
-