Top Description Inners Fields Constructors Methods
org.freedesktop.dbus.viewer

public Class DBusViewer

extends Object
Class Inheritance
Imports
org.freedesktop.dbus.connections.impl.DBusConnection, .DBusConnection.DBusBusType, .DBusConnectionBuilder, org.freedesktop.dbus.exceptions.DBusException, .DBusExecutionException, org.freedesktop.dbus.interfaces.DBus, .Introspectable, org.freedesktop.dbus.types.UInt32, org.slf4j.LoggerFactory, org.w3c.dom.Document, .Element, .Node, .NodeList, org.xml.sax.InputSource, .SAXException, java.awt.BorderLayout, java.awt.event.WindowAdapter, .WindowEvent, java.io.IOException, .StringReader, java.util.ArrayList, .HashMap, .List, .Map, .Map.Entry, javax.swing.*, javax.swing.table.TableModel, javax.xml.parsers.DocumentBuilder, .DocumentBuilderFactory, .ParserConfigurationException

A viewer for DBus goal is to replicate the functionality of kdbus with Java smarts
Author
pete
Since
29/01/2006

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private static final Map<String, DBusConnection.DBusBusType>
private final List<DBusConnection>
private static final String

Constructor Summary

AccessConstructor and Description
public
DBusViewer(final Map<String, DBusConnection.DBusBusType>
The map of connection types
_connectionTypes
)

Create the DBusViewer

Method Summary

Modifier and TypeMethod and Description
private void
addTabs(final JTabbedPane
The tabbed pane
_tabbedPane
,
final Map<String, DBusConnection.DBusBusType>
The connection
_connectionTypes
)

Add tabs for each supplied connection type

private DBusTableModel
listDBusConnection(boolean _users, boolean _owners, DBusConnection _conn)

public static void
main(String[]
unused
_args
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONNECTION_TYPESback to summary
private static final Map<String, DBusConnection.DBusBusType> CONNECTION_TYPES
connectionsback to summary
private final List<DBusConnection> connections
DOC_TYPEback to summary
private static final String DOC_TYPE

Constructor Detail

DBusViewerback to summary
public DBusViewer(final Map<String, DBusConnection.DBusBusType> _connectionTypes)

Create the DBusViewer

Parameters
_connectionTypes:Map<String, DBusConnection.DBusBusType>

The map of connection types

Method Detail

addTabsback to summary
private void addTabs(final JTabbedPane _tabbedPane, final Map<String, DBusConnection.DBusBusType> _connectionTypes)

Add tabs for each supplied connection type

Parameters
_tabbedPane:JTabbedPane

The tabbed pane

_connectionTypes:Map<String, DBusConnection.DBusBusType>

The connection

listDBusConnectionback to summary
private DBusTableModel listDBusConnection(boolean _users, boolean _owners, DBusConnection _conn) throws DBusException
mainback to summary
public static void main(String[] _args)
Parameters
_args:String[]

unused

org.freedesktop.dbus.viewer back to summary

pack-priv Class DBusViewer.ParsingContext

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final DocumentBuilder
private final DBusConnection
private List<DBusEntry>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv DBusEntry
addEntry(String _name, String _path)

public List<DBusEntry>
pack-priv void
public void
visitNode(String _name, String _path)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

builderback to summary
private final DocumentBuilder builder
connback to summary
private final DBusConnection conn
resultback to summary
private List<DBusEntry> result

Constructor Detail

ParsingContextback to summary
pack-priv ParsingContext(DBusConnection _conn)

Method Detail

addEntryback to summary
pack-priv DBusEntry addEntry(String _name, String _path) throws DBusException
getResultback to summary
public List<DBusEntry> getResult()
resetback to summary
pack-priv void reset()
visitNodeback to summary
public void visitNode(String _name, String _path) throws DBusException, SAXException, IOException