public class FormInput<C extends org.eclipse.swt.widgets.Control> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FormInput.Position
enumeration of available positioning elements
|
static class |
FormInput.Widget
enumeration of the contained widgets
|
| Constructor and Description |
|---|
FormInput(org.eclipse.swt.widgets.Label label,
C input)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
C |
getInput()
getter for the input
|
org.eclipse.swt.layout.FormData |
getInputFD()
getter for the inputFD
|
org.eclipse.swt.widgets.Label |
getLabel()
getter for the label
|
org.eclipse.swt.layout.FormData |
getLabelFD()
getter for the labelFD
|
String |
getText(FormInput.Widget widget)
getter for the widget text
|
void |
setInput(C input)
setter for the input
|
void |
setInputFD(org.eclipse.swt.layout.FormData inputFD)
setter for the inputFD
|
void |
setLabel(org.eclipse.swt.widgets.Label label)
setter for the label
|
void |
setLabelFD(org.eclipse.swt.layout.FormData labelFD)
setter for the labelFD
|
void |
setPosition(org.eclipse.swt.widgets.Control control,
int offset,
FormInput.Widget widget,
FormInput.Position side)
setter for the element position
|
void |
setPosition(org.eclipse.swt.layout.FormAttachment position,
FormInput.Widget widget,
FormInput.Position side)
setter for the element position
|
void |
setPosition(int numerator,
int offset,
FormInput.Widget widget,
FormInput.Position side)
setter for the element position
|
void |
setText(String text,
FormInput.Widget widget)
setter for the widget text
|
void |
setToolTip(String text,
FormInput.Widget widget)
setter for the tooltip
|
public static final String vc_id
public FormInput(org.eclipse.swt.widgets.Label label,
C input)
label - control - inputpublic org.eclipse.swt.widgets.Label getLabel()
public void setLabel(org.eclipse.swt.widgets.Label label)
label - public C getInput()
public void setInput(C input)
input - public org.eclipse.swt.layout.FormData getLabelFD()
public void setLabelFD(org.eclipse.swt.layout.FormData labelFD)
labelFD - public org.eclipse.swt.layout.FormData getInputFD()
public void setInputFD(org.eclipse.swt.layout.FormData inputFD)
inputFD - public void setPosition(int numerator,
int offset,
FormInput.Widget widget,
FormInput.Position side)
numerator - offset - widget - to set position, [ lable, input ]position - side, [ left, right, top, bottom ]public void setPosition(org.eclipse.swt.widgets.Control control,
int offset,
FormInput.Widget widget,
FormInput.Position side)
Control - offset - widget - to set position, [ lable, input ]position - side, [ left, right, top, bottom ]public void setPosition(org.eclipse.swt.layout.FormAttachment position,
FormInput.Widget widget,
FormInput.Position side)
FormAttachment - positionwidget - to set position, [ lable, input ]position - side, [ left, right, top, bottom ]public void setText(String text, FormInput.Widget widget)
string - textwidget - to set text onpublic String getText(FormInput.Widget widget)
widget - to retrieve the text frompublic void setToolTip(String text, FormInput.Widget widget)
string - text