|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lri.swingstates.sm.Tag
fr.lri.swingstates.sm.JTag
fr.lri.swingstates.sm.JExtensionalTag
public abstract class JExtensionalTag
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 Summary | |
|---|---|
JExtensionalTag()
Builds a SMExtensionalTag that can tag any object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class fr.lri.swingstates.sm.JTag |
|---|
action, action, getTaggedComponents, hasNext, next, nextComponent, setBackground, tagsComponent, tagsComponent |
| Methods inherited from class fr.lri.swingstates.sm.Tag |
|---|
getCollection, remove, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JExtensionalTag()
| Method Detail |
|---|
public final void reset()
reset in class Tagpublic 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 JComponent
added(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 JComponent
removed(Component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||