Component

Wisej.Base.Component

Namespace: Wisej.Base

Assembly: Wisej.Framework (3.5.0.0)

The base class for Wisej components that are not controls. Wisej components are still managed on the client and the server but are not present on the designer surface. Examples of wisej components are: menu items, image lists, tree nodes, list items.

public class Component : IDisposable, IWisejComponent, IWisejSerializable

Constructors

Default constructor

Default constructor

NameTypeDescription

embedded

Indicates whether the component is embedded in a parent component. Embedded components don't update themselves, instead their parent is in charge of updating the corresponding client widget.

Properties

Boolean: Checks if the UserData dynamic object was created and has any value.

Boolean: Indicates that the component has been disposed.

Object: Returns a dynamic object that can be used to store custom data in relation to this component.

Methods

Runs the JavaScript function within the component's context in the browser.

ParameterTypeDescription

function

The name of the JavaScript function to execute.

args

The arguments to pass to the function.

Runs the JavaScript function within the component's context in the browser and returns the value to the callback method.

ParameterTypeDescription

function

The name of the JavaScript function to execute.

callback

Asynchronous callback method that receives the return value.

args

The arguments to pass to the function.

Asynchronously runs the JavaScript function within the component's context in the browser and returns an awaitable Task containing the value returned by the remote call.

ParameterTypeDescription

function

The name of the JavaScript function to execute.

args

The arguments to pass to the function.

Returns: Task<Object>. An awaitable Task that represents the asynchronous operation.

Releases all resources used by the Component.

Runs the javaScript code within the component's context in the browser.

ParameterTypeDescription

javaScript

The JavaScript code to run on the client.

Runs the javaScript code within the component's context in the browser and returns the value to the callback method.

ParameterTypeDescription

javaScript

The JavaScript code to evaluate on the client.

callback

Asynchronous callback method that receives the return value.

Asynchronously runs the javaScript code within the component's context in the browser and returns an awaitable Task that contains the value returned by the remote call.

ParameterTypeDescription

javaScript

The JavaScript code to evaluate on the client.

Returns: Task<Object>. An awaitable Task that represents the asynchronous operation.

Updates the component on the client.

Events

EventHandler Fired when the component is disposed.

Inherited By

NameDescription

Extends Component and enables the component to participated if data binding operations and have their own DataBindings.

Extends Component and enables the components to appear on the designer surface.

Displays a message box that can contain text, buttons, and symbols that inform and instruct the user.

Implements a timer that raises an event at user-defined intervals.

Represents a component in the Desktop control's taskbar.

Represents a component in the Desktop control's taskbar that can host any Control.

Represents a DateTime component in the Desktop control's taskbar.

Provides support for animating controls or windows using predefined animations definitions or custom animations in response to certain events.

Provides a user interface for indicating that a control on a form has an error associated with it.

Represents a small rectangular pop-up window that displays a brief help text next to a control when it gets activated (focused).

Allows controls to execute javascript code.

Add rotation capabilities along the X,Y,Z axis to Control controls.

Adds CSS styling to controls.

Represents a small rectangular pop-up window that displays a brief description of a control's purpose when the user rests the pointer on the control.

Displays an alert box that can contain an icon and text that inform and instruct the user. Alert boxes are not modal and can disappear automatically.

Displays a toast that can contain an icon and text.

Represent a tool widget that can be displayed inside another control. A tool widget is different from other child controls: it's displayed inside the parent's layout. For example, the Form control shows tool widgets inside the caption bar. When a tool widget is pressed, it fires the toolClicked event on the container.

Provides methods to manage a collection of Image objects. This class cannot be inherited.

Displays a standard column header in a ListView control.

Displays an image column header in a ListView control.

Represents an individual menu item that is displayed within a MainMenu or ContextMenu and always shows a checkbox next to the label.

Represents a context menu associated to a Control.

Represents an individual menu item that is displayed within a MainMenu or ContextMenu rendered using the <a> link element to let the browser process the specified HRef URL.

Represents the main menu in a Form.

Represents the base functionality for all menus.

Represents an individual item that is displayed within a MainMenu or ContextMenu.

Represents a panel in a StatusBar control that can host any Control.

Represents a panel in a StatusBar control.

Represents an item in the ToolBar.

Represents a node of a TreeView.

Implements

NameDescription

All wisej components implement this interface.

Allows an object to serialize itself.

Last updated