Bug 206069 - Should use CSS style to specify widget styles.
Summary: Should use CSS style to specify widget styles.
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Jimmy Mohsin CLA
QA Contact:
URL:
Whiteboard: core_framework
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-11 13:50 EDT by Sheldon Lee-Loy CLA
Modified: 2012-01-03 13:53 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sheldon Lee-Loy CLA 2007-10-11 13:50:19 EDT
It would be nice to use CSS style syntax to specify styles in the widgetstyles.xml file.

Dojo has a nice CSS selector utility that lets one select a style based on css syntax: http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/selecting-dom-nodes-dojo-query

Therefore, we can define styles in the wigetStyle.xml file as follows:

<styles>
	<style name="properties navigator">
		<properties>
			<property name="handler"
				value="&quot;nav.json&quot;" />
			<property name="publish"
				value="[&quot;properties&quot;,&quot;detail&quot;]" />
			<property name="type" value="&quot;cosmos.widget.Navigator&quot;"/>
		</properties>
	</style>
</styles>

As a result we can define styles that apply to specific UI gadgets.  For example, the above sample shows that we can define a navigator widget that is associated with the properties page section.
Comment 1 Sheldon Lee-Loy CLA 2008-09-10 09:28:34 EDT
Changing owner to martin as he is the DV lead.