com.artima.place
Interface Presentable
- All Known Subinterfaces:
- Place
- All Known Implementing Classes:
- URLFactory
- public interface Presentable
A Jini service interface for services that may activate
Links on behalf of users.
setServicePresenter
public void setServicePresenter(ServicePresenter presenter)
- Sets the
ServicePresenter. This method would usually be
invoked by the client to pass in a the service presenter context
object to the Presentable service, before attaching a
service UI.
- Parameters:
presenter - the ServicePresenter to which this
service may wish to delegate link activations
getServicePresenter
public ServicePresenter getServicePresenter()
- Gets the
ServicePresenter for this
Presentable service. This method will return the object
passed to the setServicePresenter method in its most
recent invocation. If the setServicePresenter method has
not yet been invoked, this method will return the default
ServicePresenter returned by the
ServicePresenter.getDefault method.
This method could be called by a service UI for a
Presentable service, when the service UI detects that the
user wishes to activate a link. The service UI can delegate the actual
activation of that link to the ServicePresenter returned
by this method.
- Returns:
- the
ServicePresenter to which this service may
wish to delegate link activations