fds.micro.ui.events
Class ComponentEvent

java.lang.Object
  extended byfds.micro.ui.events.EventUI
      extended byfds.micro.ui.events.ComponentEvent

public class ComponentEvent
extends EventUI

This class is used with Component sub-classes for component events (when component are hidden or shown).

Author:
Frédéric DE STEUR

Field Summary
static int COMPONENT_HIDDEN
          Define the constant for a hidden component.
static int COMPONENT_SHOWN
          Define the constant for a shown component.
 
Constructor Summary
ComponentEvent(Component source, int type)
          Build a component event raised by given source component.
 
Method Summary
 int getType()
          Get the event type.
 java.lang.String toString()
          Give String description of this event.
 
Methods inherited from class fds.micro.ui.events.EventUI
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_HIDDEN

public static final int COMPONENT_HIDDEN
Define the constant for a hidden component.

See Also:
Constant Field Values

COMPONENT_SHOWN

public static final int COMPONENT_SHOWN
Define the constant for a shown component.

See Also:
Constant Field Values
Constructor Detail

ComponentEvent

public ComponentEvent(Component source,
                      int type)
Build a component event raised by given source component.

Parameters:
source - The component that have produced the event.
type - The event type. Must be COMPONENT_HIDDEN or COMPONENT_SHOWN.
Method Detail

getType

public int getType()
Get the event type.

Returns:
Returns COMPONENT_HIDDEN or COMPONENT_SHOWN constant.

toString

public java.lang.String toString()
Description copied from class: EventUI
Give String description of this event.

Overrides:
toString in class EventUI