|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
com.nqadmin.swingSet.SSTextDocument
public class SSTextDocument
SSTextDocument.java
SwingSet - Open Toolkit For Making Swing Controls Database-Aware
Java PlainDocument that is 'database-aware'. When developing a database application the SSTextDocument can be used in conjunction with the SSDataNavigator to allow for both editing and navigation of the rows in a database table. The SSTextDocument takes a SSRowSet and either a column index or a column name as arguments. Whenever the cursor is moved (e.g. navigation occurs on the SSDataNavigator), the document property of the bound Swing control changes to reflect the new value for the database column. Note that a SSRowSet insert doesn't implicitly modify the cursor which is why the SSDBNavImp is provided for clearing controls following an insert.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument |
|---|
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement |
| Field Summary |
|---|
| Fields inherited from class javax.swing.text.PlainDocument |
|---|
lineLimitAttribute, tabSizeAttribute |
| Fields inherited from class javax.swing.text.AbstractDocument |
|---|
BidiElementName, ContentElementName, ElementNameAttribute, ParagraphElementName, SectionElementName |
| Fields inherited from interface javax.swing.text.Document |
|---|
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
|---|---|
SSTextDocument(SSRowSet _sSRowSet,
int _columnIndex)
Constructs a SSTextDocument with the given SSRowSet and column index. |
|
SSTextDocument(SSRowSet _sSRowSet,
java.lang.String _columnName)
Constructs a SSTextDocument with the given SSRowSet and column name. |
|
| Method Summary | |
|---|---|
int |
getColumnIndex()
Returns the index of the column to which the document is bound. |
java.lang.String |
getColumnName()
Returns the column name to which the document is bound. |
SSRowSet |
getSSRowSet()
Returns the SSRowSet to which the document is bound. |
void |
setColumnIndex(int _columnIndex)
Sets the column index to which the document is to be bound. |
void |
setColumnName(java.lang.String _columnName)
Sets the column name to which the document is to be bound. |
void |
setSSRowSet(SSRowSet _sSRowSet)
Sets the SSRowSet to which the document is bound. |
| Methods inherited from class javax.swing.text.PlainDocument |
|---|
getDefaultRootElement, getParagraphElement, insertString |
| Methods inherited from class javax.swing.text.AbstractDocument |
|---|
addDocumentListener, addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSTextDocument(SSRowSet _sSRowSet,
java.lang.String _columnName)
_sSRowSet - SSRowSet upon which document will be based_columnName - column name within SSRowSet upon which document will be based
public SSTextDocument(SSRowSet _sSRowSet,
int _columnIndex)
_sSRowSet - SSRowSet upon which document will be based_columnIndex - column index within SSRowSet upon which document will be based| Method Detail |
|---|
public void setColumnName(java.lang.String _columnName)
_columnName - column Name to which the document is to be boundpublic java.lang.String getColumnName()
public void setColumnIndex(int _columnIndex)
_columnIndex - column index to which the document is to be boundpublic int getColumnIndex()
public void setSSRowSet(SSRowSet _sSRowSet)
_sSRowSet - SSRowSet to which the component is boundpublic SSRowSet getSSRowSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||