Package com._1c.g5.lwt.viewers
Class LightListViewer<T>
- java.lang.Object
-
- com._1c.g5.lwt.viewers.AbstractLightViewer<T>
-
- com._1c.g5.lwt.viewers.LightListViewer<T>
-
- Type Parameters:
T
- - type of items in list.
- All Implemented Interfaces:
ISelectionChangedListener<T>
,org.eclipse.jface.viewers.ISelectionProvider
public class LightListViewer<T> extends AbstractLightViewer<T>
Implementation ofAbstractLightViewer
forLightList
.
-
-
Constructor Summary
Constructors Constructor Description LightListViewer(ILightComposite parent)
Constructor.LightListViewer(ILightComposite parent, int textLocation, int imageLocation)
Constuctor.LightListViewer(ILightComposite parent, int textLocation, int imageLocation, int listStyle)
Constuctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LightList<T>
getControl()
Returns viewers control.String
getRenewJobName()
Returns renew job name.org.eclipse.jface.viewers.ISelection
getSelection()
void
renew()
Recalculates viewed control elements and renews it.void
setRenewJobName(String renewJobName)
Sets list renew job name.void
setSelection(org.eclipse.jface.viewers.ISelection selection)
-
Methods inherited from class com._1c.g5.lwt.viewers.AbstractLightViewer
addFilter, addSelectionChangedListener, clearFilters, getContentProvider, getFilteredElements, getFilters, getImageLocation, getInput, getLabelProvider, getSorter, getTextLocation, isPreserveSelection, removeFilter, removeSelectionChangedListener, selectionChanged, setContentProvider, setInput, setLabelProvider, setPreserveSelection, setSorter
-
-
-
-
Constructor Detail
-
LightListViewer
public LightListViewer(ILightComposite parent)
Constructor. Constructed list items placed in the center and image on the left.- Parameters:
parent
- - list parent. Cannot benull
.
-
LightListViewer
public LightListViewer(ILightComposite parent, int textLocation, int imageLocation)
Constuctor.- Parameters:
parent
- - list parent. Cannot benull
.textLocation
- - list text location. Can beSWT.LEFT
,SWT.CENTER
, orSWT.RIGHT
imageLocation
- - list image location. Can beSWT.LEFT
orSWT.RIGHT
- See Also:
SWT.CENTER
,SWT.RIGHT
,SWT.LEFT
,AbstractLightItem.setTextLocation(int)
,AbstractLightItem.setImageLocation(int)
-
LightListViewer
public LightListViewer(ILightComposite parent, int textLocation, int imageLocation, int listStyle)
Constuctor.- Parameters:
parent
- - list parent. Cannot benull
.textLocation
- - list text location. Can beSWT.LEFT
,SWT.CENTER
, orSWT.RIGHT
imageLocation
- - list image location. Can beSWT.LEFT
orSWT.RIGHT
listStyle
- - list style.- See Also:
SWT.CENTER
,SWT.RIGHT
,SWT.LEFT
,AbstractLightItem.setTextLocation(int)
,AbstractLightItem.setImageLocation(int)
,SWT.VERTICAL
,SWT.HORIZONTAL
,SWT.NONE
,SWT.SINGLE
,SWT.MULTI
,LightList
-
-
Method Detail
-
getControl
public LightList<T> getControl()
Description copied from class:AbstractLightViewer
Returns viewers control.- Overrides:
getControl
in classAbstractLightViewer<T>
- Returns:
- viewers control. Cannot return
null
.
-
getSelection
public org.eclipse.jface.viewers.ISelection getSelection()
-
setSelection
public void setSelection(org.eclipse.jface.viewers.ISelection selection)
-
renew
public void renew()
Description copied from class:AbstractLightViewer
Recalculates viewed control elements and renews it.- Specified by:
renew
in classAbstractLightViewer<T>
-
setRenewJobName
public void setRenewJobName(String renewJobName)
Sets list renew job name.- Parameters:
renewJobName
- - job name that will be shown on list renew. If given value isnull
default job name will be shown.
-
getRenewJobName
public String getRenewJobName()
Returns renew job name.- Returns:
- job name that will be shown on list renew.
Returned
null
means that there is default job name.
-
-