Package org.gnome.gtk
Interface Editable.Builder<B extends Builder<B>>
- All Superinterfaces:
BuilderInterface
- All Known Implementing Classes:
EditableLabel.Builder
,Entry.Builder
,EntryRow.Builder
,PasswordEntry.Builder
,PasswordEntryRow.Builder
,SearchEntry.Builder
,SpinButton.Builder
,SpinRow.Builder
,Text.Builder
- Enclosing interface:
Editable
-
Method Summary
Modifier and TypeMethodDescriptiondefault B
setEditable
(boolean editable) Whether the entry contents can be edited.default B
setEnableUndo
(boolean enableUndo) If undo/redo should be enabled for the editable.default B
setMaxWidthChars
(int maxWidthChars) The desired maximum width of the entry, in characters.default B
The contents of the entry.default B
setWidthChars
(int widthChars) Number of characters to leave space for in the entry.default B
setXalign
(float xalign) The horizontal alignment, from 0 (left) to 1 (right).Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Method Details
-
setEditable
Whether the entry contents can be edited.- Parameters:
editable
- the value for theeditable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setEnableUndo
If undo/redo should be enabled for the editable.- Parameters:
enableUndo
- the value for theenable-undo
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMaxWidthChars
The desired maximum width of the entry, in characters.- Parameters:
maxWidthChars
- the value for themax-width-chars
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setText
-
setWidthChars
Number of characters to leave space for in the entry.- Parameters:
widthChars
- the value for thewidth-chars
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setXalign
The horizontal alignment, from 0 (left) to 1 (right).Reversed for RTL layouts.
- Parameters:
xalign
- the value for thexalign
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-