Interface UserServicePropertiesDefinitionContext
-
public interface UserServicePropertiesDefinitionContextProvides a context to define the common properties of a user service.- Since:
- 5.8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetConfirmationMessageBeforeLaunch()Defines a generic confirmation message to be displayed when the service is launched as an action from a toolbar.voidsetConfirmationMessageBeforeLaunch(UserMessage aConfirmationMessage)Defines a localized confirmation message to be displayed when the service is launched as an action from a toolbar.voidsetConfirmationMessageBeforeLaunch(String aConfirmationMessage)Defines a confirmation message to be displayed when the service is launched as an action from a toolbar.voidsetDescription(UserMessage aDescription)Defines the service's default description.voidsetDescription(String aDescription)Defines the service's default description.voidsetGroup(ServiceGroupKey aServiceGroupKey)Defines the group to which this service belongs to.voidsetLabel(UserMessage aLabel)Defines the service's default title.voidsetLabel(String aLabel)Defines the service's default label.
-
-
-
Method Detail
-
setLabel
void setLabel(String aLabel)
Defines the service's default label.By default the label is the
ServiceKey.
-
setLabel
void setLabel(UserMessage aLabel)
Defines the service's default title.By default the label is the
ServiceKey.
-
setDescription
void setDescription(String aDescription)
Defines the service's default description.By default there is no description.
-
setDescription
void setDescription(UserMessage aDescription)
Defines the service's default description.By default there is no description.
-
setGroup
void setGroup(ServiceGroupKey aServiceGroupKey)
Defines the group to which this service belongs to.This method can only be used when declaring a new user service. It has no effect when declaring a service extension.
-
setConfirmationMessageBeforeLaunch
void setConfirmationMessageBeforeLaunch(String aConfirmationMessage)
Defines a confirmation message to be displayed when the service is launched as an action from a toolbar. By default, the service is launched directly without any confirmation.This method can only be used when declaring a new user service. It has no effect when declaring a service extension.
-
setConfirmationMessageBeforeLaunch
void setConfirmationMessageBeforeLaunch(UserMessage aConfirmationMessage)
Defines a localized confirmation message to be displayed when the service is launched as an action from a toolbar. By default, the service is launched directly without any confirmation.This method can only be used when declaring a new user service. It has no effect when declaring a service extension.
-
setConfirmationMessageBeforeLaunch
void setConfirmationMessageBeforeLaunch()
Defines a generic confirmation message to be displayed when the service is launched as an action from a toolbar. To define a specific confirmation message,setConfirmationMessageBeforeLaunch(UserMessage)can be used. By default, the service is launched directly without any confirmation.This method can only be used when declaring a new user service. It has no effect when declaring a service extension.
-
-