Index an array of action listeners that are attached to the button. an array of all available buttons color change property listeners color change property listeners By declaring this property as an array in the prototype, the array is used for all instances making it a Class property. an array of valid hex values that are used to build a web-safe palette an array of property change listeners attached to this action an array of references obtained from by registering ids controls whether Jx uses a single, combined CSS file or individual ones. whether the action (and its associated interface object) is currently enabled or not. whether the button is enabled or not. the current alpha value, between 0 (transparent) and 1 (opaque) the HTML element representing the color panel a div used to represent the current colour in the button. the UL element that contains the items to pick from the current alpha of this button. the HTML element that is inserted into the DOM for this button an object containing a list of CSS files to be included to make the loaded Jx components function correctly This is the URL that Jx was loaded from, it is automatically calculated from the script tag src property that included Jx. the current colour of this button in hex. placeholder function to conform to the ActionListener interface. adds one or more buttons to the Multi button. adds one or more items to the picker, passed as separate arguments. add an action listener to the button add a colour change listener, an object that has a colorChanged function. add a colour change listener, an object that has a colorChanged function. add a listener to the provided list. add a property change listener to this action. Individual components of Jx call this function to get their style sheets imported at run time. handle the user entering a new alpha value manually by updating the selected alpha if the entered value is valid alpha (0-100). Static method that applies the PNG Filter Hack for IE browsers when showing 24bit PNG’s. tracks the load state of the content, specifically useful in the case of remote content. convenience function to bind an item to this action. the currently selected button handle the user selecting an item in the list colorChangeListener callback function when the user changes the colour in the panel (just update the preview). handle the user entering a new colour value manually by updating the selected colour if the entered value is valid HEX. callback function that handles remote content callback function that handles failure to load remote content removes all registered ids Element is a global object provided by the prototype.js library. return the size of the border area of an element. returns the border size for each edge of an element return the size of the content area of an element. returns the height of the browser client area returns the width of the browser client area returns the margin size for each edge of an element safely parse a number and return its integer value. return an object by id if it was previously registered returns the padding for each edge of an element return the dimensions of the browser client area. hide the colour panel hide the panel construct a new instance of Jx.Action that invokes a function when activated create a new button. initialize a new colour button. construct a new instance of a flyout button. construct a new instance of Jx.Button.Multi. construct a new instance of Jx.Button.Picker initialize a new instance of Jx.ColorPicker initialize the UniqueId object. return whether the action is currently enabled or not. Jx is a global singleton object that contains the entire Jx library within it. Jx.Action is a utility class that provides a mechanism to separate the user interface code from the implementation code for a particular piece of functionality. Jx.Button creates a clickable element in the application that is hooked to an instance of Jx.Action. A Jx.ColorPanel wrapped up in a Jx.Button. Flyout buttons expose a panel when the user clicks the button. Multi buttons are used to contain multiple buttons in a drop down list where only one button is actually visible and clickable in the interface. A Picker button allows the user to choose an item from a list of items. A Jx.ColorPanel presents a user interface for selecting colors. ContentLoader is a mix-in class that provides a consistent mechanism for other Jx controls to load content in one of four different ways: Jx.Listener is a mix-in class that performs common listener functions for objects that support listeners. A toolbar is a container object that contains other objects such as buttons. Jx.UniqueId is used to assign unique ids to selected elements This is used to solve a problem where multiple external html fragments are loaded into the DOM via ajax at runtime. handle the user pressing a key. triggers loading of content based on parameters passed in the options parameter. triggered when the user clicks the button, processes the actionPerformed event call each listener with a given method and event. implements the PropertyChangeListener interface for handling the enabled state changing on the action associated with this button searches the domObj for each of the ids passed in and obtains a unique reference to them so that subsequent calls to getObj will return the right object. remove an action listener from the button remove a previously added colour change listener remove a previously added colour change listener remove a listener from the provided list. remove a property change listener from this action. |