에서 I 추가 3 복합복합 패널에서 GWT
public class frame {
//Initialization
....
....
public Service service = new Service();
public frame() {
initWidget(getFramePanel());
}
private HorizontalPanel getFramePanel() {
if (hp== null) {
hp= new HorizontalPanel();
hp.setSize("1442px", "750px");
hp.add(getTree());// **are composites**
hp.add(getTable()); // **are composite**
}
return hp;
}
제가 이해하는 것은 그 양이 tree
와 같은 클래스에 hp
에 첨가 table
그래서 변수 사용하거나 초기화 개체 수 클래스, 복합 재료
예 :service
객체 클래스 frame
에, 그래서 내가 모두 복합에 service
을 사용할 수 있습니다 whethr 알고 싶어요.
트리 및 테이블 합성 그렇다면 어떻게?
코드를 복사하지 않았기 때문에이 코드가 올바르지 않을 수 있습니다.