public class ConnectUiUtils
extends java.lang.Object
Constructor and Description |
---|
ConnectUiUtils() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.swt.widgets.Label |
addEmptyLine(org.eclipse.swt.widgets.Composite parent,
int height,
int colSpan)
simply add an empty line in a grid data to give some air
|
static org.eclipse.swt.widgets.Label |
createBoldLabel(org.eclipse.swt.widgets.Composite parent,
org.argeo.cms.Localized localized) |
static org.eclipse.swt.widgets.Label |
createBoldLabel(org.eclipse.swt.widgets.Composite parent,
java.lang.String value)
Creates a basic right-aligned vertical-centered bold label with no specific
toolkit.
|
static org.eclipse.swt.widgets.Label |
createBoldLabel(org.eclipse.swt.widgets.Composite parent,
java.lang.String value,
int verticalAlign)
Creates a basic right aligned bold label with no specific toolkit.
|
static org.eclipse.swt.widgets.Label |
createBoldLabel(java.lang.Object toolkit,
org.eclipse.swt.widgets.Composite parent,
java.lang.String value)
Creates the basic right aligned bold label that is used in various forms
using a pre-defined toolkit.
|
static org.eclipse.swt.widgets.Button |
createDeleteButton(org.eclipse.swt.widgets.Composite parent)
Shortcut to create a delete button that will be used in composites that
display a multi value property in tag-like manner
|
static org.eclipse.swt.layout.FormData |
createformData(int left,
int top,
int right,
int bottom)
Shortcut to quickly get a FormData object with configured FormAttachment
|
static org.eclipse.swt.widgets.Text |
createGDText(java.lang.Object toolkit,
org.eclipse.swt.widgets.Composite parent,
java.lang.String msg,
java.lang.String toolTip,
int width,
int colSpan)
Deprecated.
|
static org.eclipse.swt.widgets.Text |
createRDText(java.lang.Object toolkit,
org.eclipse.swt.widgets.Composite parent,
java.lang.String msg,
java.lang.String toolTip,
int width)
Creates a text widget with RowData already set
|
static java.lang.String |
getRwtCompliantString(Node node,
java.lang.String propName)
Calls
ConnectJcrUtils.get(Node node, String propName) method and
replace any '&' by its html encoding '&' to avoid
IllegalArgumentException while rendering html read only snippets |
static boolean |
isNumbers(java.lang.String content)
Dispose all control children of this composite.
|
static org.eclipse.swt.layout.GridLayout |
noSpaceGridLayout(int nbOfCol)
Shortcut to create a
GridLayout with the given column number with no
margin and no spacing (default are normally 5 px). |
static java.lang.String |
refreshTextWidgetValue(org.eclipse.swt.widgets.Text text,
Node entity,
java.lang.String propName)
Shortcut to refresh the value of a
Text given a Node and a
property Name |
static java.lang.String |
replaceAmpersandforSWTLink(java.lang.String value)
Cleans a String by replacing any '&' by its HTML encoding ' ' to insure
they are displayed in SWT.Link controls
|
static void |
setSwitchingFormData(org.eclipse.swt.widgets.Composite composite)
shortcut to set form data while dealing with switching panel
|
static void |
setTableDefaultStyle(org.eclipse.swt.widgets.Table table,
int customItemHeight) |
static void |
setTableDefaultStyle(org.eclipse.jface.viewers.TableViewer viewer,
int customItemHeight) |
public static org.eclipse.swt.widgets.Label addEmptyLine(org.eclipse.swt.widgets.Composite parent, int height, int colSpan)
public static java.lang.String getRwtCompliantString(Node node, java.lang.String propName)
ConnectJcrUtils.get(Node node, String propName)
method and
replace any '&' by its html encoding '&' to avoid
IllegalArgumentException
while rendering html read only snippetspublic static boolean isNumbers(java.lang.String content)
parent
- public static org.eclipse.swt.layout.GridLayout noSpaceGridLayout(int nbOfCol)
GridLayout
with the given column number with no
margin and no spacing (default are normally 5 px). makeColumnsEqualWidth
parameter is set to false.public static java.lang.String refreshTextWidgetValue(org.eclipse.swt.widgets.Text text, Node entity, java.lang.String propName)
Text
given a Node and a
property Namepublic static java.lang.String replaceAmpersandforSWTLink(java.lang.String value)
public static org.eclipse.swt.widgets.Label createBoldLabel(org.eclipse.swt.widgets.Composite parent, java.lang.String value)
public static org.eclipse.swt.widgets.Label createBoldLabel(org.eclipse.swt.widgets.Composite parent, org.argeo.cms.Localized localized)
public static org.eclipse.swt.widgets.Label createBoldLabel(org.eclipse.swt.widgets.Composite parent, java.lang.String value, int verticalAlign)
public static org.eclipse.swt.widgets.Button createDeleteButton(org.eclipse.swt.widgets.Composite parent)
public static org.eclipse.swt.widgets.Text createRDText(java.lang.Object toolkit, org.eclipse.swt.widgets.Composite parent, java.lang.String msg, java.lang.String toolTip, int width)
public static org.eclipse.swt.widgets.Label createBoldLabel(java.lang.Object toolkit, org.eclipse.swt.widgets.Composite parent, java.lang.String value)
@Deprecated public static org.eclipse.swt.widgets.Text createGDText(java.lang.Object toolkit, org.eclipse.swt.widgets.Composite parent, java.lang.String msg, java.lang.String toolTip, int width, int colSpan)
toolkit
- parent
- msg
- toolTip
- width
- colSpan
- public static void setTableDefaultStyle(org.eclipse.swt.widgets.Table table, int customItemHeight)
public static void setTableDefaultStyle(org.eclipse.jface.viewers.TableViewer viewer, int customItemHeight)
public static void setSwitchingFormData(org.eclipse.swt.widgets.Composite composite)
public static org.eclipse.swt.layout.FormData createformData(int left, int top, int right, int bottom)
left
- top
- right
- bottom
- Copyright © 2007–2020. All rights reserved.