Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented Sep 13, 2024

Show tooltip with absolute value of ATH and its date. To support tooltip,
switch to ColumnWithOptionLabelProvider.

@pfalcon
Copy link
Contributor Author

pfalcon commented Sep 13, 2024

Discussion about ColumnWithOptionLabelProvider: #4224

…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.
@pfalcon
Copy link
Contributor Author

pfalcon commented Sep 14, 2024

Discussion about ColumnWithOptionLabelProvider: #4224

Switched name to ParameterizableColumnLabelProvider per "discussion" in #4226


public void setTableColumn(TableColumn tableColumn)
{
this.tableColumn = tableColumn;
Copy link
Member

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.

@buchen
Copy link
Member

buchen commented Sep 21, 2024

merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants