|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cburch.editor.AutoIndent
public class AutoIndent
Handles the automatic indentation as the user types.
| Constructor Summary | |
|---|---|
AutoIndent(Editor editor,
TokenType openBrace,
TokenType closeBrace,
char closeBraceChar)
Constructs automatic indentation for the given editor. |
|
| Method Summary | |
|---|---|
boolean |
isEnabled()
Returns true the automatic indentation is
currently enabled. |
void |
setEnabled(boolean value)
Controls whether the indentation takes place. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutoIndent(Editor editor,
TokenType openBrace,
TokenType closeBrace,
char closeBraceChar)
editor - the editor for which we will perform automatic indentation.openBrace - the token we use for identifying opening braces.closeBrace - the token we use for identifying closing braces.closeBraceChar - the character corresponding to closing braces.| Method Detail |
|---|
public boolean isEnabled()
true the automatic indentation is
currently enabled.
true if the indentation is enabled.public void setEnabled(boolean value)
value - true if automatic indentation should
take place, false if it should be disabled.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||