[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
SelectionColor of a FixGrid  XML
Forum Index -> Development
Author Message
becherer

Active
[Avatar]

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!
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
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
becherer

Active
[Avatar]

Joined: 28/11/2007 18:16:59
Messages: 20
Offline

thnx for your quick reply - ill try

see ya

schmuck

Power User
[Avatar]

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

[ICQ]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...yes, this is OK + reasonable! Next update...
Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team