当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ExtFormatter.Simple (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor.ext
Class ExtFormatter.Simple
java.lang.Object
org.netbeans.editor.Formatter
org.netbeans.editor.ext.ExtFormatter
org.netbeans.editor.ext.ExtFormatter.Simple
- All Implemented Interfaces:
- EventListener, FormatLayer, SettingsChangeListener
- Enclosing class:
- ExtFormatter
public static class ExtFormatter.Simple
- extends ExtFormatter
Simple formatter
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 |
ExtFormatter.Simple
public ExtFormatter.Simple(Class kitClass)
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