站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ExtFormatter.Simple (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor.ext
Class ExtFormatter.Simple

java.lang.Object
  extended by org.netbeans.editor.Formatter
      extended by org.netbeans.editor.ext.ExtFormatter
          extended by org.netbeans.editor.ext.ExtFormatter.Simple
All Implemented Interfaces:
EventListener, FormatLayer, SettingsChangeListener
Enclosing class:
ExtFormatter

public static class ExtFormatter.Simple
extends ExtFormatter

Simple formatter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.editor.ext.ExtFormatter
ExtFormatter.Simple
 
Constructor Summary
ExtFormatter.Simple(Class kitClass)
           
 
Method Summary
protected  int getEOLOffset(BaseDocument bdoc, int offset)
          Returns offset of EOL for the white line
 boolean isSimple()
          Whether do no formatting at all.
 
Methods inherited from class org.netbeans.editor.ext.ExtFormatter
acceptSyntax, addFormatLayer, createWriter, format, formatLayerIterator, getName, getReformatBlock, getSettingValue, hasTextBefore, indentLine, indentNewLine, initFormatLayers, reformat, reformat, removeFormatLayer, replaceFormatLayer, setSettingValue, settingsChange
 
Methods inherited from class org.netbeans.editor.Formatter
changeBlockIndent, changeRowIndent, expandTabs, getFormatter, getIndentString, getIndentString, getKitClass, getShiftWidth, getSpacesPerTab, getTabSize, insertTabString, setExpandTabs, setFormatter, setShiftWidth, setSpacesPerTab, setTabSize, shiftLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtFormatter.Simple

public ExtFormatter.Simple(Class kitClass)
Method Detail

isSimple

public boolean isSimple()
Description copied from class: ExtFormatter
Whether do no formatting at all. If this method returns true, the FormatWriter will simply write its input into the underlying writer.

Overrides:
isSimple in class ExtFormatter

getEOLOffset

protected int getEOLOffset(BaseDocument bdoc,
                           int offset)
                    throws BadLocationException
Returns offset of EOL for the white line

Overrides:
getEOLOffset in class ExtFormatter
Throws:
BadLocationException

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.