public class ApplicationEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION_CLOSED
This event indicates that the application is closed.
|
static int |
APPLICATION_CLOSING
This event indicates that the application is closing.
|
static int |
APPLICATION_FIRST
The first number in the range of IDs used for application events.
|
static int |
APPLICATION_INITIALIZED
This event indicates that the application has been initialized.
|
static int |
APPLICATION_INITIALIZING_SETTINGS
This event indicates that the application is reading and initializing its
settings.
|
static int |
APPLICATION_LAST
The last number in the range of IDs used for application events.
|
static int |
APPLICATION_SAVING_SETTINGS
This event indicates that the application is saving the user settings.
|
static int |
DOCUMENT_ACTIVATED
This event indicates that a document has been activated.
|
static int |
DOCUMENT_CLOSED
This event indicates that a document has been closed.
|
static int |
DOCUMENT_CLOSING
This event indicates that a document is being closed.
|
static int |
DOCUMENT_CREATED
This event indicates that a document has been created.
|
static int |
DOCUMENT_DEACTIVATED
This event indicates that a document has been deactivated.
|
static int |
DOCUMENT_INITIALIZING
This event indicates that a document is in the process of being
created.
|
static int |
DOCUMENT_SAVED
This event indicates that a document has been saved.
|
static int |
DOCUMENT_TEMPLATE_ACTIVATED
This event indicates that a document template has been activated.
|
static int |
DOCUMENT_TEMPLATE_DEACTIVATED
This event indicates that a document template has been deactivated.
|
static int |
DOCUMENT_VIEW_ACTIVATED
This event indicates that a document view has been activated.
|
static int |
DOCUMENT_VIEW_CLOSED
This event indicates that a document view has been closed.
|
static int |
DOCUMENT_VIEW_CLOSING
This event indicates that a document view is being closed.
|
static int |
DOCUMENT_VIEW_CREATED
This event indicates that a document view has been created.
|
static int |
DOCUMENT_VIEW_DEACTIVATED
This event indicates that a document view has been deactivated.
|
static int |
DOCUMENT_VIEW_INITIALIZED
This event indicates that a document view has been initialized with
a new associated document.
|
static int |
MAIN_WINDOW_INITIALIZED
This event indicates that a main window has been set to the application.
|
static int |
VIEW_CONTAINER_ACTIVATED
This event indicates that a view container has been activated.
|
static int |
VIEW_CONTAINER_CLOSED
This event indicates that a view container has been closed.
|
static int |
VIEW_CONTAINER_CLOSING
This event indicates that a view container is being closed.
|
static int |
VIEW_CONTAINER_CREATED
This event indicates that the creation of a view container has been
completed.
|
static int |
VIEW_CONTAINER_CREATING
This event indicates that a view container is being created.
|
static int |
VIEW_CONTAINER_DEACTIVATED
This event indicates that a view container has been deactivated.
|
source
Constructor and Description |
---|
ApplicationEvent(int id,
IlvApplication application)
Constructs an
ApplicationEvent object with the specified
id and application source. |
ApplicationEvent(int id,
IlvDocument document)
Constructs an
ApplicationEvent with the specified
id and document source. |
ApplicationEvent(int id,
IlvDocument document,
IlvDocumentView view,
IlvDocumentTemplate documentTemplate)
Constructs an
ApplicationEvent with the specified
id , document , document view , and
documentTemplate . |
ApplicationEvent(int id,
IlvDocument document,
IlvDocumentView view,
IlvViewContainer container,
IlvDocumentTemplate documentTemplate)
Constructs an
ApplicationEvent with the specified
id , document , document view ,
view container , and documentTemplate . |
ApplicationEvent(int id,
IlvDocumentTemplate documentTemplate)
Constructs an
ApplicationEvent object with the specified
id and documentTemplate . |
ApplicationEvent(int id,
IlvDocumentView view)
Constructs an
ApplicationEvent with the specified
id and document view . |
ApplicationEvent(int id,
IlvViewContainer container)
Constructs an
ApplicationEvent with the specified
id and view container . |
Modifier and Type | Method and Description |
---|---|
IlvApplication |
getApplication()
Returns the application that originated this event.
|
IlvDocument |
getDocument()
Returns the document originator of the event;
null if this event was not originated by a document. |
IlvDocumentTemplate |
getDocumentTemplate()
Returns the document template that originated the event or
the document template of the document, document view, or view container
that originated the event.
|
String |
getDocumentTemplateName()
Returns the name of the document template of the document or document view
that originated the event.
|
int |
getID()
Returns the event type.
|
IlvDocumentView |
getView()
Returns the document view that originated the event;
null if this event was not originated by a document view. |
IlvViewContainer |
getViewContainer()
Returns the view container that originated the event;
null if this event was not originated by a view container. |
void |
setDocument(IlvDocument document)
Sets the document that originated the event.
|
void |
setView(IlvDocumentView view)
Sets the active view of the document.
|
getSource, toString
public static final int APPLICATION_FIRST
public static final int DOCUMENT_CREATED
DOCUMENT_INITIALIZING
,
Constant Field Valuespublic static final int DOCUMENT_CLOSING
public static final int DOCUMENT_CLOSED
public static final int DOCUMENT_ACTIVATED
public static final int DOCUMENT_DEACTIVATED
public static final int DOCUMENT_SAVED
public static final int DOCUMENT_TEMPLATE_ACTIVATED
public static final int DOCUMENT_TEMPLATE_DEACTIVATED
public static final int DOCUMENT_VIEW_CREATED
public static final int DOCUMENT_VIEW_INITIALIZED
public static final int DOCUMENT_VIEW_CLOSING
public static final int DOCUMENT_VIEW_CLOSED
public static final int DOCUMENT_VIEW_ACTIVATED
public static final int DOCUMENT_VIEW_DEACTIVATED
public static final int VIEW_CONTAINER_CREATING
public static final int VIEW_CONTAINER_CREATED
public static final int VIEW_CONTAINER_ACTIVATED
public static final int VIEW_CONTAINER_DEACTIVATED
public static final int VIEW_CONTAINER_CLOSING
public static final int VIEW_CONTAINER_CLOSED
public static final int APPLICATION_INITIALIZING_SETTINGS
APPLICATION_INITIALIZED
,
Constant Field Valuespublic static final int APPLICATION_INITIALIZED
IlvApplication.initialize()
has been
called. The settings of the application have been read and all the
components of the application, such as its main frame, its menu, or its
toolbars, have been initialized.public static final int APPLICATION_CLOSING
public static final int APPLICATION_SAVING_SETTINGS
APPLICATION_INITIALIZED
,
Constant Field Valuespublic static final int MAIN_WINDOW_INITIALIZED
public static final int APPLICATION_CLOSED
public static final int DOCUMENT_INITIALIZING
If the initialization process succeeded, the event
DOCUMENT_CREATED
is fired.
DOCUMENT_CREATED
,
Constant Field Valuespublic static int APPLICATION_LAST
public ApplicationEvent(int id, IlvDocument document)
ApplicationEvent
with the specified
id
and document
source.id
- The ID of the application event.document
- The document that originated the event.public ApplicationEvent(int id, IlvDocumentView view)
ApplicationEvent
with the specified
id
and document view
.id
- The ID of the application event.view
- The document view that originated the event.public ApplicationEvent(int id, IlvDocument document, IlvDocumentView view, IlvDocumentTemplate documentTemplate)
ApplicationEvent
with the specified
id
, document
, document view
, and
documentTemplate
.public ApplicationEvent(int id, IlvDocument document, IlvDocumentView view, IlvViewContainer container, IlvDocumentTemplate documentTemplate)
ApplicationEvent
with the specified
id
, document
, document view
,
view container
, and documentTemplate
.public ApplicationEvent(int id, IlvViewContainer container)
ApplicationEvent
with the specified
id
and view container
.public ApplicationEvent(int id, IlvDocumentTemplate documentTemplate)
ApplicationEvent
object with the specified
id
and documentTemplate
.id
- The ID of the application event.documentTemplate
- The document template that is activated or deactivated.public ApplicationEvent(int id, IlvApplication application)
ApplicationEvent
object with the specified
id
and application
source.id
- The ID of the document event.application
- The application that originated the event.APPLICATION_INITIALIZED
,
MAIN_WINDOW_INITIALIZED
,
APPLICATION_CLOSED
,
APPLICATION_CLOSING
public IlvDocument getDocument()
null
if this event was not originated by a document.public void setDocument(IlvDocument document)
document
- The document that originated the event.getDocument()
public int getID()
public IlvDocumentView getView()
null
if this event was not originated by a document view.public void setView(IlvDocumentView view)
view
- The new document view of the event.getView()
public IlvViewContainer getViewContainer()
null
if this event was not originated by a view container.VIEW_CONTAINER_CREATED
,
VIEW_CONTAINER_ACTIVATED
,
VIEW_CONTAINER_DEACTIVATED
,
VIEW_CONTAINER_CLOSING
,
VIEW_CONTAINER_CLOSED
public IlvDocumentTemplate getDocumentTemplate()
public String getDocumentTemplateName()
public IlvApplication getApplication()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.