Class jabberwerx.ui.SubscriptionView

This allows the user to accept, deny or ignore (defer until later) a subscription
request. An instance of this class should be created upon a subscription request been
recieved, provided auto accept is not enabled in the RosterController. The user can
specify the contacts nickname and the group to which they should be added. It also
facilitates the creation of a new group on the fly.

When the accept action is undertaken, a subscription to the contacts presence status
is automatically invoked. When the deny action is undertaken, the contact, if present, is
automatically removed from the roster.

An event (actionComplete) will be triggered when an action has been undertaken. The
action will have been to either accept, deny or ignore the subscription request. More
details below.

It also binds a callback for "change" events on the
<select/> element.

Parameters:

{Document}doc

The document to use for creating content.

Returns:

{Element} The generated element to display

denySubscription()

Denies the subscription. This is the equivalent of clicking the deny button in the
UI.

{String}getGroup()

Get the currently set group

Returns:

{String} the group

{String}getNickname()

Get the currently set nickname

Returns:

{String} the nickname

hide()

Hides the form in the document.

ignoreSubscription()

Ignores the subscription. No response will be returned to the subscribe request and
the server will notify the client of the same subscription request upon their next log
in. This is the equivalent of clicking the ignore button in the UI.