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