Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "E4/CSS/SWT Mapping"
Line 17: | Line 17: | ||
<td>background-image</td> | <td>background-image</td> | ||
<td>Button { background-image: <i>some url</i> }</td> | <td>Button { background-image: <i>some url</i> }</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>control</td> | ||
+ | <td></td> | ||
+ | <td>border-color</td> | ||
+ | <td>Button { border-color: ##FF0000 }</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>control</td> | ||
+ | <td></td> | ||
+ | <td>border-width</td> | ||
+ | <td>Button { border-width: 3 }</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>control</td> | ||
+ | <td></td> | ||
+ | <td>border-style</td> | ||
+ | <td>Button { border-style: dotted }</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>control</td> | ||
+ | <td>setCurosr(Cursor)</td> | ||
+ | <td>cursor</td> | ||
+ | <td>Shell { cursor:crosshair }</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>control</td> | ||
+ | <td>setFont(Font)</td> | ||
+ | <td>font-style<br> | ||
+ | font-size<br> | ||
+ | font-weight<br> | ||
+ | font-family</td> | ||
+ | <td>Label { cursor:crosshair }</td> | ||
</tr> | </tr> | ||
</table> | </table> |
Revision as of 14:45, 25 February 2009
SWT Widgets | SWT Method | CSS Property Name | CSS Example |
---|---|---|---|
control | setBackground(Color) | background-color | Button { background-color: #FF0000 } |
control | setBackgroundImage(Image) | background-image | Button { background-image: some url } |
control | border-color | Button { border-color: ##FF0000 } | |
control | border-width | Button { border-width: 3 } | |
control | border-style | Button { border-style: dotted } | |
control | setCurosr(Cursor) | cursor | Shell { cursor:crosshair } |
control | setFont(Font) | font-style font-size |
Label { cursor:crosshair } |