Class EntryRow.Builder<B extends EntryRow.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,Actionable.Builder<B>,Editable.Builder<B>,BuilderInterface
- Direct Known Subclasses:
PasswordEntryRow.Builder
- Enclosing class:
EntryRow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theEntryRowobject.onApply(EntryRow.ApplyCallback handler) Emitted when the apply button is pressed.Emitted when the embedded entry is activated.setActivatesDefault(boolean activatesDefault) Whether activating the embedded entry can activate the default widget.setAttributes(AttrList attributes) A list of Pango attributes to apply to the text of the embedded entry.setEnableEmojiCompletion(boolean enableEmojiCompletion) Whether to suggest emoji replacements on the entry row.setInputHints(Set<InputHints> inputHints) Additional input hints for the entry row.setInputHints(InputHints... inputHints) Additional input hints for the entry row.setInputPurpose(InputPurpose inputPurpose) The input purpose of the entry row.setMaxLength(int maxLength) Maximum number of characters for the entry.setShowApplyButton(boolean showApplyButton) Whether to show the apply button.Methods inherited from class org.gnome.adw.PreferencesRow.Builder
setTitle, setTitleSelectable, setUseMarkup, setUseUnderlineMethods inherited from class org.gnome.gtk.ListBoxRow.Builder
onActivate, setActivatable, setChild, setSelectableMethods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.gnome.gtk.Actionable.Builder
setActionName, setActionTargetMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArenaMethods inherited from interface org.gnome.gtk.Editable.Builder
setEditable, setEnableUndo, setMaxWidthChars, setText, setWidthChars, setXalign
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theEntryRowobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toEntryRow.- Overrides:
buildin classPreferencesRow.Builder<B extends EntryRow.Builder<B>>- Returns:
- a new instance of
EntryRowwith the properties that were set in the Builder object.
-
setActivatesDefault
Whether activating the embedded entry can activate the default widget.- Parameters:
activatesDefault- the value for theactivates-defaultproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setAttributes
A list of Pango attributes to apply to the text of the embedded entry.The
Pango.Attribute'sstart_indexandend_indexmust refer to theEntryBuffertext, i.e. without the preedit string.- Parameters:
attributes- the value for theattributesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setEnableEmojiCompletion
Whether to suggest emoji replacements on the entry row.Emoji replacement is done with :-delimited names, like
:heart:.- Parameters:
enableEmojiCompletion- the value for theenable-emoji-completionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setInputHints
Additional input hints for the entry row.Input hints allow input methods to fine-tune their behavior.
See also:
Adw.EntryRow:input-purpose- Parameters:
inputHints- the value for theinput-hintsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setInputPurpose
The input purpose of the entry row.The input purpose can be used by input methods to adjust their behavior.
- Parameters:
inputPurpose- the value for theinput-purposeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setMaxLength
Maximum number of characters for the entry.- Parameters:
maxLength- the value for themax-lengthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.6
-
setShowApplyButton
Whether to show the apply button.When set to
TRUE, typing text in the entry will reveal an apply button. Clicking it or pressing theEnterkey will hide the button and emit theEntryRow::applysignal.This is useful if changing the entry contents can trigger an expensive operation, e.g. network activity, to avoid triggering it after typing every character.
- Parameters:
showApplyButton- the value for theshow-apply-buttonproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
setInputHints
Additional input hints for the entry row.Input hints allow input methods to fine-tune their behavior.
See also:
Adw.EntryRow:input-purpose- Parameters:
inputHints- the value for theinput-hintsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
-
onApply
Emitted when the apply button is pressed.See
EntryRow:show-apply-button.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
- See Also:
-
onEntryActivated
Emitted when the embedded entry is activated.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.2
- See Also:
-