Example #1
0
 public BodyPortal(Form form) {
   super(null, 0, null);
   this.form = form;
   this.tableview =
       (form.getView() == FormController.TABLE_VIEW
           || form.getView() == FormController.LOCKED_TABLE_VIEW);
 }
Example #2
0
 @Override
 public int hashCode() {
   return form == null ? 0 : form.hashCode();
 }
Example #3
0
 @Override
 public boolean equals(Object o) {
   if (form == null) return ((o instanceof BodyPortal) && (((BodyPortal) o).getForm() == null));
   if (o instanceof BodyPortal) return form.equals(((BodyPortal) o).getForm());
   return false;
 }