Class ZmFilterRuleDialog
Extends
DwtDialog.
This class presents a dialog which a user can use to add or edit a filter rule.
A filter rule consists of conditions and actions (at least one of each). Different
types of conditions and actions require different fields to specify them, so they
are presented in a table in which all columns are not necessarily occupied.
First the HTML is laid out, then DWT objects that are needed for input are plugged
in.
Defined in: ZmFilterRuleDialog.js.
Class Summary
Constructor Attributes |
Constructor Name and Description |
|
Creates a dialog for specifying a filter rule.
|
Method Summary
Method Attributes |
Method Name and Description |
|
Gets the tab group member.
|
|
Pops-down the dialog.
|
|
popup(rule, editMode, referenceRule, accountName, outgoing)
Pops-up the dialog and displays either a given rule for editing, or a dummy
rule that is the base for adding a new rule.
|
- Methods borrowed from class DwtDialog:
- associateEnterWithButton, getButton, getButtonEnabled, registerCallback, resetButtonStates, setButtonEnabled, setButtonListener, setButtonVisible, setEnterListener, unregisterCallback
- Methods borrowed from class DwtBaseDialog:
- addEnterListener, addPopdownListener, addPopupListener, cleanup, isPoppedUp, removePopdownListener, removePopupListener, reset, setContent, setTitle, setView
- Methods borrowed from class DwtComposite:
- addChild, cleanupSeparators, clear, dispose, getChild, getChildren, getNumChildren, removeChild, removeChildren
- Methods borrowed from class DwtControl:
- addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setCursor, setData, setDisplay, setDisplayState, setDragBox, setDragSource, setDropTarget, setEnabled, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setVisible, setZIndex, showAlert, zShow
Class Detail
ZmFilterRuleDialog()
Creates a dialog for specifying a filter rule. Can be used for either add or edit.
Author: Conrad Damon.
Method Detail
Gets the tab group member.
- Returns:
- {DwtTabGroup} the tab group
popdown()
Pops-down the dialog. Clears the conditions and actions table before popdown
so we don't keep adding to them.
popup(rule, editMode, referenceRule, accountName, outgoing)
Pops-up the dialog and displays either a given rule for editing, or a dummy
rule that is the base for adding a new rule.
- Parameters:
-
{ZmFilterRule} rule
- the rule to edit
-
{Boolean} editMode
- if
true , we are editing a rule
-
{ZmFilterRule} referenceRule
- the rule after which to add new rule
-
{String} accountName
- the name of the account
-
outgoing
|