0

How to disable border for bandbox in java

asked 2009-09-04 10:57:55 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

I have been able to hide the border for bandbox using the following style in zul file:

<style>
.z-bandbox .z-bandbox-inp{
	border-style : none; 
	background: #FFF
}
</style>

But, I can't specify the same through java code.
I can specify multiple attributes using style as follows:

component.setStyle("border-style : none;	background: #FFF");

Its default to .z-bandbox class. But, how can I specify for .z-bandbox-inp?

Otherway, can I possible to specify attributes for multiple classes in a single style statement. Such as below:

component.setStyle(".z-bandbox .z-bandbox-inp{border-style : none;	background: #FFF}");

Thanks.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-09-04 12:01:58 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

updated 2009-09-04 12:04:29 +0800

I have solved this, by declaring the style in the main zul page and referring my bandbox style in the java code as follows:

component.setStyle("mybandbox");

If there any other better way of doing this, then please post here.

Thanks.

link publish delete flag offensive edit

answered 2009-09-04 21:38:34 +0800

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

please show all the whole code what you set in the main zul.
<style .myband... />

link publish delete flag offensive edit

answered 2009-09-07 05:35:34 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

Hi terrytornado, this is the code, I have used :

<style>
	.mybandbox .z-bandbox .z-bandbox-inp { border-style : none; background: #FFF }
</style>

Thanks.

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-09-04 10:57:55 +0800

Seen: 165 times

Last updated: Sep 07 '09

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