Skip to content

Commit

Permalink
Botões RelatórioView
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaraujos committed Jun 20, 2016
1 parent bf11920 commit 1cefe3c
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 33 deletions.
57 changes: 39 additions & 18 deletions src/com/spej/view/RelatoriosView.form
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
<EmptySpace min="-2" pref="34" max="-2" attributes="0"/>
<Component id="jPanelDatas" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jPanelUsuario" min="-2" max="-2" attributes="0"/>
<Component id="jPanelDepartamento" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="jPanelUsuario" max="32767" attributes="0"/>
<Component id="jPanelDepartamento" max="32767" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="30" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
<Component id="jPanelBotoes" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
Expand All @@ -108,11 +108,17 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="32767" attributes="0"/>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<Component id="jScrollPane1" min="-2" pref="198" max="-2" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<Component id="jScrollPane1" min="-2" pref="198" max="-2" attributes="0"/>
</Group>
</Group>
<Component id="jSelecionarTudoUsuario" alignment="0" max="32767" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
Expand All @@ -125,7 +131,8 @@
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane1" min="-2" pref="179" max="-2" attributes="0"/>
<EmptySpace pref="32" max="32767" attributes="0"/>
<EmptySpace pref="14" max="32767" attributes="0"/>
<Component id="jSelecionarTudoUsuario" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
Expand All @@ -152,6 +159,11 @@
<Property name="text" type="java.lang.String" value="Usu&#xe1;rio"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="jSelecionarTudoUsuario">
<Properties>
<Property name="text" type="java.lang.String" value="Selecionar Tudo"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="jPanelBotoes">
Expand Down Expand Up @@ -213,20 +225,23 @@
<Container class="javax.swing.JPanel" name="jPanelDepartamento">
<Properties>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[211, 243]"/>
<Dimension value="[211, 247]"/>
</Property>
</Properties>

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="132" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jScrollPane4" max="32767" attributes="0"/>
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jScrollPane4" max="32767" attributes="0"/>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="122" max="32767" attributes="0"/>
</Group>
<Component id="jSelecionarTudoDepartamento" alignment="0" max="32767" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
Expand All @@ -238,7 +253,8 @@
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane4" min="-2" pref="178" max="-2" attributes="0"/>
<EmptySpace pref="34" max="32767" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jSelecionarTudoDepartamento" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
Expand All @@ -265,6 +281,11 @@
</Component>
</SubComponents>
</Container>
<Component class="javax.swing.JButton" name="jSelecionarTudoDepartamento">
<Properties>
<Property name="text" type="java.lang.String" value="Selecionar Tudo"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="jPanelDatas">
Expand Down
46 changes: 31 additions & 15 deletions src/com/spej/view/RelatoriosView.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jList1 = new javax.swing.JList();
jLabel1 = new javax.swing.JLabel();
jSelecionarTudoUsuario = new javax.swing.JButton();
jPanelBotoes = new javax.swing.JPanel();
jBotaoPresenca = new javax.swing.JButton();
jBotaoAtividades = new javax.swing.JButton();
Expand All @@ -59,6 +60,7 @@ private void initComponents() {
jLabel5 = new javax.swing.JLabel();
jScrollPane4 = new javax.swing.JScrollPane();
jList4 = new javax.swing.JList();
jSelecionarTudoDepartamento = new javax.swing.JButton();
jPanelDatas = new javax.swing.JPanel();
jLabelInicial = new javax.swing.JLabel();
jLabelFinal = new javax.swing.JLabel();
Expand All @@ -85,15 +87,21 @@ private void initComponents() {

jLabel1.setText("Usuário");

jSelecionarTudoUsuario.setText("Selecionar Tudo");

javax.swing.GroupLayout jPanelUsuarioLayout = new javax.swing.GroupLayout(jPanelUsuario);
jPanelUsuario.setLayout(jPanelUsuarioLayout);
jPanelUsuarioLayout.setHorizontalGroup(
jPanelUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanelUsuarioLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap()
.addGroup(jPanelUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanelUsuarioLayout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(jPanelUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jSelecionarTudoUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanelUsuarioLayout.setVerticalGroup(
Expand All @@ -103,7 +111,8 @@ private void initComponents() {
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(32, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
.addComponent(jSelecionarTudoUsuario))
);

jBotaoPresenca.setText("Relatório Presença");
Expand Down Expand Up @@ -150,23 +159,27 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addContainerGap(17, Short.MAX_VALUE))
);

jPanelDepartamento.setPreferredSize(new java.awt.Dimension(211, 243));
jPanelDepartamento.setPreferredSize(new java.awt.Dimension(211, 247));

jLabel5.setText("Departamento");

jList4.setModel(new com.spej.model.DepartamentoListModel());
jScrollPane4.setViewportView(jList4);

jSelecionarTudoDepartamento.setText("Selecionar Tudo");

javax.swing.GroupLayout jPanelDepartamentoLayout = new javax.swing.GroupLayout(jPanelDepartamento);
jPanelDepartamento.setLayout(jPanelDepartamentoLayout);
jPanelDepartamentoLayout.setHorizontalGroup(
jPanelDepartamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanelDepartamentoLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel5)
.addContainerGap(132, Short.MAX_VALUE))
.addGroup(jPanelDepartamentoLayout.createSequentialGroup()
.addComponent(jScrollPane4)
.addGroup(jPanelDepartamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane4)
.addGroup(jPanelDepartamentoLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel5)
.addGap(0, 122, Short.MAX_VALUE))
.addComponent(jSelecionarTudoDepartamento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanelDepartamentoLayout.setVerticalGroup(
Expand All @@ -176,7 +189,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(jLabel5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(34, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jSelecionarTudoDepartamento))
);

jPanelDatas.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));
Expand Down Expand Up @@ -259,10 +273,10 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGap(34, 34, 34)
.addComponent(jPanelDatas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanelUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanelDepartamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jPanelUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanelDepartamento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(26, 26, 26)
.addComponent(jPanelBotoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
Expand Down Expand Up @@ -321,5 +335,7 @@ private void makeRelatorio(Relatorios relatorio) {
private javax.swing.JPanel jPanelUsuario;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane4;
private javax.swing.JButton jSelecionarTudoDepartamento;
private javax.swing.JButton jSelecionarTudoUsuario;
// End of variables declaration//GEN-END:variables
}

0 comments on commit 1cefe3c

Please sign in to comment.