Custom styles for trees

2007-12-12 Thread Loren Cole
I'd like to remove the folder and page icons from a LinkTree and I'm not
entirely sure how to go about it.

As far as I can tell I need to create a LinkIconPanel instead and then add a
blank image component to it...  Or is there some way I can reference the
image and set it's visible flag?

Why isn't this all done in css? or is it and I'm just missing something...

Many thanks for any help,
-
Loren


Re: Custom styles for trees

2007-12-12 Thread Loren Cole
Ah! thank you.

I apologize if I'm resurrecting a dead horse, but why isn't this done with
css?

I saw some discussion about it from last summer, but the last comment in the
thread suggested that the status quo was easy enough.  My unasked for two
cents is any thing you can do to isolate look and feel from code is a good
thing, and overriding a css class to get this effect is more intuitive than
overriding a method in the super class.  Are there any plans to change this?

-
Loren

On Dec 12, 2007 3:28 PM, Matej Knopp [EMAIL PROTECTED] wrote:

 You need to override the getImageResourceReference method of
 LabelIconPanel (or LinkIconPanel). Look at the default implementation
 in LabelIconPanel.

 -Matej

 On Dec 12, 2007 9:27 PM, Loren Cole [EMAIL PROTECTED] wrote:
  I'd like to remove the folder and page icons from a LinkTree and I'm not
  entirely sure how to go about it.
 
  As far as I can tell I need to create a LinkIconPanel instead and then
 add a
  blank image component to it...  Or is there some way I can reference the
  image and set it's visible flag?
 
  Why isn't this all done in css? or is it and I'm just missing
 something...
 
  Many thanks for any help,
  -
  Loren
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Custom styles for trees

2007-12-12 Thread Peter Ertl

You could submit a suggestion on jira...

After all this is open source :-)

Am 12.12.2007 um 23:39 schrieb Loren Cole:


Ah! thank you.

I apologize if I'm resurrecting a dead horse, but why isn't this  
done with

css?

I saw some discussion about it from last summer, but the last  
comment in the
thread suggested that the status quo was easy enough.  My unasked  
for two
cents is any thing you can do to isolate look and feel from code is  
a good
thing, and overriding a css class to get this effect is more  
intuitive than
overriding a method in the super class.  Are there any plans to  
change this?


-
Loren

On Dec 12, 2007 3:28 PM, Matej Knopp [EMAIL PROTECTED] wrote:


You need to override the getImageResourceReference method of
LabelIconPanel (or LinkIconPanel). Look at the default implementation
in LabelIconPanel.

-Matej

On Dec 12, 2007 9:27 PM, Loren Cole [EMAIL PROTECTED] wrote:
I'd like to remove the folder and page icons from a LinkTree and  
I'm not

entirely sure how to go about it.

As far as I can tell I need to create a LinkIconPanel instead and  
then

add a
blank image component to it...  Or is there some way I can  
reference the

image and set it's visible flag?

Why isn't this all done in css? or is it and I'm just missing

something...


Many thanks for any help,
-
Loren



-
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]



Re: Custom styles for trees

2007-12-12 Thread Matej Knopp
Hi

There are no plans to do this. If you want to control this using CSS
just develop your own alternative to LinkIconPanel, it shouldn't be
difficult. The reason why there are images resource used to specify
the icon is that it's easier to control this from code while using CSS
would be IMHO too losely coupled. This might seem to be an overkill
for couple of icons, but if you have e.g. filesystem browser with
various icon for each file type I think the more strict control over
the icons makes sense.

Anyway, as i said, if you want to have this controlled by CSS it is
also possible. With custom node panel.

-Matej

On Dec 12, 2007 11:39 PM, Loren Cole [EMAIL PROTECTED] wrote:
 Ah! thank you.

 I apologize if I'm resurrecting a dead horse, but why isn't this done with
 css?

 I saw some discussion about it from last summer, but the last comment in the
 thread suggested that the status quo was easy enough.  My unasked for two
 cents is any thing you can do to isolate look and feel from code is a good
 thing, and overriding a css class to get this effect is more intuitive than
 overriding a method in the super class.  Are there any plans to change this?

 -
 Loren


 On Dec 12, 2007 3:28 PM, Matej Knopp [EMAIL PROTECTED] wrote:

  You need to override the getImageResourceReference method of
  LabelIconPanel (or LinkIconPanel). Look at the default implementation
  in LabelIconPanel.
 
  -Matej
 
  On Dec 12, 2007 9:27 PM, Loren Cole [EMAIL PROTECTED] wrote:
   I'd like to remove the folder and page icons from a LinkTree and I'm not
   entirely sure how to go about it.
  
   As far as I can tell I need to create a LinkIconPanel instead and then
  add a
   blank image component to it...  Or is there some way I can reference the
   image and set it's visible flag?
  
   Why isn't this all done in css? or is it and I'm just missing
  something...
  
   Many thanks for any help,
   -
   Loren
  
 
  -
  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]