Page MenuHomeGitPull.it
Diviner All Atoms
    • Force the next query to fail with a simulated error. This should be used ONLY for unit tests. Unimplemented in this very child class.
    • Method
    • Meta-trait do expose some methods from PhabricatorCustomField to other traits. These are all implemented in PhabricatorCustomField.
    • Trait
    • File
    • Method
    • File
    • File
    • Find objects created by at least one of these authors.
    • Method
    • File
    • File
    • Throw an exception if no condition in a getPolicy() implementation in a subclass matched.
    • Method
    • File
    • File
    • Convenience method to quickly get a result view in a controller.
    • Method
    • Method
    • Method
    • Static listen interface for listening to events produced by any instance of this class. See @{method:listen} for documentation.
    • Method
    • Invoke a class event, notifying all listeners. You must declare the events your class invokes when you install it; see @{function:JX.install} for documentation. Any arguments you provide will be passed to listener callbacks.
    • Method
    • Add data to a node's metadata.
    • Method
    • Retrieve a node's metadata.
    • Method
    • Add a sigil to a node.
    • Method
    • Determine if a node has a specific sigil.
    • Method
    • Merge metadata. You must call this (even if you have no metadata) to start the Stratcom queue.
    • Method
    • Retrieve the event (if any) which is currently being dispatched.
    • Method
    • Pass on an event, allowing other handlers to process it. The use case here is generally something like:
    • Method
    • Dispatch a previously constructed proxy :JX.Event.
    • Method
    • Dispatch a native Javascript event through the Stratcom control flow. Generally, this is automatically called for you by the master dispatcher installed by ##init.js##. When you want to dispatch an application event, you should instead call invoke().
    • Method
    • Sometimes you may be interested in removing a listener directly from it's handler. This is possible by calling JX.Stratcom.removeCurrentListener()
    • Method
    • Dispatch a simple event that does not have a corresponding native event object. It is unusual to call this directly. Generally, you will instead dispatch events from an object using the invoke() method present on all objects. See @{method:invoke} in @{class:JX.Base} for documentation.
    • Method
    • Scroll to a specific position in the document.
    • Method
    • Scroll to the position of an element in the document.
    • Method
    • Get the current content frame, or `document.body` if one has not been set.
    • Method
    • Set specific nodes as content and frame nodes for the document.
    • Method
    • Focus a node safely. This is just a convenience wrapper that allows you to avoid IE's habit of throwing when nearly any focus operation is invoked.
    • Method
    • Select a node uniquely identified by an anchor, tagname, and sigil. This is similar to JX.DOM.find() but walks up the DOM tree instead of down it.
    • Method
    • Select a node uniquely identified by a root, tagname and sigil. This is similar to JX.DOM.scry() but expects exactly one result.
    • Method
    • Search the document for DOM nodes by providing a root node to look beneath, a tag name, and (optionally) a sigil. Nodes which match all specified conditions are returned.
    • Method
    • Hide one or more elements, by setting `display: none;` on them. This is a convenience method. See also @{method:show}.
    • Method
    • Show one or more elements, by removing their "display" style. This assumes you have hidden them with @{method:hide}, or explicitly set the style to `display: none;`.
    • Method
    • Method
    • Add or remove a class from a node.
    • Method
    • Method
    • Invoke a custom event on a node. This method is a companion to @{method:listen} in @{class:JX.DOM} and parallels @{method:invoke} in @{class:JX.Stratcom} in the same way that method parallels @{method:listen} in @{class:JX.Stratcom}.
    • Method
    • Listen for events occuring beneath a specific node in the DOM. This is similar to @{method:listen} in @{class:JX.Stratcom}, but allows you to specify some node which serves as a scope instead of the default scope (the whole document) which you get if you install using @{method:listen} in @{class:JX.Stratcom} directly. For example, to listen for clicks on on nodes with the sigil 'menu-item' below the root menu node:
    • Method
    • Test if an object is a node of some specific (or one of several) types. For example, this tests if the node is an ##<input />##, ##<select />##, or ##<textarea />##.
    • Method
    • Test if an object is a valid Node.
    • Method
    • Converts a form into a dictionary mapping input names to values. This will overwrite duplicate inputs in an undefined way.
    • Method
    • Converts a form into a list of <name, value> pairs.
    • Method
    • Replace a node with some other piece of content. This method obeys Javelin content semantics, see @{function:JX.$N} for an explanation. You can also @{method:setContent}, @{method:prependContent}, or @{method:appendContent}.
    • Method
    • Remove a node from its parent, so it is no longer a child of any other node.
    • Method
    • Internal, add content to a node using some specified mechanism.
    • Method
    • Internal, add content to a node by appending.
    • Method
    • Internal, add content to a node by prepending.
    • Method
    • Append content to some node. This method uses the same content semantics as other Javelin methods, see @{function:JX.$N} for an explanation. You can also @{method:setContent} or @{method:prependContent}.
    • Method
    • Prepend content to some node. This method uses the same content semantics as other Javelin methods, see @{function:JX.$N} for an explanation. You can also @{method:setContent} or @{method:appendContent}.
    • Method
    • Set the content of some node. This uses the same content semantics as other Javelin content methods, see @{function:JX.$N} for a detailed explanation. Previous content will be replaced: you can also @{method:prependContent} or @{method:appendContent}.
    • Method
    • Convert the raw HTML string into a DOM node tree.
    • Method
    • Determine the size of the viewport (basically, the browser window) by building a new vector where the 'x' component corresponds to the width of the viewport in pixels and the 'y' component corresponds to the height of the viewport in pixels.
    • Method
    • Get the sum of a node's position and its parent scroll offsets.
    • Method
    • Get the aggregate scroll offsets for a node and all of its parents.
    • Method
    • Determine the current scroll position by building a new vector where the 'x' component corresponds to how many pixels the user has scrolled from the left edge of the document, and the 'y' component corresponds to how many pixels the user has scrolled from the top edge of the document.
    • Method
    • Determine the width and height of a node by building a new vector with dimension information. The 'x' component of the vector will correspond to the element's width in pixels, and the 'y' component will correspond to its height in pixels.
    • Method
    • Determine where in a document an element is (or where an event, like a click, occurred) by building a new vector containing the position of a Node or @{class:JX.Event}. The 'x' component of the vector will correspond to the pixel offset of the argument relative to the left edge of the document, and the 'y' component will correspond to the pixel offset of the argument relative to the top edge of the document. Note that all vectors are generated in document coordinates, so the scroll position does not affect them.
    • Method
    • Change the size of a node by setting its dimensions to the vector's coordinates. For instance, if you want to change an element to be 100px by 100px:
    • Method
    • Move a node around by setting the position of a Node to the vector's coordinates. For instance, if you want to move an element to the top left corner of the document, you could do this (assuming it has 'position: absolute'):
    • Method
    • Set a string to display in the control when it is not focused, like "Type a user's name...". This string hints to the user how to use the control.
    • Method
    • This method is pretty much internal but @{class:JX.Tokenizer} needs access to it for delegation. You might also need to delegate events here if you build some kind of meta-control.
    • Method
    • Method
    • Method
    • Method
    • Method
    • Method
    • Method