|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xngr.context.ServiceContext
org.xngr.context.URIServiceContext
org.xngr.context.FileContext
org.xngr.context.DocumentContext
public class DocumentContext
The context for a XML document object, containing the file-services, document-services and node-services and actions for the file and document-services.
Method Summary | |
---|---|
void |
addDocumentContextListener(DocumentContextListener listener)
Adds a document context listener, duplicate listeners will only be added once. |
void |
dispose()
Removes all listeners and the reference to the manager, removes the context from the list of contexts maintained by the context-manager and also removes all links to the node-contexts. |
protected void |
fireNodeContextsChanged(NodeContext context,
ServiceContextEvent.Type type)
Fire an event when a node-context has either been added or removed. |
java.lang.String |
getDescription()
Returns the most appropriate description for the context's URI. |
java.util.List<DocumentMarker> |
getDocumentMarkers()
|
java.util.List<DocumentService> |
getDocumentServices()
|
javax.swing.Icon |
getIcon()
Returns the most appropriate icon for the context's URI. |
java.lang.String |
getName()
Returns the most appropriate name for the context's URI. |
java.util.List<NodeContext> |
getNodeContexts()
|
java.util.List<NodeMarker> |
getNodeMarkers()
|
java.util.List<Service> |
getServices()
|
void |
open(Action action)
Opens the supplied service using the action's service, the context's URI and the arguments defined in the action. |
void |
open(DocumentService service)
Opens the supplied service using the Context's URI and an empty HashMap as arguments. |
void |
open(DocumentService service,
java.util.Map<java.lang.String,java.lang.String> arguments)
Opens the supplied service using the Context's URI. |
void |
removeDocumentContextListener(DocumentContextListener listener)
Remove the document context listener. |
Methods inherited from class org.xngr.context.FileContext |
---|
getFileMarkers, getFileServices, getMarkers, open, open |
Methods inherited from class org.xngr.context.URIServiceContext |
---|
getURI |
Methods inherited from class org.xngr.context.ServiceContext |
---|
addServiceContextListener, fireActionsChanged, fireMarkersChanged, fireServicesChanged, getActions, removeServiceContextListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.util.List<DocumentService> getDocumentServices()
public java.util.List<DocumentMarker> getDocumentMarkers()
public java.util.List<Service> getServices()
getServices
in class FileContext
public java.util.List<NodeMarker> getNodeMarkers()
public void open(DocumentService service)
service
- the document-service to open.public void open(Action action)
open
in class FileContext
action
- the action to open the service for.public void open(DocumentService service, java.util.Map<java.lang.String,java.lang.String> arguments)
service
- the document-service to open.arguments
- the argumentspublic javax.swing.Icon getIcon()
FileContext
getIcon
in class FileContext
FileContext#getIcon(URI)
public java.lang.String getName()
FileContext
getName
in class FileContext
FileContext#getName(String)
public java.lang.String getDescription()
FileContext
getDescription
in class FileContext
FileContext#getDescription(String)
public java.util.List<NodeContext> getNodeContexts()
public void addDocumentContextListener(DocumentContextListener listener)
listener
- the listener to add to the listener list.public void removeDocumentContextListener(DocumentContextListener listener)
listener
- the listener to be removed from the listener list.protected void fireNodeContextsChanged(NodeContext context, ServiceContextEvent.Type type)
context
- the node-contexttype
- the event-type.public void dispose()
dispose
in class URIServiceContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |