@Test public void test_setsTopMemberToFullSize() { final Canvas member = new Canvas(); vSplitLayout.setTopMember(member); assertEquals("100%", member.getHeightAsString()); }
public void setTopMember(Canvas member) { String height = top.getHeightAsString(); if (member == null) { top = buildLabel("") .setHeight("50%") .setWidth("100%") .build(); } else { top = member; top.setHeight(height); } setMembers(top,bottom); }
VSplitLayout extends VLayout { public void setTopMember(Canvas member) { String height = top.getHeightAsString(); if (member == null) { top = buildLabel("") .setHeight("50%") .setWidth("100%") .build(); } else { top = member; top.setHeight(height); } setMembers(top,bottom); } }
VSplitLayout extends VLayout { public void setTopMember(Canvas member) { String height = top.getHeightAsString(); if (member == null) { top = buildLabel("") .setHeight("50%") .setWidth("100%") .build(); } else { top = member; top.setHeight(height); } setMembers(top,bottom); } VSplitLayout(); }
VSplitLayout extends VLayout { public void setTopMember(Canvas member) { String height = top.getHeightAsString(); if (member == null) { top = buildLabel("") .setHeight("50%") .setWidth("100%") .build(); } else { top = member; top.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 setTopMember(Canvas member) { String height = top.getHeightAsString(); if (member == null) { top = buildLabel("") .setHeight("50%") .setWidth("100%") .build(); } else { top = member; top.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);  }