Author |
Message |
17/09/2008 17:22:47
|
becherer
Active
Joined: 28/11/2007 18:16:59
Messages: 20
Offline
|
hi there,
i`d like to change the selectioncolor of the fixgridcomponent and the Tree - what steps are necessary to get there(changing style.xml, ...)
thnx!
|
|
|
17/09/2008 17:39:19
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
There are two central client parameters that you can pass to change the colouring of the grid selection:
selectioncolor1
selectioncolro2
E.g. when stargin as web start:
Code:
<application-desc main-class="org.eclnt.client.page.PageWebStart">
<argument>$$codebase</argument>
<argument>faces/workplace/workplace.jsp</argument>
<argument>selectioncolor1=#FF000080</argument>
<argument>selectioncolor1=#00FF0080</argument>
</application-desc>
The selection is specified by the top color (selectioncolor1) and the bottom color (selectioncolor2). In order to let the background shine through it is useful to define some transparency (#rrggbbTT with TT meaning 00 transparent! and FF not transparent!).
Have a look into DevGuide, last pages, to see how to apply client parameter to applet as well.
Shame on us: the two selectioncolor-parameters are not listed in this chapter...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
17/09/2008 17:40:17
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
oops, correct JNLP section is:
Code:
<application-desc main-class="org.eclnt.client.page.PageWebStart">
<argument>$$codebase</argument>
<argument>faces/workplace/workplace.jsp</argument>
<argument>selectioncolor1=#FF000080</argument>
<argument>selectioncolor2=#00FF0080</argument>
</application-desc>
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
17/09/2008 17:49:14
|
becherer
Active
Joined: 28/11/2007 18:16:59
Messages: 20
Offline
|
thnx for your quick reply - ill try
see ya
|
|
|
22/09/2008 17:53:22
|
schmuck
Power User
Joined: 08/04/2008 16:27:16
Messages: 83
Offline
|
Could you please add an property to the fixgrid for the selection coloring?
e.g. like a backgroud property - but only for the selected row.
I just like to change the selection color of only one grid and not all grids of our application.
Thanks,
Michael Schmuck
|
|
|
23/09/2008 08:03:14
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
...yes, this is OK + reasonable! Next update...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|