You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by "Kunze, Anton" <a....@s2neueinformatik.de> on 2007/01/16 09:54:37 UTC

tree and navigationTree: change node image (character) and mark selected entry

Hello,

I'm using the trinidad tree and navigation tree components and I have to
customize the look and usability. How can I change the node character
(triangle) or replace with an image?
How can I mark a selected entry with a given background color?

Best regards 



Re: tree and navigationTree: change node image (character) and mark selected entry

Posted by Renzo Tomaselli <re...@tecnotp.it>.
Anton, I tried the same.  
For question n. 1 I concluded that actually it's not possible. Class
TreeRenderer  seems to  be waiting for further refinement  (see empty methods
such as getIconBackgroundIcon).  
For the second question: this is what I did for customizing node styles
(removing underlining from links and changing hovering):  
  
.p_OraTreeRow A:link {  
    text-decoration: none;  
}  
.p_OraTreeRow A:hover {  
    font-weight: bold;  
}  
  
You can apply furthe restyling. I know that these should be "private"
selectors, but they are the only possible customizations for trees I could
find from sources.  
  
\-- Renzo  
  
Kunze, Anton wrote:

>
>     Hello,
>  
>     I'm using the trinidad tree and navigation tree components and I have to
>     customize the look and usability. How can I change the node character
>     (triangle) or replace with an image?
>     How can I mark a selected entry with a given background color?
>  
>     Best regards
>  
>  
>  
>  
>  


Re: Master detail drop down lists

Posted by Duong BaTien <du...@gmail.com>.
Hi:

I am looking for the best suggested implementations of master/detail
drop down lists (countries -> regions) in 1 or 2 month time frame that
may be re-used under jsf 1.2. Any suggestion?

Could some body give me links to email archives of myfaces and trinidad
so i can do some search.

Thanks.
  


Re: tree and navigationTree: change node image (character) and mark selected entry

Posted by Matthias Wessendorf <ma...@apache.org>.
Anton,

using FireBug is good so check what kind of styles are rendered

with

.p_OraTreeRowSelected a:visited
{
  color:#000000;
  text-decoration:underline;
}

.p_OraTreeDisclosedSymbol {
  font-family:Arial,Helvetica,Geneva,sans-serif;
  font-size:40pt;
  font-weight:normal;
  text-align:right;
}


I was able to make them black, underline and big (40pt)

HTH,
Matthias

On 1/16/07, Matthias Wessendorf <ma...@apache.org> wrote:
> there are some private style like
>
> .p_OraTreeDisclosedSymbol
>
> -M
>
> On 1/16/07, Kunze, Anton <a....@s2neueinformatik.de> wrote:
> > Hello,
> >
> > I'm using the trinidad tree and navigation tree components and I have to
> > customize the look and usability. How can I change the node character
> > (triangle) or replace with an image?
> > How can I mark a selected entry with a given background color?
> >
> > Best regards
> >
> >
> >
>
>
> --
> Matthias Wessendorf
> http://tinyurl.com/fmywh
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: tree and navigationTree: change node image (character) and mark selected entry

Posted by Matthias Wessendorf <ma...@apache.org>.
there are some private style like

.p_OraTreeDisclosedSymbol

-M

On 1/16/07, Kunze, Anton <a....@s2neueinformatik.de> wrote:
> Hello,
>
> I'm using the trinidad tree and navigation tree components and I have to
> customize the look and usability. How can I change the node character
> (triangle) or replace with an image?
> How can I mark a selected entry with a given background color?
>
> Best regards
>
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com