Classes | |
class | ServiceTableModel |
Public Member Functions | |
void | serviceAdded (ServiceEvent event) |
void | serviceRemoved (ServiceEvent event) |
void | serviceResolved (ServiceEvent event) |
void | serviceTypeAdded (ServiceEvent event) |
void | subTypeForServiceTypeAdded (ServiceEvent event) |
String | toString () |
void | valueChanged (ListSelectionEvent e) |
Static Public Member Functions | |
static void | main (String argv[]) throws IOException |
Package Functions | |
BrowserOriginal (JmmDNS mmDNS) throws IOException | |
void | insertSorted (DefaultListModel model, String value) |
Package Attributes | |
JTextArea | info |
JmmDNS | jmmdns |
JList | serviceList |
DefaultListModel | services |
String | type |
JList | typeList |
DefaultListModel | types |
Private Member Functions | |
void | dislayInfo (ServiceInfo[] serviceInfos) |
Static Private Attributes | |
static final long | serialVersionUID = 5750114542524415107L |
User Interface for browsing JmDNS services.
Definition at line 53 of file BrowserOriginal.java.
ros.zeroconf.jmdns.BrowserOriginal.BrowserOriginal | ( | JmmDNS | mmDNS | ) | throws IOException [inline, package] |
void ros.zeroconf.jmdns.BrowserOriginal.dislayInfo | ( | ServiceInfo[] | serviceInfos | ) | [inline, private] |
Definition at line 244 of file BrowserOriginal.java.
void ros.zeroconf.jmdns.BrowserOriginal.insertSorted | ( | DefaultListModel | model, |
String | value | ||
) | [inline, package] |
Definition at line 199 of file BrowserOriginal.java.
static void ros.zeroconf.jmdns.BrowserOriginal.main | ( | String | argv[] | ) | throws IOException [inline, static] |
Main program.
argv |
IOException |
Definition at line 331 of file BrowserOriginal.java.
void ros.zeroconf.jmdns.BrowserOriginal.serviceAdded | ( | ServiceEvent | event | ) | [inline] |
A service has been added.
Note:This event is only the service added event. The service info associated with this event does not include resolution information.
To get the full resolved information you need to listen to serviceResolved(ServiceEvent) or call JmDNS#getServiceInfo(String, String, long)
ServiceInfo info = event.getDNS().getServiceInfo(event.getType(), event.getName())
Please note that service resolution may take a few second to resolve.
event | The ServiceEvent providing the name and fully qualified type of the service. |
Implements javax.jmdns.ServiceListener.
Definition at line 132 of file BrowserOriginal.java.
void ros.zeroconf.jmdns.BrowserOriginal.serviceRemoved | ( | ServiceEvent | event | ) | [inline] |
A service has been removed.
event | The ServiceEvent providing the name and fully qualified type of the service. |
Implements javax.jmdns.ServiceListener.
Definition at line 149 of file BrowserOriginal.java.
void ros.zeroconf.jmdns.BrowserOriginal.serviceResolved | ( | ServiceEvent | event | ) | [inline] |
A service has been resolved. Its details are now available in the ServiceInfo record.
Note:This call back will never be called if the service does not resolve.
event | The ServiceEvent providing the name, the fully qualified type of the service, and the service info record. |
Implements javax.jmdns.ServiceListener.
Definition at line 162 of file BrowserOriginal.java.
void ros.zeroconf.jmdns.BrowserOriginal.serviceTypeAdded | ( | ServiceEvent | event | ) | [inline] |
A new service type was discovered.
event | The service event providing the fully qualified type of the service. |
Implements javax.jmdns.ServiceTypeListener.
Definition at line 178 of file BrowserOriginal.java.
void ros.zeroconf.jmdns.BrowserOriginal.subTypeForServiceTypeAdded | ( | ServiceEvent | event | ) | [inline] |
A new subtype for the service type was discovered.
<sub>._sub.<app>.<protocol>.<servicedomain>.<parentdomain>.
event | The service event providing the fully qualified type of the service with subtype. |
Implements javax.jmdns.ServiceTypeListener.
Definition at line 195 of file BrowserOriginal.java.
String ros.zeroconf.jmdns.BrowserOriginal.toString | ( | ) | [inline] |
Definition at line 321 of file BrowserOriginal.java.
void ros.zeroconf.jmdns.BrowserOriginal.valueChanged | ( | ListSelectionEvent | e | ) | [inline] |
JTextArea ros.zeroconf.jmdns.BrowserOriginal.info [package] |
Definition at line 65 of file BrowserOriginal.java.
Definition at line 58 of file BrowserOriginal.java.
final long ros.zeroconf.jmdns.BrowserOriginal.serialVersionUID = 5750114542524415107L [static, private] |
Definition at line 57 of file BrowserOriginal.java.
JList ros.zeroconf.jmdns.BrowserOriginal.serviceList [package] |
Definition at line 64 of file BrowserOriginal.java.
DefaultListModel ros.zeroconf.jmdns.BrowserOriginal.services [package] |
Definition at line 63 of file BrowserOriginal.java.
String ros.zeroconf.jmdns.BrowserOriginal.type [package] |
Definition at line 60 of file BrowserOriginal.java.
JList ros.zeroconf.jmdns.BrowserOriginal.typeList [package] |
Definition at line 62 of file BrowserOriginal.java.
DefaultListModel ros.zeroconf.jmdns.BrowserOriginal.types [package] |
Definition at line 61 of file BrowserOriginal.java.