fr.inria.ketuk
Class Replacers
java.lang.Object
|
+--fr.inria.ketuk.Replacers
- public class Replacers
- extends java.lang.Object
A Collection of methods which replace, in the context of a containing object,
an object by another one
- Author:
- Claude Pasquier
Constructor Summary |
Replacers()
Default constructor |
Method Summary |
void |
replace(java.awt.Container parent,
java.awt.Component c1,
java.awt.Component c2)
Default replacer for two objects of class Component placed in a Container |
void |
replace(javax.swing.JFrame parent,
java.awt.Component c1,
java.awt.Component c2)
Default replacer for two objects of class Component placed in a JFrame |
void |
replace(java.util.Vector parent,
java.lang.Object obj1,
java.lang.Object obj2)
Default replacer for two objects of class Object placed in a Vector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Replacers
public Replacers()
- Default constructor
replace
public void replace(java.awt.Container parent,
java.awt.Component c1,
java.awt.Component c2)
- Default replacer for two objects of class Component placed in a Container
- Parameters:
parent
- the container of the first componentc1
- the component to replacec2
- the new component
replace
public void replace(javax.swing.JFrame parent,
java.awt.Component c1,
java.awt.Component c2)
- Default replacer for two objects of class Component placed in a JFrame
- Parameters:
parent
- the frame containing the first componentc1
- the component to replacec2
- the new component
replace
public void replace(java.util.Vector parent,
java.lang.Object obj1,
java.lang.Object obj2)
- Default replacer for two objects of class Object placed in a Vector
- Parameters:
parent
- the Vector containing the first objectobj1
- the object to replaceobj2
- the new object