Ola
I'm just trying to ensure that I'm getting all I can to develop proper Custom Views. I've noted that with BANanoSkeleton, at times you used BANano.GetP and BANano.SetP and in some instances just used the variable names, or is it because this is universal to handle classes that are passed to it?
As an example (NOT USED HERE inside the class.
(USED HERE)
Thanks
I'm just trying to ensure that I'm getting all I can to develop proper Custom Views. I've noted that with BANanoSkeleton, at times you used BANano.GetP and BANano.SetP and in some instances just used the variable names, or is it because this is universal to handle classes that are passed to it?
As an example (NOT USED HERE inside the class.
B4X:
public Sub setText(text As String)
If mElement <> Null Then
mElement.SetHTML(BANano.SF(text))
End If
mText = text
End Sub
public Sub getText() As String
Return mText
End Sub
(USED HERE)
B4X:
public Sub GetEnabled(mElement As BANanoElement) As Boolean
Dim mEnabled As Boolean = Not(mElement.hasAttr("disabled"))
BANano.SetP(mSelf, "mEnabled", mEnabled)
Return mEnabled
End Sub
Thanks