An event of this type serves as notification that the source Component has been moved, resized, shown, or hidden. Note that this event is a notification only: the AWT handles these Component operations internally, and the recipient of the event need take no action itself.
getComponent() returns the component that was moved, resized, shown or hidden. It is simply a convenient alternative to getSource().
getID() returns one of four COMPONENT_ constants to indicate what operation was performed on the Component.
public class ComponentEvent extends AWTEvent { // Public Constructor public ComponentEvent(Component source, int id); // Constants public static final int COMPONENT_FIRST; public static final int COMPONENT_HIDDEN; public static final int COMPONENT_LAST; public static final int COMPONENT_MOVED; public static final int COMPONENT_RESIZED; public static final int COMPONENT_SHOWN; // Public Instance Methods public Component getComponent(); public String paramString(); // Overrides AWTEvent }
Object->EventObject(Serializable)->AWTEvent->ComponentEvent
ContainerEvent, FocusEvent, InputEvent, PaintEvent, WindowEvent
AWTEventMulticaster.componentHidden(), AWTEventMulticaster.componentMoved(), AWTEventMulticaster.componentResized(), AWTEventMulticaster.componentShown(), Component.processComponentEvent(), ComponentAdapter.componentHidden(), ComponentAdapter.componentMoved(), ComponentAdapter.componentResized(), ComponentAdapter.componentShown(), ComponentListener.componentHidden(), ComponentListener.componentMoved(), ComponentListener.componentResized(), ComponentListener.componentShown()
This HTML Help has been published using the chm2web software. |