Package org.pepstock.charba.client.dom
Interface IsCastable
-
- All Known Implementing Classes:
BaseNativeEvent
,BaseNativeMouseEvent
,Canvas
,CanvasGradientItem
,CanvasPatternItem
,Div
,Img
@JsType(isNative=true, name="Object", namespace="<global>") public interface IsCastable
Interface which is implemented to DOM elements or items which can be cast to other objects.
This is the interface in order to enable the link from other DOM tree managers to Charba.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T> T
as()
Performs checked cast to lefthand-side type.
-
-
-
Method Detail
-
as
@JsOverlay default <T> T as()
Performs checked cast to lefthand-side type.- Type Parameters:
T
- type of result casting- Returns:
- the same object cast to the type
-
-