public static interface RepresentationTextCreator.RepresentationTextProvider2
Modifier and Type | Method and Description |
---|---|
boolean |
accept(BaseElement element)
Check if this provider must be used to create a representation text for given element
|
SmartListenerConfig |
createSmartListenerConfig(Element element,
boolean browserConfiguration)
Returns representation text smart listener config for this provider.
|
default java.lang.String |
getRepresentedText(BaseElement element,
boolean addColor,
boolean fullSignature,
boolean addId)
|
default java.lang.String |
getRepresentedText(BaseElement element,
boolean addColor,
boolean fullSignature,
boolean addId,
LocationInTool locationInTool)
Returns representation text for a given Element.
|
@Deprecated default java.lang.String getRepresentedText(BaseElement element, boolean addColor, boolean fullSignature, boolean addId)
element
- element which representation text will be created.addColor
- if true requester allows to add color information into returned text (for example some grayed out text)fullSignature
- expand typed elements type or not in representation text (browser has such option)addId
- add id(number) of the elementdefault java.lang.String getRepresentedText(BaseElement element, boolean addColor, boolean fullSignature, boolean addId, LocationInTool locationInTool)
element
- element which representation text will be created.addColor
- if true requester allows to add color information into returned text (for example some grayed out text)fullSignature
- expand typed elements type or not in representation text (browser has such option)addId
- add id(number) of the elementlocationInTool
- location in tool where text should be represented. Text providers can take into account that information and provide a different text.SmartListenerConfig createSmartListenerConfig(Element element, boolean browserConfiguration)
element
- element which representation text will be created.browserConfiguration
- if true this config will be used in browserboolean accept(BaseElement element)
element
- given element