query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
/ renamed from: io.fabric.sdk.android.services.network.e | public interface C2836e {
/* renamed from: a */
InputStream mo1151a();
/* renamed from: b */
String mo1152b();
/* renamed from: c */
String[] mo1153c();
/* renamed from: d */
long mo1154d();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void buildNetwork() {\n }",
"@Override\r\n\t\t\tpublic void onNetworkError(NetworkError networkError) {\n\r\n\t\t\t}",
"void onCreateNewNetFailure();",
"@Override\n\tprotected void onNetworkConnected(NetType type) {\n\n\t}",
"private ConnectivityManager.NetworkCallback getNetworkCa... | [
"0.5916501",
"0.5869496",
"0.5654802",
"0.5542226",
"0.55194706",
"0.5509773",
"0.5490784",
"0.54808396",
"0.5411741",
"0.5409541",
"0.5396045",
"0.53893685",
"0.53557503",
"0.5310211",
"0.52807033",
"0.5277451",
"0.527636",
"0.5268458",
"0.52580863",
"0.5247666",
"0.52456194... | 0.0 | -1 |
/ renamed from: a | InputStream mo1151a(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | String mo1152b(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: c | String[] mo1153c(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.646023",
"0.6441935",
"0.6431023",
"0.6417576",
"0.6412886",
"0.6397014",
"0.62504345",
"0.6247425",
"0.62438375",
"0.6231897",
"0.61910754",
"0.6165594",
"0.61528003",
"0.6149262",
"0.6138536",
"0.61364913",
"0.61308527",
"0.61036843",
"0.609853",
"0.6076961",
"0.6061939"... | 0.5569131 | 80 |
/ renamed from: d | long mo1154d(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner rd = new Scanner(System.in);
double C = 0, F = 0;
System.out.println("Escreva a Temperatura: ");
C = rd.nextDouble();
F = (C * 1.8) + 32;
System.out.println("A temperatura em Fahrenheit é : \n" + F);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ access modifiers changed from: 0000 | public CharSequence a(Object obj) {
return obj instanceof CharSequence ? (CharSequence) obj : obj.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Member mo23408O();",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n protected void prot() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"public void m... | [
"0.65168345",
"0.6417889",
"0.6403412",
"0.6346675",
"0.6299906",
"0.62951195",
"0.6244629",
"0.6228537",
"0.620437",
"0.6192846",
"0.6189669",
"0.61808765",
"0.6173851",
"0.6169742",
"0.616948",
"0.6162881",
"0.6150504",
"0.6149917",
"0.61402553",
"0.6134384",
"0.6133215",
... | 0.0 | -1 |
Unidade unidade = new Unidade(); // Grupo grupo = new Grupo(); // Subgrupo subgrupo = new Subgrupo(); // Fornecedor fornecedor = new Fornecedor(); Promocao promocao = new Promocao(); Estoque estoque = new Estoque(); NCM ncm = new NCM(); Lote lote = new Lote(); | public CadastroProdutoNew() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }",
"public MorteSubita() {\n }",
"public Caso_de_uso () {\n }",
"public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exempl... | [
"0.7377752",
"0.65339386",
"0.64417064",
"0.6438846",
"0.64319617",
"0.64271235",
"0.6400308",
"0.6366435",
"0.63249683",
"0.630304",
"0.6263739",
"0.62486464",
"0.6224298",
"0.62239826",
"0.6218279",
"0.62063843",
"0.6203799",
"0.61861223",
"0.6183947",
"0.6160464",
"0.61476... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jToggleButton1 = new javax.swing.JToggleButton();
jTabbedPane1 = new javax.swing.JTabbedPane();
PanelProdutoPes = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
TextPesquisaProd = new javax.swing.JTextField();
ButtonPesquisar = new javax.swing.JButton();
ButtonAdicionar = new javax.swing.JButton();
ButtonListar = new javax.swing.JButton();
ComboFiltro = new javax.swing.JComboBox();
PanelCadastro = new javax.swing.JPanel();
PanelDados = new javax.swing.JPanel();
ComboStatus = new javax.swing.JComboBox();
ButtonNewSub = new javax.swing.JButton();
LabelDataCad = new javax.swing.JLabel();
TextCodigo = new javax.swing.JTextField();
ComboSubGrupo = new javax.swing.JComboBox();
LabelDescricao = new javax.swing.JLabel();
ComboGrupo = new javax.swing.JComboBox();
LabelCodigo = new javax.swing.JLabel();
LabelStatus = new javax.swing.JLabel();
LabelGrupo = new javax.swing.JLabel();
ButtonNewGrupo = new javax.swing.JButton();
TextDescricao = new javax.swing.JTextField();
LabelSubgrupo = new javax.swing.JLabel();
LabelFornecedor = new javax.swing.JLabel();
ButtonNewForn = new javax.swing.JButton();
LabelDescriçaoECF = new javax.swing.JLabel();
TextDescricaoECF = new javax.swing.JTextField();
LabelUnidade = new javax.swing.JLabel();
ComboUnidade = new javax.swing.JComboBox();
ButtonNewUni = new javax.swing.JButton();
LabelCodBarras = new javax.swing.JLabel();
TextCodBarras = new javax.swing.JTextField();
LabelModelo = new javax.swing.JLabel();
TextModelo = new javax.swing.JTextField();
LabelMarca = new javax.swing.JLabel();
TextMarca = new javax.swing.JTextField();
ButtonNovo = new javax.swing.JButton();
ButtonExcluir = new javax.swing.JButton();
ButtonEditar = new javax.swing.JButton();
ButtonSalvar = new javax.swing.JButton();
ButtonCancelar = new javax.swing.JButton();
DateCadastro = new com.toedter.calendar.JDateChooser();
TextCodigo2 = new javax.swing.JTextField();
LabelGrupo1 = new javax.swing.JLabel();
TextCodigo3 = new javax.swing.JTextField();
ButtonNewForn1 = new javax.swing.JButton();
ButtonNewForn2 = new javax.swing.JButton();
TextCodigo11 = new javax.swing.JTextField();
ButtonNewUni1 = new javax.swing.JButton();
jTabbedPane8 = new javax.swing.JTabbedPane();
PanelFinanceiro4 = new javax.swing.JPanel();
LabelModelo12 = new javax.swing.JLabel();
TextModelo12 = new javax.swing.JTextField();
TextModelo13 = new javax.swing.JTextField();
LabelModelo13 = new javax.swing.JLabel();
LabelModelo14 = new javax.swing.JLabel();
TextModelo14 = new javax.swing.JTextField();
TextModelo15 = new javax.swing.JTextField();
LabelModelo15 = new javax.swing.JLabel();
TextModelo16 = new javax.swing.JTextField();
LabelModelo16 = new javax.swing.JLabel();
LabelModelo17 = new javax.swing.JLabel();
TextModelo17 = new javax.swing.JTextField();
TextModelo18 = new javax.swing.JTextField();
LabelModelo18 = new javax.swing.JLabel();
TextModelo19 = new javax.swing.JTextField();
LabelModelo19 = new javax.swing.JLabel();
TextModelo20 = new javax.swing.JTextField();
LabelModelo20 = new javax.swing.JLabel();
LabelModelo21 = new javax.swing.JLabel();
TextModelo21 = new javax.swing.JTextField();
jPanel13 = new javax.swing.JPanel();
jScrollPane5 = new javax.swing.JScrollPane();
AreaObs2 = new javax.swing.JTextArea();
LabelObservacao2 = new javax.swing.JLabel();
PanelImagem2 = new javax.swing.JPanel();
LabelImagem2 = new javax.swing.JLabel();
jPanel14 = new javax.swing.JPanel();
ButtonNewPromo13 = new javax.swing.JButton();
jPanel15 = new javax.swing.JPanel();
TextValorCusto28 = new javax.swing.JTextField();
LabelValorCus22 = new javax.swing.JLabel();
TextValorCusto29 = new javax.swing.JTextField();
LabelValorCus23 = new javax.swing.JLabel();
TextValorCusto30 = new javax.swing.JTextField();
LabelValorCus24 = new javax.swing.JLabel();
TextValorCusto31 = new javax.swing.JTextField();
LabelValorCus25 = new javax.swing.JLabel();
TextValorCusto32 = new javax.swing.JTextField();
LabelValorCus26 = new javax.swing.JLabel();
PanelEstoque = new javax.swing.JPanel();
LabelImEstoque = new javax.swing.JLabel();
PanelTextEstoq = new javax.swing.JPanel();
LabelEstoque = new javax.swing.JLabel();
LabelAtual = new javax.swing.JLabel();
LabelMax = new javax.swing.JLabel();
CheckBoxLimite = new javax.swing.JCheckBox();
TextAtual = new javax.swing.JTextField();
TextMax = new javax.swing.JTextField();
LabelMax1 = new javax.swing.JLabel();
TextMax1 = new javax.swing.JTextField();
jSeparator1 = new javax.swing.JSeparator();
LabelCodigo1 = new javax.swing.JLabel();
TextCodigo1 = new javax.swing.JTextField();
ButtonNewUni2 = new javax.swing.JButton();
jPanel21 = new javax.swing.JPanel();
jScrollPane6 = new javax.swing.JScrollPane();
jTableSubGrupo1 = new javax.swing.JTable();
ButtonCancelar2 = new javax.swing.JButton();
ButtonCancelar3 = new javax.swing.JButton();
jSeparator2 = new javax.swing.JSeparator();
jTabbedPane7 = new javax.swing.JTabbedPane();
jPanel11 = new javax.swing.JPanel();
ButtonNewPromo10 = new javax.swing.JButton();
LabelValorCus16 = new javax.swing.JLabel();
TextValorCusto20 = new javax.swing.JTextField();
TextValorCusto21 = new javax.swing.JTextField();
LabelValorCus17 = new javax.swing.JLabel();
TextValorCusto22 = new javax.swing.JTextField();
ButtonNewPromo11 = new javax.swing.JButton();
TextValorCusto23 = new javax.swing.JTextField();
ButtonNewPromo12 = new javax.swing.JButton();
jSeparator7 = new javax.swing.JSeparator();
jPanel8 = new javax.swing.JPanel();
TextValorCusto24 = new javax.swing.JTextField();
LabelValorCus18 = new javax.swing.JLabel();
TextValorCusto25 = new javax.swing.JTextField();
LabelValorCus19 = new javax.swing.JLabel();
ComboUnidade6 = new javax.swing.JComboBox();
LabelUnidade6 = new javax.swing.JLabel();
ComboUnidade7 = new javax.swing.JComboBox();
LabelUnidade7 = new javax.swing.JLabel();
ComboUnidade8 = new javax.swing.JComboBox();
LabelUnidade8 = new javax.swing.JLabel();
ComboUnidade9 = new javax.swing.JComboBox();
LabelUnidade9 = new javax.swing.JLabel();
jPanel12 = new javax.swing.JPanel();
TextValorCusto26 = new javax.swing.JTextField();
LabelValorCus20 = new javax.swing.JLabel();
TextValorCusto27 = new javax.swing.JTextField();
LabelValorCus21 = new javax.swing.JLabel();
jToggleButton1.setText("jToggleButton1");
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("3D - Soluções Tecnológicas - Produto");
jTabbedPane1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
jTable1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{"0000010102", null, "Desktop", null, "Pauta", "100", "ATIVO"}
},
new String [] {
"Código", "Código de Barras", "Descrição Completa", "Grupo", "Fornecedor", "Estoque", "Status"
}
) {
boolean[] canEdit = new boolean [] {
false, false, false, false, false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jTable1.setMaximumSize(new java.awt.Dimension(2147483647, 200));
jTable1.setMinimumSize(new java.awt.Dimension(770, 800));
jTable1.setRowHeight(20);
jTable1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
jTable1.getTableHeader().setReorderingAllowed(false);
jScrollPane1.setViewportView(jTable1);
if (jTable1.getColumnModel().getColumnCount() > 0) {
jTable1.getColumnModel().getColumn(0).setMinWidth(100);
jTable1.getColumnModel().getColumn(0).setPreferredWidth(100);
jTable1.getColumnModel().getColumn(0).setMaxWidth(100);
jTable1.getColumnModel().getColumn(1).setMinWidth(120);
jTable1.getColumnModel().getColumn(1).setPreferredWidth(120);
jTable1.getColumnModel().getColumn(1).setMaxWidth(120);
jTable1.getColumnModel().getColumn(2).setMinWidth(300);
jTable1.getColumnModel().getColumn(2).setPreferredWidth(300);
jTable1.getColumnModel().getColumn(2).setMaxWidth(300);
jTable1.getColumnModel().getColumn(3).setMinWidth(200);
jTable1.getColumnModel().getColumn(3).setPreferredWidth(200);
jTable1.getColumnModel().getColumn(3).setMaxWidth(200);
jTable1.getColumnModel().getColumn(4).setMinWidth(200);
jTable1.getColumnModel().getColumn(4).setPreferredWidth(200);
jTable1.getColumnModel().getColumn(4).setMaxWidth(200);
jTable1.getColumnModel().getColumn(5).setMinWidth(100);
jTable1.getColumnModel().getColumn(5).setPreferredWidth(100);
jTable1.getColumnModel().getColumn(5).setMaxWidth(100);
jTable1.getColumnModel().getColumn(6).setMinWidth(100);
jTable1.getColumnModel().getColumn(6).setPreferredWidth(100);
jTable1.getColumnModel().getColumn(6).setMaxWidth(100);
}
TextPesquisaProd.setFont(new java.awt.Font("Arial", 0, 20)); // NOI18N
TextPesquisaProd.setForeground(new java.awt.Color(153, 153, 153));
TextPesquisaProd.setText("Selecione uma das opções de pesquisa ...");
TextPesquisaProd.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextPesquisaProd.setPreferredSize(new java.awt.Dimension(500, 25));
TextPesquisaProd.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextPesquisaProdActionPerformed(evt);
}
});
ButtonPesquisar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonPesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/search.png"))); // NOI18N
ButtonPesquisar.setText("Pesquisar Produto");
ButtonPesquisar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonPesquisarActionPerformed(evt);
}
});
ButtonAdicionar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonAdicionar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add.png"))); // NOI18N
ButtonAdicionar.setText("Adicionar ");
ButtonAdicionar.setMaximumSize(new java.awt.Dimension(300, 25));
ButtonAdicionar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonAdicionarActionPerformed(evt);
}
});
ButtonListar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonListar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/abrircli.png"))); // NOI18N
ButtonListar.setText("Listar Produtos");
ButtonListar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonListarActionPerformed(evt);
}
});
ComboFiltro.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
ComboFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Código Interno", "Código Externo", "Código de Barras", "Descrição", "Grupo", "Subgrupo", "Data de Cadastro" }));
javax.swing.GroupLayout PanelProdutoPesLayout = new javax.swing.GroupLayout(PanelProdutoPes);
PanelProdutoPes.setLayout(PanelProdutoPesLayout);
PanelProdutoPesLayout.setHorizontalGroup(
PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelProdutoPesLayout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1295, Short.MAX_VALUE)
.addGroup(PanelProdutoPesLayout.createSequentialGroup()
.addComponent(TextPesquisaProd, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ButtonPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(3, 3, 3)
.addComponent(ButtonListar)
.addGap(2, 2, 2)
.addComponent(ButtonAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(5, 5, 5))
);
PanelProdutoPesLayout.setVerticalGroup(
PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup()
.addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelProdutoPesLayout.createSequentialGroup()
.addContainerGap()
.addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
.addComponent(ButtonListar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(ButtonAdicionar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(ButtonPesquisar)))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup()
.addGap(1, 1, 1)
.addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(TextPesquisaProd, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(3, 3, 3)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE)
.addGap(5, 5, 5))
);
jTabbedPane1.addTab("Pesquisar Produto", PanelProdutoPes);
PanelDados.setBorder(javax.swing.BorderFactory.createEtchedBorder());
ComboStatus.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
ComboStatus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ativo", "Bloqueado", "Inativo" }));
ComboStatus.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ComboStatusActionPerformed(evt);
}
});
ButtonNewSub.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N
ButtonNewSub.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewSubActionPerformed(evt);
}
});
LabelDataCad.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelDataCad.setText("Data de cadastro:");
TextCodigo.setEditable(false);
TextCodigo.setBackground(new java.awt.Color(255, 255, 255));
TextCodigo.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextCodigo.setForeground(new java.awt.Color(153, 153, 153));
TextCodigo.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextCodigo.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextCodigoActionPerformed(evt);
}
});
ComboSubGrupo.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
LabelDescricao.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelDescricao.setText("Descrição:");
ComboGrupo.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
LabelCodigo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelCodigo.setText("Código:");
LabelStatus.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelStatus.setText("Status:");
LabelGrupo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelGrupo.setText("Grupo:");
ButtonNewGrupo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N
ButtonNewGrupo.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewGrupoActionPerformed(evt);
}
});
TextDescricao.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextDescricao.setForeground(new java.awt.Color(153, 153, 153));
TextDescricao.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextDescricao.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextDescricaoActionPerformed(evt);
}
});
LabelSubgrupo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelSubgrupo.setText("Subgrupo:");
LabelFornecedor.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelFornecedor.setText("Fornecedor:");
ButtonNewForn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N
ButtonNewForn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewFornActionPerformed(evt);
}
});
LabelDescriçaoECF.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelDescriçaoECF.setText("Descrição PDV:");
TextDescricaoECF.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextDescricaoECF.setForeground(new java.awt.Color(153, 153, 153));
TextDescricaoECF.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextDescricaoECF.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextDescricaoECFActionPerformed(evt);
}
});
LabelUnidade.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelUnidade.setText("Unidade:");
ComboUnidade.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
ComboUnidade.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ComboUnidadeActionPerformed(evt);
}
});
ButtonNewUni.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N
ButtonNewUni.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewUniActionPerformed(evt);
}
});
LabelCodBarras.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelCodBarras.setText("Cód. Barras:");
TextCodBarras.setEditable(false);
TextCodBarras.setBackground(new java.awt.Color(255, 255, 255));
TextCodBarras.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextCodBarras.setForeground(new java.awt.Color(153, 153, 153));
TextCodBarras.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextCodBarras.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextCodBarrasActionPerformed(evt);
}
});
LabelModelo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo.setText("Modelo:");
TextModelo.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo.setForeground(new java.awt.Color(153, 153, 153));
TextModelo.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModeloActionPerformed(evt);
}
});
LabelMarca.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelMarca.setText("Marca:");
TextMarca.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextMarca.setForeground(new java.awt.Color(153, 153, 153));
TextMarca.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextMarca.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextMarcaActionPerformed(evt);
}
});
ButtonNovo.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add.png"))); // NOI18N
ButtonNovo.setText("Novo Produto");
ButtonExcluir.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/editar.png"))); // NOI18N
ButtonExcluir.setText("Editar Cadastro");
ButtonExcluir.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonExcluirActionPerformed(evt);
}
});
ButtonEditar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonEditar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/close24x24.png"))); // NOI18N
ButtonEditar.setText("Excluir Cadastro");
ButtonEditar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonEditarActionPerformed(evt);
}
});
ButtonSalvar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/Save.png"))); // NOI18N
ButtonSalvar.setText("Salvar Cadastro");
ButtonSalvar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonSalvarActionPerformed(evt);
}
});
ButtonCancelar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cancelarCli.png"))); // NOI18N
ButtonCancelar.setText("Cancelar");
ButtonCancelar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonCancelarActionPerformed(evt);
}
});
DateCadastro.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
DateCadastro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/Calendar.png")));
TextCodigo2.setEditable(false);
TextCodigo2.setBackground(new java.awt.Color(255, 255, 255));
TextCodigo2.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextCodigo2.setForeground(new java.awt.Color(153, 153, 153));
TextCodigo2.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextCodigo2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextCodigo2ActionPerformed(evt);
}
});
LabelGrupo1.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelGrupo1.setText("NCM/SH:");
TextCodigo3.setEditable(false);
TextCodigo3.setBackground(new java.awt.Color(255, 255, 255));
TextCodigo3.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextCodigo3.setForeground(new java.awt.Color(153, 153, 153));
TextCodigo3.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextCodigo3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextCodigo3ActionPerformed(evt);
}
});
ButtonNewForn1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pesquisarncm.png"))); // NOI18N
ButtonNewForn1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewForn1ActionPerformed(evt);
}
});
ButtonNewForn2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/print.png"))); // NOI18N
ButtonNewForn2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewForn2ActionPerformed(evt);
}
});
TextCodigo11.setEditable(false);
TextCodigo11.setBackground(new java.awt.Color(255, 255, 255));
TextCodigo11.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextCodigo11.setForeground(new java.awt.Color(153, 153, 153));
TextCodigo11.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextCodigo11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextCodigo11ActionPerformed(evt);
}
});
ButtonNewUni1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N
ButtonNewUni1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewUni1ActionPerformed(evt);
}
});
jTabbedPane8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), " Dados Complementares ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 14))); // NOI18N
jTabbedPane8.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
PanelFinanceiro4.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
LabelModelo12.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo12.setText("Valor Compra:");
TextModelo12.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo12.setForeground(new java.awt.Color(153, 153, 153));
TextModelo12.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo12ActionPerformed(evt);
}
});
TextModelo13.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo13.setForeground(new java.awt.Color(153, 153, 153));
TextModelo13.setText("100000,00");
TextModelo13.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo13ActionPerformed(evt);
}
});
LabelModelo13.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo13.setText("Valor Venda:");
LabelModelo14.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo14.setText("Preço Venda Min.:");
TextModelo14.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo14.setForeground(new java.awt.Color(153, 153, 153));
TextModelo14.setText("100000,00");
TextModelo14.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo14ActionPerformed(evt);
}
});
TextModelo15.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo15.setForeground(new java.awt.Color(153, 153, 153));
TextModelo15.setText("100000,00");
TextModelo15.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo15ActionPerformed(evt);
}
});
LabelModelo15.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo15.setText("Preço Sugerido:");
TextModelo16.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo16.setForeground(new java.awt.Color(153, 153, 153));
TextModelo16.setText("100000,00");
TextModelo16.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo16ActionPerformed(evt);
}
});
LabelModelo16.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo16.setText("Custo Medio Liq.:");
LabelModelo17.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo17.setText("Preço Lucro Zero:");
TextModelo17.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo17.setForeground(new java.awt.Color(153, 153, 153));
TextModelo17.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo17ActionPerformed(evt);
}
});
TextModelo18.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo18.setForeground(new java.awt.Color(153, 153, 153));
TextModelo18.setText("100000,00");
TextModelo18.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo18ActionPerformed(evt);
}
});
LabelModelo18.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo18.setText("Preço Lucro Max.:");
TextModelo19.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo19.setForeground(new java.awt.Color(153, 153, 153));
TextModelo19.setText("100000,00");
TextModelo19.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo19ActionPerformed(evt);
}
});
LabelModelo19.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo19.setText("Preço Lucro Min.:");
TextModelo20.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo20.setForeground(new java.awt.Color(153, 153, 153));
TextModelo20.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo20ActionPerformed(evt);
}
});
LabelModelo20.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo20.setText("Markup:");
LabelModelo21.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelModelo21.setText("Valor Promocional:");
TextModelo21.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextModelo21.setForeground(new java.awt.Color(153, 153, 153));
TextModelo21.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextModelo21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextModelo21ActionPerformed(evt);
}
});
javax.swing.GroupLayout PanelFinanceiro4Layout = new javax.swing.GroupLayout(PanelFinanceiro4);
PanelFinanceiro4.setLayout(PanelFinanceiro4Layout);
PanelFinanceiro4Layout.setHorizontalGroup(
PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(LabelModelo12)
.addGap(24, 24, 24))
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(TextModelo12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(1, 1, 1)))
.addGap(6, 6, 6)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(LabelModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(TextModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(TextModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(LabelModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(TextModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(TextModelo18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(LabelModelo19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(LabelModelo18)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(LabelModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextModelo20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(TextModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addGap(1, 1, 1)
.addComponent(TextModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(LabelModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
PanelFinanceiro4Layout.setVerticalGroup(
PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(LabelModelo16)
.addGap(1, 1, 1)
.addComponent(TextModelo16, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(LabelModelo15)
.addGap(1, 1, 1)
.addComponent(TextModelo15, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(LabelModelo14)
.addGap(1, 1, 1)
.addComponent(TextModelo14, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelModelo12)
.addComponent(LabelModelo13))
.addGap(1, 1, 1)
.addComponent(TextModelo12, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelModelo17)
.addComponent(LabelModelo19)
.addComponent(LabelModelo18)
.addComponent(LabelModelo20))
.addGap(1, 1, 1)
.addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(TextModelo17, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextModelo18, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(PanelFinanceiro4Layout.createSequentialGroup()
.addComponent(LabelModelo21)
.addGap(1, 1, 1)
.addComponent(TextModelo21, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(16, 16, 16))
);
jTabbedPane8.addTab(" Valores Principais ", PanelFinanceiro4);
AreaObs2.setColumns(1);
AreaObs2.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
AreaObs2.setLineWrap(true);
AreaObs2.setRows(1);
AreaObs2.setPreferredSize(null);
jScrollPane5.setViewportView(AreaObs2);
LabelObservacao2.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelObservacao2.setText("Observação:");
PanelImagem2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
LabelImagem2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
LabelImagem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/ProdutoFoto.png"))); // NOI18N
LabelImagem2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
LabelImagem2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
javax.swing.GroupLayout PanelImagem2Layout = new javax.swing.GroupLayout(PanelImagem2);
PanelImagem2.setLayout(PanelImagem2Layout);
PanelImagem2Layout.setHorizontalGroup(
PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelImagem2Layout.createSequentialGroup()
.addGap(5, 5, 5)
.addComponent(LabelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
PanelImagem2Layout.setVerticalGroup(
PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelImagem2Layout.createSequentialGroup()
.addComponent(LabelImagem2)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
jPanel13.setLayout(jPanel13Layout);
jPanel13Layout.setHorizontalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelObservacao2)
.addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(PanelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
jPanel13Layout.setVerticalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(PanelImagem2, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel13Layout.createSequentialGroup()
.addComponent(LabelObservacao2)
.addGap(1, 1, 1)
.addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(5, 5, 5))
);
jTabbedPane8.addTab(" Observação / Imagem Produto", jPanel13);
ButtonNewPromo13.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonNewPromo13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N
ButtonNewPromo13.setText("Adicionar Uma Promoção ao Produto");
ButtonNewPromo13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewPromo13ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
jPanel14.setLayout(jPanel14Layout);
jPanel14Layout.setHorizontalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel14Layout.createSequentialGroup()
.addContainerGap()
.addComponent(ButtonNewPromo13, javax.swing.GroupLayout.DEFAULT_SIZE, 756, Short.MAX_VALUE)
.addContainerGap())
);
jPanel14Layout.setVerticalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel14Layout.createSequentialGroup()
.addContainerGap()
.addComponent(ButtonNewPromo13, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(70, Short.MAX_VALUE))
);
jTabbedPane8.addTab(" Promoção ", jPanel14);
TextValorCusto28.setEditable(false);
TextValorCusto28.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto28.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto28.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto28.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto28.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto28ActionPerformed(evt);
}
});
LabelValorCus22.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus22.setText("Codigo Balança:");
TextValorCusto29.setEditable(false);
TextValorCusto29.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto29.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto29.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto29.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto29.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto29ActionPerformed(evt);
}
});
LabelValorCus23.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus23.setText("Peso:");
TextValorCusto30.setEditable(false);
TextValorCusto30.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto30.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto30.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto30.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto30.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto30ActionPerformed(evt);
}
});
LabelValorCus24.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus24.setText("Porcento Comissao:");
TextValorCusto31.setEditable(false);
TextValorCusto31.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto31.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto31.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto31.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto31.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto31ActionPerformed(evt);
}
});
LabelValorCus25.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus25.setText("Ponto Pedido:");
TextValorCusto32.setEditable(false);
TextValorCusto32.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto32.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto32.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto32.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto32.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto32ActionPerformed(evt);
}
});
LabelValorCus26.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus26.setText("Lote Economico Compra:");
javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
jPanel15.setLayout(jPanel15Layout);
jPanel15Layout.setHorizontalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelValorCus26)
.addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelValorCus24)
.addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelValorCus25)
.addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel15Layout.createSequentialGroup()
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelValorCus22)
.addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelValorCus23)
.addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addContainerGap(316, Short.MAX_VALUE))
);
jPanel15Layout.setVerticalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addComponent(LabelValorCus22)
.addGap(1, 1, 1)
.addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel15Layout.createSequentialGroup()
.addComponent(LabelValorCus23)
.addGap(1, 1, 1)
.addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addComponent(LabelValorCus26)
.addGap(1, 1, 1)
.addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel15Layout.createSequentialGroup()
.addComponent(LabelValorCus25)
.addGap(1, 1, 1)
.addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel15Layout.createSequentialGroup()
.addComponent(LabelValorCus24)
.addGap(1, 1, 1)
.addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))
);
jTabbedPane8.addTab(" Dados Complementares ", jPanel15);
javax.swing.GroupLayout PanelDadosLayout = new javax.swing.GroupLayout(PanelDados);
PanelDados.setLayout(PanelDadosLayout);
PanelDadosLayout.setHorizontalGroup(
PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createSequentialGroup()
.addContainerGap()
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()
.addComponent(LabelCodigo)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(LabelCodBarras)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextCodBarras, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ButtonNewForn2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(LabelStatus)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(PanelDadosLayout.createSequentialGroup()
.addComponent(LabelDescricao)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(TextDescricao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(PanelDadosLayout.createSequentialGroup()
.addComponent(ButtonNovo, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(3, 3, 3)
.addComponent(ButtonExcluir)
.addGap(3, 3, 3)
.addComponent(ButtonEditar)
.addGap(3, 3, 3)
.addComponent(ButtonSalvar)
.addGap(3, 3, 3)
.addComponent(ButtonCancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()
.addComponent(LabelFornecedor)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextCodigo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(LabelDataCad)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(DateCadastro, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()
.addComponent(LabelModelo)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(LabelMarca)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextMarca, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()
.addComponent(LabelGrupo1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(1, 1, 1)
.addComponent(TextCodigo3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()
.addComponent(LabelDescriçaoECF)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextDescricaoECF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addComponent(LabelUnidade)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()
.addComponent(LabelGrupo)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(LabelSubgrupo)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ComboSubGrupo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
.addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(ButtonNewUni1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
.addContainerGap())
);
PanelDadosLayout.setVerticalGroup(
PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createSequentialGroup()
.addGap(17, 17, 17)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(TextCodBarras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelCodigo)
.addComponent(TextCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelStatus)
.addComponent(LabelCodBarras)))
.addComponent(ButtonNewForn2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelGrupo1)
.addComponent(TextCodigo3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelDescricao)
.addComponent(TextDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelModelo)
.addComponent(LabelMarca))
.addComponent(TextMarca, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(ButtonNewUni1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(TextDescricaoECF, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelDescriçaoECF)
.addComponent(LabelUnidade)
.addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ComboSubGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelSubgrupo)))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelGrupo)))
.addGap(11, 11, 11)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(LabelDataCad, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(DateCadastro, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelFornecedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(TextCodigo11, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 179, Short.MAX_VALUE)
.addGap(5, 5, 5)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(ButtonNovo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ButtonSalvar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(ButtonCancelar)
.addComponent(ButtonEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(ButtonExcluir))
.addGap(5, 5, 5))
);
PanelEstoque.setBorder(javax.swing.BorderFactory.createEtchedBorder());
LabelImEstoque.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/shipping-icon.png"))); // NOI18N
LabelImEstoque.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
LabelImEstoque.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
LabelImEstoqueMouseClicked(evt);
}
});
PanelTextEstoq.setBorder(javax.swing.BorderFactory.createEtchedBorder());
LabelEstoque.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelEstoque.setText("Estoque do Produto");
javax.swing.GroupLayout PanelTextEstoqLayout = new javax.swing.GroupLayout(PanelTextEstoq);
PanelTextEstoq.setLayout(PanelTextEstoqLayout);
PanelTextEstoqLayout.setHorizontalGroup(
PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelTextEstoqLayout.createSequentialGroup()
.addContainerGap()
.addComponent(LabelEstoque)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
PanelTextEstoqLayout.setVerticalGroup(
PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelTextEstoqLayout.createSequentialGroup()
.addGap(3, 3, 3)
.addComponent(LabelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(3, 3, 3))
);
LabelAtual.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelAtual.setText("Estoque Atual:");
LabelMax.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelMax.setText("Minimo:");
CheckBoxLimite.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
CheckBoxLimite.setText("Aviso de Limites");
TextAtual.setEditable(false);
TextAtual.setBackground(new java.awt.Color(204, 204, 204));
TextAtual.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
TextAtual.setHorizontalAlignment(javax.swing.JTextField.CENTER);
TextMax.setEditable(false);
TextMax.setBackground(new java.awt.Color(204, 204, 204));
TextMax.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
TextMax.setHorizontalAlignment(javax.swing.JTextField.CENTER);
LabelMax1.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelMax1.setText("Maximo:");
TextMax1.setEditable(false);
TextMax1.setBackground(new java.awt.Color(204, 204, 204));
TextMax1.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
TextMax1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
LabelCodigo1.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelCodigo1.setText("Almoxarifado:");
TextCodigo1.setEditable(false);
TextCodigo1.setBackground(new java.awt.Color(255, 255, 255));
TextCodigo1.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextCodigo1.setForeground(new java.awt.Color(153, 153, 153));
TextCodigo1.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextCodigo1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextCodigo1ActionPerformed(evt);
}
});
ButtonNewUni2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N
javax.swing.GroupLayout PanelEstoqueLayout = new javax.swing.GroupLayout(PanelEstoque);
PanelEstoque.setLayout(PanelEstoqueLayout);
PanelEstoqueLayout.setHorizontalGroup(
PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addContainerGap()
.addComponent(LabelMax)
.addGap(54, 54, 54)
.addComponent(TextMax))
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(1, 1, 1)
.addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(3, 3, 3))
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addGap(8, 8, 8)
.addComponent(LabelAtual)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(TextAtual))
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addContainerGap()
.addComponent(LabelMax1)
.addGap(50, 50, 50)
.addComponent(TextMax1)))
.addGap(5, 5, 5)
.addComponent(LabelImEstoque))
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addComponent(jSeparator1)
.addGap(1, 1, 1))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelEstoqueLayout.createSequentialGroup()
.addContainerGap()
.addComponent(LabelCodigo1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextCodigo1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(3, 3, 3)
.addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
PanelEstoqueLayout.setVerticalGroup(
PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelEstoqueLayout.createSequentialGroup()
.addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(TextAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(LabelAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(5, 5, 5)
.addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(LabelImEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelCodigo1)
.addComponent(TextCodigo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(5, 5, 5))
);
jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), " Lotes do Produto ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 14))); // NOI18N
jTableSubGrupo1.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
jTableSubGrupo1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null, null}
},
new String [] {
"Código Lote", "Código da NF", "Data Entrada", "Data de Fabricação", "Data de Validade", "Quantidade"
}
) {
boolean[] canEdit = new boolean [] {
false, true, false, true, false, true
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jTableSubGrupo1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
jTableSubGrupo1.setMaximumSize(new java.awt.Dimension(2147483647, 200));
jTableSubGrupo1.setMinimumSize(new java.awt.Dimension(770, 800));
jTableSubGrupo1.setRowHeight(20);
jTableSubGrupo1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
jTableSubGrupo1.getTableHeader().setReorderingAllowed(false);
jScrollPane6.setViewportView(jTableSubGrupo1);
if (jTableSubGrupo1.getColumnModel().getColumnCount() > 0) {
jTableSubGrupo1.getColumnModel().getColumn(0).setMinWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(0).setPreferredWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(0).setMaxWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(1).setMinWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(1).setPreferredWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(1).setMaxWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(2).setMinWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(2).setPreferredWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(2).setMaxWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(3).setMinWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(3).setPreferredWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(3).setMaxWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(4).setMinWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(4).setPreferredWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(4).setMaxWidth(120);
jTableSubGrupo1.getColumnModel().getColumn(5).setMinWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(5).setPreferredWidth(100);
jTableSubGrupo1.getColumnModel().getColumn(5).setMaxWidth(100);
}
ButtonCancelar2.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonCancelar2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pesquisarncm.png"))); // NOI18N
ButtonCancelar2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonCancelar2ActionPerformed(evt);
}
});
ButtonCancelar3.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonCancelar3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N
javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
jPanel21.setLayout(jPanel21Layout);
jPanel21Layout.setHorizontalGroup(
jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel21Layout.createSequentialGroup()
.addGap(2, 2, 2)
.addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addGap(2, 2, 2)
.addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(2, 2, 2))
);
jPanel21Layout.setVerticalGroup(
jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel21Layout.createSequentialGroup()
.addGap(2, 2, 2)
.addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel21Layout.createSequentialGroup()
.addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(2, 2, 2)
.addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jTabbedPane7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), " Fiscal ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 14))); // NOI18N
jTabbedPane7.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonNewPromo10.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonNewPromo10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N
ButtonNewPromo10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewPromo10ActionPerformed(evt);
}
});
LabelValorCus16.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus16.setText("Grupo Tributario:");
TextValorCusto20.setEditable(false);
TextValorCusto20.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto20.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto20.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto20.setText("1");
TextValorCusto20.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto20ActionPerformed(evt);
}
});
TextValorCusto21.setEditable(false);
TextValorCusto21.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto21.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
TextValorCusto21.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto21.setText("PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST");
TextValorCusto21.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto21ActionPerformed(evt);
}
});
LabelValorCus17.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus17.setText("ICMS Customizado:");
TextValorCusto22.setEditable(false);
TextValorCusto22.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto22.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto22.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto22.setText("1");
TextValorCusto22.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto22.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto22ActionPerformed(evt);
}
});
ButtonNewPromo11.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonNewPromo11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N
ButtonNewPromo11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewPromo11ActionPerformed(evt);
}
});
TextValorCusto23.setEditable(false);
TextValorCusto23.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto23.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
TextValorCusto23.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto23.setText("PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST");
TextValorCusto23.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto23.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto23ActionPerformed(evt);
}
});
ButtonNewPromo12.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
ButtonNewPromo12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N
ButtonNewPromo12.setText("Gerenciador Tributario");
ButtonNewPromo12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ButtonNewPromo12ActionPerformed(evt);
}
});
jSeparator7.setOrientation(javax.swing.SwingConstants.VERTICAL);
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(TextValorCusto21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel11Layout.createSequentialGroup()
.addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(3, 3, 3)
.addComponent(ButtonNewPromo11, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(TextValorCusto23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel11Layout.createSequentialGroup()
.addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addComponent(LabelValorCus16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(105, 105, 105))
.addGroup(jPanel11Layout.createSequentialGroup()
.addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ButtonNewPromo10, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(7, 7, 7)))
.addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ButtonNewPromo12))
.addComponent(LabelValorCus17, javax.swing.GroupLayout.PREFERRED_SIZE, 435, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addComponent(LabelValorCus16)
.addGap(1, 1, 1)
.addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(ButtonNewPromo10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGroup(jPanel11Layout.createSequentialGroup()
.addGap(6, 6, 6)
.addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ButtonNewPromo12, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(1, 1, 1)
.addComponent(TextValorCusto21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(LabelValorCus17)
.addGap(1, 1, 1)
.addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(ButtonNewPromo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(1, 1, 1)
.addComponent(TextValorCusto23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(18, Short.MAX_VALUE))
);
jTabbedPane7.addTab(" Tributações ", jPanel11);
TextValorCusto24.setEditable(false);
TextValorCusto24.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto24.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto24.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto24.setText("1");
TextValorCusto24.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto24.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto24ActionPerformed(evt);
}
});
LabelValorCus18.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus18.setText("Ex Tipi:");
TextValorCusto25.setEditable(false);
TextValorCusto25.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto25.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto25.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto25.setText("1");
TextValorCusto25.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto25.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto25ActionPerformed(evt);
}
});
LabelValorCus19.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus19.setText("Codigo Lst:");
ComboUnidade6.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
ComboUnidade6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ComboUnidade6ActionPerformed(evt);
}
});
LabelUnidade6.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelUnidade6.setText("Iat:");
ComboUnidade7.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
ComboUnidade7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ComboUnidade7ActionPerformed(evt);
}
});
LabelUnidade7.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelUnidade7.setText("Ippt:");
ComboUnidade8.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
ComboUnidade8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ComboUnidade8ActionPerformed(evt);
}
});
LabelUnidade8.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelUnidade8.setText("Tipo Item Sped:");
ComboUnidade9.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
ComboUnidade9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ComboUnidade9ActionPerformed(evt);
}
});
LabelUnidade9.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N
LabelUnidade9.setText("Tipo:");
javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
jPanel8.setLayout(jPanel8Layout);
jPanel8Layout.setHorizontalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
.addComponent(LabelUnidade8)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(jPanel8Layout.createSequentialGroup()
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel8Layout.createSequentialGroup()
.addComponent(LabelUnidade7)
.addGap(194, 194, 194)
.addComponent(LabelUnidade9))
.addGroup(jPanel8Layout.createSequentialGroup()
.addComponent(LabelUnidade6)
.addGap(130, 130, 130)
.addComponent(LabelValorCus18)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addComponent(LabelValorCus19)
.addGap(0, 78, Short.MAX_VALUE))
.addComponent(TextValorCusto25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGroup(jPanel8Layout.createSequentialGroup()
.addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(ComboUnidade8, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(ComboUnidade9, 0, 435, Short.MAX_VALUE))
.addContainerGap())
);
jPanel8Layout.setVerticalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelValorCus18)
.addComponent(LabelUnidade6)
.addComponent(LabelValorCus19))
.addGap(1, 1, 1)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextValorCusto25, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(5, 5, 5)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelUnidade7)
.addComponent(LabelUnidade9))
.addGap(2, 2, 2)
.addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(ComboUnidade8, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(LabelUnidade8)
.addGap(1, 1, 1)
.addComponent(ComboUnidade9, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jTabbedPane7.addTab(" Dados Complementares ", jPanel8);
TextValorCusto26.setEditable(false);
TextValorCusto26.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto26.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto26.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto26.setText("1");
TextValorCusto26.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto26.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto26ActionPerformed(evt);
}
});
LabelValorCus20.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus20.setText("Aliquota ICMS PAF:");
TextValorCusto27.setEditable(false);
TextValorCusto27.setBackground(new java.awt.Color(255, 255, 255));
TextValorCusto27.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N
TextValorCusto27.setForeground(new java.awt.Color(153, 153, 153));
TextValorCusto27.setText("1");
TextValorCusto27.setMaximumSize(new java.awt.Dimension(1000, 10000));
TextValorCusto27.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextValorCusto27ActionPerformed(evt);
}
});
LabelValorCus21.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
LabelValorCus21.setText("Aliquota ISSQN PAF:");
javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
jPanel12.setLayout(jPanel12Layout);
jPanel12Layout.setHorizontalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelValorCus20, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextValorCusto26, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(LabelValorCus21, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 90, Short.MAX_VALUE))
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())))
);
jPanel12Layout.setVerticalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LabelValorCus20)
.addComponent(LabelValorCus21))
.addGap(1, 1, 1)
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(TextValorCusto26, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
.addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jTabbedPane7.addTab(" Aliquotas Paf ", jPanel12);
javax.swing.GroupLayout PanelCadastroLayout = new javax.swing.GroupLayout(PanelCadastro);
PanelCadastro.setLayout(PanelCadastroLayout);
PanelCadastroLayout.setHorizontalGroup(
PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PanelCadastroLayout.createSequentialGroup()
.addGap(5, 5, 5)
.addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(PanelEstoque, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTabbedPane7))
.addGap(5, 5, 5))
);
PanelCadastroLayout.setVerticalGroup(
PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelCadastroLayout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(PanelCadastroLayout.createSequentialGroup()
.addComponent(PanelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(2, 2, 2)
.addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTabbedPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 237, Short.MAX_VALUE)))
.addGap(4, 4, 4))
);
jTabbedPane1.addTab("Cadastro de Produto", PanelCadastro);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1310, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTabbedPane1)
);
pack();
setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73199165",
"0.7291065",
"0.7291065",
"0.7291065",
"0.72868747",
"0.72488254",
"0.7214099",
"0.7209363",
"0.7196111",
"0.7190702",
"0.7184576",
"0.71590984",
"0.71483636",
"0.7093415",
"0.70814407",
"0.70579475",
"0.69872457",
"0.69773155",
"0.6955104",
"0.69544697",
"0.694... | 0.0 | -1 |
API is disabled (e.g. server not started) | public void handleApiDisabled() {
handler.post(new Runnable(){
public void run(){
Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disabled));
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean disableMonitoring();",
"public void onNotEnabled() {\n Timber.d(\"onNotEnabled\");\n // keep the callback in case they turn it on manually\n setTorPref(Status.DISABLED);\n createClearnetClient();\n status = Status.NOT_ENABLED;\n if (onStatusChangedListener != nul... | [
"0.6387492",
"0.61867046",
"0.61230105",
"0.5988751",
"0.5980822",
"0.597098",
"0.5957695",
"0.5949938",
"0.5949938",
"0.59442514",
"0.5939036",
"0.59324145",
"0.59179807",
"0.57938343",
"0.5792053",
"0.5787801",
"0.5766963",
"0.57655525",
"0.5763713",
"0.576016",
"0.5721655"... | 0.7353376 | 0 |
API is connected to the server | public void handleApiConnected() {
handler.post(new Runnable(){
public void run(){
// Display the list of sessions
updateList();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"... | [
"0.7300754",
"0.7300754",
"0.7300754",
"0.7300754",
"0.7300754",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.7172494",
"0.7148727",
"0.7018529",
"0.6934496",
"0.6920061",
"0.6902028",
"0.6880292",
"0.6851495",
"0.681870... | 0.66741794 | 35 |
Display the list of sessions | public void run(){
updateList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Session> getAllSessions();",
"public abstract String getSessionList();",
"@GetMapping\n public List<Session> list() {\n return sessionRepository.findAll();\n }",
"@GetMapping(\"tv_watching_sessions\")\n\tpublic List<TvWatchingSession> listSessions(){\n\t\treturn svc.allActiveSessionsByUser(... | [
"0.75973344",
"0.7288414",
"0.7243559",
"0.7107121",
"0.7009836",
"0.6948215",
"0.68819606",
"0.6691783",
"0.6437874",
"0.6437061",
"0.6385748",
"0.6313417",
"0.6296786",
"0.6260785",
"0.62498087",
"0.6241828",
"0.6239567",
"0.6221137",
"0.61478233",
"0.61449844",
"0.61380327... | 0.0 | -1 |
Update the displayed list | private void updateList() {
try {
// Reset the list
sipSessions.clear();
// Get list of pending sessions
List<IBinder> sessions = sipApi.getSessions();
for (IBinder session : sessions) {
ISipSession sipSession = ISipSession.Stub.asInterface(session);
sipSessions.add(sipSession);
}
if (sipSessions.size() > 0){
String[] items = new String[sipSessions.size()];
for (int i = 0; i < items.length; i++) {
items[i]=sipSessions.get(i).getSessionID();
}
setListAdapter(new ArrayAdapter<String>(SessionsList.this, android.R.layout.simple_list_item_1, items));
} else {
setListAdapter(null);
}
} catch (Exception e) {
Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_session_failed));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateContent(){\r\n\t\tthis.initRecords();\r\n\t\tlist.show(records);\r\n\t}",
"public void update()\n\t{\n\t\t//update the view's list of movies...\n\t\tthis.getRemoveButton().setEnabled((this.database.getNumberOfMovies()>0));\n\t\tthis.movieList.setListData(this.database.toList());\n\t}",
"prote... | [
"0.7777677",
"0.7770773",
"0.7713223",
"0.7324626",
"0.7266111",
"0.72441214",
"0.7220325",
"0.72180784",
"0.7205699",
"0.7202407",
"0.7193581",
"0.7150324",
"0.71197635",
"0.7105389",
"0.70808554",
"0.7080455",
"0.7059408",
"0.70346457",
"0.7011537",
"0.7011537",
"0.6962077"... | 0.0 | -1 |
API is disconnected from the server | public void handleApiDisconnected() {
handler.post(new Runnable(){
public void run(){
Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disconnected));
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onDisconnected() {\n\t\t\r\n\t}",
"@Override\n public void onDisconnected() {\n }",
"protected void onDisconnect() {}",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n... | [
"0.7085023",
"0.703332",
"0.7024787",
"0.6965978",
"0.69540197",
"0.6953291",
"0.69516474",
"0.695031",
"0.6944541",
"0.6944541",
"0.6944541",
"0.694332",
"0.6935718",
"0.68803406",
"0.6865074",
"0.6865074",
"0.686405",
"0.6856098",
"0.6854301",
"0.6816977",
"0.68109804",
"... | 0.75115824 | 0 |
Created by Ivan on 2016/12/30. | public interface ApiService {
public static final String BASE_URL = "http://112.124.22.238:8081/course_api/cniaoplay/";
// @GET("featured")
// public Call<PageBean<AppInfo>> getApps(@Query("p") String jsonParam);
@GET("featured")
public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query("p") String jsonParam);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\r... | [
"0.6129701",
"0.5971279",
"0.5945622",
"0.59064853",
"0.59064853",
"0.5898189",
"0.58573455",
"0.5850389",
"0.57812726",
"0.57242084",
"0.5709882",
"0.5703063",
"0.5700994",
"0.5690614",
"0.56696707",
"0.5641307",
"0.5612636",
"0.5610956",
"0.5608631",
"0.560751",
"0.56045634... | 0.0 | -1 |
Lookup the algorithm specified by its standardized name | public static PKAlgs getAlg(String name) throws SshException
{
// For purposes of easier maintainability, apply a generic function,
// appropriate for all families of encryption algorithms
PKAlgs retVal = LookUpUtil.lookUp(PKAlgs.values(), name);
if ( null==retVal )
{
throw new SshException("Name not found");
}
return retVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAlgorithm();",
"public String algorithmName();",
"public String getAlgorithmName() {\n\t}",
"@Override\n public String getAlgorithm()\n {\n return algorithm;\n }",
"AlgorithmIdentifier getAlgorithmIdentifier();",
"public String getName()\r\n\t{\r\n\r\n\t\treturn ALGORITHM_NAME;\... | [
"0.76003146",
"0.71668524",
"0.66774505",
"0.65886325",
"0.6285562",
"0.62319225",
"0.6212724",
"0.61775255",
"0.61068857",
"0.60616624",
"0.60375774",
"0.6036218",
"0.59990895",
"0.5923955",
"0.590789",
"0.58060646",
"0.5780211",
"0.56583834",
"0.56570137",
"0.5635107",
"0.5... | 0.6440745 | 4 |
Convert into an instance of AsymmetricAlgorithm | public AsymmetricAlgorithm toCU()
{
return this.cu;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IDetectionAlgorithm createInstance();",
"Algorithm createAlgorithm();",
"OpenSSLKey mo134201a();",
"protected AsymmetricProcessor() {\n\t}",
"public abstract StandaloneAlgorithm createAlgorithm();",
"public interface AsymmetricBlockCipher {\n /**\n * initialise the cipher.\n *\n * @... | [
"0.6178395",
"0.61741656",
"0.58881044",
"0.5810083",
"0.56869596",
"0.56185424",
"0.54759693",
"0.5449757",
"0.5431032",
"0.539198",
"0.53417075",
"0.5312357",
"0.53105325",
"0.52928436",
"0.5284829",
"0.52701414",
"0.5243625",
"0.52432775",
"0.52113265",
"0.5204318",
"0.519... | 0.64377075 | 0 |
Converts an instance of AsymmetricAlgorithm into its "counterpart" of PKAlgs | public static PKAlgs fromGeneral(AsymmetricAlgorithm cuAlg)
{
return AlgGenericLookupUtil.lookupByCUType(PKAlgs.values(), cuAlg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AsymmetricAlgorithm toCU()\n\t{\n\t\treturn this.cu;\n\t}",
"long getCryptAlgorithmSid();",
"OpenSSLKey mo134201a();",
"public int getAlgorithm()\n {\n return publicPk.getAlgorithm();\n }",
"public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger pr... | [
"0.60506076",
"0.57011443",
"0.5674249",
"0.5582371",
"0.54360414",
"0.5388223",
"0.5379604",
"0.5353564",
"0.5334163",
"0.52907485",
"0.52666885",
"0.5215961",
"0.51906383",
"0.5189878",
"0.5186533",
"0.5155857",
"0.5144439",
"0.5135886",
"0.5134981",
"0.51186055",
"0.509457... | 0.57927203 | 1 |
Created by williamxu on 7/14/17. | public interface NativeCardQAContract {
interface View extends ViewAdapter {
}
interface ViewModel extends ViewModelAdapter<View> {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
... | [
"0.5922958",
"0.5882103",
"0.5742447",
"0.5729838",
"0.57249355",
"0.5719103",
"0.5713169",
"0.56644595",
"0.56624335",
"0.56615365",
"0.5651948",
"0.5651948",
"0.5625638",
"0.56097245",
"0.5605296",
"0.5595846",
"0.55931455",
"0.55860513",
"0.555747",
"0.55233794",
"0.551546... | 0.0 | -1 |
Starts new activity to add entry to database. | public void transferActivity() {
Intent intent = new Intent(this, AddInfoActivity.class);
this.startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addNewTask() {\n Intent i = new Intent(this, StartNewActivity.class);\n startActivityForResult(i, REQUEST_CODE);\n }",
"public void startAddActivity() {\n Intent addMemberIntent = new Intent(getContext(), MemberAddActivity.class);\n startActivityForResult(addMemberInten... | [
"0.66570854",
"0.6490425",
"0.62332684",
"0.6180255",
"0.6175253",
"0.61732036",
"0.6151063",
"0.61416805",
"0.6100801",
"0.6085267",
"0.60795087",
"0.607251",
"0.60723686",
"0.6063868",
"0.59955454",
"0.5984403",
"0.5949573",
"0.5941485",
"0.59087634",
"0.5900025",
"0.589471... | 0.55628526 | 51 |
to change the edittext box based on entered key | public GenericKeyEvent(EditText currentView, EditText previousView, EditText nextView) {
this.currentView = currentView;
this.previousView = previousView;
this.nextView = nextView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber1.setText(\"\");\n } else if(edtCodeNumber1.getText().toString().length() == 1) {... | [
"0.71547693",
"0.67315614",
"0.67036533",
"0.66889906",
"0.6681087",
"0.66379756",
"0.66364217",
"0.66009635",
"0.6590811",
"0.6585804",
"0.65703523",
"0.6560092",
"0.652448",
"0.6489574",
"0.6474672",
"0.64602697",
"0.6435538",
"0.6435467",
"0.6374752",
"0.6352788",
"0.63377... | 0.0 | -1 |
to change otp box on entering or deleting number | @Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
if (event.getAction() == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCODE_DEL && currentView.getId() != R.id.otp1 && currentView.getText().length() == 0) {
previousView.setText(null);
previousView.requestFocus();
return true;
}
else if (currentView.getId() != R.id.otp6 && currentView.getText().length() > 0) {
nextView.requestFocus();
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enterOTPActions(String otp){\n\t\tdeviceHelper.writeInputActions(signUpObjects.OTPtextfield,otp);\n\t}",
"@Override\r\n public void onClick(View v) {\r\n try {\r\n InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);\r\n ... | [
"0.6467852",
"0.635822",
"0.6143727",
"0.6023686",
"0.6004031",
"0.5980817",
"0.5911559",
"0.5875793",
"0.5813841",
"0.5802064",
"0.56863403",
"0.56815416",
"0.56590205",
"0.5654676",
"0.56424284",
"0.5631616",
"0.55930036",
"0.55774504",
"0.5558573",
"0.5557995",
"0.5541527"... | 0.5464287 | 28 |
final List lores = meta.lore(); | public ItemBuilder replaceLore(final Component from, final Component to) {
if (lore==null || lore.isEmpty()) return this;
for (int i=0; i<lore.size(); i++) {
if (TCUtils.compare(lore.get(i), from)) {
lore.set(i, to);
}
}
//meta.lore(lores);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> lore()\n\t{\n\t\treturn lore;\n\t}",
"public void listar() {\n\t\t\n\t}",
"private List<String> getLore(Player p){\n ItemStack is;\n ItemMeta im;\n List<String> lore;\n if(p == null || (is = p.getInventory().getItemInMainHand()) == null || (im = is.getItemMeta())... | [
"0.66228616",
"0.6618541",
"0.633317",
"0.6328021",
"0.6328021",
"0.6328021",
"0.6328021",
"0.6328021",
"0.6102741",
"0.6004379",
"0.5970513",
"0.59122026",
"0.58712095",
"0.5868372",
"0.5839099",
"0.58287203",
"0.5822717",
"0.5814618",
"0.5813329",
"0.5813226",
"0.5799135",
... | 0.0 | -1 |
makes one move in the top direction, i.e., decrements positionX by 1 | public boolean moveUp() throws EatableObjectOnPlaceException {
if (!treeAbove() && !mouseAbove()) {
if (!onTopBorder(positionY)) {
positionY = positionY - 1;
eatPerformingStep();
return true;
}
else {
return moveDown();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}",
"public void moveUp() {\n locY = locY + 1;\n }",
"public void moveUp() {\n\t\tposY += speed;\n\t}",
"public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_posit... | [
"0.71365935",
"0.68828195",
"0.6831795",
"0.67900777",
"0.67735165",
"0.6718899",
"0.66770226",
"0.66282856",
"0.6598611",
"0.6589332",
"0.6589249",
"0.6588883",
"0.6588883",
"0.6564813",
"0.65577954",
"0.6552136",
"0.65410197",
"0.65335935",
"0.65321356",
"0.64920723",
"0.64... | 0.0 | -1 |
eat an obstacle (leaf or mushroom) being placed on current position; nothing to do if greedy ist set to false (the user is repsonsible himself for eating actions) | private void eatPerformingStep() throws EatableObjectOnPlaceException {
if(greedy) {
AbstractObject object = eat();
if (object != null) {
throw new EatableObjectOnPlaceException(object);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\... | [
"0.6465034",
"0.6299358",
"0.6271949",
"0.62285763",
"0.6200438",
"0.6177816",
"0.61745316",
"0.6151494",
"0.6148959",
"0.6126259",
"0.6124743",
"0.6113127",
"0.6056837",
"0.60565877",
"0.60027105",
"0.59878874",
"0.59068036",
"0.5903054",
"0.5897807",
"0.588901",
"0.58883715... | 0.5673016 | 50 |
makes one move in the bottom direction, i.e., decrements positionX by 1 | public boolean moveDown() throws EatableObjectOnPlaceException {
if (!treeInBelow() && !mouseBelow()) {
if (!onBottomBorder(positionY)) {
positionY = positionY + 1;
eatPerformingStep();
return true;
}
else {
return moveUp();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}",
"public void moveUp() {\n locY = locY + 1;\n }",
"public void moveDown() {\n locY = locY - 1;\n }",
"public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}",
"public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}",
"public void moveUp() {\r\... | [
"0.6729871",
"0.67296237",
"0.66771626",
"0.66752446",
"0.6662027",
"0.66410506",
"0.66212595",
"0.6614677",
"0.6612748",
"0.6610651",
"0.658203",
"0.6569438",
"0.6547259",
"0.65469486",
"0.6538365",
"0.65372473",
"0.6534456",
"0.6515021",
"0.6486989",
"0.64459157",
"0.644146... | 0.0 | -1 |
makes one move in the left direction, i.e., decrements positionX by 1 | public boolean moveLeft() throws EatableObjectOnPlaceException {
if (!treeOnLeft() && !mouseOnLeft()) {
if (!onLeftBorder(positionX)) {
positionX = positionX - 1;
eatPerformingStep();
return true;
}
else {
return moveRight();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}",
"public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n ... | [
"0.8803676",
"0.86977845",
"0.8654344",
"0.8571584",
"0.8516289",
"0.85117185",
"0.8500286",
"0.8481255",
"0.8470026",
"0.84410644",
"0.8413143",
"0.8379607",
"0.8370533",
"0.8302101",
"0.82775366",
"0.82645684",
"0.8220134",
"0.81312764",
"0.80769426",
"0.80278426",
"0.79934... | 0.7095701 | 54 |
makes one move in the right direction, i.e., decrements positionX by 1 | public boolean moveRight() throws EatableObjectOnPlaceException {
if (!treeOnRight() && !mouseOnRight()) {
if (!onRightBorder(positionX)) {
positionX = positionX + 1;
eatPerformingStep();
return true;
}
else {
return moveLeft();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}",
"public void moveRight() {\n locX = locX + 1;\n }",
"void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}",
"public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}",
"public void moveRight()\n {\... | [
"0.845582",
"0.84274983",
"0.8267892",
"0.81166756",
"0.8112357",
"0.80741733",
"0.8044634",
"0.79563946",
"0.79021907",
"0.78938603",
"0.787656",
"0.78425235",
"0.7778833",
"0.77736235",
"0.7771624",
"0.7737789",
"0.77166504",
"0.7709744",
"0.7678476",
"0.76457465",
"0.76149... | 0.0 | -1 |
Creates a video using the title and the author. The stream list will be empty. | public YoutubeVideo(String title, String author) {
this(title, author, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private VideoMetadata createVideo(String name, String type, String category, String imageName, String imageDir,\n\t\t\tString videoName, String videoDir, String description) {\n\t\tVideoMetadata newVideo = new VideoMetadata();\n\t\tnewVideo.setName(name);\n\t\tnewVideo.setType(type);\n\t\tnewVideo.setCategory(cate... | [
"0.61677593",
"0.6066357",
"0.59610456",
"0.59502745",
"0.58315295",
"0.57782924",
"0.57741714",
"0.57452375",
"0.5610474",
"0.5608459",
"0.5598194",
"0.5565795",
"0.5563847",
"0.55322665",
"0.5526691",
"0.55131847",
"0.55075026",
"0.54774785",
"0.5446696",
"0.5416556",
"0.53... | 0.61069494 | 1 |
Returns the title of the video. | public String getTitle() {
return title;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getVideoName() {\n return videoName;\n }",
"public String GetMediaTitle() {\n\t\treturn mediatitle;\n\t}",
"public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString... | [
"0.72937894",
"0.7245594",
"0.7190564",
"0.7190564",
"0.7185085",
"0.7183605",
"0.71763414",
"0.7175499",
"0.716934",
"0.716934",
"0.7153576",
"0.714628",
"0.714327",
"0.7122753",
"0.7122753",
"0.7120987",
"0.7120987",
"0.7120987",
"0.7120987",
"0.7120987",
"0.7113236",
"0.... | 0.0 | -1 |
Adds all stream options of the given YoutubeVideo to this. This method is used by multidecoder extractions. | public void merge(YoutubeVideo video) {
streamOptions.addAll(video.streamOptions);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public YoutubeVideo(String title, String author) {\n this(title, author, null);\n }",
"private void prepareYoutube() {\r\n if (event.youtubeUrl != null && !event.youtubeUrl.isEmpty())\r\n prepareYoutubeVideo();\r\n }",
"private void prepareYoutubeVideo() {\r\n LinearLayout... | [
"0.5475359",
"0.53946424",
"0.5310704",
"0.5284784",
"0.51088333",
"0.502612",
"0.4979981",
"0.4977364",
"0.49502364",
"0.49118352",
"0.49013323",
"0.48985407",
"0.48709753",
"0.48703748",
"0.48395678",
"0.48057956",
"0.47829854",
"0.47441918",
"0.4743829",
"0.47416517",
"0.4... | 0.7392512 | 0 |
Sets the primary key of this v legal f o rel. | public void setPrimaryKey(VLegalFORelPK primaryKey); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"@Override\n\tpublic void setPrimaryKey(int pr... | [
"0.7286688",
"0.7060338",
"0.7060338",
"0.7060338",
"0.70223695",
"0.6965266",
"0.69408655",
"0.69339544",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"... | 0.7583586 | 0 |
Returns the field ID of this v legal f o rel. | @AutoEscape
public String getFieldId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getFieldId() {\n return fieldId;\n }",
"public java.lang.String getFieldId() {\n return fieldId;\n }",
"public String getFieldId() {\n return this.fieldId;\n }",
"com.google.privacy.dlp.v2.FieldId getFieldId();",
"@JsonValue\n\tpublic final String fieldId()... | [
"0.75130236",
"0.73294675",
"0.7263126",
"0.7170249",
"0.6926703",
"0.6384399",
"0.6322742",
"0.6259026",
"0.61747646",
"0.61704165",
"0.616826",
"0.6155977",
"0.6123313",
"0.6073271",
"0.60556585",
"0.6047852",
"0.60115516",
"0.6005587",
"0.6005587",
"0.5977383",
"0.5962289"... | 0.72390497 | 3 |
Sets the field ID of this v legal f o rel. | public void setFieldId(String fieldId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setFieldId(final String fieldId) {\n this.fieldId = fieldId;\n }",
"public void setFieldId(String fieldId) {\n this.fieldId = fieldId;\n }",
"public void setFieldId(java.lang.String fieldId) {\n this.fieldId = fieldId;\n }",
"@Override\n public void setField... | [
"0.7121714",
"0.7007021",
"0.68478763",
"0.66661483",
"0.665432",
"0.665432",
"0.6119576",
"0.60257554",
"0.598374",
"0.5959758",
"0.594175",
"0.5925284",
"0.58852357",
"0.58852357",
"0.5859995",
"0.5848547",
"0.58401126",
"0.5820144",
"0.58191645",
"0.5818878",
"0.5812652",
... | 0.7403745 | 0 |
Returns the org ID of this v legal f o rel. | @AutoEscape
public String getOrgId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getOrgId() {\r\n return orgId;\r\n }",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public... | [
"0.77698296",
"0.7761301",
"0.7753057",
"0.7653152",
"0.7653152",
"0.7653152",
"0.7653152",
"0.7653152",
"0.76148784",
"0.75694287",
"0.7423333",
"0.73213243",
"0.7262181",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",... | 0.74808294 | 10 |
Sets the org ID of this v legal f o rel. | public void setOrgId(String orgId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_... | [
"0.7596801",
"0.7596801",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.7122544",
"0.69886297",
"0.6859716",
"0.6859716",
"0.6859716",
"0... | 0.75513923 | 2 |
TODO We need to reverseengineer all these values | public boolean isCaseSensitive() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"private void initValues() {\n \n }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"private Value() {\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\... | [
"0.5951477",
"0.5678456",
"0.5649929",
"0.56158936",
"0.55750215",
"0.5552945",
"0.555161",
"0.55096036",
"0.5439069",
"0.54302996",
"0.5400878",
"0.53954655",
"0.5395125",
"0.5392456",
"0.5392118",
"0.5389431",
"0.5383075",
"0.5348236",
"0.5340325",
"0.53371835",
"0.5319618"... | 0.0 | -1 |
Operations that allow to configure a view of the properties of a entity from the app model. | public interface PropsViewsContainer {
/**
* Adds a new properties view configuration. The id must be unique. The
* configuration must be an string with the namespace of the entity to be
* loaded at a minimum.
*/
void addPropsView(String id, String className);
/**
* Sets the configuration for the properties view. Each value of the map
* can be an string (full name of an entity) or a map with options to be
* passed to the builder.<br/>
* See <b>addPropsView</b> method for details.
* @param configuration
*/
void setPropsViews(Map<String, String> propertiesView);
/**
* Gets the configuration for the properties view
* @return the map with the configuration
*/
Map<String, String> getPropsViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface EntityViewManager {\n\n /**\n * Returns the metamodel for this entity view manager.\n *\n * @return The metamodel for this entity view manager\n */\n public ViewMetamodel getMetamodel();\n\n /**\n * Applies the entity view setting to the given criteria builder.\n *... | [
"0.5791592",
"0.5740267",
"0.56415874",
"0.56182647",
"0.5602379",
"0.5456233",
"0.54006636",
"0.53727424",
"0.5341283",
"0.53194106",
"0.5314018",
"0.526571",
"0.52423716",
"0.5219974",
"0.5204539",
"0.5183594",
"0.5168099",
"0.5145629",
"0.5140725",
"0.51276785",
"0.5125227... | 0.59584624 | 0 |
Adds a new properties view configuration. The id must be unique. The configuration must be an string with the namespace of the entity to be loaded at a minimum. | void addPropsView(String id, String className); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PropsViewsContainer {\n\n /**\n * Adds a new properties view configuration. The id must be unique. The\n * configuration must be an string with the namespace of the entity to be\n * loaded at a minimum.\n */\n void addPropsView(String id, String className);\n\n /**\n *... | [
"0.51928747",
"0.49841514",
"0.4916959",
"0.47923252",
"0.47124064",
"0.47058055",
"0.46640852",
"0.46235383",
"0.46090627",
"0.45825917",
"0.45586652",
"0.45409867",
"0.45306897",
"0.45285168",
"0.45279902",
"0.45264205",
"0.45129666",
"0.4505841",
"0.44968075",
"0.4490637",
... | 0.5665907 | 0 |
Sets the configuration for the properties view. Each value of the map can be an string (full name of an entity) or a map with options to be passed to the builder. See addPropsView method for details. | void setPropsViews(Map<String, String> propertiesView); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProperties(Map properties);",
"public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }",
"public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }",
"public void setProperties(java.util.Map<String,... | [
"0.6340825",
"0.61658424",
"0.6121599",
"0.60842985",
"0.6081417",
"0.6053063",
"0.6036583",
"0.59745413",
"0.59590685",
"0.59400046",
"0.5882092",
"0.58815444",
"0.577833",
"0.5775914",
"0.5694946",
"0.567667",
"0.56619877",
"0.56019014",
"0.5594576",
"0.55924296",
"0.549528... | 0.7602514 | 0 |
Gets the configuration for the properties view | Map<String, String> getPropsViews(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ConfigProperties getProperties() {\n return properties;\n }",
"Map<String, String> getConfigProperties();",
"public WebIceProperties getProperties()\n\t{\n\t\treturn config;\n\t}",
"public PropertySet getViewProperties() {\r\n return prefs;\r\n }",
"static Properties getConfig()\n {\... | [
"0.7415112",
"0.72710484",
"0.7114265",
"0.7090497",
"0.70096135",
"0.68353504",
"0.6751157",
"0.664859",
"0.65824",
"0.65537727",
"0.6514391",
"0.6512855",
"0.6503908",
"0.65029293",
"0.6483339",
"0.6476084",
"0.6458972",
"0.64557624",
"0.6423691",
"0.64188766",
"0.6407801",... | 0.64865965 | 14 |
Question Candy Constructor with current points rule | public CandyQuestion(Image image) {
super(image, Constants.QUESTION_CANDY_INITIAL_POINTS);
setQuestion(new PopsQuestion());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Candy() {\n\t\tthis(\"\");\n\t}",
"public AccrualRule(){}",
"public Clue(String c, String a) {\n this.clue = c;\n this.answer = a;\n }",
"@Test\r\n\tpublic void constructorDeclarationTest(){\r\n\t\tint[] pointsToTest = {2,7,9,16,17,18,19,20};\r\n\t\tfor(int i=0;i<pointsToTest.length;i... | [
"0.6200073",
"0.595511",
"0.5889354",
"0.5882982",
"0.58278394",
"0.57843614",
"0.5764574",
"0.5750871",
"0.5743362",
"0.56534314",
"0.5619897",
"0.5602531",
"0.56018513",
"0.55935663",
"0.55452293",
"0.55452293",
"0.5539906",
"0.55378574",
"0.5511598",
"0.55059063",
"0.54991... | 0.6426788 | 0 |
load question candy image from drive to object | @Override
public void loadImages() {
super.setImage((new ImageIcon("pacpix/QuestionCandy.png")).getImage());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Image loadImage();",
"private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}",
"public static void loadFruitPic... | [
"0.60826415",
"0.5940747",
"0.59329",
"0.58537126",
"0.5829875",
"0.57399756",
"0.5738403",
"0.5732322",
"0.57236034",
"0.57164717",
"0.56916946",
"0.5658565",
"0.56510496",
"0.5627988",
"0.56237257",
"0.56131876",
"0.555843",
"0.55562866",
"0.55304515",
"0.55237466",
"0.5522... | 0.61157423 | 0 |
/ Access modifiers changed, original: protected|final | public final void beforeExecute(Thread thread, Runnable runnable) {
super.beforeExecute(thread, runnable);
try {
if (this.a > 0) {
thread.setPriority(this.a);
return;
}
if (runnable instanceof w) {
thread.setPriority(((w) runnable).a);
}
} catch (Throwable unused) {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic ... | [
"0.7188292",
"0.69440913",
"0.67583746",
"0.67421097",
"0.6695834",
"0.6595748",
"0.6588323",
"0.6538176",
"0.6462649",
"0.6439864",
"0.64044964",
"0.640002",
"0.6365475",
"0.6361452",
"0.6354888",
"0.6339893",
"0.631317",
"0.6310145",
"0.6305046",
"0.62962663",
"0.6290889",
... | 0.0 | -1 |
12. endsWith() Method: endsWith() method is used to check the last character or characters in a String. endsWith() method is used with Strings.Do not use it with "char". endsWith() method can be used with multiple characters as well. endsWith() method returns "boolean" | public static void main(String[] args) {
String str = "Java is Java";
/*
* System.out.println(str.endsWith("a"));//true
* System.out.println(str.endsWith("x"));//false
* System.out.println(str.endsWith("ava"));//true
*/
// 13. startsWith() :
// startsWith() method is used to check the last character or characters in a
// String.
// startsWith() method is used with Strings.Do not use it with "char".
// startsWith() method can be used with multiple characters as well.
// startsWith() method returns "boolean"
/*
* System.out.println(str.startsWith("J"));// true
* System.out.println(str.startsWith("Java")); //If you want to check the
* character in a specific index do the following.
* System.out.println(str.startsWith("i", 5)); //true
* System.out.println(str.startsWith("is", 5));//true
*/
// 14. isEmpty() returns boolean. Inside parenthesis we don't use anything. Used
// to check if String has zero character or not.
// If a String has no any character , isEmpty() returns true , otherwise returns
// false.
/*
* System.out.println(str.isEmpty());//false
*
* String str2 = "" ; System.out.println(str2.isEmpty());//true
*/
// 15.way: replace() method is used to change a specific character or characters
// to another one . Strings are unchangeable.
System.out.println(str.replace("a", "x"));
System.out.println(str);
System.out.println(str.replace("ava", "x"));
System.out.println(str.replace("a", "xxxxxxxx"));
//replace() method can be used to delete character or characters
System.out.println(str.replace("ava", ""));
//In replace method char and String both can be used.
System.out.println(str.replace('a', 'x'));
// System.out.println(str.replace('a', "x")); ==> char cannot be reverse to String or reverse of this. and char must be single character
//16.replaceAll() method does the same with replace() method but there are some differences:
//1.In replaceAll() you cannot use chars but in replace() you can.
//2.In replaceAll() you can use "Regular Expression"s
System.out.println(str.replaceAll("a", "x"));
/*
* Regular Expressions ==>1) \\s : space character
* 2) \\S : all characters except space character
* 3) \\w : a->z A->Z _ 0->9.. to change these characters to another ones, this method is possible to use
* 4) \\W : All characters except a->z A->Z _ 0->9
* 5) \\d : 0->9 (just digits)
* 6) \\D : All characters except 0->9
*
*
*/
String str3 = "Java123 learn, earn_money!! .";
System.out.println(str3.replaceAll("\\s", "*"));
System.out.println(str3.replaceAll("\\S", "*"));
System.out.println(str3.replaceAll("\\w", "*"));
System.out.println(str3.replaceAll("\\W", "&"));
System.out.println(str3.replaceAll("\\d", "@"));
System.out.println(str3.replaceAll("\\D", "+"));
//17.way : replaceFirst() changes just the first occurrence of the character.
System.out.println(str3.replaceFirst("a", "*"));
//18.Way : substring() method is used to get a part of the String by using indexes. Index is inclusive.
String str4 = "Java is the best";
System.out.println(str4.substring(3));
System.out.println(str4.substring(7));
// System.out.println(str4.substring(0)); and System.out.println(str4); are same.
System.out.println(str4.substring(0));
//If you use last it returns last character because indexes used in substring() are inclusive
System.out.println(str4.substring(15));
// If you use length in substring() method it returns "nothing"
System.out.println(str4.substring(16));
//If you use any index greater than the length it returns "StringIndexOutOfBoundsException"
//System.out.println(str4.substring(17));
/*
Ask user to enter a String
If the first and the last character of the String are same
print "Woow!" on the console.
Otherwise print "Hmmm!" on the console.
*/
Scanner scan = new Scanner ( System.in);
System.out.println("Enter a String");
String strr = scan.nextLine();
//length()-1 ==> every time gives the last character
String last = strr.substring(strr.length()-1);
//substring() can be used with 2 parameters.
//First parameter is starting index(inclusive) , second parameter is ending index(exclusive)
String first = strr.substring(0, 1);
if (last.equals(first)) {
System.out.println("Wooow!");
}else {
System.out.println("Hmmm!");
}
String str5 ="Java is an OOP language";
System.out.println(str5.substring(5, 14));//is an OOP
System.out.println(str5.substring(2, 4));//va
//If starting end ending indexes are same , you get nothing
System.out.println(str5.substring(2, 2));//nothing
//In substring() method, starting index cannot be larger than ending index.
//If you do it, you get StringIndexOutOfBoundsException"
System.out.println(str5.substring(3, 2));
/*
When we type codes we may get two types of error messages.
1) While you type code you may get "red underline",this type of error is called "Compile Time Error"
2) While you type code you do not get "red underline", but when you after run the code , you will get
some red messages on the console. That kind of errors are called "Run Time Error"
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean endsWith(String suffix) {\n/* 371 */ return this.m_str.endsWith(suffix);\n/* */ }",
"public boolean endsWithSpecificString(String str, String str2)\r\n{\r\n if(str.length()== str2.length())\r\n {\r\n return compare2Strings(str,str2);\r\n }\r\n else if(str.length()> str... | [
"0.8289038",
"0.7866757",
"0.74961644",
"0.7291921",
"0.71912634",
"0.7167998",
"0.70007426",
"0.69737464",
"0.6961963",
"0.6852409",
"0.68319666",
"0.665423",
"0.6599714",
"0.6576059",
"0.65559083",
"0.6415779",
"0.62357837",
"0.61410576",
"0.60636127",
"0.60576695",
"0.6043... | 0.53987074 | 48 |
Constructs an CheckerBoardCommand based on the model to manipulate and the view that will reflect these changes. | public CheckerBoardCommand(IMultiLayerExtraOperations model, GUIView frame)
throws IllegalArgumentException {
super(model, frame);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BoardView(GameController controller, Text state, Rectangle sideRect,\n Text sideStatus, RadioMenuItem playerGameMenuItem, Text tType,\n Label whitePiecesEaten, Label blackPiecesEaten,\n ObservableList<String> moveHistory, Label lblCurrentPiece) {\n\n this.controller = controller;... | [
"0.59617484",
"0.56428677",
"0.5424975",
"0.5369879",
"0.53476834",
"0.5336852",
"0.5174873",
"0.51585215",
"0.51338637",
"0.5125975",
"0.51067376",
"0.50821126",
"0.5044124",
"0.497825",
"0.4964558",
"0.4946565",
"0.49464703",
"0.49258104",
"0.4858192",
"0.48534894",
"0.4830... | 0.6997045 | 0 |
To get List of Important News | @SkipValidation
public String getAllImportantNews() {
impList = impService.getAllImportantNews();
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<NewsNotifications> getNewsFeed(int limit);",
"@SkipValidation\n public String importantNewsSearchResult() {\n impList = impService.importantNewsSearchResult(important);\n return SUCCESS;\n }",
"@Override\r\n\tpublic List<Product> findNews() throws Exception {\n\t\treturn null;\r... | [
"0.7044034",
"0.6990594",
"0.694983",
"0.6946498",
"0.6711309",
"0.66985273",
"0.6631104",
"0.65023494",
"0.64973116",
"0.64385957",
"0.64141846",
"0.63994515",
"0.6375808",
"0.62829185",
"0.628118",
"0.6267215",
"0.62537587",
"0.62533605",
"0.61960757",
"0.6182105",
"0.61730... | 0.7640424 | 0 |
when click Edit link it bring particular data into Form or click Add Important News it shows blank Form to enter New Data | @SkipValidation
public String setUpImportantNews() {
if ((important != null) && (important.getImportantNewsId() != null)) {
important = impService.getImportantNews(important.getImportantNewsId());
}
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/newsAdmin\", method = RequestMethod.GET)\n public String loadFormPage(final Model model) {\n LOGGER.log(Level.INFO, \"in loadFormPage\");\n model.addAttribute(NEWS_ARTICLE, new NewsArticle());\n return NEWS_ADMIN_PAGE;\n }",
"private String prepareAndReturnEd... | [
"0.6273559",
"0.6065813",
"0.6043359",
"0.5983909",
"0.59648293",
"0.5940713",
"0.5911516",
"0.5814211",
"0.57877904",
"0.5781017",
"0.57788754",
"0.5716309",
"0.5667527",
"0.5641084",
"0.56288993",
"0.56208235",
"0.5606755",
"0.5587114",
"0.5576829",
"0.55746925",
"0.5562576... | 0.0 | -1 |
To get Particular Important News Data | @SkipValidation
public String importantNewsView() {
if ((important != null) && (important.getImportantNewsId() != null)) {
important = impService.getImportantNews(important.getImportantNewsId());
}
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET(\"user-news-article-content?expand=newsArticle,newsArticle.newsArticleType,newsArticle.translations,newsArticle.like,newsArticle.liked,newsArticle.comments_count&per-page=1000\")\n Call<UserNewsResponse>getUserNews();",
"@SkipValidation\n public String getAllImportantNews() {\n impList = impSer... | [
"0.6663204",
"0.6657093",
"0.65745896",
"0.64920706",
"0.6488132",
"0.6425512",
"0.64194214",
"0.6415668",
"0.6269593",
"0.6221803",
"0.6173363",
"0.6149091",
"0.6080332",
"0.6075241",
"0.6073222",
"0.60586643",
"0.6052747",
"0.60455364",
"0.6015312",
"0.598142",
"0.5962067",... | 0.6283631 | 8 |
To insert new Important News detail or Edit Particular Important News Detail | public String insertOrUpdateImportantNews() {
try {
if (important.getImportantNewsId() == null) {
Map session = ActionContext.getContext().getSession();
EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT");
important.setCreated(DateUtils.getCurrentDateTime());
important.setEmpIdObj(oEmp);
important.setCreatedBy(oEmp);
important.setUpdatedBy(oEmp);
important.setIsActive(1);
impService.insertImportantNews(important);
addActionMessage(getText("Added Successfully"));
} else {
Map session = ActionContext.getContext().getSession();
EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT");
important.setUpdatedBy(oEmp);
important.setEmpIdObj(oEmp);
impService.updateImportantNews(important);
addActionMessage(getText("Updated Successfully"));
}
} catch (RuntimeException e) {
ErrorsAction errAction = new ErrorsAction();
String sError = errAction.getError(e);
addActionError(sError);
throw e;
}
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int insertSelective(NewsInfo record);",
"@SkipValidation\n public String setUpImportantNews() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }",
"... | [
"0.6467231",
"0.6435484",
"0.6340061",
"0.62865907",
"0.62674403",
"0.62497354",
"0.6236093",
"0.6228636",
"0.622723",
"0.6221159",
"0.6189905",
"0.617601",
"0.6139169",
"0.6110049",
"0.6093529",
"0.60094994",
"0.5814327",
"0.5812254",
"0.57757086",
"0.57653666",
"0.5762222",... | 0.6980524 | 0 |
To delete Particular Important News Detail | @SkipValidation
public String deleteImportantNews() {
Map session = ActionContext.getContext().getSession();
EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT");
// To Delete Important News.
important.setUpdatedBy(oEmp);
impService.deleteImportantNews(important);
addActionMessage(getText("Deleted Successfully"));
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int deleteByExample(NewsInfoExample example);",
"@Delete({\n \"delete from NEWS\",\n \"where NEWS_ID = #{newsId,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer newsId);",
"int deleteByExample(NewsExample example);",
"@Override\r\n\tpublic void deleteNews(int id) {\n\t\tdao.delet... | [
"0.73071486",
"0.7090343",
"0.7055751",
"0.6886736",
"0.67770505",
"0.6725309",
"0.64760876",
"0.64055663",
"0.63971484",
"0.63687927",
"0.62881494",
"0.6237643",
"0.6172028",
"0.6139781",
"0.6133236",
"0.611649",
"0.6082495",
"0.60507363",
"0.60398597",
"0.6016609",
"0.59370... | 0.75061387 | 0 |
To View the Important News Search Form | @SkipValidation
public String importantNewsSearchForm() {
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showSearch() {\n\t\tonSearchRequested();\n\t}",
"public Form getSearchForm() throws PublicationTemplateException;",
"private void visitToSearch() {\n if (search_Attendance==null) {\n search_Attendance=new Search_Attendance();\n search_Attendance.setVisible(true... | [
"0.6649456",
"0.6607834",
"0.6416285",
"0.6415012",
"0.6323998",
"0.6273183",
"0.62325954",
"0.6120333",
"0.60536283",
"0.6053514",
"0.6052907",
"0.6041827",
"0.6020118",
"0.6000986",
"0.59814316",
"0.59159386",
"0.589049",
"0.5885983",
"0.5877601",
"0.5859834",
"0.5851154",
... | 0.6605603 | 2 |
To Search Important News | @SkipValidation
public String importantNewsSearchResult() {
impList = impService.importantNewsSearchResult(important);
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public HashSet<News> getNewsFreeCriteria(String request) throws ServiceException {\n try {\n String [] parametersForTheSearch;\n parametersForTheSearch = RequestWorker.getSearchParametersInRequest(request);\n\n return dbWorker.searchNewsForFreeCriteria(paramet... | [
"0.6697991",
"0.6435053",
"0.64349586",
"0.64197856",
"0.63381267",
"0.6316216",
"0.63066643",
"0.6296526",
"0.6263584",
"0.62532",
"0.6213936",
"0.6176544",
"0.61669785",
"0.6155457",
"0.6087727",
"0.6087727",
"0.6085978",
"0.60724634",
"0.60342914",
"0.6026345",
"0.60209775... | 0.69708425 | 0 |
To Change Show Messages Check box in List of Important News Page | @SkipValidation
public String makeChangesToShowMessage() {
important = impService.getImportantNews(important.getImportantNewsId());
if (important.isShowMessage() == false) {
important.setShowMessage(true);
impService.updateImportantNews(important);
}
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<String> showNewsAndMessages();",
"void showLoadingMoreMessages(boolean show);",
"private void showAllTwoots() {\n if (onlyShowFollowing) {\n messages.setItems(feed.getFollowingMessages());\n stage.setTitle(\"Twooter - following only\");\n } else {\n messages.... | [
"0.64580274",
"0.6384877",
"0.60067767",
"0.5870288",
"0.57827866",
"0.5670705",
"0.56108725",
"0.560864",
"0.5573449",
"0.5532912",
"0.55295086",
"0.5524892",
"0.55160403",
"0.54788315",
"0.5434118",
"0.5418406",
"0.5391835",
"0.539005",
"0.53650135",
"0.53558666",
"0.535261... | 0.7008839 | 0 |
Start monitor threads, wait for inputs | public synchronized void start() {
if (!isRunning) {
isRunning = true;
inputCount += inputQueue.size();
if (isPausing) {
isPausing = false;
controlSync.release(numComputeTasks);
} else {
threads = new Thread[numComputeTasks];
for (int i = 0; i < numComputeTasks; i++) {
threads[i] =
new Thread(computeTasks[i]);
threads[i].start();
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForThread() {\n monitorState = true;\n while (monitorState) {\n synchronized (monitor) {\n try {\n monitor.wait(); // wait until notified\n } catch (Exception e) {}\n }\n }\n }",
"private void startThreads() {\n L... | [
"0.66223353",
"0.63439006",
"0.6275542",
"0.5986141",
"0.58877003",
"0.58487505",
"0.58393437",
"0.5833714",
"0.57352436",
"0.5712914",
"0.5693452",
"0.56528467",
"0.56422853",
"0.56370467",
"0.56056714",
"0.55962735",
"0.5592272",
"0.55875385",
"0.5586645",
"0.5566652",
"0.5... | 0.58149296 | 8 |
Stop submission Send StopSign to the queue based on the number of tasks | public synchronized void stop() {
if (isPausing) {
start();
}
if (isRunning) {
isRunning = false;
for (int i = 0; i < numComputeTasks; i++) {
inputQueue.addLast(new ComputeStopSign());
}
ComputeUtil.acquire(taskSync,
numComputeTasks);
for (int i = 0; i < threads.length; i++) {
boolean isFailed = false;
do {
isFailed = false;
try {
threads[i].join();
} catch (Exception e) {
isFailed = true;
}
} while (isFailed);
}
threads = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendStopMessage() {\n // A default stop type message\n FirebaseMessage stopMessage = new FirebaseMessage(\"STOP\", null, \"STOP\");\n if (!messageQueue.offer(stopMessage)) {\n logger.error(\"The stop message could not be sent\");\n }\n }",
"public void stopSe... | [
"0.58734095",
"0.56234145",
"0.5535843",
"0.54784185",
"0.54487544",
"0.54211646",
"0.5378747",
"0.53591096",
"0.5323122",
"0.53134197",
"0.5300729",
"0.52753204",
"0.5274664",
"0.52628154",
"0.5260014",
"0.5245087",
"0.5240846",
"0.523213",
"0.5216457",
"0.5167944",
"0.51434... | 0.5259808 | 15 |
If no output is available, wait for one | public synchronized Object waitOutput() {
Object output = null;
if (hasOutput()) {
boolean isFailed = false;
do {
try {
output = outputQueue.take();
isFailed = false;
} catch (Exception e) {
if (output == null) {
isFailed = true;
} else {
isFailed = false;
}
// Interrupt may happen when waiting for
// an element is available
e.printStackTrace();
}
} while (isFailed);
outputCount++;
}
return output;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void waitUntilCommandFinished() {\n }",
"private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }",
"ProcessRunner waitFor();"... | [
"0.6533618",
"0.6510953",
"0.64324206",
"0.63818383",
"0.6376951",
"0.6207946",
"0.62063193",
"0.6095573",
"0.6079499",
"0.60733134",
"0.60272574",
"0.5983817",
"0.5973005",
"0.5881891",
"0.58096784",
"0.5779502",
"0.57679456",
"0.5767849",
"0.57381713",
"0.570961",
"0.570916... | 0.7732471 | 0 |
Default Constructor for a scale Initializes all variables to valid but bad values Used for later customization | public Scale()
{
this.scaleName = "no scale";
this.scaleDegrees = "no degrees";
this.degreeCount = -99;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Scale(Scale newScale){\n \tsuper(newScale);\n }",
"public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}",
"public ScaleControl() {\n super();\n }",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"public HeatedObjectScale() {\n ... | [
"0.7452639",
"0.69786537",
"0.68769366",
"0.64343566",
"0.6420506",
"0.6341273",
"0.6333438",
"0.63159454",
"0.6187722",
"0.6168889",
"0.61548316",
"0.61525464",
"0.6146269",
"0.613912",
"0.61134535",
"0.6099475",
"0.60969114",
"0.60647744",
"0.60478806",
"0.60332286",
"0.603... | 0.81388116 | 0 |
Initializes a Scale Instance. | public Scale(String scaleName, String scaleDegrees, int degreeCount)
{
this.scaleName = scaleName;
this.scaleDegrees = scaleDegrees;
this.degreeCount = degreeCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Scale()\n\t{\n\t\tthis.scaleName = \"no scale\";\n\t\tthis.scaleDegrees = \"no degrees\";\n\t\tthis.degreeCount = -99;\n\t}",
"public ScaleControl() {\n super();\n }",
"public Scale(Scale newScale){\n \tsuper(newScale);\n }",
"public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.... | [
"0.7395691",
"0.703097",
"0.6874789",
"0.6775952",
"0.6770504",
"0.6192979",
"0.60976595",
"0.6085091",
"0.59856445",
"0.58630836",
"0.5856599",
"0.5836647",
"0.57826084",
"0.5780567",
"0.5775278",
"0.57565606",
"0.572738",
"0.5725233",
"0.57244354",
"0.56968516",
"0.5658223"... | 0.0 | -1 |
Excluir de para secundario do de para. | public void excluirDeParaSecundarioDoDePara(List<Long> idsDePara) throws DAOException {
try {
String qlString = new StringBuilder()
.append("DELETE FROM DeParaSecundario dps WHERE dps.dePara.id in (:idDePara)")
.toString();
getEntityManager().createQuery(qlString).setParameter("idDePara", idsDePara).executeUpdate();
} catch (final PersistenceException e) {
LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e);
throw new DAOException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }",
"@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}",
"pub... | [
"0.61786944",
"0.61631584",
"0.605863",
"0.59158045",
"0.5896066",
"0.58800155",
"0.5857275",
"0.58363354",
"0.5812813",
"0.5811402",
"0.57960874",
"0.5783662",
"0.57794315",
"0.57603014",
"0.5744289",
"0.5722357",
"0.571265",
"0.56806844",
"0.5676682",
"0.56764096",
"0.56730... | 0.6305223 | 0 |
Excluir de para secundarios. | public void excluirDeParaSecundarios(List<Long> idsDeParaSecundarios) throws DAOException {
try {
String qlString = new StringBuilder()
.append("DELETE FROM DeParaSecundario dpp WHERE dpp.id in (:idsDeParaSecundarios)")
.toString();
getEntityManager().createQuery(qlString).setParameter("idsDeParaSecundarios", idsDeParaSecundarios).executeUpdate();
} catch (final PersistenceException e) {
LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e);
throw new DAOException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"public void excluir() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Excluir(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente excluido com sucesso!\");\n\n } catch (RuntimeException e) {\n ... | [
"0.7046007",
"0.6905159",
"0.68588096",
"0.6553609",
"0.6393621",
"0.6361257",
"0.6336583",
"0.6325979",
"0.6314684",
"0.62209445",
"0.6220166",
"0.61950815",
"0.61793596",
"0.61353964",
"0.61312014",
"0.61140335",
"0.6099325",
"0.60866946",
"0.60724056",
"0.60519606",
"0.602... | 0.6488007 | 4 |
Consulta codigos secundarios aud. | public List<DeParaSecundarioAud> consultaCodigosSecundariosAud(Long idDePara, Long idRevisao)
throws DAOException {
try {
String qlString = new StringBuilder().append(
"FROM DeParaSecundarioAud dps WHERE dps.dePara.id = :idDePara and dps.revisao.id = :idRevisao")
.toString();
List<DeParaSecundarioAud> resultado =
getEntityManager().createQuery(qlString).setParameter("idDePara", idDePara)
.setParameter("idRevisao", idRevisao).getResultList();
return resultado;
} catch (final PersistenceException e) {
LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e);
throw new DAOException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String dissociaAuditors(){\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tDatiUtente user = (DatiUtente) request.getSession().getAttribute(\"DatiUtente\");\n\t\t\n\t\tlong idUtente=getModel().getIdAuditors();\n\t\tlong idAccesso=user.getIdSessione();\n\t\t\n\t\tAuAssUtenteSessione... | [
"0.6443713",
"0.5851111",
"0.57428783",
"0.56234074",
"0.54854673",
"0.5243412",
"0.51139426",
"0.50949645",
"0.5034774",
"0.49973202",
"0.49804193",
"0.49755412",
"0.49688244",
"0.49642763",
"0.4941253",
"0.49389473",
"0.4926695",
"0.4901379",
"0.48981926",
"0.48940352",
"0.... | 0.6562485 | 0 |
Attach this simulation proxy to a specific game window. | void attachToGameWindow(GameWindow gameWindow); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n ... | [
"0.5553429",
"0.5550397",
"0.54972076",
"0.5477147",
"0.52074724",
"0.51865435",
"0.51846284",
"0.5178003",
"0.5151698",
"0.51263773",
"0.509515",
"0.5079591",
"0.50231504",
"0.4997562",
"0.49810067",
"0.49741971",
"0.49572653",
"0.49436885",
"0.4910517",
"0.4907405",
"0.4901... | 0.70344996 | 0 |
Called when the window is closing. | void windowClosed(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void windowClosed(WindowEvent arg0) {\n\n }",
"@Override\n\t\t\tpublic void windowClosed(W... | [
"0.8411728",
"0.81866837",
"0.8184371",
"0.8172492",
"0.8158572",
"0.8158572",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.8138807",
"0.8138807",
"0.8138807",
"0.8105881",
"0.8090525",
"0.8086889",
"0.8086889",
"0.80819... | 0.8292558 | 1 |
This is called when a button is pressed by the user | void buttonPressed(ButtonType type); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }",
"public void onButtonAPressed();",
"void mainButtonPress... | [
"0.7838161",
"0.7792651",
"0.7536599",
"0.7393247",
"0.73690623",
"0.7310898",
"0.71758884",
"0.7094178",
"0.7078857",
"0.7059502",
"0.70565337",
"0.7055408",
"0.7049048",
"0.7039087",
"0.702815",
"0.702815",
"0.702815",
"0.702815",
"0.7027525",
"0.7018046",
"0.7000462",
"0... | 0.6912554 | 31 |
This is called if the speed slider is changed by the user | void simulationSpeedChange(int value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void speedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_speedStateChanged\n\n int speedvalue = speed.getValue();//gets the value of the speed slider from the control panel\n roboLogic.speed(speedvalue); // calls the speed method of the RobotLogic class\n\n\n }",
"pri... | [
"0.76355684",
"0.7586968",
"0.746392",
"0.744985",
"0.7419544",
"0.7204214",
"0.709264",
"0.7092426",
"0.7033579",
"0.69256836",
"0.6811515",
"0.6786621",
"0.6747736",
"0.6699818",
"0.66939116",
"0.66846037",
"0.6660655",
"0.6619972",
"0.66073906",
"0.6555709",
"0.6538303",
... | 0.632117 | 41 |
This gets called when the user changes the selected element | void selectedEntityChanged(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }",
"public void updateSelection() {\n\t\t\n\t}",
"@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}",
"public void selectionChanged(Selection selecton) {\r\n ... | [
"0.7274752",
"0.7252354",
"0.7244393",
"0.71342456",
"0.702324",
"0.69818383",
"0.692254",
"0.69147515",
"0.69143105",
"0.6888294",
"0.6876232",
"0.6796585",
"0.6780229",
"0.6780108",
"0.67689735",
"0.6748082",
"0.6745301",
"0.67233694",
"0.672151",
"0.67094",
"0.67076033",
... | 0.65136606 | 67 |
This gets called by the user to refresh task status information. Calling this must verify the task. | void refreshTaskInformation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateTask() {}",
"public void updateTaskStatus(CaptureTask task, String status, String description) {\n\t\t\r\n\t}",
"boolean updateActiveTask(Task task);",
"@Override\n public boolean statusUpdate(TaskAttemptID taskId, TaskStatus taskStatus)\n throws IOException, InterruptedExceptio... | [
"0.72356004",
"0.72210366",
"0.691714",
"0.68649673",
"0.6798249",
"0.6726184",
"0.6549397",
"0.6492951",
"0.6466403",
"0.6439269",
"0.6438563",
"0.63922435",
"0.6306801",
"0.6287258",
"0.6284196",
"0.6218409",
"0.62133735",
"0.6195394",
"0.61329186",
"0.6105634",
"0.6074432"... | 0.78567743 | 0 |
Entity placing Spawn a new entity of the given type at the given position and bind the program to this entity. | void spawnEntityAt(String typeName, int x, int y); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n void spawn(Entity entity);",
"public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.posit... | [
"0.6846336",
"0.68355703",
"0.6505559",
"0.6475497",
"0.6429231",
"0.6290248",
"0.62660885",
"0.626185",
"0.616",
"0.61309344",
"0.6115115",
"0.60704714",
"0.60509884",
"0.6032133",
"0.60259545",
"0.59970033",
"0.59824497",
"0.59530705",
"0.59345484",
"0.58736587",
"0.5865240... | 0.7562786 | 0 |
Clear all entities in the given cell. | void clearCell(int x, int y); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearEntities()\n\t{\n\t\twhile(!this.entities.isEmpty())\n\t\t{\n\t\t\t//Can use 0 index because we use swap with last anyway\n\t\t\tthis.removeEntity(0); //Important because onDespawn and to remove from hash grid\n\t\t}\n\t}",
"public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t... | [
"0.65371966",
"0.64325637",
"0.6293468",
"0.616996",
"0.6167421",
"0.6038778",
"0.60101247",
"0.60055524",
"0.59703314",
"0.59659624",
"0.59525967",
"0.59332526",
"0.58872753",
"0.5879405",
"0.58754045",
"0.58722234",
"0.58697176",
"0.58635026",
"0.5851174",
"0.5847727",
"0.5... | 0.70159227 | 0 |
Sidebar Simulation Tree This function gets called when the user selects a different node | void selectedSimulationEntityChange(SimulationTreeNode node); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShowTree(GUIMain guiMn) throws HeadlessException {\n setSize(200, 400);\n\n guiMn.simMain.rootNode = new DefaultMutableTreeNode(\"Physiology systems\");\n guiMn.simMain.treeModel = new DefaultTreeModel(guiMn.simMain.rootNode);\n guiMn.simMain.treeModel.addTreeModelListener(new WB... | [
"0.6340852",
"0.6298224",
"0.62595606",
"0.612669",
"0.60954374",
"0.6087375",
"0.60762674",
"0.60714686",
"0.60471326",
"0.60359305",
"0.60302234",
"0.60275793",
"0.6000629",
"0.59567106",
"0.5923496",
"0.5901253",
"0.5864302",
"0.5862665",
"0.5861225",
"0.58584535",
"0.5814... | 0.5666648 | 32 |
Entity Inspector This function gets called when a user changes a value or fires a function in the ui | void entityValueChange(String name, String value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void selectedEntityChanged(String name);",
"protected abstract void showEditedEntity(Entity e);",
"void trigger(Entity e);",
"@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@... | [
"0.69578904",
"0.65017915",
"0.63605195",
"0.6284089",
"0.62787634",
"0.62787634",
"0.62787634",
"0.62787634",
"0.6273038",
"0.61170304",
"0.607215",
"0.607215",
"0.59951484",
"0.59798163",
"0.5930742",
"0.5889409",
"0.5852433",
"0.5852433",
"0.58405",
"0.5837157",
"0.5831979... | 0.7417669 | 0 |
Disconnect all consumers attached to the dispatcher and close this subscription. | @Override
public synchronized CompletableFuture<Void> disconnect() {
CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();
// block any further consumers on this subscription
IS_FENCED_UPDATER.set(this, TRUE);
(dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close())
.thenRun(() -> {
log.info("[{}][{}] Successfully disconnected and closed subscription", topicName, subName);
disconnectFuture.complete(null);
}).exceptionally(exception -> {
IS_FENCED_UPDATER.set(this, FALSE);
if (dispatcher != null) {
dispatcher.reset();
}
log.error("[{}][{}] Error disconnecting consumers from subscription", topicName, subName,
exception);
disconnectFuture.completeExceptionally(exception);
return null;
});
return disconnectFuture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disconnect() {\n\t\tif (producer != null) {\n\t\t\tproducer.close();\n\t\t}\n\t\tproducer = null;\n\n\t\tif (consumer != null) {\n\t\t\tstopPolling();\n\t\t}\n\t\tconsumer = null;\n\t}",
"void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n ... | [
"0.66940683",
"0.59836304",
"0.59356266",
"0.58941495",
"0.5876159",
"0.583815",
"0.5743106",
"0.57424915",
"0.5741666",
"0.56259704",
"0.5619584",
"0.5593498",
"0.55924076",
"0.55781823",
"0.5560134",
"0.5543871",
"0.55281335",
"0.55016744",
"0.5484422",
"0.54560155",
"0.542... | 0.6520854 | 1 |
Delete the subscription by closing and deleting its managed cursor if no consumers are connected to it. Handle unsubscribe call from admin layer. | @Override
public CompletableFuture<Void> delete() {
return delete(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) {\n CompletableFuture<Void> deleteFuture = new CompletableFuture<>();\n\n log.info(\"[{}][{}] Unsubscribing\", topicName, subName);\n\n CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>();\n\n ... | [
"0.6902147",
"0.67019045",
"0.6437361",
"0.6224811",
"0.6183925",
"0.6168601",
"0.6114826",
"0.6088101",
"0.6070818",
"0.6047778",
"0.60388386",
"0.6013413",
"0.5930529",
"0.5895709",
"0.58236146",
"0.5820045",
"0.57799786",
"0.5742924",
"0.5647183",
"0.5620939",
"0.5597662",... | 0.0 | -1 |
Forcefully close all consumers and deletes the subscription. | @Override
public CompletableFuture<Void> deleteForcefully() {
return delete(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }",
"public void closeAll()\n {\n closeAllTopicPublishers();\n closeAllTopicSubscribers();\n closeAllTopicDurableSubscribers... | [
"0.71038437",
"0.6854673",
"0.68119985",
"0.67956907",
"0.66875327",
"0.6673479",
"0.66141564",
"0.6611169",
"0.6437687",
"0.6194138",
"0.6192441",
"0.61882406",
"0.61660016",
"0.61524564",
"0.61324143",
"0.60999674",
"0.6065243",
"0.60561657",
"0.6040517",
"0.59106135",
"0.5... | 0.0 | -1 |
Delete the subscription by closing and deleting its managed cursor. Handle unsubscribe call from admin layer. | private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) {
CompletableFuture<Void> deleteFuture = new CompletableFuture<>();
log.info("[{}][{}] Unsubscribing", topicName, subName);
CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>();
if (closeIfConsumersConnected) {
this.disconnect().thenRun(() -> {
closeSubscriptionFuture.complete(null);
}).exceptionally(ex -> {
log.error("[{}][{}] Error disconnecting and closing subscription", topicName, subName, ex);
closeSubscriptionFuture.completeExceptionally(ex);
return null;
});
} else {
this.close().thenRun(() -> {
closeSubscriptionFuture.complete(null);
}).exceptionally(exception -> {
log.error("[{}][{}] Error closing subscription", topicName, subName, exception);
closeSubscriptionFuture.completeExceptionally(exception);
return null;
});
}
// cursor close handles pending delete (ack) operations
closeSubscriptionFuture.thenCompose(v -> topic.unsubscribe(subName)).thenAccept(v -> {
synchronized (this) {
(dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenRun(() -> {
log.info("[{}][{}] Successfully deleted subscription", topicName, subName);
deleteFuture.complete(null);
}).exceptionally(ex -> {
IS_FENCED_UPDATER.set(this, FALSE);
if (dispatcher != null) {
dispatcher.reset();
}
log.error("[{}][{}] Error deleting subscription", topicName, subName, ex);
deleteFuture.completeExceptionally(ex);
return null;
});
}
}).exceptionally(exception -> {
IS_FENCED_UPDATER.set(this, FALSE);
log.error("[{}][{}] Error deleting subscription", topicName, subName, exception);
deleteFuture.completeExceptionally(exception);
return null;
});
return deleteFuture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unsubscribe(Subscription subscription);",
"private void deleteSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteSubscription method started;\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String do... | [
"0.6637103",
"0.64795256",
"0.63066375",
"0.62289256",
"0.62185925",
"0.6188752",
"0.6078942",
"0.60579354",
"0.5982122",
"0.5908718",
"0.582933",
"0.5762236",
"0.5757272",
"0.573454",
"0.56978106",
"0.5679091",
"0.5669469",
"0.5664577",
"0.55692595",
"0.5543253",
"0.55241865... | 0.6456132 | 2 |
Handle unsubscribe command from the client API Check with the dispatcher is this consumer can proceed with unsubscribe. | @Override
public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {
CompletableFuture<Void> future = new CompletableFuture<>();
try {
if (dispatcher.canUnsubscribe(consumer)) {
consumer.close();
return delete();
}
future.completeExceptionally(
new ServerMetadataException("Unconnected or shared consumer attempting to unsubscribe"));
} catch (BrokerServiceException e) {
log.warn("Error removing consumer {}", consumer);
future.completeExceptionally(e);
}
return future;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void unsubscribeHandler(MqttUnsubscribeMessage unsubscribe) {\n\n final int messageId = unsubscribe.messageId();\n LOG.info(\"UNSUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_UNSUBSCRIBE\n\n AmqpUnsubscribeMessage amqp... | [
"0.7334951",
"0.7042834",
"0.69792527",
"0.6822029",
"0.67915434",
"0.66076815",
"0.65918523",
"0.657531",
"0.6505734",
"0.648674",
"0.64597636",
"0.64409065",
"0.63718903",
"0.63544095",
"0.6288049",
"0.62492",
"0.62483364",
"0.6238604",
"0.62204087",
"0.6214574",
"0.6167777... | 0.6354076 | 14 |
/Demo1 obj=new Demo1(); >The only purpose of the class Demo1 is to implement abc i.e to define the abstract method void show() then we can go use anonymous interface concept where you are creating object for an interface which is not possible in any other way | public static void main(String args[])
{
abc obj=new abc()
{
public void show()
{
System.out.println("In Demo1 show...!");
}
};
obj.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface InterfaceDemo {\n int age =0; //接口中变量都是公开静态常量\n String name =null;\n abstract void aa();\n\n public abstract void display(); //接口中方法都是抽象的\n}",
"interface A{\n void show();\n}",
"public static void main(String[] args)\r\n{\n\tInterfaceDemo obj=new InterfaceDemo();\r\n\t//3. Reference... | [
"0.7579533",
"0.6958325",
"0.6949679",
"0.6826586",
"0.6747593",
"0.6728034",
"0.6697212",
"0.6658855",
"0.6469203",
"0.6408291",
"0.64082193",
"0.6338201",
"0.6326792",
"0.63046706",
"0.629144",
"0.6267601",
"0.6239805",
"0.6239805",
"0.62263775",
"0.6220747",
"0.6176741",
... | 0.7626855 | 0 |
TODO Autogenerated method stub | protected void initialize() {
requires(simpleVision);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | protected void execute() {
ParticleAnalysisReport[] reports = simpleVision.getFrame();
for (int i = 0; i < reports.length; i++) { // print results
ParticleAnalysisReport r = reports[i];
SmartDashboard.putString("Particle" + i, r.center_mass_x + ", " + r.center_mass_y);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | protected boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | protected void end() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | protected void interrupted() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
jhipsterneedleentityaddfield JHipster will add fields here, do not remove | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp... | [
"0.62935424",
"0.5985966",
"0.59330326",
"0.5805937",
"0.5701243",
"0.56256855",
"0.56225914",
"0.56027466",
"0.5590212",
"0.55272454",
"0.5524442",
"0.55027753",
"0.5450715",
"0.5450022",
"0.544771",
"0.54397124",
"0.542143",
"0.53969616",
"0.5391886",
"0.538626",
"0.5379215... | 0.0 | -1 |
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CategoriaDespesa categoriaDespesa = (CategoriaDespesa) o;
if (categoriaDespesa.getId() == null || getId() == null) {
return false;
}
return Objects.equals(getId(), categoriaDespesa.getId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}",
"static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i... | [
"0.63286126",
"0.6107704",
"0.56600153",
"0.5650253",
"0.5532135",
"0.5463501",
"0.5462676",
"0.54489154",
"0.54330343",
"0.5414924",
"0.5386955",
"0.5378861",
"0.53504336",
"0.5340984",
"0.53362584",
"0.532892",
"0.5322672",
"0.53224915",
"0.5315536",
"0.53031385",
"0.529214... | 0.0 | -1 |
handles request for saving attached document | @RequestMapping(value = "save", method = RequestMethod.POST)
public ModelAndView save(@ModelAttribute("document") Document document,
@RequestParam(value = "file", required = false) MultipartFile file,
ModelMap modelMap) {
try {
if (document.getpOrg() == null)
throw new ValidationException(
"The Finantial Institution can not be null");
ProducerOrg pOrg = document.getpOrg();
documentService.validate(document);
if (file != null && file.getSize() > 0) {
String extension = DocumentServiceImpl
.getExtensionFromPath(file.getOriginalFilename());
if (StringUtils.isBlank(extension)) {
extension = DocumentServiceImpl
.getDocumentExtension(document);
}
String contentType = DocumentServiceImpl.getMimeType(extension);
if (StringUtils.isBlank(contentType)) {
contentType = file.getContentType();
}
document.setDocumentExtension(extension);
document.setContentType(contentType);
document.setDocumentInputStream(file.getInputStream());
}
Document existingDocument = document;
if (StringUtils.isNotEmpty(document.getId())) {
existingDocument = documentService.getDocumentById(document
.getId());
existingDocument.setName(document.getName());
existingDocument.setContentType(document.getContentType());
existingDocument.setDocumentType(document.getDocumentType());
existingDocument.setDocumentExtension(document
.getDocumentExtension());
existingDocument.setDocumentUrl(document.getDocumentUrl());
existingDocument.setOtherInfo(document.getOtherInfo());
existingDocument.setpOrg(document
.getpOrg());
} else {
if (file == null || file.getSize() == 0)
throw new ValidationException("File is required");
existingDocument.setDateCreated(Calendar.getInstance()
.getTime());
existingDocument
.setCreatedBy(OXMSecurityUtil.getLoggedInUser());
existingDocument.setId(null);
pOrg.addDocument(existingDocument);
}
if (file != null && file.getSize() > 0) {
documentService.saveDocument(existingDocument,
file.getInputStream());
porgService.save(pOrg);
} else
documentService.saveDocument(existingDocument, null);
modelMap.put(WebConstants.MODEL_ATTRIBUTE_SYSTEM_MESSAGE,
"Financial Document Saved sucessfully.");
return view(pOrg.getId(), modelMap);
} catch (Exception ex) {
log.error(null, ex);
modelMap.put(WebConstants.MODEL_ATTRIBUTE_ERROR_MESSAGE,
" - " + ex.getMessage());
modelMap.put("document", document);
modelMap.put("pOrg", document.getpOrg());
modelMap.put(WebConstants.CONTENT_HEADER,
"Retry Add/Edit Document of "
+ document.getpOrg().getName());
return new ModelAndView("pOrgDocForm", modelMap);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean processSaveDocument(Document document);",
"void saveDocument(SingleDocumentModel model, Path newPath);",
"HrDocumentRequest save(HrDocumentRequest hrDocumentRequest);",
"@Override\n public void onSaveAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(att... | [
"0.7160098",
"0.6964952",
"0.6925324",
"0.6859366",
"0.6778618",
"0.6649702",
"0.64266676",
"0.6349694",
"0.6349694",
"0.6318765",
"0.62453246",
"0.6243321",
"0.6243321",
"0.6199095",
"0.60964096",
"0.6057666",
"0.6023837",
"0.6020857",
"0.59550446",
"0.5946453",
"0.5923336",... | 0.586782 | 28 |
Atributos No hay Constructor Constructor de TCubico | public TCubico(){} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Alojamiento() {\r\n\t}",
"public Caso_de_uso () {\n }",
"public Candidatura (){\n \n }",
"private ControleurAcceuil(){ }",
"public Cgg_jur_anticipo(){}",
"public Kullanici() {}",
"public AntrianPasien() {\r\n\r\n }",
"public Pasien() {\r\n }",
"public Vehiculo() {\r\n }... | [
"0.7364801",
"0.7296862",
"0.7286193",
"0.72850907",
"0.7283375",
"0.72493577",
"0.7241083",
"0.7234526",
"0.7232215",
"0.71430135",
"0.7142133",
"0.71277213",
"0.71226156",
"0.71183",
"0.70890003",
"0.70732486",
"0.70509666",
"0.70421654",
"0.70328563",
"0.7015571",
"0.70138... | 0.79779965 | 0 |
Metodos Ingresa la capacidad de TCubico | @Override
public void ingresarCapacidad(){
double capacidad = Math.pow(alto, 3);
int capacidadInt = Double.valueOf(capacidad).intValue();
super.capacidad = capacidadInt;
super.cantidadRestante = capacidadInt;
System.out.println(capacidadInt);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void asignarCapacidades ()\n\t{\n\t\tif(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_ECONOMICO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_60;\n\t\t}\n\t\t\n\t\telse if(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_MEDIO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_45;\n\t\t}\n\t\t\n\t\... | [
"0.69070756",
"0.6487838",
"0.6443693",
"0.59934574",
"0.5953816",
"0.5908737",
"0.5833421",
"0.5822824",
"0.57863927",
"0.5747077",
"0.5731083",
"0.56804633",
"0.56557727",
"0.56557727",
"0.56506956",
"0.56432277",
"0.56268734",
"0.55763716",
"0.55744636",
"0.5566874",
"0.55... | 0.5956038 | 4 |
you can define some common methods here | void printCarInfo(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n ... | [
"0.6203616",
"0.60774803",
"0.6071782",
"0.60540605",
"0.60540605",
"0.60359424",
"0.59590185",
"0.5946159",
"0.5941488",
"0.5941488",
"0.5883198",
"0.5868424",
"0.5868424",
"0.5853461",
"0.58443296",
"0.57764065",
"0.5772049",
"0.5755987",
"0.5733863",
"0.5724825",
"0.572001... | 0.0 | -1 |
This function is run when the robot is first started up and should be used for any initialization code. | @Override
public void robotInit() {
SmartDashboard.putData(new TestLIDARCommand());
driveSubsystem = new DriveSubsystem();
shooterSubsystem = new ShooterSubsystem();
feederSubsystem = new FeederSubsystem();
intakeSubsystem = new IntakeSubsystem();
gearSubsystem = new GearSubsystem();
climberSubsystem = new ClimberSubsystem();
cameraSubsystem = new CameraSubsystem();
navigator = new Navigator();
oi = new OI();
m_chooser = new SendableChooser<>();
m_chooser.addDefault("Do Nothing", new PistonReleaseCommand());
//m_chooser.addObject("Boiler Auto (side hopper)", new SelectBoilerAutoCommand());
m_chooser.addObject("Boiler Auto (front hopper)", new SelectBoilerAutoFrontCommand());
m_chooser.addObject("Test drive straight", new MeasureDistanceCommand(1500, 100000));
m_chooser.addObject("Test max speed", new TimedDriveCommand(5.0, 1.00));
m_chooser.addObject("Gear Auto (boiler)", new SelectGearBoilerCommand());
m_chooser.addObject("Gear Auto (feeder)", new SelectGearFeederCommand());
m_chooser.addObject("Gear Auto (middle)", new SelectGearMiddleAutoCommand());
SmartDashboard.putData("Auto mode", m_chooser);
Robot.navigator.startMeasuringDistance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void robotInit() {\n }",
"@Override\n public void robotInit() {\n }",
"@Override\n public void robotInit() {\n }",
"public void robotInit() {\n\n }",
"public void robotInit() {\n\n }",
"protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}",
"pu... | [
"0.8392803",
"0.8392803",
"0.8392803",
"0.83547866",
"0.83547866",
"0.82538813",
"0.82371646",
"0.8115441",
"0.810368",
"0.8069614",
"0.8047264",
"0.8046606",
"0.80160177",
"0.797614",
"0.797426",
"0.79708314",
"0.7918923",
"0.78927255",
"0.7879521",
"0.7868995",
"0.78505576"... | 0.73065454 | 90 |
This function is called once each time the robot enters Disabled mode. You can use it to reset any subsystem information you want to clear when the robot is disabled. | @Override
public void disabledInit() {
Robot.driveSubsystem.setCoastMode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void disabledInit() {\n\t\tprocessRobotModeChange(RobotMode.DISABLED);\n }",
"void disableMod();",
"private void disableSensor() {\n if (DEBUG) Log.w(TAG, \"<<< Sensor \" + getEmulatorFriendlyName() + \" is disabled.\");\n mEnabledByEmulator = false;\n ... | [
"0.73160666",
"0.6703275",
"0.6676034",
"0.66627425",
"0.6615973",
"0.6569662",
"0.65616435",
"0.6510648",
"0.64056295",
"0.64017236",
"0.6401332",
"0.6392209",
"0.6385473",
"0.6375316",
"0.6363548",
"0.635353",
"0.63370466",
"0.63349396",
"0.63309455",
"0.63309205",
"0.63207... | 0.6724014 | 1 |
This autonomous (along with the chooser code above) shows how to select between different autonomous modes using the dashboard. The sendable chooser code works with the Java SmartDashboard. If you prefer the LabVIEW Dashboard, remove all of the chooser code and uncomment the getString code to get the auto name from the text box below the Gyro You can add additional auto modes by adding additional commands to the chooser code above (like the commented example) or additional comparisons to the switch structure below with additional strings & commands. | @Override
public void autonomousInit() {
Robot.driveSubsystem.shiftDown();
Robot.driveSubsystem.setBrakeMode();
m_autoCmd = m_chooser.getSelected();
if (m_autoCmd != null) {
m_autoCmd.start();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n SmartDashboard.putData(leftMotor1);\n SmartDashboard.putData(leftMotor2);\n SmartDashboard... | [
"0.69108605",
"0.6875947",
"0.6748199",
"0.662725",
"0.66085553",
"0.65296865",
"0.6484286",
"0.6482721",
"0.6420751",
"0.63882685",
"0.6360747",
"0.63457465",
"0.6341353",
"0.63260144",
"0.63260144",
"0.63260144",
"0.63260144",
"0.6320272",
"0.6299703",
"0.6289783",
"0.62878... | 0.5387082 | 88 |
This function is called periodically during autonomous | @Override
public void autonomousPeriodic() {
SmartDashboard.putNumber("Left Speed", Robot.driveSubsystem.getLeftSpeed());
SmartDashboard.putNumber("Right Speed", Robot.driveSubsystem.getRightSpeed());
Scheduler.getInstance().run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public... | [
"0.8242393",
"0.8238804",
"0.8235853",
"0.8235853",
"0.8235853",
"0.820495",
"0.8199907",
"0.8194021",
"0.8194021",
"0.8177311",
"0.8151588",
"0.8147766",
"0.81250346",
"0.81250346",
"0.80807847",
"0.8016792",
"0.8016792",
"0.79744554",
"0.79655135",
"0.7948241",
"0.7948241",... | 0.72546506 | 67 |
This function is called periodically during operator control | @Override
public void teleopPeriodic() {
Robot.intakeSubsystem._getSpeed();
Robot.driveSubsystem.operatorOverride();
Scheduler.getInstance().run();
TargetRegion boilerTarget = Robot.navigator.getBoilerTarget();
if (boilerTarget != null) {
SmartDashboard.putNumber("Target Center X", boilerTarget.m_centerTop);
SmartDashboard.putNumber("Target Center Y", boilerTarget.m_bounds.m_top);
} else {
SmartDashboard.putNumber("Target Center X", -1);
SmartDashboard.putNumber("Target Center Y", -1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void teleopPeriodic() {\n \t\n \twhile (isOperatorControl() && isEnabled()) {\n \t\tdebug();\n \t\tsmartDashboardVariables();\n \t\t//driver control functions\n \t\tdriverControl();\n \t//state machine\n \tterrainStates();\n \t//this function always comes last\n ... | [
"0.7665666",
"0.73227316",
"0.7286976",
"0.72593725",
"0.7255314",
"0.71488637",
"0.71488637",
"0.71138996",
"0.7093574",
"0.7090445",
"0.70560575",
"0.7046668",
"0.704289",
"0.7039102",
"0.7032054",
"0.7023366",
"0.6963418",
"0.69623876",
"0.69429386",
"0.69309705",
"0.69309... | 0.0 | -1 |
This function is called periodically during test mode | @Override
public void testPeriodic() {
LiveWindow.run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void testPeriodic()\n {\n \n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodi... | [
"0.7800467",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.7513078",
"0.7469104",
"0.7374911",
"0.73407346",
"0.7327271",
"0.73171455",
"0.73171455",
"0.7293993",
"0.7293993",
"0.... | 0.7364876 | 17 |
Created by Sebastian on 20161129. | public interface PageContentAnalyzer {
Stream<PageAddress.Builder> analyze(Document document);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }... | [
"0.5736074",
"0.57279754",
"0.5659515",
"0.56530464",
"0.56440425",
"0.5610975",
"0.558224",
"0.5582022",
"0.55091745",
"0.54830045",
"0.54741514",
"0.54741514",
"0.54258555",
"0.5425766",
"0.54227114",
"0.5417308",
"0.54164875",
"0.54125977",
"0.540399",
"0.54032695",
"0.540... | 0.0 | -1 |
define class required for all java programs | public static void main(String[] args) {
Scanner input = new Scanner(System.in);//declare scanner and have it accenpt user input
System.out.println("Enter in 15 student grades.");//prompt user to enter 15 grades
int[] Grades = new int[15];//create single dimensional array
int grade1 = 0;//start at zero
int grade2 = 0;//start at zero
for(int i = 0; i<15; i++){//begin outer for loop
Boolean isGood = false;//declare boolean
do{
Grades[i] = input.nextInt();//the grade is equal to the integer entered by the user
while(Grades[i]>100){//condition mmust be satisfied or will print error
System.out.println("The Integer you input was over 100!");
Grades[i] = input.nextInt();//Prompt again for user input
}
while(Grades[i]<0){//condition mmust be satisfied or will print error
System.out.println("The Integer you input was under 0!");
Grades[i] = input.nextInt();//Prompt again for user input
}if(i != 0){
while(Grades[i]<= Grades[i-1]){//condition mmust be satisfied or will print error
System.out.println("The Integer you input was not greater than the last!");
Grades[i] = input.nextInt();//Prompt again for user input
}
}else{
isGood = true;
}
}while(Grades[i]>100 || Grades[i]<0 && isGood);//begin while loop for set conditions
}
for(int x = 0; x<15; x++){
System.out.print(Grades[x] + " ");
}
System.out.println("Enter a grade to search for");
grade1 = input.nextInt();//Enter the grade you are searching for
BinarySearch(Grades, grade1);
System.out.println("Scrambled");//notify when the array has been scrambled
if(ScrambleArray(Grades)){
System.out.println("Scrambled");
}
System.out.println("Enter a grade to search for");
grade2 = input.nextInt();//Enter the grade you are searching for
int indexForLinear = LinearSearch(Grades, grade2);
if(indexForLinear == -1){
System.out.println(grade2 + " was not found in " + indexForLinear + " iterations");//print number of iterations it took
}
if(indexForLinear != -1){
System.out.println(grade2 + " was found in " + indexForLinear + " iterations");//print number of iterations it took
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMainClass(IJavaClassFile value);",
"private ClassUtil() {}",
"public IJavaClassFile getMainClass();",
"private void installBasicClasses() {\n \tAbstractSymbol filename \n \t = AbstractTable.stringtable.addString(\"<basic class>\");\n \t\n \t// The following demonstrates how to create dummy ... | [
"0.6375217",
"0.63116723",
"0.61793685",
"0.60946906",
"0.6057288",
"0.5988055",
"0.5961703",
"0.5918327",
"0.5914076",
"0.5904126",
"0.58773816",
"0.58152366",
"0.5772453",
"0.5758163",
"0.572092",
"0.5699114",
"0.5696065",
"0.5683806",
"0.56489456",
"0.5638511",
"0.55907613... | 0.0 | -1 |
Shuffles the songs currently in the queue | public Mono<CommandResponse> shuffleQueue(@NonNull TrackScheduler scheduler) {
scheduler.shuffleQueue();
return CommandResponse.create(EmojiHelper.SHUFFLE + " Queue shuffled " + EmojiHelper.SHUFFLE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void playShuffled();",
"public ArrayList<SongInfo> getShuffledSongs(boolean reshuffle);",
"public void resetShuffleOrder() {\n\t\tshuffleOrder = new ArrayList<Song>();\n\t\tthis.shuffleSongIndex = -1;\n\t}",
"public void shuffle();",
"public void setShuffle() {\n shuffle = true;\n... | [
"0.74969035",
"0.7480095",
"0.73206306",
"0.68506944",
"0.68325055",
"0.6818887",
"0.6795673",
"0.6715006",
"0.6715006",
"0.67055976",
"0.670302",
"0.66914743",
"0.66332084",
"0.6595627",
"0.6591215",
"0.657565",
"0.65723497",
"0.6538471",
"0.6508061",
"0.6506581",
"0.6476237... | 0.0 | -1 |
DO NOT MODIFY THIS METHOD Constructor creates a CacheMemory object. Note the design rules for valid values of each parameter. The simulated computer reads or writes a unit of one WORD_SIZE. | public CacheMemory(MainMemory m, int size, int lineSize, int linesPerSet) {
if (lineSize % WORD_SIZE != 0) {
throw new IllegalArgumentException("lineSize is not a multiple of " + WORD_SIZE);
}
if (size % lineSize != 0) {
throw new IllegalArgumentException("size is not a multiple of lineSize.");
}
// number of lines in the cache
int numLines = size / lineSize;
if (numLines % linesPerSet != 0) {
throw new IllegalArgumentException("number of lines is not a multiple of linesPerSet.");
}
// number of sets in the cache
int numSets = numLines / linesPerSet;
// Set the main memory
mainMemory = m;
// Initialize the counters to zero
requestCount = 0;
warmUpRequests = 0;
hitCount = 0;
hitCost = 0;
// Determine the number of bits required for the byte within a line,
// for the set, and for the tag.
int value;
numByteBits = 0; // initialize to zero
value = 1; // initialize to 2^0
while (value < lineSize) {
numByteBits++;
value *= 2; // increase value by a power of 2
}
numSetBits = 0;
value = 1;
while (value < numSets) {
numSetBits++;
value *= 2;
}
// numTagBits is the remaining memory address bits
numTagBits = 32 - numSetBits - numByteBits;
System.out.println("CacheMemory constructor:");
System.out.println(" numLines = " + numLines);
System.out.println(" numSets = " + numSets);
System.out.println(" numByteBits = " + numByteBits);
System.out.println(" numSetBits = " + numSetBits);
System.out.println(" numTagBits = " + numTagBits);
System.out.println();
// Create the array of CacheSet objects and initialize each CacheSet object
cache = new CacheSet[numSets];
for (int i = 0; i < cache.length; i++) {
cache[i] = new CacheSet(lineSize, linesPerSet, numTagBits);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Memory() {}",
"public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}",
"public Memory(Integer tSize, Integer aTime){\r\n\t\tif(DEBUG_LEVEL >= 1)System.out.println(\"Memory(\" + tSize +\", \" + aTime + \")\");\r\n\t\t\r\n\t\t// Validity Checking... | [
"0.6326376",
"0.6127742",
"0.6096806",
"0.6071775",
"0.60653406",
"0.603729",
"0.59969753",
"0.59891975",
"0.597701",
"0.5927436",
"0.5910357",
"0.5747982",
"0.5744239",
"0.5722713",
"0.5722358",
"0.5711599",
"0.57112736",
"0.5700996",
"0.56828094",
"0.56699413",
"0.56035674"... | 0.68247414 | 0 |
end of constructor DO NOT MODIFY THIS METHOD "Warm Up" the cache by reading random memory addresses. This method is used by programs that do not want to run on a "cold" cache. The cache performance statistics do not include requests from this warm up phase. | public void warmUp(int numReads, Random random) {
int wordsInMainMem = (mainMemory.getSize() / WORD_SIZE);
for (int i = 0; i < numReads; i++) {
// Generate a random line address
int wordAddress = random.nextInt(wordsInMainMem) * WORD_SIZE;
boolean[] address = Binary.uDecToBin(wordAddress, 32);
readWord(address, false);
}
warmUpRequests = requestCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void warmUp();",
"private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, val... | [
"0.65840334",
"0.62793344",
"0.61637527",
"0.61297935",
"0.5932995",
"0.5930296",
"0.59120333",
"0.5909942",
"0.58461046",
"0.58434474",
"0.5830865",
"0.5813764",
"0.5804176",
"0.5772014",
"0.5766145",
"0.57507074",
"0.5749872",
"0.572531",
"0.5712581",
"0.56999284",
"0.56971... | 0.58429426 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.