public class EclipseUiUtils
extends java.lang.Object
Constructor and Description |
---|
EclipseUiUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
clear(org.eclipse.swt.widgets.Composite composite)
Dispose all children of a Composite
|
static org.eclipse.swt.widgets.Text |
createGridLL(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
java.lang.String text)
Creates one label and a text field not editable with background colour of the
parent (like a label but with selectable text)
|
static org.eclipse.swt.widgets.Text |
createGridLP(org.eclipse.swt.widgets.Composite parent,
java.lang.String label)
Create a label and a text field with password display for a grid layout, the
text field grabbing excess horizontal
|
static org.eclipse.swt.widgets.Text |
createGridLP(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
org.eclipse.swt.events.ModifyListener modifyListener)
Create a label and a text field with password display for a grid layout, the
text field grabbing excess horizontal.
|
static org.eclipse.swt.widgets.Text |
createGridLT(org.eclipse.swt.widgets.Composite parent,
java.lang.String label)
Create a label and a text field for a grid layout, the text field grabbing
excess horizontal
|
static org.eclipse.swt.widgets.Text |
createGridLT(org.eclipse.swt.widgets.Composite parent,
java.lang.String label,
org.eclipse.swt.events.ModifyListener modifyListener)
Create a label and a text field for a grid layout, the text field grabbing
excess horizontal
|
static org.eclipse.swt.layout.GridData |
fillAll() |
static org.eclipse.swt.layout.GridData |
fillAll(int colSpan,
int rowSpan) |
static org.eclipse.swt.layout.FormData |
fillFormData()
Creates a basic form data that is attached to the 4 corners of the parent
composite
|
static org.eclipse.swt.layout.GridData |
fillWidth() |
static org.eclipse.swt.layout.GridData |
fillWidth(int colSpan) |
static org.eclipse.swt.graphics.Font |
getBoldFont(org.eclipse.swt.widgets.Composite parent)
Shortcut to retrieve default bold font from display
|
static org.eclipse.swt.graphics.Font |
getBoldItalicFont(org.eclipse.swt.widgets.Composite parent)
Shortcut to retrieve default bold italic font from display
|
static org.eclipse.swt.graphics.Font |
getItalicFont(org.eclipse.swt.widgets.Composite parent)
Shortcut to retrieve default italic font from display
|
static org.eclipse.swt.layout.GridData |
grabWidth(int horizontalAlignment,
int verticalAlignment) |
static boolean |
isEmpty(java.lang.String stringToTest)
Simply checks if a string is null or empty
|
static void |
layout(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Control... toUpdateControls)
Enables efficient call to the layout method of a composite, refreshing only
some of the children controls.
|
static org.eclipse.swt.layout.GridLayout |
noSpaceGridLayout() |
static org.eclipse.swt.layout.GridLayout |
noSpaceGridLayout(org.eclipse.swt.layout.GridLayout layout) |
static org.eclipse.swt.layout.GridLayout |
noSpaceGridLayout(int columns) |
static boolean |
notEmpty(java.lang.String stringToTest)
Simply checks if a string is not null nor empty
|
public static void clear(org.eclipse.swt.widgets.Composite composite)
public static void layout(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control... toUpdateControls)
public static org.eclipse.swt.graphics.Font getItalicFont(org.eclipse.swt.widgets.Composite parent)
public static org.eclipse.swt.graphics.Font getBoldFont(org.eclipse.swt.widgets.Composite parent)
public static org.eclipse.swt.graphics.Font getBoldItalicFont(org.eclipse.swt.widgets.Composite parent)
public static org.eclipse.swt.layout.GridLayout noSpaceGridLayout()
public static org.eclipse.swt.layout.GridLayout noSpaceGridLayout(int columns)
public static org.eclipse.swt.layout.GridLayout noSpaceGridLayout(org.eclipse.swt.layout.GridLayout layout)
public static org.eclipse.swt.layout.GridData fillWidth()
public static org.eclipse.swt.layout.GridData fillWidth(int colSpan)
public static org.eclipse.swt.layout.GridData fillAll()
public static org.eclipse.swt.layout.GridData fillAll(int colSpan, int rowSpan)
public static org.eclipse.swt.layout.GridData grabWidth(int horizontalAlignment, int verticalAlignment)
public static org.eclipse.swt.layout.FormData fillFormData()
public static org.eclipse.swt.widgets.Text createGridLT(org.eclipse.swt.widgets.Composite parent, java.lang.String label, org.eclipse.swt.events.ModifyListener modifyListener)
parent
- the parent compositelabel
- the label to displaymodifyListener
- a ModifyListener
to listen on events on the text, can be
nullpublic static org.eclipse.swt.widgets.Text createGridLT(org.eclipse.swt.widgets.Composite parent, java.lang.String label)
public static org.eclipse.swt.widgets.Text createGridLL(org.eclipse.swt.widgets.Composite parent, java.lang.String label, java.lang.String text)
public static org.eclipse.swt.widgets.Text createGridLP(org.eclipse.swt.widgets.Composite parent, java.lang.String label)
public static org.eclipse.swt.widgets.Text createGridLP(org.eclipse.swt.widgets.Composite parent, java.lang.String label, org.eclipse.swt.events.ModifyListener modifyListener)
public static boolean notEmpty(java.lang.String stringToTest)
public static boolean isEmpty(java.lang.String stringToTest)
Copyright © 2007–2020. All rights reserved.