AdminBro works quite well with default scaffolding, but what if you want to modify how resources looks like? You can use resource decorators
Resource decorators
Decorators are passed to the AdminBro along with other configuration options.
const adminBroOptions = {
resources: [
{ resource: Article, decorator: YourDecorator },
],
branding: {
companyName: 'Amazing c.o.',
},
...
}
When not passed - AdminBro will use BaseDecorator
Writing your own decorator
To modify how particular resource behaves you have to create decorator class for it:
const { BaseDecorator } = require('admin-bro')
class ArticleDecorator extends BaseDecorator {
constructor(params) {
super(params)
// You can define changes as an class parameters:
this.resourceName = 'Article'
this.listProperties = ['title', 'content', 'publishedAt']
this.showProperties = ['title', 'publishedAt']
this.parentName = 'Knowledge'
}
// Or as a method:
parentName() {
return 'Knowledge'
}
}
Overriding particular fields
You can change:
- define totally new value
- how value for existing field is rendered
In order to do this you have to override BaseDecorator#getValue method
const { BaseDecorator } = require('admin-bro')
class ArticleDecorator extends BaseDecorator {
constructor(params) {
super(params)
this.listProperties = ['newField']
}
getValue({ record, property, where, helpers }) {
switch (property.name()) {
case 'newField':
return `

Here goes a paragraph

and another one

Link somewere</>
`
default:
return super.getValue({ record, property, where, helpers })
}
}
}


One thousand particles!
It might seem like a lot.
It isn’t.
You would need approximately
10,000,000,000,000,000,000 (or 1019) boxes
each with 1000 particles, just to get the amount of air particles in a single human breath.
One thousand particles!
It might seem like a lot.
It isn’t.
You would need approximately
10,000,000,000,000,000,000 (or 1019) boxes
each with 1000 particles, just to get the amount of air particles in a single human breath.


{% load static %}
{% include "navbar.html" %}
Courses
Edit
Name
Description
Equipment Requirements
{% for course in course_list %}
{{ course.name }}
{{ course.description }}
{{ course.equipment_req}}
{% endfor %}
×
Add Course
{% csrf_token %} {{ add_course_form.as_p }}
Submit
×
Edit Course
{% csrf_token %}
Course Info
{{ edit_course_form.as_p }}
Section Types
{{ add_course_section_type_form.as_p }}
submit
×
Delete Course
{% csrf_token %}
Delete Course
{{ delete_course_form.as_p }}
submit
{% load static %}


