Skip to main content
Version: 3.5

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

Instance memberComponent()

Default constructor

Instance memberComponent(embedded)

Default constructor

NameTypeDescription
embeddedBooleanIndicates 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

Instance memberHasUserData

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

Instance memberIsDisposed

Boolean: Indicates that the component has been disposed.

Instance memberUserData

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

Methods

Instance memberCall(function, args)

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

ParameterTypeDescription
functionStringThe name of the JavaScript function to execute.
argsObject[]The arguments to pass to the function.

Instance memberCall(function, callback, args)

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

ParameterTypeDescription
functionStringThe name of the JavaScript function to execute.
callbackAction<Object>Asynchronous callback method that receives the return value.
argsObject[]The arguments to pass to the function.

Instance memberCallAsync(function, args)

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
functionStringThe name of the JavaScript function to execute.
argsObject[]The arguments to pass to the function.

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

Instance memberDispose()

Releases all resources used by the Component.

Instance memberEval(javaScript)

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

ParameterTypeDescription
javaScriptStringThe JavaScript code to run on the client.

Instance memberEval(javaScript, callback)

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

ParameterTypeDescription
javaScriptStringThe JavaScript code to evaluate on the client.
callbackAction<Object>Asynchronous callback method that receives the return value.

Instance memberEvalAsync(javaScript)

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
javaScriptStringThe JavaScript code to evaluate on the client.

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

Instance memberUpdate()

Updates the component on the client.

Events

Instance memberDisposed

EventHandler Fired when the component is disposed.

Inherited By

NameDescription
BindableComponentExtends Component and enables the component to participated if data binding operations and have their own DataBindings.
ComponentExtends Component and enables the components to appear on the designer surface.
MessageBoxDisplays a message box that can contain text, buttons, and symbols that inform and instruct the user.
TimerImplements a timer that raises an event at user-defined intervals.
DesktopTaskBarItemRepresents a component in the Desktop control's taskbar.
DesktopTaskBarItemControlRepresents a component in the Desktop control's taskbar that can host any Control.
DesktopTaskBarItemDateTimeRepresents a DateTime component in the Desktop control's taskbar.
AnimationProvides support for animating controls or windows using predefined animations definitions or custom animations in response to certain events.
ErrorProviderProvides a user interface for indicating that a control on a form has an error associated with it.
HelpTipRepresents a small rectangular pop-up window that displays a brief help text next to a control when it gets activated (focused).
JavaScriptAllows controls to execute javascript code.
RotationAdd rotation capabilities along the X,Y,Z axis to Control controls.
StyleSheetAdds CSS styling to controls.
ToolTipRepresents 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.
AlertBoxDisplays 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.
ToastDisplays a toast that can contain an icon and text.
ComponentToolRepresent 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.
ImageListProvides methods to manage a collection of Image objects. This class cannot be inherited.
ColumnHeaderDisplays a standard column header in a ListView control.
ImageColumnHeaderDisplays an image column header in a ListView control.
CheckedMenuItemRepresents an individual menu item that is displayed within a MainMenu or ContextMenu and always shows a checkbox next to the label.
ContextMenuRepresents a context menu associated to a Control.
LinkMenuItemRepresents 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.
MainMenuRepresents the main menu in a Form.
MenuRepresents the base functionality for all menus.
MenuItemRepresents an individual item that is displayed within a MainMenu or ContextMenu.
StatusBarControlRepresents a panel in a StatusBar control that can host any Control.
StatusBarPanelRepresents a panel in a StatusBar control.
ToolBarButtonRepresents an item in the ToolBar.
TreeNodeRepresents a node of a TreeView.

Implements

NameDescription
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.