DCWXSwitchGroup.smali
.class public Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;
.super Lcom/taobao/weex/ui/component/WXComponent;
.source "DCWXSwitchGroup.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/taobao/weex/ui/component/WXComponent<",
"Lio/dcloud/feature/weex_switch/SwitchGroup;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(Lcom/taobao/weex/WXSDKInstance;Lcom/taobao/weex/ui/component/WXVContainer;Lcom/taobao/weex/ui/action/BasicComponentData;)V
.registers 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x10,
0x0,
0x0
}
names = {
"instance",
"parent",
"basicComponentData"
}
.end annotation
.line 23
invoke-direct {p0, p1, p2, p3}, Lcom/taobao/weex/ui/component/WXComponent;-><init>(Lcom/taobao/weex/WXSDKInstance;Lcom/taobao/weex/ui/component/WXVContainer;Lcom/taobao/weex/ui/action/BasicComponentData;)V
.line 24
new-instance p1, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup$1;
invoke-direct {p1, p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup$1;-><init>(Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;)V
invoke-virtual {p0, p1}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->setContentBoxMeasurement(Lcom/taobao/weex/layout/ContentBoxMeasurement;)V
return-void
.end method
# virtual methods
.method public addEvent(Ljava/lang/String;)V
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"type"
}
.end annotation
.line 74
invoke-super {p0, p1}, Lcom/taobao/weex/ui/component/WXComponent;->addEvent(Ljava/lang/String;)V
if-eqz p1, :cond_28
const-string v0, "change"
.line 75
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_28
invoke-virtual {p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->getHostView()Landroid/view/View;
move-result-object p1
if-eqz p1, :cond_28
.line 76
invoke-virtual {p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->getHostView()Landroid/view/View;
move-result-object p1
check-cast p1, Lio/dcloud/feature/weex_switch/SwitchGroup;
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lio/dcloud/feature/weex_switch/SwitchGroup;->getChildAt(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lio/dcloud/feature/weex_switch/SwitchButton;
new-instance v0, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup$2;
invoke-direct {v0, p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup$2;-><init>(Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;)V
invoke-virtual {p1, v0}, Lio/dcloud/feature/weex_switch/SwitchButton;->setOnCheckedChangeListener(Lio/dcloud/feature/weex_switch/SwitchButton$OnCheckedChangeListener;)V
:cond_28
return-void
.end method
.method protected bridge synthetic initComponentHostView(Landroid/content/Context;)Landroid/view/View;
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000
}
names = {
"context"
}
.end annotation
.line 20
invoke-virtual {p0, p1}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->initComponentHostView(Landroid/content/Context;)Lio/dcloud/feature/weex_switch/SwitchGroup;
move-result-object p1
return-object p1
.end method
.method protected initComponentHostView(Landroid/content/Context;)Lio/dcloud/feature/weex_switch/SwitchGroup;
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"context"
}
.end annotation
.line 53
new-instance v0, Lio/dcloud/feature/weex_switch/SwitchGroup;
invoke-direct {v0, p1}, Lio/dcloud/feature/weex_switch/SwitchGroup;-><init>(Landroid/content/Context;)V
return-object v0
.end method
.method protected removeEventFromView(Ljava/lang/String;)V
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"type"
}
.end annotation
.line 91
invoke-super {p0, p1}, Lcom/taobao/weex/ui/component/WXComponent;->removeEventFromView(Ljava/lang/String;)V
.line 92
invoke-virtual {p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->getHostView()Landroid/view/View;
move-result-object v0
if-eqz v0, :cond_22
const-string v0, "change"
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_22
.line 93
invoke-virtual {p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->getHostView()Landroid/view/View;
move-result-object p1
check-cast p1, Lio/dcloud/feature/weex_switch/SwitchGroup;
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lio/dcloud/feature/weex_switch/SwitchGroup;->getChildAt(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lio/dcloud/feature/weex_switch/SwitchButton;
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lio/dcloud/feature/weex_switch/SwitchButton;->setOnCheckedChangeListener(Lio/dcloud/feature/weex_switch/SwitchButton$OnCheckedChangeListener;)V
:cond_22
return-void
.end method
.method public setChecked(Z)V
.registers 4
.annotation runtime Lcom/taobao/weex/ui/component/WXComponentProp;
name = "checked"
.end annotation
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"checked"
}
.end annotation
.line 59
invoke-virtual {p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->getHostView()Landroid/view/View;
move-result-object v0
check-cast v0, Lio/dcloud/feature/weex_switch/SwitchGroup;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lio/dcloud/feature/weex_switch/SwitchGroup;->getChildAt(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lio/dcloud/feature/weex_switch/SwitchButton;
invoke-virtual {v0, p1}, Lio/dcloud/feature/weex_switch/SwitchButton;->setChecked(Z)V
return-void
.end method
.method public setColor(Ljava/lang/String;)V
.registers 4
.annotation runtime Lcom/taobao/weex/ui/component/WXComponentProp;
name = "color"
.end annotation
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"color"
}
.end annotation
.line 69
invoke-virtual {p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->getHostView()Landroid/view/View;
move-result-object v0
check-cast v0, Lio/dcloud/feature/weex_switch/SwitchGroup;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lio/dcloud/feature/weex_switch/SwitchGroup;->getChildAt(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lio/dcloud/feature/weex_switch/SwitchButton;
invoke-static {p1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
move-result p1
invoke-virtual {v0, p1}, Lio/dcloud/feature/weex_switch/SwitchButton;->setCheckedColor(I)V
return-void
.end method
.method public setDisabled(Z)V
.registers 4
.annotation runtime Lcom/taobao/weex/ui/component/WXComponentProp;
name = "disabled"
.end annotation
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"disabled"
}
.end annotation
.line 64
invoke-virtual {p0}, Lio/dcloud/feature/weex_switch/DCWXSwitchGroup;->getHostView()Landroid/view/View;
move-result-object v0
check-cast v0, Lio/dcloud/feature/weex_switch/SwitchGroup;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lio/dcloud/feature/weex_switch/SwitchGroup;->getChildAt(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lio/dcloud/feature/weex_switch/SwitchButton;
xor-int/lit8 p1, p1, 0x1
invoke-virtual {v0, p1}, Lio/dcloud/feature/weex_switch/SwitchButton;->setEnabled(Z)V
return-void
.end method