PDA

View Full Version : EXT?GWT???Window???????????



mina
21 Oct 2009, 1:17 AM
????????????
EXT GWT 1.2
GWT1.53
?WEB????????????????
EXT GWT??com.extjs.gxt.ui.client.widget.Window???????????????????????????????????????????????????????????????????
????????????????
???????????????????????????????

katsu_taira
26 Oct 2009, 1:14 AM
mina??????????

??????????????????????
Window?????????????????????????
???????????????Window????????
??????????

?????????????????????????
???????????????

?????????????

mina
26 Oct 2009, 2:51 PM
katsu_taira????????????????

???GWT???????????????????????????????

EXT???????GWT?Window???????????GWT?PopupPanel???????????????
????????????????????
???????????????????????EXT??????????????

EntryPoint??????????com.extjs.gxt.ui.client.widget.Window?show()????????
???????????????????com.extjs.gxt.ui.client.widget.Window??????????.show()????????
????????????

????????
Window ?setModal??????????????????
?????????????????????????????

????????
?EntryPoint????????????

SubRegistPanel pu = new SubRegistPanel ();??????????

Window popup = pu.createPanel(proxy,this.uform,this.lists,dt);????Window???
?????setModal(true);???

popup.show();

?????????

SimpleDatePicker calendar= new SimpleDatePicker();(?Window?DatePicker????????)
calendar.show();

?SimpleDatePicker??
????Modal?True???
calendarPopup.setModal(true);

protected Window calendarPopup = new Window();
calendarPopup.addListener( Events.BeforeHide,new Listener<WindowEvent>() {
public void handleEvent(final WindowEvent wbe) {
calendarPopup.setModal(false);
}});
?????Modal?false???

?????????????????????
????????????????????????????????

katsu_taira
26 Oct 2009, 6:32 PM
mina????????????????????

???????????????????????????
?????????Window?????????????
popup
calendar
calendarPopup
????2?????????????????
???calendarPopup?show???????????????
????????????????

??????????setModal(true)?????Window?
Modal?????????????????????????
Window?????????????????????????????
setModal(true)?????
???????????????????????????
????OK???????

?????????Modal?false?????Listener????????????
ext gwt?Window?hide??????Modal????????????????????

????????????????????
???sub sub2??????Window w1 w2??????
???????????w2?w1??????????
(ext gwt 1.2.3 GWT 1.7????????GWT1.5??????????????????

-------???------------------------------

public void onModuleLoad() {

Button bt1 = new Button("sub");
Button bt2 = new Button("sub2");
RootPanel.get().add(bt1);
final Window w1 = new Window();
w1.setHeading("w1");
final Window w2 = new Window();
w2.setHeading("w2");
w1.add(bt2);

bt1.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
w1.show();
}
});
bt2.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
w2.show();
}
});

}

mina
26 Oct 2009, 7:22 PM
katsu_taira ????????????????

?????????????????????????katsu_taira ??????????????????

??????????????
????????Hyperlink???????????
Hyperlink??????????????????
???????????????????????????????????????????????

?????????????????????????
????????????????

??????????????????????

???????????
????????????????


public void onModuleLoad() {

Button bt1 = new Button("sub");
Button bt2 = new Button("sub2");
RootPanel.get().add(bt1);
final Window w1 = new Window();
w1.setHeading("w1");
final Window w2 = new Window();
w2.setHeading("w2");
w1.add(bt2);

bt1.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
w1.show();
}
});
bt2.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
w2.show();
}
});
//???????

final Hyperlink testlink = new Hyperlink("?", "");
w1.add(testlink);
testlink.addClickListener(new ClickListener() {
?public void onClick(Widget widget) {
??w2.show();
??}
?});

}