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 BsetEditable(boolean editable) Whether the entry contents can be edited.default BsetEnableUndo(boolean enableUndo) If undo/redo should be enabled for the editable.default BsetMaxWidthChars(int maxWidthChars) The desired maximum width of the entry, in characters.default BThe contents of the entry.default BsetWidthChars(int widthChars) Number of characters to leave space for in the entry.default BsetXalign(float xalign) The horizontal alignment, from 0 (left) to 1 (right).Methods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Method Details
-
setEditable
Whether the entry contents can be edited.- Parameters:
editable- the value for theeditableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setEnableUndo
If undo/redo should be enabled for the editable.- Parameters:
enableUndo- the value for theenable-undoproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMaxWidthChars
The desired maximum width of the entry, in characters.- Parameters:
maxWidthChars- the value for themax-width-charsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setText
-
setWidthChars
Number of characters to leave space for in the entry.- Parameters:
widthChars- the value for thewidth-charsproperty- Returns:
- the
Builderinstance 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 thexalignproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-