aspose file tools*
The moose likes Java Micro Edition and the fly likes colspan TableItem j2MEPOlish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "colspan TableItem j2MEPOlish" Watch "colspan TableItem j2MEPOlish" New topic
Author

colspan TableItem j2MEPOlish

kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59
How to use colspan in .css file to merge five columns, j2MEPOlish.?

Regards,
kumar
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
The colspan attribute is part of HTML code (use in th, td tags). You can't use CSS.
kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59
Thans for your reply,

In the TableItem document of j2MEPolish i saw the style colspan,

How can i use?

please help me
kumar
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
I haven't used J2MEPolish, but I assume you refer to the same thing described in this J2ME Polish TableItem Documentation.

It appears that you can give one or more CSS attributes (described on the TableItem documentation page) to a markup class or id. These styles would then be applied to the table cells with the same markup class or id.

I looked into the API and found the colspan attribute described in the de.enough.polish.ui.FakeCustomItem class.

colspan: when this item is embedded in a table, you can span it over several cells, e.g. colspan: 2;.


In terms of table cells the colspan integer describes how many cells, in the horizontal direction, the styled cell would span.



[Thumbnail for TableItem.png]

kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59
Thank you very much!!

I tried like this.



In Css, I want to merge these 3 cells into one, so,




but its not works.

please help me?
kumar

Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
Your CSS doesn't look right: You're missing the dot "." in front of your classes.

I also notice the min/max values are numbers, but I don't know, do you need to specify "px" or "%" after them?

You should review J2ME Polish Topics: GUI Concepts and CSS Basics.
kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59

Thanks for your reply,

Your CSS doesn't look right: You're missing the dot "." in front of your classes.


I did my css file right by insert '.' before class name, and also value but it doesn't work.

please provide me example of colspan..? what is problem in my code..?

correct it and post here.

kumar.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
Are you storing the CSS and other related files in a "resources" directory of your project?

Is the resources directory registered with your project, and can your project read files from the resource directory?

Looking through J2me polish online documentation they use both dot and non dot styles, So I'm not sure when to use the dot now, but here is what I was thinking regarding style:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: colspan TableItem j2MEPOlish