return new GridData(horizontalAlignment, horizontalAlignment, false, true);
}
+ /*
+ * ROW LAYOUT
+ */
public static RowData rowData16px() {
return new RowData(16, 16);
}
* FORM LAYOUT
*/
- public static FormData coversAll() {
+ public static FormData coverAll() {
FormData fdLabel = new FormData();
fdLabel.top = new FormAttachment(0, 0);
fdLabel.left = new FormAttachment(0, 0);
}
// IMAGES
+ public static String img(Node fileNode, String width, String height) {
+ return img(null, fileNode, width, height);
+ }
+
+ public static String img(String serverBase, Node fileNode, String width, String height) {
+ String src = (serverBase != null ? serverBase : "") + NodeUtils.getDataPath(fileNode);
+ return imgBuilder(src, width, height).append("/>").toString();
+ }
+
public static String img(String src, String width, String height) {
return imgBuilder(src, width, height).append("/>").toString();
}