|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.uml.ui.UMLModelElementTaggedValueProxy
This class provides a text field that can be used to access tagged values of a ModelElement object. Because TaggedValues are separated ModelElements themselves, it acts as a proxy intermediary to an instance of UMLPlainTextDocument and handles the indirection. UMLModelElementTaggedValueDocument is especially useful when using LabelledLayout.
| Field Summary |
| Fields inherited from interface javax.swing.text.Document |
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
UMLModelElementTaggedValueProxy(String taggedValue)
Creates a UMLPlainTextDocument object that represents a tagged value of an ModelElement object. |
|
| Method Summary | |
void |
addDocumentListener(DocumentListener listener)
|
void |
addUndoableEditListener(UndoableEditListener listener)
|
Position |
createPosition(int offs)
|
Element |
getDefaultRootElement()
|
Position |
getEndPosition()
|
int |
getLength()
|
protected String |
getProperty()
|
Object |
getProperty(Object key)
|
Element[] |
getRootElements()
|
Position |
getStartPosition()
|
Object |
getTarget()
Returns the target. |
String |
getText(int offset,
int length)
|
void |
getText(int offset,
int length,
Segment txt)
|
void |
insertString(int offset,
String str,
AttributeSet a)
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
putProperty(Object key,
Object value)
|
void |
remove(int offs,
int len)
|
void |
removeDocumentListener(DocumentListener listener)
|
void |
removeUndoableEditListener(UndoableEditListener listener)
|
void |
render(Runnable r)
|
protected void |
setProperty(String text)
Sets the tagged value to given String. |
void |
setTarget(Object target)
Sets the target. |
void |
targetAdded(TargetEvent e)
Fired when a target is added to the list of targets. |
void |
targetRemoved(TargetEvent e)
Fired when a target is removed from the list of targets |
void |
targetSet(TargetEvent e)
Fired when a total new set of targets is set |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UMLModelElementTaggedValueProxy(String taggedValue)
taggedValue - the tagged value| Method Detail |
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)protected void setProperty(String text)
text - the propertyprotected String getProperty()
public final Object getTarget()
public final void setTarget(Object target)
target - The target to setpublic void targetAdded(TargetEvent e)
TargetListener
targetAdded in interface TargetListenere - The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(org.argouml.ui.targetmanager.TargetEvent)public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved in interface TargetListenere - The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(org.argouml.ui.targetmanager.TargetEvent)public void targetSet(TargetEvent e)
TargetListener
targetSet in interface TargetListenere - The targetevent, name will be TARGET_SETTargetListener.targetSet(org.argouml.ui.targetmanager.TargetEvent)
public void insertString(int offset,
String str,
AttributeSet a)
throws BadLocationException
insertString in interface DocumentBadLocationExceptionDocument.insertString(
int, java.lang.String, javax.swing.text.AttributeSet)
public void remove(int offs,
int len)
throws BadLocationException
remove in interface DocumentBadLocationExceptionDocument.remove(int, int)public Element getDefaultRootElement()
getDefaultRootElement in interface DocumentDocument.getDefaultRootElement()public int getLength()
getLength in interface DocumentDocument.getLength()public void render(Runnable r)
render in interface DocumentDocument.render(Runnable r)
public String getText(int offset,
int length)
throws BadLocationException
getText in interface DocumentBadLocationExceptionDocument.getText(int, int)public void addDocumentListener(DocumentListener listener)
addDocumentListener in interface Documentpublic void removeDocumentListener(DocumentListener listener)
removeDocumentListener in interface Documentpublic void addUndoableEditListener(UndoableEditListener listener)
addUndoableEditListener in interface Documentpublic void removeUndoableEditListener(UndoableEditListener listener)
removeUndoableEditListener in interface Documentpublic Element[] getRootElements()
getRootElements in interface Documentpublic Position getEndPosition()
getEndPosition in interface Documentpublic Position getStartPosition()
getStartPosition in interface Document
public Position createPosition(int offs)
throws BadLocationException
createPosition in interface DocumentBadLocationException
public void getText(int offset,
int length,
Segment txt)
throws BadLocationException
getText in interface DocumentBadLocationExceptionpublic Object getProperty(Object key)
getProperty in interface Document
public void putProperty(Object key,
Object value)
putProperty in interface Document
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |