public abstract class JExtensionalTag extends JTag
A JExtensionalTag tag is a tag that can be explicitely attached to and detached from a JComponent,
i.e. this JComponent can be added to or removed to the tag's collection.
JTag| Constructor and Description |
|---|
JExtensionalTag()
Builds a SMExtensionalTag that can tag any object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
added(java.awt.Component c)
Method called when this tag is added to an JComponent.
|
JExtensionalTag |
addTo(java.awt.Component c)
Adds the JComponent c to the collection containing all the components having this tag.
|
void |
removed(java.awt.Component c)
Method called when this tag is removed from an JComponent.
|
JExtensionalTag |
removeFrom(java.awt.Component c)
Removes the component c from the collection containing all the components having this tag.
|
void |
reset()
Inits the tag's iterator.
|
action, action, getAllJTags, getTaggedComponents, hasNext, next, nextComponent, setBackground, tagsComponent, tagsComponentgetCollection, remove, sizepublic JExtensionalTag()
public void added(java.awt.Component c)
c - The Componentpublic void removed(java.awt.Component c)
c - The JComponentpublic final JExtensionalTag addTo(java.awt.Component c)
begin(JComponent), which can be redefined in subclasses
to specify side effects, such as changing the color of the attached object when the tag is added.c - The JComponentadded(Component)public final JExtensionalTag removeFrom(java.awt.Component c)
end(JComponent), which can be redefined in subclasses
to specify side effects, such as changing the color of the attached object when the tag is removed.c - The JComponentremoved(Component)