please look at the code, they are called gethref() and getlabel() and return exactly what you put into the constructor
-igor On 10/2/07, Chris Colman <[EMAIL PROTECTED]> wrote: > > > i added the missing getters, update from trunk and you should be good. > > Thanks Igor, but what are they called? getUrl(), getDisplay()? > > Actually the display text is more valuable because it doesn't have the > http:// prefix so I can do a simple null or blank text whereas the URL > will always have a http:// in front of it making a trivial test not > possible. > > > > > -igor > > > > > > On 10/2/07, Chris Colman <[EMAIL PROTECTED]> wrote: > > > > > > I have content that I render that may or may not have a URL > associated > > > with it. I don't want to display anything if the URL is blank. > > > > > > I use ExternalLink for the URLs. As I place a reference to the link > in > > > my markup I need to instantiate an ExternalLink object in the > > > corresponding page/panel classes using an anonymous class with > > > overridden isVisible method: > > > > > > add( > > > new ExternalLink("externallink", > > > "http://" + content.getUrl(), > > > contentList.getUrl()) > > > { > > > public boolean isVisible() > > > { > > > WHAT DO I TEST FOR HERE TO CHECK IF A NON > NULL > > > AND > > > NON BLANK URL WAS PROVIDED BY > > > content.getUrl()? return > what?; > > > } > > > } > > > ); > > > > > > I don't know what attribute or method to text to access the URL that > is > > > configured by the ExternalLink constructor. If it's stored as a > string I > > > basically want to go return true if (url != null && url.length() > > 0) > > > but after handing the URL onto the contructor I don't know how to > get it > > > back to test it. > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >