Package com.e1c.g5.v8.dt.mw.ui
Class MovementConstructorStyledLabelProvider
- java.lang.Object
-
- com.e1c.g5.v8.dt.mw.ui.MovementConstructorStyledLabelProvider
-
- All Implemented Interfaces:
DelegatingStyledCellLabelProvider.IStyledLabelProvider
,IBaseLabelProvider
public class MovementConstructorStyledLabelProvider extends Object implements DelegatingStyledCellLabelProvider.IStyledLabelProvider
Class - label provider for the tree in movements constructor. It is responsible for displaying the icon and the name.
-
-
Constructor Summary
Constructors Constructor Description MovementConstructorStyledLabelProvider(SearchBox searchBox)
Create label provider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(ILabelProviderListener listener)
void
addStyleForString(StyledString styledName)
Add style for styled stringStyledString
addTabularSection(Object element)
Add tabular section to label textvoid
dispose()
org.eclipse.swt.graphics.Image
getImage(Object element)
StyledString
getStyledText(Object element)
String
getText(Object element)
Returns tree item nameboolean
isLabelProperty(Object element, String property)
void
removeListener(ILabelProviderListener listener)
-
-
-
Constructor Detail
-
MovementConstructorStyledLabelProvider
public MovementConstructorStyledLabelProvider(SearchBox searchBox)
Create label provider- Parameters:
searchBox
- - searchbox for highlighting filtered text , may benull
-
-
Method Detail
-
getStyledText
public StyledString getStyledText(Object element)
- Specified by:
getStyledText
in interfaceDelegatingStyledCellLabelProvider.IStyledLabelProvider
-
getText
public String getText(Object element)
Returns tree item name- Parameters:
element
- - tree item , cannot benull
- Returns:
- - name by element, cannot be
null
-
addTabularSection
public StyledString addTabularSection(Object element)
Add tabular section to label text- Parameters:
element
- - tree item, cannot benull
- Returns:
- - tabular section, cannot be
null
-
addStyleForString
public void addStyleForString(StyledString styledName)
Add style for styled string- Parameters:
styledName
- - styled string , cannot benull
-
getImage
public org.eclipse.swt.graphics.Image getImage(Object element)
- Specified by:
getImage
in interfaceDelegatingStyledCellLabelProvider.IStyledLabelProvider
-
addListener
public void addListener(ILabelProviderListener listener)
- Specified by:
addListener
in interfaceIBaseLabelProvider
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceIBaseLabelProvider
-
isLabelProperty
public boolean isLabelProperty(Object element, String property)
- Specified by:
isLabelProperty
in interfaceIBaseLabelProvider
-
removeListener
public void removeListener(ILabelProviderListener listener)
- Specified by:
removeListener
in interfaceIBaseLabelProvider
-
-