Validator which sanitizes HTML strings.
The tree of binding nodes represented in the markup.
Whether or not this view has been bound.
Regions belonging to (hosted in) this view.
Configuration materials.
A string for the name of the field that we will use for the template. This should be "description" or "longDescription" If not specified, the system will default to the long description.
The Observable description of the view.
A reference to the view that hosts the region that contains this view (if any)
The Observable icon URI of the view.
Indicates whether this view has been initialized and bound for the first time.
Whether or not this view is active.
The Observable isBusy flag of the view.
Whether or not this view is allowed to be managed by some sort of view management component.
Resource name of the markup for this view (if any).
The parent view of this view, if this view is the result of a collection binding.
The name of the region that this view is hosted in.
The root DOM element of this view.
The Observable title of the view.
The type name of this view.
The View Model backing this view. Does not necessarily have to be a formal instance of ViewModelBase.
Extract command hyperlinks and replace them with placeholders.
Inject command hyperlinks back into the subject of a previous extraction.
Sanitize a string of HTML.
Called when the view has been activated.
Adds an Observable binding that will be disposed of when the view is destroyed.
The Observable to bind to.
The token received from binding to the observable.
Called when the view has been added to a region or as another view in the form of a widget.
Applies a binding expression to a DOM node based on the type name of the binding.
The element being bound.
The binding expression.
The current data context.
The binding node to apply.
Renders a feature description into the provided HTML element, injecting command hyperlinks and image loading handlers.
The feature what we would like to get the description for
The HTML element to assign the description to.
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.
Builds a DOM attribute binding, binding a DOM attribute to a view model property or attaching directly to the DOM object.
The element being bound.
The binding expression.
The current data context.
Whether or not to directly modify the actual DOM element's own properties. Defaults to false
.
Build a class binding
Builds an enabled
/disabled
binding, simulating a cascading enabled/disabled state.
The element being bound.
The binding expression.
The current data context.
Builds a one-time DOM binding, binding to a DOM element in the view codebehind.
The element being bound.
The binding expression.
The current data context.
Builds an event binding, binding a DOM event to an event handler in the view.
Builds a complex binding between a source
and template
element.
Allows binding to collections of complex objects or singular complex objects.
The element being bound.
The binding expression.
The current data context.
The current binding node in the binding tree.
Builds an inline CSS style binding.
The element being bound.
The binding expression.
The current data context.
Builds a sanitized text binding. Strips out unsafe characters, and allows direct referencing of language keys.
The element being bound.
The binding expression.
The current data context.
Builds a tree of all binding expressions in this view and hooks up binding events as it goes. This method will recursively descend the DOM structure of its visual root and resolve binding expressions.
Builds a two-way binding between a form control and an Observable.
The element being bound.
The binding expression.
The current data context.
Builds a var binding, creating a variable in the view that references a DOM element.
The element being bound.
The binding expression.
The current data context.
Builds a visibility binding.
The element being bound.
The binding expression.
The current data context.
Builds a (one-time) widget binding.
The element being bound.
The binding expression.
The current data context.
Creates a cleansed copy of a format with any command hyperlinks replaced with click handlers
Called when the view has been deactivated.
Returns Html encoded ampersands to their non-html forms
the string to replace the ampersands to non html ampersands
String
Returns Html encoded quotes to their non-html forms
the string to replace the quotes to non html quotes
String
Renders a feature description into the provided HTML element, injecting command hyperlinks and image loading handlers.
The feature what we would like to get the description for
The HTML element to assign the description to.
Returns a description for the given feature capable of performing commands in hyperlinks. To be used with features that do not have relationships.
The feature what we would like to get the description for
Disposes any bindings tracked by this object.
Destroys all of this view's bindings, and by extension any views bound under this one. The primary purpose of this is to remove event subscriptions due to binding as well as dereferencing expensive DOM nodes so that they may be discarded.
Returns the target of a binding expression, taking into consideration Observables and pseudo-targets.
The binding whose target should be resolved.
Returns a description for the given feature. The description is populated with unbound command hyperlinks and image load handlers for handling layout changes. Consumers must bind this content themselves. Note that all anchor tags are converted to command hyperlinks that open the URLs only after verification via a ContentPolicy.
The feature what we would like to generate the descriptive content for.
Optional parameter. If provided, will override the descriptionFormat for the feature - to be used for eg. when relationship replacement tokens resolve asynchronously.
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.
A click handler for hyperlinks embedded in the descriptions returned from descriptionGet/descriptionApply
The event object that was fired with the click
The feature that is related to the description the click occurred in
Boolean if the event should propogate up
Override this method to add custom behavior on image load.
Returns a boolean indicating if the content field of the attached feature is populated
An event handler handler designed to stop events from propagating to overzealous parent views.
The event object that was fired with the click
The element where the click occurred
The feature that is related to the description the click occurred in
False. If this was embedded, we never want our parents notified
Inserts command hyperlinks and image load handlers, the latter for the purpose of handling layout changes.
Finds the id for the given command hyperlink. If one is not found, creates one and returns that.
Number
Override or attach to provide custom clean-up behaviour.
Attempts to parse the parameter string given into one with the given type. Also performs Token replacements
the parameter string you are attempting to parse
the type that you would like to get the parameter in.
the context to use for any token replacements
Either a single raw parameter value or a named dictionary of such.
Performs the initial data bind of the UI.
Clears the bindings on the current view model and reattaches the view to a new one. To be used when changing the feature in this view.
Called when a view has been removed from a region.
Given a binding expression and a view model, resolves the correct template to use.
The binding being satisfied.
The view model participating in the binding.
Override this method to resolve widgets by ID and context. Return a {@link geocortex.framework.config.WidgetConfig}, or null.
The ID of the widget to resolve.
The data context (view model) to bind the widget view to.
The binding expression that triggered this call to resolveWidget
.
Runs the command named with the given parameters and context
The name of the command we would like executed
The parameter to be fed to the command. Encoded in either JSON or Query String format.
The feature context that should be used for token replacements
Sets the value of the target of a binding expression, taking into consideration Observables and pseudo-targets.
The binding whose target should be resolved.
The value to set.
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.
Replaces any instances of the given token string with the attributes of a given feature, and returns if we any such substitutions occurred. Please note that unlike the 'formatTemplateStringAsync' method used when formatting template strings this method can also return objects if they represent valid parameters to a command.
The token string you would like to replace
The feature that should be used as a context for the token replacements
An object whose value parameter will contain the substituted output if the token substitution succeeds
Boolean
Construct a feature description presenter view.