@Test public void test_setsBottomMemberToFullSize() { final Canvas member = new Canvas(); vSplitLayout.setBottomMember(member); assertEquals("100%", member.getHeightAsString()); }
public void setBottomMember(Canvas member) { String height = bottom.getHeightAsString(); if (member == null) { bottom = buildLabel("") .setHeight("*") .setWidth("100%") .build(); } else { bottom = member; bottom.setHeight(height); } setMembers(top,bottom); }
VSplitLayout extends VLayout { public void setBottomMember(Canvas member) { String height = bottom.getHeightAsString(); if (member == null) { bottom = buildLabel("") .setHeight("*") .setWidth("100%") .build(); } else { bottom = member; bottom.setHeight(height); } setMembers(top,bottom); } }
VSplitLayout extends VLayout { public void setBottomMember(Canvas member) { String height = bottom.getHeightAsString(); if (member == null) { bottom = buildLabel("") .setHeight("*") .setWidth("100%") .build(); } else { bottom = member; bottom.setHeight(height); } setMembers(top,bottom); } VSplitLayout(); }
VSplitLayout extends VLayout { public void setBottomMember(Canvas member) { String height = bottom.getHeightAsString(); if (member == null) { bottom = buildLabel("") .setHeight("*") .setWidth("100%") .build(); } else { bottom = member; bottom.setHeight(height); } setMembers(top,bottom); } VSplitLayout(); static Builder buildVSplitLayout(); void setProportions(double proportion); Canvas getTopMember(); void setTopMember(Canvas member); Canvas getBottomMember(); void setBottomMember(Canvas member); }
VSplitLayout extends VLayout { public void setBottomMember(Canvas member) { String height = bottom.getHeightAsString(); if (member == null) { bottom = buildLabel("") .setHeight("*") .setWidth("100%") .build(); } else { bottom = member; bottom.setHeight(height); } setMembers(top,bottom); } VSplitLayout(); static Builder buildVSplitLayout(); void setProportions(double proportion); Canvas getTopMember(); void setTopMember(Canvas member); Canvas getBottomMember(); void setBottomMember(Canvas member);  }