public class TypeRow extends TextRow
The row allows to type the text in a text field or selecting the type using the UNO type browser. The text field support a simple auto-completion.
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty| Constructor and Description |
|---|
TypeRow(org.eclipse.swt.widgets.Composite pParent,
java.lang.String pProperty,
java.lang.String pLabel,
int pType)
Creates a row for the selection of a UNO type.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createContent(org.eclipse.swt.widgets.Composite pParent,
org.eclipse.swt.widgets.Control pLabel,
org.eclipse.swt.widgets.Control pField,
java.lang.String pBrowseText,
boolean pLink)
Stores the row controls, creates the button if its text is not
null and layout the controls. |
void |
includeSequences(boolean pInclude)
Set whether the row should support include auto-completion for sequences.
|
void |
includeSimpleTypes(boolean pInclude)
Set whether the row should support include auto-completion for simple UNO types.
|
void |
includeVoid(boolean pInclude)
Set whether the row should support include auto-completion for the void type.
|
focusGained, focusLost, getValue, keyPressed, keyReleased, setFocus, setValueaddBrowseSelectionListener, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisiblepublic TypeRow(org.eclipse.swt.widgets.Composite pParent,
java.lang.String pProperty,
java.lang.String pLabel,
int pType)
The types mask is an integer from 0 to 2048-1. The type mask can be obtained by bit-OR of the types constants
defined in InternalUnoType class.
pParent - the parent composite where to create the rowpProperty - the property name of the rowpLabel - the label of the rowpType - the types mask of the row.public void includeSequences(boolean pInclude)
pInclude - true if the row can auto-complete sequencespublic void includeSimpleTypes(boolean pInclude)
pInclude - true if the row can auto-complete sequencesto include/exclude the void typepublic void includeVoid(boolean pInclude)
pInclude - true if the row can auto-complete sequencesfor more precisions on the inclusion of the void type dependence on the other
simple types inclusion.protected void createContent(org.eclipse.swt.widgets.Composite pParent,
org.eclipse.swt.widgets.Control pLabel,
org.eclipse.swt.widgets.Control pField,
java.lang.String pBrowseText,
boolean pLink)
null and layout the controls.createContent in class LabeledRowpParent - the parent composite where to create the controlspLabel - the control for the labelpField - the control for the fieldpBrowseText - the text to show on the right button of the row.pLink - the browse is shown as a link if true, otherwise it is a button.