Module is.codion.swing.common.ui
Interface TextAreaBuilder
- All Superinterfaces:
ComponentBuilder<JTextArea,,TextAreaBuilder> ComponentValueBuilder<JTextArea,,String, TextAreaBuilder> Supplier<JTextArea>,TextComponentBuilder<JTextArea,String, TextAreaBuilder>
Builds a JTextArea.
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.swing.common.ui.component.text.TextComponentBuilder
TextComponentBuilder.CaretPosition -
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentValueBuilder
COMPONENT_VALUE -
Method Summary
Modifier and TypeMethodDescriptionautoscrolls(boolean autoscrolls) Autoscrolling is enabled by the text UI if not specified.static TextAreaBuilderbuilder()Specifies the document, replacing the default one, which validates each edit before it is applied, and notifies the component value once for each edit.lineWrap(boolean lineWrap) rows(int rows) rowsColumns(int rows, int columns) tabSize(int tabSize) wrapStyleWord(boolean wrapStyleWord) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
ancestorListener, background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, hierarchyListener, keyEvent, keyListener, label, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupControl, popupControls, popupControls, popupMenu, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visibleMethods inherited from interface is.codion.swing.common.ui.component.builder.ComponentValueBuilder
buildValue, buildValue, changeConsumer, changeListener, consumer, link, link, listener, modified, modifiedIndicator, onBuildValue, valid, valid, validationIndicator, validator, value, warned, weakChangeConsumer, weakChangeListener, weakConsumer, weakListener, when, when, when, whenMethods inherited from interface is.codion.swing.common.ui.component.text.TextComponentBuilder
caretListener, caretPosition, caretUpdatePolicy, controlDeleteWord, disabledTextColor, documentListener, dragEnabled, editable, focusAccelerator, lowerCase, margin, maximumLength, moveCaretToEndOnFocusGained, moveCaretToStartOnFocusGained, selectAllOnFocusGained, selectedTextColor, selectionColor, updateOn, upperCase
-
Method Details
-
rows
- Parameters:
rows- the number of rows in the text area- Returns:
- this builder instance
- See Also:
-
rowsColumns
- Parameters:
rows- the rowscolumns- the columns- Returns:
- this builder instance
- See Also:
-
lineWrap
- Parameters:
lineWrap- true if line wrap should be used- Returns:
- this builder instance
- See Also:
-
wrapStyleWord
- Parameters:
wrapStyleWord- true if wrap style word should be used- Returns:
- this builder instance
- See Also:
-
autoscrolls
Autoscrolling is enabled by the text UI if not specified.- Parameters:
autoscrolls- true if autoscrolling should be enabled- Returns:
- this builder instance
- See Also:
-
tabSize
- Parameters:
tabSize- the tab size- Returns:
- this builder instance
- See Also:
-
document
Specifies the document, replacing the default one, which validates each edit before it is applied, and notifies the component value once for each edit.- Parameters:
document- the document- Returns:
- this builder instance
- See Also:
-
builder
- Returns:
- a builder for a component
-