|
|
|
|
@ -11,12 +11,15 @@ package siprp.medicina.presencas;
|
|
|
|
|
|
|
|
|
|
import com.evolute.utils.data.IDObject;
|
|
|
|
|
import com.evolute.utils.data.MappableObject;
|
|
|
|
|
import com.evolute.utils.tracker.TrackableWindow;
|
|
|
|
|
import com.evolute.utils.ui.calendar.JCalendarPanel;
|
|
|
|
|
import com.evolute.utils.ui.panel.multipleactionlist.MultipleActionListPanel;
|
|
|
|
|
import java.awt.BorderLayout;
|
|
|
|
|
import java.awt.FlowLayout;
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
import java.awt.event.ActionListener;
|
|
|
|
|
import java.awt.event.WindowAdapter;
|
|
|
|
|
import java.awt.event.WindowEvent;
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -24,7 +27,7 @@ import javax.swing.*;
|
|
|
|
|
* @author fpalma
|
|
|
|
|
*/
|
|
|
|
|
public class RegistarPresencasWindow extends JFrame
|
|
|
|
|
implements ActionListener
|
|
|
|
|
implements ActionListener, TrackableWindow
|
|
|
|
|
{
|
|
|
|
|
protected JCalendarPanel dataPanel;
|
|
|
|
|
protected JButton carregarButton;
|
|
|
|
|
@ -44,7 +47,7 @@ public class RegistarPresencasWindow extends JFrame
|
|
|
|
|
throws Exception
|
|
|
|
|
{
|
|
|
|
|
setupComponents();
|
|
|
|
|
setExtendedState( getExtendedState() | MAXIMIZED_BOTH );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setupComponents()
|
|
|
|
|
@ -80,6 +83,14 @@ public class RegistarPresencasWindow extends JFrame
|
|
|
|
|
upperPanel.add( dataPanel );
|
|
|
|
|
upperPanel.add( carregarButton );
|
|
|
|
|
|
|
|
|
|
setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );
|
|
|
|
|
addWindowListener( new WindowAdapter(){
|
|
|
|
|
public void windowClosing( WindowEvent e )
|
|
|
|
|
{
|
|
|
|
|
close();
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void actionPerformed( ActionEvent e )
|
|
|
|
|
@ -89,4 +100,31 @@ public class RegistarPresencasWindow extends JFrame
|
|
|
|
|
new MappableObject( new Integer( 1 ), "Sr. António da loja ao lado da do Sr. Fernando" ) } );
|
|
|
|
|
listScroll.setViewportView( listPanel );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void refresh()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void open()
|
|
|
|
|
{
|
|
|
|
|
setVisible( true );
|
|
|
|
|
setExtendedState( getExtendedState() | MAXIMIZED_BOTH );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void close()
|
|
|
|
|
{
|
|
|
|
|
SwingUtilities.invokeLater( new Runnable() {
|
|
|
|
|
public void run()
|
|
|
|
|
{
|
|
|
|
|
setVisible( false );
|
|
|
|
|
dispose();
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean closeIfPossible()
|
|
|
|
|
{
|
|
|
|
|
close();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|