Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.awt.event
Class SettingsEvent  view SettingsEvent download SettingsEvent.java

java.lang.Object
  extended bycom.flexstor.common.awt.event.SettingsEvent
All Implemented Interfaces:
SettingsEventI

public class SettingsEvent
extends java.lang.Object
implements SettingsEventI


Field Summary
protected  int nEventId
          Id of event thrown.
protected  int nEventType
          Type of the event thrown.
protected  java.awt.Component sourceComponent
          Source of the event generated.
 
Fields inherited from interface com.flexstor.common.awt.event.SettingsEventI
ACTION_CANCELED, COMPONENT_STATE_CHANGED, DATA_DELETED, DATA_REFRESHED, DATA_UPDATED, EMAIL_EVENT, FTP_EVENT, IMPORT_SETTINGS_EVENT, NEW_ADDRESS, NEW_SELECTION, SEND_SETTINGS_EVENT
 
Constructor Summary
SettingsEvent()
          Default Constructor.
SettingsEvent(java.awt.Component sourceComponent, int nEventId)
           
SettingsEvent(java.awt.Component sourceComponent, int nEventId, int nEventType)
           
 
Method Summary
 int getEventId()
          returns the event id of this event.
 int getEventType()
          returns the event event type of this event.Event type may be EMAIL_EVENT, SEND_SETTING_EVENT or any other of SettingsEventI.
 java.awt.Component getSourceComponent()
          returns the source component of event.
 void setEventId(int id)
          sets the event id for this event.
 void setEventType(int type)
          sets the event type this event.
 void setSourceComponent(java.awt.Component c)
          sets the source component for this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nEventId

protected int nEventId
Id of event thrown.


nEventType

protected int nEventType
Type of the event thrown. It may be of type EMAIL_EVENT, FTP_EVENT, SEND_SETTINGS_EVENT.


sourceComponent

protected java.awt.Component sourceComponent
Source of the event generated.

Constructor Detail

SettingsEvent

public SettingsEvent(java.awt.Component sourceComponent,
                     int nEventId)

SettingsEvent

public SettingsEvent(java.awt.Component sourceComponent,
                     int nEventId,
                     int nEventType)

SettingsEvent

public SettingsEvent()
Default Constructor.

Method Detail

getSourceComponent

public java.awt.Component getSourceComponent()
returns the source component of event.

Specified by:
getSourceComponent in interface SettingsEventI

getEventId

public int getEventId()
returns the event id of this event.

Specified by:
getEventId in interface SettingsEventI

getEventType

public int getEventType()
returns the event event type of this event.Event type may be EMAIL_EVENT, SEND_SETTING_EVENT or any other of SettingsEventI. Any other event type may be added in SettingsEventI.

Specified by:
getEventType in interface SettingsEventI

setSourceComponent

public void setSourceComponent(java.awt.Component c)
sets the source component for this event.

Specified by:
setSourceComponent in interface SettingsEventI

setEventId

public void setEventId(int id)
sets the event id for this event.

Specified by:
setEventId in interface SettingsEventI

setEventType

public void setEventType(int type)
sets the event type this event. Event type may be EMAIL_EVENT,SEND_SETTING_EVENT or any other from SettingsEventI. Any other event type may be added in SettingsEventI.

Specified by:
setEventType in interface SettingsEventI