|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| 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.ibm.etools.iseries.ui.UpperCaseDocument
public class UpperCaseDocument
UpperCaseDocument extends javax.swing.text.PlainDocument and implements KeystrokeVerifier. It serves as the data model for uppercase characters in an MVC relationship for JFormattedTextField.
With this data model, all the alphabetic characters are converted to uppercase.
KeystrokeVerifier,
NumericCharacterDocument,
DataAttributes,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument |
|---|
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement |
| Field Summary | |
|---|---|
static String |
Copyright
|
protected PropertyChangeSupport |
propertyChange
|
protected VetoableChangeSupport |
vetoPropertyChange
|
| Fields inherited from class javax.swing.text.PlainDocument |
|---|
lineLimitAttribute, tabSizeAttribute |
| Fields inherited from class javax.swing.text.AbstractDocument |
|---|
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName |
| Fields inherited from interface com.ibm.etools.iseries.ui.KeystrokeVerifier |
|---|
copyright |
| Fields inherited from interface javax.swing.text.Document |
|---|
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
|---|---|
|
UpperCaseDocument()
Constructs a new UpperCaseDocument. |
protected |
UpperCaseDocument(AbstractDocument.Content c)
Constructs a new UpperCaseDocument with specified Content |
|
UpperCaseDocument(Attributes dataAttributes)
Constructs a new UpperCaseDocument with the specified DataAttributes. |
|
UpperCaseDocument(Attributes dataAttributes,
Attributes editmaskAttributes)
Constructs a new UpperCaseDocument with the specified DataAttributes and EditmaskAttributes. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a propertyChangeListener. |
void |
addVetoableChangeListener(VetoableChangeListener l)
Add a vetoableChangeListener. |
static String |
Copyright()
This method returns the copyright notice for this class. |
void |
enableErrorChecking(boolean enable)
To enable/disable error checking. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
void |
fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
The fireVetoableChange method was generated to support the vetoPropertyChange field. |
Attributes |
getDataAttributes()
|
Attributes |
getEditmaskAttributes()
|
protected PropertyChangeSupport |
getPropertyChange()
Accessor for the propertyChange field. |
String |
getUneditedText()
|
protected VetoableChangeSupport |
getVetoPropertyChange()
Accessor for the vetoPropertyChange field. |
void |
insertString(int offs,
String str,
AttributeSet a)
Inserts some content into the document. |
void |
propertyChange(PropertyChangeEvent e)
Examine the PropertyChangeEvent and decides what to do on a particular event. |
void |
remove(int offs,
int len)
Removes some content from the document. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a propertyChangeListener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Removes a vetoableChangeListener. |
void |
setCurrentFocusField(JComponent comp)
Set the focus on the component that passed in as argument. |
void |
setDataAttributes(Attributes a)
Sets the dataAttributes property (com.ibm.etools.iseries.ui.Attributes) value. |
void |
setEditmaskAttributes(Attributes ea)
Sets the editmaskAttributes property (com.ibm.etools.iseries.ui.Attributes) value. |
void |
vetoableChange(PropertyChangeEvent e)
This method gets called when a constrained property is changed. |
| Methods inherited from class javax.swing.text.PlainDocument |
|---|
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.text.Document |
|---|
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, putProperty, removeDocumentListener, removeUndoableEditListener, render |
| Field Detail |
|---|
public static final String Copyright
protected transient PropertyChangeSupport propertyChange
protected transient VetoableChangeSupport vetoPropertyChange
| Constructor Detail |
|---|
public UpperCaseDocument()
public UpperCaseDocument(Attributes dataAttributes)
dataAttributes - com.ibm.etools.iseries.ui.Attributes
public UpperCaseDocument(Attributes dataAttributes,
Attributes editmaskAttributes)
dataAttributes - com.ibm.etools.iseries.ui.AttributeseditmaskAttributes - com.ibm.etools.iseries.ui.Attributesprotected UpperCaseDocument(AbstractDocument.Content c)
c - javax.swing.text.AbstractDocument.Content| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener l)
l - PropertyChangeListenerpublic void addVetoableChangeListener(VetoableChangeListener l)
l - java.beans.VetoableChangeListenerpublic static String Copyright()
public void enableErrorChecking(boolean enable)
enableErrorChecking in interface KeystrokeVerifierenable - boolean
public void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
public void fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
throws PropertyVetoException
PropertyVetoExceptionpublic Attributes getDataAttributes()
getDataAttributes in interface KeystrokeVerifierpublic Attributes getEditmaskAttributes()
getEditmaskAttributes in interface KeystrokeVerifierprotected PropertyChangeSupport getPropertyChange()
public String getUneditedText()
getUneditedText in interface KeystrokeVerifierprotected VetoableChangeSupport getVetoPropertyChange()
public void insertString(int offs,
String str,
AttributeSet a)
throws BadLocationException
insertString in interface DocumentinsertString in class PlainDocumentoffs - intstr - java.lang.Stringa - AttributeSet
BadLocationException - The exception description.public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenere - java.beans.PropertyChangeEvent
public void remove(int offs,
int len)
throws BadLocationException
remove in interface Documentremove in class AbstractDocumentoffs - intlen - int
BadLocationExceptionpublic void removePropertyChangeListener(PropertyChangeListener l)
l - PropertyChangeListenerpublic void removeVetoableChangeListener(VetoableChangeListener l)
l - java.beans.VetoableChangeListenerpublic void setCurrentFocusField(JComponent comp)
setCurrentFocusField in interface KeystrokeVerifiercomp - javax.swing.JComponent
public void setDataAttributes(Attributes a)
throws PropertyVetoException
setDataAttributes in interface KeystrokeVerifierdataAttributes - The new value for the property.
PropertyVetoExceptiongetDataAttributes()
public void setEditmaskAttributes(Attributes ea)
throws PropertyVetoException
setEditmaskAttributes in interface KeystrokeVerifiereditmaskAttributes - The new value for the property.
PropertyVetoExceptiongetEditmaskAttributes()
public void vetoableChange(PropertyChangeEvent e)
throws PropertyVetoException
vetoableChange in interface VetoableChangeListenere - java.beans.PropertyChangeEvent a PropertyChangeEvent object describing the event source and the property that has changed.
PropertyVetoException - if the recipient wishes the property change to be rolled back.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||