| java.lang.Object org.directwebremoting.proxy.io.Context jsx3.lang.Object jsx3.app.Model jsx3.gui.Painted jsx3.gui.Block
All known Subclasses: jsx3.gui.Tree, jsx3.gui.RadioButton, jsx3.gui.TimePicker, jsx3.gui.matrix.Column, jsx3.gui.IFrame, jsx3.gui.Image, jsx3.gui.CheckBox, jsx3.chart.ChartComponent, jsx3.gui.DatePicker, jsx3.gui.LayoutGrid, jsx3.vector.Block, jsx3.gui.Table, jsx3.gui.ColorPicker, jsx3.gui.Select, jsx3.gui.WindowBar, jsx3.gui.BlockX, jsx3.gui.ImageButton, jsx3.gui.Tab, jsx3.gui.TabbedPane, jsx3.gui.ToolbarButton, jsx3.gui.TextBox, jsx3.gui.Stack, jsx3.gui.Splitter, jsx3.gui.Slider, jsx3.gui.Menu, jsx3.gui.Dialog, jsx3.gui.Button, jsx3.gui.Matrix,
Block | public class Block extends jsx3.gui.Painted (Code) | | This class provides a container-based, object-oriented approach to creating static html objects (basically this class creates "DIV" objects). This class is useful for creating objects as simple as 'labels' that can be placed anywhere on the screen. The advantage to using this class instead of trying to insert static html in the html window is that it allows the given HTML string to be managed by the 'container-management' strategy employed by the JSX Architecture
author: Joe Walker [joe at getahead dot org] author: DRAPGEN - Dwr Reverse Ajax Proxy GENerator |
Constructor Summary | |
public | Block(Context context, String extension, ScriptProxy scriptProxy) | public | Block(String strName, int vntLeft, int vntTop, String vntWidth, int vntHeight, String strHTML) | public | Block(String strName, String vntLeft, String vntTop, int vntWidth, String vntHeight, String strHTML) | public | Block(String strName, int vntLeft, String vntTop, int vntWidth, String vntHeight, String strHTML) | public | Block(String strName, int vntLeft, String vntTop, int vntWidth, int vntHeight, String strHTML) | public | Block(String strName, String vntLeft, int vntTop, String vntWidth, int vntHeight, String strHTML) | public | Block(String strName, String vntLeft, int vntTop, String vntWidth, String vntHeight, String strHTML) | public | Block(String strName, String vntLeft, int vntTop, int vntWidth, int vntHeight, String strHTML) | public | Block(String strName, int vntLeft, String vntTop, String vntWidth, int vntHeight, String strHTML) | public | Block(String strName, int vntLeft, String vntTop, String vntWidth, String vntHeight, String strHTML) | public | Block(String strName, int vntLeft, int vntTop, int vntWidth, int vntHeight, String strHTML) | public | Block(String strName, String vntLeft, String vntTop, int vntWidth, int vntHeight, String strHTML) | public | Block(String strName, int vntLeft, int vntTop, int vntWidth, String vntHeight, String strHTML) | public | Block(String strName, String vntLeft, String vntTop, String vntWidth, int vntHeight, String strHTML) | public | Block(String strName, String vntLeft, int vntTop, int vntWidth, String vntHeight, String strHTML) | public | Block(String strName, String vntLeft, String vntTop, String vntWidth, String vntHeight, String strHTML) | public | Block(String strName, int vntLeft, int vntTop, String vntWidth, String vntHeight, String strHTML) |
Method Summary | |
public jsx3.lang.Object | doEvent(String strType, jsx3.lang.Object objContext) Publishes a model event. | public T | doEvent(String strType, jsx3.lang.Object objContext, Class<T> returnType) Publishes a model event. | public void | getBackground(org.directwebremoting.proxy.Callback<String> callback) | public void | getBackgroundColor(org.directwebremoting.proxy.Callback<String> callback) | public void | getBorder(org.directwebremoting.proxy.Callback<String> callback) | public void | getCSSOverride(org.directwebremoting.proxy.Callback<String> callback) Returns CSS text to override the standard instance properties on the painted object. | public void | getCanDrag(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether is object supports programmatic drag, meanining it will allow any contained item to be
dragged and dropped on another container supporting drop. | public void | getCanDrop(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether this object can be the target of a drop event. | public void | getCanMove(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether is object can be moved around the screen (this is not the same as drag/drop). | public void | getCanSpy(org.directwebremoting.proxy.Callback<Integer> callback) Returns whether is object can be spyglassed. | public void | getClassName(org.directwebremoting.proxy.Callback<String> callback) Returns the named CSS rule(s) to apply to the painted object. | public void | getColor(org.directwebremoting.proxy.Callback<String> callback) | public void | getCursor(org.directwebremoting.proxy.Callback<String> callback) | public void | getDimensions(org.directwebremoting.proxy.Callback<Object[]> callback) | public void | getDisplay(org.directwebremoting.proxy.Callback<String> callback) | public void | getEvent(String strType, org.directwebremoting.proxy.Callback<String> callback) Returns the event script registered for the given event type. | public jsx3.lang.Object | getEvents() Returns the associative array containing all the registered event script of this object. | public T | getEvents(Class<T> returnType) Returns the associative array containing all the registered event script of this object. | public void | getFontName(org.directwebremoting.proxy.Callback<String> callback) | public void | getFontSize(org.directwebremoting.proxy.Callback<Integer> callback) | public void | getFontWeight(org.directwebremoting.proxy.Callback<String> callback) Returns the CSS font-weight for the object ("bold" or "normal")
Parameters: callback - [jsx3.gui.Block.FONTBOLD. | public void | getHeight(org.directwebremoting.proxy.Callback<Integer> callback) Returns the height property of this object. | public void | getIndex(org.directwebremoting.proxy.Callback<Integer> callback) | public void | getLeft(org.directwebremoting.proxy.Callback<Integer> callback) Returns the left property of this object. | public void | getMargin(org.directwebremoting.proxy.Callback<String> callback) | public void | getMenu(org.directwebremoting.proxy.Callback<String> callback) Returns the name of the jsx3.gui.Menu instance to display (as a context menu) when a user
clicks on this object with the right button. | public void | getOverflow(org.directwebremoting.proxy.Callback<Integer> callback) | public void | getPadding(org.directwebremoting.proxy.Callback<String> callback) | public void | getRelativePosition(org.directwebremoting.proxy.Callback<Integer> callback) | public void | getTagName(org.directwebremoting.proxy.Callback<String> callback) | public void | getText(org.directwebremoting.proxy.Callback<String> callback) Returns the text/HTML for the control to be displayed on-screen; returns an empty string if null; since the text
is rendered on-screen as browser-native HTML, the equivalent of an empty tag (e.g., ) would be an
enclosing tag with an empty string (no content): . | public void | getTextAlign(org.directwebremoting.proxy.Callback<String> callback) | public void | getTip(org.directwebremoting.proxy.Callback<String> callback) Returns the tooltip text to display when the object is hovered over. | public void | getTop(org.directwebremoting.proxy.Callback<Integer> callback) Returns the top property of this object. | public void | getVisibility(org.directwebremoting.proxy.Callback<String> callback) | public void | getWidth(org.directwebremoting.proxy.Callback<Integer> callback) Returns the width property of this object. | public void | getZIndex(org.directwebremoting.proxy.Callback<Integer> callback) | public void | hasEvent(String strType, org.directwebremoting.proxy.Callback<String> callback) Returns true if there is a event script registered for the given event type. | public void | hideMask() | public jsx3.gui.HotKey | registerHotKey(String vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(String vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(jsx3.gui.HotKey vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.HotKey | registerHotKey(jsx3.gui.HotKey vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt) Registers a hot key with this JSX model node. | public jsx3.gui.Interactive | removeEvent(String strType) Removes an event script registered for the given model event type. | public T | removeEvent(String strType, Class<T> returnType) Removes an event script registered for the given model event type. | public jsx3.gui.Interactive | removeEvents() Removes all events scripts registered with this object. | public T | removeEvents(Class<T> returnType) Removes all events scripts registered with this object. | public jsx3.gui.Block | setBackground(String strBG) | public jsx3.gui.Block | setBackgroundColor(String strColor, boolean bRepaint) Sets valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0));
returns reference to self to facilitate method chaining;
Parameters: strColor - valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0)) Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . | public jsx3.gui.Block | setBorder(String strCSS, boolean bRecalc) Sets CSS property value(s) for a border (border: solid 1px #000000). | public jsx3.gui.Block | setCSSOverride(String strCSS) Sets CSS text to override the standard instance properties on the painted object. | public jsx3.gui.Interactive | setCanDrag(int bDrag) Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped. | public T | setCanDrag(int bDrag, Class<T> returnType) Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped. | public jsx3.gui.Interactive | setCanDrop(int bDrop) Sets whether this object can be the target of a drop event. | public T | setCanDrop(int bDrop, Class<T> returnType) Sets whether this object can be the target of a drop event. | public jsx3.gui.Interactive | setCanMove(int bMovable) Sets whether is object can be moved around the screen (this is not the same as drag/drop). | public T | setCanMove(int bMovable, Class<T> returnType) Sets whether is object can be moved around the screen (this is not the same as drag/drop). | public jsx3.gui.Interactive | setCanSpy(int bSpy) Sets whether is object can be spyglassed. | public T | setCanSpy(int bSpy, Class<T> returnType) Sets whether is object can be spyglassed. | public jsx3.gui.Block | setClassName(String strClassName) Sets the named CSS rule(s) to apply to the painted object. | public jsx3.gui.Block | setColor(String strColor, boolean bRepaint) Sets valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0));
returns reference to self to facilitate method chaining;
Parameters: strColor - valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0)) Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . | public void | setCursor(String strCursor, boolean bRepaint) | public void | setDimensions(String left, int top, int width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, int top, int width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, int top, String width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(String left, int top, String width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, int top, String width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(String left, String top, int width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, String top, String width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, String top, int width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, int top, String width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(String left, int top, int width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, String top, String width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(String left, String top, String width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, int top, String width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, int top, int width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(String left, String top, int width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, String top, String width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, String top, int width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(Object[] left, int top, int width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, String top, int width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, String top, int width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(String left, String top, String width, int height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, int top, int width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(String left, int top, String width, String height, boolean bRepaint) Set one to four dimensions at once. | public void | setDimensions(int left, String top, String width, String height, boolean bRepaint) Set one to four dimensions at once. | public jsx3.gui.Block | setDisplay(String intDisplay, boolean bRepaint) Sets the display for the object. | public jsx3.gui.Interactive | setEvent(String strScript, String strType) Programmatically sets an event of this instance. | public T | setEvent(String strScript, String strType, Class<T> returnType) Programmatically sets an event of this instance. | public jsx3.gui.Block | setFontName(String strFontName) | public jsx3.gui.Block | setFontSize(int intPixelSize) | public jsx3.gui.Block | setFontWeight(String FONTWEIGHT) Sets the CSS font-weight for the object ("bold" or "normal");
returns reference to self to facilitate method chaining;
Parameters: FONTWEIGHT - [jsx3.gui.Block.FONTBOLD. | public jsx3.gui.Block | setHeight(String vntHeight, boolean bRepaint) Sets the height property of this object.
Parameters: vntHeight - the height as a non-negative integer or non-negative percentage. | public jsx3.gui.Block | setHeight(int vntHeight, boolean bRepaint) Sets the height property of this object.
Parameters: vntHeight - the height as a non-negative integer or non-negative percentage. | public jsx3.gui.Block | setIndex(int intIndex, boolean bRepaint) Sets IE tab index for setting the tabIndex property for the on-screen DHTML for the object;
returns reference to self to facilitate method chaining;
Parameters: intIndex - any value in the valid range of -32767 to 32767 Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . | public jsx3.gui.Block | setLeft(int vntLeft, boolean bRepaint) Sets the left property of this object. | public jsx3.gui.Block | setLeft(String vntLeft, boolean bRepaint) Sets the left property of this object. | public jsx3.gui.Block | setMargin(String strCSS, boolean bRecalc) Sets CSS property value for margin.
Parameters: strCSS - The preferred method to set margin is by moving clockwise, beginning with the northcompass position, without the pixel designation. | public jsx3.gui.Interactive | setMenu(String strMenu) Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. | public T | setMenu(String strMenu, Class<T> returnType) Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. | public jsx3.gui.Block | setOverflow(int OVERFLOW) | public jsx3.gui.Block | setPadding(String strCSS, boolean bRecalc) Sets the CSS property value for padding an object.
Parameters: strCSS - The preferred method to set padding is by moving clockwise, beginning with the northcompass position, without the pixel designation. | public jsx3.gui.Block | setRelativePosition(int intRelative, boolean bRepaint) Sets if the jsx3.gui.Block instance is relatively positioned on-screen;
returns reference to self to facilitate method chaining;
Parameters: intRelative - jsx3.gui.Block.RELATIVE will be applied to the view if null. | public void | setSpyStyles(String strCSS) Sets the CSS definition to apply to an HTML element when a spyglass is shown for that element
Parameters: strCSS - valid CSS. | public jsx3.gui.Block | setTagName(String strTagName) | public jsx3.gui.Block | setText(String strText, boolean bRepaint) | public jsx3.gui.Block | setTextAlign(String ALIGN) | public jsx3.gui.Block | setTip(String strTip) Sets the tooltip text to display when the object is hovered over. | public jsx3.gui.Block | setTop(String vntTop, boolean bRepaint) Sets the top property of this object. | public jsx3.gui.Block | setTop(int vntTop, boolean bRepaint) Sets the top property of this object. | public void | setVisibility(String VISIBILITY, boolean bRepaint) | public jsx3.gui.Block | setWidth(String vntWidth, boolean bRepaint) Sets the width property of this object.
Parameters: vntWidth - the width as non-negative integer or non-negative percentage. | public jsx3.gui.Block | setWidth(int vntWidth, boolean bRepaint) Sets the width property of this object.
Parameters: vntWidth - the width as non-negative integer or non-negative percentage. | public void | setZIndex(int intZIndex, boolean bRepaint) | public void | showMask(String strMessage) displays a "blocking mask" inside the block to stop user interactions with content within the block. | public void | showSpy(String strHTML, int intLeft, int intTop) called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. | public void | showSpy(String strHTML, jsx3.gui.Event intLeft, int intTop) called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. |
ABSOLUTE | final public static int ABSOLUTE(Code) | | 0
|
ALIGNCENTER | final public static String ALIGNCENTER(Code) | | center
|
ALIGNLEFT | final public static String ALIGNLEFT(Code) | | left (default)
|
DEFAULTCOLOR | final public static String DEFAULTCOLOR(Code) | | #000000
|
DEFAULTFONTNAME | final public static String DEFAULTFONTNAME(Code) | | Verdana
|
DEFAULTTAGNAME | final public static String DEFAULTTAGNAME(Code) | | span
|
DISPLAYBLOCK | final public static String DISPLAYBLOCK(Code) | | [empty string] (default)
|
DISPLAYNONE | final public static String DISPLAYNONE(Code) | | none
|
FONTNORMAL | final public static String FONTNORMAL(Code) | | normal (default)
|
OVERFLOWEXPAND | final public static int OVERFLOWEXPAND(Code) | | 3 (default)
|
OVERFLOWHIDDEN | final public static int OVERFLOWHIDDEN(Code) | | 2
|
RELATIVE | final public static int RELATIVE(Code) | | 1 (default)
|
SPACE | final public static String SPACE(Code) | | JSX/images/spc.gif
|
VISIBILITYHIDDEN | final public static String VISIBILITYHIDDEN(Code) | | hidden
|
VISIBILITYVISIBLE | final public static String VISIBILITYVISIBLE(Code) | | [empty string] (default)
|
Block | public Block(Context context, String extension, ScriptProxy scriptProxy)(Code) | | All reverse ajax proxies need context to work from
Parameters: scriptProxy - The place we are writing scripts to Parameters: context - The script that got us to where we are now |
Block | public Block(String strName, int vntLeft, int vntTop, String vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, String vntTop, int vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, int vntLeft, String vntTop, int vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, int vntLeft, String vntTop, int vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, int vntTop, String vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, int vntTop, String vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, int vntTop, int vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, int vntLeft, String vntTop, String vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, int vntLeft, String vntTop, String vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, int vntLeft, int vntTop, int vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, String vntTop, int vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, int vntLeft, int vntTop, int vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, String vntTop, String vntWidth, int vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, int vntTop, int vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, String vntLeft, String vntTop, String vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
Block | public Block(String strName, int vntLeft, int vntTop, String vntWidth, String vntHeight, String strHTML)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application Parameters: vntLeft - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntTop - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntWidth - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: vntHeight - either a number (i.e, 12, 30, etc) or a number and a unit value (i.e., "25%", "36pt", etc); if a number is passed, pixels will be the assumed unit when painted to screen Parameters: strHTML - Text/HTML markup to place in the jsx3.gui.Block instance |
doEvent | public jsx3.lang.Object doEvent(String strType, jsx3.lang.Object objContext)(Code) | | Publishes a model event. This method both evaluates any registered event script for the given event type
and publishes the event through the EventDispatcher interface. This method ensures that any
registered event script is executed in isolation to prevent most side effects.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: objContext - JavaScript object array with name/value pairs that provide a localvariable stack for the execution of the event script. This argument is also passed as the context property of the event object that is published through the EventDispatcher interface. the result of evaluating the event script or null if not event script is registered |
doEvent | public T doEvent(String strType, jsx3.lang.Object objContext, Class<T> returnType)(Code) | | Publishes a model event. This method both evaluates any registered event script for the given event type
and publishes the event through the EventDispatcher interface. This method ensures that any
registered event script is executed in isolation to prevent most side effects.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: objContext - JavaScript object array with name/value pairs that provide a localvariable stack for the execution of the event script. This argument is also passed as the context property of the event object that is published through the EventDispatcher interface. Parameters: returnType - The expected return type the result of evaluating the event script or null if not event script is registered |
getBackground | public void getBackground(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns valid CSS property value for the background such as: background-image:url(x.gif); or background-image:url(x.gif);background-repeat:no-repeat;
Parameters: callback - valid CSS property for the background such as: background-image:url(x.gif); or background-image:url(x.gif);background-repeat:no-repeat; |
getBackgroundColor | public void getBackgroundColor(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0))
Parameters: callback - valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0)) |
getCanDrag | public void getCanDrag(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns whether is object supports programmatic drag, meanining it will allow any contained item to be
dragged and dropped on another container supporting drop.
Parameters: callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE |
getCanMove | public void getCanMove(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns whether is object can be moved around the screen (this is not the same as drag/drop).
Parameters: callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE |
getColor | public void getColor(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0))
Parameters: callback - valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0)) |
getCursor | public void getCursor(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns valid CSS property value, (e.g., default,wait,col-resize); if no value or an empty string, null is returned
Parameters: callback - valid CSS property value, (e.g., default,wait,col-resize) |
getEvent | public void getEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns the event script registered for the given event type. This script could have been set by the
setEvent() method or during component deserialization.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: callback - the JavaScript event script |
getEvents | public jsx3.lang.Object getEvents()(Code) | | Returns the associative array containing all the registered event script of this object. This method returns
the instance field itself and not a copy.
an associative array mapping event type to event script |
getEvents | public T getEvents(Class<T> returnType)(Code) | | Returns the associative array containing all the registered event script of this object. This method returns
the instance field itself and not a copy.
Parameters: returnType - The expected return type an associative array mapping event type to event script |
getOverflow | public void getOverflow(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns the overflow property for the object, that defines how its on-screen view will behave when its contents are larger than its specified width and/or height
Parameters: callback - [jsx3.gui.Block.OVERFLOWSCROLL, jsx3.gui.Block.OVERFLOWHIDDEN, jsx3.gui.Block.OVERFLOWEXPAND] |
getTagName | public void getTagName(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns HTML tag name to use when rendering the object on-screen (span is the default); if the property is null,
jsx3.gui.Block.DEFAULTTAGNAME is used;
Parameters: callback - valid HTML tag name |
getText | public void getText(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns the text/HTML for the control to be displayed on-screen; returns an empty string if null; since the text
is rendered on-screen as browser-native HTML, the equivalent of an empty tag (e.g., ) would be an
enclosing tag with an empty string (no content): . To return null would be equivalent to
null, which is not the same as
|
getTextAlign | public void getTextAlign(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns the CSS text-align property for the object; if no property value exists, jsx3.gui.Block.ALIGNLEFT is returned by default
Parameters: callback - one of: jsx3.gui.Block.ALIGNLEFT, jsx3.gui.Block.ALIGNRIGHT, jsx3.gui.Block.ALIGNCENTER |
hasEvent | public void hasEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns true if there is a event script registered for the given event type.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: callback - the JavaScript event script |
hideMask | public void hideMask()(Code) | | removes the "blocking" mask inside the block to stop user interactions with existing content
|
registerHotKey | public jsx3.gui.HotKey registerHotKey(String vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(String vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(jsx3.gui.HotKey vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
registerHotKey | public jsx3.gui.HotKey registerHotKey(jsx3.gui.HotKey vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code) | | Registers a hot key with this JSX model node. All keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.
Parameters: vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey , in which case allother parameters are ignored. Parameters: vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode() ). If it is an integer, the hot key will match thatkeycode value. Parameters: bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key. Parameters: bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key. Parameters: bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key. |
removeEvent | public jsx3.gui.Interactive removeEvent(String strType)(Code) | | Removes an event script registered for the given model event type.
Parameters: strType - the event type, one of the model event types defined as static fields in this class this object |
removeEvent | public T removeEvent(String strType, Class<T> returnType)(Code) | | Removes an event script registered for the given model event type.
Parameters: strType - the event type, one of the model event types defined as static fields in this class Parameters: returnType - The expected return type this object |
removeEvents | public T removeEvents(Class<T> returnType)(Code) | | Removes all events scripts registered with this object.
Parameters: returnType - The expected return type this object |
setBackground | public jsx3.gui.Block setBackground(String strBG)(Code) | | Sets valid CSS property value for the background such as: background-image:url(x.gif); or background-image:url(x.gif);background-repeat:no-repeat;
returns reference to self to facilitate method chaining;
Parameters: strBG - valid CSS property value for the background such as: background-image:url(x.gif); or background-image:url(x.gif);background-repeat:no-repeat; this object |
setBackgroundColor | public jsx3.gui.Block setBackgroundColor(String strColor, boolean bRepaint)(Code) | | Sets valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0));
returns reference to self to facilitate method chaining;
Parameters: strColor - valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0)) Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object |
setBorder | public jsx3.gui.Block setBorder(String strCSS, boolean bRecalc)(Code) | | Sets CSS property value(s) for a border (border: solid 1px #000000). Properties can be strung
together as in: border:solid 1px #989885;border-left-width:0px;
Parameters: strCSS - valid CSS property value for a border (border: solid 1px #000000) Parameters: bRecalc - if true, the VIEW will be updated with requiring a repaint this object |
setCSSOverride | public jsx3.gui.Block setCSSOverride(String strCSS)(Code) | | Sets CSS text to override the standard instance properties on the painted object. Convenience method for extending this object. CSS properties affecting layout, including border-width, padding, margin, width, and height
are strongly discouraged, as they may interfere with the framework's internal box models.
Since some controls are composited from multiple HTML elements, some styles may not cascade to nested elements.
Instance Properties are the preferred method for applying styles.
Parameters: strCSS - CSS text. Fore example, color:red;background-color:orange; this object |
setCanDrag | public jsx3.gui.Interactive setCanDrag(int bDrag)(Code) | | Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped.
Implementing classes can decide whether to consult this value or ignore it.
Parameters: bDrag - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanDrag | public T setCanDrag(int bDrag, Class<T> returnType)(Code) | | Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped.
Implementing classes can decide whether to consult this value or ignore it.
Parameters: bDrag - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setCanDrop | public jsx3.gui.Interactive setCanDrop(int bDrop)(Code) | | Sets whether this object can be the target of a drop event. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bDrop - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanDrop | public T setCanDrop(int bDrop, Class<T> returnType)(Code) | | Sets whether this object can be the target of a drop event. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bDrop - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setCanMove | public jsx3.gui.Interactive setCanMove(int bMovable)(Code) | | Sets whether is object can be moved around the screen (this is not the same as drag/drop). Implementing classes
can decide whether to consult this value or ignore it.
Parameters: bMovable - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanMove | public T setCanMove(int bMovable, Class<T> returnType)(Code) | | Sets whether is object can be moved around the screen (this is not the same as drag/drop). Implementing classes
can decide whether to consult this value or ignore it.
Parameters: bMovable - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setCanSpy | public jsx3.gui.Interactive setCanSpy(int bSpy)(Code) | | Sets whether is object can be spyglassed. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bSpy - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object |
setCanSpy | public T setCanSpy(int bSpy, Class<T> returnType)(Code) | | Sets whether is object can be spyglassed. Implementing classes can decide whether to consult
this value or ignore it.
Parameters: bSpy - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE Parameters: returnType - The expected return type this object |
setClassName | public jsx3.gui.Block setClassName(String strClassName)(Code) | | Sets the named CSS rule(s) to apply to the painted object. Rules that specify border-width, padding, margin, width, and height are strongly discouraged.
Multiple rules may be specified, delimited with a space. For example, label emphasis.
Since some controls are composited from multiple HTML elements, some rule styles may not cascade to nested elements.
Dynamic Properties are the preferred method for applying global styles.
Parameters: strClassName - CSS property name without the leading "." this object |
setColor | public jsx3.gui.Block setColor(String strColor, boolean bRepaint)(Code) | | Sets valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0));
returns reference to self to facilitate method chaining;
Parameters: strColor - valid CSS property value, (e.g., red, #ffffff, rgb(255,0,0)) Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object |
setCursor | public void setCursor(String strCursor, boolean bRepaint)(Code) | | Sets valid CSS property value, (e.g., default,wait,col-resize)
Parameters: strCursor - valid CSS property value, (e.g., default,wait,col-resize) Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . |
setDimensions | public void setDimensions(String left, int top, int width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, int top, int width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, int top, String width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(String left, int top, String width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, int top, String width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(String left, String top, int width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, String top, String width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, String top, int width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, int top, String width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(String left, int top, int width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, String top, String width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(String left, String top, String width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, int top, String width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, int top, int width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(String left, String top, int width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, String top, String width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, String top, int width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(Object[] left, int top, int width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, String top, int width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, String top, int width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(String left, String top, String width, int height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, int top, int width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(String left, int top, String width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDimensions | public void setDimensions(int left, String top, String width, String height, boolean bRepaint)(Code) | | Set one to four dimensions at once. This operation is more efficient than calling more than one of
setLeft, setTop, etc. Any argument can be null to indicate not to update it.
Parameters: left - the new left value or an array containing all four new values Parameters: top - the new top value Parameters: width - the new width value Parameters: height - the new height value Parameters: bRepaint - whether to update the display of this object immediately. If left isan Array then this parameter is the second parameter passed to this method. |
setDisplay | public jsx3.gui.Block setDisplay(String intDisplay, boolean bRepaint)(Code) | | Sets the display for the object. Note that although the framework uses CSS to apply this setting, the actual values that get set are determined by the system.
Only those parameters listed for @DISPLAY are supported as inputs to this function.
Parameters: intDisplay - one of jsx3.gui.Block.DISPLAYNONE (display:none;) and jsx3.gui.Block.DISPLAYBLOCK (display:;) Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object |
setEvent | public jsx3.gui.Interactive setEvent(String strScript, String strType)(Code) | | Programmatically sets an event of this instance. Sets the script that will execute when this object publishes
a model event. The script value will be saved in the serialization file of a component. Not all classes that
implement this interface will publish events of every type. Consult the documentation of a class for a
description of the events it publishes.
For programmatic registering of event handlers when persistence in a serialization file is not required,
consider using jsx3.util.EventDispatcher.subscribe() instead of this method. Whenever a model
event is published, it is published using the EventDispatcher interface as well as by executing
any registered event script.
Parameters: strScript - the actual JavaScript code that will execute when the given event is published.For example: obj.setEvent("alert('hello.');", jsx3.gui.Interactive.EXECUTE); Parameters: strType - the event type. Must be one of the model event types defined as static fields in this class reference to this |
setEvent | public T setEvent(String strScript, String strType, Class<T> returnType)(Code) | | Programmatically sets an event of this instance. Sets the script that will execute when this object publishes
a model event. The script value will be saved in the serialization file of a component. Not all classes that
implement this interface will publish events of every type. Consult the documentation of a class for a
description of the events it publishes.
For programmatic registering of event handlers when persistence in a serialization file is not required,
consider using jsx3.util.EventDispatcher.subscribe() instead of this method. Whenever a model
event is published, it is published using the EventDispatcher interface as well as by executing
any registered event script.
Parameters: strScript - the actual JavaScript code that will execute when the given event is published.For example: obj.setEvent("alert('hello.');", jsx3.gui.Interactive.EXECUTE); Parameters: strType - the event type. Must be one of the model event types defined as static fields in this class Parameters: returnType - The expected return type reference to this |
setFontName | public jsx3.gui.Block setFontName(String strFontName)(Code) | | Sets the CSS font-family for the object;
returns reference to self to facilitate method chaining;
Parameters: strFontName - valid CSS font-family property value this object |
setFontSize | public jsx3.gui.Block setFontSize(int intPixelSize)(Code) | | Sets the CSS font-size for the object;
returns reference to self to facilitate method chaining;
Parameters: intPixelSize - font-size (in pixels) this object |
setFontWeight | public jsx3.gui.Block setFontWeight(String FONTWEIGHT)(Code) | | Sets the CSS font-weight for the object ("bold" or "normal");
returns reference to self to facilitate method chaining;
Parameters: FONTWEIGHT - [jsx3.gui.Block.FONTBOLD. jsx3.gui.Block.FONTNORMAL] this object |
setHeight | public jsx3.gui.Block setHeight(String vntHeight, boolean bRepaint)(Code) | | Sets the height property of this object.
Parameters: vntHeight - the height as a non-negative integer or non-negative percentage. For example: 45%, 12. Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object. |
setHeight | public jsx3.gui.Block setHeight(int vntHeight, boolean bRepaint)(Code) | | Sets the height property of this object.
Parameters: vntHeight - the height as a non-negative integer or non-negative percentage. For example: 45%, 12. Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object. |
setIndex | public jsx3.gui.Block setIndex(int intIndex, boolean bRepaint)(Code) | | Sets IE tab index for setting the tabIndex property for the on-screen DHTML for the object;
returns reference to self to facilitate method chaining;
Parameters: intIndex - any value in the valid range of -32767 to 32767 Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object |
setLeft | public jsx3.gui.Block setLeft(int vntLeft, boolean bRepaint)(Code) | | Sets the left property of this object. The left property specifies the horizontal offset of this object
from its parent and only applies if this object is absolutely positioned.
Parameters: vntLeft - the left value. Only numeric values and percentages are supported. For example: 25, -10, 20%. Parameters: bRepaint - if @vntLeft is in integer (a number with no modifier) and @bRepaint is true, the object's on-screen VIEW is immediately updated to match its MODEL, obviating the need to call '[object].repaint()' this object. |
setLeft | public jsx3.gui.Block setLeft(String vntLeft, boolean bRepaint)(Code) | | Sets the left property of this object. The left property specifies the horizontal offset of this object
from its parent and only applies if this object is absolutely positioned.
Parameters: vntLeft - the left value. Only numeric values and percentages are supported. For example: 25, -10, 20%. Parameters: bRepaint - if @vntLeft is in integer (a number with no modifier) and @bRepaint is true, the object's on-screen VIEW is immediately updated to match its MODEL, obviating the need to call '[object].repaint()' this object. |
setMargin | public jsx3.gui.Block setMargin(String strCSS, boolean bRecalc)(Code) | | Sets CSS property value for margin.
Parameters: strCSS - The preferred method to set margin is by moving clockwise, beginning with the northcompass position, without the pixel designation. For example, to specify a top margin of 8 pixels, use 8 0 0 0 . CSS syntax issupported, but requires that pixels be designated. For example, using margin:5px;margin-left:10px; , is equivalent to5 5 5 10 . Parameters: bRecalc - if true, the VIEW will be updated with requiring a repaint this object |
setMenu | public jsx3.gui.Interactive setMenu(String strMenu)(Code) | | Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. The name is a pointer by-name to a JSX object in the same server.
Parameters: strMenu - name or id (jsxname or jsxid) of the context menu this object |
setMenu | public T setMenu(String strMenu, Class<T> returnType)(Code) | | Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. The name is a pointer by-name to a JSX object in the same server.
Parameters: strMenu - name or id (jsxname or jsxid) of the context menu Parameters: returnType - The expected return type this object |
setOverflow | public jsx3.gui.Block setOverflow(int OVERFLOW)(Code) | | Sets the overflow property for the object, that defines how its on-screen view will behave when its contents are larger than its specified width and/or height;
returns reference to self to facilitate method chaining;
Parameters: OVERFLOW - [jsx3.gui.Block.OVERFLOWSCROLL, jsx3.gui.Block.OVERFLOWHIDDEN, jsx3.gui.Block.OVERFLOWEXPAND] this object |
setPadding | public jsx3.gui.Block setPadding(String strCSS, boolean bRecalc)(Code) | | Sets the CSS property value for padding an object.
Parameters: strCSS - The preferred method to set padding is by moving clockwise, beginning with the northcompass position, without the pixel designation. For example, to specify a top padding of 8 pixels, use 8 0 0 0 . CSS syntax issupported, but requires that pixels be designated. For example, using padding:5px;padding-left:10px; , is equivalent to5 5 5 10 . Parameters: bRecalc - if true, the VIEW will be updated with requiring a repaint this object |
setRelativePosition | public jsx3.gui.Block setRelativePosition(int intRelative, boolean bRepaint)(Code) | | Sets if the jsx3.gui.Block instance is relatively positioned on-screen;
returns reference to self to facilitate method chaining;
Parameters: intRelative - jsx3.gui.Block.RELATIVE will be applied to the view if null. One of: jsx3.gui.Block.RELATIVE jsx3.gui.Block.ABSOLUTE Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object |
setSpyStyles | public void setSpyStyles(String strCSS)(Code) | | Sets the CSS definition to apply to an HTML element when a spyglass is shown for that element
Parameters: strCSS - valid CSS. For example, text-decoration:underline;color:red; |
setTagName | public jsx3.gui.Block setTagName(String strTagName)(Code) | | Sets HTML tag name to use when rendering the object on-screen (jsx3.gui.Block.DEFAULTTAGNAME is the default);
returns reference to self to facilitate method chaining;
Parameters: strTagName - valid HTML tag name (span, div, form, ol, ul, li, etc); if null is passed, the getter will use jsx3.gui.Block.DEFAULTTAGNAME this object |
setText | public jsx3.gui.Block setText(String strText, boolean bRepaint)(Code) | | Sets the text/HTML for the control to be displayed on-screen;
returns reference to self to facilitate method chaining;
Parameters: strText - text/HTML Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . |
setTextAlign | public jsx3.gui.Block setTextAlign(String ALIGN)(Code) | | Sets the CSS text-align property for the object;
returns reference to self to facilitate method chaining;
Parameters: ALIGN - one of: jsx3.gui.Block.ALIGNLEFT, jsx3.gui.Block.ALIGNRIGHT, jsx3.gui.Block.ALIGNCENTER |
setTip | public jsx3.gui.Block setTip(String strTip)(Code) | | Sets the tooltip text to display when the object is hovered over. Updates Model and View.
Returns reference to self to facilitate method chaining;
Parameters: strTip - text/HTML this object |
setTop | public jsx3.gui.Block setTop(String vntTop, boolean bRepaint)(Code) | | Sets the top property of this object. The top property specifies the vertical offset of this object
from its parent and only applies if this object is absolutely positioned.
Parameters: vntTop - the top value. Only numeric values and percentages are supported. For example: 25, -10, 20%. Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object. |
setTop | public jsx3.gui.Block setTop(int vntTop, boolean bRepaint)(Code) | | Sets the top property of this object. The top property specifies the vertical offset of this object
from its parent and only applies if this object is absolutely positioned.
Parameters: vntTop - the top value. Only numeric values and percentages are supported. For example: 25, -10, 20%. Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object. |
setVisibility | public void setVisibility(String VISIBILITY, boolean bRepaint)(Code) | | Sets the CSS visibility property the object
Parameters: VISIBILITY - [jsx3.gui.Block.VISIBILITYVISIBLE, jsx3.gui.Block.VISIBILITYHIDDEN] Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . |
setWidth | public jsx3.gui.Block setWidth(String vntWidth, boolean bRepaint)(Code) | | Sets the width property of this object.
Parameters: vntWidth - the width as non-negative integer or non-negative percentage. For example: 45%, 12. Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object. |
setWidth | public jsx3.gui.Block setWidth(int vntWidth, boolean bRepaint)(Code) | | Sets the width property of this object.
Parameters: vntWidth - the width as non-negative integer or non-negative percentage. For example: 45%, 12. Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . this object. |
setZIndex | public void setZIndex(int intZIndex, boolean bRepaint)(Code) | | Sets the CSS z-index for the object
Parameters: intZIndex - z-index value Parameters: bRepaint - if true , the view of this object is immediately updated, obviating the need to call repaint() . |
showMask | public void showMask(String strMessage)(Code) | | displays a "blocking mask" inside the block to stop user interactions with content within the block. Applies only to Blocks. Use only on blocks with no padding (padding:0px)
Parameters: strMessage - text/message to display in the blocking mask to tell the user it is disabled |
showSpy | public void showSpy(String strHTML, int intLeft, int intTop)(Code) | | called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. Otherwise, use null. |
showSpy | public void showSpy(String strHTML, jsx3.gui.Event intLeft, int intTop)(Code) | | called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters: strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule. Parameters: intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position. Parameters: intTop - use an integer if intLeft also uses an integer. Otherwise, use null. |
Methods inherited from jsx3.gui.Painted | public void focus(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.lang.Object getAbsolutePosition(String objRoot, String objGUI)(Code)(Java Doc) public T getAbsolutePosition(String objRoot, String objGUI, Class<T> returnType)(Code)(Java Doc) public void getAttribute(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.lang.Object getAttributes()(Code)(Java Doc) public T getAttributes(Class<T> returnType)(Code)(Java Doc) public void getDynamicProperty(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getRendered(jsx3.gui.Event objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getRendered(jsx3.lang.Object objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void onAfterPaint(String objGUI)(Code)(Java Doc) public void paint(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void paintChild(jsx3.gui.Painted objChild, boolean bGroup, String objGUI, boolean bCascadeOnly)(Code)(Java Doc) public void paintChildren(Object[] c, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void recalcBox(Object[] properties)(Code)(Java Doc) public jsx3.gui.Painted removeAttribute(String strName)(Code)(Java Doc) public T removeAttribute(String strName, Class<T> returnType)(Code)(Java Doc) public jsx3.gui.Painted removeAttributes()(Code)(Java Doc) public T removeAttributes(Class<T> returnType)(Code)(Java Doc) public void repaint(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.gui.Painted setAttribute(String strName, String strValue)(Code)(Java Doc) public jsx3.gui.Painted setDynamicProperty(String strName, String strValue)(Code)(Java Doc)
|
Methods inherited from jsx3.app.Model | public void adoptChild(jsx3.app.Model objChild, boolean bRepaint, boolean bForce)(Code)(Java Doc) public jsx3.app.Model doClone(int intPersist, int intMode)(Code)(Java Doc) public T doClone(int intPersist, int intMode, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf)(Code)(Java Doc) public T findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf)(Code)(Java Doc) public T findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfName(String strName)(Code)(Java Doc) public T getAncestorOfName(String strName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(String strType)(Code)(Java Doc) public T getAncestorOfType(String strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(Class strType)(Code)(Java Doc) public T getAncestorOfType(Class strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType)(Code)(Java Doc) public T getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(int vntIndexOrName)(Code)(Java Doc) public T getChild(int vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(String vntIndexOrName)(Code)(Java Doc) public T getChild(String vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public void getChildIndex(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getChildren(org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly)(Code)(Java Doc) public T getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly, Class<T> returnType)(Code)(Java Doc) public void getDescendantsOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(String strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(Class strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getFirstChild()(Code)(Java Doc) public T getFirstChild(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(Class strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(Class strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(String strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(String strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public void getHelpId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getLastChild()(Code)(Java Doc) public T getLastChild(Class<T> returnType)(Code)(Java Doc) public void getLoadType(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getMetaValue(String strKey, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getNS(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getName(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getNextSibling()(Code)(Java Doc) public T getNextSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getParent()(Code)(Java Doc) public T getParent(Class<T> returnType)(Code)(Java Doc) public void getPersistence(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model getPreviousSibling()(Code)(Java Doc) public T getPreviousSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Server getServer()(Code)(Java Doc) public jsx3.net.URIResolver getUriResolver()(Code)(Java Doc) public T getUriResolver(Class<T> returnType)(Code)(Java Doc) public void insertBefore(jsx3.app.Model objMoveChild, jsx3.app.Model objPrecedeChild, boolean bRepaint, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public jsx3.app.Model load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void loadAndCache(java.net.URI strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public void loadAndCache(String strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public jsx3.app.Model loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void onAfterAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onAfterAttach()(Code)(Java Doc) public void onBeforeAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onChangeServer(jsx3.app.Server objNewServer, jsx3.app.Server objOldServer)(Code)(Java Doc) public void onDestroy(jsx3.app.Model objParent)(Code)(Java Doc) public void onRemoveChild(Object[] objChild, int intIndex)(Code)(Java Doc) public void onRemoveChild(jsx3.app.Model objChild, int intIndex)(Code)(Java Doc) public void onSetChild(java.lang.Object objChild, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void onSetParent(java.lang.Object objParent, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void publish(jsx3.lang.Object objEvent, org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model removeChild(jsx3.app.Model vntItem)(Code)(Java Doc) public T removeChild(jsx3.app.Model vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChild(int vntItem)(Code)(Java Doc) public T removeChild(int vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChildren(Object[] arrChildren)(Code)(Java Doc) public T removeChildren(Object[] arrChildren, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, java.net.URI strSourceURL, String strNS)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, String strSourceURL, String strNS)(Code)(Java Doc) public void setHelpId(String strId)(Code)(Java Doc) public void setLoadType(int intLoadType)(Code)(Java Doc) public void setMetaValue(String strKey, String strValue)(Code)(Java Doc) public void setName(String strName)(Code)(Java Doc) public jsx3.app.Model setPersistence(int intPersist)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void toXML(jsx3.lang.Object objProperties, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.xml.CdfDocument toXMLDoc(jsx3.lang.Object objProperties)(Code)(Java Doc) public T toXMLDoc(jsx3.lang.Object objProperties, Class<T> returnType)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribeAll(String strEventId)(Code)(Java Doc)
|
Methods inherited from jsx3.lang.Object | public void ignoreReturn()(Code)(Java Doc)
|
|
|