public class FormUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SHORT_DATE_FORMAT |
Modifier and Type | Method and Description |
---|---|
static void |
addCanonicalDoubleClickListener(org.eclipse.jface.viewers.TableViewer v)
Add a double click listener on tables that display a JCR node list
|
static void |
addCompulsoryDecoration(org.eclipse.swt.widgets.Label label) |
static org.eclipse.jface.fieldassist.ControlDecoration |
addDecoration(org.eclipse.swt.widgets.Text text) |
static org.eclipse.swt.graphics.Image |
getDecorationImage(java.lang.String image) |
static java.lang.String |
getMailLink(java.lang.String value)
Creates the read-only HTML snippet to display in a label with styling
enabled in order to provide a click-able mail
|
static java.lang.String |
getMailLink(java.lang.String value,
java.lang.String label)
Creates the read-only HTML snippet to display in a label with styling
enabled in order to provide a click-able mail
|
static java.lang.String |
getPhoneLink(java.lang.String value)
Creates the read-only HTML snippet to display in a label with styling
enabled in order to provide a click-able phone number
|
static java.lang.String |
getPhoneLink(java.lang.String value,
java.lang.String label)
Creates the read-only HTML snippet to display in a label with styling
enabled in order to provide a click-able phone number
|
static java.lang.String |
getUrlLink(java.lang.String value)
Creates the read-only HTML snippet to display in a label with styling
enabled in order to provide a click-able link
|
static java.lang.String |
getUrlLink(java.lang.String value,
java.lang.String label)
Creates the read-only HTML snippet to display in a label with styling
enabled in order to provide a click-able link
|
static java.util.Calendar |
parseDate(java.text.DateFormat dateFormat,
java.lang.String calStr)
Best effort to convert a String to a calendar.
|
static void |
refreshDecoration(org.eclipse.swt.widgets.Text text,
org.eclipse.jface.fieldassist.ControlDecoration deco,
boolean isValid,
boolean clean) |
static java.lang.String |
replaceAmpersand(java.lang.String value)
Cleans a String by replacing any '&' by its HTML encoding '&' to
avoid
SAXParseException while rendering HTML with RWT |
public static final java.lang.String DEFAULT_SHORT_DATE_FORMAT
public static java.util.Calendar parseDate(java.text.DateFormat dateFormat, java.lang.String calStr)
public static void addCanonicalDoubleClickListener(org.eclipse.jface.viewers.TableViewer v)
public static org.eclipse.jface.fieldassist.ControlDecoration addDecoration(org.eclipse.swt.widgets.Text text)
public static void refreshDecoration(org.eclipse.swt.widgets.Text text, org.eclipse.jface.fieldassist.ControlDecoration deco, boolean isValid, boolean clean)
public static org.eclipse.swt.graphics.Image getDecorationImage(java.lang.String image)
public static void addCompulsoryDecoration(org.eclipse.swt.widgets.Label label)
public static java.lang.String getPhoneLink(java.lang.String value)
public static java.lang.String getPhoneLink(java.lang.String value, java.lang.String label)
value
- label
- a potentially distinct labelpublic static java.lang.String getMailLink(java.lang.String value)
public static java.lang.String getMailLink(java.lang.String value, java.lang.String label)
value
- label
- a potentially distinct labelpublic static java.lang.String getUrlLink(java.lang.String value)
public static java.lang.String getUrlLink(java.lang.String value, java.lang.String label)
public static java.lang.String replaceAmpersand(java.lang.String value)
SAXParseException
while rendering HTML with RWTCopyright © 2007–2020. All rights reserved.