no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@400 bb69d46d-e84e-40c8-a05a-06db0d633741
Luis Flores 19 years ago
parent 05e6a5202c
commit ef083491d5

@ -95,7 +95,7 @@ public class SIPRPTracker extends WindowTracker
public TrackableWindow create()
throws Exception
{
return new FichaWindow();
return FichaWindow.getWindow();
}
} );

@ -54,8 +54,10 @@ public class FichaWindow extends TabbedWindow
private static int permissions[][] =
new int[][]{ { NEW_INDEX, CANCEL_INDEX, SAVE_INDEX } };
private static FichaWindow window = null;
/** Creates a new instance of FichaWindow */
public FichaWindow()
private FichaWindow()
throws Exception
{
super( new UpperPanel(), new String[]{ "Empresa/Trabalhador", "Exame" },
@ -69,6 +71,16 @@ public class FichaWindow extends TabbedWindow
setupComponents();
}
public static FichaWindow getWindow()
throws Exception
{
if( window == null )
{
window = new FichaWindow();
}
return window;
}
private void setupComponents()
throws Exception
{
@ -797,4 +809,6 @@ public class FichaWindow extends TabbedWindow
exame.delete();
}
}
}

Loading…
Cancel
Save