Determines whether this provider can function currently or not. This is akin to the 'canExecute' function for commands.
Binds a handler to an Observable or to a dojo.connect. Binding to an Observable:
``` this.auto(someObservable, function (newValue) { });
with explicit scope:
this.auto(someObservable, this, function (newValue) { });
Alternately, pass an event name as a string to use dojo.connect:
this.auto(window, "onclick", function () { }); ```
Either an Observable (for observable bindings) or a regular object (if arg1 is a string)
If arg0 is an Observable, a function or scope object. Otherwise, an event name (to use with dojo.connect).
If arg0 is an Observable, a function handler.
This method creates attached and data bound views for each markup type (compactView and expandedView - if configured separately) specified in config Override this method if a provider needs to create more than one view (for e.g. DataLinks) for each markup type specified in config.
The configuration for this feature provider
Optional. A callback function which, if specified, is triggered after the views have been created, with the views as arguments. Useful for asynchronous providers like Datalinks.
Optional. If provided, will be used as the context for the created views. Otherwise the FeatureProviderBase class will itself be used as the context/viewModel for the views
Destroys the object completely
Disposes any bindings tracked by this object.
Gets a language resource from the Application's resource dictionary, given a key, and optional locale. Returns null if the resource does not exist.
The locale of the resource to fetch. Defaults to the current application locale.
This is called when the current feature changes, so that we might update our displays. This will likely change when a new result is selected from one of the result views.
A Geocortex Feature that we are displaying.
Override or attach to provide custom clean-up behaviour.
Tracks a subscription to an {@link geocortex.framework.commands.Command}, disposing it when this object is disposed with the destroy method.
Tracks a subscription to an {@link geocortex.framework.events.Event}, disposing it when this object is disposed with the destroy method.
Convenience method to update the provider state only if the current feature is available and the state has changed.
The current provider state. Provider will be set to enabled only if the current feature is available as well.
The current Feature this provider is providing details for