当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
FormatterIndentEngine (Editor Module) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.editor
Class FormatterIndentEngine
java.lang.Object
org.openide.ServiceType
org.openide.text.IndentEngine
org.netbeans.modules.editor.FormatterIndentEngine
- All Implemented Interfaces:
- Serializable, HelpCtx.Provider
- Direct Known Subclasses:
- SimpleIndentEngine
public abstract class FormatterIndentEngine
- extends IndentEngine
Indent engine that delegates to formatter
- See Also:
- Serialized Form
EXPAND_TABS_PROP
public static final String EXPAND_TABS_PROP
- See Also:
- Constant Field Values
SPACES_PER_TAB_PROP
public static final String SPACES_PER_TAB_PROP
- See Also:
- Constant Field Values
FormatterIndentEngine
public FormatterIndentEngine()
getFormatter
public ExtFormatter getFormatter()
- Get the formatter to which this indentation engine delegates.
createFormatter
protected abstract ExtFormatter createFormatter()
- Create the formatter.
getValue
public Object getValue(String settingName)
setValue
public void setValue(String settingName,
Object newValue,
String propertyName)
setValue
public void setValue(String settingName,
Object newValue)
- Deprecated. use
setValue(java.lang.String, java.lang.Object, java.lang.String)
instead
with properly specified propertyName
indentLine
public int indentLine(Document doc,
int offset)
- Specified by:
indentLine
in class IndentEngine
indentNewLine
public int indentNewLine(Document doc,
int offset)
- Specified by:
indentNewLine
in class IndentEngine
createWriter
public Writer createWriter(Document doc,
int offset,
Writer writer)
- Specified by:
createWriter
in class IndentEngine
acceptMimeType
protected boolean acceptMimeType(String mimeType)
- Overrides:
acceptMimeType
in class IndentEngine
isExpandTabs
public boolean isExpandTabs()
setExpandTabs
public void setExpandTabs(boolean expandTabs)
getSpacesPerTab
public int getSpacesPerTab()
setSpacesPerTab
public void setSpacesPerTab(int spacesPerTab)
setAcceptedMimeTypes
public void setAcceptedMimeTypes(String[] mimes)
getAcceptedMimeTypes
public String[] getAcceptedMimeTypes()