Package com.teamdev.jxbrowser.net.event
Interface NetworkChanged
- All Superinterfaces:
Event
,NetworkEvent
An event indicating a change in the current network connection.
The event is triggered whenever a change affects the route network packets take to any network server.
For example, the event is triggered when:
- A network connection becomes available or going away;
- A VPN tunnel is established or taken down;
- An active network connection's IP address changes.
- Since:
- 7.17
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConnectionType
Returns the connection type of the network at the time of the event.default Network
network()
Returns theNetwork
instance initiated this event.
-
Method Details
-
network
Description copied from interface:NetworkEvent
Returns theNetwork
instance initiated this event.- Specified by:
network
in interfaceNetworkEvent
-
connectionType
Returns the connection type of the network at the time of the event.
-