Guest User

Untitled

a guest
Dec 17th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. public abstract class _ASListItem extends ConstraintLayout implements IControl, IASListItem
  2. {
  3. private JSONObject jsonObject = new JSONObject();
  4.  
  5. public void onSetJSONObject(JSONObject jsonObject)
  6. {
  7. this.jsonObject = jsonObject;
  8. }
  9.  
  10. public JSONObject onGetJSONObject() { return this.jsonObject; }
  11.  
  12.  
  13. public _ASListItem(JSONObject jsonObject, Context context)
  14. {
  15. super(context);
  16. this.onSetJSONObject(jsonObject);
  17. }
  18. public _ASListItem(JSONObject jsonObject, Context context, AttributeSet attrs)
  19. {
  20. super(context,attrs);
  21. this.onSetJSONObject(jsonObject);
  22. }
  23.  
  24. public _ASListItem(JSONObject jsonObject, Context context, AttributeSet attrs, int defStyle)
  25. {
  26. super(context,attrs,defStyle);
  27. this.onSetJSONObject(jsonObject);
  28. }
  29.  
  30. @Override
  31. protected void onAttachedToWindow()
  32. {
  33. super.onAttachedToWindow();
  34. this.onSetLayoutView(this);
  35.  
  36. this.onInitInstance(this);
  37. this.onHandleInstance(this);
  38. this.onUpdateInstance(this);
  39. }
  40. }
Add Comment
Please, Sign In to add comment