@Test public void test_resizesNorthHolderToNothingIfMemberIsNull() { borderLayout.setNorthMember(new Canvas()); borderLayout.setNorthMember(null); assertEquals(Integer.valueOf(0), getNorthHolder().getAttributeAsInt("height")); }
public void setNorthMember(Canvas member) { if (member == null) { north.setHeight(0); north.setMembers(); } else { member.setWidth("100%"); north.setHeight(1); north.setMembers(member); } }
BorderLayout extends VLayout { public void setNorthMember(Canvas member) { if (member == null) { north.setHeight(0); north.setMembers(); } else { member.setWidth("100%"); north.setHeight(1); north.setMembers(member); } } }
BorderLayout extends VLayout { public void setNorthMember(Canvas member) { if (member == null) { north.setHeight(0); north.setMembers(); } else { member.setWidth("100%"); north.setHeight(1); north.setMembers(member); } } BorderLayout(); }
BorderLayout extends VLayout { public void setNorthMember(Canvas member) { if (member == null) { north.setHeight(0); north.setMembers(); } else { member.setWidth("100%"); north.setHeight(1); north.setMembers(member); } } BorderLayout(); Canvas getCenterMember(); void setCenterMember(Canvas member); Canvas getNorthMember(); void setNorthMember(Canvas member); Canvas getSouthMember(); void setSouthMember(Canvas member); Canvas getWestMember(); void setWestMember(Canvas member); Canvas getEastMember(); void setEastMember(Canvas member); }
BorderLayout extends VLayout { public void setNorthMember(Canvas member) { if (member == null) { north.setHeight(0); north.setMembers(); } else { member.setWidth("100%"); north.setHeight(1); north.setMembers(member); } } BorderLayout(); Canvas getCenterMember(); void setCenterMember(Canvas member); Canvas getNorthMember(); void setNorthMember(Canvas member); Canvas getSouthMember(); void setSouthMember(Canvas member); Canvas getWestMember(); void setWestMember(Canvas member); Canvas getEastMember(); void setEastMember(Canvas member);  }