Skip to content

Commit

Permalink
feat(fluido): Adiciona suporte para fluidos
Browse files Browse the repository at this point in the history
  • Loading branch information
giovaneneves7 committed Oct 25, 2024
1 parent 8c1b7d1 commit 7004c76
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="0" y="80" width="1250" height="710"/>
<AbsoluteConstraints x="-90" y="70" width="1250" height="710"/>
</Constraint>
</Constraints>

Expand All @@ -360,6 +360,29 @@
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JComboBox" name="jComboTipoFluido">
<Properties>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="0" green="66" red="0" type="rgb"/>
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="4">
<StringItem index="0" value="&#xc1;gua"/>
<StringItem index="1" value="Gasolina"/>
<StringItem index="2" value="Diesel"/>
<StringItem index="3" value="Biodiesel"/>
</StringArray>
</Property>
</Properties>
<AuxValues>
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
</AuxValues>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="100" y="40" width="76" height="-1"/>
</Constraint>
</Constraints>
</Component>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="PnlBotoes">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ private void initComponents() {
pnlSpanSpace2 = new javax.swing.JPanel();
pnlEspacoTrabalho = new javax.swing.JPanel();
lblNotificacaoDeEstado = new javax.swing.JLabel();
jComboTipoFluido = new javax.swing.JComboBox<>();
PnlBotoes = new javax.swing.JPanel();
btnTubulacoes = new javax.swing.JButton();
btnConexoes = new javax.swing.JButton();
Expand Down Expand Up @@ -405,8 +406,13 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
pnlEspacoTrabalho.add(lblNotificacaoDeEstado);
lblNotificacaoDeEstado.setBounds(30, 10, 320, 18);

jComboTipoFluido.setForeground(new java.awt.Color(0, 102, 0));
jComboTipoFluido.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Água", "Gasolina", "Diesel", "Biodiesel" }));
pnlEspacoTrabalho.add(jComboTipoFluido);
jComboTipoFluido.setBounds(100, 40, 76, 24);

pnlBackgruond.add(pnlEspacoTrabalho);
pnlEspacoTrabalho.setBounds(0, 80, 1250, 710);
pnlEspacoTrabalho.setBounds(-90, 70, 1250, 710);

PnlBotoes.setBackground(new java.awt.Color(255, 255, 255));

Expand Down Expand Up @@ -666,6 +672,7 @@ public void run() {
private javax.swing.JButton btnSimular;
private javax.swing.JButton btnTubulacoes;
private javax.swing.JButton btnVavulas;
private javax.swing.JComboBox<String> jComboTipoFluido;
private javax.swing.JLabel lblNotificacaoDeEstado;
private javax.swing.JPanel pnlBackgruond;
private javax.swing.JPanel pnlEspacoTrabalho;
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/br/com/ifba/ipss/util/Fluido.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package br.com.ifba.ipss.util;

/**
*
* @author Giovane Neves
* @since V0.0.1
*/
public enum Fluido {

AGUA("agua"),
BIODIESEL("biodiesel"),
DIESEL("diesel");

public final String fluido;

private Fluido(final String fluido){

this.fluido = fluido;

}

public String getString(){

return fluido;

}

}

0 comments on commit 7004c76

Please sign in to comment.