Class TextAreaDefaults
- java.lang.Object
-
- net.sf.gridarta.textedit.textarea.TextAreaDefaults
-
public class TextAreaDefaults extends java.lang.ObjectEncapsulates default settings for a text area. This can be passed to the constructor once the necessary fields have been filled out. The advantage of doing this over calling lots of set() methods after creating the text area is that this method is faster.
-
-
Constructor Summary
Constructors Constructor Description TextAreaDefaults(@NotNull ScriptEditControl scriptEditControl, @NotNull MenuEntries menuEntries)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBlockCaret()booleangetBracketHighlight()@NotNull java.awt.ColorgetBracketHighlightColor()booleangetCaretBlinks()@NotNull java.awt.ColorgetCaretColor()booleangetCaretVisible()intgetCols()@Nullable SyntaxDocumentgetDocument()booleangetEditable()intgetElectricScroll()@NotNull java.awt.ColorgetEolMarkerColor()booleangetEolMarkers()@NotNull InputHandlergetInputHandler()booleangetLineHighlight()@NotNull java.awt.ColorgetLineHighlightColor()booleangetPaintInvalid()@Nullable javax.swing.JPopupMenugetPopup()intgetRows()@NotNull java.awt.ColorgetSelectionColor()@NotNull SyntaxStylesgetStyles()Returns the syntax styles used to paint colorized text.
-
-
-
Constructor Detail
-
TextAreaDefaults
public TextAreaDefaults(@NotNull @NotNull ScriptEditControl scriptEditControl, @NotNull @NotNull MenuEntries menuEntries)Creates a new instance.- Parameters:
scriptEditControl- the script edit control to affectmenuEntries- the menu entries to include in the function menu popup
-
-
Method Detail
-
getInputHandler
@NotNull public @NotNull InputHandler getInputHandler()
-
getDocument
@Nullable public @Nullable SyntaxDocument getDocument()
-
getEditable
public boolean getEditable()
-
getCaretVisible
public boolean getCaretVisible()
-
getCaretBlinks
public boolean getCaretBlinks()
-
getBlockCaret
public boolean getBlockCaret()
-
getElectricScroll
public int getElectricScroll()
-
getCols
public int getCols()
-
getRows
public int getRows()
-
getStyles
@NotNull public @NotNull SyntaxStyles getStyles()
Returns the syntax styles used to paint colorized text.- Returns:
- the styles
-
getCaretColor
@NotNull public @NotNull java.awt.Color getCaretColor()
-
getSelectionColor
@NotNull public @NotNull java.awt.Color getSelectionColor()
-
getLineHighlightColor
@NotNull public @NotNull java.awt.Color getLineHighlightColor()
-
getLineHighlight
public boolean getLineHighlight()
-
getBracketHighlightColor
@NotNull public @NotNull java.awt.Color getBracketHighlightColor()
-
getBracketHighlight
public boolean getBracketHighlight()
-
getEolMarkerColor
@NotNull public @NotNull java.awt.Color getEolMarkerColor()
-
getEolMarkers
public boolean getEolMarkers()
-
getPaintInvalid
public boolean getPaintInvalid()
-
getPopup
@Nullable public @Nullable javax.swing.JPopupMenu getPopup()
-
-