ve.Class: Classes that extend this are parsed by the reflection engine, with UIs treated as being a subset of state via ve.Component type declarations.
UIs can be opened via super.open(arg0_mode:"class"/"instance", arg1_options:Object), and closed using close(arg0_mode:"class"/"instance").
Instance:
.id=Class.generateRandomID(ve.Class).class_window: ve.Window - The class window any static components are bound to..instance_window: ve.Window - The instance window non-static components is bound to.
Methods:
- close(arg0_mode:"class"/"instance")
- draw(arg0_function:function(this:ve.Class), arg1_interval=0:number) - The draw function intended to make non-UI related draw calls to browser/process.
- getState() | Object
- isClosed(arg0_mode:"class"/"instance") | boolean - Whether the selected window is closed.
- isOpen(arg0_mode:"class"/"instance") | boolean - Whether the selected window is open.
- open(arg0_mode:"class"/"instance") - Opens the UI bound to the current ve.Class.
- updateOwner() - Updates the
.owner/.ownersfield attached to ve.Components.
Static Fields:
.instances: Array<this:ve.Class>
Members
Methods
close(arg0_mode)
Closes any open UI currently associated with ve.Class, either its class (static) or instance.
- Method of: ve.Class
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_mode |
string
|
Either 'class'/'instance'. |
draw(arg0_function, arg1_intervalopt)
Draws the current element on the screen based on a constant loop that can be cleared by the process.
- Method of: ve.Class
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
arg0_function |
function
|
undefined
|
|||
arg1_interval |
number
|
<optional> |
0 |
getState() → {Object}
Returns the values of all bound ve.Components as a destructured object.
Returns:
- Type:
-
Object
isClosed(arg0_mode) → {boolean}
Whether the bound UI for the current mode is closed.
- Method of: ve.Class
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_mode |
string
|
Either 'class'/'instance'. |
Returns:
- Type:
-
boolean
isOpen(arg0_mode) → {boolean}
Whether the bound UI for the current mode is open.
- Method of: ve.Class
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_mode |
string
|
Either 'class'/'instance'. |
Returns:
- Type:
-
boolean
open(arg0_modeopt, arg1_optionsopt)
Opens the relevant ve.Window or other Feature responsible for containing either class or instance variables.
- Method of: ve.Class
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_mode |
string
|
<optional> |
"instance" |
Whether the UI is bound to 'class'/'instance'. If 'class', it displays all static Vercengen fields. |
|||||||||||||||||||||||||||||||||||||||||||||
arg1_options |
Object
|
<optional> |
|
updateOwner() → {Object}
Updates the .owner/.owners field(s) for any attached ve.Components to the current ve.Class.
- Method of: ve.Class
Returns:
- Type:
-
Object