-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DistanceFromAllTimeHighColumn: Add tooltip with info about ATH #4225
Conversation
pfalcon
commented
Sep 13, 2024
Discussion about ColumnWithOptionLabelProvider: #4224 |
27fcfb4
to
3b112ed
Compare
…ith option Existing OptionLabelProvider provides overloaded methods like getText() which take additional "option" param. However, it supports only subset of methods, e.g. it doesn't support tooltips via getToolTipText(), etc. ColumnWithOptionLabelProvider takes another approach - instead of "pushing" option value via overloaded method signatures, it offers a "pull" approach of calling getOption() method within any of existing methods, thus supporting tooltips, etc. (Underlying implementation is that reference to concrete TableColumn is still pushed down a specific OptionLabelProvider instance).
Show tooltip with absolute value of ATH and its date. To support tooltip, switch to ColumnWithOptionLabelProvider.
3b112ed
to
2a2a8a4
Compare
|
||
public void setTableColumn(TableColumn tableColumn) | ||
{ | ||
this.tableColumn = tableColumn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a nice idea. It will simplify. I just wonder if we should throw an exception if the tableColumn is already set. Then developers get an obvious hint if they re-use label provider (instead of using the factory method).
Anyway, will merge when I am back at my development machine.
merged. |