public class IlpBackgroundEvent extends IlEventObject
IlpBackgroundSupport
's list of backgrounds. For example, when
backgrounds are added, removed, moved or reloaded.IlpBackgroundListener
,
IlpBackgroundSupport
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
IlpBackgroundEvent.Type
Provides the predefined
IlpBackgroundEvent event types. |
source
Constructor and Description |
---|
IlpBackgroundEvent(Object source,
IlEventType type,
IlpBackground background,
int index,
URL url)
Instantiates a new background event.
|
Modifier and Type | Method and Description |
---|---|
IlpBackground |
getBackground()
Returns the target
IlpBackground instance. |
int |
getIndex()
Returns the index of the target
IlpBackground instance. |
URL |
getUrl()
Returns the
URL of the target IlpBackground instance. |
getType
getSource, toString
public IlpBackgroundEvent(Object source, IlEventType type, IlpBackground background, int index, URL url)
source
- The event sourcetype
- The event typebackground
- The target backgroundindex
- The target background indexurl
- The target background URLpublic int getIndex()
IlpBackground
instance.In case this is an IlpBackgroundEvent.Type.BackgroundAdded
the returned value is the insertion index.
In case, this is an IlpBackgroundEvent.Type.BackgroundRemoved
the index is the index of where background used to be at.
In case this is an IlpBackgroundEvent.Type.BackgroundReloaded
the returned value is the index where background is currently at.
In case this is an IlpBackgroundEvent.Type.BackgroundMoved
the returned value is the index where background was moved to.
public URL getUrl()
URL
of the target IlpBackground
instance.URL
of the target IlpBackground
instance.public IlpBackground getBackground()
IlpBackground
instance.IlpBackground
instance.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.