poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <apa...@gagravarr.org>
Subject Re: Hyperlink() special case
Date Fri, 30 Nov 2018 07:51:26 GMT
On Thu, 29 Nov 2018, Greg Woolsey wrote:
> The first argument to the function is the target URL, the second argument
> is optional display text.
> The current implementation returns the display text, if present, as the
> function value.  This is correct, as that's the value displayed, but if you
> want to actually implement a link, one needs the URL argument also.

I'd lean towards one of:
  * ThreadLocal that the hyperlink function checks (with helpful setter and
    clearer on it) to toggle between returning the text or link
  * setter on FormulaEvaluator that lets you toggle, then pass that
    somehow to the hyperlink function
  * subclass of FormulaEvaluator with extra evaluateCell method that
    returns the link, plus similar to above way to pass flag to function


To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org

View raw message