|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xngr.XService
The representation of a service in the system. Services implementations should extend this class and implement the relevant methods for this class.
Constructor Summary | |
XService()
|
Method Summary | |
abstract boolean |
close()
Closes the service, this method is called by the 'browser application' when the user wants to exit the application. |
abstract XAction[] |
getActions(XElementType type)
Returns a list of actions for the element-type supplied. |
abstract XDecorator |
getDecorator(XElementType type)
Returns a decorator for the element-type. |
XManager |
getManager()
Returns the manager that allows the service to interact with other services and allows the service to get a programmatic handle to documents and elements that are already 'internal' to the browser application. |
XProperties |
getProperties()
Returns the properties for this service. |
void |
open(String[] params)
Deprecated. Please use the open( XElement) method instead. |
abstract void |
open(XElement element)
Opens a process with an element from a document as argument. |
void |
setManager(XManager manager)
Sets the manager that allows the service to interact with other services and allows the service to get a programmatic handle to documents and elements that are already 'internal' to the browser application. |
void |
setProperties(XProperties properties)
Sets the properties for this service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XService()
Method Detail |
public final void setManager(XManager manager)
The manager is automatically set by a browser application when a new service is instantiated.
manager
- the global manager.public XManager getManager()
public final void setProperties(XProperties properties)
The properties are persisted by the browser application and could therefor be used by the the service to store service specific properties, like storing the last opened document, the last screen size and position and more...
properties
- the service specific properties.public XProperties getProperties()
The properties are persisted by the browser application and could therefor be used by the the service to store service specific properties, like storing the last opened document, the last screen size and position and more...
public abstract XDecorator getDecorator(XElementType type)
type
- the element-type.public abstract XAction[] getActions(XElementType type)
type
- the element-type.public void open(String[] params)
open( XElement)
method instead.
params
- the parameters set by the user.public abstract void open(XElement element)
element
- the element to open the process with.public abstract boolean close()
|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |