Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.editor.gutter
Interface Gutter

All Known Implementing Classes:
CodeEditorGutter, LineGutterPlugin

public interface Gutter

The Gutter interface describes a visual component that is displayed vertically to the left of a BasicEditorPane. The Gutter tracks the BasicEditorPane such that they have the same height and same number of lines. The Gutter is used to display Icons associated with specific lines in the editor pane.

The interface provides facilities for adding multiple columns of icons, tracking line changes, and responding to mouse clicks in the Gutter component. Note that all line-numbers are 1-based, unlike the underlying LineMap of the document - this is because this is a visual component for users, who naturally expect line numbers to start with 1.

See Also:
GutterColumn, GutterColumnListener, GutterMark, GutterClickListener

Method Summary
 void addGutterClickListener(GutterClickListener listener)
          Registers a GutterClickListener to receive notifications of mouse clicks in this Gutter component.
 GutterColumn createGutterColumn(java.lang.String columnName, GutterColumnListener listener)
          Creates a new GutterColumn to contain GutterMarks that display icons in the Gutter.
 GutterColumn lookupGutterColumn(java.lang.String columnName)
          Fetches the gutter column by name.
 void removeAllGutterColumns()
          Removes all existing columns from the Gutter.
 void removeGutterClickListener(GutterClickListener listener)
          Deregisters a previously-registered GutterClickListener so that it no longer receives notifications of mouse clicks in this Gutter component.
 void removeGutterColumn(GutterColumn column)
          Removes an existing column from the Gutter and all of its marks and icons.
 

Method Detail

createGutterColumn

GutterColumn createGutterColumn(java.lang.String columnName,
                                GutterColumnListener listener)
Creates a new GutterColumn to contain GutterMarks that display icons in the Gutter. Note that this is a non-visual container only. The specified listener will be used to provide notifications of mark events.

Parameters:
columnName - the name of the column, used only for lookup or debugging purposes
listener - the notification listener to use
Returns:
the column if it was created successfully, null if the already exists

lookupGutterColumn

GutterColumn lookupGutterColumn(java.lang.String columnName)
Fetches the gutter column by name.

Parameters:
columnName - the name of the column
Returns:
the column, or null if it does not exist

removeGutterColumn

void removeGutterColumn(GutterColumn column)
Removes an existing column from the Gutter and all of its marks and icons.

Parameters:
column - the column to remove

removeAllGutterColumns

void removeAllGutterColumns()
Removes all existing columns from the Gutter.


addGutterClickListener

void addGutterClickListener(GutterClickListener listener)
Registers a GutterClickListener to receive notifications of mouse clicks in this Gutter component. These mouse clicks are not associated with a specific GutterMark.

Parameters:
listener - the listener to register

removeGutterClickListener

void removeGutterClickListener(GutterClickListener listener)
Deregisters a previously-registered GutterClickListener so that it no longer receives notifications of mouse clicks in this Gutter component.

Parameters:
listener - the listener to register

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.