[ 2020194 ] Select BP from BP info with double-click

- miss someline when merging from 343
This commit is contained in:
Heng Sin Low 2009-03-12 05:46:16 +00:00
parent fb1cafb9ec
commit de705067d1
1 changed files with 13 additions and 4 deletions

View File

@ -857,10 +857,11 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
{
if (event.getTarget().equals(confirmPanel.getButton(ConfirmPanel.A_OK)))
{
if (!contentPanel.getChildren().isEmpty() && contentPanel.getSelectedRowKey()!=null)
{
dispose(true);
}
onOk();
}
else if (event.getTarget() == contentPanel && event.getName().equals(Events.ON_DOUBLE_CLICK))
{
onOk();
}
else if (event.getTarget().equals(confirmPanel.getButton(ConfirmPanel.A_REFRESH)))
{
@ -927,6 +928,14 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
}
} // onEvent
private void onOk()
{
if (!contentPanel.getChildren().isEmpty() && contentPanel.getSelectedRowKey()!=null)
{
dispose(true);
}
}
public void tableChanged(WTableModelEvent event)
{
enableButtons();