|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.platform.AbstractDepictContext
com.guiseframework.platform.AbstractTextDepictContext
public abstract class AbstractTextDepictContext
Abstract encapsulation of text information related to the current depiction.
| Field Summary |
|---|
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Constructor Summary | |
|---|---|
AbstractTextDepictContext(GuiseSession session,
Destination destination)
Guise session constructor. |
|
| Method Summary | |
|---|---|
void |
clearDepictText()
Clears all data collected for depiction. |
protected java.lang.String |
encode(java.lang.String string)
Encodes text information for writing. |
java.lang.StringBuilder |
getDepictStringBuilder()
The string builder that holds the current content being collected, though not necessarily all the content collected. |
java.lang.String |
getDepictText()
|
int |
getIndentLevel()
|
void |
indent()
Increments the indent level. |
void |
indent(int indentDelta)
Changes the indent level by the given amount. |
boolean |
isFormatted()
|
void |
setIndentLevel(int newIndentLevel)
Sets the level of text indentation. |
void |
unindent()
Decrements the indent level. |
void |
write(char character)
Writes a character, encoding it as necessary. |
void |
write(java.lang.String text)
Writes text, encoding it as necessary. |
void |
writeIndent()
Writes an indention at the current indention level. |
void |
writeLiteral(java.lang.String text)
Writes literal text with no encoding. |
| Methods inherited from class com.guiseframework.platform.AbstractDepictContext |
|---|
getDepictionURI, getDepictionURI, getDestination, getPlatform, getSession, getStyles |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.TextDepictContext |
|---|
getOutputCharacterEncoding, getOutputContentType, setOutputContentType |
| Methods inherited from interface com.guiseframework.platform.DepictContext |
|---|
getDepictionURI, getDepictionURI, getDepictionURI, getDestination, getPlatform, getSession, getStyles |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public AbstractTextDepictContext(GuiseSession session,
Destination destination)
throws java.io.IOException
session - The Guise user session of which this context is a part.destination - The destination with which this context is associated.
java.lang.NullPointerException - if the given session and/or destination is null.
java.io.IOException - If there was an I/O error loading a needed resource.| Method Detail |
|---|
public java.lang.StringBuilder getDepictStringBuilder()
getDepictStringBuilder in interface TextDepictContextpublic void clearDepictText()
clearDepictText in interface TextDepictContextpublic java.lang.String getDepictText()
getDepictText in interface TextDepictContextpublic boolean isFormatted()
isFormatted in interface TextDepictContexttrue.public int getIndentLevel()
getIndentLevel in interface TextDepictContextpublic void setIndentLevel(int newIndentLevel)
setIndentLevel in interface TextDepictContextnewIndentLevel - The new zero-based level of text indention.public void indent(int indentDelta)
indent in interface TextDepictContextindentDelta - The amount by which to increase or decrease the indent level.getIndentLevel(),
setIndentLevel(int)public void indent()
indent in interface TextDepictContextindent(int)public void unindent()
unindent in interface TextDepictContextindent(int)
public void writeLiteral(java.lang.String text)
throws java.io.IOException
writeLiteral in interface TextDepictContexttext - The literal text to write.
java.io.IOException - if there is an error writing the information.
public void write(char character)
throws java.io.IOException
writeLiteral(String).
write in interface TextDepictContextcharacter - The character to write.
java.io.IOException - if there is an error writing the information.#encode(StringBuilder)
public void write(java.lang.String text)
throws java.io.IOException
writeLiteral(String).
write in interface TextDepictContexttext - The text to write.
java.io.IOException - if there is an error writing the information.#encode(StringBuilder)protected java.lang.String encode(java.lang.String string)
string - The text information to encode.
public void writeIndent()
throws java.io.IOException
writeIndent in interface TextDepictContextjava.io.IOException - if there is an error writing the information.isFormatted(),
getIndentLevel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||