IWisejComponent
Wisej.Core.IWisejComponent
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.0.0.0)
All wisej components implement this interface.
C#
VB.NET
public interface IWisejComponent : IDisposable
Public Interface IWisejComponent
Inherits IDisposable

Properties

Configuration

Object: Stores the last configuration for the component.

DesignMode

Boolean: Indicates that the control is being rendered in the designer.

DesignRect

Rectangle: Returns or sets the design rectangle for the component when it is used as a child widget in a designable control.

Filter

Func<IWisejComponent, Object, String, Object>: Allows an external component to hook a filter method.
Components decides what filter to call and when and filter implementations must know what filter to process. There is no predefined list of filters, it's dynamic and it can change depending on the needs of the implementation. Currently there are these built in filters:
  • type = "Render" Invoked by Component after the configuration object has been filled. The return value is ignored. A filter can modify the passed in data dynamic object.
  • type = "GetPreferredSize" Invoked by Control after it has calculated the preferred size of the control with the property AutoSize set to true. The data object is a Size and the return value is the new preferred Size.

Handle

Int32: The unique server handle of the component.

Id

String: The unique client id of the component.

IsDirty

Boolean: Indicates that the component needs to be updated on the client.

IsDisposed

Boolean: Indicates that the component has been disposed.

IsNew

Boolean: Returns or sets the new status.

IsTopLevel

Boolean: Indicates that the component is rendered at the top level on the client: the parent is the root.

Locked

Boolean: Locks UI updates to the control.

Session

Object: Holds a reference to the session where this component lives.

Methods

Event(e)

Processes the event.
Parameter
Type
Description
e
Event arguments.

Reference(list)

Returns a collection of referenced components or collection of components.
Parameter
Type
Description
list
IList
List of referenced components or collection of components.

Render(config)

Renders the component into the config definition.
Parameter
Type
Description
config
Object
Dynamic configuration object.

UpdateComponent(state)

Updates the server component using the state information.
Parameter
Type
Description
state
Object
Dynamic state object.

UpdateWidget()

Updates the client widget.

Events

Updated

EventHandler Fired after the component has been updated.

Implemented By

Name
Description
Represents a panel that dynamically lays out its contents in a grid composed of rows and columns.
UI implementation for the FileDialog class.
UI implementation for the FolderDialog class.
Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source.
Button
Represents a button control.
Implements the basic functionality common to button controls.
CheckBox
Represents a check box control.
Displays a ListBox in which a check box is displayed to the left of each item.
ComboBox
Represents a combo box control.
Component
Extends Component and enabled the components to appear on the designer surface.
Provides focus-management functionality for controls that can function as a container for other controls.
Control
Base class for all Wisej controls.
Represents a control that allows the user to select or type a date and a time.
Represents a spinner control that displays string values.
Represents a panel that dynamically arranges its children horizontally or vertically in automatic rows or columns.
Form
Represents a window or dialog box that makes up an application's user interface.
GroupBox
Represents a Wisej control that displays a frame around a group of controls with an optional caption.
Label
Represents a label control.
LinkLabel
Represents an hyper-link control.
ListBox
Represents a control to display a list of items.