0

Change richlets style

asked 2009-11-18 05:11:57 +0800

Shonof gravatar image Shonof
12 1

I want to add a style to all buttons i create. The problem is that i work with richlets and not with zul.
I tried this guide, but i can't let it work with richlets.
http://www.zkoss.org/smalltalks/lookafeel/look-css.html

Atm i change my button style with:

button.setStyle("background-color: red;");

this does work, but i want my own default button style. So when i create 400 button, i don't have to use
button.setStyle("background-color: red;");
400 times.

I hope someone can help me.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-11-18 08:07:05 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-11-18 08:07:37 +0800

only a hint.

You can create your own MyButton class extends org.zkoss.zul.Button .
In there you can set your style like you need. So you must do a refactoring on all Buttons to MyButtons.

best
Stephan

link publish delete flag offensive edit

answered 2009-11-18 08:14:07 +0800

gyowanny gravatar image gyowanny
283 1 2 6

Or you can create your own css style.
Take a look on the css style guide from Zkoss: http://docs.zkoss.org/wiki/Style_Guide

Cheers

Gyo

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-11-18 05:11:57 +0800

Seen: 444 times

Last updated: Nov 18 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More