@Test public void test_resizesCenterHolderToNothingIfMemberIsNull() { borderLayout.setCenterMember(new Canvas()); borderLayout.setCenterMember(null); assertEquals(Integer.valueOf(0), getCenterHolder().getAttributeAsInt("width")); assertEquals(Integer.valueOf(0), getCenterHolder().getAttributeAsInt("height")); }
public void setCenterMember(Canvas member) { if (member == null) { center.setWidth(0); center.setHeight(0); center.setMembers(); } else { member.setHeight("100%"); member.setWidth("100%"); center.setWidth("100%"); center.setMembers(member); } }
BorderLayout extends VLayout { public void setCenterMember(Canvas member) { if (member == null) { center.setWidth(0); center.setHeight(0); center.setMembers(); } else { member.setHeight("100%"); member.setWidth("100%"); center.setWidth("100%"); center.setMembers(member); } } }
BorderLayout extends VLayout { public void setCenterMember(Canvas member) { if (member == null) { center.setWidth(0); center.setHeight(0); center.setMembers(); } else { member.setHeight("100%"); member.setWidth("100%"); center.setWidth("100%"); center.setMembers(member); } } BorderLayout(); }
BorderLayout extends VLayout { public void setCenterMember(Canvas member) { if (member == null) { center.setWidth(0); center.setHeight(0); center.setMembers(); } else { member.setHeight("100%"); member.setWidth("100%"); center.setWidth("100%"); center.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 setCenterMember(Canvas member) { if (member == null) { center.setWidth(0); center.setHeight(0); center.setMembers(); } else { member.setHeight("100%"); member.setWidth("100%"); center.setWidth("100%"); center.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);  }