congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Gutter.setFoldIndicatorEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
setFoldIndicatorEnabled
method
in
org.fife.ui.rtextarea.Gutter

Best Java code snippets using org.fife.ui.rtextarea.Gutter.setFoldIndicatorEnabled (Showing top 8 results out of 315)

origin: bobbylight/RSyntaxTextArea

/**
 * Toggles whether the fold indicator is enabled.
 *
 * @param enabled Whether the fold indicator should be enabled.
 * @see #isFoldIndicatorEnabled()
 */
public void setFoldIndicatorEnabled(boolean enabled) {
  gutter.setFoldIndicatorEnabled(enabled);
  checkGutterVisibility();
}
origin: bobbylight/RSyntaxTextArea

setFoldIndicatorEnabled(foldingEnabled);
origin: bobbylight/RSyntaxTextArea

/**
 * Constructor.
 *
 * @param textArea The parent text area.
 */
public Gutter(RTextArea textArea) {
  listener = new TextAreaListener();
  lineNumberColor = Color.gray;
  lineNumberFont = RTextArea.getDefaultFont();
  lineNumberingStartIndex = 1;
  iconRowHeaderInheritsGutterBackground = false;
  setTextArea(textArea);
  setLayout(new BorderLayout());
  if (this.textArea!=null) {
    // Enable line numbers our first time through if they give us
    // a text area.
    setLineNumbersEnabled(true);
    if (this.textArea instanceof RSyntaxTextArea) {
      RSyntaxTextArea rsta = (RSyntaxTextArea)this.textArea;
      setFoldIndicatorEnabled(rsta.isCodeFoldingEnabled());
    }
  }
  setBorder(new GutterBorder(0, 0, 0, 1)); // Assume ltr
  Color bg = null;
  if (textArea!=null) {
    bg = textArea.getBackground(); // May return null if image bg
  }
  setBackground(bg!=null ? bg : Color.WHITE);
}
origin: bobbylight/RSyntaxTextArea

@Test
public void testSetFoldIndicatorEnabled() {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  Assert.assertFalse(gutter.isFoldIndicatorEnabled());
  gutter.setFoldIndicatorEnabled(true);
  Assert.assertTrue(gutter.isFoldIndicatorEnabled());
  gutter.setFoldIndicatorEnabled(false);
  Assert.assertFalse(gutter.isFoldIndicatorEnabled());
}
origin: bobbylight/RSyntaxTextArea

@Test
public void testIsFoldIndicatorEnabled() {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  Assert.assertFalse(gutter.isFoldIndicatorEnabled());
  gutter.setFoldIndicatorEnabled(true);
  Assert.assertTrue(gutter.isFoldIndicatorEnabled());
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Toggles whether the fold indicator is enabled.
 *
 * @param enabled Whether the fold indicator should be enabled.
 * @see #isFoldIndicatorEnabled()
 */
public void setFoldIndicatorEnabled(boolean enabled) {
  gutter.setFoldIndicatorEnabled(enabled);
  checkGutterVisibility();
}
origin: com.fifesoft/rsyntaxtextarea

setFoldIndicatorEnabled(foldingEnabled);
origin: com.fifesoft/rsyntaxtextarea

/**
 * Constructor.
 *
 * @param textArea The parent text area.
 */
public Gutter(RTextArea textArea) {
  listener = new TextAreaListener();
  lineNumberColor = Color.gray;
  lineNumberFont = RTextArea.getDefaultFont();
  lineNumberingStartIndex = 1;
  iconRowHeaderInheritsGutterBackground = false;
  setTextArea(textArea);
  setLayout(new BorderLayout());
  if (this.textArea!=null) {
    // Enable line numbers our first time through if they give us
    // a text area.
    setLineNumbersEnabled(true);
    if (this.textArea instanceof RSyntaxTextArea) {
      RSyntaxTextArea rsta = (RSyntaxTextArea)this.textArea;
      setFoldIndicatorEnabled(rsta.isCodeFoldingEnabled());
    }
  }
  setBorder(new GutterBorder(0, 0, 0, 1)); // Assume ltr
  Color bg = null;
  if (textArea!=null) {
    bg = textArea.getBackground(); // May return null if image bg
  }
  setBackground(bg!=null ? bg : Color.WHITE);
}
org.fife.ui.rtextareaGuttersetFoldIndicatorEnabled

Javadoc

Toggles whether the fold indicator is enabled.

Popular methods of Gutter

  • setLineNumberColor
    Sets the color to use to paint line numbers.
  • setBackground
  • <init>
    Constructor.
  • addLineTrackingIcon
    Adds an icon that tracks an offset in the document, and is displayed adjacent to the line numbers. T
  • addOffsetTrackingIcon
    Adds an icon that tracks an offset in the document, and is displayed adjacent to the line numbers. T
  • getBookmarks
    Returns the bookmarks known to this gutter.
  • getLineNumbersEnabled
    Returns true if the line numbers are enabled and visible.
  • isIconRowHeaderEnabled
    Returns whether the icon row header is enabled.
  • setBorderColor
    Sets the color for the "border" line.
  • setIconRowHeaderEnabled
    Toggles whether the icon row header (used for breakpoints, bookmarks, etc.) is enabled.
  • setLineNumberFont
    Sets the font used for line numbers.
  • setLineNumbersEnabled
    Toggles whether or not line numbers are visible.
  • setLineNumberFont,
  • setLineNumbersEnabled,
  • toggleBookmark,
  • add,
  • getBackground,
  • getBorder,
  • getComponent,
  • getComponentCount,
  • remove,
  • repaint

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ImageIO (javax.imageio)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now