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