Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "E4/CSS/SWT Mapping"

< E4‎ | CSS
Line 7: Line 7:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td>setBackground(Color)</td>
 
<td>setBackground(Color)</td>
 
<td>background-color</td>
 
<td>background-color</td>
Line 13: Line 13:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td>setBackgroundImage(Image)</td>
 
<td>setBackgroundImage(Image)</td>
 
<td>background-image</td>
 
<td>background-image</td>
Line 19: Line 19:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td></td>
 
<td></td>
 
<td>border-color</td>
 
<td>border-color</td>
Line 25: Line 25:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td></td>
 
<td></td>
 
<td>border-width</td>
 
<td>border-width</td>
Line 31: Line 31:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td></td>
 
<td></td>
 
<td>border-style</td>
 
<td>border-style</td>
Line 37: Line 37:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td>setCurosr(Cursor)</td>
 
<td>setCurosr(Cursor)</td>
 
<td>cursor</td>
 
<td>cursor</td>
Line 43: Line 43:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td>setFont(Font)</td>
 
<td>setFont(Font)</td>
 
<td>font-style<br>
 
<td>font-style<br>
Line 55: Line 55:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td>control</td>
+
<td>any control</td>
 
<td>setForeground(Color)</td>
 
<td>setForeground(Color)</td>
 
<td>color</td>
 
<td>color</td>

Revision as of 15:26, 25 February 2009

SWT Widgets SWT Method CSS Property Name CSS Example
any control setBackground(Color) background-color Button { background-color: #FF0000 }
any control setBackgroundImage(Image) background-image Button { background-image: some url }
any control border-color Button { border-color: ##FF0000; }
any control border-width Button { border-width: 3 }
any control border-style Button { border-style: dotted }
any control setCurosr(Cursor) cursor Shell { cursor:crosshair }
any control setFont(Font) font-style

font-size
font-weight

font-family
Label { font-style: italic;

          font-size: 12;
          font-weight: bold;

          font-family: "Terminal"; }
any control setForeground(Color) color Button { color: #FF0000 }
CTabFolder setBorderVisible(Boolean) borderVisible CTabFolder { borderVisible: true }
CTabFolder setMaximized(Boolean) maximized CTabFolder { maximized: true }
CTabFolder setMinimized(Boolean) minimized CTabFolder { minimized: true }
CTabFolder setMaximizeVisible(Boolean) maximizeVisible CTabFolder { maximizeVisible: true }
CTabFolder setMinimizeVisible(Boolean) minimizeVisible CTabFolder { minimizeVisible: true }
CTabFolder setMRUVisible(Boolean) mruVisible CTabFolder { mruVisible: true }
CTabFolder setShowClose(Boolean) showClose CTabFolder { showClose: true }
CTabFolder setSimple(Boolean) simple CTabFolder { simple: true }
CTabFolder setSingle(Boolean) single CTabFolder { single: true }
CTabFolder setUnselectedCloseVisible(Boolean) unselectedCloseVisible CTabFolder { unselectedCloseVisible: true }
CTabFolder setUnselectedImageVisible(Boolean) unselectedImageVisible CTabFolder { unselectedImageVisible: true }

Copyright © Eclipse Foundation, Inc. All Rights Reserved.