Search in sources :

Example 1 with LWJDialogDecorator

use of org.vcell.client.logicalwindow.transition.LWJDialogDecorator in project vcell by virtualcell.

the class DialogUtils method showModalJDialogOnTop.

/**
 * @deprecated -- use setVisible on LWDialog
 * @param jdialog
 * @param component
 */
public static void showModalJDialogOnTop(JDialog jdialog, Component component) {
    if (jdialog instanceof LWDialog) {
        jdialog.setVisible(true);
        return;
    }
    LWContainerHandle lwParent = LWNamespace.findLWOwner(component);
    LWJDialogDecorator deco = LWJDialogDecorator.decoratorFor(jdialog);
    lwParent.manage(deco);
    deco.getWindow().setVisible(true);
}
Also used : LWDialog(org.vcell.client.logicalwindow.LWDialog) LWContainerHandle(org.vcell.client.logicalwindow.LWContainerHandle) LWJDialogDecorator(org.vcell.client.logicalwindow.transition.LWJDialogDecorator)

Aggregations

LWContainerHandle (org.vcell.client.logicalwindow.LWContainerHandle)1 LWDialog (org.vcell.client.logicalwindow.LWDialog)1 LWJDialogDecorator (org.vcell.client.logicalwindow.transition.LWJDialogDecorator)1