Class TypeRow
java.lang.Object
org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
org.libreoffice.ide.eclipse.core.gui.rows.TextRow
org.libreoffice.ide.eclipse.core.gui.rows.TypeRow
- All Implemented Interfaces:
EventListener,org.eclipse.swt.events.FocusListener,org.eclipse.swt.events.KeyListener,org.eclipse.swt.internal.SWTEventListener
Row for the selection of a UNO type.
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.
-
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateContent(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control label, org.eclipse.swt.widgets.Control field, String browseText, boolean browseLink) Stores the row controls, creates the button if its text is notnulland layout the controls.voidincludeSequences(boolean include) Set whether the row should support include auto-completion for sequences.voidincludeSimpleTypes(boolean include) Set whether the row should support include auto-completion for simple UNO types.voidincludeVoid(boolean include) Set whether the row should support include auto-completion for the void type.Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.TextRow
focusGained, focusLost, getValue, keyPressed, keyReleased, setFocus, setValueMethods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
addBrowseSelectionListener, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisible
-
Constructor Details
-
TypeRow
Creates a row for the selection of a UNO type.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
InternalUnoTypeclass.- Parameters:
parent- the parent composite where to create the rowproperty- the property name of the rowlabel- the label of the rowtype- the types mask of the row.
-
-
Method Details
-
includeSequences
public void includeSequences(boolean include) Set whether the row should support include auto-completion for sequences. Sequences aren't included in the auto-completion by default.- Parameters:
include-trueif the row can auto-complete sequences
-
includeSimpleTypes
public void includeSimpleTypes(boolean include) Set whether the row should support include auto-completion for simple UNO types. If the simple types are not included in the auto-completion, the void type isn't included too. Simple types aren't included in the auto-completion by default.- Parameters:
include-trueif the row can auto-complete sequences- See Also:
-
includeVoid
public void includeVoid(boolean include) Set whether the row should support include auto-completion for the void type. The void type is included in the auto-completion by default as long as the simple types are included.- Parameters:
include-trueif the row can auto-complete sequences- See Also:
-
createContent
protected void createContent(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control label, org.eclipse.swt.widgets.Control field, String browseText, boolean browseLink) Stores the row controls, creates the button if its text is notnulland layout the controls.- Overrides:
createContentin classLabeledRow- Parameters:
parent- the parent composite where to create the controlslabel- the control for the labelfield- the control for the fieldbrowseText- the text to show on the right button of the row.browseLink- the browse is shown as a link iftrue, otherwise it is a button.
-