The class JaxcentGenericHtmlElement is a generic catch-all class that can be used for any tags on the page. It provides all methods, properties and events supported by Jaxcent. However, if the methods or properties are not supported by the actual HTML element on the page, a run time error may occur. If the event is not supported by the HTML element, no callback will come back, and a run time error may also occur.

Namespace: Jaxcent.Web.Html
Assembly: Jaxcent (in Jaxcent.dll) Version: 2.3.1.0 (2.3.1.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class JaxcentGenericHtmlElement : JaxcentHtmlBase
Public Class JaxcentGenericHtmlElement _
	Inherits JaxcentHtmlBase
public ref class JaxcentGenericHtmlElement : public JaxcentHtmlBase

Members

               
 All Members  Constructors   Properties   Methods   Events  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
JaxcentGenericHtmlElement(JaxcentPage, String)
Search for HTML element on page by specified ID
JaxcentGenericHtmlElement(JaxcentPage, JaxcentHtmlBase, RelationType)
Locate next sibling, previous sibling, first child, last child, or parent node of "otherElement". Note: DOM structure can have variations between browsers.
JaxcentGenericHtmlElement(JaxcentPage, SearchType, String)
Search for HTML element on page by specified search type and search string. If the search returns multiple objects, use the first one.
JaxcentGenericHtmlElement(JaxcentPage, SearchType, String, Int32)
Search for HTML Element on page by specified search type and search string, and search index. The search is expected to return multiple results. The search index is 0-based, and specifies the index in the multiple results. This constructor is not for use with createNew.
JaxcentGenericHtmlElement(JaxcentPage, SearchType, String, String)
Create new HTML Element on page using the specified tag. Search type must be createNew. If text is non null, the new element is populated with that text.
JaxcentGenericHtmlElement(JaxcentPage, SearchType, String, array<String>[]()[][], array<String>[]()[][])
Create new HTML element on page using the specified attributes and values. Search type must be createNew. Attributes and values arrays must have the same length.
JaxcentGenericHtmlElement(JaxcentPage, SearchType, String, String, array<String>[]()[][], array<String>[]()[][])
Create new HTML element on page using the specified text and attributes and values. Search type must be createNew. Attributes and values arrays must have the same length.
Abbr
Retrieve/Set the "abbr" property
Action
Retrieve/Set the "action" property
AddJavaScriptVerification(String, String, array<Object>[]()[][])
Add JavaScript verification code on a handler. If the event is being over-ridden, the verification code is called first. If it does not return a value of true, or if it fails, the Java event handler is not called.

This method can be used to reduct client-server trips by doing some of the verification on the client side before calling the event handler.

The arguments array can contain strings, Integers, Doubles, strings, bool, other Jaxcent HTML Elements (or "this"), or can be null. If the argument array is not null, the "verifier" must not contain the parentheses character. The characters "( )" containing any arguments are appended to the "verifier". The array specifies the list of parameters. If the argument array is null, the "verifier" is evaluated as is, as an expression. To call a function with no args, use the form addJavaScriptVerification( "click", "myCheckFunction()", null );

(Inherited from JaxcentObject.)
Align
Retrieve/Set the "align" property
Archive
Retrieve/Set the "archive" property
Axis
Retrieve/Set the "axis" property
Blur()()()()
Lose the input focus.
Border
Retrieve/Set the "border" property
Caption
Retrieve/Set the "caption" property
CellIndex
Retrieve/Set the "cellIndex" property
CellPadding
Retrieve/Set the "cellPadding" property
CellSpacing
Retrieve/Set the "cellSpacing" property
Charset
Retrieve/Set the "charset" property
Checked
Retrieve/Set the "checked" property
CheckListElementExists()()()()
Check if any LI elements exist in list. Applicable to UL or OL only.
CheckNodeExists(RelationType)
Check if a node exists with the specified relationship. Relationship can be "next sibling", "previous sibling", "parent node", "first child", or "last child". Node can be retrieved as a generic HtmlElement.
(Inherited from JaxcentHtmlBase.)
Classid
Retrieve/Set the "classid" property
Click()()()()
Simulate a mouse click on the HTML element.
Codebase
Retrieve/Set the "codebase" property
ColSpan
Retrieve/Set the "colSpan" property
Complete
Retrieve/Set the "complete" property Checks if loading is complete
Coords
Retrieve/Set the "coords" property
Data
Retrieve/Set the "data" property
Defaultchecked
Retrieve/Set the "defaultchecked" property
DefaultSelected
Retrieve/Set the "defaultSelected" property
DefaultValue
Retrieve/Set the "defaultValue" property
Delete()()()()
Delete this element.
DeleteElement()()()()
Delete element from DOM.
(Inherited from JaxcentHtmlBase.)
Disabled
Retrieve/Set the "disabled" property
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Focus()()()()
Get the input focus.
Frame
Retrieve/Set the "frame" property
Frameborder
Retrieve/Set the "frameborder" property
GetAttribute(String)
Retrieve the specified attribute.
(Inherited from JaxcentHtmlBase.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetJaxcentPage()()()()
Get Jaxcent page that this object is connected to.
(Inherited from JaxcentObject.)
GetProperty(String)
Get the value of a a property.
(Inherited from JaxcentObject.)
GetStyle(String)
Retrieve the specified style element.
(Inherited from JaxcentHtmlBase.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
HasNextSibling()()()()
Check if next sibling exists. Applicable to LI elements only.
Height
Retrieve/Set the "height" property
Hide()()()()
Shortcut for setStyle( "display", "none" );
(Inherited from JaxcentHtmlBase.)
Href
Retrieve/Set the "href" property
Hspace
Retrieve/Set the "hspace" property
ID
The ID property of HTML object
(Inherited from JaxcentObject.)
Index
Retrieve/Set the "index" property
InnerHTML
Retrieve/Set the "innerHTML" property
InnerText
Gets or Sets the inner text of an HTML element
(Inherited from JaxcentHtmlBase.)
InsertAfter(JaxcentHtmlBase)
Insert element just after target element. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtBeginning()()()()
Insert element at document beginning. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtBeginning(JaxcentHtmlBase)
Insert element inside target element, at beginning. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtEnd()()()()
Insert element at document end. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtEnd(JaxcentHtmlBase)
Insert element inside target element, at end. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertBefore(JaxcentHtmlBase)
Insert element just before target element. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
IsMap
Retrieve/Set the "isMap" property
Length
Retrieve/Set the "length" property
Longdesc
Retrieve/Set the "longdesc" property
Lowsrc
Retrieve/Set the "lowsrc" property
Marginheight
Retrieve/Set the "marginheight" property
Marginwidth
Retrieve/Set the "marginwidth" property
MaxLength
Retrieve/Set the "maxLength" property Sets/Retrieves the maximum number of characters allowed in field
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Method
Retrieve/Set the "method" property
Multiple
Retrieve/Set the "multiple" property Sets/Checks whether multiple items can be selected
Name
Retrieve/Set the "name" property
OnAbort
Handler for "Abort" event
OnBlur
Handler for "Blur" event
OnCellEdited
Handler for "CellEdited" event (call EnableCellEditing to enable cell edits)
OnChange
Handler for "Change" event
OnChangeStr
Handler for "Change" event with string parameter
OnClick
Handler for "Click" event
OnClickWithClickData
Handler for "Click" event with click data
OnClickWithPageData
Handler for "Click" event with page data
OnComplete
Handler for "Complete" event
OnDragDrop
Handler for "DragDrop" event. Drop sources must be enabled by calling SetDraggable.
(Inherited from JaxcentHtmlBase.)
OnError
Handler for "Error" event
OnFocus
Handler for "Focus" event
OnKeyDown
Handler for "KeyDown" event
OnKeyDownStr
Handler for "KeyDown" event with string parameter
OnKeypress
Handler for "Keypress" event
OnKeypressStr
Handler for "Keypress" event with string parameter
OnKeyUp
Handler for "KeyUp" event
OnKeyUpStr
Handler for "KeyUp" event with string parameter
OnLoad
Handler for "Load" event
OnMouseDown
Handler for "MouseDown" event
OnMouseDownStr
Handler for "MouseDown" event with string parameter
OnMouseUp
Handler for "MouseUp" event
OnMouseUpStr
Handler for "MouseUp" event with string parameter
OnReset
Handler for "Reset" event
OnRowDeleted
Handler for "RowDeleted" event (use AddDeleteButtons to add a delete button to row)
OnSelect
Handler for "Select" event
OnSubmit
Handler for "Submit" event
OnSubmitWithPageData
Handler for "Submit" event with page data
ReadOnly
Retrieve/Set the "readOnly" property
Rel
Retrieve/Set the "rel" property
Reset()()()()
Reset the form.
Rev
Retrieve/Set the "rev" property
RowIndex
Retrieve/Set the "rowIndex" property
Rows
Retrieve/Set the "rows" property
RowSpan
Retrieve/Set the "rowSpan" property
Rules
Retrieve/Set the "rules" property
Scrolling
Retrieve/Set the "scrolling" property
ScrollIntoView(Boolean)
Bring the element into view, by scrolling if necessary. If top is true, the top of element is brought into view, otherwise the bottom of the element is scrolled into view.
SearchForElements(JaxcentPage, String, String, OnMultipleElementSearch)
Searches for multiple elements by tag-name and/or attribute names. Either of tagName or attributeName can be null. If tagName is null, searches all elements, otherwise searches elements with that tag. If attributeName is not-null, searches for elements that have that attribute defined. Upon completion of search, notifies via the callback mechanism. If attributeName is not-null, also returns an array of values found for that attribute.

For best performance, this method can be called in the constructor. The resulting array of HtmlElement's should be processed with batch-updates set to true.

Select()()()()
Select the text in the field.
Selected
Retrieve/Set the "selected" property
SelectedIndex
Retrieve/Set the "selectedIndex" property
SetAttribute(String, String)
Set the specified attribute.
(Inherited from JaxcentHtmlBase.)
SetCssClass(String)
Sets the CSS class of an element.
(Inherited from JaxcentHtmlBase.)
SetDraggable(Boolean)
Call with true argument to enable element as a drag-and-drop source. Call with false to disable dragging. The target element must have "onDragDrop" overridden.
(Inherited from JaxcentHtmlBase.)
SetEnabled(Boolean)
Shortcut for setProperty( "disabled", ! enabled );
(Inherited from JaxcentHtmlBase.)
SetProperty(String, Boolean)
Set a property to the specified bool value.
(Inherited from JaxcentObject.)
SetProperty(String, Color)
Set a property to the specified System.Drawing.Color value.
(Inherited from JaxcentObject.)
SetProperty(String, Int32)
Set a property to the specified int value.
(Inherited from JaxcentObject.)
SetProperty(String, String)
Set a property to the specified value.
(Inherited from JaxcentObject.)
SetStyle(String, Boolean)
Set the specified bool style element.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, Color)
Set the specified style element from a java.awt.Color value.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, Int32)
Set the specified style element from an int.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, String)
Set the specified style element.
(Inherited from JaxcentHtmlBase.)
SetVisible(Boolean)
Shortcut for setStyle( "visibility", "visible" or "hidden" );
(Inherited from JaxcentHtmlBase.)
Shape
Retrieve/Set the "shape" property
Show()()()()
Shortcut for setStyle( "display", "inline" ); except for P, DIV, FORM, BODY, OL, UL, HR, TABLE etc where it is a shortcut for setStyle( "display", "block" );
(Inherited from JaxcentHtmlBase.)
Size
Retrieve/Set the "size" property
Src
Retrieve/Set the "src" property
Standby
Retrieve/Set the "standby" property
Submit()()()()
Submit the form.
Tag
Returns the tag of the HTML element. For instance "P" for para, "IMG" for images, "TABLE" for tables, "TD" for table cells, etc.
(Inherited from JaxcentHtmlBase.)
Target
Retrieve/Set the "target" property
Text
Retrieve/Set the "text" property
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Type
Retrieve/Set the "type" property
UseMap
Retrieve/Set the "useMap" property
VAlign
Retrieve/Set the "vAlign" property
Value
Retrieve/Set the "value" property
Valuetype
Retrieve/Set the "valuetype" property
Vspace
Retrieve/Set the "vspace" property
Width
Retrieve/Set the "width" property

Inheritance Hierarchy

System..::..Object
  Jaxcent.Web..::..JaxcentObject
    Jaxcent.Web.Html..::..JaxcentHtmlBase
      Jaxcent.Web.Html..::..JaxcentGenericHtmlElement

See Also