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

FormatterIndentEngine (Editor Module) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor/3 1.32.0

org.netbeans.modules.editor
Class FormatterIndentEngine

java.lang.Object
  extended by org.openide.ServiceType
      extended by org.openide.text.IndentEngine
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.ServiceType
ServiceType.Handle, ServiceType.Registry
 
Field Summary
static String EXPAND_TABS_PROP
           
static String SPACES_PER_TAB_PROP
           
 
Fields inherited from class org.openide.ServiceType
PROP_NAME
 
Constructor Summary
FormatterIndentEngine()
           
 
Method Summary
protected  boolean acceptMimeType(String mimeType)
           
protected abstract  ExtFormatter createFormatter()
          Create the formatter.
 Writer createWriter(Document doc, int offset, Writer writer)
           
 String[] getAcceptedMimeTypes()
           
 ExtFormatter getFormatter()
          Get the formatter to which this indentation engine delegates.
 int getSpacesPerTab()
           
 Object getValue(String settingName)
           
 int indentLine(Document doc, int offset)
           
 int indentNewLine(Document doc, int offset)
           
 boolean isExpandTabs()
           
 void setAcceptedMimeTypes(String[] mimes)
           
 void setExpandTabs(boolean expandTabs)
           
 void setSpacesPerTab(int spacesPerTab)
           
 void setValue(String settingName, Object newValue)
          Deprecated. use setValue(java.lang.String, java.lang.Object, java.lang.String) instead with properly specified propertyName
 void setValue(String settingName, Object newValue, String propertyName)
           
 
Methods inherited from class org.openide.text.IndentEngine
find, find, getDefault, getHelpCtx, indentEngines, register
 
Methods inherited from class org.openide.ServiceType
addPropertyChangeListener, clone, createClone, displayName, firePropertyChange, getName, removePropertyChangeListener, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FormatterIndentEngine

public FormatterIndentEngine()
Method Detail

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()

org.netbeans.modules.editor/3 1.32.0

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