Class UIElement
Base class for all UI controls. Implements layout passes and basic functionality.
Inheritance
Inherited Members
Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class UIElement : DependencyObject
Constructors
UIElement()
Initializes a new instance of the UIElement class.
Declaration
public UIElement()
Fields
CollapsedEvent
The collapsed event
Declaration
public static readonly RoutedEvent CollapsedEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
CursorTypeProperty
The cursor type property
Declaration
public static readonly DependencyProperty CursorTypeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DataContextProperty
The data context dependency property
Declaration
public static readonly DependencyProperty DataContextProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
desiredSize
The desired size
Declaration
protected Size desiredSize
Field Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size |
EffectProperty
The effect property
Declaration
public static readonly DependencyProperty EffectProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
FocusableProperty
The focusable property
Declaration
public static readonly DependencyProperty FocusableProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
GamepadDownEvent
The game pad down event
Declaration
public static readonly RoutedEvent GamepadDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
GamepadMoveEvent
The game pad move event
Declaration
public static readonly RoutedEvent GamepadMoveEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
GamepadTriggerEvent
The game pad trigger event
Declaration
public static readonly RoutedEvent GamepadTriggerEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
GamepadUpEvent
The game pad up event
Declaration
public static readonly RoutedEvent GamepadUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
GotFocusEvent
The got focus event
Declaration
public static readonly RoutedEvent GotFocusEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
HeightProperty
The height dependency property
Declaration
public static readonly DependencyProperty HeightProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
HiddenEvent
The hidden event
Declaration
public static readonly RoutedEvent HiddenEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
HorizontalAlignmentProperty
The horizontal alignment dependency property
Declaration
public static readonly DependencyProperty HorizontalAlignmentProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsEnabledProperty
The is enabled property
Declaration
public static readonly DependencyProperty IsEnabledProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsFocusedProperty
The is focused property
Declaration
public static readonly DependencyProperty IsFocusedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsHitTestVisibleProperty
The is hit test visible property
Declaration
public static readonly DependencyProperty IsHitTestVisibleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsKeyboardFocusedProperty
The is keyboard focused property
Declaration
public static readonly DependencyProperty IsKeyboardFocusedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsMouseCapturedProperty
The is mouse captured property
Declaration
public static readonly DependencyProperty IsMouseCapturedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsMouseOverProperty
The is mouse over property
Declaration
public static readonly DependencyProperty IsMouseOverProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsTouchCapturedProperty
The is touch captured property
Declaration
public static readonly DependencyProperty IsTouchCapturedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
KeyDownEvent
The key down event
Declaration
public static readonly RoutedEvent KeyDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
KeyUpEvent
The key up event
Declaration
public static readonly RoutedEvent KeyUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
LoadedEvent
The loaded event
Declaration
public static readonly RoutedEvent LoadedEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
LostFocusEvent
The lost focus event
Declaration
public static readonly RoutedEvent LostFocusEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
MarginProperty
The margin dependency property
Declaration
public static readonly DependencyProperty MarginProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MaxHeightProperty
The maximum height property
Declaration
public static readonly DependencyProperty MaxHeightProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MaxWidthProperty
The maximum width property
Declaration
public static readonly DependencyProperty MaxWidthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MinHeightProperty
The minimum height property
Declaration
public static readonly DependencyProperty MinHeightProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MinWidthProperty
The minimum width property
Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MouseDownEvent
The mouse down event
Declaration
public static readonly RoutedEvent MouseDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
MouseEnterEvent
The mouse enter event
Declaration
public static readonly RoutedEvent MouseEnterEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
MouseLeaveEvent
The mouse leave event
Declaration
public static readonly RoutedEvent MouseLeaveEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
MouseMoveEvent
The mouse move event
Declaration
public static readonly RoutedEvent MouseMoveEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
MouseUpEvent
The mouse up event
Declaration
public static readonly RoutedEvent MouseUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
MouseWheelEvent
The mouse wheel event
Declaration
public static readonly RoutedEvent MouseWheelEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
NameProperty
The name property
Declaration
public static readonly DependencyProperty NameProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
needsClipBounds
The needs clip bounds
Declaration
protected bool needsClipBounds
Field Value
| Type | Description |
|---|---|
| System.Boolean |
OpacityProperty
The opacity property
Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
PreviewGamepadDownEvent
The preview game pad down event
Declaration
public static readonly RoutedEvent PreviewGamepadDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewGamepadMoveEvent
The preview game pad move event
Declaration
public static readonly RoutedEvent PreviewGamepadMoveEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewGamepadTriggerEvent
The preview game pad trigger event
Declaration
public static readonly RoutedEvent PreviewGamepadTriggerEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewGamepadUpEvent
The preview game pad up event
Declaration
public static readonly RoutedEvent PreviewGamepadUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewKeyDownEvent
The preview key down event
Declaration
public static readonly RoutedEvent PreviewKeyDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewKeyUpEvent
The preview key up event
Declaration
public static readonly RoutedEvent PreviewKeyUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewMouseDownEvent
The preview mouse down event
Declaration
public static readonly RoutedEvent PreviewMouseDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewMouseMoveEvent
The preview mouse move event
Declaration
public static readonly RoutedEvent PreviewMouseMoveEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewMouseUpEvent
The preview mouse up event
Declaration
public static readonly RoutedEvent PreviewMouseUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewMouseWheelEvent
The preview mouse wheel event
Declaration
public static readonly RoutedEvent PreviewMouseWheelEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewTouchDownEvent
The preview touch down event
Declaration
public static readonly RoutedEvent PreviewTouchDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewTouchGestureEvent
The preview touch gesture event
Declaration
public static readonly RoutedEvent PreviewTouchGestureEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewTouchMoveEvent
The preview touch move event
Declaration
public static readonly RoutedEvent PreviewTouchMoveEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewTouchUpEvent
The preview touch up event
Declaration
public static readonly RoutedEvent PreviewTouchUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
RequestBringIntoViewEvent
The request bring into view event
Declaration
public static readonly RoutedEvent RequestBringIntoViewEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
SizeChangedEvent
The size changed event
Declaration
public static readonly RoutedEvent SizeChangedEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
SnapsToDevicePixelsProperty
The snaps to device pixels property
Declaration
public static readonly DependencyProperty SnapsToDevicePixelsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
StyleProperty
The style property
Declaration
public static readonly DependencyProperty StyleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
TagProperty
The tag dependency property
Declaration
public static readonly DependencyProperty TagProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ToolTipProperty
The tool tip property
Declaration
public static readonly DependencyProperty ToolTipProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
TouchDownEvent
The touch down event
Declaration
public static readonly RoutedEvent TouchDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
TouchGestureEvent
The touch gesture event
Declaration
public static readonly RoutedEvent TouchGestureEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
TouchMoveEvent
The touch move event
Declaration
public static readonly RoutedEvent TouchMoveEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
TouchUpEvent
The touch up event
Declaration
public static readonly RoutedEvent TouchUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
unclippedDesiredSize
The unclipped desired size
Declaration
protected Size unclippedDesiredSize
Field Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size |
UnloadedEvent
The unloaded event
Declaration
public static readonly RoutedEvent UnloadedEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
UseLayoutRoundingProperty
The use layout rounding property
Declaration
public static readonly DependencyProperty UseLayoutRoundingProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
VerticalAlignmentProperty
The vertical alignment dependency property
Declaration
public static readonly DependencyProperty VerticalAlignmentProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
VisibilityProperty
The visibility dependency property
Declaration
public static readonly DependencyProperty VisibilityProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
VisibleEvent
The visible event
Declaration
public static readonly RoutedEvent VisibleEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
visualOffset
The visual offset rectangle
Declaration
protected Rect visualOffset
Field Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Rect |
WidthProperty
The width dependency property
Declaration
public static readonly DependencyProperty WidthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
ActualHeight
Gets the actual height.
Declaration
public float ActualHeight { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The actual height. |
ActualWidth
Gets the actual width.
Declaration
public float ActualWidth { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The actual width. |
CursorType
Gets or sets the type of the cursor.
Declaration
public CursorType CursorType { get; set; }
Property Value
| Type | Description |
|---|---|
| CursorType | The type of the cursor. |
DataContext
Gets or sets the data context.
Declaration
public object DataContext { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The data context. |
DesiredSize
Gets the size of the desired.
Declaration
public Size DesiredSize { get; }
Property Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size | The size of the desired. |
DeviceRenderSize
Gets or sets the size of the device render.
Declaration
public Size DeviceRenderSize { get; set; }
Property Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size | The size of the device render. |
DpiScaleX
Gets the dpi scale x.
Declaration
public static float DpiScaleX { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The dpi scale x. |
DpiScaleY
Gets the dpi scale y.
Declaration
public static float DpiScaleY { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The dpi scale y. |
Effect
Gets or sets the effect.
Declaration
public Effect Effect { get; set; }
Property Value
| Type | Description |
|---|---|
| Effect | The effect. |
Focusable
Gets or sets a value indicating whether this UIElement is focusable.
Declaration
public bool Focusable { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Height
Gets or sets the height.
Declaration
public float Height { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The height. |
HorizontalAlignment
Gets or sets the horizontal alignment.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| HorizontalAlignment | The horizontal alignment. |
InputBindings
Gets the input bindings.
Declaration
public List<InputBinding> InputBindings { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<InputBinding> | The input bindings. |
IsArrangeValid
Gets a value indicating whether [is arrange valid].
Declaration
public bool IsArrangeValid { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsEnabled
Gets or sets a value indicating whether this instance is enabled.
Declaration
public bool IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsEnabledCoerceValue
Gets a value indicating whether this instance is enabled coerce value.
Declaration
protected virtual bool IsEnabledCoerceValue { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsFocused
Gets or sets a value indicating whether this instance is focused.
Declaration
public bool IsFocused { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsHitTestVisible
Gets or sets a value indicating whether this instance is hit test visible.
Declaration
public bool IsHitTestVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsKeyboardFocused
Gets a value indicating whether this instance is keyboard focused.
Declaration
public bool IsKeyboardFocused { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsLoaded
Gets a value indicating whether this instance is loaded.
Declaration
public bool IsLoaded { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsMeasureValid
Gets a value indicating whether [is measure valid].
Declaration
public bool IsMeasureValid { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsMouseCaptured
Gets a value indicating whether this instance is mouse captured.
Declaration
public bool IsMouseCaptured { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsMouseOver
Gets or sets a value indicating whether this instance is mouse over.
Declaration
public bool IsMouseOver { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsTouchCaptured
Gets a value indicating whether this instance is touch captured.
Declaration
public bool IsTouchCaptured { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Margin
Gets or sets the margin.
Declaration
public Thickness Margin { get; set; }
Property Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Thickness | The margin. |
MaxHeight
Gets or sets the maximum height.
Declaration
public float MaxHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The maximum height. |
MaxWidth
Gets or sets the maximum width.
Declaration
public float MaxWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The maximum width. |
MinHeight
Gets or sets the minimum height.
Declaration
public float MinHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The minimum height. |
MinWidth
Gets or sets the minimum width.
Declaration
public float MinWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The minimum width. |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name. |
Opacity
Gets or sets the opacity.
Declaration
public float Opacity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The opacity. |
Parent
Gets or sets the parent.
Declaration
public UIElement Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| UIElement | The parent. |
RenderPosition
Gets or sets the render position.
Declaration
public PointF RenderPosition { get; }
Property Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.PointF | The render position. |
RenderSize
Gets the size of the render.
Declaration
public Size RenderSize { get; }
Property Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size | The size of the render. |
Resources
Gets or sets the resources.
Declaration
public ResourceDictionary Resources { get; }
Property Value
| Type | Description |
|---|---|
| ResourceDictionary | The resources. |
SnapsToDevicePixels
Gets or sets a value indicating whether [snaps to device pixels].
Declaration
public bool SnapsToDevicePixels { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Style
Gets or sets the style.
Declaration
public Style Style { get; set; }
Property Value
| Type | Description |
|---|---|
| Style | The style. |
Tag
Gets or sets the tag.
Declaration
public object Tag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The tag. |
TemplatedParent
Gets the templated parent.
Declaration
public DependencyObject TemplatedParent { get; }
Property Value
| Type | Description |
|---|---|
| DependencyObject | The templated parent. |
ToolTip
Gets or sets the tool tip.
Declaration
public object ToolTip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The tool tip. |
Triggers
Gets the triggers - Trigger collection, only EventTriggers should be in this collection, others are ignored
Declaration
public List<TriggerBase> Triggers { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<TriggerBase> | The triggers. |
UseLayoutRounding
Gets or sets a value indicating whether [use layout rounding].
Declaration
public bool UseLayoutRounding { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
VerticalAlignment
Gets or sets the vertical alignment.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| VerticalAlignment | The vertical alignment. |
Visibility
Gets or sets the visibility.
Declaration
public Visibility Visibility { get; set; }
Property Value
| Type | Description |
|---|---|
| Visibility | The visibility. |
VisualOffset
Gets or sets the visual offset.
Declaration
public Rect VisualOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Rect | The visual offset. |
VisualPosition
Gets or sets the position.
Declaration
public PointF VisualPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.PointF | The position. |
Width
Gets or sets the width.
Declaration
public float Width { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The width. |
Methods
AddHandler(RoutedEvent, Delegate)
Adds the handler.
Declaration
public void AddHandler(RoutedEvent routedEvent, Delegate handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutedEvent | routedEvent | The routed event. |
| System.Delegate | handler | The handler. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | routedEvent or handler |
AddToEventRoute(EventRoute, RoutedEventArgs)
Adds to event route.
Declaration
public void AddToEventRoute(EventRoute route, RoutedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventRoute | route | The route. |
| RoutedEventArgs | e | The RoutedEventArgs instance containing the event data. |
ApplyTemplate()
Applies the template.
Declaration
public bool ApplyTemplate()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Arrange(Rect)
Arrange layout pass
Declaration
public void Arrange(Rect finalRect)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Rect | finalRect | The final rectangle for element layout |
ArrangeOverride(Size)
Arrange layout pass - overrider method for children
Declaration
protected virtual Size ArrangeOverride(Size finalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Size | finalSize | The final size. |
Returns
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size |
BringIntoView()
Brings element into view.
Declaration
public void BringIntoView()
CaptureMouse()
Captures the mouse.
Declaration
public void CaptureMouse()
CaptureTouch()
Captures the touch.
Declaration
public void CaptureTouch()
Contains(PointF, Size)
Determines whether [this element] contains [the specified point].
Declaration
public bool Contains(PointF point, Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.PointF | point | The point. |
| EmptyKeys.UserInterface.Size | size | The size. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Draw(Renderer, Double, Single)
Draws UI Element.
Declaration
public void Draw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Renderers.Renderer | spriterenderer | The sprite renderer. |
| System.Double | elapsedGameTime | The elapsed game time. |
| System.Single | opacity | The opacity. |
FindResource(Object)
Finds the resource.
Declaration
public object FindResource(object key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | key | The key. |
Returns
| Type | Description |
|---|---|
| System.Object |
Focus()
Focuses this instance.
Declaration
public void Focus()
InvalidateArrange()
Invalidates the arrange pass
Declaration
public void InvalidateArrange()
InvalidateIsEnabledOnChildren()
Invalidates the IsEnabled property value on children.
Declaration
protected virtual void InvalidateIsEnabledOnChildren()
InvalidateMeasure()
Invalidates the measure pass
Declaration
public void InvalidateMeasure()
Measure(Size)
Measures UI control
Declaration
public void Measure(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Size | availableSize | Size of the available. |
MeasureOverride(Size)
Measure layout pass
Declaration
protected virtual Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size |
OnApplyTemplate()
Called when [apply template].
Declaration
public virtual void OnApplyTemplate()
OnDraw(Renderer, Double, Single)
Called when [draw].
Declaration
protected virtual void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Renderers.Renderer | spriterenderer | The sprite renderer. |
| System.Double | elapsedGameTime | The elapsed game time. |
| System.Single | opacity | The opacity. |
OnGamepadDown(GamepadButtonEventArgs)
Raises the GamepadDown event.
Declaration
protected virtual void OnGamepadDown(GamepadButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GamepadButtonEventArgs | e | The GamepadButtonEventArgs instance containing the event data. |
OnGamepadMove(Object, GamepadMoveEventArgs)
Called when [game pad move].
Declaration
protected virtual void OnGamepadMove(object sender, GamepadMoveEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| GamepadMoveEventArgs | e | The GamepadMoveEventArgs instance containing the event data. |
OnGamepadTrigger(Object, GamepadTriggerEventArgs)
Called when [game pad trigger].
Declaration
protected virtual void OnGamepadTrigger(object sender, GamepadTriggerEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| GamepadTriggerEventArgs | e | The GamepadTriggerEventArgs instance containing the event data. |
OnGamepadUp(Object, GamepadButtonEventArgs)
Called when [game pad up].
Declaration
protected virtual void OnGamepadUp(object sender, GamepadButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| GamepadButtonEventArgs | e | The GamepadButtonEventArgs instance containing the event data. |
OnGotFocus(Object, RoutedEventArgs)
Called when [got focus].
Declaration
protected virtual void OnGotFocus(object sender, RoutedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| RoutedEventArgs | e | The RoutedEventArgs instance containing the event data. |
OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
Raises the IsEnabledChanged event.
Declaration
protected virtual void OnIsEnabledChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyPropertyChangedEventArgs | e | The DependencyPropertyChangedEventArgs instance containing the event data. |
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)
Raises the IsMouseCapturedChanged event.
Declaration
protected virtual void OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyPropertyChangedEventArgs | e | The DependencyPropertyChangedEventArgs instance containing the event data. |
OnKeyDown(KeyEventArgs)
Raises the KeyDown event.
Declaration
protected virtual void OnKeyDown(KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| KeyEventArgs | e | The KeyEventArgs instance containing the event data. |
OnKeyUp(Object, KeyEventArgs)
Called when [key up].
Declaration
protected virtual void OnKeyUp(object sender, KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| KeyEventArgs | e | The KeyEventArgs instance containing the event data. |
OnLostFocus(Object, RoutedEventArgs)
Called when [lost focus].
Declaration
protected virtual void OnLostFocus(object sender, RoutedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| RoutedEventArgs | e | The RoutedEventArgs instance containing the event data. |
OnMouseDown(MouseButtonEventArgs)
Raises the MouseDown event.
Declaration
protected virtual void OnMouseDown(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseButtonEventArgs | e | The MouseButtonEventArgs instance containing the event data. |
OnMouseEnter(MouseEventArgs)
Raises the MouseEnter event.
Declaration
protected virtual void OnMouseEnter(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data. |
OnMouseLeave(MouseEventArgs)
Raises the MouseLeave event.
Declaration
protected virtual void OnMouseLeave(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data. |
OnMouseMove(Object, MouseEventArgs)
Called when [mouse move].
Declaration
protected virtual void OnMouseMove(object sender, MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| MouseEventArgs | e | The MouseEventArgs instance containing the event data. |
OnMouseUp(Object, MouseButtonEventArgs)
Called when [mouse up].
Declaration
protected virtual void OnMouseUp(object sender, MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| MouseButtonEventArgs | e | The MouseButtonEventArgs instance containing the event data. |
OnMouseWheel(MouseWheelEventArgs)
Called when [mouse wheel].
Declaration
protected virtual void OnMouseWheel(MouseWheelEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseWheelEventArgs | e | The MouseWheelEventArgs instance containing the event data. |
OnOpacityChanged(DependencyPropertyChangedEventArgs)
Raises the OpacityChanged event.
Declaration
protected virtual void OnOpacityChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyPropertyChangedEventArgs | e | The DependencyPropertyChangedEventArgs instance containing the event data. |
OnPreviewGamepadDown(Object, GamepadButtonEventArgs)
Called when [preview game pad down].
Declaration
protected virtual void OnPreviewGamepadDown(object sender, GamepadButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| GamepadButtonEventArgs | e | The GamepadButtonEventArgs instance containing the event data. |
OnPreviewGamepadMove(Object, GamepadMoveEventArgs)
Called when [preview game pad move].
Declaration
protected virtual void OnPreviewGamepadMove(object sender, GamepadMoveEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| GamepadMoveEventArgs | e | The GamepadMoveEventArgs instance containing the event data. |
OnPreviewGamepadTrigger(Object, GamepadTriggerEventArgs)
Called when [preview game pad trigger].
Declaration
protected virtual void OnPreviewGamepadTrigger(object sender, GamepadTriggerEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| GamepadTriggerEventArgs | e | The GamepadTriggerEventArgs instance containing the event data. |
OnPreviewGamepadUp(Object, GamepadButtonEventArgs)
Called when [preview game pad up].
Declaration
protected virtual void OnPreviewGamepadUp(object sender, GamepadButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| GamepadButtonEventArgs | e | The GamepadButtonEventArgs instance containing the event data. |
OnPreviewKeyDown(Object, KeyEventArgs)
Called when [preview key down].
Declaration
protected virtual void OnPreviewKeyDown(object sender, KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| KeyEventArgs | e | The KeyEventArgs instance containing the event data. |
OnPreviewKeyUp(Object, KeyEventArgs)
Called when [preview key up].
Declaration
protected virtual void OnPreviewKeyUp(object sender, KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| KeyEventArgs | e | The KeyEventArgs instance containing the event data. |
OnPreviewMouseDown(Object, MouseButtonEventArgs)
Called when [preview mouse down].
Declaration
protected virtual void OnPreviewMouseDown(object sender, MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| MouseButtonEventArgs | e | The MouseButtonEventArgs instance containing the event data. |
OnPreviewMouseMove(Object, MouseEventArgs)
Called when [preview mouse move].
Declaration
protected virtual void OnPreviewMouseMove(object sender, MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| MouseEventArgs | e | The MouseEventArgs instance containing the event data. |
OnPreviewMouseUp(Object, MouseButtonEventArgs)
Called when [preview mouse up].
Declaration
protected virtual void OnPreviewMouseUp(object sender, MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| MouseButtonEventArgs | e | The MouseButtonEventArgs instance containing the event data. |
OnPreviewMouseWheel(Object, MouseWheelEventArgs)
Called when [preview mouse wheel].
Declaration
protected virtual void OnPreviewMouseWheel(object sender, MouseWheelEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| MouseWheelEventArgs | e | The MouseWheelEventArgs instance containing the event data. |
OnPreviewTouchDown(TouchEventArgs)
Raises the PreviewTouchDown event.
Declaration
protected virtual void OnPreviewTouchDown(TouchEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
OnPreviewTouchGesture(TouchGestureEventArgs)
Raises the PreviewTouchGesture event.
Declaration
protected virtual void OnPreviewTouchGesture(TouchGestureEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchGestureEventArgs | e | The TouchGestureEventArgs instance containing the event data. |
OnPreviewTouchMove(TouchEventArgs)
Raises the PreviewTouchMove event.
Declaration
protected virtual void OnPreviewTouchMove(TouchEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
OnPreviewTouchUp(TouchEventArgs)
Raises the PreviewTouchUp event.
Declaration
protected virtual void OnPreviewTouchUp(TouchEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
OnPropertyChanged(DependencyProperty)
Called when [property changed].
Declaration
protected override void OnPropertyChanged(DependencyProperty property)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyProperty | property | The property. |
Overrides
OnTouchDown(TouchEventArgs)
Raises the TouchDown event.
Declaration
protected virtual void OnTouchDown(TouchEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
OnTouchGesture(TouchGestureEventArgs)
Raises the TouchGesture event.
Declaration
protected virtual void OnTouchGesture(TouchGestureEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchGestureEventArgs | e | The TouchGestureEventArgs instance containing the event data. |
OnTouchMove(TouchEventArgs)
Raises the TouchMove event.
Declaration
protected virtual void OnTouchMove(TouchEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
OnTouchUp(TouchEventArgs)
Raises the TouchUp event.
Declaration
protected virtual void OnTouchUp(TouchEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
RaiseEvent(RoutedEventArgs)
Raises the event.
Declaration
public void RaiseEvent(RoutedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutedEventArgs | e | The RoutedEventArgs instance containing the event data. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | e |
ReleaseMouseCapture()
Releases the mouse capture.
Declaration
public void ReleaseMouseCapture()
ReleaseTouchCapture()
Releases the touch capture.
Declaration
public void ReleaseTouchCapture()
RemoveHandler(RoutedEvent, Delegate)
Removes the handler.
Declaration
public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutedEvent | routedEvent | The routed event. |
| System.Delegate | handler | The handler. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | routedEvent or handler |
Events
Collapsed
Occurs when [collapsed].
Declaration
public event RoutedEventHandler Collapsed
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
DataContextChanged
Occurs when [data context changed].
Declaration
public event DependencyPropertyChangedEventHandler DataContextChanged
Event Type
| Type | Description |
|---|---|
| DependencyPropertyChangedEventHandler |
GamepadDown
Occurs when [game pad down].
Declaration
public event GamepadButtonEventHandler GamepadDown
Event Type
| Type | Description |
|---|---|
| GamepadButtonEventHandler |
GamepadMove
Occurs when [game pad move].
Declaration
public event GamepadMoveEventHandler GamepadMove
Event Type
| Type | Description |
|---|---|
| GamepadMoveEventHandler |
GamepadTrigger
Occurs when [game pad trigger].
Declaration
public event GamepadTriggerEventHandler GamepadTrigger
Event Type
| Type | Description |
|---|---|
| GamepadTriggerEventHandler |
GamepadUp
Occurs when [game pad up].
Declaration
public event GamepadButtonEventHandler GamepadUp
Event Type
| Type | Description |
|---|---|
| GamepadButtonEventHandler |
GotFocus
Occurs when [got focus].
Declaration
public event RoutedEventHandler GotFocus
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
Hidden
Occurs when [hidden].
Declaration
public event RoutedEventHandler Hidden
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
IsEnabledChanged
Occurs when [is enabled changed].
Declaration
public event DependencyPropertyChangedEventHandler IsEnabledChanged
Event Type
| Type | Description |
|---|---|
| DependencyPropertyChangedEventHandler |
IsMouseCapturedChanged
Occurs when [is mouse captured changed].
Declaration
public event DependencyPropertyChangedEventHandler IsMouseCapturedChanged
Event Type
| Type | Description |
|---|---|
| DependencyPropertyChangedEventHandler |
KeyDown
Occurs when [key down].
Declaration
public event KeyEventHandler KeyDown
Event Type
| Type | Description |
|---|---|
| KeyEventHandler |
KeyUp
Occurs when [key up].
Declaration
public event KeyEventHandler KeyUp
Event Type
| Type | Description |
|---|---|
| KeyEventHandler |
LayoutUpdated
Occurs when [layout updated].
Declaration
public event EventHandler LayoutUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Loaded
Occurs when [loaded].
Declaration
public event RoutedEventHandler Loaded
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
LostFocus
Occurs when [lost focus].
Declaration
public event RoutedEventHandler LostFocus
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
MouseDown
Occurs when [mouse down].
Declaration
public event MouseButtonEventHandler MouseDown
Event Type
| Type | Description |
|---|---|
| MouseButtonEventHandler |
MouseEnter
Occurs when [mouse enter].
Declaration
public event MouseEventHandler MouseEnter
Event Type
| Type | Description |
|---|---|
| MouseEventHandler |
MouseLeave
Occurs when [mouse leave].
Declaration
public event MouseEventHandler MouseLeave
Event Type
| Type | Description |
|---|---|
| MouseEventHandler |
MouseMove
Occurs when [mouse move].
Declaration
public event MouseEventHandler MouseMove
Event Type
| Type | Description |
|---|---|
| MouseEventHandler |
MouseUp
Occurs when [mouse up].
Declaration
public event MouseButtonEventHandler MouseUp
Event Type
| Type | Description |
|---|---|
| MouseButtonEventHandler |
MouseWheel
Occurs when [mouse wheel].
Declaration
public event MouseWheelEventHandler MouseWheel
Event Type
| Type | Description |
|---|---|
| MouseWheelEventHandler |
PreviewGamepadDown
Occurs when [preview game pad down].
Declaration
public event GamepadButtonEventHandler PreviewGamepadDown
Event Type
| Type | Description |
|---|---|
| GamepadButtonEventHandler |
PreviewGamepadMove
Occurs when [preview game pad move].
Declaration
public event GamepadMoveEventHandler PreviewGamepadMove
Event Type
| Type | Description |
|---|---|
| GamepadMoveEventHandler |
PreviewGamepadTrigger
Occurs when [preview game pad trigger].
Declaration
public event GamepadTriggerEventHandler PreviewGamepadTrigger
Event Type
| Type | Description |
|---|---|
| GamepadTriggerEventHandler |
PreviewGamepadUp
Occurs when [preview game pad up].
Declaration
public event GamepadButtonEventHandler PreviewGamepadUp
Event Type
| Type | Description |
|---|---|
| GamepadButtonEventHandler |
PreviewKeyDown
Occurs when [preview key down].
Declaration
public event KeyEventHandler PreviewKeyDown
Event Type
| Type | Description |
|---|---|
| KeyEventHandler |
PreviewKeyUp
Occurs when [preview key up].
Declaration
public event KeyEventHandler PreviewKeyUp
Event Type
| Type | Description |
|---|---|
| KeyEventHandler |
PreviewMouseDown
Occurs when [preview mouse down].
Declaration
public event MouseButtonEventHandler PreviewMouseDown
Event Type
| Type | Description |
|---|---|
| MouseButtonEventHandler |
PreviewMouseMove
Occurs when [preview mouse move].
Declaration
public event MouseEventHandler PreviewMouseMove
Event Type
| Type | Description |
|---|---|
| MouseEventHandler |
PreviewMouseUp
Occurs when [preview mouse up].
Declaration
public event MouseButtonEventHandler PreviewMouseUp
Event Type
| Type | Description |
|---|---|
| MouseButtonEventHandler |
PreviewMouseWheel
Occurs when [preview mouse wheel].
Declaration
public event MouseWheelEventHandler PreviewMouseWheel
Event Type
| Type | Description |
|---|---|
| MouseWheelEventHandler |
PreviewTouchDown
Occurs when [preview touch down].
Declaration
public event RoutedEventHandler PreviewTouchDown
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
PreviewTouchGesture
Occurs when [preview touch gesture].
Declaration
public event RoutedEventHandler PreviewTouchGesture
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
PreviewTouchMove
Occurs when [preview touch move].
Declaration
public event RoutedEventHandler PreviewTouchMove
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
PreviewTouchUp
Occurs when [preview touch up].
Declaration
public event RoutedEventHandler PreviewTouchUp
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
RequestBringIntoView
Occurs when [request bring into view].
Declaration
public event RequestBringIntoViewEventHandler RequestBringIntoView
Event Type
| Type | Description |
|---|---|
| RequestBringIntoViewEventHandler |
SizeChanged
Occurs when [size changed].
Declaration
public event RoutedEventHandler SizeChanged
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
TouchDown
Occurs when [touch down].
Declaration
public event RoutedEventHandler TouchDown
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
TouchGesture
Occurs when [touch gesture].
Declaration
public event RoutedEventHandler TouchGesture
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
TouchMove
Occurs when [touch move].
Declaration
public event RoutedEventHandler TouchMove
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
TouchUp
Occurs when [touch up].
Declaration
public event RoutedEventHandler TouchUp
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
Unloaded
Occurs when [unloaded].
Declaration
public event RoutedEventHandler Unloaded
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |
Visible
Occurs when [visible].
Declaration
public event RoutedEventHandler Visible
Event Type
| Type | Description |
|---|---|
| RoutedEventHandler |


Monotonectally generate distributed process improvements before best-of-breed quality vectors. Holisticly impact bricks-and-clicks materials via goal-oriented leadership. Enthusiastically synthesize effective communities vis-a-vis team driven opportunities. Conveniently disseminate corporate resources for user-centric bandwidth.
Dynamically enhance state of the art functionalities vis-a-vis B2B value. Continually repurpose parallel innovation before user friendly human capital. Interactively enable highly efficient process improvements after stand-alone leadership skills. Quickly harness bleeding-edge metrics without cooperative resources. Dynamically monetize pandemic intellectual capital whereas exceptional quality vectors. Intrinsicly seize sticky infomediaries without high-quality innovation. Interactively e-enable timely bandwidth vis-a-vis proactive experiences. Competently grow turnkey core competencies via clicks-and-mortar "outside.
Competently formulate exceptional innovation with quality portals. Credibly seize multidisciplinary mindshare before low-risk high-yield outsourcing. Progressively impact premium methods of empowerment vis-a-vis extensible communities. Completely leverage other's team driven best practices with quality services. Holisticly envisioneer fully tested strategic theme areas without synergistic process improvements. Proactively generate high-payoff ROI and customer directed e-business. Uniquely build synergistic intellectual capital and focused growth strategies. Seamlessly utilize scalable bandwidth after multidisciplinary quality vectors. Competently expedite intermandated content via bricks-and-clicks content. Globally grow business niche markets whereas cost effective technologies. Proactively exploit transparent solutions without customized catalysts for change. Progressively embrace future-proof data rather than customer.


Starting XI: Chippa v Chiefs
by Soccer LadumaAbsa Premiership
Teams: Chippa United v Kaizer Chiefs
Date: 06 November 2019
Venue: Nelson Mandela Bay Stadium
Absa Premiership leaders Kaizer Chiefs travel to the Nelson Mandela Stadium on Wednesday looking to pile more misery on Chippa United.
Chiefs' depth will be tested after they played 120 minutes and took part in post-match penalties against Orlando Pirates in the Telkom Knockout on Saturday afternoon.
Ernst Middendorp's charges currently sit five points clear of second-place Mamelodi Sundowns, who they defeated 2-0 last weekend thanks to a brace from Samir Nurkovic.
Chippa, meanwhile, are still searching for their first league of the season have only registered four draws and five losses in their opening nine games.
Similarly to Chiefs, Chippa were taken to penalties over the weekend, although they lost out to Sundowns in their Telkom Knockout quarter-final at the Nelson Mandela Bay Stadium.
Last season's contest in Port Elizabeth ending a 1-0 win for the Chilli Boys in the league, while Chiefs claimed a 4-2 win in the Nedbank Cup.
Here's how they line up:
Chippa: 30. Tignyemb, 22. Modisane, 47. Nsabiyumva, 20. K. Moyo, 14. E. Moyo,13. Maphangule, 33. Mahola, 44. Komane, 11. Maziya, 15. Kwem, 40. Twala.
Subs: Mazibuko, 9. L. Manzini, 19. R, Manzini, Mthethwa, 32. Lentjies, 17. Damons, 8. Rakhale.
Chiefs: 44. Bvuma, 18. Moleko, 36. Ntiya-Ntiya, 30. Ngezana, 22. Zulu, 4. Cardoso, 31. Katsande, 28. Zuma, 25. Parker, 7. Kambole, 9. Nurkovic.
Subs: 43. Akpeyi, 8. Castro, 26. Gordinho, 12. Maluleka, 2. Mphahlele, 18. Mahlasela, 45. Blom.


Cosmix was created by a team at Salva O'Renick in Kansas City, MO., as part of the fourth annual NASA International Space Apps Challenge. Members of the team include Mark O'Renick, Dan Salva, Mike Wilson, Ryan Schneider, Doug Niccum, Garrett Peek, Eric MacEwen, Mike Lavieri, Luke Bettis, and Nathan Victor.


Peripheral management¶
This section describes the Embedded Controller human interface device management module, which mainly handles buttons and switches associated with human interaction.
Windows Button Support¶
Power button
The power button input to EC is by default driven HIGH with a pull-up. On power button press this line will be pulled LOW which triggers interrupt.
Volume up/down buttons
Home button
Switches (when applicable)¶
Laptop lid
Screen rotation lock
This module is used to track the state of switches and notifies other modules when a state change occurs in any of them.
Button (press, released)
Switch (open, closed)
The main role of this module is to deal with the undesirable effect that any mechanical switch has whenever it bangs together causing electrical rebound before settling down after the electrical transient time.
Therefore, this module is mainly involved in removing these undesired changes or debouncing.
Note
Disable this module if your board already has debouncing by hardware.
Implementation¶
Mechanical switch debouncing is implemented using cooperative threading to track the state transitions from all buttons registered within the system.
This module uses a cooperative thread to track the state transitions from all buttons registered within the system.
Callbacks per button/switch are registered within the GPIO driver to track different state transitions for button and switches.
Note
This module assumes that the gpios connected to buttons or switches are already configured during board initialization as input. It also assumes that interrupt for changes in the state is enabled and configured to trigger on both edges.
When the GPIO driver notifies this module of a GPIO level change in either direction, the pin is moved into “debouncing” state. Once the button is debounced, the pin is moved back to ‘stable’ state.
The state of a button/pin changes from debouncing to stable state by means of a counter. Once the debounce process begins, a counter is increased every millisecond. If the counter reaches zero without any additional level change, it means the “bouncing” or electrical transient period is considered over. This results in a state transition out of “debouncing” state and their respective observers are notified.
Before the counter expires, if there is another callback indicating a change on the pin, the counter is reset back to maximum DEBOUNCE_TIME and the pin continues debouncing.
Note
This module considers that most buttons or switches won’t exhibit bouncing with a duration exceeding 5 milliseconds, hence DEBOUNCE_TIME is set to 5.
Additionally, in order to handle cases where circuit is too noisy, the module filters events and only notifies the observers only when an actual change has occurred.


Class OverridingTargetContainer
A version of TargetContainer which overrides and extends the registrations of another (the Parent).
Inherited Members
Namespace: Rezolver
Assembly: Rezolver.dll
Syntax
public sealed class OverridingTargetContainer : TargetContainer, IRootTargetContainer, ITargetContainer, ICovariantTypeIndex
Remarks
When this class searches for an entry for a type, if it cannot find one within its own registrations, it falls back to the registrations of its ancestors (starting with its Parent).
As a result, any dependencies required by registrations in this container can be provided by any ancestor.
This fallback logic in the Fetch(Type) is triggered by the UseFallback property.
The FetchAll(Type) method, however, returns all targets registered directly in this container and in the parent.
Constructors
| Improve this Doc View SourceOverridingTargetContainer(ITargetContainer, ITargetContainerConfig)
Initializes a new instance of the OverridingTargetContainer class.
Declaration
public OverridingTargetContainer(ITargetContainer parent, ITargetContainerConfig config = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ITargetContainer | parent | Required. The parent target container. |
| ITargetContainerConfig | config | Optional. The configuration to apply to this target container. If null, then the DefaultConfig is used. |
Properties
| Improve this Doc View SourceParent
Gets the parent target container.
Declaration
public ITargetContainer Parent { get; }
Property Value
| Type | Description |
|---|---|
| ITargetContainer | The parent. |
Root
Overrides the base implementation so that the root is derived from the Parent.
Declaration
public override IRootTargetContainer Root { get; }
Property Value
| Type | Description |
|---|---|
| IRootTargetContainer |
Overrides
Methods
| Improve this Doc View SourceFetch(Type)
Fetches the registered target for the given type
, if found, or
forwards the call to the Parent container.
Declaration
public override ITarget Fetch(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type whose registration is sought. |
Returns
| Type | Description |
|---|---|
| ITarget | The target which is registered for the given type, or null if no registration can be found. |
Overrides
| Improve this Doc View SourceFetchAll(Type)
Implementation of FetchAll(Type) which returns an enumerable of targets from both the base target container and this target container.
Declaration
public override IEnumerable<ITarget> FetchAll(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type whose targets are to be retrieved. |
Returns
| Type | Description |
|---|---|
| IEnumerable<ITarget> | A non-null enumerable containing the targets that match the type, or an empty enumerable if the type is not registered. |


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.AppConfig @import helper.CSRF @import models.forms.{ActivityFormData, MessageFormData} @import models.request.AuthenticatedRequest @import models.response.FileStoreInitiateResponse @import models.viewmodels._ @import models.viewmodels.atar.AttachmentsTabViewModel @import views.html.helper.CSPNonce @import views.html.partials.{activity_details, messages_logged, attachments_details} @import models.viewmodels.miscellaneous.DetailsViewModel @import models.viewmodels.SampleStatusTabViewModel @import views.html.partials.miscellaneous_case_details @import views.html.includes.main @import views.html.layouts.full_main_content_layout @this( main: main, fullMainContent: full_main_content_layout, case_heading: views.html.v2.case_heading, case_action_buttons_partial: views.html.partials.liabilities.case_action_buttons_partial, advanced_search_cases: views.html.partials.liabilities.advanced_search_cases, sample_status: views.html.partials.sample.sample_details_correspondence ) @( caseViewModel: CaseViewModel, caseDetailsTab: DetailsViewModel, messagesTab : MessagesTabViewModel, messageForm: Form[MessageFormData], sampleTab: SampleStatusTabViewModel, attachmentsTab: AttachmentsTabViewModel, uploadForm: Form[String], initiateResponse: FileStoreInitiateResponse, activityTab: ActivityViewModel, activityForm: Form[ActivityFormData], attachments: Seq[StoredAttachment], primaryNavTab: PrimaryNavigationTab = MyCasesTab )(implicit request: AuthenticatedRequest[_], messages: Messages, appConfig: AppConfig) @additionalJS = { } @main( pageTitle = messages("case.v2.miscellaneous.page_title"), customPrimaryNavTab = primaryNavTab, optCustomLayout = Some(fullMainContent(_)), additionalJS = Some(additionalJS) ) {


igx-chip components inside igx-chips-area
You can read more about configuring the igx-chip component in the README or the official documentation.


Foster's Flashers
Study
Create
History
Let us get you on your way to brain power!
Name
Email
Phone
Help
Request Help
Cancel Request
The following is what you traded for ultimate power:


| 1 | /* =========================================================== | |
| 2 | * JFreeChart : a free chart library for the Java(tm) platform | |
| 3 | * =========================================================== | |
| 4 | * | |
| 5 | * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. | |
| 6 | * | |
| 7 | * Project Info: http://www.jfree.org/jfreechart/index.html | |
| 8 | * | |
| 9 | * This library is free software; you can redistribute it and/or modify it | |
| 10 | * under the terms of the GNU Lesser General Public License as published by | |
| 11 | * the Free Software Foundation; either version 2.1 of the License, or | |
| 12 | * (at your option) any later version. | |
| 13 | * | |
| 14 | * This library is distributed in the hope that it will be useful, but | |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
| 16 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public | |
| 17 | * License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU Lesser General Public | |
| 20 | * License along with this library; if not, write to the Free Software | |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, | |
| 22 | * USA. | |
| 23 | * | |
| 24 | * [Java is a trademark or registered trademark of Sun Microsystems, Inc. | |
| 25 | * in the United States and other countries.] | |
| 26 | * | |
| 27 | * -------- | |
| 28 | * CSV.java | |
| 29 | * -------- | |
| 30 | * (C) Copyright 2003-2008, by Object Refinery Limited. | |
| 31 | * | |
| 32 | * Original Author: David Gilbert (for Object Refinery Limited); | |
| 33 | * Contributor(s): -; | |
| 34 | * | |
| 35 | * Changes | |
| 36 | * ------- | |
| 37 | * 24-Nov-2003 : Version 1 (DG); | |
| 38 | * | |
| 39 | */ | |
| 40 | ||
| 41 | package org.jfree.data.io; | |
| 42 | ||
| 43 | import java.io.BufferedReader; | |
| 44 | import java.io.IOException; | |
| 45 | import java.io.Reader; | |
| 46 | import java.util.List; | |
| 47 | ||
| 48 | import org.jfree.data.category.CategoryDataset; | |
| 49 | import org.jfree.data.category.DefaultCategoryDataset; | |
| 50 | ||
| 51 | /** | |
| 52 | * A utility class for reading {@link CategoryDataset} data from a CSV file. | |
| 53 | * This initial version is very basic, and won't handle errors in the data | |
| 54 | * file very gracefully. | |
| 55 | */ | |
| 56 | public class CSV { | |
| 57 | ||
| 58 | /** The field delimiter. */ | |
| 59 | private char fieldDelimiter; | |
| 60 | ||
| 61 | /** The text delimiter. */ | |
| 62 | private char textDelimiter; | |
| 63 | ||
| 64 | /** | |
| 65 | * Creates a new CSV reader where the field delimiter is a comma, and the | |
| 66 | * text delimiter is a double-quote. | |
| 67 | */ | |
| 68 | public CSV() { | |
| 69 | this(',', '"'); | |
| 70 | } | |
| 71 | ||
| 72 | /** | |
| 73 | * Creates a new reader with the specified field and text delimiters. | |
| 74 | * | |
| 75 | * @param fieldDelimiter the field delimiter (usually a comma, semi-colon, | |
| 76 | * colon, tab or space). | |
| 77 | * @param textDelimiter the text delimiter (usually a single or double | |
| 78 | * quote). | |
| 79 | */ | |
| 80 | public CSV(char fieldDelimiter, char textDelimiter) { | |
| 81 | this.fieldDelimiter = fieldDelimiter; | |
| 82 | this.textDelimiter = textDelimiter; | |
| 83 | } | |
| 84 | ||
| 85 | /** | |
| 86 | * Reads a {@link CategoryDataset} from a CSV file or input source. | |
| 87 | * | |
| 88 | * @param in the input source. | |
| 89 | * | |
| 90 | * @return A category dataset. | |
| 91 | * | |
| 92 | * @throws IOException if there is an I/O problem. | |
| 93 | */ | |
| 94 | public CategoryDataset readCategoryDataset(Reader in) throws IOException { | |
| 95 | ||
| 96 | DefaultCategoryDataset dataset = new DefaultCategoryDataset(); | |
| 97 | BufferedReader reader = new BufferedReader(in); | |
| 98 | List columnKeys = null; | |
| 99 | int lineIndex = 0; | |
| 100 | String line = reader.readLine(); | |
| 101 |
1
1. readCategoryDataset : negated conditional → NO_COVERAGE |
while (line != null) { |
| 102 |
1
1. readCategoryDataset : negated conditional → NO_COVERAGE |
if (lineIndex == 0) { // first line contains column keys |
| 103 | columnKeys = extractColumnKeys(line); | |
| 104 | } | |
| 105 | else { // remaining lines contain a row key and data values | |
| 106 |
1
1. readCategoryDataset : removed call to org/jfree/data/io/CSV::extractRowKeyAndData → NO_COVERAGE |
extractRowKeyAndData(line, dataset, columnKeys); |
| 107 | } | |
| 108 | line = reader.readLine(); | |
| 109 |
1
1. readCategoryDataset : Changed increment from 1 to -1 → NO_COVERAGE |
lineIndex++; |
| 110 | } | |
| 111 |
1
1. readCategoryDataset : mutated return of Object value for org/jfree/data/io/CSV::readCategoryDataset to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return dataset; |
| 112 | ||
| 113 | } | |
| 114 | ||
| 115 | /** | |
| 116 | * Extracts the column keys from a string. | |
| 117 | * | |
| 118 | * @param line a line from the input file. | |
| 119 | * | |
| 120 | * @return A list of column keys. | |
| 121 | */ | |
| 122 | private List extractColumnKeys(String line) { | |
| 123 | List keys = new java.util.ArrayList(); | |
| 124 | int fieldIndex = 0; | |
| 125 | int start = 0; | |
| 126 |
3
1. extractColumnKeys : changed conditional boundary → NO_COVERAGE 2. extractColumnKeys : Changed increment from 1 to -1 → NO_COVERAGE 3. extractColumnKeys : negated conditional → NO_COVERAGE |
for (int i = 0; i < line.length(); i++) { |
| 127 |
1
1. extractColumnKeys : negated conditional → NO_COVERAGE |
if (line.charAt(i) == this.fieldDelimiter) { |
| 128 |
2
1. extractColumnKeys : changed conditional boundary → NO_COVERAGE 2. extractColumnKeys : negated conditional → NO_COVERAGE |
if (fieldIndex > 0) { // first field is ignored, since |
| 129 | // column 0 is for row keys | |
| 130 | String key = line.substring(start, i); | |
| 131 | keys.add(removeStringDelimiters(key)); | |
| 132 | } | |
| 133 |
1
1. extractColumnKeys : Replaced integer addition with subtraction → NO_COVERAGE |
start = i + 1; |
| 134 |
1
1. extractColumnKeys : Changed increment from 1 to -1 → NO_COVERAGE |
fieldIndex++; |
| 135 | } | |
| 136 | } | |
| 137 | String key = line.substring(start, line.length()); | |
| 138 | keys.add(removeStringDelimiters(key)); | |
| 139 |
1
1. extractColumnKeys : mutated return of Object value for org/jfree/data/io/CSV::extractColumnKeys to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return keys; |
| 140 | } | |
| 141 | ||
| 142 | /** | |
| 143 | * Extracts the row key and data for a single line from the input source. | |
| 144 | * | |
| 145 | * @param line the line from the input source. | |
| 146 | * @param dataset the dataset to be populated. | |
| 147 | * @param columnKeys the column keys. | |
| 148 | */ | |
| 149 | private void extractRowKeyAndData(String line, | |
| 150 | DefaultCategoryDataset dataset, | |
| 151 | List columnKeys) { | |
| 152 | Comparable rowKey = null; | |
| 153 | int fieldIndex = 0; | |
| 154 | int start = 0; | |
| 155 |
3
1. extractRowKeyAndData : changed conditional boundary → NO_COVERAGE 2. extractRowKeyAndData : Changed increment from 1 to -1 → NO_COVERAGE 3. extractRowKeyAndData : negated conditional → NO_COVERAGE |
for (int i = 0; i < line.length(); i++) { |
| 156 |
1
1. extractRowKeyAndData : negated conditional → NO_COVERAGE |
if (line.charAt(i) == this.fieldDelimiter) { |
| 157 |
1
1. extractRowKeyAndData : negated conditional → NO_COVERAGE |
if (fieldIndex == 0) { // first field contains the row key |
| 158 | String key = line.substring(start, i); | |
| 159 | rowKey = removeStringDelimiters(key); | |
| 160 | } | |
| 161 | else { // remaining fields contain values | |
| 162 | Double value = Double.valueOf( | |
| 163 | removeStringDelimiters(line.substring(start, i)) | |
| 164 | ); | |
| 165 |
2
1. extractRowKeyAndData : Replaced integer subtraction with addition → NO_COVERAGE 2. extractRowKeyAndData : removed call to org/jfree/data/category/DefaultCategoryDataset::addValue → NO_COVERAGE |
dataset.addValue( |
| 166 | value, rowKey, | |
| 167 | (Comparable) columnKeys.get(fieldIndex - 1) | |
| 168 | ); | |
| 169 | } | |
| 170 |
1
1. extractRowKeyAndData : Replaced integer addition with subtraction → NO_COVERAGE |
start = i + 1; |
| 171 |
1
1. extractRowKeyAndData : Changed increment from 1 to -1 → NO_COVERAGE |
fieldIndex++; |
| 172 | } | |
| 173 | } | |
| 174 | Double value = Double.valueOf( | |
| 175 | removeStringDelimiters(line.substring(start, line.length())) | |
| 176 | ); | |
| 177 |
2
1. extractRowKeyAndData : Replaced integer subtraction with addition → NO_COVERAGE 2. extractRowKeyAndData : removed call to org/jfree/data/category/DefaultCategoryDataset::addValue → NO_COVERAGE |
dataset.addValue( |
| 178 | value, rowKey, (Comparable) columnKeys.get(fieldIndex - 1) | |
| 179 | ); | |
| 180 | } | |
| 181 | ||
| 182 | /** | |
| 183 | * Removes the string delimiters from a key (as well as any white space | |
| 184 | * outside the delimiters). | |
| 185 | * | |
| 186 | * @param key the key (including delimiters). | |
| 187 | * | |
| 188 | * @return The key without delimiters. | |
| 189 | */ | |
| 190 | private String removeStringDelimiters(String key) { | |
| 191 | String k = key.trim(); | |
| 192 |
1
1. removeStringDelimiters : negated conditional → NO_COVERAGE |
if (k.charAt(0) == this.textDelimiter) { |
| 193 | k = k.substring(1); | |
| 194 | } | |
| 195 |
2
1. removeStringDelimiters : Replaced integer subtraction with addition → NO_COVERAGE 2. removeStringDelimiters : negated conditional → NO_COVERAGE |
if (k.charAt(k.length() - 1) == this.textDelimiter) { |
| 196 |
1
1. removeStringDelimiters : Replaced integer subtraction with addition → NO_COVERAGE |
k = k.substring(0, k.length() - 1); |
| 197 | } | |
| 198 |
1
1. removeStringDelimiters : mutated return of Object value for org/jfree/data/io/CSV::removeStringDelimiters to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return k; |
| 199 | } | |
| 200 | ||
| 201 | } | |
Mutations | ||
| 101 |
1.1 |
|
| 102 |
1.1 |
|
| 106 |
1.1 |
|
| 109 |
1.1 |
|
| 111 |
1.1 |
|
| 126 |
1.1 2.2 3.3 |
|
| 127 |
1.1 |
|
| 128 |
1.1 2.2 |
|
| 133 |
1.1 |
|
| 134 |
1.1 |
|
| 139 |
1.1 |
|
| 155 |
1.1 2.2 3.3 |
|
| 156 |
1.1 |
|
| 157 |
1.1 |
|
| 165 |
1.1 2.2 |
|
| 170 |
1.1 |
|
| 171 |
1.1 |
|
| 177 |
1.1 2.2 |
|
| 192 |
1.1 |
|
| 195 |
1.1 2.2 |
|
| 196 |
1.1 |
|
| 198 |
1.1 |


XmlListModel QML Type
For specifying a read-only model using XPath expressions More...
| Import Statement: | import QtQuick.XmlListModel 2.0 |
Properties
- count : int
- namespaceDeclarations : string
- progress : real
- query : string
- roles : list<XmlRole>
- source : url
- status : enumeration
- xml : string
Methods
- void errorString()
- object get(int index)
- void reload()
Detailed Description
To use this element, you will need to import the module with the following line:
import QtQuick.XmlListModel 2.0
XmlListModel is used to create a read-only model from XML data. It can be used as a data source for view elements (such as ListView, PathView, GridView) and other elements that interact with model data (such as Repeater).
For example, if there is a XML document at http://www.mysite.com/feed.xml like this:
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> ... <channel> <item> <title>A blog post</title> <pubDate>Sat, 07 Sep 2010 10:00:01 GMT</pubDate> </item> <item> <title>Another blog post</title> <pubDate>Sat, 07 Sep 2010 15:35:01 GMT</pubDate> </item> </channel> </rss>
A XmlListModel could create a model from this data, like this:
import QtQuick 2.0 import QtQuick.XmlListModel 2.0 XmlListModel { id: xmlModel source: "http://www.mysite.com/feed.xml" query: "/rss/channel/item" XmlRole { name: "title"; query: "title/string()" } XmlRole { name: "pubDate"; query: "pubDate/string()" } }
The query value of "/rss/channel/item" specifies that the XmlListModel should generate a model item for each <item>
in the XML document.
The XmlRole objects define the model item attributes. Here, each model item will have title
and pubDate
attributes that match the title
and pubDate
values of its corresponding <item>
. (See XmlRole::query for more examples of valid XPath expressions for XmlRole.)
The model could be used in a ListView, like this:
ListView { width: 180; height: 300 model: xmlModel delegate: Text { text: title + ": " + pubDate } }
The XmlListModel data is loaded asynchronously, and status is set to XmlListModel.Ready
when loading is complete. Note this means when XmlListModel is used for a view, the view is not populated until the model is loaded.
Using key XML roles
You can define certain roles as "keys" so that when reload() is called, the model will only add and refresh data that contains new values for these keys.
For example, if above role for "pubDate" was defined like this instead:
XmlRole { name: "pubDate"; query: "pubDate/string()"; isKey: true }
Then when reload() is called, the model will only add and reload items with a "pubDate" value that is not already present in the model.
This is useful when displaying the contents of XML documents that are incrementally updated (such as RSS feeds) to avoid repainting the entire contents of a model in a view.
If multiple key roles are specified, the model only adds and reload items with a combined value of all key roles that is not already present in the model.
See also Qt Quick Demo - RSS News.
Property Documentation
The namespace declarations to be used in the XPath queries.
The namespaces should be declared as in XQuery. For example, if a requested document at http://mysite.com/feed.xml uses the namespace "http://www.w3.org/2005/Atom", this can be declared as the default namespace:
XmlListModel { source: "http://mysite.com/feed.xml" query: "/feed/entry" namespaceDeclarations: "declare default element namespace 'http://www.w3.org/2005/Atom';" XmlRole { name: "title"; query: "title/string()" } }
This indicates the current progress of the downloading of the XML data source. This value ranges from 0.0 (no data downloaded) to 1.0 (all data downloaded). If the XML data is not from a remote source, the progress becomes 1.0 as soon as the data is read.
Note that when the progress is 1.0, the XML data has been downloaded, but it is yet to be loaded into the model at this point. Use the status property to find out when the XML data has been read and loaded into the model.
An absolute XPath query representing the base query for creating model items from this model's XmlRole objects. The query should start with '/' or '//'.
roles : list<XmlRole> |
The roles to make available for this model.
Specifies the model loading status, which can be one of the following:
- XmlListModel.Null - No XML data has been set for this model.
- XmlListModel.Ready - The XML data has been loaded into the model.
- XmlListModel.Loading - The model is in the process of reading and loading XML data.
- XmlListModel.Error - An error occurred while the model was loading. See errorString() for details about the error.
See also progress.
This property holds the XML data for this model, if set.
The text is assumed to be UTF-8 encoded.
If both source and xml
are set, xml
is used.
Method Documentation
Returns a string description of the last error that occurred if status is XmlListModel::Error.
Returns the item at index in the model.
For example, for a model like this:
XmlListModel { id: model source: "http://mysite.com/feed.xml" query: "/feed/entry" XmlRole { name: "title"; query: "title/string()" } }
This will access the title
value for the first item in the model:
var title = model.get(0).title;
Reloads the model.
If no key roles have been specified, all existing model data is removed, and the model is rebuilt from scratch.
Otherwise, items are only added if the model does not already contain items with matching key role values.
See also Using key XML roles and XmlRole::isKey.


Hot-keys on this page
n s m x c change column sorting
| Module | statements | missing | excluded | coverage |
|---|---|---|---|---|
| Total | 674 | 27 | 0 | 96% |
| court/__init__.py | 0 | 0 | 0 | 100% |
| court/app.py | 75 | 2 | 0 | 97% |
| court/chats/__init__.py | 0 | 0 | 0 | 100% |
| court/chats/models.py | 34 | 2 | 0 | 94% |
| court/chats/sockets.py | 52 | 6 | 0 | 88% |
| court/chats/thread_service.py | 82 | 2 | 0 | 98% |
| court/chats/views.py | 32 | 0 | 0 | 100% |
| court/config.py | 18 | 0 | 0 | 100% |
| court/database.py | 2 | 0 | 0 | 100% |
| court/errors.py | 28 | 2 | 0 | 93% |
| court/matches/__init__.py | 0 | 0 | 0 | 100% |
| court/matches/match_service.py | 161 | 9 | 0 | 94% |
| court/matches/views.py | 22 | 0 | 0 | 100% |
| court/sockets.py | 2 | 0 | 0 | 100% |
| court/users/__init__.py | 0 | 0 | 0 | 100% |
| court/users/auth_service.py | 90 | 2 | 0 | 98% |
| court/users/models.py | 54 | 1 | 0 | 98% |
| court/users/views.py | 22 | 1 | 0 | 95% |
No items found using the specified filter.


The Waba aux Directory
The aux directory is where we put lots off nifty stuff and important
stuff which isn't directly pertaining to building the VM per se, but is
useful or critical to running Waba on the Newton.
- addToClasspath
-
Stuff that developers should put in their classpaths
- apps
- Sample Waba applications for you to compile. Consists of two example applications for the NSWabaAPI, some test and benchmarking applications, and the suite of example apps that comes with the standard Waba package.
- LibrarySource
- Source code for building the waba.pkg library (special) and the wababin package
- proposedAPIChanges
- Some dressed-up classes showing changes Sean is proposing for the Waba core API.
- misc
- Various other stuff
- originalVM
- Original Waba VM code for your enjoyment


Here are a few results from the project
Fast As Fuck, Kid
...Particularly the spiral mode
...using a combination of pilot control and damping
Here are some specific details
250 feet
195.68 feet
27.31 feet
GE CF6 High-Bypass Turbofan Engine


|
||||||||||
| PREV NEXT | FRAMES NO FRAMES |
| Packages that use GateException | |
|---|---|
| com.ontotext.gate.vr | |
| gate | This package contains the public interface to the GATE Java API. |
| gate.config | |
| gate.corpora | |
| gate.creole | |
| gate.creole.gazetteer | |
| gate.creole.ir | |
| gate.creole.ontology | The GATE ontology API. |
| gate.creole.tokeniser | |
| gate.gui | |
| gate.gui.annedit | |
| gate.gui.docview | |
| gate.jape | |
| gate.jape.functest | |
| gate.persist | |
| gate.security | |
| gate.util | |
| gate.util.compilers | |
| gate.util.spring | |
| gate.wordnet |
| Uses of GateException in com.ontotext.gate.vr |
|---|
| Subclasses of GateException in com.ontotext.gate.vr | |
|---|---|
class |
GeneralEditorException
A general editor exception |
| Uses of GateException in gate |
|---|
| Methods in gate that throw GateException | |
|---|---|
List<Resource> |
CreoleRegister.getAllInstances(String type)
Get a list of all the known Resource instances in the register that are of the specified (class or interface) type or one of its sub-types. |
static MainFrame |
Main.getMainFrame()
Get the main frame of the GUI. |
static URL |
Gate.getUrl()
Get a URL that points to either an HTTP server or a file system that contains GATE files (such as test cases). |
static URL |
Gate.getUrl(String path)
Get a URL that points to either an HTTP server or a file system that contains GATE files (such as test cases). |
static void |
Gate.init()
Initialisation - must be called by all clients before using any other parts of the library. |
static void |
Gate.initConfigData()
Reads config data (gate.xml files). |
static void |
Gate.initCreoleRegister()
Initialise the CREOLE register. |
static void |
Main.main(String[] args)
Main routine for GATE. |
void |
CreoleRegister.registerBuiltins()
Register resources that are built in to the GATE distribution. |
void |
CreoleRegister.registerComponent(Class<? extends Resource> clazz)
Given the class object for a class with CreoleResource
annotations, register that class is if it was found in a scanned jar
file with no additional creole.xml information. |
void |
CreoleRegister.registerDirectories()
Register all the CREOLE directories that we know of. |
void |
CreoleRegister.registerDirectories(URL directoryUrl)
Register a single CREOLE directory. |
static void |
Gate.registerIREngine(String className)
Registers a new IR engine. |
private static void |
Main.runGui()
Run the user interface. |
static void |
Gate.writeUserConfig()
Update the GATE development environment configuration data in the user's gate.xml file (create one if it doesn't exist). |
| Uses of GateException in gate.config |
|---|
| Methods in gate.config that throw GateException | |
|---|---|
void |
ConfigDataProcessor.parseConfigFile(InputStream configStream,
URL configUrl)
Parse a config file (represented as an open stream). |
| Constructors in gate.config that throw GateException | |
|---|---|
ConfigDataProcessor()
Default constructor. |
|
TestConfig(String name)
Construction |
| Uses of GateException in gate.corpora |
|---|
| Methods in gate.corpora that throw GateException | |
|---|---|
void |
TestTikaFormats.setUp()
|
| Uses of GateException in gate.creole |
|---|
| Subclasses of GateException in gate.creole | |
|---|---|
class |
ExecutionException
Exception used to signal problems during the execution of GATE controllers and Processing Resources. |
class |
ExecutionInterruptedException
Thrown by Executable s after they have stopped their execution
as a result of a call to their interrupt() method. |
class |
ParameterException
This exception indicates failure to set a resource parameter. |
class |
ResourceInstantiationException
This exception indicates failure during instantiation of resources, which may be due to a number of causes: the resource metadata contains parameters that aren't available on the resource; the class for the resource cannot be found (e.g. because a Jar URL was incorrectly specified); because access to the resource class is denied by the class loader; because of insufficient or incorrect resource metadata. |
| Methods in gate.creole that throw GateException | |
|---|---|
void |
AnnotationVisualResource.cancelAction()
Called by the GUI when the user has pressed the "Cancel" button. |
void |
BootStrap.createResource(String resourceName,
String packageName,
String typeResource,
String className,
Set interfacesList,
String pathNewProject)
Creates the resource and dumps out a project structure using the structure from gate/resource/creole/bootstrap/Template and the information provided by the user |
private void |
ResourceData.determineSharableProperties(Class<?> cls,
Collection<String> hiddenPropertyNames)
|
List<Resource> |
CreoleRegisterImpl.getAllInstances(String type)
|
List<Resource> |
CreoleRegisterImpl.getAllInstances(String type,
boolean includeHidden)
|
void |
AnnotationVisualResource.okAction()
Called by the GUI when the user has pressed the "OK" button. |
protected void |
CreoleRegisterImpl.parseDirectory(InputStream directoryStream,
URL directoryUrl,
URL creoleFileUrl)
Parse a directory file (represented as an open stream), adding resource data objects to the CREOLE register as they occur. |
void |
CreoleAnnotationHandler.processAnnotations(org.jdom.Document jdomDoc)
Processes annotations for resource classes named in the given creole.xml document, adding the relevant XML elements to the document as appropriate. |
private void |
CreoleAnnotationHandler.processAnnotations(org.jdom.Element element)
Process annotations for the given element. |
private void |
CreoleAnnotationHandler.processAnnotationsForResource(org.jdom.Element element)
Process the given RESOURCE element, adding extra elements to it based on the annotations on the resource class. |
void |
CreoleAnnotationHandler.processCreoleResourceAnnotations(org.jdom.Element element,
Class<?> resourceClass)
|
private void |
CreoleRegisterImpl.processFullCreoleXmlTree(URL directoryUrl,
URL creoleFileUrl,
org.jdom.Document jdomDoc,
CreoleAnnotationHandler annotationHandler)
|
private void |
CreoleAnnotationHandler.processParameters(Class<?> resourceClass,
org.jdom.Element resourceElement,
Map<String,org.jdom.Element> parameterMap,
Map<String,org.jdom.Element> disjunctionMap)
Process any CreoleParameter and
HiddenCreoleParameter annotations on set methods of the
given class and set up the corresponding PARAMETER elements. |
void |
CreoleRegisterImpl.registerBuiltins()
Register resources that are built in to the GATE distribution. |
void |
CreoleRegisterImpl.registerComponent(Class<? extends Resource> resourceClass)
|
void |
CreoleRegisterImpl.registerDirectories()
Deprecated. |
void |
CreoleRegisterImpl.registerDirectories(URL directoryUrl)
Register a single CREOLE directory. |
static void |
AbstractResource.removeResourceListeners(Resource resource,
Map listeners)
Removes listeners from a resource. |
static void |
AbstractResource.setResourceListeners(Resource resource,
Map listeners)
Adds listeners to a resource. |
void |
TestControllers.setUp()
Fixture set up |
void |
TestSplitterTagger.setUp()
Fixture set up |
void |
BootStrap.verifyInput(String className,
String pathNewProject)
verify if the class name contains only letters and digits the path of the new project is a directory |
| Constructors in gate.creole that throw GateException | |
|---|---|
CreoleRegisterImpl()
Default constructor. |
|
TestCreole(String name)
Construction |
|
TestCreoleAnnotationHandler(String name)
Construction |
| Uses of GateException in gate.creole.gazetteer |
|---|
| Subclasses of GateException in gate.creole.gazetteer | |
|---|---|
class |
GazetteerException
Used to signal Gazetteer specific exceptions |
class |
InvalidFormatException
exception thrown when an invalid format of a file is detected |
| Uses of GateException in gate.creole.ir |
|---|
| Constructors in gate.creole.ir that throw GateException | |
|---|---|
TestIndex(String name)
|
| Uses of GateException in gate.creole.ontology |
|---|
| Subclasses of GateException in gate.creole.ontology | |
|---|---|
class |
InvalidValueException
This exception should be thrown when a property value is not compatible with the property. e.g. boolean value for the integer datatype, invalid instance for an object property. |
| Uses of GateException in gate.creole.tokeniser |
|---|
| Subclasses of GateException in gate.creole.tokeniser | |
|---|---|
class |
InvalidRuleException
Fired when an invalid tokeniser rule is found |
class |
TokeniserException
The top level exception for all the exceptions fired by the tokeniser |
| Uses of GateException in gate.gui |
|---|
| Methods in gate.gui that throw GateException | |
|---|---|
void |
SyntaxTreeViewer.cancelAction()
Called by the GUI when the user has pressed the "Cancel" button. |
void |
SyntaxTreeViewer.okAction()
Called by the GUI when the user has pressed the "OK" button. |
| Uses of GateException in gate.gui.annedit |
|---|
| Methods in gate.gui.annedit that throw GateException | |
|---|---|
void |
SchemaAnnotationEditor.cancelAction()
Does nothing, as this editor does not support cancelling and rollbacks. |
void |
SchemaAnnotationEditor.okAction()
Does nothing as this editor works in auto-commit mode (changes are implemented immediately). |
| Uses of GateException in gate.gui.docview |
|---|
| Methods in gate.gui.docview that throw GateException | |
|---|---|
void |
AnnotationEditor.cancelAction()
Does nothing, as this editor does not support cancelling and rollbacks. |
void |
AnnotationEditor.okAction()
Does nothing as this editor works in auto-commit mode (changes are implemented immediately). |
| Uses of GateException in gate.jape |
|---|
| Subclasses of GateException in gate.jape | |
|---|---|
class |
JapeException
Superclass of all JAPE exceptions. |
class |
JdmException
THIS CLASS SHOULDN'T BE HERE. |
class |
NonFatalJapeException
|
| Uses of GateException in gate.jape.functest |
|---|
| Methods in gate.jape.functest that throw GateException | |
|---|---|
private static void |
BaseJapeTests.registerCREOLE(File plugInDir)
|
void |
TestJape.testAllMode()
|
void |
TestJape.testAppeltMode()
|
void |
TestJape.testBrill()
|
| Uses of GateException in gate.persist |
|---|
| Subclasses of GateException in gate.persist | |
|---|---|
class |
PersistenceException
This exception indicates failure during persistence operations. |
| Constructors in gate.persist that throw GateException | |
|---|---|
TestPersist(String name)
Construction |
| Uses of GateException in gate.security |
|---|
| Subclasses of GateException in gate.security | |
|---|---|
class |
SecurityException
This exception indicates security violation. |
| Uses of GateException in gate.util |
|---|
| Subclasses of GateException in gate.util | |
|---|---|
class |
DocumentFormatException
This exception can be used to catch any internal exception thrown by the DocumentFormat class and its subbclasses. |
class |
InvalidOffsetException
Used to signal an attempt to create a node with an invalid offset. |
| Methods in gate.util that throw GateException | |
|---|---|
private void |
JarFiles.addJar(JarOutputStream destinationJar,
JarFile sourceJar)
This method adds all entries from sourceJar to destinationJar NOTE: that manifest information is not added, method will throw a gate Exception if a duplicate entry file is found. |
void |
Javac.compile(Map<String,String> sources)
Deprecated. |
abstract void |
Javac.compile(Map<String,String> sources,
GateClassLoader classLoader)
Compile a set of Java sources, and load the resulting classes into the GATE class loader. |
private static Javac |
Javac.createCompilerInstance(String compilerType)
|
static void |
Javac.loadClasses(Map<String,String> sources)
Deprecated. |
static void |
Javac.loadClasses(Map<String,String> sources,
GateClassLoader classLoader)
Compiles a set of java sources and loads the compiled classes in the gate class loader. |
static void |
CorpusBenchmarkTool.main(String[] args)
|
static void |
CorpusSaver.main(String[] args)
|
void |
JarFiles.merge(Set jarFileNames,
String destinationJarName)
This method takes the content of all jar/zip files from the set jarFileNames and put them in a file with the name outputFileName. |
void |
DocumentProcessor.processDocument(Document doc)
Process the given GATE document. |
void |
LanguageAnalyserDocumentProcessor.processDocument(Document doc)
|
private static void |
Javac.setCompilerTypeFromUserConfig()
Sets the type of compiler to be used, based on the user's configuration. |
| Uses of GateException in gate.util.compilers |
|---|
| Methods in gate.util.compilers that throw GateException | |
|---|---|
void |
Eclipse.compile(Map<String,String> sources,
GateClassLoader classLoader)
Compiles a set of java sources using the Eclipse Java compiler and loads the compiled classes in the gate class loader. |
| Uses of GateException in gate.util.spring |
|---|
| Methods in gate.util.spring that throw GateException | |
|---|---|
Object |
SavedApplicationFactoryBean.getObject()
Loads the saved application file and applies any registered customisers. |
static Object |
SpringFactory.loadObjectFromResource(org.springframework.core.io.Resource res)
Loads a saved application state (gapp file) from the given Spring resource. |
private void |
Init.loadPlugin(org.springframework.core.io.Resource plugin)
|
| Uses of GateException in gate.wordnet |
|---|
| Subclasses of GateException in gate.wordnet | |
|---|---|
class |
WordNetException
Title: Gate2 Description: Copyright: Copyright (c) 2000 Company: University Of Sheffield |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES |


new DataModel()
This is a generic model that supports the use of a mongo schema
and provides methods for REST verbs POST, GET, and DELETE.
- Source:
Classes
Methods
delete(key, value) → {Object}
Method that takes in two arugments, an key
and a value. Creates an object literal using
the passed arguments and exicutes a remove()
operation in the Mongo database using this object
as the query.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string | String corresponding to any key in a stored document. |
value |
string | String corresponding to any value in a stored document. |
- Source:
Returns:
JSON Object referencing the number of database entries found and deleted.
- Type
- Object
get(key, value) → {Object}
Method that takes in two arugments, an key
and a value. Creates an object literal using
the passed arguments and exicutes a find()
operation in the Mongo database using this object
as the query.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string | String corresponding to any key in a stored document. |
value |
string | String corresponding to any value in a stored document. |
- Source:
Returns:
JSON Object containing documents that match the find query.
- Type
- Object
post(note)
Method that takes in a note object
and passes it to a the instances Schema.
Returning modeled data according to the
schema and saving it to the database.
Parameters:
| Name | Type | Description |
|---|---|---|
note |
Object | JSON Object |
- Source:
Returns:
Modeled data according to schema and saves to Mongo database.


Use this test list with testapi-client to run only tests in the {{modal.version}} OpenStack Powered™ guideline from capabilities with the following statuses:
Alternatively, get the test list directly from the API on your CLI:
wget "{{modal.testListUrl}}" -O {{modal.version}}-test-list.txt


Normal Direction paragraph
Right to left direction paragraph. It is equivalent to right text alignment


Kevin Matite
https://github.com/kev7862/ping_pong
Javascript
Ping pong will count up your number from 1 with the following exeptions


new Tag(api_keyopt)
Parameters:
| Name |
Type |
Attributes |
Description |
api_key |
string
|
<optional>
|
|
- Source:
Methods
delete(aws_id, asset_idopt, tags, cb)
delete tags from an account or asset
Parameters:
| Name |
Type |
Attributes |
Description |
aws_id |
number
|
|
the aws id (owner_id) of the account |
asset_id |
string
|
<optional>
|
the id of the asset |
tags |
Array.<string>
|
object
|
|
the tags to delete |
cb |
stringCallback
|
|
called with a message saying how many tags were deleted |
- Source:
set(aws_id, asset_idopt, tags, cb)
adds/updates tags for an account or asset
Parameters:
| Name |
Type |
Attributes |
Description |
aws_id |
number
|
|
the aws id (owner_id) of the account |
asset_id |
string
|
<optional>
|
the id of the asset |
tags |
object
|
|
the tags to set |
cb |
stringCallback
|
|
called with a message saying how many tags were set |
- Source:
set_api_key(api_key)
sets the api key to use when making calls to CloudHealth's API
Parameters:
| Name |
Type |
Description |
api_key |
string
|
|
- Source: