Package com._1c.g5.v8.dt.common.ui.text
Interface IAtLineProcessStrategy
-
public interface IAtLineProcessStrategy
Main interface for all line process algorithms.- See Also:
AtPainter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canProcess(AtLineInfo info)
Tells if strategy can process thisAtLineInfo
element.String
process(org.eclipse.swt.custom.StyledText textWidget, AtLineInfo info)
GetsStyledText
andAtLineInfo
, then uses algorithm to return text, which needs to be shown.
-
-
-
Method Detail
-
process
String process(org.eclipse.swt.custom.StyledText textWidget, AtLineInfo info)
GetsStyledText
andAtLineInfo
, then uses algorithm to return text, which needs to be shown.- Parameters:
textWidget
- - StyledText widget, can't benull
.info
- - number of line, can't benull
.- Returns:
- processed String, can't return
null
. - Throws:
IllegalArgumentException
- if any of arguments are null
-
canProcess
boolean canProcess(AtLineInfo info)
Tells if strategy can process thisAtLineInfo
element.- Parameters:
info
- - element to process. Can benull
- Returns:
- true if can process.
-
-