Swing Component Event Listener
Class com.gp.api.swing.MxComponentListener is the listener interface for receiving events from MxComponent. The class that is interested in processing these events implements this interface, and the object created with that class is registered with a component, using the component's addMxComponentListener method. When the event occurs, that object's componentChanged method is invoked.
Declaration:
public interface MxComponentListener extends java.util.EventListener {
public void componentChanged(MxComponentEvent widget) ;
}
Class com.gp.api.swing.MxComponentEventamp;nbsp;is generated by the component when one of the following events occur:
Declaration:
public class MxComponentEvent extends EventObject {
public static final int MODEL_CHANGED = 0;
public static final int STYLE_CHANGED = 1;
public static final int STATE_CHANGED = 2;
private final int id;
public MxComponentEvent(Object source, int id) {
super(source);
this.id = id;
}
public final int getID() {
return id;
}
}