query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Creates new form JDialogFecharVenda2
public JDialogCloseSaleNew(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "public frmVenda() {\n initComponents();\n }", "private void jMenuItemControlAsistenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemControlAsistenciaActionPerformed\n JDialogControlAsistencia vca = new JDialogControlAsistencia(this, modal, listaDeportes);\n LOG.info(\"Launching JDialogControlAsistencia...\");\n vca.setLocationRelativeTo(this);\n vca.setVisible(true);\n}", "public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }", "public VistaArticulosBajas() {\r\n\t\tsetTitle(\"Baja_Art\\u00EDculos\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 367, 208);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\t// Definir el Diálogo Confirmar Baja Artículo\r\n\t\tdlgConfBaja.setLayout(new FlowLayout());\r\n\t\tdlgConfBaja.add(lblConfBaja);\r\n\t\tdlgConfBaja.add(btnConfBajaSi);\r\n\t\tdlgConfBaja.add(btnConfBajaNo);\r\n\t\tdlgConfBaja.setSize(200, 150);\r\n\t\tdlgConfBaja.setLocationRelativeTo(null);\r\n\t\tdlgConfBaja.addWindowListener(this);\r\n\t\tbtnConfBajaSi.addActionListener(this);\r\n\t\tbtnConfBajaNo.addActionListener(this);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"Escoge un Art\\u00EDculo\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblNewLabel.setBounds(10, 23, 147, 23);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\r\n\t\tchcArticuloBajas = new Choice();\r\n\t\tchcArticuloBajas.setBounds(10, 46, 169, 20);\r\n\t\tcontentPane.add(chcArticuloBajas);\r\n\t\t// Mostrar los artículos en el choice chcArticuloBajas conectando con la BD\r\n\t\tResultSet articulos = null;\r\n\t\tConnection conArticulo = null;\r\n\t\tconArticulo = modelo.conectar();\r\n\t\tarticulos = modelo.consultaArticulos(conArticulo);\r\n\t\ttry {\r\n\t\t\tString id;\r\n\t\t\tString descripcion;\r\n\t\t\twhile(articulos.next()) {\r\n\t\t\t\tid = articulos.getInt(\"idArticulos\")+\"\";\r\n\t\t\t\tdescripcion = articulos.getString(\"descripcionArticulo\");\r\n\t\t\t\tchcArticuloBajas.add(id+\" - \"+descripcion);\r\n\t\t\t}\r\n\t\t\tmodelo.desconectar(conArticulo);\r\n\t\t}catch(SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Botón Volver. Acción --> vuelve al Menú Principal\r\n\t\tJButton btnVolverBajas = new JButton(\"VOLVER\");\r\n\t\tbtnVolverBajas.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVolverBajas.setBounds(252, 46, 89, 23);\r\n\t\tcontentPane.add(btnVolverBajas);\r\n\r\n\t\t// Botón Eliminar. Acción --> abre el Diálogo Confirmar_Baja \r\n\t\tJButton btnEliminarBajas = new JButton(\"ELIMINAR\");\r\n\t\tbtnEliminarBajas.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdlgConfBaja.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnEliminarBajas.setBounds(252, 126, 89, 23);\r\n\t\tcontentPane.add(btnEliminarBajas);\r\n\r\n\t}", "private void jMenuItemIniciarJuegosOlimpicosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemIniciarJuegosOlimpicosActionPerformed\n JDialogVerAsistencia dialogVerAsistencia = new JDialogVerAsistencia(listaDeportes);\n LOG.info(\"Launching JDialogVerAsistencia...\");\n dialogVerAsistencia.setModalityType(ModalityType.APPLICATION_MODAL);\n dialogVerAsistencia.setLocationRelativeTo(this);\n dialogVerAsistencia.setVisible(true);\n}", "public VistaArticulosModif2() {\r\n\t\tsetTitle(\"Modificar_Art\\u00EDculos\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 403, 204);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\t// Definir el Diálogo Confirmar Modificaciones Artículo\r\n\t\tdlgConfModif.setLayout(new FlowLayout());\r\n\t\tdlgConfModif.add(lblConfModif);\r\n\t\tdlgConfModif.add(btnConfModifSi);\r\n\t\tdlgConfModif.add(btnConfModifNo);\r\n\t\tdlgConfModif.setSize(280, 150);\r\n\t\tdlgConfModif.setLocationRelativeTo(null);\r\n\t\tdlgConfModif.addWindowListener(this);\r\n\t\tbtnConfModifSi.addActionListener(this);\r\n\t\tbtnConfModifNo.addActionListener(this);\r\n\r\n\t\tJLabel lblDescripModif2 = new JLabel(\"Descripci\\u00F3n\");\r\n\t\tlblDescripModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblDescripModif2.setBounds(10, 22, 100, 25);\r\n\t\tcontentPane.add(lblDescripModif2);\r\n\r\n\t\tJLabel lblPrecioModif2 = new JLabel(\"Precio\");\r\n\t\tlblPrecioModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrecioModif2.setBounds(10, 54, 100, 19);\r\n\t\tcontentPane.add(lblPrecioModif2);\r\n\r\n\t\tJLabel lblCantModif2 = new JLabel(\"Cantidad\");\r\n\t\tlblCantModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblCantModif2.setBounds(10, 84, 100, 25);\r\n\t\tcontentPane.add(lblCantModif2);\r\n\r\n\t\tsetTxtDescripModif2(new JTextField());\r\n\t\tgetTxtDescripModif2().setColumns(10);\r\n\t\tgetTxtDescripModif2().setBounds(103, 26, 274, 20);\r\n\t\tcontentPane.add(getTxtDescripModif2());\r\n\r\n\t\tsetTxtPrecioModif2(new JTextField());\r\n\t\tgetTxtPrecioModif2().setColumns(10);\r\n\t\tgetTxtPrecioModif2().setBounds(103, 53, 86, 20);\r\n\t\tcontentPane.add(getTxtPrecioModif2());\r\n\r\n\t\tsetTxtCantModif2(new JTextField());\r\n\t\tgetTxtCantModif2().setColumns(10);\r\n\t\tgetTxtCantModif2().setBounds(103, 84, 86, 20);\r\n\t\tcontentPane.add(getTxtCantModif2());\r\n\r\n\t\t// Botón Aceptar. Acción --> abre la ventana Confirmar_Modificaciones\r\n\t\tJButton btnAceptarModif2 = new JButton(\"ACEPTAR\");\r\n\t\tbtnAceptarModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdlgConfModif.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAceptarModif2.setBounds(21, 130, 89, 23);\r\n\t\tcontentPane.add(btnAceptarModif2);\r\n\r\n\t\t// Botón Limpiar. Acción --> limpia los TextField de la ventana VistaArticulosModif2\r\n\t\tJButton btnLimpiarModif2 = new JButton(\"LIMPIAR\");\r\n\t\tbtnLimpiarModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tgetTxtDescripModif2().selectAll();\r\n\t\t\t\tgetTxtDescripModif2().setText(\"\");\r\n\t\t\t\tgetTxtPrecioModif2().selectAll();\r\n\t\t\t\tgetTxtPrecioModif2().setText(\"\");\r\n\t\t\t\tgetTxtCantModif2().selectAll();\r\n\t\t\t\tgetTxtCantModif2().setText(\"\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLimpiarModif2.setBounds(145, 130, 89, 23);\r\n\t\tcontentPane.add(btnLimpiarModif2);\r\n\r\n\t\t// Botón Volver. Acción --> cierra la ventana VistaArticulosModif2\r\n\t\tJButton btnVolverModif2 = new JButton(\"VOLVER\");\r\n\t\tbtnVolverModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVolverModif2.setBounds(275, 130, 89, 23);\r\n\t\tcontentPane.add(btnVolverModif2);\r\n\t\tidArticulosModif1.setVisible(false);\r\n\t\tidArticulosModif1.setEnabled(false);\r\n\t\tidArticulosModif1.setBounds(10, 0, 46, 14);\r\n\t\tcontentPane.add(idArticulosModif1);\r\n\t}", "private void jMenuItemCentroInscripcionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCentroInscripcionesActionPerformed\n LOG.trace(evt.paramString());\n\n JDialogCentroInscripciones vci = new JDialogCentroInscripciones(listaDeportes);\n LOG.info(\"Launching JDialogCentroInscripciones...\");\n vci.setModalityType(modal);\n vci.setLocationRelativeTo(this);\n vci.setVisible(true);\n}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jdi_universo = new javax.swing.JDialog();\n jtf_codigo = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btn_universo = new javax.swing.JButton();\n jSpinner2 = new javax.swing.JSpinner();\n jd_mundo = new javax.swing.JDialog();\n jLabel4 = new javax.swing.JLabel();\n jtf_ntorgua = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n js_pesomundo = new javax.swing.JSpinner();\n btn_gmundo = new javax.swing.JButton();\n jd_criaturas = new javax.swing.JDialog();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jtf_raza = new javax.swing.JTextField();\n jScrollPane4 = new javax.swing.JScrollPane();\n ta_objetos = new javax.swing.JTextArea();\n js_vivos = new javax.swing.JSpinner();\n js_anioscriatura = new javax.swing.JSpinner();\n jtf_region = new javax.swing.JTextField();\n btn_nuevacriatura = new javax.swing.JButton();\n js_energia = new javax.swing.JSpinner();\n js_pesocaricatura = new javax.swing.JSpinner();\n jLabel14 = new javax.swing.JLabel();\n jpm_mundos = new javax.swing.JPopupMenu();\n jm_agregar = new javax.swing.JMenuItem();\n jm_eliminar = new javax.swing.JMenuItem();\n Modificar = new javax.swing.JMenu();\n jmu_nombremundo = new javax.swing.JMenuItem();\n jmu_pesomundo = new javax.swing.JMenuItem();\n jpm_criatura = new javax.swing.JPopupMenu();\n jm_agrgarcriatura = new javax.swing.JMenuItem();\n eliminar = new javax.swing.JMenuItem();\n jMenu1 = new javax.swing.JMenu();\n jm_nombrecriatura = new javax.swing.JMenuItem();\n jm_region = new javax.swing.JMenuItem();\n jToolBar1 = new javax.swing.JToolBar();\n Cuniverso = new javax.swing.JButton();\n btn_mundo = new javax.swing.JButton();\n btn_criatura = new javax.swing.JButton();\n btn_mundotree = new javax.swing.JButton();\n btn_criaturatotree = new javax.swing.JButton();\n btn_pesouniverso = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jt_universo = new javax.swing.JTree();\n jScrollPane2 = new javax.swing.JScrollPane();\n jlist_mundos = new javax.swing.JList<>();\n jScrollPane3 = new javax.swing.JScrollPane();\n jlist_criaturas = new javax.swing.JList<>();\n jLabel15 = new javax.swing.JLabel();\n\n jLabel1.setText(\"Codigo\");\n\n jLabel2.setText(\"Edad\");\n\n jLabel3.setText(\"Crear Universo\");\n\n btn_universo.setText(\"Crear Universo\");\n btn_universo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_universoMouseClicked(evt);\n }\n });\n\n jSpinner2.setModel(new javax.swing.SpinnerNumberModel(50, 0, null, 1));\n\n javax.swing.GroupLayout jdi_universoLayout = new javax.swing.GroupLayout(jdi_universo.getContentPane());\n jdi_universo.getContentPane().setLayout(jdi_universoLayout);\n jdi_universoLayout.setHorizontalGroup(\n jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jdi_universoLayout.createSequentialGroup()\n .addContainerGap(50, Short.MAX_VALUE)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jdi_universoLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtf_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jdi_universoLayout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_universo)\n .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(87, 87, 87)))\n .addGap(70, 70, 70))\n );\n jdi_universoLayout.setVerticalGroup(\n jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jdi_universoLayout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtf_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addComponent(btn_universo)\n .addContainerGap(76, Short.MAX_VALUE))\n );\n\n jLabel4.setText(\"Crear Mundo Disco\");\n\n jLabel5.setText(\"Nombre de Tortuga\");\n\n jLabel6.setText(\"Peso\");\n\n js_pesomundo.setModel(new javax.swing.SpinnerNumberModel(50, 0, null, 1));\n\n btn_gmundo.setText(\"Crear Mundo\");\n btn_gmundo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_gmundoMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jd_mundoLayout = new javax.swing.GroupLayout(jd_mundo.getContentPane());\n jd_mundo.getContentPane().setLayout(jd_mundoLayout);\n jd_mundoLayout.setHorizontalGroup(\n jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(51, 51, 51)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtf_ntorgua, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_pesomundo, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_gmundo, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n jd_mundoLayout.setVerticalGroup(\n jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtf_ntorgua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(25, 25, 25)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(js_pesomundo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(52, 52, 52)\n .addComponent(btn_gmundo)\n .addContainerGap(83, Short.MAX_VALUE))\n );\n\n jLabel7.setText(\"Criatura\");\n\n jLabel8.setText(\"Nombre de Raza\");\n\n jLabel9.setText(\"Numero de Energia\");\n\n jLabel10.setText(\"Numero max de años\");\n\n jLabel11.setText(\"Nombre de la Region\");\n\n jLabel12.setText(\"Cantidad Vivos\");\n\n jLabel13.setText(\"Lista de objetos\");\n\n ta_objetos.setColumns(20);\n ta_objetos.setRows(5);\n jScrollPane4.setViewportView(ta_objetos);\n\n js_vivos.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n js_anioscriatura.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n btn_nuevacriatura.setText(\"Crear Criatura\");\n btn_nuevacriatura.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_nuevacriaturaMouseClicked(evt);\n }\n });\n\n js_energia.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n js_pesocaricatura.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n jLabel14.setText(\"Peso\");\n\n javax.swing.GroupLayout jd_criaturasLayout = new javax.swing.GroupLayout(jd_criaturas.getContentPane());\n jd_criaturas.getContentPane().setLayout(jd_criaturasLayout);\n jd_criaturasLayout.setHorizontalGroup(\n jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jd_criaturasLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(119, 119, 119))\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE)\n .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addComponent(jLabel14)))\n .addGap(18, 18, 18)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtf_raza, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_vivos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_anioscriatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jtf_region, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING))\n .addComponent(btn_nuevacriatura, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_energia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_pesocaricatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(163, Short.MAX_VALUE))\n );\n jd_criaturasLayout.setVerticalGroup(\n jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jtf_raza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel9))\n .addComponent(js_energia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(js_anioscriatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(jtf_region, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(js_vivos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(js_pesocaricatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addComponent(btn_nuevacriatura)\n .addGap(22, 22, 22))\n );\n\n jm_agregar.setText(\"Agregar\");\n jm_agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_agregarActionPerformed(evt);\n }\n });\n jpm_mundos.add(jm_agregar);\n\n jm_eliminar.setText(\"Eliminar\");\n jm_eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_eliminarActionPerformed(evt);\n }\n });\n jpm_mundos.add(jm_eliminar);\n\n Modificar.setText(\"modificar\");\n\n jmu_nombremundo.setText(\"Nombre\");\n jmu_nombremundo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jmu_nombremundoActionPerformed(evt);\n }\n });\n Modificar.add(jmu_nombremundo);\n\n jmu_pesomundo.setText(\"Peso\");\n jmu_pesomundo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jmu_pesomundoActionPerformed(evt);\n }\n });\n Modificar.add(jmu_pesomundo);\n\n jpm_mundos.add(Modificar);\n\n jm_agrgarcriatura.setText(\"Agregar\");\n jm_agrgarcriatura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_agrgarcriaturaActionPerformed(evt);\n }\n });\n jpm_criatura.add(jm_agrgarcriatura);\n\n eliminar.setText(\"Eliminar\");\n eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n eliminarActionPerformed(evt);\n }\n });\n jpm_criatura.add(eliminar);\n\n jMenu1.setText(\"Modificar\");\n\n jm_nombrecriatura.setText(\"Raza\");\n jm_nombrecriatura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_nombrecriaturaActionPerformed(evt);\n }\n });\n jMenu1.add(jm_nombrecriatura);\n\n jm_region.setText(\"Region\");\n jm_region.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_regionActionPerformed(evt);\n }\n });\n jMenu1.add(jm_region);\n\n jpm_criatura.add(jMenu1);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jToolBar1.setRollover(true);\n\n Cuniverso.setText(\"Crear Universo\");\n Cuniverso.setFocusable(false);\n Cuniverso.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Cuniverso.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n Cuniverso.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n CuniversoMouseClicked(evt);\n }\n });\n jToolBar1.add(Cuniverso);\n\n btn_mundo.setText(\"Crear Mundo\");\n btn_mundo.setEnabled(false);\n btn_mundo.setFocusable(false);\n btn_mundo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_mundo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_mundo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_mundoMouseClicked(evt);\n }\n });\n btn_mundo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_mundoActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_mundo);\n\n btn_criatura.setText(\"Añadir Criatura Lista\");\n btn_criatura.setEnabled(false);\n btn_criatura.setFocusable(false);\n btn_criatura.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_criatura.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_criatura.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_criaturaMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_criatura);\n\n btn_mundotree.setText(\"Añadir Mundo a Universo\");\n btn_mundotree.setEnabled(false);\n btn_mundotree.setFocusable(false);\n btn_mundotree.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_mundotree.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_mundotree.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_mundotreeMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_mundotree);\n\n btn_criaturatotree.setText(\"Agregar Criatura al arbol\");\n btn_criaturatotree.setEnabled(false);\n btn_criaturatotree.setFocusable(false);\n btn_criaturatotree.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_criaturatotree.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_criaturatotree.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_criaturatotreeMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_criaturatotree);\n\n btn_pesouniverso.setText(\"Informacion del Universo\");\n btn_pesouniverso.setEnabled(false);\n btn_pesouniverso.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_pesouniversoMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_pesouniverso);\n\n javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode(\"Universo\");\n jt_universo.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));\n jScrollPane1.setViewportView(jt_universo);\n\n jlist_mundos.setModel(new DefaultListModel());\n jlist_mundos.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jlist_mundosMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jlist_mundos);\n\n jlist_criaturas.setModel(new DefaultListModel());\n jlist_criaturas.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jlist_criaturasMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(jlist_criaturas);\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 0, 48)); // NOI18N\n jLabel15.setText(\"Lab 5 :)\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(131, 131, 131))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(jLabel15)\n .addGap(57, 57, 57)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE)\n .addComponent(jScrollPane2)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(90, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Precio = new javax.swing.JDialog();\n jLabel2 = new javax.swing.JLabel();\n ComboPrecio1 = new javax.swing.JComboBox<>();\n ComboPrecio = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n Camino = new javax.swing.JDialog();\n jLabel8 = new javax.swing.JLabel();\n ComboPrecio2 = new javax.swing.JComboBox<>();\n ComboPrecio3 = new javax.swing.JComboBox<>();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jButton6 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n JB_lectura = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n\n Precio.setBackground(new java.awt.Color(126, 155, 232));\n\n jLabel2.setFont(new java.awt.Font(\"Ubuntu\", 0, 36)); // NOI18N\n jLabel2.setText(\"Elija la ciudades \");\n\n jLabel3.setText(\"From:\");\n\n jLabel4.setText(\"To:\");\n\n jButton1.setText(\"Buscar \");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout PrecioLayout = new javax.swing.GroupLayout(Precio.getContentPane());\n Precio.getContentPane().setLayout(PrecioLayout);\n PrecioLayout.setHorizontalGroup(\n PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PrecioLayout.createSequentialGroup()\n .addGap(162, 162, 162)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PrecioLayout.createSequentialGroup()\n .addContainerGap(106, Short.MAX_VALUE)\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PrecioLayout.createSequentialGroup()\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(PrecioLayout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ComboPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PrecioLayout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(56, 56, 56)\n .addComponent(ComboPrecio1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(37, 37, 37)))\n .addGap(91, 91, 91))\n );\n PrecioLayout.setVerticalGroup(\n PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PrecioLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ComboPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(33, 33, 33)\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ComboPrecio1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 57, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(56, 56, 56))\n );\n\n Camino.setBackground(new java.awt.Color(126, 155, 232));\n\n jLabel8.setFont(new java.awt.Font(\"Ubuntu\", 0, 36)); // NOI18N\n jLabel8.setText(\"Elija la ciudades \");\n\n ComboPrecio3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboPrecio3ActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"From:\");\n\n jLabel10.setText(\"To:\");\n\n jButton6.setText(\"Buscar \");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout CaminoLayout = new javax.swing.GroupLayout(Camino.getContentPane());\n Camino.getContentPane().setLayout(CaminoLayout);\n CaminoLayout.setHorizontalGroup(\n CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(CaminoLayout.createSequentialGroup()\n .addContainerGap(106, Short.MAX_VALUE)\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CaminoLayout.createSequentialGroup()\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CaminoLayout.createSequentialGroup()\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(CaminoLayout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ComboPrecio3, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(CaminoLayout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(56, 56, 56)\n .addComponent(ComboPrecio2, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(37, 37, 37)))\n .addGap(91, 91, 91))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CaminoLayout.createSequentialGroup()\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(171, 171, 171))))\n );\n CaminoLayout.setVerticalGroup(\n CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(CaminoLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ComboPrecio3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(33, 33, 33)\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ComboPrecio2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)\n .addComponent(jButton6)\n .addGap(56, 56, 56))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setForeground(java.awt.Color.cyan);\n\n jLabel1.setText(\"Sistema de Gestion de Viajes\");\n\n JB_lectura.setText(\"Leer Archivo\");\n JB_lectura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JB_lecturaActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Ver Mapa Completo\");\n jButton2.setEnabled(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Buscar Camino mas Corto\");\n jButton3.setEnabled(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"Buscar Precio mas Barato\");\n jButton4.setEnabled(false);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(111, 111, 111)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jButton4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGap(61, 61, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(JB_lectura)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(31, 31, 31))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JB_lectura)\n .addComponent(jButton2))\n .addGap(36, 36, 36)\n .addComponent(jButton3)\n .addGap(27, 27, 27)\n .addComponent(jButton4)\n .addContainerGap(118, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Dialog_institucion = new javax.swing.JDialog();\n jPanel10 = new javax.swing.JPanel();\n jPanel11 = new javax.swing.JPanel();\n txt_busqueda_producto = new javax.swing.JTextField();\n cbx_iten = new javax.swing.JComboBox<>();\n jPanel12 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n tabla_insittucion = new javax.swing.JTable();\n jButton2 = new javax.swing.JButton();\n Dialog_venta = new javax.swing.JDialog();\n jPanel21 = new javax.swing.JPanel();\n jPanel22 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n tabla_compra = new javax.swing.JTable();\n jPanel23 = new javax.swing.JPanel();\n txt_busqueda_compra = new javax.swing.JTextField();\n Dialog_carro = new javax.swing.JDialog();\n jPanel18 = new javax.swing.JPanel();\n jPanel20 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tabla_carro = new javax.swing.JTable();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n Dialog_conductor = new javax.swing.JDialog();\n jPanel19 = new javax.swing.JPanel();\n jPanel24 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n tabla_conductor = new javax.swing.JTable();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel29 = new javax.swing.JPanel();\n cbx_entrega = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n txt_busqueda_plan_ruta = new javax.swing.JTextField();\n btn_buscar_cod_compra = new javax.swing.JButton();\n btn_buscar_cod_compra2 = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jPanel9 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabla_plan_ruta = new javax.swing.JTable();\n jPanel5 = new javax.swing.JPanel();\n txt_busqueda = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n cbx_item_ruta = new javax.swing.JComboBox<>();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jPanel14 = new javax.swing.JPanel();\n btn_nuevo = new javax.swing.JButton();\n btn_registrar = new javax.swing.JButton();\n btn_eliminar = new javax.swing.JButton();\n btn_cancelar = new javax.swing.JButton();\n jInternalFrame1 = new javax.swing.JInternalFrame();\n jPanel3 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n jPanel30 = new javax.swing.JPanel();\n cbx_entrega1 = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n txt_busqueda_anexo1 = new javax.swing.JTextField();\n btn_buscar_cod_compra1 = new javax.swing.JButton();\n jPanel8 = new javax.swing.JPanel();\n jPanel13 = new javax.swing.JPanel();\n jPanel15 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tabla_anexo1 = new javax.swing.JTable();\n btn_agregar_fila1 = new javax.swing.JButton();\n jPanel16 = new javax.swing.JPanel();\n txt_busqueda1 = new javax.swing.JTextField();\n jPanel17 = new javax.swing.JPanel();\n btn_nuevo1 = new javax.swing.JButton();\n btn_registrar1 = new javax.swing.JButton();\n btn_eliminar1 = new javax.swing.JButton();\n btn_cancelar1 = new javax.swing.JButton();\n\n Dialog_institucion.setTitle(\"INSTITUCION\");\n Dialog_institucion.setAutoRequestFocus(false);\n Dialog_institucion.setMinimumSize(new java.awt.Dimension(1191, 340));\n Dialog_institucion.setResizable(false);\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel11.setBackground(new java.awt.Color(255, 255, 255));\n\n txt_busqueda_producto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda_productoKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_productoKeyReleased(evt);\n }\n });\n\n cbx_iten.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbx_itenItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addComponent(cbx_iten, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txt_busqueda_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 856, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txt_busqueda_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbx_iten, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n jPanel12.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_insittucion.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tabla_insittucion.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_insittucionMouseClicked(evt);\n }\n });\n tabla_insittucion.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_insittucionKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(tabla_insittucion);\n\n jButton2.setText(\"ENVIAR\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1151, Short.MAX_VALUE)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, 0))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout Dialog_institucionLayout = new javax.swing.GroupLayout(Dialog_institucion.getContentPane());\n Dialog_institucion.getContentPane().setLayout(Dialog_institucionLayout);\n Dialog_institucionLayout.setHorizontalGroup(\n Dialog_institucionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_institucionLayout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_institucionLayout.setVerticalGroup(\n Dialog_institucionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_institucionLayout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n Dialog_venta.setTitle(\"VENTA\");\n Dialog_venta.setMinimumSize(new java.awt.Dimension(669, 386));\n Dialog_venta.setModal(true);\n Dialog_venta.setResizable(false);\n\n jPanel21.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_compra.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tabla_compra.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_compraMouseClicked(evt);\n }\n });\n tabla_compra.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_compraKeyPressed(evt);\n }\n });\n jScrollPane4.setViewportView(tabla_compra);\n\n javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);\n jPanel22.setLayout(jPanel22Layout);\n jPanel22Layout.setHorizontalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel22Layout.createSequentialGroup()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 669, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n jPanel22Layout.setVerticalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel22Layout.createSequentialGroup()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n txt_busqueda_compra.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_compraKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\n jPanel23.setLayout(jPanel23Layout);\n jPanel23Layout.setHorizontalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txt_busqueda_compra)\n );\n jPanel23Layout.setVerticalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel23Layout.createSequentialGroup()\n .addComponent(txt_busqueda_compra, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\n jPanel21.setLayout(jPanel21Layout);\n jPanel21Layout.setHorizontalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, 0))\n );\n jPanel21Layout.setVerticalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout Dialog_ventaLayout = new javax.swing.GroupLayout(Dialog_venta.getContentPane());\n Dialog_venta.getContentPane().setLayout(Dialog_ventaLayout);\n Dialog_ventaLayout.setHorizontalGroup(\n Dialog_ventaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_ventaLayout.createSequentialGroup()\n .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_ventaLayout.setVerticalGroup(\n Dialog_ventaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_ventaLayout.createSequentialGroup()\n .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n Dialog_carro.setTitle(\"INSTITUCION\");\n Dialog_carro.setAutoRequestFocus(false);\n Dialog_carro.setMinimumSize(new java.awt.Dimension(436, 204));\n Dialog_carro.setResizable(false);\n\n jPanel18.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel20.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_carro.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tabla_carro.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_carroMouseClicked(evt);\n }\n });\n tabla_carro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_carroKeyPressed(evt);\n }\n });\n jScrollPane5.setViewportView(tabla_carro);\n\n jTextField1.setText(\"0\");\n\n jTextField2.setText(\"0\");\n\n javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);\n jPanel20.setLayout(jPanel20Layout);\n jPanel20Layout.setHorizontalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 436, Short.MAX_VALUE)\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel20Layout.setVerticalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n );\n\n javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);\n jPanel18.setLayout(jPanel18Layout);\n jPanel18Layout.setHorizontalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel18Layout.setVerticalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel18Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout Dialog_carroLayout = new javax.swing.GroupLayout(Dialog_carro.getContentPane());\n Dialog_carro.getContentPane().setLayout(Dialog_carroLayout);\n Dialog_carroLayout.setHorizontalGroup(\n Dialog_carroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_carroLayout.createSequentialGroup()\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_carroLayout.setVerticalGroup(\n Dialog_carroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_carroLayout.createSequentialGroup()\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n Dialog_conductor.setTitle(\"INSTITUCION\");\n Dialog_conductor.setAutoRequestFocus(false);\n Dialog_conductor.setMinimumSize(new java.awt.Dimension(436, 204));\n Dialog_conductor.setResizable(false);\n\n jPanel19.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel24.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_conductor.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tabla_conductor.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_conductorMouseClicked(evt);\n }\n });\n tabla_conductor.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_conductorKeyPressed(evt);\n }\n });\n jScrollPane6.setViewportView(tabla_conductor);\n\n jTextField3.setText(\"0\");\n\n jTextField4.setText(\"0\");\n\n javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);\n jPanel24.setLayout(jPanel24Layout);\n jPanel24Layout.setHorizontalGroup(\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 436, Short.MAX_VALUE)\n .addGroup(jPanel24Layout.createSequentialGroup()\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel24Layout.setVerticalGroup(\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel24Layout.createSequentialGroup()\n .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\n jPanel19.setLayout(jPanel19Layout);\n jPanel19Layout.setHorizontalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel19Layout.setVerticalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout Dialog_conductorLayout = new javax.swing.GroupLayout(Dialog_conductor.getContentPane());\n Dialog_conductor.getContentPane().setLayout(Dialog_conductorLayout);\n Dialog_conductorLayout.setHorizontalGroup(\n Dialog_conductorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_conductorLayout.createSequentialGroup()\n .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_conductorLayout.setVerticalGroup(\n Dialog_conductorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_conductorLayout.createSequentialGroup()\n .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"PLAN DE RUTA\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel29.setBackground(new java.awt.Color(255, 255, 255));\n jPanel29.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Anexo\"));\n\n cbx_entrega.setAlignmentX(39.0F);\n cbx_entrega.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cbx_entregaKeyPressed(evt);\n }\n });\n\n jLabel1.setText(\"Codigo de anexo 9\");\n\n txt_busqueda_plan_ruta.setAlignmentX(39.0F);\n txt_busqueda_plan_ruta.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_busqueda_plan_rutaActionPerformed(evt);\n }\n });\n txt_busqueda_plan_ruta.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda_plan_rutaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_plan_rutaKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_busqueda_plan_rutaKeyTyped(evt);\n }\n });\n\n btn_buscar_cod_compra.setText(\"BUSCAR\");\n btn_buscar_cod_compra.setAlignmentX(39.0F);\n btn_buscar_cod_compra.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_buscar_cod_compraActionPerformed(evt);\n }\n });\n\n btn_buscar_cod_compra2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icon/icon_pdf.png\"))); // NOI18N\n btn_buscar_cod_compra2.setText(\"PDF\");\n btn_buscar_cod_compra2.setAlignmentX(39.0F);\n btn_buscar_cod_compra2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_buscar_cod_compra2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);\n jPanel29.setLayout(jPanel29Layout);\n jPanel29Layout.setHorizontalGroup(\n jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel29Layout.createSequentialGroup()\n .addContainerGap(277, Short.MAX_VALUE)\n .addComponent(cbx_entrega, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel29Layout.createSequentialGroup()\n .addComponent(txt_busqueda_plan_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btn_buscar_cod_compra, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_buscar_cod_compra2, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(277, Short.MAX_VALUE))\n );\n jPanel29Layout.setVerticalGroup(\n jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel29Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx_entrega, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_busqueda_plan_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_buscar_cod_compra, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_buscar_cod_compra2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Tabla productos\"));\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_plan_ruta.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n tabla_plan_ruta.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_plan_rutaMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tabla_plan_ruta);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1226, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n jPanel5.setForeground(new java.awt.Color(255, 255, 255));\n\n txt_busqueda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busquedaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busquedaKeyReleased(evt);\n }\n });\n\n jButton1.setText(\"INSTITUCION\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"GENERAR X ITEM\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"EXPORT\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"IMPORT\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txt_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 442, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbx_item_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx_item_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(3, 3, 3))\n );\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 407, Short.MAX_VALUE))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addGap(49, 49, 49)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n jPanel14.setBackground(new java.awt.Color(255, 255, 255));\n jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n btn_nuevo.setText(\"NUEVO\");\n btn_nuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_nuevoActionPerformed(evt);\n }\n });\n\n btn_registrar.setText(\"REGISTRAR\");\n btn_registrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_registrarActionPerformed(evt);\n }\n });\n\n btn_eliminar.setText(\"ELIMINAR\");\n btn_eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_eliminarActionPerformed(evt);\n }\n });\n\n btn_cancelar.setText(\"CANCELAR\");\n btn_cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_cancelarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()\n .addComponent(btn_registrar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_eliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addComponent(btn_cancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_nuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_registrar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_nuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_cancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btn_eliminar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n jInternalFrame1.setClosable(true);\n jInternalFrame1.setIconifiable(true);\n jInternalFrame1.setMaximizable(true);\n jInternalFrame1.setResizable(true);\n jInternalFrame1.setTitle(\"SALIDA PRODUCTOS\");\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel30.setBackground(new java.awt.Color(255, 255, 255));\n jPanel30.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Anexo\"));\n\n cbx_entrega1.setAlignmentX(39.0F);\n cbx_entrega1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cbx_entrega1KeyPressed(evt);\n }\n });\n\n jLabel2.setText(\"Codigo de anexo 9\");\n\n txt_busqueda_anexo1.setAlignmentX(39.0F);\n txt_busqueda_anexo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_busqueda_anexo1ActionPerformed(evt);\n }\n });\n txt_busqueda_anexo1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda_anexo1KeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_anexo1KeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_busqueda_anexo1KeyTyped(evt);\n }\n });\n\n btn_buscar_cod_compra1.setText(\"BUSCAR\");\n btn_buscar_cod_compra1.setAlignmentX(39.0F);\n btn_buscar_cod_compra1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_buscar_cod_compra1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel30Layout = new javax.swing.GroupLayout(jPanel30);\n jPanel30.setLayout(jPanel30Layout);\n jPanel30Layout.setHorizontalGroup(\n jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel30Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbx_entrega1, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel30Layout.createSequentialGroup()\n .addComponent(txt_busqueda_anexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btn_buscar_cod_compra1, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel30Layout.setVerticalGroup(\n jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel30Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx_entrega1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_busqueda_anexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_buscar_cod_compra1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addComponent(jPanel30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel13.setBackground(new java.awt.Color(255, 255, 255));\n jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Tabla productos\"));\n\n jPanel15.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_anexo1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n tabla_anexo1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_anexo1MouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(tabla_anexo1);\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1176, Short.MAX_VALUE)\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE))\n );\n\n btn_agregar_fila1.setText(\"+\");\n btn_agregar_fila1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_agregar_fila1ActionPerformed(evt);\n }\n });\n\n jPanel16.setBackground(new java.awt.Color(255, 255, 255));\n jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n jPanel16.setForeground(new java.awt.Color(255, 255, 255));\n\n txt_busqueda1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda1KeyPressed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txt_busqueda1, javax.swing.GroupLayout.PREFERRED_SIZE, 442, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(txt_busqueda1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btn_agregar_fila1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(60, 60, 60)))\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btn_agregar_fila1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addGap(49, 49, 49)\n .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n jPanel17.setBackground(new java.awt.Color(255, 255, 255));\n jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n btn_nuevo1.setText(\"NUEVO\");\n btn_nuevo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_nuevo1ActionPerformed(evt);\n }\n });\n\n btn_registrar1.setText(\"REGISTRAR\");\n btn_registrar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_registrar1ActionPerformed(evt);\n }\n });\n\n btn_eliminar1.setText(\"ELIMINAR\");\n btn_eliminar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_eliminar1ActionPerformed(evt);\n }\n });\n\n btn_cancelar1.setText(\"CANCELAR\");\n btn_cancelar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_cancelar1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\n jPanel17.setLayout(jPanel17Layout);\n jPanel17Layout.setHorizontalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()\n .addComponent(btn_registrar1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_eliminar1, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addComponent(btn_cancelar1, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_nuevo1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel17Layout.setVerticalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel17Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_registrar1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_nuevo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_cancelar1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btn_eliminar1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\n jInternalFrame1Layout.setHorizontalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jInternalFrame1Layout.setVerticalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jInternalFrame1Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n dialogComissaoMensal = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n comboFuncionario = new javax.swing.JComboBox<>();\n jLabel7 = new javax.swing.JLabel();\n btnImprimir = new javax.swing.JButton();\n comboMes = new javax.swing.JComboBox<>();\n comboAno = new javax.swing.JComboBox<>();\n jPanel1 = new javax.swing.JPanel();\n jButton2 = new javax.swing.JButton();\n\n dialogComissaoMensal.setTitle(\"Relatório de Comissão Mensal\");\n dialogComissaoMensal.setBackground(new java.awt.Color(255, 204, 255));\n dialogComissaoMensal.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);\n\n jPanel2.setBackground(new java.awt.Color(255, 204, 255));\n\n jLabel6.setBackground(new java.awt.Color(231, 32, 83));\n jLabel6.setFont(new java.awt.Font(\"Microsoft JhengHei UI\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\" Funcionário\");\n jLabel6.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n jLabel6.setOpaque(true);\n\n jLabel7.setBackground(new java.awt.Color(231, 32, 83));\n jLabel7.setFont(new java.awt.Font(\"Microsoft JhengHei UI\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\" Mês/Ano\");\n jLabel7.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n jLabel7.setOpaque(true);\n\n btnImprimir.setFont(new java.awt.Font(\"Microsoft JhengHei UI\", 0, 18)); // NOI18N\n btnImprimir.setText(\"Gerar\");\n btnImprimir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnImprimirActionPerformed(evt);\n }\n });\n\n comboMes.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"SELECIONE\", \"JANEIRO\", \"FEVEREIRO\", \"MARÇO\", \"ABRIL\", \"MAIO\", \"JUNHO\", \"JULHO\", \"AGOSTO\", \"SETEMBRO\", \"OUTUBRO\", \"NOVEMBRO\", \"DEZEMBRO\" }));\n\n comboAno.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"SELECIONE\", \"2018\", \"2019\", \"2020\" }));\n comboAno.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboAnoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(comboFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(comboAno, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(comboFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboAno, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)\n .addComponent(btnImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(52, 52, 52))\n );\n\n javax.swing.GroupLayout dialogComissaoMensalLayout = new javax.swing.GroupLayout(dialogComissaoMensal.getContentPane());\n dialogComissaoMensal.getContentPane().setLayout(dialogComissaoMensalLayout);\n dialogComissaoMensalLayout.setHorizontalGroup(\n dialogComissaoMensalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n dialogComissaoMensalLayout.setVerticalGroup(\n dialogComissaoMensalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Relatórios\");\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 204, 255));\n\n jButton2.setBackground(new java.awt.Color(231, 32, 83));\n jButton2.setFont(new java.awt.Font(\"Calibri\", 1, 20)); // NOI18N\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setText(\"<html><center>Relatório de<br>Comissão Mensal</center></html>\");\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(563, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(333, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setSize(new java.awt.Dimension(750, 555));\n setLocationRelativeTo(null);\n }", "protected abstract JDialog createDialog();", "public FiltroGirosDialog() {\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n Calculeaza = new javax.swing.JButton();\n Exit = new javax.swing.JButton();\n CAS25 = new javax.swing.JLabel();\n CAS10 = new javax.swing.JLabel();\n Deducere = new javax.swing.JLabel();\n venitImpozabil = new javax.swing.JLabel();\n cam2_5 = new javax.swing.JLabel();\n impozitVenit = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n salariuNet = new javax.swing.JLabel();\n sumeColectate = new javax.swing.JLabel();\n SalariuBrutLei = new javax.swing.JTextField();\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n\n jLabel1.setBackground(new java.awt.Color(255, 204, 51));\n jLabel1.setFont(new java.awt.Font(\"Viner Hand ITC\", 3, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(153, 0, 153));\n jLabel1.setText(\" Calculator Salariu Net 2018\");\n jLabel1.setName(\"\"); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 204, 153));\n jLabel2.setText(\"Salariu brut in lei\");\n\n jLabel3.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel3.setText(\"CAS - 25%\");\n\n jLabel4.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel4.setText(\"Deducere personala\");\n\n jLabel5.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel5.setText(\"CASS - 10%\");\n\n jLabel7.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel7.setText(\"Venit Impozabil\");\n\n jLabel9.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel9.setText(\"Contributia asiguratorie pentru munca - 2.25%\\t\");\n\n jLabel11.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel11.setText(\"Impozit pe venit - 10%\");\n\n jLabel13.setFont(new java.awt.Font(\"Tempus Sans ITC\", 1, 18)); // NOI18N\n jLabel13.setText(\"Giustonel Edition Copyright 2018\");\n\n Calculeaza.setText(\"Calculeaza\");\n Calculeaza.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CalculeazaActionPerformed(evt);\n }\n });\n\n Exit.setText(\"Exit\");\n Exit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ExitActionPerformed(evt);\n }\n });\n\n CAS25.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n CAS10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n Deducere.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n venitImpozabil.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n cam2_5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n impozitVenit.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n jLabel17.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel17.setText(\"Salariu Net\");\n\n jLabel18.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel18.setText(\"Sume colectate de stat\");\n\n salariuNet.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n sumeColectate.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n SalariuBrutLei.addInputMethodListener(new java.awt.event.InputMethodListener() {\n public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {\n }\n public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {\n SalariuBrutLeiInputMethodTextChanged(evt);\n }\n });\n SalariuBrutLei.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SalariuBrutLeiActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Deducere, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cam2_5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)\n .addComponent(impozitVenit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)\n .addComponent(venitImpozabil, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(CAS10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(112, 112, 112)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel7)\n .addComponent(jLabel11)\n .addComponent(jLabel9)\n .addComponent(jLabel2)\n .addComponent(jLabel17)\n .addComponent(jLabel18))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(CAS25, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)\n .addComponent(salariuNet, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sumeColectate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(SalariuBrutLei)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(139, 139, 139)\n .addComponent(jLabel13))\n .addGroup(layout.createSequentialGroup()\n .addComponent(Calculeaza)\n .addGap(61, 61, 61)\n .addComponent(Exit, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(200, 200, 200)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(128, 128, 128))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(SalariuBrutLei, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(CAS25, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel5))\n .addComponent(CAS10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Deducere, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(venitImpozabil, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel11))\n .addComponent(impozitVenit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cam2_5, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel17)\n .addComponent(salariuNet, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(sumeColectate, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Calculeaza)\n .addComponent(Exit))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "public void inicializar() {\r\n\t\ttry {\r\n\t\t\tsetDefaultLookAndFeelDecorated(true);\r\n\t\t\tcom.jtattoo.plaf.hifi.HiFiLookAndFeel.setTheme(\"Large-Font\", \"INSERT YOUR LICENSE KEY HERE\",\r\n\t\t\t\t\t\"Gallery of Fantastic Puzzles\");\r\n\t\t\tUIManager.setLookAndFeel(\"com.jtattoo.plaf.hifi.HiFiLookAndFeel\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Configuración del JDialog\r\n\t\tsetBounds(100, 100, 450, 300);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\t\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setLayout(new FlowLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\t\r\n\t\t//Componentes del JDialog\r\n\t\t{\r\n\t\t\t//TEXTO DE BIENVENIDA\r\n\t\t\tdtrpnBienve = new JEditorPane();\r\n\t\t\tdtrpnBienve.setOpaque(false);\r\n\t\t\tdtrpnBienve.setEditable(false);\r\n\t\t\tdtrpnBienve.setPreferredSize(new Dimension(400, 130));\r\n\t\t\tdtrpnBienve.setFont(new Font(\"Segoe UI\", Font.BOLD, 15));\r\n\t\t\tdtrpnBienve.setText(\r\n\t\t\t\t\t\"Bienvenido/a a GFPuzzles, la aplicación desarrollada por \\r\\nAlige Development para la Gestión de su Galería de Arte\\r\\n\\r\\nPara más información, consulte los siguientes \\r\\napartados del menú Ayuda.\");\r\n\t\t\tcontentPanel.add(dtrpnBienve);\r\n\t\t}\r\n\t\t{\r\n\t\t\t//ICONO CORPORATIVO\r\n\t\t\tlblNewLabel = new JLabel(\"\");\r\n\t\t\tlblNewLabel.setVerticalAlignment(SwingConstants.BOTTOM);\r\n\t\t\tlblNewLabel.setIcon(new ImageIcon(DialogBienve.class.getResource(\"/images/19-70x70.png\")));\r\n\t\t\tcontentPanel.add(lblNewLabel);\r\n\t\t}\r\n\t\t{\r\n\t\t\t//PANEL DESTINADO PARA LOS BOTONES\r\n\t\t\tbuttonPane = new JPanel();\r\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\r\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\r\n\t\t\t{\r\n\t\t\t\t//BOTON OK\r\n\t\t\t\tbtnOkBienve = new JButton(\"OK\");\r\n\t\t\t\tbtnOkBienve.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t\tDialogBienve.this.dispose();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tbtnOkBienve.setActionCommand(\"OK\");\r\n\t\t\t\tbuttonPane.add(btnOkBienve);\r\n\t\t\t\tgetRootPane().setDefaultButton(btnOkBienve);\r\n\t\t\t}\r\n\t\t\t{\r\n\t\t\t\t//etiqueta utilizada para separar el icono del cuadro de texto\r\n\t\t\t\tlblNewLabel_1 = new JLabel(\"\");\r\n\t\t\t\tlblNewLabel_1.setPreferredSize(new Dimension(30, 14));\r\n\t\t\t\tlblNewLabel_1.setMinimumSize(new Dimension(246, 14));\r\n\t\t\t\tlblNewLabel_1.setMaximumSize(new Dimension(246, 14));\r\n\t\t\t\tbuttonPane.add(lblNewLabel_1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ventanaReset = new javax.swing.JDialog();\n botonReiniciar = new javax.swing.JButton();\n labelGanador = new javax.swing.JLabel();\n labelPerdedor = new javax.swing.JLabel();\n\n ventanaReset.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n botonReiniciar.setText(\"Reiniciar\");\n botonReiniciar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n botonReiniciarMousePressed(evt);\n }\n });\n ventanaReset.getContentPane().add(botonReiniciar, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 120, -1, -1));\n\n labelGanador.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n labelGanador.setText(\"HAS GANADO, FELICIDADES\");\n labelGanador.setPreferredSize(new java.awt.Dimension(400, 20));\n ventanaReset.getContentPane().add(labelGanador, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1));\n\n labelPerdedor.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n labelPerdedor.setText(\"HAS PERDIDO POR IMBECIL\");\n labelPerdedor.setPreferredSize(new java.awt.Dimension(400, 20));\n labelPerdedor.setRequestFocusEnabled(false);\n ventanaReset.getContentPane().add(labelPerdedor, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 780, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 364, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EdicaoLista(JFrame parent) {\n initComponents();\n \n dialog = new JDialog(parent, true);\n\n dialog.add(this);\n dialog.pack();\n\n dialog.setLocationRelativeTo(parent);\n dialog.setModal(true);\n }", "public frmVerzamelingBeheer() {\n try {\n initComponents();\n \n lblId.setVisible(false);\n\n pnlEdit.setVisible(false);\n\n for (VerzamelingsType type : TypeService.GetAllTypes()) {\n cmbType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n cmbEditType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n }\n\n \n for (Categorie categorie : CategorieService.GetAllCategories()) {\n cmbCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n cmbEditCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n }\n \n //vertaling voor JOptionpane\n UIManager.put(\"OptionPane.cancelButtonText\", \"Annuleren\");\n UIManager.put(\"OptionPane.noButtonText\", \"Nee\");\n UIManager.put(\"OptionPane.okButtonText\", \"Oke\");\n UIManager.put(\"OptionPane.yesButtonText\", \"Ja\");\n \n this.setTitle(\"Verzamelingen beheren - Verzamelingenbeheer\");\n \n ShowEditItems(false);\n RefreshList();\n }\n catch (ExceptionInInitializerError ex)\n {\n JOptionPane.showMessageDialog(null, \"Er kan geen verbinding worden gemaakt met de database (\" + ex.getMessage() + \").\", \"Fout\", ERROR_MESSAGE);\n System.exit(1);\n }\n\n }", "public JFrmCadDeclaAcompanhante1() {\n initComponents();\n int diaSelecionado;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ModPla = new javax.swing.JDialog();\n jLabel20 = new javax.swing.JLabel();\n tf_nombrep1 = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n js_temp1 = new javax.swing.JSpinner();\n jLabel22 = new javax.swing.JLabel();\n jcbox_anillos1 = new javax.swing.JCheckBox();\n jLabel23 = new javax.swing.JLabel();\n tf_superficie1 = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n js_dist1 = new javax.swing.JSpinner();\n bt_crearpla1 = new javax.swing.JButton();\n ModAst = new javax.swing.JDialog();\n jLabel25 = new javax.swing.JLabel();\n tf_nombrea1 = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n tf_nacio1 = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n js_sueldo1 = new javax.swing.JSpinner();\n jLabel28 = new javax.swing.JLabel();\n tf_exp1 = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n tf_sexo1 = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n js_peso1 = new javax.swing.JSpinner();\n bt_creara1 = new javax.swing.JButton();\n ppm_menu = new javax.swing.JPopupMenu();\n mod = new javax.swing.JMenuItem();\n elim = new javax.swing.JMenuItem();\n ppm_astro = new javax.swing.JPopupMenu();\n mod1 = new javax.swing.JMenuItem();\n elim1 = new javax.swing.JMenuItem();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n tf_nombrep = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n js_temp = new javax.swing.JSpinner();\n jLabel3 = new javax.swing.JLabel();\n jcbox_anillos = new javax.swing.JCheckBox();\n jLabel4 = new javax.swing.JLabel();\n tf_superficie = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n js_dist = new javax.swing.JSpinner();\n bt_crearpla = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n tf_nombrea = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n tf_nacio = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n js_sueldo = new javax.swing.JSpinner();\n jLabel10 = new javax.swing.JLabel();\n tf_exp = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n tf_sexo = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n js_peso = new javax.swing.JSpinner();\n bt_creara = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n tf_num = new javax.swing.JTextField();\n cb_planeta = new javax.swing.JComboBox<>();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n js_velocidad = new javax.swing.JSpinner();\n bt_crearn = new javax.swing.JButton();\n jPanel5 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jt_astro = new javax.swing.JTable();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jt_pla = new javax.swing.JTable();\n jPanel3 = new javax.swing.JPanel();\n cb_nave = new javax.swing.JComboBox<>();\n jLabel19 = new javax.swing.JLabel();\n bt_empezar = new javax.swing.JButton();\n cb_crew = new javax.swing.JComboBox<>();\n jLabel18 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n jLabel20.setText(\"Nombre:\");\n\n jLabel21.setText(\"Temperatura (F):\");\n\n js_temp1.setModel(new javax.swing.SpinnerNumberModel());\n\n jLabel22.setText(\"Tiene Anillos:\");\n\n jcbox_anillos1.setText(\"Si\");\n\n jLabel23.setText(\"Tipo de superficie:\");\n\n jLabel24.setText(\"Distancia de la Tierra:\");\n\n js_dist1.setModel(new javax.swing.SpinnerNumberModel(0, null, null, 100));\n\n bt_crearpla1.setText(\"Modificar\");\n bt_crearpla1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearpla1MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout ModPlaLayout = new javax.swing.GroupLayout(ModPla.getContentPane());\n ModPla.getContentPane().setLayout(ModPlaLayout);\n ModPlaLayout.setHorizontalGroup(\n ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel22)\n .addGap(18, 18, 18)\n .addComponent(jcbox_anillos1)\n .addGap(159, 159, 159)\n .addComponent(jLabel24)\n .addGap(18, 18, 18)\n .addComponent(js_dist1))\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel20)\n .addGap(18, 18, 18)\n .addComponent(tf_nombrep1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(js_temp1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(149, 149, 149)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_superficie1, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40))))))\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGap(256, 256, 256)\n .addComponent(bt_crearpla1)))\n .addContainerGap(57, Short.MAX_VALUE))\n );\n ModPlaLayout.setVerticalGroup(\n ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(tf_nombrep1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ModPlaLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel23)\n .addGap(18, 18, 18)))\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(js_temp1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tf_superficie1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jcbox_anillos1)\n .addComponent(jLabel24)\n .addComponent(js_dist1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 121, Short.MAX_VALUE)\n .addComponent(bt_crearpla1)\n .addGap(87, 87, 87))\n );\n\n jLabel25.setText(\"Nombre:\");\n\n jLabel26.setText(\"Nacionalidad:\");\n\n jLabel27.setText(\"Sueldo:\");\n\n js_sueldo1.setModel(new javax.swing.SpinnerNumberModel(0.0d, null, null, 100.0d));\n\n jLabel28.setText(\"Experiencia:\");\n\n jLabel29.setText(\"Sexo:\");\n\n jLabel30.setText(\"Peso:\");\n\n js_peso1.setModel(new javax.swing.SpinnerNumberModel());\n\n bt_creara1.setText(\"Modificar\");\n bt_creara1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_creara1MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout ModAstLayout = new javax.swing.GroupLayout(ModAst.getContentPane());\n ModAst.getContentPane().setLayout(ModAstLayout);\n ModAstLayout.setHorizontalGroup(\n ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel25)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tf_nombrea1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ModAstLayout.createSequentialGroup()\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel26)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ModAstLayout.createSequentialGroup()\n .addComponent(jLabel27)\n .addGap(38, 38, 38)))\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_nacio1)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(js_sueldo1, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addGap(112, 112, 112)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel28)\n .addGap(18, 18, 18)\n .addComponent(tf_exp1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel29)\n .addGap(18, 18, 18)\n .addComponent(tf_sexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel30)\n .addGap(18, 18, 18)\n .addComponent(js_peso1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGap(218, 218, 218)\n .addComponent(bt_creara1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n ModAstLayout.setVerticalGroup(\n ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGap(65, 65, 65)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_nombrea1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28)\n .addComponent(tf_exp1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(31, 31, 31)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(tf_nacio1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29)\n .addComponent(tf_sexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(js_sueldo1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel30)\n .addComponent(js_peso1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bt_creara1)\n .addGap(75, 75, 75))\n );\n\n mod.setText(\"Modificar\");\n mod.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n modActionPerformed(evt);\n }\n });\n ppm_menu.add(mod);\n\n elim.setText(\"Eliminar\");\n elim.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n elimActionPerformed(evt);\n }\n });\n ppm_menu.add(elim);\n\n mod1.setText(\"Modificar\");\n mod1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mod1ActionPerformed(evt);\n }\n });\n ppm_astro.add(mod1);\n\n elim1.setText(\"Eliminar\");\n elim1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n elim1ActionPerformed(evt);\n }\n });\n ppm_astro.add(elim1);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Nombre:\");\n\n jLabel2.setText(\"Temperatura (F):\");\n\n js_temp.setModel(new javax.swing.SpinnerNumberModel());\n\n jLabel3.setText(\"Tiene Anillos:\");\n\n jcbox_anillos.setText(\"Si\");\n\n jLabel4.setText(\"Tipo de superficie:\");\n\n jLabel5.setText(\"Distancia de la Tierra:\");\n\n js_dist.setModel(new javax.swing.SpinnerNumberModel(0, null, null, 100));\n\n bt_crearpla.setText(\"Crear\");\n bt_crearpla.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearplaMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(jcbox_anillos)\n .addGap(159, 159, 159)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(js_dist))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(tf_nombrep, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(js_temp, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(149, 149, 149)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_superficie, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40))))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(256, 256, 256)\n .addComponent(bt_crearpla)))\n .addContainerGap(57, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tf_nombrep, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(js_temp, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tf_superficie, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jcbox_anillos)\n .addComponent(jLabel5)\n .addComponent(js_dist, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 121, Short.MAX_VALUE)\n .addComponent(bt_crearpla)\n .addGap(87, 87, 87))\n );\n\n jTabbedPane1.addTab(\"Crear Planetas\", jPanel1);\n\n jLabel7.setText(\"Nombre:\");\n\n jLabel8.setText(\"Nacionalidad:\");\n\n jLabel9.setText(\"Sueldo:\");\n\n js_sueldo.setModel(new javax.swing.SpinnerNumberModel(0.0d, null, null, 100.0d));\n\n jLabel10.setText(\"Experiencia:\");\n\n jLabel11.setText(\"Sexo:\");\n\n jLabel12.setText(\"Peso:\");\n\n js_peso.setModel(new javax.swing.SpinnerNumberModel());\n\n bt_creara.setText(\"Crear\");\n bt_creara.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearaMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tf_nombrea, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(38, 38, 38)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_nacio)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(js_sueldo, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addGap(112, 112, 112)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addComponent(tf_exp, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addGap(18, 18, 18)\n .addComponent(tf_sexo, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addGap(18, 18, 18)\n .addComponent(js_peso, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(218, 218, 218)\n .addComponent(bt_creara)))\n .addContainerGap(35, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(65, 65, 65)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_nombrea, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(tf_exp, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(31, 31, 31)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(tf_nacio, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(tf_sexo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(js_sueldo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(js_peso, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 103, Short.MAX_VALUE)\n .addComponent(bt_creara)\n .addGap(75, 75, 75))\n );\n\n jTabbedPane1.addTab(\"Crear Astronautas\", jPanel2);\n\n jLabel13.setText(\"Numero de Serie:\");\n\n jLabel14.setText(\"Planeta de destino:\");\n\n jLabel15.setText(\"Velocidad:\");\n\n bt_crearn.setText(\"Crear\");\n bt_crearn.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearnMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addGap(18, 18, 18)\n .addComponent(js_velocidad, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel14))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tf_num, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(cb_planeta, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(270, 270, 270)\n .addComponent(bt_crearn)))\n .addContainerGap(283, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(tf_num, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cb_planeta, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addGap(40, 40, 40)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(js_velocidad, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 115, Short.MAX_VALUE)\n .addComponent(bt_crearn)\n .addGap(72, 72, 72))\n );\n\n jTabbedPane1.addTab(\"Crear Nave\", jPanel4);\n\n jt_astro.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Nombre\", \"Nacionalidad\", \"Sueldo\", \"Experiencia\", \"Sexo\", \"Peso\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.Double.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jt_astro.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jt_astroMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jt_astro);\n\n jLabel16.setText(\"Astronautas:\");\n\n jLabel17.setText(\"Planetas\");\n\n jt_pla.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Nombre\", \"Temperatura (F)\", \"Tiene anillos\", \"Superficie\", \"Distancia\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.Integer.class, java.lang.Boolean.class, java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jt_pla.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jt_plaMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jt_pla);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jLabel16))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addComponent(jLabel17))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 462, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(93, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(jLabel17)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(61, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Ver\", jPanel5);\n\n jLabel19.setText(\"Nave:\");\n\n bt_empezar.setText(\"Empezar\");\n bt_empezar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_empezarMouseClicked(evt);\n }\n });\n\n jLabel18.setText(\"Agregar tripulante:\");\n\n jButton1.setText(\"Agregar\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(236, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel19)\n .addGap(290, 290, 290))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(bt_empezar)\n .addGap(254, 254, 254))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cb_crew, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cb_nave, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(228, 228, 228))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addGap(257, 257, 257))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(267, 267, 267))))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jLabel19)\n .addGap(29, 29, 29)\n .addComponent(cb_nave, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addComponent(jLabel18)\n .addGap(18, 18, 18)\n .addComponent(cb_crew, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)\n .addComponent(bt_empezar)\n .addGap(88, 88, 88))\n );\n\n jTabbedPane1.addTab(\"Expedicion\", jPanel3);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n etiquetaTitulo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaCuentas = new javax.swing.JTable();\n etiquetaLeyenda = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n etiquetaCodigo = new javax.swing.JLabel();\n campoCodigo = new javax.swing.JTextField();\n etiquetaDescripcion = new javax.swing.JLabel();\n campoDescripcion = new javax.swing.JTextField();\n comboCuentaTitulo = new javax.swing.JComboBox<>();\n etiquetaCuentaTitulo = new javax.swing.JLabel();\n botonAceptar = new javax.swing.JButton();\n etiquetaNivel = new javax.swing.JLabel();\n campoNivel = new javax.swing.JTextField();\n etiquetaTitulo2 = new javax.swing.JLabel();\n botonVolver = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n etiquetaTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n etiquetaTitulo.setText(\"Crear una nueva Cuenta o Titulo\");\n\n tablaCuentas = new javax.swing.JTable() {\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tablaCuentas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Descripcion\", \"Tipo\", \"Nro Cuenta\"\n }\n ));\n jScrollPane1.setViewportView(tablaCuentas);\n\n etiquetaLeyenda.setText(\"Seleccione bajo que titulo se crea la nueva cuenta o titulo\");\n\n etiquetaCodigo.setText(\"Codigo:\");\n\n etiquetaDescripcion.setText(\"Descripcion:\");\n\n comboCuentaTitulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Titulo\", \"Cuenta\" }));\n\n etiquetaCuentaTitulo.setText(\"Cuenta o Titulo:\");\n\n botonAceptar.setText(\"Aceptar\");\n\n etiquetaNivel.setText(\"Nivel:\");\n\n campoNivel.setEnabled(false);\n\n etiquetaTitulo2.setText(\"Datos de la nueva Cuenta\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(botonAceptar)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaCodigo)\n .addComponent(etiquetaDescripcion)\n .addComponent(etiquetaCuentaTitulo))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addComponent(etiquetaNivel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(etiquetaTitulo2)))\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiquetaTitulo2)\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigo))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaDescripcion)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(59, 59, 59)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCuentaTitulo)\n .addComponent(etiquetaNivel)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(61, 61, 61)\n .addComponent(botonAceptar)\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n botonVolver.setText(\"Volver\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaLeyenda)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(botonVolver))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(317, 317, 317)\n .addComponent(etiquetaTitulo)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(etiquetaTitulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(etiquetaLeyenda)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonVolver)\n .addGap(67, 67, 67))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buscar_HC = new javax.swing.JDialog();\n btnBuscar1 = new javax.swing.JButton();\n txtbuscarHC = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n tb_HC = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jpanel3 = new javax.swing.JPanel();\n titulo8 = new javax.swing.JLabel();\n jLabel40 = new javax.swing.JLabel();\n personal = new javax.swing.JDialog();\n txtBuscarPersonal = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n btnBuscarPersonal = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tbPersonal = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n cbxBuscarPersonal = new javax.swing.JComboBox();\n jpanel2 = new javax.swing.JPanel();\n titulo7 = new javax.swing.JLabel();\n analisis = new javax.swing.JDialog();\n jScrollPane3 = new javax.swing.JScrollPane();\n tb_Analisis = new javax.swing.JTable();\n jpanel1 = new javax.swing.JPanel();\n titulo6 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n cbxBuscarAnalisis = new javax.swing.JComboBox();\n txtBuscarAnalisis = new javax.swing.JTextField();\n btnBuscarAnalisis = new javax.swing.JButton();\n jPopupMenu1 = new javax.swing.JPopupMenu();\n muestras = new javax.swing.JMenuItem();\n VerTomaM = new javax.swing.JDialog();\n panelTM = new javax.swing.JPanel();\n jLabel25 = new javax.swing.JLabel();\n txtActoMedico = new javax.swing.JTextField();\n txtFormaPago = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n txtNToma = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n txtPersonalTomaMuestra = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n txtFechaTM = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n txtHoraTM = new javax.swing.JTextField();\n jLabel31 = new javax.swing.JLabel();\n txtPersonalSolicita = new javax.swing.JTextField();\n jLabel32 = new javax.swing.JLabel();\n txtPiso = new javax.swing.JTextField();\n jLabel33 = new javax.swing.JLabel();\n txtCama = new javax.swing.JTextField();\n jLabel34 = new javax.swing.JLabel();\n jLabel37 = new javax.swing.JLabel();\n txtFechaOrden = new javax.swing.JTextField();\n txtHoraOrden = new javax.swing.JTextField();\n txthospiServ = new javax.swing.JTextField();\n jLabel36 = new javax.swing.JLabel();\n jpanel4 = new javax.swing.JPanel();\n titulo9 = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n tb_muestras = new javax.swing.JTable();\n panelPaciente = new javax.swing.JPanel();\n jLabel23 = new javax.swing.JLabel();\n txtDni = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n txtHc = new javax.swing.JTextField();\n txtPacientes2 = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n txtFecha = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n txtSexo = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n txtEdad = new javax.swing.JTextField();\n panelAnalisis = new javax.swing.JPanel();\n txtNomenclatura = new javax.swing.JTextField();\n jLabel35 = new javax.swing.JLabel();\n jLabel38 = new javax.swing.JLabel();\n txtCPT = new javax.swing.JTextField();\n jLabel39 = new javax.swing.JLabel();\n txtServArea = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jpanel = new javax.swing.JPanel();\n titulo5 = new javax.swing.JLabel();\n lblUsu = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tb_TomasRealizadas = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n if(colIndex==0){\n return true;\n }else{\n return false; //Disallow the editing of any cell\n }}};\n lblServicio = new javax.swing.JLabel();\n lblArea = new javax.swing.JLabel();\n panelPacientes = new javax.swing.JPanel();\n chPacientes = new javax.swing.JCheckBox();\n txtPacientes = new javax.swing.JTextField();\n btnPacientes = new javax.swing.JButton();\n chAnalisis = new javax.swing.JCheckBox();\n txtAnalisis = new javax.swing.JTextField();\n btnAnalisis = new javax.swing.JButton();\n chPersonal = new javax.swing.JCheckBox();\n txtPersonal = new javax.swing.JTextField();\n btnPersonal = new javax.swing.JButton();\n btnBuscar = new javax.swing.JButton();\n chActoMedico = new javax.swing.JCheckBox();\n txtActoM = new javax.swing.JTextField();\n dateDesde = new com.toedter.calendar.JDateChooser();\n dateHasta = new com.toedter.calendar.JDateChooser();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n cbx = new javax.swing.JComboBox();\n jLabel19 = new javax.swing.JLabel();\n lbldia = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n\n buscar_HC.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n buscar_HC.setAlwaysOnTop(true);\n buscar_HC.setMinimumSize(new java.awt.Dimension(876, 692));\n\n btnBuscar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/view.gif\"))); // NOI18N\n btnBuscar1.setBorder(null);\n btnBuscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscar1ActionPerformed(evt);\n }\n });\n\n txtbuscarHC.setForeground(new java.awt.Color(0, 51, 51));\n txtbuscarHC.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtbuscarHCActionPerformed(evt);\n }\n });\n txtbuscarHC.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtbuscarHCKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtbuscarHCKeyTyped(evt);\n }\n });\n\n tb_HC.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_HC.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_HC.setRowHeight(25);\n tb_HC.getTableHeader().setReorderingAllowed(false);\n tb_HC.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_HCMouseClicked(evt);\n }\n });\n tb_HC.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_HCKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(tb_HC);\n\n jpanel3.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo8.setBackground(new java.awt.Color(0, 102, 102));\n titulo8.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo8.setForeground(new java.awt.Color(255, 255, 255));\n titulo8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo8.setText(\"Historia Clínica\");\n titulo8.setToolTipText(\"\");\n titulo8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel3Layout = new javax.swing.GroupLayout(jpanel3);\n jpanel3.setLayout(jpanel3Layout);\n jpanel3Layout.setHorizontalGroup(\n jpanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 876, Short.MAX_VALUE)\n );\n jpanel3Layout.setVerticalGroup(\n jpanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jLabel40.setFont(new java.awt.Font(\"Tahoma\", 2, 10)); // NOI18N\n jLabel40.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel40.setText(\"Búsqueda por H.C / Paciente / DNI\");\n\n javax.swing.GroupLayout buscar_HCLayout = new javax.swing.GroupLayout(buscar_HC.getContentPane());\n buscar_HC.getContentPane().setLayout(buscar_HCLayout);\n buscar_HCLayout.setHorizontalGroup(\n buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(buscar_HCLayout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jScrollPane1)\n .addGap(19, 19, 19))\n .addGroup(buscar_HCLayout.createSequentialGroup()\n .addGap(300, 300, 300)\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel40, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtbuscarHC, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(258, Short.MAX_VALUE))\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n buscar_HCLayout.setVerticalGroup(\n buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buscar_HCLayout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtbuscarHC, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addComponent(jLabel40)\n .addGap(2, 2, 2)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 549, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(41, Short.MAX_VALUE))\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(buscar_HCLayout.createSequentialGroup()\n .addComponent(jpanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 644, Short.MAX_VALUE)))\n );\n\n personal.setAlwaysOnTop(true);\n personal.setMinimumSize(new java.awt.Dimension(846, 504));\n\n txtBuscarPersonal.setForeground(new java.awt.Color(0, 51, 51));\n txtBuscarPersonal.setEnabled(false);\n txtBuscarPersonal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscarPersonalActionPerformed(evt);\n }\n });\n txtBuscarPersonal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarPersonalKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtBuscarPersonalKeyTyped(evt);\n }\n });\n\n jLabel2.setText(\"Búsqueda por:\");\n\n btnBuscarPersonal.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/view.gif\"))); // NOI18N\n btnBuscarPersonal.setBorder(null);\n btnBuscarPersonal.setEnabled(false);\n btnBuscarPersonal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPersonalActionPerformed(evt);\n }\n });\n\n tbPersonal.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tbPersonal.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tbPersonal.setRowHeight(25);\n tbPersonal.getTableHeader().setReorderingAllowed(false);\n tbPersonal.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tbPersonalMouseClicked(evt);\n }\n });\n tbPersonal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tbPersonalKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tbPersonalKeyTyped(evt);\n }\n });\n jScrollPane2.setViewportView(tbPersonal);\n\n cbxBuscarPersonal.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar...\", \"Cargo\", \"Apellidos y Nombres\" }));\n cbxBuscarPersonal.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbxBuscarPersonalItemStateChanged(evt);\n }\n });\n\n jpanel2.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo7.setBackground(new java.awt.Color(0, 102, 102));\n titulo7.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo7.setForeground(new java.awt.Color(255, 255, 255));\n titulo7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo7.setText(\"Personal\");\n titulo7.setToolTipText(\"\");\n titulo7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel2Layout = new javax.swing.GroupLayout(jpanel2);\n jpanel2.setLayout(jpanel2Layout);\n jpanel2Layout.setHorizontalGroup(\n jpanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jpanel2Layout.setVerticalGroup(\n jpanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout personalLayout = new javax.swing.GroupLayout(personal.getContentPane());\n personal.getContentPane().setLayout(personalLayout);\n personalLayout.setHorizontalGroup(\n personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(personalLayout.createSequentialGroup()\n .addGroup(personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(personalLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 801, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(personalLayout.createSequentialGroup()\n .addGap(97, 97, 97)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbxBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(158, 158, 158)\n .addComponent(txtBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(26, Short.MAX_VALUE))\n .addComponent(jpanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n personalLayout.setVerticalGroup(\n personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, personalLayout.createSequentialGroup()\n .addComponent(jpanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbxBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n analisis.setAlwaysOnTop(true);\n analisis.setMinimumSize(new java.awt.Dimension(710, 435));\n\n tb_Analisis.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Analisis.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_Analisis.setRowHeight(21);\n tb_Analisis.getTableHeader().setReorderingAllowed(false);\n tb_Analisis.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_AnalisisKeyPressed(evt);\n }\n });\n jScrollPane3.setViewportView(tb_Analisis);\n\n jpanel1.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo6.setBackground(new java.awt.Color(0, 102, 102));\n titulo6.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo6.setForeground(new java.awt.Color(255, 255, 255));\n titulo6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo6.setText(\"Análisis\");\n titulo6.setToolTipText(\"\");\n titulo6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel1Layout = new javax.swing.GroupLayout(jpanel1);\n jpanel1.setLayout(jpanel1Layout);\n jpanel1Layout.setHorizontalGroup(\n jpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jpanel1Layout.setVerticalGroup(\n jpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanel1Layout.createSequentialGroup()\n .addComponent(titulo6)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jLabel6.setText(\"Búsqueda por:\");\n\n cbxBuscarAnalisis.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar...\", \"Código CPT\", \"Análisis\" }));\n cbxBuscarAnalisis.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbxBuscarAnalisisItemStateChanged(evt);\n }\n });\n\n txtBuscarAnalisis.setForeground(new java.awt.Color(0, 51, 51));\n txtBuscarAnalisis.setEnabled(false);\n txtBuscarAnalisis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscarAnalisisActionPerformed(evt);\n }\n });\n txtBuscarAnalisis.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarAnalisisKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtBuscarAnalisisKeyTyped(evt);\n }\n });\n\n btnBuscarAnalisis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/view.gif\"))); // NOI18N\n btnBuscarAnalisis.setBorder(null);\n btnBuscarAnalisis.setEnabled(false);\n btnBuscarAnalisis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarAnalisisActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout analisisLayout = new javax.swing.GroupLayout(analisis.getContentPane());\n analisis.getContentPane().setLayout(analisisLayout);\n analisisLayout.setHorizontalGroup(\n analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(analisisLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(analisisLayout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbxBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(131, 131, 131)\n .addComponent(txtBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 666, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n analisisLayout.setVerticalGroup(\n analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, analisisLayout.createSequentialGroup()\n .addComponent(jpanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbxBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46))\n );\n\n muestras.setText(\"Ver Toma de Muestra\");\n muestras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n muestrasActionPerformed(evt);\n }\n });\n jPopupMenu1.add(muestras);\n\n VerTomaM.setAlwaysOnTop(true);\n VerTomaM.setMinimumSize(new java.awt.Dimension(890, 572));\n VerTomaM.setResizable(false);\n\n panelTM.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Toma de Muestra\"));\n\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Acto Médico\");\n\n txtActoMedico.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtActoMedico.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtActoMedico.setEnabled(false);\n\n txtFormaPago.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtFormaPago.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFormaPago.setEnabled(false);\n txtFormaPago.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtFormaPagoActionPerformed(evt);\n }\n });\n txtFormaPago.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFormaPagoKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFormaPagoKeyReleased(evt);\n }\n });\n\n jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel30.setText(\"Forma de Pago\");\n\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"N° de Toma de Muestra\");\n\n txtNToma.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtNToma.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtNToma.setEnabled(false);\n txtNToma.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtNTomaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtNTomaKeyReleased(evt);\n }\n });\n\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Personal - Toma de Muestra\");\n\n txtPersonalTomaMuestra.setFont(new java.awt.Font(\"Segoe UI\", 1, 10)); // NOI18N\n txtPersonalTomaMuestra.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPersonalTomaMuestra.setEnabled(false);\n txtPersonalTomaMuestra.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPersonalTomaMuestraActionPerformed(evt);\n }\n });\n txtPersonalTomaMuestra.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPersonalTomaMuestraKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtPersonalTomaMuestraKeyReleased(evt);\n }\n });\n\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"Fecha Toma Muestra\");\n\n txtFechaTM.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtFechaTM.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFechaTM.setEnabled(false);\n txtFechaTM.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtFechaTMActionPerformed(evt);\n }\n });\n txtFechaTM.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFechaTMKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaTMKeyReleased(evt);\n }\n });\n\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"Hora Toma Muestra\");\n\n txtHoraTM.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtHoraTM.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtHoraTM.setEnabled(false);\n txtHoraTM.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtHoraTMActionPerformed(evt);\n }\n });\n txtHoraTM.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtHoraTMKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtHoraTMKeyReleased(evt);\n }\n });\n\n jLabel31.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel31.setText(\"Personal - Solicita Muestra\");\n\n txtPersonalSolicita.setFont(new java.awt.Font(\"Segoe UI\", 1, 10)); // NOI18N\n txtPersonalSolicita.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPersonalSolicita.setEnabled(false);\n txtPersonalSolicita.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPersonalSolicitaActionPerformed(evt);\n }\n });\n txtPersonalSolicita.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPersonalSolicitaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtPersonalSolicitaKeyReleased(evt);\n }\n });\n\n jLabel32.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel32.setText(\"Piso\");\n\n txtPiso.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtPiso.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPiso.setEnabled(false);\n txtPiso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPisoActionPerformed(evt);\n }\n });\n txtPiso.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPisoKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtPisoKeyReleased(evt);\n }\n });\n\n jLabel33.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel33.setText(\"Cama\");\n\n txtCama.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtCama.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtCama.setEnabled(false);\n txtCama.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCamaActionPerformed(evt);\n }\n });\n txtCama.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCamaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCamaKeyReleased(evt);\n }\n });\n\n jLabel34.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel34.setText(\"Fecha Orden\");\n\n jLabel37.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel37.setText(\"Hora Orden\");\n\n txtFechaOrden.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtFechaOrden.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFechaOrden.setEnabled(false);\n txtFechaOrden.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtFechaOrdenActionPerformed(evt);\n }\n });\n txtFechaOrden.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFechaOrdenKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaOrdenKeyReleased(evt);\n }\n });\n\n txtHoraOrden.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtHoraOrden.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtHoraOrden.setEnabled(false);\n txtHoraOrden.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtHoraOrdenActionPerformed(evt);\n }\n });\n txtHoraOrden.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtHoraOrdenKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtHoraOrdenKeyReleased(evt);\n }\n });\n\n txthospiServ.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txthospiServ.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txthospiServ.setEnabled(false);\n txthospiServ.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txthospiServActionPerformed(evt);\n }\n });\n txthospiServ.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txthospiServKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txthospiServKeyReleased(evt);\n }\n });\n\n jLabel36.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel36.setText(\"Hospitalización-Servicio\");\n\n javax.swing.GroupLayout panelTMLayout = new javax.swing.GroupLayout(panelTM);\n panelTM.setLayout(panelTMLayout);\n panelTMLayout.setHorizontalGroup(\n panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addComponent(txtActoMedico, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelTMLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel31, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPersonalSolicita, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(panelTMLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPersonalTomaMuestra, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(28, 28, 28)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtFechaTM, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel29, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addComponent(txtNToma, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel34, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(txtFechaOrden, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtHoraOrden)\n .addComponent(txtFormaPago, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel30, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)\n .addComponent(jLabel37, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtHoraTM)))\n .addGap(24, 24, 24)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txthospiServ)\n .addComponent(jLabel36, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtPiso)\n .addComponent(txtCama))\n .addContainerGap())\n );\n panelTMLayout.setVerticalGroup(\n panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel29)\n .addComponent(jLabel30)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel36))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNToma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtActoMedico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txthospiServ, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28)\n .addComponent(jLabel32))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPersonalTomaMuestra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFechaTM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtHoraTM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPiso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel37)))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPersonalSolicita, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFechaOrden, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtHoraOrden, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(txtCama, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n jpanel4.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo9.setBackground(new java.awt.Color(0, 102, 102));\n titulo9.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo9.setForeground(new java.awt.Color(255, 255, 255));\n titulo9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo9.setText(\"Toma de Muestra\");\n titulo9.setToolTipText(\"\");\n titulo9.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel4Layout = new javax.swing.GroupLayout(jpanel4);\n jpanel4.setLayout(jpanel4Layout);\n jpanel4Layout.setHorizontalGroup(\n jpanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanel4Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(titulo9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jpanel4Layout.setVerticalGroup(\n jpanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanel4Layout.createSequentialGroup()\n .addComponent(titulo9, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n tb_muestras.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"cod_det_toma_mu_ana\", \"codMuestra\", \"codContenedor\", \"codArea\", \"Muestra\", \"Contenedor\", \"Area\", \"Cantidad\", \"Codigo_Barras\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, true, false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tb_muestras.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_muestras.setRowHeight(28);\n tb_muestras.getTableHeader().setReorderingAllowed(false);\n jScrollPane4.setViewportView(tb_muestras);\n\n panelPaciente.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Datos del Paciente\"));\n\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"DNI\");\n\n txtDni.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtDni.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtDni.setEnabled(false);\n\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Nº de H.C.\");\n\n txtHc.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtHc.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtHc.setEnabled(false);\n\n txtPacientes2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtPacientes2.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPacientes2.setEnabled(false);\n\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Paciente\");\n\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\"Fecha de Nac.\");\n\n txtFecha.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtFecha.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFecha.setEnabled(false);\n\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Sexo\");\n\n txtSexo.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtSexo.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtSexo.setEnabled(false);\n\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"Edad\");\n\n txtEdad.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtEdad.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtEdad.setEnabled(false);\n\n javax.swing.GroupLayout panelPacienteLayout = new javax.swing.GroupLayout(panelPaciente);\n panelPaciente.setLayout(panelPacienteLayout);\n panelPacienteLayout.setHorizontalGroup(\n panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtDni)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)\n .addComponent(txtHc, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPacientes2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtFecha, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE)\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtEdad)\n .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtSexo)\n .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE))))))\n .addContainerGap())\n );\n panelPacienteLayout.setVerticalGroup(\n panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jLabel7))\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtHc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPacientes2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18))\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDni, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEdad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtSexo))))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n panelAnalisis.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Análisis\"));\n\n txtNomenclatura.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtNomenclatura.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtNomenclatura.setEnabled(false);\n txtNomenclatura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomenclaturaActionPerformed(evt);\n }\n });\n txtNomenclatura.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtNomenclaturaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtNomenclaturaKeyReleased(evt);\n }\n });\n\n jLabel35.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel35.setText(\"Nomenclatura\");\n\n jLabel38.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel38.setText(\"Código CPT\");\n\n txtCPT.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtCPT.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtCPT.setEnabled(false);\n txtCPT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCPTActionPerformed(evt);\n }\n });\n txtCPT.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCPTKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCPTKeyReleased(evt);\n }\n });\n\n jLabel39.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel39.setText(\"Servicio/Área\");\n\n txtServArea.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtServArea.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtServArea.setEnabled(false);\n txtServArea.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtServAreaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtServAreaKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout panelAnalisisLayout = new javax.swing.GroupLayout(panelAnalisis);\n panelAnalisis.setLayout(panelAnalisisLayout);\n panelAnalisisLayout.setHorizontalGroup(\n panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCPT, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel35, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)\n .addComponent(txtNomenclatura)))\n .addComponent(txtServArea)\n .addComponent(jLabel39, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n panelAnalisisLayout.setVerticalGroup(\n panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jLabel39)\n .addGap(0, 0, 0)\n .addComponent(txtServArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel38)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNomenclatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCPT))))\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))))\n );\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Muestra(s)\");\n\n javax.swing.GroupLayout VerTomaMLayout = new javax.swing.GroupLayout(VerTomaM.getContentPane());\n VerTomaM.getContentPane().setLayout(VerTomaMLayout);\n VerTomaMLayout.setHorizontalGroup(\n VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VerTomaMLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panelTM, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, VerTomaMLayout.createSequentialGroup()\n .addComponent(panelPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)\n .addComponent(panelAnalisis, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING))\n .addGap(32, 32, 32))\n );\n VerTomaMLayout.setVerticalGroup(\n VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VerTomaMLayout.createSequentialGroup()\n .addComponent(jpanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(panelPaciente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panelAnalisis, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(2, 2, 2)\n .addComponent(panelTM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jLabel1)\n .addGap(1, 1, 1)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(122, 122, 122))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(1067, 665));\n setPreferredSize(new java.awt.Dimension(1067, 665));\n\n jpanel.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo5.setBackground(new java.awt.Color(0, 102, 102));\n titulo5.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo5.setForeground(new java.awt.Color(255, 255, 255));\n titulo5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo5.setText(\"Tomas de Muestras Realizadas\");\n titulo5.setToolTipText(\"\");\n titulo5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n lblUsu.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 12)); // NOI18N\n lblUsu.setForeground(new java.awt.Color(255, 255, 255));\n lblUsu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/User-32.png\"))); // NOI18N\n lblUsu.setText(\"Usuario\");\n\n javax.swing.GroupLayout jpanelLayout = new javax.swing.GroupLayout(jpanel);\n jpanel.setLayout(jpanelLayout);\n jpanelLayout.setHorizontalGroup(\n jpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpanelLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(titulo5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblUsu, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27))\n );\n jpanelLayout.setVerticalGroup(\n jpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanelLayout.createSequentialGroup()\n .addGroup(jpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(titulo5)\n .addComponent(lblUsu, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 29, Short.MAX_VALUE))\n );\n\n tb_TomasRealizadas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"cod_cab_toma_mu_exa\", \"cod_det_toma_mu_ana\", \"cod_exa_ana\", \"id_hc\", \"Servicio/Área\", \"Código CPT\", \"Nomenclatura\", \"Analisis Examen\", \"N° de Toma de Muestra\", \"N° de H.C\", \"Datos del Paciente\", \"DNI\", \"Fecha de Nacimiento\", \"Edad\", \"Sexo\", \"Forma de Pago\", \"Acto Medico\", \"Nombre Per Toma Muestra\", \"fecha_toma_mu_de\", \"hora_toma_mu_de\", \"nom_per_solicita\", \"hab_nom\", \"cama\", \"fecha_orden\", \"hora_orden\", \"id_cod_doc_det\", \"Años\", \"Meses\", \"Dias\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, false, true, true, false, true, true, false, true, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, false, true, true, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tb_TomasRealizadas.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_TomasRealizadas.setComponentPopupMenu(jPopupMenu1);\n tb_TomasRealizadas.setRowHeight(24);\n tb_TomasRealizadas.setSelectionBackground(new java.awt.Color(2, 67, 115));\n tb_TomasRealizadas.getTableHeader().setReorderingAllowed(false);\n tb_TomasRealizadas.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_TomasRealizadasMouseClicked(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n tb_TomasRealizadasMouseReleased(evt);\n }\n });\n tb_TomasRealizadas.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n tb_TomasRealizadasPropertyChange(evt);\n }\n });\n tb_TomasRealizadas.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_TomasRealizadasKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tb_TomasRealizadasKeyTyped(evt);\n }\n });\n jScrollPane5.setViewportView(tb_TomasRealizadas);\n if (tb_TomasRealizadas.getColumnModel().getColumnCount() > 0) {\n tb_TomasRealizadas.getColumnModel().getColumn(13).setResizable(false);\n tb_TomasRealizadas.getColumnModel().getColumn(14).setResizable(false);\n }\n\n lblServicio.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblServicio.setText(\"servicio\");\n\n lblArea.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblArea.setText(\"area\");\n\n chPacientes.setText(\"Todos los Pacientes\");\n chPacientes.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chPacientes.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chPacientesItemStateChanged(evt);\n }\n });\n\n txtPacientes.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n txtPacientes.setForeground(new java.awt.Color(0, 51, 51));\n txtPacientes.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPacientes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPacientesActionPerformed(evt);\n }\n });\n txtPacientes.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPacientesKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPacientesKeyTyped(evt);\n }\n });\n\n btnPacientes.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n btnPacientes.setBorder(null);\n btnPacientes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPacientesActionPerformed(evt);\n }\n });\n\n chAnalisis.setText(\"Todos los Análisis\");\n chAnalisis.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chAnalisis.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chAnalisisItemStateChanged(evt);\n }\n });\n\n txtAnalisis.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n txtAnalisis.setForeground(new java.awt.Color(0, 51, 51));\n txtAnalisis.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtAnalisis.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtAnalisisKeyPressed(evt);\n }\n });\n\n btnAnalisis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n btnAnalisis.setBorder(null);\n btnAnalisis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAnalisisActionPerformed(evt);\n }\n });\n\n chPersonal.setText(\"Todo el Personal\");\n chPersonal.setHideActionText(true);\n chPersonal.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chPersonal.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chPersonalItemStateChanged(evt);\n }\n });\n\n txtPersonal.setFont(new java.awt.Font(\"Segoe UI\", 0, 11)); // NOI18N\n txtPersonal.setForeground(new java.awt.Color(0, 51, 51));\n txtPersonal.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPersonal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPersonalKeyPressed(evt);\n }\n });\n\n btnPersonal.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n btnPersonal.setBorder(null);\n btnPersonal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPersonalActionPerformed(evt);\n }\n });\n\n btnBuscar.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 11)); // NOI18N\n btnBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/buscar16x16.png\"))); // NOI18N\n btnBuscar.setMnemonic('B');\n btnBuscar.setText(\"Buscar\");\n btnBuscar.setToolTipText(\"Buscar (Alt-B)\");\n btnBuscar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarActionPerformed(evt);\n }\n });\n\n chActoMedico.setText(\"Todos los Actos Médicos\");\n chActoMedico.setHideActionText(true);\n chActoMedico.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chActoMedico.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chActoMedicoItemStateChanged(evt);\n }\n });\n\n txtActoM.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n txtActoM.setForeground(new java.awt.Color(0, 51, 51));\n txtActoM.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtActoM.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtActoMKeyPressed(evt);\n }\n });\n\n javax.swing.GroupLayout panelPacientesLayout = new javax.swing.GroupLayout(panelPacientes);\n panelPacientes.setLayout(panelPacientesLayout);\n panelPacientesLayout.setHorizontalGroup(\n panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacientesLayout.createSequentialGroup()\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(chAnalisis, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\n .addComponent(chPacientes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\n .addComponent(chPersonal, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\n .addComponent(chActoMedico, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtAnalisis, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addComponent(txtPacientes, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addComponent(txtPersonal, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addComponent(txtActoM, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnPacientes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAnalisis, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnPersonal, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(btnBuscar)\n .addGap(15, 15, 15))\n );\n panelPacientesLayout.setVerticalGroup(\n panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacientesLayout.createSequentialGroup()\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(panelPacientesLayout.createSequentialGroup()\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAnalisis, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, 0)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnPersonal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(chActoMedico, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtActoM, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(btnBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, 0))\n );\n\n dateDesde.setDateFormatString(\"dd-MM-yyyy\");\n\n dateHasta.setDateFormatString(\"dd-MM-yyyy\");\n\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Hasta\");\n\n jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel21.setText(\"Búsqueda por:\");\n\n cbx.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar...\", \"N° de H.C / DNI\", \"Análisis \", \"Personal - Toma de Muestra\", \"Acto Médico\" }));\n cbx.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbxItemStateChanged(evt);\n }\n });\n cbx.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cbxKeyPressed(evt);\n }\n });\n\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Desde\");\n\n lbldia.setFont(new java.awt.Font(\"Segoe UI\", 1, 13)); // NOI18N\n lbldia.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbldia.setText(\"Exámenes con Toma de Muestras del Día\");\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 204));\n jPanel1.setPreferredSize(new java.awt.Dimension(721, 25));\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/salir16x16.png\"))); // NOI18N\n jLabel3.setText(\"Salir (Esc)\");\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n jLabel10.setText(\"Buscar (Alt+B)\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(850, 850, 850)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(8, 8, 8))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(dateDesde, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dateHasta, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(405, 405, 405))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1026, Short.MAX_VALUE)\n .addComponent(lbldia, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(101, 101, 101)\n .addComponent(lblServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblArea, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbx, 0, 173, Short.MAX_VALUE))\n .addGap(84, 84, 84)\n .addComponent(panelPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane5))\n .addGap(28, 28, 28))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jpanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(11, 11, 11)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dateDesde, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(dateHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblArea)\n .addComponent(lblServicio))\n .addComponent(panelPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(lbldia)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 345, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n btn_Atras = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btn_AddBodega = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n dp_FechaFinal = new com.github.lgooddatepicker.components.DatePicker();\n dp_FechaInicial = new com.github.lgooddatepicker.components.DatePicker();\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"SoftCommodity+ by White Company® \");\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel2.setBackground(new java.awt.Color(0, 0, 0));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n btn_Atras.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Img/Volver.png\"))); // NOI18N\n btn_Atras.setBorderPainted(false);\n btn_Atras.setContentAreaFilled(false);\n btn_Atras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_AtrasActionPerformed(evt);\n }\n });\n jPanel2.add(btn_Atras, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 10, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Fecha Final\");\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 200, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Crear un nuevo Reporte\");\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 80, -1, -1));\n\n btn_AddBodega.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Img/Bodega/Añadir.png\"))); // NOI18N\n btn_AddBodega.setBorderPainted(false);\n btn_AddBodega.setContentAreaFilled(false);\n btn_AddBodega.setEnabled(false);\n btn_AddBodega.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_AddBodegaActionPerformed(evt);\n }\n });\n jPanel2.add(btn_AddBodega, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 260, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Fecha Inicial\");\n jPanel2.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 150, -1, -1));\n jPanel2.add(dp_FechaFinal, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 200, -1, -1));\n jPanel2.add(dp_FechaInicial, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 140, -1, -1));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 540, 380));\n\n pack();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n nuevoLote = new javax.swing.JDialog();\n etiquetaCodigoLote = new javax.swing.JLabel();\n campoCodigoLote = new javax.swing.JTextField();\n etiquetaCantidad = new javax.swing.JLabel();\n campoCantidad = new javax.swing.JFormattedTextField();\n botonGuardarLote = new javax.swing.JButton();\n botonCancelar = new javax.swing.JButton();\n panelCampos = new javax.swing.JPanel();\n etiquetaCodigoEgreso = new javax.swing.JLabel();\n campoCodigoEgreso = new javax.swing.JTextField();\n etiquetaCausaEspecial = new javax.swing.JLabel();\n campoCausaEspecial = new javax.swing.JTextField();\n etiquetaAlmacen = new javax.swing.JLabel();\n campoAlmacen = new javax.swing.JComboBox();\n etiquetaObservaciones = new javax.swing.JLabel();\n jspAreaTexto = new javax.swing.JScrollPane();\n campoObservaciones = new javax.swing.JTextArea();\n jspTabla = new javax.swing.JScrollPane();\n tablaLotesEgresados = new javax.swing.JTable();\n panelBotones = new javax.swing.JPanel();\n botonAgregarLote = new javax.swing.JButton();\n botonQuitarLote = new javax.swing.JButton();\n panelUltimo = new javax.swing.JPanel();\n botonRegistrarEgreso = new javax.swing.JButton();\n botonCancelarEgreso = new javax.swing.JButton();\n\n nuevoLote.setTitle(\"Agregar Lote\");\n nuevoLote.setMinimumSize(new java.awt.Dimension(259, 97));\n nuevoLote.setResizable(false);\n\n etiquetaCodigoLote.setText(\"Código del lote\");\n\n etiquetaCantidad.setText(\"Cantidad\");\n\n campoCantidad.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter()));\n\n botonGuardarLote.setText(\"Agregar\");\n botonGuardarLote.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonGuardarLoteActionPerformed(evt);\n }\n });\n\n botonCancelar.setText(\"Cancelar\");\n\n javax.swing.GroupLayout nuevoLoteLayout = new javax.swing.GroupLayout(nuevoLote.getContentPane());\n nuevoLote.getContentPane().setLayout(nuevoLoteLayout);\n nuevoLoteLayout.setHorizontalGroup(\n nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(etiquetaCantidad, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(etiquetaCodigoLote, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(campoCodigoLote, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)\n .addComponent(campoCantidad)))\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addComponent(botonGuardarLote)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonCancelar)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n nuevoLoteLayout.setVerticalGroup(\n nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigoLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigoLote))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaCantidad)\n .addComponent(campoCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botonGuardarLote)\n .addComponent(botonCancelar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Egresar Lotes de Productos\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 18))); // NOI18N\n setMaximumSize(new java.awt.Dimension(900, 500));\n setMinimumSize(new java.awt.Dimension(900, 500));\n setLayout(new java.awt.BorderLayout());\n\n panelCampos.setMaximumSize(new java.awt.Dimension(900, 173));\n panelCampos.setMinimumSize(new java.awt.Dimension(900, 173));\n\n etiquetaCodigoEgreso.setText(\"Código\");\n\n etiquetaCausaEspecial.setText(\"Causa Especial\");\n\n etiquetaAlmacen.setText(\"Almacén\");\n\n campoAlmacen.setModel(new vistas.modelos.AlmacenComboBoxModel());\n campoAlmacen.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n campoAlmacenItemStateChanged(evt);\n }\n });\n\n etiquetaObservaciones.setText(\"Observaciones\");\n\n campoObservaciones.setColumns(20);\n campoObservaciones.setRows(5);\n jspAreaTexto.setViewportView(campoObservaciones);\n\n javax.swing.GroupLayout panelCamposLayout = new javax.swing.GroupLayout(panelCampos);\n panelCampos.setLayout(panelCamposLayout);\n panelCamposLayout.setHorizontalGroup(\n panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(etiquetaCausaEspecial, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(etiquetaAlmacen, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(etiquetaCodigoEgreso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(campoAlmacen, 0, 181, Short.MAX_VALUE)\n .addComponent(campoCausaEspecial)\n .addComponent(campoCodigoEgreso)))\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addComponent(etiquetaObservaciones)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jspAreaTexto, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(634, Short.MAX_VALUE))\n );\n panelCamposLayout.setVerticalGroup(\n panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigoEgreso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigoEgreso))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCausaEspecial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCausaEspecial))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoAlmacen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaAlmacen))\n .addGap(7, 7, 7)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaObservaciones)\n .addComponent(jspAreaTexto, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n add(panelCampos, java.awt.BorderLayout.PAGE_START);\n\n tablaLotesEgresados.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tablaLotesEgresados.setEnabled(false);\n tablaLotesEgresados.getTableHeader().setReorderingAllowed(false);\n jspTabla.setViewportView(tablaLotesEgresados);\n\n add(jspTabla, java.awt.BorderLayout.CENTER);\n\n botonAgregarLote.setText(\"Agregar Lote\");\n botonAgregarLote.setEnabled(false);\n botonAgregarLote.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonAgregarLoteActionPerformed(evt);\n }\n });\n\n botonQuitarLote.setText(\"Quitar Lote\");\n botonQuitarLote.setEnabled(false);\n botonQuitarLote.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonQuitarLoteActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelBotonesLayout = new javax.swing.GroupLayout(panelBotones);\n panelBotones.setLayout(panelBotonesLayout);\n panelBotonesLayout.setHorizontalGroup(\n panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelBotonesLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(botonQuitarLote, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonAgregarLote, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n panelBotonesLayout.setVerticalGroup(\n panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelBotonesLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(botonAgregarLote)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonQuitarLote)\n .addContainerGap(199, Short.MAX_VALUE))\n );\n\n add(panelBotones, java.awt.BorderLayout.LINE_START);\n\n panelUltimo.setMaximumSize(new java.awt.Dimension(900, 33));\n panelUltimo.setMinimumSize(new java.awt.Dimension(900, 33));\n panelUltimo.setPreferredSize(new java.awt.Dimension(900, 33));\n\n botonRegistrarEgreso.setText(\"Registrar Egreso\");\n botonRegistrarEgreso.setEnabled(false);\n botonRegistrarEgreso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonRegistrarEgresoActionPerformed(evt);\n }\n });\n panelUltimo.add(botonRegistrarEgreso);\n\n botonCancelarEgreso.setText(\"Cancelar Egreso\");\n panelUltimo.add(botonCancelarEgreso);\n\n add(panelUltimo, java.awt.BorderLayout.PAGE_END);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jblLogo = new javax.swing.JLabel();\n nome = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n endereço = new javax.swing.JLabel();\n Cidade = new javax.swing.JLabel();\n txtCiddade = new javax.swing.JTextField();\n JbtnSair = new javax.swing.JButton();\n codClient = new javax.swing.JLabel();\n txtCodProduto = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n JbtnSair1 = new javax.swing.JButton();\n nome1 = new javax.swing.JLabel();\n txtNome1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n nome2 = new javax.swing.JLabel();\n txtNome2 = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblDetalhesVenda = new javax.swing.JTable();\n JbtnSair2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n nome3 = new javax.swing.JLabel();\n txtNome3 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Venda\");\n setBackground(new java.awt.Color(204, 204, 204));\n setResizable(false);\n\n jPanel1.setToolTipText(\"Venda\");\n\n jblLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Pacote_imagens/Camada 2.png\"))); // NOI18N\n\n nome.setText(\"Cód. Produto:\");\n\n txtNome.setToolTipText(\"\");\n txtNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomeActionPerformed(evt);\n }\n });\n\n endereço.setText(\"Tamanho:\");\n\n Cidade.setText(\"ID Cliente:\");\n\n txtCiddade.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCiddadeActionPerformed(evt);\n }\n });\n\n JbtnSair.setText(\"Cancelar\");\n JbtnSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JbtnSairActionPerformed(evt);\n }\n });\n\n codClient.setText(\"Nome Produto:\");\n\n txtCodProduto.setEditable(false);\n txtCodProduto.setBackground(new java.awt.Color(255, 255, 255));\n txtCodProduto.setToolTipText(\"\");\n txtCodProduto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCodProdutoActionPerformed(evt);\n }\n });\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"IMAGEM\");\n jLabel1.setToolTipText(\"\");\n jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"---\", \"35\", \"36\", \"37\", \"38\", \"39\", \"40\", \"41\", \"42\", \"43\" }));\n\n JbtnSair1.setText(\"Comprar\");\n JbtnSair1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JbtnSair1ActionPerformed(evt);\n }\n });\n\n nome1.setText(\"Valor:\");\n\n txtNome1.setEditable(false);\n txtNome1.setBackground(new java.awt.Color(255, 255, 255));\n txtNome1.setToolTipText(\"\");\n txtNome1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNome1ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Nome Cliente:\");\n\n nome2.setText(\"Quantidade: \");\n\n txtNome2.setEditable(false);\n txtNome2.setBackground(new java.awt.Color(255, 255, 255));\n txtNome2.setToolTipText(\"\");\n txtNome2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNome2ActionPerformed(evt);\n }\n });\n\n jScrollPane2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Detalhes da venda\"));\n\n tblDetalhesVenda.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null}\n },\n new String [] {\n \"Produtos\", \"Quantidade\", \"Valor Item\"\n }\n ));\n jScrollPane2.setViewportView(tblDetalhesVenda);\n\n JbtnSair2.setText(\"Carrinho\");\n JbtnSair2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JbtnSair2ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Arial Black\", 1, 14)); // NOI18N\n jLabel4.setText(\"CARRINHO DE COMPRAS\");\n\n nome3.setText(\"Valor Total:\");\n\n txtNome3.setEditable(false);\n txtNome3.setBackground(new java.awt.Color(255, 255, 255));\n txtNome3.setToolTipText(\"\");\n txtNome3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNome3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(353, 353, 353)\n .addComponent(nome3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNome3, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(jblLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(Cidade, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCiddade, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(nome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(codClient)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCodProduto, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(endereço)\n .addComponent(nome1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nome2, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNome1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNome2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 127, Short.MAX_VALUE))\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(JbtnSair2)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(JbtnSair)\n .addGap(18, 18, 18)\n .addComponent(JbtnSair1)\n .addGap(30, 30, 30)))\n .addGap(388, 388, 388))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addComponent(jblLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Cidade, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCiddade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nome, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(codClient, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCodProduto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(endereço)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nome2)\n .addComponent(txtNome2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(7, 7, 7)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nome1)\n .addComponent(txtNome1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(JbtnSair2, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(53, 53, 53)))\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(15, 15, 15)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNome3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nome3))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JbtnSair, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(JbtnSair1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 571, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public VCrearGerente(JFrame vAnterior, Administrador admin) {\n this.vAnterior = vAnterior; \n this.admin = admin;\n initComponents();\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jDateChooser1 = new com.toedter.calendar.JDateChooser();\n jButton1 = new javax.swing.JButton();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Pedidos entregados:\");\n\n jComboBox1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel2.setText(\"Fecha de entrega:\");\n\n jDateChooser1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jButton1.setText(\"Generar factura\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)))\n .addGroup(layout.createSequentialGroup()\n .addGap(85, 85, 85)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(79, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(79, Short.MAX_VALUE))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n seleccionarFecha = new javax.swing.JDialog();\n Aceptar = new javax.swing.JButton();\n Cancelar = new javax.swing.JButton();\n Mes = new javax.swing.JComboBox<>();\n Año = new javax.swing.JComboBox<>();\n Meslbl = new javax.swing.JLabel();\n Añolbl = new javax.swing.JLabel();\n about = new javax.swing.JDialog();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n help = new javax.swing.JDialog();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n jPanel = new javax.swing.JPanel();\n jScrollPane = new javax.swing.JScrollPane();\n jTable = new javax.swing.JTable();\n jMenuBar = new javax.swing.JMenuBar();\n jMenuTrabajador = new javax.swing.JMenu();\n jMenuDNI = new javax.swing.JMenuItem();\n jMenuIBAN = new javax.swing.JMenuItem();\n jMenuCorreo = new javax.swing.JMenuItem();\n jMenuNomina = new javax.swing.JMenu();\n jMenuGenerarNomina = new javax.swing.JMenuItem();\n jMenuAyuda = new javax.swing.JMenu();\n jMenuAyudaa = new javax.swing.JMenuItem();\n jMenuInformacion = new javax.swing.JMenuItem();\n\n seleccionarFecha.setTitle(\"Seleccionar Fecha\");\n seleccionarFecha.setModal(true);\n\n Aceptar.setText(\"Aceptar\");\n Aceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n AceptarActionPerformed(evt);\n }\n });\n\n Cancelar.setText(\"Cancelar\");\n Cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CancelarActionPerformed(evt);\n }\n });\n\n Mes.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\" }));\n\n Año.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\" }));\n\n Meslbl.setText(\"Mes\");\n\n Añolbl.setText(\"Año\");\n\n javax.swing.GroupLayout seleccionarFechaLayout = new javax.swing.GroupLayout(seleccionarFecha.getContentPane());\n seleccionarFecha.getContentPane().setLayout(seleccionarFechaLayout);\n seleccionarFechaLayout.setHorizontalGroup(\n seleccionarFechaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(seleccionarFechaLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(seleccionarFechaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Meslbl)\n .addComponent(Aceptar)\n .addComponent(Mes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(seleccionarFechaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Año, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Cancelar)\n .addComponent(Añolbl))\n .addContainerGap(19, Short.MAX_VALUE))\n );\n seleccionarFechaLayout.setVerticalGroup(\n seleccionarFechaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, seleccionarFechaLayout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(seleccionarFechaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Meslbl)\n .addComponent(Añolbl))\n .addGap(10, 10, 10)\n .addGroup(seleccionarFechaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Mes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Año, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(seleccionarFechaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Aceptar)\n .addComponent(Cancelar))\n .addContainerGap(22, Short.MAX_VALUE))\n );\n\n about.setTitle(\"Informacion\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setText(\"Autores:\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel2.setText(\"Javier de Lama Bermejo\");\n\n jLabel3.setText(\"[email protected]\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel4.setText(\"Patricia tur Bañon\");\n\n jLabel5.setText(\"[email protected]\");\n\n jLabel6.setText(\"Sistemas de Información II\");\n\n jLabel7.setText(\"Universidad de León\");\n\n jLabel8.setText(\"2016\");\n\n javax.swing.GroupLayout aboutLayout = new javax.swing.GroupLayout(about.getContentPane());\n about.getContentPane().setLayout(aboutLayout);\n aboutLayout.setHorizontalGroup(\n aboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(aboutLayout.createSequentialGroup()\n .addGroup(aboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(aboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addGroup(aboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(aboutLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1))\n .addGroup(aboutLayout.createSequentialGroup()\n .addGap(95, 95, 95)\n .addComponent(jLabel2))))\n .addGroup(aboutLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(aboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n aboutLayout.setVerticalGroup(\n aboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(aboutLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5)\n .addGap(30, 30, 30)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel8)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n help.setTitle(\"Ayuda\");\n\n jLabel9.setText(\"Menu Trabajador\");\n\n jLabel10.setText(\"Menu DNI\");\n\n jLabel11.setText(\"Comprueba que los DNI tengan la letra correcta, \");\n\n jLabel12.setText(\"corrigiendolos en el excel si fuese necesario\");\n\n jLabel13.setText(\"Menu IBAN\");\n\n jLabel14.setText(\"Calcula el IBAN de todos los trabajadores\");\n\n jLabel15.setText(\"almacenandolo en el excel\");\n\n jLabel16.setText(\"Menu Correo\");\n\n jLabel17.setText(\"Genera una direccion de correo para cada \");\n\n jLabel18.setText(\"trabajador, guardandola en el excel\");\n\n jLabel19.setText(\"Menu Nomina\");\n\n jLabel20.setText(\"Generar Nomina\");\n\n jLabel21.setText(\"Genera la nomina de cada trabajador\");\n\n jLabel22.setText(\"Menu Ayuda\");\n\n jLabel23.setText(\"Menu Ayuda\");\n\n jLabel24.setText(\"Abre este dialogo :D\");\n\n jLabel25.setText(\"Menu Información\");\n\n jLabel26.setText(\"Informacion sobre los creadores\");\n\n jLabel27.setText(\"Cuando parpadee la pantalla significa que se ha terminado\");\n\n jLabel28.setText(\"almacenandola en pdf en la carpeta ./Nominas/\");\n\n jLabel29.setText(\"la accion solicitada y se ha refrescado la tabla con los nuevos datos\");\n\n javax.swing.GroupLayout helpLayout = new javax.swing.GroupLayout(help.getContentPane());\n help.getContentPane().setLayout(helpLayout);\n helpLayout.setHorizontalGroup(\n helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(helpLayout.createSequentialGroup()\n .addGroup(helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(helpLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22)\n .addComponent(jLabel19)\n .addGroup(helpLayout.createSequentialGroup()\n .addGroup(helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel16)\n .addComponent(jLabel13)\n .addComponent(jLabel10)\n .addComponent(jLabel9)\n .addComponent(jLabel20)\n .addComponent(jLabel23)\n .addComponent(jLabel25))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18)\n .addComponent(jLabel15)\n .addComponent(jLabel14)\n .addComponent(jLabel12)\n .addComponent(jLabel11)\n .addComponent(jLabel17)\n .addComponent(jLabel21)\n .addComponent(jLabel24)\n .addComponent(jLabel26)\n .addComponent(jLabel28)))))\n .addGroup(helpLayout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel29)\n .addComponent(jLabel27))))\n .addContainerGap(50, Short.MAX_VALUE))\n );\n helpLayout.setVerticalGroup(\n helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(helpLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addGroup(helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(helpLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel10))\n .addGroup(helpLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jLabel11)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel15)\n .addGroup(helpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(helpLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel16))\n .addGroup(helpLayout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel17)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel28)\n .addGap(5, 5, 5)\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel23)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel25)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel26)\n .addGap(18, 18, 18)\n .addComponent(jLabel27)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel29)\n .addContainerGap(26, Short.MAX_VALUE))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Ultra Generador de Nominas 9000\");\n\n jTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jScrollPane.setViewportView(jTable);\n fillData();\n model = new DefaultTableModel(data, headers);\n tableWidth = model.getColumnCount() * 150;\n tableHeight = model.getRowCount() * 25;\n jTable.setPreferredSize(new Dimension(tableWidth, tableHeight));\n jTable.setModel(model);\n jTable.setAutoCreateRowSorter(true);\n model = new DefaultTableModel(data, headers);\n jTable.setModel(model);\n jTable.setBackground(Color.LIGHT_GRAY);\n jTable.setAutoResizeMode(jTable.AUTO_RESIZE_ALL_COLUMNS);\n jTable.setEnabled(false);\n jTable.setRowHeight(25);\n jTable.setRowMargin(4);\n tableWidth = model.getColumnCount() * 150;\n tableHeight = model.getRowCount() * 25;\n jTable.setPreferredSize(new Dimension(tableWidth, tableHeight));\n\n javax.swing.GroupLayout jPanelLayout = new javax.swing.GroupLayout(jPanel);\n jPanel.setLayout(jPanelLayout);\n jPanelLayout.setHorizontalGroup(\n jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 1260, Short.MAX_VALUE)\n );\n jPanelLayout.setVerticalGroup(\n jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 677, Short.MAX_VALUE)\n );\n\n jMenuTrabajador.setText(\"Trabajador\");\n\n jMenuDNI.setText(\"Comprobar DNI\");\n jMenuDNI.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuDNIActionPerformed(evt);\n }\n });\n jMenuTrabajador.add(jMenuDNI);\n\n jMenuIBAN.setText(\"Comprobar IBAN\");\n jMenuIBAN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuIBANActionPerformed(evt);\n }\n });\n jMenuTrabajador.add(jMenuIBAN);\n\n jMenuCorreo.setText(\"Generar Correo\");\n jMenuCorreo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuCorreoActionPerformed(evt);\n }\n });\n jMenuTrabajador.add(jMenuCorreo);\n\n jMenuBar.add(jMenuTrabajador);\n\n jMenuNomina.setText(\"Nómina\");\n\n jMenuGenerarNomina.setText(\"Generar Nómina\");\n jMenuGenerarNomina.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuGenerarNominaActionPerformed(evt);\n }\n });\n jMenuNomina.add(jMenuGenerarNomina);\n\n jMenuBar.add(jMenuNomina);\n\n jMenuAyuda.setText(\"Ayuda\");\n\n jMenuAyudaa.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));\n jMenuAyudaa.setText(\"Ayuda\");\n jMenuAyudaa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuAyudaaActionPerformed(evt);\n }\n });\n jMenuAyuda.add(jMenuAyudaa);\n\n jMenuInformacion.setText(\"Información\");\n jMenuInformacion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuInformacionActionPerformed(evt);\n }\n });\n jMenuAyuda.add(jMenuInformacion);\n\n jMenuBar.add(jMenuAyuda);\n\n setJMenuBar(jMenuBar);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jLabel66 = new javax.swing.JLabel();\r\n jPanel1 = new javax.swing.JPanel();\r\n cursosjTabbedPane = new javax.swing.JTabbedPane();\r\n jPanel2 = new javax.swing.JPanel();\r\n jPanel18 = new javax.swing.JPanel();\r\n nomeClientejTextField = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jButton1 = new javax.swing.JButton();\r\n jLabel5 = new javax.swing.JLabel();\r\n cidadejTextField = new javax.swing.JTextField();\r\n jLabel4 = new javax.swing.JLabel();\r\n quandoreprovoujTextField2 = new javax.swing.JTextField();\r\n jLabel8 = new javax.swing.JLabel();\r\n jLabel9 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n nomeIrmao02jTextField = new javax.swing.JTextField();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel30 = new javax.swing.JLabel();\r\n jLabel31 = new javax.swing.JLabel();\r\n seriejTextField = new javax.swing.JTextField();\r\n jLabel32 = new javax.swing.JLabel();\r\n estadojComboBox = new javax.swing.JComboBox();\r\n jLabel51 = new javax.swing.JLabel();\r\n reprovadojComboBox = new javax.swing.JComboBox();\r\n jLabel69 = new javax.swing.JLabel();\r\n nomeIrmao03jTextField = new javax.swing.JTextField();\r\n escolajTextField = new javax.swing.JTextField();\r\n dnIrmao02jDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\n dnIrmao03jDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\njLabel12 = new javax.swing.JLabel();\r\ndnIrmao01jDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\n nomeIrmao01jTextField = new javax.swing.JTextField();\r\n jLabel13 = new javax.swing.JLabel();\r\n jLabel14 = new javax.swing.JLabel();\r\n jLabel15 = new javax.swing.JLabel();\r\n cpfPaijFormattedTextField = new javax.swing.JFormattedTextField();\r\n rgPaijTextField = new javax.swing.JTextField();\r\n dataNascimentoPaijDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\njLabel16 = new javax.swing.JLabel();\r\ncpfMaejFormattedTextField = new javax.swing.JFormattedTextField();\r\nrgMaejTextField = new javax.swing.JTextField();\r\njLabel17 = new javax.swing.JLabel();\r\ndataNascimentoMaejDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\n jLabel18 = new javax.swing.JLabel();\r\n jPanel3 = new javax.swing.JPanel();\r\n jPanel20 = new javax.swing.JPanel();\r\n jLabel71 = new javax.swing.JLabel();\r\n idioma01jTextField = new javax.swing.JTextField();\r\n jLabel84 = new javax.swing.JLabel();\r\n idioma02jTextField = new javax.swing.JTextField();\r\n jLabel85 = new javax.swing.JLabel();\r\n idioma03jTextField = new javax.swing.JTextField();\r\n escolaidioma03jTextField = new javax.swing.JTextField();\r\n jLabel86 = new javax.swing.JLabel();\r\n escolaidioma02jTextField = new javax.swing.JTextField();\r\n jLabel87 = new javax.swing.JLabel();\r\n escolaidioma01jTextField = new javax.swing.JTextField();\r\n jLabel88 = new javax.swing.JLabel();\r\n jLabel89 = new javax.swing.JLabel();\r\n tempoidioma01jTextField = new javax.swing.JTextField();\r\n jLabel90 = new javax.swing.JLabel();\r\n tempoidioma02jTextField = new javax.swing.JTextField();\r\n jLabel91 = new javax.swing.JLabel();\r\n tempoidioma03jTextField = new javax.swing.JTextField();\r\n nivelidioma03jComboBox = new javax.swing.JComboBox();\r\n jLabel92 = new javax.swing.JLabel();\r\n nivelidioma02jComboBox = new javax.swing.JComboBox();\r\n jLabel93 = new javax.swing.JLabel();\r\n nivelidioma01jComboBox = new javax.swing.JComboBox();\r\n jLabel94 = new javax.swing.JLabel();\r\n jPanel21 = new javax.swing.JPanel();\r\n jLabel2 = new javax.swing.JLabel();\r\n paisjTextField = new javax.swing.JTextField();\r\n jLabel3 = new javax.swing.JLabel();\r\n programaescolajTextField = new javax.swing.JTextField();\r\n jLabel6 = new javax.swing.JLabel();\r\n duracaojTextField = new javax.swing.JTextField();\r\n iniciojTextField = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jButton7 = new javax.swing.JButton();\r\n selecionarValorHighSchooljButton = new javax.swing.JButton();\r\n jPanel23 = new javax.swing.JPanel();\r\n jLabel75 = new javax.swing.JLabel();\r\n nomeContatoEmergenciajTextField2 = new javax.swing.JTextField();\r\n jLabel76 = new javax.swing.JLabel();\r\n emailConatoEmergenciajTextField2 = new javax.swing.JTextField();\r\n jLabel78 = new javax.swing.JLabel();\r\n relacaoEmergenciajTextField2 = new javax.swing.JTextField();\r\n telefoneEmergenciajCheckBox = new javax.swing.JCheckBox();\r\n telefoneEmergenciajTextField = new javax.swing.JTextField();\r\n jPanel12 = new javax.swing.JPanel();\r\n jLabel46 = new javax.swing.JLabel();\r\n produtoOrcaemntojComboBox = new javax.swing.JComboBox();\r\n jLabel47 = new javax.swing.JLabel();\r\n valorProdutosMoedaEstrangeirajTextField = new javax.swing.JTextField();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n produtoOrcamentojTable = new javax.swing.JTable();\r\n jPanel13 = new javax.swing.JPanel();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jPanel14 = new javax.swing.JPanel();\r\n jLabel48 = new javax.swing.JLabel();\r\n jLabel49 = new javax.swing.JLabel();\r\n valorCambiojTextField = new javax.swing.JTextField();\r\n valorTotalOrcamentojTextField = new javax.swing.JTextField();\r\n jLabel52 = new javax.swing.JLabel();\r\n buscaBancojButton3 = new javax.swing.JButton();\r\n moedaCambiojComboBox = new javax.swing.JComboBox();\r\n valorProdutosMoedaRealjTextField = new javax.swing.JTextField();\r\n jLabel55 = new javax.swing.JLabel();\r\n jPanel15 = new javax.swing.JPanel();\r\n jPanel22 = new javax.swing.JPanel();\r\n condicaoPagamentojComboBox = new javax.swing.JComboBox();\r\n jLabel53 = new javax.swing.JLabel();\r\n valorOrcamentoFormajTextField = new javax.swing.JTextField();\r\n jLabel54 = new javax.swing.JLabel();\r\n possuiJurosjComboBox = new javax.swing.JComboBox();\r\n jLabel64 = new javax.swing.JLabel();\r\n valorJurosjTextField = new javax.swing.JTextField();\r\n jLabel56 = new javax.swing.JLabel();\r\n totalPagarjTextField = new javax.swing.JTextField();\r\n jLabel68 = new javax.swing.JLabel();\r\n jLabel33 = new javax.swing.JLabel();\r\n saldoReceberjTextField = new javax.swing.JTextField();\r\n jLabel34 = new javax.swing.JLabel();\r\n saldoParcelarjTextField = new javax.swing.JTextField();\r\n buscaBancojButton4 = new javax.swing.JButton();\r\n jPanel16 = new javax.swing.JPanel();\r\n jLabel61 = new javax.swing.JLabel();\r\n tipoParcelamentojComboBox = new javax.swing.JComboBox();\r\n jLabel62 = new javax.swing.JLabel();\r\n meioPagamentojComboBox = new javax.swing.JComboBox();\r\n jLabel63 = new javax.swing.JLabel();\r\n valorParcelamentojTextField = new javax.swing.JTextField();\r\n jLabel58 = new javax.swing.JLabel();\r\n jLabel59 = new javax.swing.JLabel();\r\n numeroParcelasjComboBox = new javax.swing.JComboBox();\r\n valorParcelajTextField = new javax.swing.JTextField();\r\n jLabel60 = new javax.swing.JLabel();\r\n dataVencimentojDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\njPanel24 = new javax.swing.JPanel();\r\njButton8 = new javax.swing.JButton();\r\njButton9 = new javax.swing.JButton();\r\njScrollPane2 = new javax.swing.JScrollPane();\r\nparcelamentojTable = new javax.swing.JTable();\r\njPanel4 = new javax.swing.JPanel();\r\njScrollPane3 = new javax.swing.JScrollPane();\r\nobservacoesjTextArea = new javax.swing.JTextArea();\r\njPanel19 = new javax.swing.JPanel();\r\njScrollPane4 = new javax.swing.JScrollPane();\r\nobsTMjTextArea = new javax.swing.JTextArea();\r\njLabel35 = new javax.swing.JLabel();\r\njPanel17 = new javax.swing.JPanel();\r\njButton5 = new javax.swing.JButton();\r\njButton6 = new javax.swing.JButton();\r\n\r\njLabel66.setText(\"jLabel66\");\r\n\r\nsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\nsetTitle(\"Ficha de High School\");\r\n\r\njPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\ncursosjTabbedPane.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n cursosjTabbedPaneMouseClicked(evt);\r\n }\r\n });\r\n cursosjTabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {\r\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\r\n cursosjTabbedPaneStateChanged(evt);\r\n }\r\n });\r\n\r\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n nomeClientejTextField.setEditable(false);\r\n\r\n jLabel1.setText(\"Selecionar Cliente\");\r\n\r\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/selecionar.png\"))); // NOI18N\r\n jButton1.setText(\"Selecionar\");\r\n jButton1.setToolTipText(\"Selecionar Cliente\");\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel5.setText(\"Cidade\");\r\n\r\n jLabel4.setText(\"Reprovado?\");\r\n\r\n quandoreprovoujTextField2.setEnabled(false);\r\n\r\n jLabel8.setText(\"Nome do Irmão\");\r\n\r\n jLabel9.setText(\"Data Nascimento\");\r\n\r\n jLabel10.setText(\"Nome do Irmão\");\r\n\r\n jLabel11.setText(\"Data Nascimento\");\r\n\r\n jLabel30.setText(\"Nome do Irmão\");\r\n\r\n jLabel31.setText(\"Escola onde estuda\");\r\n\r\n jLabel32.setText(\"Série / Grau\");\r\n\r\n estadojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"AL\", \"AM\", \"AP\", \"BA\", \"CE\", \"DF\", \"ES\", \"GO\", \"MA\", \"MG\", \"MS\", \"MT\", \"PA\", \"PB\", \"PE\", \"PI\", \"PR\", \"RJ\", \"RN\", \"RO\", \"RR\", \"RS\", \"SC\", \"SE\", \"SP\", \"TO\" }));\r\n\r\n jLabel51.setText(\"Estado\");\r\n\r\n reprovadojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Não\", \"Sim\" }));\r\n reprovadojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n reprovadojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel69.setText(\"Se \\\"Sim\\\", quando ?\");\r\n\r\n dnIrmao02jDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dnIrmao02jDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n dnIrmao03jDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dnIrmao03jDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel12.setText(\"Data Nascimento\");\r\n\r\n dnIrmao01jDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dnIrmao01jDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel13.setText(\"Nº CPF Pai\");\r\n\r\n jLabel14.setText(\"Nº RG Pai\");\r\n\r\n jLabel15.setText(\"Data Nascimento Pai\");\r\n\r\n dataNascimentoPaijDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dataNascimentoPaijDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel16.setText(\"Nº CPF Mãe\");\r\n\r\n jLabel17.setText(\"Nº RG Mãe\");\r\n\r\n dataNascimentoMaejDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dataNascimentoMaejDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel18.setText(\"Data Nascimento Mãe\");\r\n\r\n javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);\r\n jPanel18.setLayout(jPanel18Layout);\r\n jPanel18Layout.setHorizontalGroup(\r\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addGap(10, 10, 10)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel1)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(nomeClientejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(28, 28, 28)\r\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(nomeIrmao01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(28, 28, 28)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel9)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(dnIrmao01jDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(escolajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(nomeIrmao02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(nomeIrmao03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(26, 26, 26)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel32, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(1, 17, Short.MAX_VALUE))\r\n .addComponent(dnIrmao02jDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(dnIrmao03jDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(seriejTextField)))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel31)\r\n .addGap(372, 372, 372))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(cidadejTextField)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel51)\r\n .addComponent(estadojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(reprovadojComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(4, 4, 4)\r\n .addComponent(jLabel4)))\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(56, 56, 56)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel69, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel14)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(6, 6, 6)\r\n .addComponent(jLabel17))\r\n .addComponent(rgPaijTextField)\r\n .addComponent(rgMaejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(60, 60, 60)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel18)\r\n .addComponent(dataNascimentoMaejDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel15)\r\n .addComponent(dataNascimentoPaijDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))))))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(quandoreprovoujTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 363, javax.swing.GroupLayout.PREFERRED_SIZE)))))))\r\n .addContainerGap())\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel16)\r\n .addComponent(jLabel13)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(cpfMaejFormattedTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\r\n .addComponent(cpfPaijFormattedTextField, javax.swing.GroupLayout.Alignment.LEADING)))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel18Layout.setVerticalGroup(\r\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(11, 11, 11)\r\n .addComponent(jLabel1)\r\n .addGap(5, 5, 5)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(3, 3, 3)\r\n .addComponent(nomeClientejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jButton1))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel8)\r\n .addComponent(jLabel9))\r\n .addGap(1, 1, 1)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(dnIrmao01jDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(nomeIrmao01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel10)\r\n .addComponent(jLabel11))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(nomeIrmao02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel30)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(nomeIrmao03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(dnIrmao02jDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel12)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(dnIrmao03jDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel32)\r\n .addComponent(jLabel31))\r\n .addGap(6, 6, 6)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(seriejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(escolajTextField))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel51)\r\n .addComponent(jLabel5))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(cidadejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(estadojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel13)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(cpfPaijFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel15)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(dataNascimentoPaijDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel16)\r\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(cpfMaejFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(dataNascimentoMaejDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel4))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel14)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(rgPaijTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel17)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(rgMaejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel69)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(reprovadojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(quandoreprovoujTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(44, 44, 44))\r\n );\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Informações Estudante\", jPanel2);\r\n\r\n jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Idioma\"));\r\n\r\n jLabel71.setText(\"Idioma\");\r\n\r\n jLabel84.setText(\"Idioma\");\r\n\r\n jLabel85.setText(\"Idioma\");\r\n\r\n jLabel86.setText(\"Escola\");\r\n\r\n jLabel87.setText(\"Escola\");\r\n\r\n jLabel88.setText(\"Escola\");\r\n\r\n jLabel89.setText(\"Tempo\");\r\n\r\n jLabel90.setText(\"Tempo\");\r\n\r\n jLabel91.setText(\"Tempo\");\r\n\r\n nivelidioma03jComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ótimo\", \"Bom\", \"Regular\", \"Ruim\" }));\r\n\r\n jLabel92.setText(\"Nível\");\r\n\r\n nivelidioma02jComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ótimo\", \"Bom\", \"Regular\", \"Ruim\" }));\r\n\r\n jLabel93.setText(\"Nível\");\r\n\r\n nivelidioma01jComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ótimo\", \"Bom\", \"Regular\", \"Ruim\" }));\r\n\r\n jLabel94.setText(\"Nível\");\r\n\r\n javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);\r\n jPanel20.setLayout(jPanel20Layout);\r\n jPanel20Layout.setHorizontalGroup(\r\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(idioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel84, javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel85)))\r\n .addComponent(jLabel71)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(idioma02jTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)\r\n .addComponent(idioma01jTextField, javax.swing.GroupLayout.Alignment.LEADING)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel87)\r\n .addComponent(escolaidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jLabel88)\r\n .addComponent(escolaidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel86)\r\n .addComponent(escolaidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel90)\r\n .addComponent(tempoidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jLabel89)\r\n .addComponent(tempoidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel91)\r\n .addComponent(tempoidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel94)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel93, javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel92, javax.swing.GroupLayout.Alignment.TRAILING))\r\n .addGap(97, 97, 97))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(nivelidioma03jComboBox, javax.swing.GroupLayout.Alignment.LEADING, 0, 110, Short.MAX_VALUE)\r\n .addComponent(nivelidioma02jComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(nivelidioma01jComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel20Layout.setVerticalGroup(\r\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(nivelidioma01jComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel94)\r\n .addGap(26, 26, 26)))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel93)\r\n .addGap(26, 26, 26))\r\n .addComponent(nivelidioma02jComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel92)\r\n .addGap(26, 26, 26))\r\n .addComponent(nivelidioma03jComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(tempoidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel89)\r\n .addGap(26, 26, 26)))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel90)\r\n .addGap(26, 26, 26))\r\n .addComponent(tempoidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel91)\r\n .addGap(26, 26, 26))\r\n .addComponent(tempoidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel84)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(idioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel85))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(escolaidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(idioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel88)\r\n .addComponent(jLabel71))\r\n .addGap(26, 26, 26)))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel87)\r\n .addGap(26, 26, 26))\r\n .addComponent(escolaidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel86)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(escolaidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(idioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Programa\"));\r\n\r\n jLabel2.setText(\"País\");\r\n\r\n paisjTextField.setEditable(false);\r\n\r\n jLabel3.setText(\"Programa/Escola\");\r\n\r\n programaescolajTextField.setEditable(false);\r\n\r\n jLabel6.setText(\"Duração\");\r\n\r\n duracaojTextField.setEditable(false);\r\n\r\n iniciojTextField.setEditable(false);\r\n\r\n jLabel7.setText(\"Início\");\r\n\r\n jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/selecionar.png\"))); // NOI18N\r\n jButton7.setText(\"Selecionar\");\r\n jButton7.setToolTipText(\"Selecionar Escola\");\r\n jButton7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton7ActionPerformed(evt);\r\n }\r\n });\r\n\r\n selecionarValorHighSchooljButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/selecionar.png\"))); // NOI18N\r\n selecionarValorHighSchooljButton.setText(\"Selecionar\");\r\n selecionarValorHighSchooljButton.setToolTipText(\"Selecionar Valores\");\r\n selecionarValorHighSchooljButton.setEnabled(false);\r\n selecionarValorHighSchooljButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n selecionarValorHighSchooljButtonActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\r\n jPanel21.setLayout(jPanel21Layout);\r\n jPanel21Layout.setHorizontalGroup(\r\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel6)\r\n .addComponent(duracaojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(paisjTextField)\r\n .addComponent(iniciojTextField))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(selecionarValorHighSchooljButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)))))\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addComponent(jLabel3)\r\n .addGap(172, 172, 172)\r\n .addComponent(jLabel2))\r\n .addComponent(programaescolajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n );\r\n jPanel21Layout.setVerticalGroup(\r\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel3)\r\n .addComponent(jLabel2))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(programaescolajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton7)\r\n .addComponent(paisjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel6)\r\n .addComponent(jLabel7))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(duracaojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(iniciojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(selecionarValorHighSchooljButton))\r\n .addGap(23, 23, 23))\r\n );\r\n\r\n jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Contato de Emergência no Brasil\"));\r\n\r\n jLabel75.setText(\"Nome\");\r\n\r\n jLabel76.setText(\"E-mail\");\r\n\r\n jLabel78.setText(\"Relação\");\r\n\r\n telefoneEmergenciajCheckBox.setText(\"9-Telefone\");\r\n telefoneEmergenciajCheckBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n telefoneEmergenciajCheckBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n telefoneEmergenciajTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n telefoneEmergenciajTextFieldFocusLost(evt);\r\n }\r\n });\r\n telefoneEmergenciajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n telefoneEmergenciajTextFieldKeyPressed(evt);\r\n }\r\n public void keyReleased(java.awt.event.KeyEvent evt) {\r\n telefoneEmergenciajTextFieldKeyReleased(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n telefoneEmergenciajTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\r\n jPanel23.setLayout(jPanel23Layout);\r\n jPanel23Layout.setHorizontalGroup(\r\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addComponent(emailConatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(relacaoEmergenciajTextField2))\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(nomeContatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel76)\r\n .addComponent(jLabel75))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(telefoneEmergenciajTextField)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel78)\r\n .addComponent(telefoneEmergenciajCheckBox))\r\n .addGap(0, 104, Short.MAX_VALUE)))))\r\n .addContainerGap())\r\n );\r\n jPanel23Layout.setVerticalGroup(\r\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addComponent(jLabel75)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(nomeContatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addComponent(telefoneEmergenciajCheckBox)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(telefoneEmergenciajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel76)\r\n .addComponent(jLabel78))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(emailConatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(relacaoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(38, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\r\n jPanel3.setLayout(jPanel3Layout);\r\n jPanel3Layout.setHorizontalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel21, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel3Layout.setVerticalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Informações Complentares\", jPanel3);\r\n\r\n jLabel46.setText(\"Produtos\");\r\n\r\n jLabel47.setText(\"Valor (Moeda Estrangeira)\");\r\n\r\n valorProdutosMoedaEstrangeirajTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorProdutosMoedaEstrangeirajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorProdutosMoedaEstrangeirajTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n produtoOrcamentojTable.setModel(new javax.swing.table.DefaultTableModel(\r\n new Object [][] {\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null}\r\n },\r\n new String [] {\r\n \"Produtos Orçamento\", \"Moeda Estrangeira\", \"Valor R$\"\r\n }\r\n ) {\r\n boolean[] canEdit = new boolean [] {\r\n false, false, false\r\n };\r\n\r\n public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return canEdit [columnIndex];\r\n }\r\n });\r\n jScrollPane1.setViewportView(produtoOrcamentojTable);\r\n if (produtoOrcamentojTable.getColumnModel().getColumnCount() > 0) {\r\n produtoOrcamentojTable.getColumnModel().getColumn(0).setResizable(false);\r\n produtoOrcamentojTable.getColumnModel().getColumn(0).setPreferredWidth(290);\r\n produtoOrcamentojTable.getColumnModel().getColumn(1).setResizable(false);\r\n produtoOrcamentojTable.getColumnModel().getColumn(1).setPreferredWidth(80);\r\n produtoOrcamentojTable.getColumnModel().getColumn(2).setResizable(false);\r\n produtoOrcamentojTable.getColumnModel().getColumn(2).setPreferredWidth(50);\r\n }\r\n\r\n jPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/adicionar.png\"))); // NOI18N\r\n jButton2.setText(\"Adicionar\");\r\n jButton2.setToolTipText(\"Adicionar novo produtos no orçamento\");\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/excluir.png\"))); // NOI18N\r\n jButton3.setText(\"Excluir\");\r\n jButton3.setToolTipText(\"Excluir produto no orçamento\");\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\r\n jPanel13.setLayout(jPanel13Layout);\r\n jPanel13Layout.setHorizontalGroup(\r\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(127, 127, 127))\r\n );\r\n jPanel13Layout.setVerticalGroup(\r\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel13Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton2)\r\n .addComponent(jButton3))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jLabel48.setText(\"Moeda\");\r\n\r\n jLabel49.setText(\"Valor Câmbio\");\r\n\r\n valorCambiojTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorCambiojTextField.setEnabled(false);\r\n\r\n valorTotalOrcamentojTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorTotalOrcamentojTextField.setEnabled(false);\r\n\r\n jLabel52.setText(\"Valor Total R$\");\r\n\r\n buscaBancojButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/icones/cambio.png\"))); // NOI18N\r\n buscaBancojButton3.setToolTipText(\"Alterar Câmbio\");\r\n buscaBancojButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n buscaBancojButton3ActionPerformed(evt);\r\n }\r\n });\r\n\r\n moedaCambiojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n moedaCambiojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\r\n jPanel14.setLayout(jPanel14Layout);\r\n jPanel14Layout.setHorizontalGroup(\r\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel14Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel48)\r\n .addComponent(moedaCambiojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel49)\r\n .addGroup(jPanel14Layout.createSequentialGroup()\r\n .addComponent(valorCambiojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(buscaBancojButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorTotalOrcamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel52))\r\n .addContainerGap())\r\n );\r\n jPanel14Layout.setVerticalGroup(\r\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel14Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel48)\r\n .addComponent(jLabel49)\r\n .addComponent(jLabel52))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(valorTotalOrcamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorCambiojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(moedaCambiojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(buscaBancojButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap())\r\n );\r\n\r\n valorProdutosMoedaRealjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorProdutosMoedaRealjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorProdutosMoedaRealjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel55.setText(\"Valor R$\");\r\n\r\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\r\n jPanel12.setLayout(jPanel12Layout);\r\n jPanel12Layout.setHorizontalGroup(\r\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addComponent(jLabel46)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(produtoOrcaemntojComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorProdutosMoedaEstrangeirajTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel47, javax.swing.GroupLayout.Alignment.TRAILING))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel55)\r\n .addComponent(valorProdutosMoedaRealjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap())\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(170, 170, 170))\r\n );\r\n jPanel12Layout.setVerticalGroup(\r\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel46)\r\n .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel55))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(produtoOrcaemntojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorProdutosMoedaEstrangeirajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorProdutosMoedaRealjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Produtos\", jPanel12);\r\n\r\n jPanel22.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n condicaoPagamentojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"À Vista\", \"Parcelado\" }));\r\n condicaoPagamentojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n condicaoPagamentojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel53.setText(\"Forma de Pagamento\");\r\n\r\n valorOrcamentoFormajTextField.setEditable(false);\r\n valorOrcamentoFormajTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorOrcamentoFormajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorOrcamentoFormajTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel54.setText(\"Valor Orçamento\");\r\n\r\n possuiJurosjComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Não\", \"Sim\" }));\r\n possuiJurosjComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n possuiJurosjComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel64.setText(\"Acrescentar Juros\");\r\n\r\n valorJurosjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorJurosjTextField.setEnabled(false);\r\n valorJurosjTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n valorJurosjTextFieldFocusLost(evt);\r\n }\r\n });\r\n valorJurosjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyReleased(java.awt.event.KeyEvent evt) {\r\n valorJurosjTextFieldKeyReleased(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorJurosjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel56.setText(\"Valor Juros\");\r\n\r\n totalPagarjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n totalPagarjTextField.setEnabled(false);\r\n\r\n jLabel68.setText(\"Total a Pagar\");\r\n\r\n jLabel33.setText(\"Saldo a Receber\");\r\n\r\n saldoReceberjTextField.setEditable(false);\r\n saldoReceberjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n saldoReceberjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n saldoReceberjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel34.setText(\"Saldo a Parcelar\");\r\n\r\n saldoParcelarjTextField.setEditable(false);\r\n saldoParcelarjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n saldoParcelarjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n saldoParcelarjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n buscaBancojButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/icones/cambio.png\"))); // NOI18N\r\n buscaBancojButton4.setToolTipText(\"Calculo de Juros\");\r\n buscaBancojButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n buscaBancojButton4ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);\r\n jPanel22.setLayout(jPanel22Layout);\r\n jPanel22Layout.setHorizontalGroup(\r\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(condicaoPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel53))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorOrcamentoFormajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel54))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(possuiJurosjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel64))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addComponent(valorJurosjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(buscaBancojButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jLabel56))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(totalPagarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel68)))\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel33)\r\n .addComponent(saldoReceberjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(saldoParcelarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel34))))\r\n .addContainerGap())\r\n );\r\n jPanel22Layout.setVerticalGroup(\r\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel53)\r\n .addComponent(jLabel54)\r\n .addComponent(jLabel56)\r\n .addComponent(jLabel64)\r\n .addComponent(jLabel68))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(condicaoPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorOrcamentoFormajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(possuiJurosjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorJurosjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(totalPagarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(buscaBancojButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addComponent(jLabel34)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(saldoParcelarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addComponent(jLabel33)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(saldoReceberjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jLabel61.setText(\"Tipo de Parcelamento\");\r\n\r\n tipoParcelamentojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Matriz\", \"Loja\", \"Fornecedor\" }));\r\n\r\n jLabel62.setText(\"Forma de Pagamento\");\r\n\r\n meioPagamentojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecione\", \"Dinheiro\", \"Boleto\", \"Cartão de crédito\", \"Cartão de crédito autorizado\", \"Cartão débito\", \"Cheque\", \"Déposito\", \"Financiamento banco\" }));\r\n meioPagamentojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n meioPagamentojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel63.setText(\"Data Primeiro Vencimento\");\r\n\r\n valorParcelamentojTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorParcelamentojTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n valorParcelamentojTextFieldFocusLost(evt);\r\n }\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n valorParcelamentojTextFieldFocusGained(evt);\r\n }\r\n });\r\n valorParcelamentojTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorParcelamentojTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel58.setText(\"Valor a Parcelar \");\r\n\r\n jLabel59.setText(\"Nº Parcelas\");\r\n\r\n numeroParcelasjComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\" }));\r\n numeroParcelasjComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n numeroParcelasjComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n valorParcelajTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorParcelajTextField.setEnabled(false);\r\n valorParcelajTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n valorParcelajTextFieldFocusGained(evt);\r\n }\r\n });\r\n valorParcelajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n valorParcelajTextFieldKeyPressed(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorParcelajTextFieldKeyTyped(evt);\r\n }\r\n public void keyReleased(java.awt.event.KeyEvent evt) {\r\n valorParcelajTextFieldKeyReleased(evt);\r\n }\r\n });\r\n\r\n jLabel60.setText(\"Valor Parcela\");\r\n\r\n dataVencimentojDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dataVencimentojDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\r\n jPanel16.setLayout(jPanel16Layout);\r\n jPanel16Layout.setHorizontalGroup(\r\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel62)\r\n .addComponent(meioPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGap(52, 52, 52)\r\n .addComponent(jLabel61)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(tipoParcelamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel63, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(dataVencimentojDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel58)\r\n .addComponent(valorParcelamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(109, 109, 109)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel59)\r\n .addComponent(numeroParcelasjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorParcelajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n jPanel16Layout.setVerticalGroup(\r\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel62)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(meioPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(tipoParcelamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel63)\r\n .addComponent(jLabel61))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(dataVencimentojDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addComponent(jLabel59)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(numeroParcelasjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel58)\r\n .addComponent(jLabel60))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorParcelajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorParcelamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n\r\n jPanel24.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/adicionar.png\"))); // NOI18N\r\n jButton8.setText(\"Adicionar\");\r\n jButton8.setToolTipText(\"Adicionar forma de pagamento\");\r\n jButton8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton8ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/excluir.png\"))); // NOI18N\r\n jButton9.setText(\"Excluir\");\r\n jButton9.setToolTipText(\"Excluir forma de pagamento\");\r\n jButton9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton9ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);\r\n jPanel24.setLayout(jPanel24Layout);\r\n jPanel24Layout.setHorizontalGroup(\r\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()\r\n .addGap(24, 24, 24)\r\n .addComponent(jButton8)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)\r\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(22, 22, 22))\r\n );\r\n jPanel24Layout.setVerticalGroup(\r\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton8)\r\n .addComponent(jButton9))\r\n .addContainerGap())\r\n );\r\n\r\n parcelamentojTable.setModel(new javax.swing.table.DefaultTableModel(\r\n new Object [][] {\r\n {null, null, null, null, null},\r\n {null, null, null, null, null},\r\n {null, null, null, null, null},\r\n {null, null, null, null, null}\r\n },\r\n new String [] {\r\n \"Forma Pagamento\", \"Tipo Parcelmaneto\", \"Valor a Parcelar\", \"Nº Parcelas\", \"Valor Parcela\"\r\n }\r\n ) {\r\n boolean[] canEdit = new boolean [] {\r\n false, false, false, false, false\r\n };\r\n\r\n public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return canEdit [columnIndex];\r\n }\r\n });\r\n jScrollPane2.setViewportView(parcelamentojTable);\r\n\r\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\r\n jPanel15.setLayout(jPanel15Layout);\r\n jPanel15Layout.setHorizontalGroup(\r\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel15Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jPanel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel15Layout.createSequentialGroup()\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 551, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n .addGroup(jPanel15Layout.createSequentialGroup()\r\n .addGap(140, 140, 140)\r\n .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel15Layout.setVerticalGroup(\r\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel15Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(306, 306, 306))\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Forma Pagto\", jPanel15);\r\n\r\n observacoesjTextArea.setColumns(20);\r\n observacoesjTextArea.setRows(5);\r\n jScrollPane3.setViewportView(observacoesjTextArea);\r\n\r\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\r\n jPanel4.setLayout(jPanel4Layout);\r\n jPanel4Layout.setHorizontalGroup(\r\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n jPanel4Layout.setVerticalGroup(\r\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 460, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Obs\", jPanel4);\r\n\r\n obsTMjTextArea.setColumns(20);\r\n obsTMjTextArea.setRows(5);\r\n jScrollPane4.setViewportView(obsTMjTextArea);\r\n\r\n jLabel35.setText(\"Observações que serão enviadas ao Departamento Responsável e ao Departamento Financeiro da TravelMate\");\r\n\r\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\r\n jPanel19.setLayout(jPanel19Layout);\r\n jPanel19Layout.setHorizontalGroup(\r\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel19Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jScrollPane4)\r\n .addGroup(jPanel19Layout.createSequentialGroup()\r\n .addComponent(jLabel35)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n );\r\n jPanel19Layout.setVerticalGroup(\r\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel35)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 440, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Obs TM\", jPanel19);\r\n\r\n jPanel17.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/confirmar.png\"))); // NOI18N\r\n jButton5.setText(\"Confirmar\");\r\n jButton5.setToolTipText(\"Confirma Cadastro da Ficha de High School\");\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/cancel.png\"))); // NOI18N\r\n jButton6.setText(\"Cancelar\");\r\n jButton6.setToolTipText(\"Cancela Ficha de Curso\");\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\r\n jPanel17.setLayout(jPanel17Layout);\r\n jPanel17Layout.setHorizontalGroup(\r\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel17Layout.createSequentialGroup()\r\n .addContainerGap(85, Short.MAX_VALUE)\r\n .addComponent(jButton5)\r\n .addGap(37, 37, 37)\r\n .addComponent(jButton6)\r\n .addGap(86, 86, 86))\r\n );\r\n jPanel17Layout.setVerticalGroup(\r\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel17Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton5)\r\n .addComponent(jButton6))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(99, 99, 99))\r\n .addComponent(cursosjTabbedPane)\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(cursosjTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 510, Short.MAX_VALUE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n pack();\r\n }", "public static void mostrarAfirmacionDeCreacion(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, afirmacionDeCreacion, \"BancoSoft: Mensaje\", JOptionPane.INFORMATION_MESSAGE);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtNombre1 = new javax.swing.JTextField();\n txtNombre2 = new javax.swing.JTextField();\n txtApellido1 = new javax.swing.JTextField();\n txtApellido2 = new javax.swing.JTextField();\n txtCedula = new javax.swing.JTextField();\n btnBuscar = new javax.swing.JButton();\n jLabel16 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel11 = new javax.swing.JLabel();\n cmbTipoIncobrable = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtDescripcion = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n txtFecha = new com.toedter.calendar.JDateChooser();\n btnModificar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(stinventario.STInventarioApp.class).getContext().getResourceMap(frmClienteIncobrable.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString(\"jPanel1.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, resourceMap.getColor(\"jPanel1.border.titleColor\"))); // NOI18N\n jPanel1.setForeground(resourceMap.getColor(\"jPanel1.foreground\")); // NOI18N\n jPanel1.setName(\"jPanel1\"); // NOI18N\n\n jLabel1.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jLabel1.setForeground(resourceMap.getColor(\"jLabel1.foreground\")); // NOI18N\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n jLabel2.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel2.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\n\n jLabel3.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel3.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel3.setText(resourceMap.getString(\"jLabel3.text\")); // NOI18N\n jLabel3.setName(\"jLabel3\"); // NOI18N\n\n jLabel4.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel4.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel4.setText(resourceMap.getString(\"jLabel4.text\")); // NOI18N\n jLabel4.setName(\"jLabel4\"); // NOI18N\n\n jLabel5.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel5.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel5.setText(resourceMap.getString(\"jLabel5.text\")); // NOI18N\n jLabel5.setName(\"jLabel5\"); // NOI18N\n\n txtNombre1.setEditable(false);\n txtNombre1.setText(resourceMap.getString(\"txtNombre1.text\")); // NOI18N\n txtNombre1.setName(\"txtNombre1\"); // NOI18N\n\n txtNombre2.setEditable(false);\n txtNombre2.setText(resourceMap.getString(\"txtNombre2.text\")); // NOI18N\n txtNombre2.setName(\"txtNombre2\"); // NOI18N\n\n txtApellido1.setEditable(false);\n txtApellido1.setText(resourceMap.getString(\"txtApellido1.text\")); // NOI18N\n txtApellido1.setName(\"txtApellido1\"); // NOI18N\n\n txtApellido2.setEditable(false);\n txtApellido2.setText(resourceMap.getString(\"txtApellido2.text\")); // NOI18N\n txtApellido2.setName(\"txtApellido2\"); // NOI18N\n\n txtCedula.setBackground(resourceMap.getColor(\"txtCedula.background\")); // NOI18N\n txtCedula.setText(resourceMap.getString(\"txtCedula.text\")); // NOI18N\n txtCedula.setName(\"txtCedula\"); // NOI18N\n txtCedula.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtCedulaFocusLost(evt);\n }\n });\n txtCedula.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCedulaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCedulaKeyReleased(evt);\n }\n });\n\n btnBuscar.setIcon(resourceMap.getIcon(\"btnBuscar.icon\")); // NOI18N\n btnBuscar.setText(resourceMap.getString(\"btnBuscar.text\")); // NOI18N\n btnBuscar.setName(\"btnBuscar\"); // NOI18N\n btnBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarActionPerformed(evt);\n }\n });\n\n jLabel16.setName(\"jLabel16\"); // NOI18N\n\n jButton1.setText(resourceMap.getString(\"jButton1.text\")); // NOI18N\n jButton1.setName(\"jButton1\"); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCedula))\n .addComponent(txtApellido1)\n .addComponent(txtNombre1, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNombre2, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtApellido2, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE))\n .addComponent(btnBuscar)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel16)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jButton1)\n .addComponent(txtCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscar))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNombre1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(txtNombre2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtApellido1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(22, 22, 22)\n .addComponent(jLabel16))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtApellido2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString(\"jPanel2.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, resourceMap.getColor(\"jPanel2.border.titleColor\"))); // NOI18N\n jPanel2.setName(\"jPanel2\"); // NOI18N\n\n jLabel11.setText(resourceMap.getString(\"jLabel11.text\")); // NOI18N\n jLabel11.setName(\"jLabel11\"); // NOI18N\n\n cmbTipoIncobrable.setName(\"cmbTipoIncobrable\"); // NOI18N\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n txtDescripcion.setColumns(20);\n txtDescripcion.setRows(5);\n txtDescripcion.setName(\"txtDescripcion\"); // NOI18N\n jScrollPane1.setViewportView(txtDescripcion);\n\n jLabel6.setText(resourceMap.getString(\"jLabel6.text\")); // NOI18N\n jLabel6.setName(\"jLabel6\"); // NOI18N\n\n jLabel27.setText(resourceMap.getString(\"jLabel27.text\")); // NOI18N\n jLabel27.setName(\"jLabel27\"); // NOI18N\n\n txtFecha.setDateFormatString(resourceMap.getString(\"txtFecha.dateFormatString\")); // NOI18N\n txtFecha.setName(\"txtFecha\"); // NOI18N\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel11)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(cmbTipoIncobrable, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addComponent(jLabel27)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 517, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbTipoIncobrable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addComponent(jLabel27)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnModificar.setIcon(resourceMap.getIcon(\"btnModificar.icon\")); // NOI18N\n btnModificar.setText(resourceMap.getString(\"btnModificar.text\")); // NOI18N\n btnModificar.setName(\"btnModificar\"); // NOI18N\n btnModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnModificarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(496, 496, 496)\n .addComponent(btnModificar))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(11, 11, 11)\n .addComponent(btnModificar)\n .addContainerGap(15, Short.MAX_VALUE))\n );\n\n pack();\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public ZafVen21_02(java.awt.Frame parent, boolean modal, Librerias.ZafParSis.ZafParSis obj, javax.swing.JInternalFrame JIntFraPri, String strSql2 ) \n {\n super(parent, modal);\n try\n {\t\n\t this.objZafParSis = (Librerias.ZafParSis.ZafParSis) obj.clone();\n\t JIntFra=JIntFraPri;\n\n objTblCelRenLblCanPen = new Librerias.ZafTblUti.ZafTblCelRenLbl.ZafTblCelRenLbl();\n objTblCelRenLblCanNEnv = new Librerias.ZafTblUti.ZafTblCelRenLbl.ZafTblCelRenLbl();\n \n initComponents();\n\t objUti = new ZafUtil();\n \n strSql02 = strSql2;\n\n lblTit.setText(objZafParSis.getNombreMenu());\n \n }\n catch (CloneNotSupportedException e){ objUti.mostrarMsgErr_F1(this, e); }\n }", "public JDialogStampaArticoli(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n\n KeyValuePair kv = new KeyValuePair(null, \"<non stampare prezzi>\");\n KeyValuePair kv1 = new KeyValuePair(\"EL1\", \"<Ultimi prezzi di Vendita>\");\n KeyValuePair kv2 = new KeyValuePair(\"EL2\", \"<Ultimi prezzi di Acquisto>\");\n SwingUtils.initJComboFromDb(listini, Db.getConn(), \"select codice, descrizione from tipi_listino order by descrizione\", \"codice\", \"descrizione\", kv, kv1, kv2);\n Vector v = new Vector();\n v.add(new KeyValuePair(\"art.codice\", \"Codice\"));\n v.add(new KeyValuePair(\"art.descrizione\", \"Descrizione\"));\n v.add(new KeyValuePair(\"cat.categoria, sotcat.sottocategoria, art.codice\", \"Categoria, Sottocategoria, Codice articolo\"));\n v.add(new KeyValuePair(\"cat.categoria, sotcat.sottocategoria, art.descrizione\", \"Categoria, Sottocategoria, Descrizione articolo\"));\n SwingUtils.initJComboFromKVList(ordine, v);\n\n v = new Vector();\n v.add(new KeyValuePair(\"pdf\", \"PDF\"));\n v.add(new KeyValuePair(\"html\", \"HTML\"));\n v.add(new KeyValuePair(\"xls\", \"EXCEL\"));\n SwingUtils.initJComboFromKVList(formato, v);\n \n checkSorgente();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n txtHoraLembrete = new javax.swing.JFormattedTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabCodigo = new javax.swing.JLabel();\n jLabEmpresa = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtDescricaoLembrete = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n txtDataLembrete = new com.toedter.calendar.JDateChooser();\n jLbDataLembrete = new javax.swing.JLabel();\n jBtnExcluir = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jBtnAlterarLembrete = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLbHoraLembrete = new javax.swing.JLabel();\n jBtnCancel = new javax.swing.JButton();\n jBtnEditarLembrete = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n\n jButton1.setText(\"jButton1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Lembrete\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(223, 237, 253));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel4.setText(\"Código:\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 120, -1, 20));\n\n try {\n txtHoraLembrete.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##:##\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n txtHoraLembrete.setText(\"00:00\");\n jPanel1.add(txtHoraLembrete, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 180, 42, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Raavi\", 1, 18)); // NOI18N\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/lembrete.png\"))); // NOI18N\n jLabel1.setText(\"Lembrete:\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(21, 29, -1, -1));\n\n jLabCodigo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabCodigo.setText(\"codigo\");\n jPanel1.add(jLabCodigo, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 120, -1, 20));\n\n jLabEmpresa.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabEmpresa.setText(\"empresa\");\n jPanel1.add(jLabEmpresa, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 150, 176, 20));\n\n txtDescricaoLembrete.setColumns(20);\n txtDescricaoLembrete.setRows(5);\n jScrollPane1.setViewportView(txtDescricaoLembrete);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 260, 372, 160));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel6.setText(\"Descrição:\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, -1, -1));\n jPanel1.add(txtDataLembrete, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 180, 140, -1));\n\n jLbDataLembrete.setText(\"Exibe Data\");\n jPanel1.add(jLbDataLembrete, new org.netbeans.lib.awtextra.AbsoluteConstraints(81, 132, 142, 23));\n\n jBtnExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/excluir.png\"))); // NOI18N\n jBtnExcluir.setText(\"Excluir\");\n jBtnExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBtnExcluirActionPerformed(evt);\n }\n });\n jPanel1.add(jBtnExcluir, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 440, -1, -1));\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/sair.gif\"))); // NOI18N\n jButton2.setText(\"Sair\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 500, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel5.setText(\"Empresa:\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 150, -1, 20));\n\n jBtnAlterarLembrete.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/ok.png\"))); // NOI18N\n jBtnAlterarLembrete.setText(\"Salvar\");\n jBtnAlterarLembrete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBtnAlterarLembreteActionPerformed(evt);\n }\n });\n jPanel1.add(jBtnAlterarLembrete, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 440, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel2.setText(\"Data:\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 180, -1, 20));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel3.setText(\"Hora:\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 180, -1, 20));\n\n jLbHoraLembrete.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLbHoraLembrete.setText(\"Exibe Hora\");\n jPanel1.add(jLbHoraLembrete, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 180, 60, 20));\n\n jBtnCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/cancelar.png\"))); // NOI18N\n jBtnCancel.setText(\"Cancelar\");\n jBtnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBtnCancelActionPerformed(evt);\n }\n });\n jPanel1.add(jBtnCancel, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 440, -1, -1));\n\n jBtnEditarLembrete.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/editar.png\"))); // NOI18N\n jBtnEditarLembrete.setText(\"Editar\");\n jBtnEditarLembrete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBtnEditarLembreteActionPerformed(evt);\n }\n });\n jPanel1.add(jBtnEditarLembrete, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 440, -1, -1));\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/leiaute/img2.png\"))); // NOI18N\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 670, 100));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 672, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 552, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n add1 = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jButton6 = new javax.swing.JButton();\n p = new javax.swing.JDialog();\n jPanel3 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jButton7 = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jButton8 = new javax.swing.JButton();\n a = new javax.swing.JDialog();\n jPanel4 = new javax.swing.JPanel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jButton9 = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jButton10 = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n jButton11 = new javax.swing.JButton();\n Gerente = new javax.swing.JDialog();\n jPanel5 = new javax.swing.JPanel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n nombre = new javax.swing.JTextField();\n usuario = new javax.swing.JTextField();\n id = new javax.swing.JFormattedTextField();\n altura = new javax.swing.JFormattedTextField();\n peso = new javax.swing.JFormattedTextField();\n edad = new javax.swing.JSpinner();\n sexo = new javax.swing.JComboBox<>();\n civil = new javax.swing.JComboBox<>();\n cargo = new javax.swing.JComboBox<>();\n contra = new javax.swing.JPasswordField();\n jButton12 = new javax.swing.JButton();\n Personal = new javax.swing.JDialog();\n jPanel6 = new javax.swing.JPanel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n jLabel32 = new javax.swing.JLabel();\n jLabel33 = new javax.swing.JLabel();\n jLabel34 = new javax.swing.JLabel();\n nombre1 = new javax.swing.JTextField();\n id1 = new javax.swing.JFormattedTextField();\n altura1 = new javax.swing.JFormattedTextField();\n peso1 = new javax.swing.JFormattedTextField();\n edad1 = new javax.swing.JSpinner();\n sexo1 = new javax.swing.JComboBox<>();\n civil1 = new javax.swing.JComboBox<>();\n jButton13 = new javax.swing.JButton();\n jLabel35 = new javax.swing.JLabel();\n ocupacion = new javax.swing.JTextField();\n jLabel36 = new javax.swing.JLabel();\n horario = new javax.swing.JTextField();\n jLabel37 = new javax.swing.JLabel();\n semanas = new javax.swing.JTextField();\n jLabel38 = new javax.swing.JLabel();\n sueldo = new javax.swing.JFormattedTextField();\n Comic = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n jLabel39 = new javax.swing.JLabel();\n jLabel40 = new javax.swing.JLabel();\n titulo = new javax.swing.JTextField();\n jLabel41 = new javax.swing.JLabel();\n desc = new javax.swing.JTextField();\n jLabel42 = new javax.swing.JLabel();\n jLabel43 = new javax.swing.JLabel();\n jLabel44 = new javax.swing.JLabel();\n jLabel45 = new javax.swing.JLabel();\n jLabel46 = new javax.swing.JLabel();\n jLabel47 = new javax.swing.JLabel();\n color = new javax.swing.JTextField();\n size = new javax.swing.JComboBox<>();\n punt = new javax.swing.JSpinner();\n ingreso = new javax.swing.JComboBox<>();\n escala = new javax.swing.JSpinner();\n volumen = new javax.swing.JSpinner();\n jButton14 = new javax.swing.JButton();\n Juego = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n jLabel48 = new javax.swing.JLabel();\n jLabel49 = new javax.swing.JLabel();\n titulo1 = new javax.swing.JTextField();\n jLabel50 = new javax.swing.JLabel();\n desc1 = new javax.swing.JTextField();\n jLabel51 = new javax.swing.JLabel();\n jLabel52 = new javax.swing.JLabel();\n jLabel53 = new javax.swing.JLabel();\n jLabel54 = new javax.swing.JLabel();\n jLabel55 = new javax.swing.JLabel();\n jLabel56 = new javax.swing.JLabel();\n color1 = new javax.swing.JTextField();\n size1 = new javax.swing.JComboBox<>();\n punt1 = new javax.swing.JSpinner();\n ingreso1 = new javax.swing.JComboBox<>();\n edicion = new javax.swing.JSpinner();\n jButton15 = new javax.swing.JButton();\n casa = new javax.swing.JTextField();\n pais = new javax.swing.JTextField();\n jLabel57 = new javax.swing.JLabel();\n Figura = new javax.swing.JDialog();\n jPanel9 = new javax.swing.JPanel();\n jLabel58 = new javax.swing.JLabel();\n jLabel59 = new javax.swing.JLabel();\n titulo2 = new javax.swing.JTextField();\n jLabel60 = new javax.swing.JLabel();\n desc2 = new javax.swing.JTextField();\n jLabel61 = new javax.swing.JLabel();\n jLabel62 = new javax.swing.JLabel();\n jLabel63 = new javax.swing.JLabel();\n jLabel64 = new javax.swing.JLabel();\n jLabel65 = new javax.swing.JLabel();\n jLabel66 = new javax.swing.JLabel();\n color2 = new javax.swing.JTextField();\n size2 = new javax.swing.JComboBox<>();\n punt2 = new javax.swing.JSpinner();\n ingreso2 = new javax.swing.JComboBox<>();\n jButton16 = new javax.swing.JButton();\n ins = new javax.swing.JTextField();\n garantia = new com.toedter.calendar.JDateChooser();\n mod1 = new javax.swing.JDialog();\n jPanel10 = new javax.swing.JPanel();\n jLabel67 = new javax.swing.JLabel();\n jLabel68 = new javax.swing.JLabel();\n jButton17 = new javax.swing.JButton();\n jLabel69 = new javax.swing.JLabel();\n jButton18 = new javax.swing.JButton();\n modPersona = new javax.swing.JDialog();\n jPanel11 = new javax.swing.JPanel();\n mod = new javax.swing.JComboBox<>();\n jLabel70 = new javax.swing.JLabel();\n jLabel71 = new javax.swing.JLabel();\n jLabel72 = new javax.swing.JLabel();\n jLabel73 = new javax.swing.JLabel();\n nombre2 = new javax.swing.JTextField();\n id2 = new javax.swing.JFormattedTextField();\n jButton19 = new javax.swing.JButton();\n jButton20 = new javax.swing.JButton();\n jButton21 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n t1 = new javax.swing.JTable();\n modArticulo = new javax.swing.JDialog();\n jPanel12 = new javax.swing.JPanel();\n modA = new javax.swing.JComboBox<>();\n jLabel74 = new javax.swing.JLabel();\n jLabel75 = new javax.swing.JLabel();\n jLabel77 = new javax.swing.JLabel();\n descr = new javax.swing.JTextField();\n jButton22 = new javax.swing.JButton();\n jButton23 = new javax.swing.JButton();\n jButton24 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n t2 = new javax.swing.JTable();\n jLabel78 = new javax.swing.JLabel();\n tit1 = new javax.swing.JTextField();\n Chat = new javax.swing.JDialog();\n jPanel13 = new javax.swing.JPanel();\n jLabel76 = new javax.swing.JLabel();\n jLabel79 = new javax.swing.JLabel();\n jLabel80 = new javax.swing.JLabel();\n emisor = new javax.swing.JComboBox<>();\n receptor = new javax.swing.JComboBox<>();\n jLabel81 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jScrollPane3 = new javax.swing.JScrollPane();\n ta1 = new javax.swing.JTextArea();\n jButton25 = new javax.swing.JButton();\n Archivos = new javax.swing.JDialog();\n jPanel14 = new javax.swing.JPanel();\n jLabel82 = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n ta2 = new javax.swing.JTextArea();\n jButton26 = new javax.swing.JButton();\n jButton27 = new javax.swing.JButton();\n jButton28 = new javax.swing.JButton();\n jButton29 = new javax.swing.JButton();\n jButton30 = new javax.swing.JButton();\n view = new javax.swing.JDialog();\n jPanel15 = new javax.swing.JPanel();\n jLabel83 = new javax.swing.JLabel();\n jLabel84 = new javax.swing.JLabel();\n jButton31 = new javax.swing.JButton();\n jLabel85 = new javax.swing.JLabel();\n jButton32 = new javax.swing.JButton();\n Contactos = new javax.swing.JDialog();\n jPanel16 = new javax.swing.JPanel();\n jLabel86 = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n t3 = new javax.swing.JTable();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 0, 204));\n jLabel6.setText(\"¿Qué desea Agregar?\");\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton5.setText(\"Persona\");\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton5MouseClicked(evt);\n }\n });\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/product.png\"))); // NOI18N\n\n jButton6.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton6.setText(\"Artículo\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addComponent(jLabel6))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(148, 148, 148)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(129, 129, 129)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(132, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel6)\n .addGap(61, 61, 61)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(138, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout add1Layout = new javax.swing.GroupLayout(add1.getContentPane());\n add1.getContentPane().setLayout(add1Layout);\n add1Layout.setHorizontalGroup(\n add1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n add1Layout.setVerticalGroup(\n add1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel9.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(0, 0, 204));\n jLabel9.setText(\"¿Qué desea Agregar?\");\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton7.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton7.setText(\"Personal General\");\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton7MouseClicked(evt);\n }\n });\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/gerente.png\"))); // NOI18N\n\n jButton8.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton8.setText(\"Gerente\");\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton8MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton7))\n .addGap(118, 118, 118)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel9))\n .addContainerGap(92, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addGap(61, 61, 61)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(120, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout pLayout = new javax.swing.GroupLayout(p.getContentPane());\n p.getContentPane().setLayout(pLayout);\n pLayout.setHorizontalGroup(\n pLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n pLayout.setVerticalGroup(\n pLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel12.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(0, 0, 204));\n jLabel12.setText(\"¿Qué desea Agregar?\");\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/comic.png\"))); // NOI18N\n\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton9.setText(\"Comic\");\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton9MouseClicked(evt);\n }\n });\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/game.png\"))); // NOI18N\n\n jButton10.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton10.setText(\"Juego\");\n jButton10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton10MouseClicked(evt);\n }\n });\n\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/figura.png\"))); // NOI18N\n\n jButton11.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton11.setText(\"Figura\");\n jButton11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton11MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(118, 118, 118)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 110, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12)\n .addGap(136, 136, 136))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel12)\n .addGap(60, 60, 60)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(71, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout aLayout = new javax.swing.GroupLayout(a.getContentPane());\n a.getContentPane().setLayout(aLayout);\n aLayout.setHorizontalGroup(\n aLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(aLayout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n aLayout.setVerticalGroup(\n aLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel16.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(51, 0, 204));\n jLabel16.setText(\"Gerente\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(51, 0, 204));\n jLabel17.setText(\"Identificación\");\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(51, 0, 204));\n jLabel18.setText(\"Nombre\");\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(51, 0, 204));\n jLabel19.setText(\"Edad\");\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(51, 0, 204));\n jLabel20.setText(\"Sexo\");\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(51, 0, 204));\n jLabel21.setText(\"Estado Civil\");\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(51, 0, 204));\n jLabel22.setText(\"Altura\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(51, 0, 204));\n jLabel23.setText(\"Peso\");\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(51, 0, 204));\n jLabel24.setText(\"Usuario\");\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(51, 0, 204));\n jLabel25.setText(\"Contraseña\");\n\n jLabel26.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel26.setForeground(new java.awt.Color(51, 0, 204));\n jLabel26.setText(\"Cargo\");\n\n nombre.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n usuario.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n id.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n id.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n altura.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n altura.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n peso.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n peso.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n edad.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n edad.setModel(new javax.swing.SpinnerNumberModel(18, 18, 99, 1));\n\n sexo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n sexo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Femenino\", \"Masculino\" }));\n\n civil.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n civil.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Casad@\", \"Solter@\", \"Viud@\" }));\n\n cargo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n cargo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Gerente de Planta\", \"Gerente de Sucursal\" }));\n\n contra.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton12.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton12.setForeground(new java.awt.Color(51, 0, 204));\n jButton12.setText(\"AGREGAR\");\n jButton12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton12MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(85, 85, 85)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(sexo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nombre)\n .addComponent(id, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)\n .addComponent(edad, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(altura)\n .addComponent(peso)\n .addComponent(civil, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(usuario)\n .addComponent(contra)\n .addComponent(cargo, 0, 278, Short.MAX_VALUE))))\n .addGap(269, 269, 269))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(254, 254, 254)\n .addComponent(jLabel16))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(290, 290, 290)\n .addComponent(jButton12)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel16)\n .addGap(29, 29, 29)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel17)\n .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel19))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(edad, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(33, 33, 33)\n .addComponent(jLabel20))\n .addComponent(sexo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel21)\n .addComponent(civil, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(altura, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel23)\n .addComponent(peso, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel25)\n .addComponent(contra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(cargo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 57, Short.MAX_VALUE)\n .addComponent(jButton12)\n .addGap(30, 30, 30))\n );\n\n javax.swing.GroupLayout GerenteLayout = new javax.swing.GroupLayout(Gerente.getContentPane());\n Gerente.getContentPane().setLayout(GerenteLayout);\n GerenteLayout.setHorizontalGroup(\n GerenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 704, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n GerenteLayout.setVerticalGroup(\n GerenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel27.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(51, 0, 204));\n jLabel27.setText(\"Personal General\");\n\n jLabel28.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(51, 0, 204));\n jLabel28.setText(\"Identificación\");\n\n jLabel29.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(51, 0, 204));\n jLabel29.setText(\"Nombre\");\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(51, 0, 204));\n jLabel30.setText(\"Edad\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel31.setForeground(new java.awt.Color(51, 0, 204));\n jLabel31.setText(\"Sexo\");\n\n jLabel32.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel32.setForeground(new java.awt.Color(51, 0, 204));\n jLabel32.setText(\"Estado Civil\");\n\n jLabel33.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel33.setForeground(new java.awt.Color(51, 0, 204));\n jLabel33.setText(\"Altura\");\n\n jLabel34.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel34.setForeground(new java.awt.Color(51, 0, 204));\n jLabel34.setText(\"Peso\");\n\n nombre1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n id1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n id1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n altura1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n altura1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n peso1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n peso1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n edad1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n edad1.setModel(new javax.swing.SpinnerNumberModel(18, 18, 99, 1));\n\n sexo1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n sexo1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Femenino\", \"Masculino\" }));\n\n civil1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n civil1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Casad@\", \"Solter@\", \"Viud@\" }));\n\n jButton13.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton13.setForeground(new java.awt.Color(51, 0, 204));\n jButton13.setText(\"AGREGAR\");\n jButton13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton13MouseClicked(evt);\n }\n });\n\n jLabel35.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel35.setForeground(new java.awt.Color(51, 0, 204));\n jLabel35.setText(\"Ocupación\");\n\n ocupacion.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel36.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel36.setForeground(new java.awt.Color(51, 0, 204));\n jLabel36.setText(\"Horario\");\n\n horario.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel37.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel37.setForeground(new java.awt.Color(51, 0, 204));\n jLabel37.setText(\"Semanas Trabajadas\");\n\n semanas.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel38.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel38.setForeground(new java.awt.Color(51, 0, 204));\n jLabel38.setText(\"Sueldo\");\n\n sueldo.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n sueldo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(153, 153, 153)\n .addComponent(jLabel27))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(288, 288, 288)\n .addComponent(jButton13)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(85, 85, 85)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(semanas)\n .addComponent(horario)\n .addComponent(ocupacion)\n .addComponent(sexo1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nombre1)\n .addComponent(id1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)\n .addComponent(edad1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(altura1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(peso1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(civil1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sueldo))\n .addGap(269, 269, 269))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel27)\n .addGap(35, 35, 35)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel28)\n .addComponent(id1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel29)\n .addComponent(nombre1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel30))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(edad1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(33, 33, 33)\n .addComponent(jLabel31))\n .addComponent(sexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel32)\n .addComponent(civil1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel33)\n .addComponent(altura1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel34)\n .addComponent(peso1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel35)\n .addComponent(ocupacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel36)\n .addComponent(horario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel37)\n .addComponent(semanas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel38)\n .addComponent(sueldo, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE)\n .addComponent(jButton13)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout PersonalLayout = new javax.swing.GroupLayout(Personal.getContentPane());\n Personal.getContentPane().setLayout(PersonalLayout);\n PersonalLayout.setHorizontalGroup(\n PersonalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 704, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n PersonalLayout.setVerticalGroup(\n PersonalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PersonalLayout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel39.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel39.setForeground(new java.awt.Color(51, 0, 204));\n jLabel39.setText(\"Comic\");\n\n jLabel40.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel40.setForeground(new java.awt.Color(51, 0, 204));\n jLabel40.setText(\"Titulo\");\n\n titulo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel41.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel41.setForeground(new java.awt.Color(51, 0, 204));\n jLabel41.setText(\"Descripcion\");\n\n desc.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel42.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel42.setForeground(new java.awt.Color(51, 0, 204));\n jLabel42.setText(\"Color\");\n\n jLabel43.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel43.setForeground(new java.awt.Color(51, 0, 204));\n jLabel43.setText(\"Tamaño\");\n\n jLabel44.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel44.setForeground(new java.awt.Color(51, 0, 204));\n jLabel44.setText(\"Puntuacion\");\n\n jLabel45.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel45.setForeground(new java.awt.Color(51, 0, 204));\n jLabel45.setText(\"Ingresado por\");\n\n jLabel46.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel46.setForeground(new java.awt.Color(51, 0, 204));\n jLabel46.setText(\"Volumen\");\n\n jLabel47.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel47.setForeground(new java.awt.Color(51, 0, 204));\n jLabel47.setText(\"Escala\");\n\n color.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n colorMouseClicked(evt);\n }\n });\n\n size.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pequeño\", \"Mediano\", \"Grande\" }));\n\n punt.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n punt.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n ingreso.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n escala.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n escala.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n volumen.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n volumen.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n jButton14.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton14.setForeground(new java.awt.Color(51, 0, 204));\n jButton14.setText(\"AGREGAR\");\n jButton14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton14MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap(88, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel41, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel42, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel43)\n .addComponent(jLabel44)\n .addComponent(jLabel45)\n .addComponent(jLabel46)\n .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(86, 86, 86)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ingreso, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(punt, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(volumen, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(escala, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(desc, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)\n .addComponent(color)\n .addComponent(size, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2))))\n .addGap(112, 112, 112))\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(269, 269, 269)\n .addComponent(jLabel39, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(320, 320, 320)\n .addComponent(jButton14)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel39)\n .addGap(41, 41, 41)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(desc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel41))\n .addGap(18, 18, 18)\n .addComponent(color, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jLabel40)\n .addGap(77, 77, 77)\n .addComponent(jLabel42)))\n .addGap(31, 31, 31)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(size, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(punt, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel44))\n .addGap(23, 23, 23)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ingreso, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel45)))\n .addComponent(jLabel43))\n .addGap(40, 40, 40)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(volumen, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel46))\n .addGap(40, 40, 40)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel47)\n .addComponent(escala, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 53, Short.MAX_VALUE)\n .addComponent(jButton14)\n .addGap(31, 31, 31))\n );\n\n javax.swing.GroupLayout ComicLayout = new javax.swing.GroupLayout(Comic.getContentPane());\n Comic.getContentPane().setLayout(ComicLayout);\n ComicLayout.setHorizontalGroup(\n ComicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ComicLayout.setVerticalGroup(\n ComicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel48.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel48.setForeground(new java.awt.Color(51, 0, 204));\n jLabel48.setText(\"Juego\");\n\n jLabel49.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel49.setForeground(new java.awt.Color(51, 0, 204));\n jLabel49.setText(\"Titulo\");\n\n titulo1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel50.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel50.setForeground(new java.awt.Color(51, 0, 204));\n jLabel50.setText(\"Descripcion\");\n\n desc1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel51.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel51.setForeground(new java.awt.Color(51, 0, 204));\n jLabel51.setText(\"Color\");\n\n jLabel52.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel52.setForeground(new java.awt.Color(51, 0, 204));\n jLabel52.setText(\"Tamaño\");\n\n jLabel53.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel53.setForeground(new java.awt.Color(51, 0, 204));\n jLabel53.setText(\"Puntuacion\");\n\n jLabel54.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel54.setForeground(new java.awt.Color(51, 0, 204));\n jLabel54.setText(\"Ingresado por\");\n\n jLabel55.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel55.setForeground(new java.awt.Color(51, 0, 204));\n jLabel55.setText(\"Edicion\");\n\n jLabel56.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel56.setForeground(new java.awt.Color(51, 0, 204));\n jLabel56.setText(\"Casa de Elaboracion\");\n\n color1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n color1MouseClicked(evt);\n }\n });\n\n size1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n size1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pequeño\", \"Mediano\", \"Grande\" }));\n\n punt1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n punt1.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n ingreso1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n edicion.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n edicion.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n jButton15.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton15.setForeground(new java.awt.Color(51, 0, 204));\n jButton15.setText(\"AGREGAR\");\n jButton15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton15MouseClicked(evt);\n }\n });\n\n casa.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n pais.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel57.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel57.setForeground(new java.awt.Color(51, 0, 204));\n jLabel57.setText(\"Pais\");\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel52)\n .addComponent(jLabel53)\n .addComponent(jLabel54)\n .addComponent(jLabel55)\n .addComponent(jLabel56)\n .addComponent(jLabel57))\n .addGap(77, 77, 77)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ingreso1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(punt1, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(edicion, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(casa, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(desc1)\n .addComponent(color1)\n .addComponent(size1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addComponent(titulo1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)))))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(251, 251, 251)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton15))))\n .addContainerGap(28, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jLabel48)\n .addGap(40, 40, 40)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(titulo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(desc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel50))\n .addGap(18, 18, 18)\n .addComponent(color1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jLabel49)\n .addGap(77, 77, 77)\n .addComponent(jLabel51)))\n .addGap(31, 31, 31)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(size1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(punt1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel53))\n .addGap(23, 23, 23)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ingreso1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel54)))\n .addComponent(jLabel52))\n .addGap(40, 40, 40)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(edicion, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel55))\n .addGap(37, 37, 37)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel56)\n .addComponent(casa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel57))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)\n .addComponent(jButton15)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout JuegoLayout = new javax.swing.GroupLayout(Juego.getContentPane());\n Juego.getContentPane().setLayout(JuegoLayout);\n JuegoLayout.setHorizontalGroup(\n JuegoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n JuegoLayout.setVerticalGroup(\n JuegoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel58.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel58.setForeground(new java.awt.Color(51, 0, 204));\n jLabel58.setText(\"Figura\");\n\n jLabel59.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel59.setForeground(new java.awt.Color(51, 0, 204));\n jLabel59.setText(\"Titulo\");\n\n titulo2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel60.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel60.setForeground(new java.awt.Color(51, 0, 204));\n jLabel60.setText(\"Descripcion\");\n\n desc2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel61.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel61.setForeground(new java.awt.Color(51, 0, 204));\n jLabel61.setText(\"Color\");\n\n jLabel62.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel62.setForeground(new java.awt.Color(51, 0, 204));\n jLabel62.setText(\"Tamaño\");\n\n jLabel63.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel63.setForeground(new java.awt.Color(51, 0, 204));\n jLabel63.setText(\"Puntuacion\");\n\n jLabel64.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel64.setForeground(new java.awt.Color(51, 0, 204));\n jLabel64.setText(\"Ingresado por\");\n\n jLabel65.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel65.setForeground(new java.awt.Color(51, 0, 204));\n jLabel65.setText(\"Instrucciones\");\n\n jLabel66.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel66.setForeground(new java.awt.Color(51, 0, 204));\n jLabel66.setText(\"Garantía\");\n\n color2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n color2MouseClicked(evt);\n }\n });\n\n size2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n size2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pequeño\", \"Mediano\", \"Grande\" }));\n\n punt2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n punt2.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n ingreso2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton16.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton16.setForeground(new java.awt.Color(51, 0, 204));\n jButton16.setText(\"AGREGAR\");\n jButton16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton16MouseClicked(evt);\n }\n });\n\n ins.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel59, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel61, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel62)\n .addComponent(jLabel63)\n .addComponent(jLabel64)\n .addComponent(jLabel65)\n .addComponent(jLabel66, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(86, 86, 86)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(desc2, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)\n .addComponent(color2)\n .addComponent(size2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addComponent(titulo2, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(garantia, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ingreso2, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(punt2, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ins, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(112, 112, 112))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(269, 269, 269)\n .addComponent(jLabel58, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(250, 250, 250)\n .addComponent(jButton16)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel58)\n .addGap(41, 41, 41)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(titulo2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(desc2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel60))\n .addGap(18, 18, 18)\n .addComponent(color2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel59)\n .addGap(77, 77, 77)\n .addComponent(jLabel61)))\n .addGap(31, 31, 31)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(size2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(punt2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel63))\n .addGap(23, 23, 23)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ingreso2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel64)))\n .addComponent(jLabel62))\n .addGap(37, 37, 37)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel65)\n .addComponent(ins, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel66)\n .addComponent(garantia, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 65, Short.MAX_VALUE)\n .addComponent(jButton16)\n .addGap(27, 27, 27))\n );\n\n javax.swing.GroupLayout FiguraLayout = new javax.swing.GroupLayout(Figura.getContentPane());\n Figura.getContentPane().setLayout(FiguraLayout);\n FiguraLayout.setHorizontalGroup(\n FiguraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n FiguraLayout.setVerticalGroup(\n FiguraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel67.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel67.setForeground(new java.awt.Color(0, 0, 204));\n jLabel67.setText(\"¿Qué desea Modificar?\");\n\n jLabel68.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton17.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton17.setText(\"Persona\");\n jButton17.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton17MouseClicked(evt);\n }\n });\n\n jLabel69.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/product.png\"))); // NOI18N\n\n jButton18.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton18.setText(\"Artículo\");\n jButton18.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton18MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addComponent(jLabel67))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(148, 148, 148)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel68, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(129, 129, 129)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel69, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(126, Short.MAX_VALUE))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel67)\n .addGap(61, 61, 61)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel68, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel69, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(55, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout mod1Layout = new javax.swing.GroupLayout(mod1.getContentPane());\n mod1.getContentPane().setLayout(mod1Layout);\n mod1Layout.setHorizontalGroup(\n mod1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mod1Layout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n mod1Layout.setVerticalGroup(\n mod1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mod1Layout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel11.setBackground(new java.awt.Color(255, 255, 255));\n\n mod.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mod.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n modItemStateChanged(evt);\n }\n });\n\n jLabel70.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel70.setForeground(new java.awt.Color(51, 0, 204));\n jLabel70.setText(\"Seleccione una Persona\");\n\n jLabel71.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel71.setForeground(new java.awt.Color(51, 0, 204));\n jLabel71.setText(\"Persona Seleccionada\");\n\n jLabel72.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel72.setForeground(new java.awt.Color(51, 0, 204));\n jLabel72.setText(\"Identificación\");\n\n jLabel73.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel73.setForeground(new java.awt.Color(51, 0, 204));\n jLabel73.setText(\"Nombre\");\n\n nombre2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n id2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n id2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton19.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton19.setForeground(new java.awt.Color(51, 0, 204));\n jButton19.setText(\"Listar\");\n jButton19.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton19MouseClicked(evt);\n }\n });\n\n jButton20.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton20.setForeground(new java.awt.Color(51, 0, 204));\n jButton20.setText(\"Modificar\");\n jButton20.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton20MouseClicked(evt);\n }\n });\n\n jButton21.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton21.setForeground(new java.awt.Color(51, 0, 204));\n jButton21.setText(\"Eliminar\");\n jButton21.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton21MouseClicked(evt);\n }\n });\n\n t1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Nombre\", \"Edad\", \"Sexo\", \"EstadoCivil\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(t1);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel70)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel71)\n .addGap(135, 135, 135))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton20)\n .addGap(67, 67, 67)\n .addComponent(jButton21))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(83, 83, 83)\n .addComponent(mod, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel72, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel73, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton19))\n .addGap(85, 85, 85)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nombre2)\n .addComponent(id2, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(54, 54, 54))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1099, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(26, Short.MAX_VALUE))\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel70)\n .addComponent(jLabel71))\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(mod, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel72)\n .addComponent(id2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel73)\n .addComponent(nombre2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(47, 47, 47)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton19)\n .addComponent(jButton20)\n .addComponent(jButton21))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(59, 59, 59))\n );\n\n javax.swing.GroupLayout modPersonaLayout = new javax.swing.GroupLayout(modPersona.getContentPane());\n modPersona.getContentPane().setLayout(modPersonaLayout);\n modPersonaLayout.setHorizontalGroup(\n modPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n modPersonaLayout.setVerticalGroup(\n modPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel12.setBackground(new java.awt.Color(255, 255, 255));\n\n modA.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n modA.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n modAItemStateChanged(evt);\n }\n });\n\n jLabel74.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel74.setForeground(new java.awt.Color(51, 0, 204));\n jLabel74.setText(\"Seleccione un Artículo\");\n\n jLabel75.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel75.setForeground(new java.awt.Color(51, 0, 204));\n jLabel75.setText(\"Artículo Seleccionado\");\n\n jLabel77.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel77.setForeground(new java.awt.Color(51, 0, 204));\n jLabel77.setText(\"Descripcion\");\n\n descr.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton22.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton22.setForeground(new java.awt.Color(51, 0, 204));\n jButton22.setText(\"Listar\");\n jButton22.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton22MouseClicked(evt);\n }\n });\n\n jButton23.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton23.setForeground(new java.awt.Color(51, 0, 204));\n jButton23.setText(\"Modificar\");\n jButton23.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton23MouseClicked(evt);\n }\n });\n\n jButton24.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton24.setForeground(new java.awt.Color(51, 0, 204));\n jButton24.setText(\"Eliminar\");\n jButton24.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton24MouseClicked(evt);\n }\n });\n\n t2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Titulo\", \"Descripcion\", \"Tamaño\", \"Puntuacion\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane2.setViewportView(t2);\n\n jLabel78.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel78.setForeground(new java.awt.Color(51, 0, 204));\n jLabel78.setText(\"Titulo\");\n\n tit1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel74)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel75)\n .addGap(135, 135, 135))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton23)\n .addGap(67, 67, 67)\n .addComponent(jButton24))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(83, 83, 83)\n .addComponent(modA, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel77)\n .addComponent(jButton22))\n .addGap(111, 111, 111)\n .addComponent(descr, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel78, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(111, 111, 111)\n .addComponent(tit1, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(54, 54, 54))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 1099, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel74)\n .addComponent(jLabel75))\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(modA, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel78)\n .addComponent(tit1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel77)\n .addComponent(descr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(47, 47, 47)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton22)\n .addComponent(jButton23)\n .addComponent(jButton24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(59, 59, 59))\n );\n\n javax.swing.GroupLayout modArticuloLayout = new javax.swing.GroupLayout(modArticulo.getContentPane());\n modArticulo.getContentPane().setLayout(modArticuloLayout);\n modArticuloLayout.setHorizontalGroup(\n modArticuloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n modArticuloLayout.setVerticalGroup(\n modArticuloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel13.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel76.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel76.setForeground(new java.awt.Color(51, 0, 204));\n jLabel76.setText(\"Chats\");\n\n jLabel79.setFont(new java.awt.Font(\"Tahoma\", 3, 24)); // NOI18N\n jLabel79.setForeground(new java.awt.Color(51, 0, 204));\n jLabel79.setText(\"Seleccionar Emisor\");\n\n jLabel80.setFont(new java.awt.Font(\"Tahoma\", 3, 24)); // NOI18N\n jLabel80.setForeground(new java.awt.Color(51, 0, 204));\n jLabel80.setText(\"Seleccionar Receptor\");\n\n emisor.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n receptor.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel81.setFont(new java.awt.Font(\"Tahoma\", 3, 24)); // NOI18N\n jLabel81.setForeground(new java.awt.Color(51, 0, 204));\n jLabel81.setText(\"Mensaje\");\n\n jSeparator1.setForeground(new java.awt.Color(51, 0, 204));\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n jSeparator1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(51, 0, 204), 5));\n\n ta1.setColumns(20);\n ta1.setFont(new java.awt.Font(\"Segoe UI\", 1, 18)); // NOI18N\n ta1.setRows(5);\n jScrollPane3.setViewportView(ta1);\n\n jButton25.setFont(new java.awt.Font(\"Tahoma\", 1, 22)); // NOI18N\n jButton25.setForeground(new java.awt.Color(51, 0, 204));\n jButton25.setText(\"Enviar Mensaje\");\n jButton25.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton25MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton25)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel76)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel80, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel79, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(receptor, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(emisor, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(31, 31, 31)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel81, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(135, 135, 135))))\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel76)\n .addGap(53, 53, 53)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel79)\n .addComponent(emisor, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(106, 106, 106)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel80)\n .addComponent(receptor, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(jLabel81)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addGap(17, 17, 17)))\n .addGap(39, 39, 39)))\n .addComponent(jButton25, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27))\n );\n\n javax.swing.GroupLayout ChatLayout = new javax.swing.GroupLayout(Chat.getContentPane());\n Chat.getContentPane().setLayout(ChatLayout);\n ChatLayout.setHorizontalGroup(\n ChatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ChatLayout.setVerticalGroup(\n ChatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel14.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel82.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel82.setForeground(new java.awt.Color(51, 0, 204));\n jLabel82.setText(\"Historial de Mensajes\");\n\n ta2.setColumns(20);\n ta2.setFont(new java.awt.Font(\"Rockwell\", 0, 18)); // NOI18N\n ta2.setRows(5);\n jScrollPane4.setViewportView(ta2);\n\n jButton26.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton26.setText(\"Mostrar Mensajes anteriores\");\n jButton26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton26MouseClicked(evt);\n }\n });\n\n jButton27.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton27.setText(\"Mostrar Mensajes Nuevos\");\n jButton27.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton27MouseClicked(evt);\n }\n });\n\n jButton28.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton28.setText(\"Limpiar Área\");\n jButton28.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton28MouseClicked(evt);\n }\n });\n\n jButton29.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton29.setText(\"Eliminar Mensaje \");\n jButton29.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton29MouseClicked(evt);\n }\n });\n\n jButton30.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton30.setText(\"Guardar Nuevos Mensajes\");\n jButton30.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton30MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel82)\n .addGap(237, 237, 237))\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGap(158, 158, 158)\n .addComponent(jButton27)\n .addGap(142, 142, 142)\n .addComponent(jButton29))\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addComponent(jButton26)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton28)\n .addGap(90, 90, 90)\n .addComponent(jButton30))\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 915, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(31, Short.MAX_VALUE))\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel82)\n .addGap(30, 30, 30)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 416, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton26)\n .addComponent(jButton28)\n .addComponent(jButton30))\n .addGap(43, 43, 43)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton27)\n .addComponent(jButton29))\n .addContainerGap(54, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout ArchivosLayout = new javax.swing.GroupLayout(Archivos.getContentPane());\n Archivos.getContentPane().setLayout(ArchivosLayout);\n ArchivosLayout.setHorizontalGroup(\n ArchivosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ArchivosLayout.setVerticalGroup(\n ArchivosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel15.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel83.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel83.setForeground(new java.awt.Color(0, 0, 204));\n jLabel83.setText(\"¿Qué desea Visualizar?\");\n\n jLabel84.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton31.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton31.setText(\"Contactos\");\n jButton31.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton31MouseClicked(evt);\n }\n });\n\n jLabel85.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/chat.png\"))); // NOI18N\n\n jButton32.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton32.setText(\"Mensajes Guardados en Archivos\");\n jButton32.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton32MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addComponent(jLabel83)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(148, 148, 148)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel84, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 86, Short.MAX_VALUE)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 343, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(76, 76, 76))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel85, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(160, 160, 160))))\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel83)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(61, 61, 61)\n .addComponent(jLabel84, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel85, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(80, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout viewLayout = new javax.swing.GroupLayout(view.getContentPane());\n view.getContentPane().setLayout(viewLayout);\n viewLayout.setHorizontalGroup(\n viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(viewLayout.createSequentialGroup()\n .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n viewLayout.setVerticalGroup(\n viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jPanel16.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel86.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel86.setForeground(new java.awt.Color(0, 0, 204));\n jLabel86.setText(\"Lista de Contactos\");\n\n t3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n t3.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Identificacion\", \"Nombre\", \"Cargo\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane5.setViewportView(t3);\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGap(170, 170, 170)\n .addComponent(jLabel86)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\n .addContainerGap(81, Short.MAX_VALUE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 602, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(72, 72, 72))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel86)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 395, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(49, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout ContactosLayout = new javax.swing.GroupLayout(Contactos.getContentPane());\n Contactos.getContentPane().setLayout(ContactosLayout);\n ContactosLayout.setHorizontalGroup(\n ContactosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ContactosLayout.setVerticalGroup(\n ContactosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 0, 204));\n jLabel1.setText(\"GeekLandia\");\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/add11.png\"))); // NOI18N\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton1.setText(\"Agregar\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton2.setText(\"Modificar\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/edit.png\"))); // NOI18N\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton3.setText(\"Visualizar\");\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton3MouseClicked(evt);\n }\n });\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/list11.png\"))); // NOI18N\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton4.setText(\"Chats\");\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton4MouseClicked(evt);\n }\n });\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/chat.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(212, 212, 212))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(134, 134, 134)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 133, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(117, 117, 117))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel1)\n .addGap(45, 45, 45)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(119, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public FRMCadastrarFornecedor() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\n txtfecha = new javax.swing.JTextField();\n jMenuBar4 = new javax.swing.JMenuBar();\n jMenu13 = new javax.swing.JMenu();\n jMenu15 = new javax.swing.JMenu();\n jDialog2 = new javax.swing.JDialog();\n jPanel3 = new javax.swing.JPanel();\n txtFechaDesde = new javax.swing.JTextField();\n txtFechaHasta = new javax.swing.JTextField();\n jMenuBar5 = new javax.swing.JMenuBar();\n jMenu17 = new javax.swing.JMenu();\n jMenu18 = new javax.swing.JMenu();\n jDialog3 = new javax.swing.JDialog();\n jPanel5 = new javax.swing.JPanel();\n txtFechaDesde1 = new javax.swing.JTextField();\n txtFechaHasta1 = new javax.swing.JTextField();\n txtcodusuario = new javax.swing.JTextField();\n jMenuBar6 = new javax.swing.JMenuBar();\n jMenu19 = new javax.swing.JMenu();\n jMenu20 = new javax.swing.JMenu();\n jDialog4 = new javax.swing.JDialog();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTableLaboratorios = new javax.swing.JTable();\n jPanel13 = new javax.swing.JPanel();\n rdTodos = new javax.swing.JRadioButton();\n rdConStock = new javax.swing.JRadioButton();\n rdBajoStock = new javax.swing.JRadioButton();\n rdSinStock = new javax.swing.JRadioButton();\n jMenuBar3 = new javax.swing.JMenuBar();\n jMenu12 = new javax.swing.JMenu();\n jMenu16 = new javax.swing.JMenu();\n jDialog5 = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n txtFechaDesde2 = new javax.swing.JTextField();\n txtFechaHasta2 = new javax.swing.JTextField();\n jMenuBar8 = new javax.swing.JMenuBar();\n jMenu23 = new javax.swing.JMenu();\n jMenu24 = new javax.swing.JMenu();\n jDialog6 = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n txtdoc = new javax.swing.JTextField();\n jMenuBar9 = new javax.swing.JMenuBar();\n jMenu25 = new javax.swing.JMenu();\n jMenu26 = new javax.swing.JMenu();\n jDialog7 = new javax.swing.JDialog();\n jPanel9 = new javax.swing.JPanel();\n fechaInicio = new javax.swing.JTextField();\n fechaFinal = new javax.swing.JTextField();\n med = new javax.swing.JTextField();\n lab = new javax.swing.JTextField();\n jMenuBar2 = new javax.swing.JMenuBar();\n jMenu11 = new javax.swing.JMenu();\n jMenu14 = new javax.swing.JMenu();\n jDialog8 = new javax.swing.JDialog();\n jPanel10 = new javax.swing.JPanel();\n RazonSocial = new javax.swing.JTextField();\n Direccion = new javax.swing.JTextField();\n Ruc = new javax.swing.JTextField();\n Frase = new javax.swing.JTextField();\n impresora = new javax.swing.JTextField();\n jPanel16 = new javax.swing.JPanel();\n rdVentas = new javax.swing.JRadioButton();\n rdFarmaceutica = new javax.swing.JRadioButton();\n jPanel17 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jCheckBox1 = new javax.swing.JCheckBox();\n jPanel20 = new javax.swing.JPanel();\n PaneReportes = new javax.swing.JPanel();\n chkRptActivos = new javax.swing.JCheckBox();\n chkRptInvComplt = new javax.swing.JCheckBox();\n chkRptConStock = new javax.swing.JCheckBox();\n chkRptSinStock = new javax.swing.JCheckBox();\n chkRptEstAlert = new javax.swing.JCheckBox();\n chkRptFiltradXLab = new javax.swing.JCheckBox();\n chkSegimitMedic = new javax.swing.JCheckBox();\n chkRptVentaAnio = new javax.swing.JCheckBox();\n chkRptVentasDH = new javax.swing.JCheckBox();\n chkRptVentasDia = new javax.swing.JCheckBox();\n chkRptVentasDUsuario = new javax.swing.JCheckBox();\n chkRptCompras = new javax.swing.JCheckBox();\n chkRptComprasXDoc = new javax.swing.JCheckBox();\n chkRptComprasDH = new javax.swing.JCheckBox();\n PaneFormularios = new javax.swing.JPanel();\n chkClientes = new javax.swing.JCheckBox();\n chkMedOProds = new javax.swing.JCheckBox();\n chkCompuestos = new javax.swing.JCheckBox();\n chkUsuarios = new javax.swing.JCheckBox();\n chkProveedores = new javax.swing.JCheckBox();\n chkLaborMarcas = new javax.swing.JCheckBox();\n chkPedidosInternos = new javax.swing.JCheckBox();\n chkCompras = new javax.swing.JCheckBox();\n chkBuscarXCompuest = new javax.swing.JCheckBox();\n chkBuscador = new javax.swing.JCheckBox();\n jLabel12 = new javax.swing.JLabel();\n cmbPermisos = new javax.swing.JComboBox();\n btnguardar1 = new javax.swing.JButton();\n btnguardar = new javax.swing.JButton();\n btnGuardarPermisos = new javax.swing.JButton();\n lblPermisos = new javax.swing.JLabel();\n buttonGroup1 = new javax.swing.ButtonGroup();\n jDialog9 = new javax.swing.JDialog();\n jPanel14 = new javax.swing.JPanel();\n txtanio = new javax.swing.JTextField();\n jMenuBar7 = new javax.swing.JMenuBar();\n jMenu21 = new javax.swing.JMenu();\n jMenu22 = new javax.swing.JMenu();\n jDialog10 = new javax.swing.JDialog();\n jPanel15 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n btncerrar = new javax.swing.JButton();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n buttonGroup2 = new javax.swing.ButtonGroup();\n jDialog11 = new javax.swing.JDialog();\n jPanel21 = new javax.swing.JPanel();\n jProgressBar1 = new javax.swing.JProgressBar();\n lblsesion = new javax.swing.JLabel();\n jDialog12 = new javax.swing.JDialog();\n jPanel22 = new javax.swing.JPanel();\n jProgressBar2 = new javax.swing.JProgressBar();\n lblsesion1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jDesktopPane = new javax.swing.JDesktopPane();\n logo = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel11 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jEditorPaneStock = new javax.swing.JEditorPane();\n jPanel12 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n jEditorPaneAdvertencias = new javax.swing.JEditorPane();\n jLabel5 = new javax.swing.JLabel();\n lblcodigo = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n lblusuario = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n lblpermisos = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu2 = new javax.swing.JMenu();\n menuClientes = new javax.swing.JMenu();\n jMenuItemClientes = new javax.swing.JMenuItem();\n menuMedicamento = new javax.swing.JMenuItem();\n menuCompuestos = new javax.swing.JMenuItem();\n jMenu5 = new javax.swing.JMenu();\n menuLaboratorios = new javax.swing.JMenuItem();\n menuProveedores = new javax.swing.JMenuItem();\n menuUsuarios = new javax.swing.JMenuItem();\n jMenu7 = new javax.swing.JMenu();\n menuPedidos = new javax.swing.JMenuItem();\n menuCompras = new javax.swing.JMenuItem();\n jMenuItemCompuestos = new javax.swing.JMenuItem();\n menuReportes = new javax.swing.JMenu();\n jMenu4 = new javax.swing.JMenu();\n rptActivos = new javax.swing.JMenuItem();\n rptInventarioC = new javax.swing.JMenuItem();\n rptInventarioCS = new javax.swing.JMenuItem();\n rptInventarioSS = new javax.swing.JMenuItem();\n rptInventarioEA = new javax.swing.JMenuItem();\n rptFiltradoXLab = new javax.swing.JMenuItem();\n rptSeguimientoMed = new javax.swing.JMenuItem();\n rptVentasAnio = new javax.swing.JMenuItem();\n jMenu1 = new javax.swing.JMenu();\n rptVentasDH = new javax.swing.JMenuItem();\n RptVentasDia = new javax.swing.JMenuItem();\n rptVentasXUsu = new javax.swing.JMenuItem();\n jMenu6 = new javax.swing.JMenu();\n rptCompras = new javax.swing.JMenuItem();\n rptComprasDH = new javax.swing.JMenuItem();\n rptComprasXDoc = new javax.swing.JMenuItem();\n menuHerramientas = new javax.swing.JMenu();\n menuAjustes = new javax.swing.JMenuItem();\n menuAjustes1 = new javax.swing.JMenuItem();\n menuAjustes2 = new javax.swing.JMenuItem();\n menuBuscador = new javax.swing.JMenuItem();\n jMenu10 = new javax.swing.JMenu();\n jMenu8 = new javax.swing.JMenu();\n jMenu3 = new javax.swing.JMenu();\n\n jDialog1.setMinimumSize(new java.awt.Dimension(245, 127));\n jDialog1.setModal(true);\n jDialog1.setUndecorated(true);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"BUSCAR POR FECHA\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n txtfecha.setBackground(new java.awt.Color(255, 255, 204));\n txtfecha.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtfecha.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtfecha.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtfecha.setCaretColor(new java.awt.Color(51, 204, 255));\n txtfecha.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtfechaKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtfecha, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(txtfecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jMenuBar4.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar4MouseDragged(evt);\n }\n });\n jMenuBar4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar4MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar4MousePressed(evt);\n }\n });\n\n jMenu13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu13.setText(\"BUSCAR\");\n jMenu13.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu13.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu13.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu13.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu13MousePressed(evt);\n }\n });\n jMenuBar4.add(jMenu13);\n\n jMenu15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu15.setText(\"CERRAR VENTANA\");\n jMenu15.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu15.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu15.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu15.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu15MousePressed(evt);\n }\n });\n jMenu15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu15ActionPerformed(evt);\n }\n });\n jMenuBar4.add(jMenu15);\n\n jDialog1.setJMenuBar(jMenuBar4);\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog2.setMinimumSize(new java.awt.Dimension(275, 172));\n jDialog2.setModal(true);\n jDialog2.setUndecorated(true);\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"BUSCAR POR FECHA\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n txtFechaDesde.setBackground(new java.awt.Color(255, 255, 204));\n txtFechaDesde.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtFechaDesde.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtFechaDesde.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Desde YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtFechaDesde.setCaretColor(new java.awt.Color(51, 204, 255));\n txtFechaDesde.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaDesdeKeyReleased(evt);\n }\n });\n\n txtFechaHasta.setBackground(new java.awt.Color(255, 255, 204));\n txtFechaHasta.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtFechaHasta.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtFechaHasta.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Hasta YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtFechaHasta.setCaretColor(new java.awt.Color(51, 204, 255));\n txtFechaHasta.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaHastaKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtFechaDesde, javax.swing.GroupLayout.DEFAULT_SIZE, 263, Short.MAX_VALUE)\n .addComponent(txtFechaHasta)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(txtFechaDesde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtFechaHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jMenuBar5.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar5MouseDragged(evt);\n }\n });\n jMenuBar5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar5MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar5MousePressed(evt);\n }\n });\n\n jMenu17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu17.setText(\"BUSCAR\");\n jMenu17.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu17.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu17.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu17.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu17.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu17MousePressed(evt);\n }\n });\n jMenuBar5.add(jMenu17);\n\n jMenu18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu18.setText(\"CERRAR VENTANA\");\n jMenu18.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu18.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu18.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu18.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu18.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu18MousePressed(evt);\n }\n });\n jMenu18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu18ActionPerformed(evt);\n }\n });\n jMenuBar5.add(jMenu18);\n\n jDialog2.setJMenuBar(jMenuBar5);\n\n javax.swing.GroupLayout jDialog2Layout = new javax.swing.GroupLayout(jDialog2.getContentPane());\n jDialog2.getContentPane().setLayout(jDialog2Layout);\n jDialog2Layout.setHorizontalGroup(\n jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog2Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jDialog2Layout.setVerticalGroup(\n jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog3.setMinimumSize(new java.awt.Dimension(285, 227));\n jDialog3.setModal(true);\n jDialog3.setUndecorated(true);\n\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"BUSCAR POR FECHA\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n txtFechaDesde1.setBackground(new java.awt.Color(255, 255, 204));\n txtFechaDesde1.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtFechaDesde1.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtFechaDesde1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Desde YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtFechaDesde1.setCaretColor(new java.awt.Color(51, 204, 255));\n txtFechaDesde1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaDesde1KeyReleased(evt);\n }\n });\n\n txtFechaHasta1.setBackground(new java.awt.Color(255, 255, 204));\n txtFechaHasta1.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtFechaHasta1.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtFechaHasta1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Hasta YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtFechaHasta1.setCaretColor(new java.awt.Color(51, 204, 255));\n txtFechaHasta1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaHasta1KeyReleased(evt);\n }\n });\n\n txtcodusuario.setBackground(new java.awt.Color(255, 255, 204));\n txtcodusuario.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtcodusuario.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtcodusuario.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Codigo Usuario\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtcodusuario.setCaretColor(new java.awt.Color(51, 204, 255));\n txtcodusuario.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtcodusuarioKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtcodusuario, javax.swing.GroupLayout.DEFAULT_SIZE, 273, Short.MAX_VALUE)\n .addComponent(txtFechaHasta1)\n .addComponent(txtFechaDesde1)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(txtFechaDesde1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtFechaHasta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtcodusuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(21, Short.MAX_VALUE))\n );\n\n jMenuBar6.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar6MouseDragged(evt);\n }\n });\n jMenuBar6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar6MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar6MousePressed(evt);\n }\n });\n\n jMenu19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu19.setText(\"BUSCAR\");\n jMenu19.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu19.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu19.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu19.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu19.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu19MousePressed(evt);\n }\n });\n jMenuBar6.add(jMenu19);\n\n jMenu20.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu20.setText(\"CERRAR VENTANA\");\n jMenu20.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu20.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu20.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu20.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu20.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu20MousePressed(evt);\n }\n });\n jMenu20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu20ActionPerformed(evt);\n }\n });\n jMenuBar6.add(jMenu20);\n\n jDialog3.setJMenuBar(jMenuBar6);\n\n javax.swing.GroupLayout jDialog3Layout = new javax.swing.GroupLayout(jDialog3.getContentPane());\n jDialog3.getContentPane().setLayout(jDialog3Layout);\n jDialog3Layout.setHorizontalGroup(\n jDialog3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jDialog3Layout.setVerticalGroup(\n jDialog3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog3Layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jDialog4.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n jDialog4.setMinimumSize(new java.awt.Dimension(290, 399));\n jDialog4.setModal(true);\n jDialog4.setUndecorated(true);\n\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"SELECCIONE LABORATORIOS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n jTableLaboratorios.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n jTableLaboratorios.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(jTableLaboratorios);\n\n jPanel13.setBackground(new java.awt.Color(255, 255, 204));\n jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"FILTRAR BUSQUEDA\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n jPanel13.setLayout(new javax.swing.BoxLayout(jPanel13, javax.swing.BoxLayout.LINE_AXIS));\n\n rdTodos.setBackground(new java.awt.Color(204, 204, 255));\n buttonGroup1.add(rdTodos);\n rdTodos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rdTodos.setText(\"Todos\");\n rdTodos.setFocusable(false);\n rdTodos.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n rdTodos.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n rdTodos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n rdTodos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdTodosActionPerformed(evt);\n }\n });\n jPanel13.add(rdTodos);\n\n rdConStock.setBackground(new java.awt.Color(204, 255, 204));\n buttonGroup1.add(rdConStock);\n rdConStock.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rdConStock.setText(\"Con stock\");\n rdConStock.setFocusable(false);\n rdConStock.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n rdConStock.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n rdConStock.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanel13.add(rdConStock);\n\n rdBajoStock.setBackground(new java.awt.Color(255, 204, 102));\n buttonGroup1.add(rdBajoStock);\n rdBajoStock.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rdBajoStock.setSelected(true);\n rdBajoStock.setText(\"Bajo Stock\");\n rdBajoStock.setFocusable(false);\n rdBajoStock.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n rdBajoStock.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n rdBajoStock.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanel13.add(rdBajoStock);\n\n rdSinStock.setBackground(new java.awt.Color(255, 153, 153));\n buttonGroup1.add(rdSinStock);\n rdSinStock.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rdSinStock.setText(\"Sin Stock\");\n rdSinStock.setFocusable(false);\n rdSinStock.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n rdSinStock.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n rdSinStock.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanel13.add(rdSinStock);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel6Layout.createSequentialGroup()\n .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jMenuBar3.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar3MouseDragged(evt);\n }\n });\n jMenuBar3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar3MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar3MousePressed(evt);\n }\n });\n\n jMenu12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu12.setText(\"BUSCAR\");\n jMenu12.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu12.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu12.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu12.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu12MousePressed(evt);\n }\n });\n jMenuBar3.add(jMenu12);\n\n jMenu16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu16.setText(\"CERRAR VENTANA\");\n jMenu16.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu16.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu16.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu16.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu16MousePressed(evt);\n }\n });\n jMenuBar3.add(jMenu16);\n\n jDialog4.setJMenuBar(jMenuBar3);\n\n javax.swing.GroupLayout jDialog4Layout = new javax.swing.GroupLayout(jDialog4.getContentPane());\n jDialog4.getContentPane().setLayout(jDialog4Layout);\n jDialog4Layout.setHorizontalGroup(\n jDialog4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jDialog4Layout.setVerticalGroup(\n jDialog4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog5.setMinimumSize(new java.awt.Dimension(233, 161));\n jDialog5.setModal(true);\n jDialog5.setUndecorated(true);\n\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"BUSCAR POR FECHA\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n txtFechaDesde2.setBackground(new java.awt.Color(255, 255, 204));\n txtFechaDesde2.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtFechaDesde2.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtFechaDesde2.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Desde YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtFechaDesde2.setCaretColor(new java.awt.Color(51, 204, 255));\n txtFechaDesde2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaDesde2KeyReleased(evt);\n }\n });\n\n txtFechaHasta2.setBackground(new java.awt.Color(255, 255, 204));\n txtFechaHasta2.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtFechaHasta2.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtFechaHasta2.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Hasta YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtFechaHasta2.setCaretColor(new java.awt.Color(51, 204, 255));\n txtFechaHasta2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaHasta2KeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txtFechaDesde2)\n .addContainerGap())\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(txtFechaHasta2, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(txtFechaDesde2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtFechaHasta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jMenuBar8.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar8MouseDragged(evt);\n }\n });\n jMenuBar8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar8MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar8MousePressed(evt);\n }\n });\n\n jMenu23.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu23.setText(\"BUSCAR\");\n jMenu23.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu23.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu23.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu23.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu23.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu23MousePressed(evt);\n }\n });\n jMenuBar8.add(jMenu23);\n\n jMenu24.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu24.setText(\"CERRAR VENTANA\");\n jMenu24.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu24.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu24.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu24.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu24.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu24MousePressed(evt);\n }\n });\n jMenu24.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu24ActionPerformed(evt);\n }\n });\n jMenuBar8.add(jMenu24);\n\n jDialog5.setJMenuBar(jMenuBar8);\n\n javax.swing.GroupLayout jDialog5Layout = new javax.swing.GroupLayout(jDialog5.getContentPane());\n jDialog5.getContentPane().setLayout(jDialog5Layout);\n jDialog5Layout.setHorizontalGroup(\n jDialog5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jDialog5Layout.setVerticalGroup(\n jDialog5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog6.setMinimumSize(new java.awt.Dimension(245, 119));\n jDialog6.setModal(true);\n jDialog6.setUndecorated(true);\n\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"BUSCAR POR DOCUMENTO\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n txtdoc.setBackground(new java.awt.Color(255, 255, 204));\n txtdoc.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtdoc.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtdoc.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Ingrese Nº documento\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtdoc.setCaretColor(new java.awt.Color(51, 204, 255));\n txtdoc.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtdocKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtdoc, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtdoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jMenuBar9.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar9MouseDragged(evt);\n }\n });\n jMenuBar9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar9MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar9MousePressed(evt);\n }\n });\n\n jMenu25.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu25.setText(\"BUSCAR\");\n jMenu25.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu25.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu25.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu25.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu25.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu25MousePressed(evt);\n }\n });\n jMenuBar9.add(jMenu25);\n\n jMenu26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu26.setText(\"CERRAR VENTANA\");\n jMenu26.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu26.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu26.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu26.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu26MousePressed(evt);\n }\n });\n jMenu26.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu26ActionPerformed(evt);\n }\n });\n jMenuBar9.add(jMenu26);\n\n jDialog6.setJMenuBar(jMenuBar9);\n\n javax.swing.GroupLayout jDialog6Layout = new javax.swing.GroupLayout(jDialog6.getContentPane());\n jDialog6.getContentPane().setLayout(jDialog6Layout);\n jDialog6Layout.setHorizontalGroup(\n jDialog6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jDialog6Layout.setVerticalGroup(\n jDialog6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog6Layout.createSequentialGroup()\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 3, Short.MAX_VALUE))\n );\n\n jDialog7.setMinimumSize(new java.awt.Dimension(358, 251));\n jDialog7.setModal(true);\n jDialog7.setUndecorated(true);\n\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"SEGUIMIENTO DE MEDICAMENTOS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n fechaInicio.setBackground(new java.awt.Color(255, 255, 204));\n fechaInicio.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n fechaInicio.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n fechaInicio.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Desde YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n fechaInicio.setCaretColor(new java.awt.Color(51, 204, 255));\n fechaInicio.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n fechaInicioKeyReleased(evt);\n }\n });\n\n fechaFinal.setBackground(new java.awt.Color(255, 255, 204));\n fechaFinal.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n fechaFinal.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n fechaFinal.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Fecha Hasta YYYY-MM-DD\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n fechaFinal.setCaretColor(new java.awt.Color(51, 204, 255));\n fechaFinal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n fechaFinalKeyReleased(evt);\n }\n });\n\n med.setBackground(new java.awt.Color(255, 204, 255));\n med.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n med.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n med.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Nombre del medicamento\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n med.setCaretColor(new java.awt.Color(51, 204, 255));\n med.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n medKeyReleased(evt);\n }\n });\n\n lab.setBackground(new java.awt.Color(255, 204, 255));\n lab.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n lab.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n lab.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Nombre del laboratorio\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n lab.setCaretColor(new java.awt.Color(51, 204, 255));\n lab.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n labKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(med, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE)\n .addComponent(lab, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(fechaInicio)\n .addComponent(fechaFinal))\n .addContainerGap())\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(fechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(fechaFinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(med, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lab, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jMenuBar2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar2MouseDragged(evt);\n }\n });\n jMenuBar2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar2MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar2MousePressed(evt);\n }\n });\n\n jMenu11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu11.setText(\"BUSCAR\");\n jMenu11.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu11.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu11.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu11.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu11MousePressed(evt);\n }\n });\n jMenuBar2.add(jMenu11);\n\n jMenu14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu14.setText(\"CERRAR VENTANA\");\n jMenu14.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu14.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu14.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu14.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu14MousePressed(evt);\n }\n });\n jMenuBar2.add(jMenu14);\n\n jDialog7.setJMenuBar(jMenuBar2);\n\n javax.swing.GroupLayout jDialog7Layout = new javax.swing.GroupLayout(jDialog7.getContentPane());\n jDialog7.getContentPane().setLayout(jDialog7Layout);\n jDialog7Layout.setHorizontalGroup(\n jDialog7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog7Layout.createSequentialGroup()\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jDialog7Layout.setVerticalGroup(\n jDialog7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog8.setTitle(\"Datos de la Empresa\");\n jDialog8.setMinimumSize(new java.awt.Dimension(695, 726));\n jDialog8.setModal(true);\n jDialog8.setUndecorated(true);\n jDialog8.setResizable(false);\n jDialog8.setType(java.awt.Window.Type.UTILITY);\n jDialog8.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n jDialog8WindowActivated(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n jDialog8WindowOpened(evt);\n }\n });\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(102, 102, 102), 1, true), \"DATOS DE LA EMPRESA\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 1, 14))); // NOI18N\n\n RazonSocial.setName(\"RazonSocial\");\n RazonSocial.setBackground(new java.awt.Color(255, 204, 204));\n RazonSocial.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n RazonSocial.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n RazonSocial.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Razón social de la empresa\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n RazonSocial.setCaretColor(new java.awt.Color(51, 204, 255));\n RazonSocial.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n RazonSocialKeyReleased(evt);\n }\n });\n\n Direccion.setName(\"Direccion\");\n Direccion.setBackground(new java.awt.Color(255, 204, 102));\n Direccion.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n Direccion.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n Direccion.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Dirección de la empresa\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n Direccion.setCaretColor(new java.awt.Color(51, 204, 255));\n Direccion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n DireccionActionPerformed(evt);\n }\n });\n Direccion.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n DireccionKeyReleased(evt);\n }\n });\n\n Ruc.setName(\"RUC\");\n Ruc.setBackground(new java.awt.Color(255, 204, 204));\n Ruc.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n Ruc.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n Ruc.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"RUC de la empresa\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n Ruc.setCaretColor(new java.awt.Color(51, 204, 255));\n Ruc.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n RucKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n RucKeyTyped(evt);\n }\n });\n\n Frase.setName(\"Frase\");\n Frase.setBackground(new java.awt.Color(255, 204, 102));\n Frase.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n Frase.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n Frase.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Frase a ser insertada en pie de página de ticket`s\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n Frase.setCaretColor(new java.awt.Color(51, 204, 255));\n Frase.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n FraseActionPerformed(evt);\n }\n });\n Frase.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n FraseKeyReleased(evt);\n }\n });\n\n Frase.setName(\"Frase\");\n impresora.setBackground(new java.awt.Color(255, 255, 153));\n impresora.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n impresora.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n impresora.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Nombre de la impresora\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n impresora.setCaretColor(new java.awt.Color(51, 204, 255));\n impresora.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n impresoraActionPerformed(evt);\n }\n });\n impresora.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n impresoraKeyReleased(evt);\n }\n });\n\n jPanel16.setBackground(new java.awt.Color(255, 255, 102));\n jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Adaptar el sistema para un entidad de tipo:\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n\n rdVentas.setBackground(new java.awt.Color(255, 255, 102));\n buttonGroup2.add(rdVentas);\n rdVentas.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rdVentas.setText(\"Ventas o comercio\");\n\n rdFarmaceutica.setBackground(new java.awt.Color(255, 255, 102));\n buttonGroup2.add(rdFarmaceutica);\n rdFarmaceutica.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rdFarmaceutica.setSelected(true);\n rdFarmaceutica.setText(\"Farmaceutica\");\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rdFarmaceutica)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 87, Short.MAX_VALUE)\n .addComponent(rdVentas)\n .addContainerGap())\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rdVentas)\n .addComponent(rdFarmaceutica))\n );\n\n jPanel17.setBackground(javax.swing.UIManager.getDefaults().getColor(\"Button.light\"));\n jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 102, 51), 1, true), \"DESEA ACTIVAR EL USO EXCLUSIVO DEL SISTEMA\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n\n jTextArea1.setBackground(new java.awt.Color(255, 255, 153));\n jTextArea1.setColumns(20);\n jTextArea1.setFont(new java.awt.Font(\"Monospaced\", 0, 12)); // NOI18N\n jTextArea1.setRows(5);\n jTextArea1.setText(\"Al activarse el \\\"Uso exclusivo del sistema\\\" este sistema se iniciara cada vez que \\nencienda la pc,bloqueara la pantalla para que los usuarios puedan usar unicamente el \\nsistema,activando esta opcion evita distracciones de parte del personal encargado de esta\\naplicacion.\");\n jTextArea1.setEnabled(false);\n jScrollPane5.setViewportView(jTextArea1);\n\n jCheckBox1.setBackground(new java.awt.Color(255, 255, 204));\n jCheckBox1.setFont(new java.awt.Font(\"Calibri Light\", 1, 12)); // NOI18N\n jCheckBox1.setText(\"Activar el uso exclusivo del sistema\");\n jCheckBox1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jCheckBox1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jCheckBox1.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jCheckBox1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jCheckBox1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jCheckBox1ItemStateChanged(evt);\n }\n });\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\n jPanel17.setLayout(jPanel17Layout);\n jPanel17Layout.setHorizontalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(210, 210, 210))\n );\n jPanel17Layout.setVerticalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox1))\n );\n\n jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 51, 51), 1, true), \"PERMISOS DE LOS USUARIOS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n\n PaneReportes.setBackground(new java.awt.Color(255, 255, 204));\n PaneReportes.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true), \"Reportes\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n\n chkRptActivos.setBackground(new java.awt.Color(255, 51, 51));\n chkRptActivos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptActivos.setText(\"Reportes de activos de la entidad\");\n\n chkRptInvComplt.setBackground(new java.awt.Color(255, 51, 51));\n chkRptInvComplt.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptInvComplt.setText(\"Reporte de inventario[COMPLETO]\");\n\n chkRptConStock.setBackground(new java.awt.Color(255, 51, 51));\n chkRptConStock.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptConStock.setText(\"Reporte de inventario[CON STOCK]\");\n\n chkRptSinStock.setBackground(new java.awt.Color(255, 51, 51));\n chkRptSinStock.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptSinStock.setText(\"Reporte de inventario[SIN STOCK]\");\n\n chkRptEstAlert.setBackground(new java.awt.Color(255, 51, 51));\n chkRptEstAlert.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptEstAlert.setText(\"Reporte de inventario[ESTADO ALERTA]\");\n\n chkRptFiltradXLab.setBackground(new java.awt.Color(255, 51, 51));\n chkRptFiltradXLab.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptFiltradXLab.setText(\"Reporte de inventario filtrado por laboratorio\");\n\n chkSegimitMedic.setBackground(new java.awt.Color(255, 51, 51));\n chkSegimitMedic.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkSegimitMedic.setText(\"Seguimiento de medicamentos\");\n\n chkRptVentaAnio.setBackground(new java.awt.Color(255, 51, 51));\n chkRptVentaAnio.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptVentaAnio.setText(\"Ventas del año\");\n\n chkRptVentasDH.setBackground(new java.awt.Color(255, 153, 51));\n chkRptVentasDH.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptVentasDH.setText(\"Ventas desde-hasta\");\n\n chkRptVentasDia.setBackground(new java.awt.Color(255, 153, 51));\n chkRptVentasDia.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptVentasDia.setText(\"Ventas del dia\");\n\n chkRptVentasDUsuario.setBackground(new java.awt.Color(255, 153, 51));\n chkRptVentasDUsuario.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptVentasDUsuario.setText(\"Ventas desde-hasta por USUARIOS\");\n\n chkRptCompras.setBackground(new java.awt.Color(255, 255, 102));\n chkRptCompras.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptCompras.setText(\"Compras realizadas\");\n\n chkRptComprasXDoc.setBackground(new java.awt.Color(255, 255, 102));\n chkRptComprasXDoc.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptComprasXDoc.setText(\"Compras por documento\");\n\n chkRptComprasDH.setBackground(new java.awt.Color(255, 255, 102));\n chkRptComprasDH.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkRptComprasDH.setText(\"Compras desde-hasta\");\n\n javax.swing.GroupLayout PaneReportesLayout = new javax.swing.GroupLayout(PaneReportes);\n PaneReportes.setLayout(PaneReportesLayout);\n PaneReportesLayout.setHorizontalGroup(\n PaneReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PaneReportesLayout.createSequentialGroup()\n .addGroup(PaneReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chkRptSinStock, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chkRptVentaAnio)\n .addGroup(PaneReportesLayout.createSequentialGroup()\n .addGroup(PaneReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chkRptFiltradXLab)\n .addComponent(chkSegimitMedic)\n .addComponent(chkRptEstAlert, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chkRptActivos)\n .addComponent(chkRptInvComplt)\n .addComponent(chkRptConStock, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(PaneReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chkRptVentasDH)\n .addComponent(chkRptVentasDia)\n .addComponent(chkRptVentasDUsuario)\n .addComponent(chkRptComprasDH)\n .addComponent(chkRptComprasXDoc)\n .addComponent(chkRptCompras))))\n .addContainerGap(10, Short.MAX_VALUE))\n );\n PaneReportesLayout.setVerticalGroup(\n PaneReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PaneReportesLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PaneReportesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PaneReportesLayout.createSequentialGroup()\n .addComponent(chkRptActivos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptInvComplt)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptConStock)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptSinStock)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptEstAlert)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptFiltradXLab)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkSegimitMedic)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptVentaAnio))\n .addGroup(PaneReportesLayout.createSequentialGroup()\n .addComponent(chkRptVentasDH)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptVentasDia)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptVentasDUsuario)\n .addGap(13, 13, 13)\n .addComponent(chkRptCompras)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptComprasDH)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkRptComprasXDoc)))\n .addGap(116, 116, 116))\n );\n\n PaneFormularios.setBackground(new java.awt.Color(255, 255, 204));\n PaneFormularios.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true), \"Formularios\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n\n chkClientes.setBackground(new java.awt.Color(255, 51, 51));\n chkClientes.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkClientes.setText(\"Clientes\");\n\n chkMedOProds.setBackground(new java.awt.Color(255, 51, 51));\n chkMedOProds.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkMedOProds.setText(\"Medicamentos o productos\");\n\n chkCompuestos.setBackground(new java.awt.Color(255, 51, 51));\n chkCompuestos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkCompuestos.setText(\"Compuestos(**)\");\n\n chkUsuarios.setBackground(new java.awt.Color(255, 153, 51));\n chkUsuarios.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkUsuarios.setText(\"Usuarios\");\n\n chkProveedores.setBackground(new java.awt.Color(255, 153, 51));\n chkProveedores.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkProveedores.setText(\"Proveedores\");\n\n chkLaborMarcas.setBackground(new java.awt.Color(255, 153, 51));\n chkLaborMarcas.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkLaborMarcas.setText(\"Laboratorio o marca\");\n\n chkPedidosInternos.setBackground(new java.awt.Color(255, 255, 102));\n chkPedidosInternos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkPedidosInternos.setText(\"Generar pedido interno\");\n\n chkCompras.setBackground(new java.awt.Color(255, 255, 102));\n chkCompras.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkCompras.setText(\"Registrar compras realizadas\");\n\n chkBuscarXCompuest.setBackground(new java.awt.Color(255, 255, 102));\n chkBuscarXCompuest.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkBuscarXCompuest.setText(\"Buscar por compuestos(**)\");\n\n chkBuscador.setBackground(new java.awt.Color(0, 204, 51));\n chkBuscador.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n chkBuscador.setText(\"Abrir el buscador\");\n\n javax.swing.GroupLayout PaneFormulariosLayout = new javax.swing.GroupLayout(PaneFormularios);\n PaneFormularios.setLayout(PaneFormulariosLayout);\n PaneFormulariosLayout.setHorizontalGroup(\n PaneFormulariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PaneFormulariosLayout.createSequentialGroup()\n .addGroup(PaneFormulariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chkClientes)\n .addComponent(chkMedOProds)\n .addComponent(chkCompuestos)\n .addComponent(chkLaborMarcas)\n .addComponent(chkProveedores)\n .addComponent(chkUsuarios)\n .addComponent(chkPedidosInternos)\n .addComponent(chkCompras)\n .addComponent(chkBuscarXCompuest)\n .addComponent(chkBuscador))\n .addContainerGap(10, Short.MAX_VALUE))\n );\n PaneFormulariosLayout.setVerticalGroup(\n PaneFormulariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PaneFormulariosLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(chkClientes)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkMedOProds)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkCompuestos)\n .addGap(18, 18, 18)\n .addComponent(chkLaborMarcas)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkProveedores)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkUsuarios)\n .addGap(18, 18, 18)\n .addComponent(chkPedidosInternos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkCompras)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkBuscarXCompuest)\n .addGap(18, 18, 18)\n .addComponent(chkBuscador)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel12.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jLabel12.setText(\"** Solo en modo farmaceutico.\");\n\n cmbPermisos.setFont(new java.awt.Font(\"Calibri Light\", 0, 14)); // NOI18N\n cmbPermisos.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"SUPERVISOR\", \"DESPACHADOR\" }));\n cmbPermisos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbPermisosActionPerformed(evt);\n }\n });\n\n btnguardar1.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n btnguardar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n btnguardar1.setText(\"CANCELAR\");\n btnguardar1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnguardar1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n btnguardar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardar1ActionPerformed(evt);\n }\n });\n\n btnguardar.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n btnguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/OK.png\"))); // NOI18N\n btnguardar.setText(\"GUARDAR\");\n btnguardar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnguardar.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n btnguardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardarActionPerformed(evt);\n }\n });\n\n btnGuardarPermisos.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n btnGuardarPermisos.setText(\"GUARDAR PERMISOS\");\n btnGuardarPermisos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarPermisosActionPerformed(evt);\n }\n });\n\n lblPermisos.setText(\"molina\");\n\n javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);\n jPanel20.setLayout(jPanel20Layout);\n jPanel20Layout.setHorizontalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()\n .addComponent(PaneFormularios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(PaneReportes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbPermisos, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(lblPermisos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnguardar, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnGuardarPermisos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnguardar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n );\n jPanel20Layout.setVerticalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addComponent(PaneReportes, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(cmbPermisos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnGuardarPermisos))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnguardar)\n .addComponent(btnguardar1)\n .addComponent(lblPermisos)))\n .addComponent(PaneFormularios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(97, 97, 97))\n );\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(impresora, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)\n .addComponent(Direccion, javax.swing.GroupLayout.Alignment.LEADING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Frase)))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(RazonSocial, javax.swing.GroupLayout.PREFERRED_SIZE, 478, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Ruc, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(RazonSocial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Ruc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Frase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(impresora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout jDialog8Layout = new javax.swing.GroupLayout(jDialog8.getContentPane());\n jDialog8.getContentPane().setLayout(jDialog8Layout);\n jDialog8Layout.setHorizontalGroup(\n jDialog8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jDialog8Layout.setVerticalGroup(\n jDialog8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog9.setMinimumSize(new java.awt.Dimension(245, 127));\n jDialog9.setModal(true);\n jDialog9.setUndecorated(true);\n\n jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"BUSCAR POR AÑO\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 1, 12))); // NOI18N\n\n txtanio.setBackground(new java.awt.Color(255, 255, 204));\n txtanio.setFont(new java.awt.Font(\"Calibri Light\", 2, 12)); // NOI18N\n txtanio.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtanio.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true), \"Insertar el año\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Calibri Light\", 0, 12))); // NOI18N\n txtanio.setCaretColor(new java.awt.Color(51, 204, 255));\n txtanio.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtanioKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtanio, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addComponent(txtanio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jMenuBar7.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jMenuBar7MouseDragged(evt);\n }\n });\n jMenuBar7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuBar7MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenuBar7MousePressed(evt);\n }\n });\n\n jMenu21.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/zoom in.png\"))); // NOI18N\n jMenu21.setText(\"BUSCAR\");\n jMenu21.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu21.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu21.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu21.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu21.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu21MousePressed(evt);\n }\n });\n jMenuBar7.add(jMenu21);\n\n jMenu22.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n jMenu22.setText(\"CERRAR VENTANA\");\n jMenu22.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jMenu22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jMenu22.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jMenu22.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jMenu22.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jMenu22.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu22MousePressed(evt);\n }\n });\n jMenu22.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu22ActionPerformed(evt);\n }\n });\n jMenuBar7.add(jMenu22);\n\n jDialog9.setJMenuBar(jMenuBar7);\n\n javax.swing.GroupLayout jDialog9Layout = new javax.swing.GroupLayout(jDialog9.getContentPane());\n jDialog9.getContentPane().setLayout(jDialog9Layout);\n jDialog9Layout.setHorizontalGroup(\n jDialog9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jDialog9Layout.setVerticalGroup(\n jDialog9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog10.setMinimumSize(new java.awt.Dimension(803, 463));\n jDialog10.setModal(true);\n jDialog10.setUndecorated(true);\n\n jPanel15.setBackground(new java.awt.Color(24, 83, 138));\n jPanel15.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(24, 83, 138), 3, true));\n\n jLabel1.setFont(new java.awt.Font(\"Calibri Light\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 204, 204));\n jLabel1.setText(\"Versión:\");\n\n jLabel2.setFont(new java.awt.Font(\"Calibri Light\", 0, 36)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"SistemaFarma\");\n\n jLabel3.setFont(new java.awt.Font(\"Calibri Light\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(204, 204, 204));\n jLabel3.setText(\"Desarrollado por:\");\n\n jLabel7.setFont(new java.awt.Font(\"Calibri Light\", 1, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(204, 204, 204));\n jLabel7.setText(\"Facebook:\");\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/farmacia.png\"))); // NOI18N\n\n jLabel9.setFont(new java.awt.Font(\"Calibri Light\", 1, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"4.7.0\");\n\n jLabel10.setFont(new java.awt.Font(\"Calibri Light\", 1, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(255, 255, 255));\n jLabel10.setText(\"Alvaro Emanuel Molina Cruz\");\n\n jLabel11.setFont(new java.awt.Font(\"Calibri Light\", 1, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 255, 255));\n jLabel11.setText(\"https://web.facebook.com/SistemasInformaticosEmpresariales/\");\n\n btncerrar.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n btncerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/Close.png\"))); // NOI18N\n btncerrar.setText(\"Cerrar la ventana\");\n btncerrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btncerrarActionPerformed(evt);\n }\n });\n\n jTextArea2.setEditable(false);\n jTextArea2.setColumns(20);\n jTextArea2.setRows(5);\n jTextArea2.setText(\"Reglas del sistema\\n\\n1.-Solo los usuarios ADMIN pueden crear otros usuarios.\\n2.-Solo los usuarios ADMIN pueden brindar PERMISOS a otros usuarios.\\n3.-Solo los usuarios ADMIN pueden activar y desactivar el \\\"modo exclusivo del sistema\\\".\\n4.-Solo los usuarios ADMIN pueden cerrar el sistema en \\\"modo exclusivo del sistema\\\".\");\n jScrollPane3.setViewportView(jTextArea2);\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel10))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 70, Short.MAX_VALUE)\n .addComponent(jLabel8))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(btncerrar)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane3))\n .addContainerGap())\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabel10))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jLabel11)))\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)\n .addComponent(btncerrar, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout jDialog10Layout = new javax.swing.GroupLayout(jDialog10.getContentPane());\n jDialog10.getContentPane().setLayout(jDialog10Layout);\n jDialog10Layout.setHorizontalGroup(\n jDialog10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jDialog10Layout.setVerticalGroup(\n jDialog10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jDialog11.setAlwaysOnTop(true);\n jDialog11.setCursor(new java.awt.Cursor(java.awt.Cursor.MOVE_CURSOR));\n jDialog11.setEnabled(false);\n jDialog11.setFocusable(false);\n jDialog11.setMinimumSize(new java.awt.Dimension(485, 52));\n jDialog11.setModal(true);\n jDialog11.setUndecorated(true);\n jDialog11.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n jDialog11WindowActivated(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n jDialog11WindowOpened(evt);\n }\n });\n\n jPanel21.setBackground(new java.awt.Color(51, 51, 51));\n\n jProgressBar1.setBackground(new java.awt.Color(102, 0, 255));\n jProgressBar1.setFont(new java.awt.Font(\"Calibri Light\", 0, 14)); // NOI18N\n jProgressBar1.setForeground(new java.awt.Color(153, 0, 0));\n jProgressBar1.setStringPainted(true);\n\n lblsesion.setFont(new java.awt.Font(\"Calibri Light\", 0, 14)); // NOI18N\n lblsesion.setForeground(new java.awt.Color(255, 255, 255));\n lblsesion.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblsesion.setText(\"cargando configuraciones del sistema.\");\n lblsesion.setMinimumSize(new java.awt.Dimension(4, 17));\n lblsesion.setPreferredSize(new java.awt.Dimension(4, 17));\n\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\n jPanel21.setLayout(jPanel21Layout);\n jPanel21Layout.setHorizontalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblsesion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 465, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel21Layout.setVerticalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()\n .addComponent(lblsesion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout jDialog11Layout = new javax.swing.GroupLayout(jDialog11.getContentPane());\n jDialog11.getContentPane().setLayout(jDialog11Layout);\n jDialog11Layout.setHorizontalGroup(\n jDialog11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jDialog11Layout.setVerticalGroup(\n jDialog11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jDialog12.setAlwaysOnTop(true);\n jDialog12.setCursor(new java.awt.Cursor(java.awt.Cursor.MOVE_CURSOR));\n jDialog12.setEnabled(false);\n jDialog12.setFocusable(false);\n jDialog12.setMinimumSize(new java.awt.Dimension(485, 52));\n jDialog12.setModal(true);\n jDialog12.setUndecorated(true);\n jDialog12.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n jDialog12WindowActivated(evt);\n }\n public void windowClosed(java.awt.event.WindowEvent evt) {\n jDialog12WindowClosed(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n jDialog12WindowOpened(evt);\n }\n });\n\n jPanel22.setBackground(javax.swing.UIManager.getDefaults().getColor(\"Button.light\"));\n\n jProgressBar2.setBackground(new java.awt.Color(102, 0, 255));\n jProgressBar2.setFont(new java.awt.Font(\"Calibri Light\", 0, 14)); // NOI18N\n jProgressBar2.setForeground(new java.awt.Color(153, 0, 0));\n jProgressBar2.setStringPainted(true);\n\n lblsesion1.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n lblsesion1.setForeground(new java.awt.Color(51, 51, 51));\n lblsesion1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblsesion1.setText(\"....\");\n lblsesion1.setMinimumSize(new java.awt.Dimension(4, 17));\n lblsesion1.setPreferredSize(new java.awt.Dimension(4, 17));\n\n javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);\n jPanel22.setLayout(jPanel22Layout);\n jPanel22Layout.setHorizontalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel22Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblsesion1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jProgressBar2, javax.swing.GroupLayout.DEFAULT_SIZE, 465, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel22Layout.setVerticalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()\n .addComponent(lblsesion1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout jDialog12Layout = new javax.swing.GroupLayout(jDialog12.getContentPane());\n jDialog12.getContentPane().setLayout(jDialog12Layout);\n jDialog12Layout.setHorizontalGroup(\n jDialog12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jDialog12Layout.setVerticalGroup(\n jDialog12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"[Agregar titulo]\");\n setBackground(new java.awt.Color(255, 0, 51));\n setIconImage(getIconImage());\n setMinimumSize(new java.awt.Dimension(1020, 725));\n setUndecorated(true);\n addWindowStateListener(new java.awt.event.WindowStateListener() {\n public void windowStateChanged(java.awt.event.WindowEvent evt) {\n formWindowStateChanged(evt);\n }\n });\n addWindowFocusListener(new java.awt.event.WindowFocusListener() {\n public void windowGainedFocus(java.awt.event.WindowEvent evt) {\n }\n public void windowLostFocus(java.awt.event.WindowEvent evt) {\n formWindowLostFocus(evt);\n }\n });\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n public void windowDeiconified(java.awt.event.WindowEvent evt) {\n formWindowDeiconified(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel1.setBackground(javax.swing.UIManager.getDefaults().getColor(\"Button.light\"));\n jPanel1.setName(\"\"); // NOI18N\n\n jDesktopPane.setBackground(javax.swing.UIManager.getDefaults().getColor(\"Button.light\"));\n\n logo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n logo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/farmacia.png\"))); // NOI18N\n logo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jDesktopPane.add(logo);\n logo.setBounds(0, 390, 260, 140);\n\n jButton3.setText(\"jButton3\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n jDesktopPane.add(jButton3);\n jButton3.setBounds(580, 80, 73, 23);\n\n jPanel4.setBackground(java.awt.Color.white);\n jPanel4.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n\n jButton1.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/salir.png\"))); // NOI18N\n jButton1.setText(\"Salir de sistema\");\n jButton1.setFocusable(false);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/cambio.png\"))); // NOI18N\n jButton2.setText(\"Cerrar sesion\");\n jButton2.setFocusable(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTabbedPane1.setFocusable(false);\n jTabbedPane1.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jTabbedPane1.setMinimumSize(new java.awt.Dimension(700, 163));\n\n jPanel11.setBackground(new java.awt.Color(51, 0, 51));\n\n jEditorPaneStock.setEditable(false);\n jEditorPaneStock.setBackground(new java.awt.Color(255, 255, 156));\n jEditorPaneStock.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\n jScrollPane2.setViewportView(jEditorPaneStock);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 695, Short.MAX_VALUE)\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n );\n\n jTabbedPane1.addTab(\"Stock\", jPanel11);\n\n jEditorPaneAdvertencias.setBackground(new java.awt.Color(255, 102, 102));\n jEditorPaneAdvertencias.setFont(new java.awt.Font(\"Calibri Light\", 1, 12)); // NOI18N\n jEditorPaneAdvertencias.setForeground(new java.awt.Color(153, 0, 0));\n jScrollPane4.setViewportView(jEditorPaneAdvertencias);\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 695, Short.MAX_VALUE)\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n );\n\n jTabbedPane1.addTab(\"Advertencias\", jPanel12);\n\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/documento.png\"))); // NOI18N\n jLabel5.setText(\"CODIGO\");\n jLabel5.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n jLabel5.setMaximumSize(new java.awt.Dimension(85, 31));\n jLabel5.setMinimumSize(new java.awt.Dimension(85, 31));\n jLabel5.setPreferredSize(new java.awt.Dimension(85, 31));\n\n lblcodigo.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n lblcodigo.setForeground(new java.awt.Color(102, 102, 102));\n lblcodigo.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n lblcodigo.setText(\"009\");\n lblcodigo.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n lblcodigo.setMaximumSize(new java.awt.Dimension(68, 31));\n lblcodigo.setMinimumSize(new java.awt.Dimension(68, 31));\n lblcodigo.setPreferredSize(new java.awt.Dimension(68, 31));\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/jefe.png\"))); // NOI18N\n jLabel4.setText(\"USUARIO\");\n jLabel4.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n\n lblusuario.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n lblusuario.setForeground(new java.awt.Color(102, 102, 102));\n lblusuario.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n lblusuario.setText(\"admin\");\n lblusuario.setMaximumSize(new java.awt.Dimension(300, 31));\n lblusuario.setMinimumSize(new java.awt.Dimension(300, 31));\n lblusuario.setPreferredSize(new java.awt.Dimension(300, 31));\n\n jLabel6.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/cargo.png\"))); // NOI18N\n jLabel6.setText(\"PERMISOS\");\n jLabel6.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n jLabel6.setMaximumSize(new java.awt.Dimension(85, 31));\n jLabel6.setMinimumSize(new java.awt.Dimension(85, 31));\n jLabel6.setPreferredSize(new java.awt.Dimension(85, 31));\n\n lblpermisos.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n lblpermisos.setForeground(new java.awt.Color(102, 102, 102));\n lblpermisos.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n lblpermisos.setText(\"admin\");\n lblpermisos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n lblpermisos.setMaximumSize(new java.awt.Dimension(135, 31));\n lblpermisos.setMinimumSize(new java.awt.Dimension(135, 31));\n lblpermisos.setPreferredSize(new java.awt.Dimension(135, 31));\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblpermisos, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblusuario, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblusuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblpermisos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jDesktopPane)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDesktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE))\n );\n\n jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/libra (1).png\"))); // NOI18N\n jMenu2.setText(\"Registros\");\n jMenu2.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n menuClientes.setText(\"Principales\");\n menuClientes.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n jMenuItemClientes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n jMenuItemClientes.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n jMenuItemClientes.setText(\"Clientes\");\n jMenuItemClientes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemClientesActionPerformed(evt);\n }\n });\n menuClientes.add(jMenuItemClientes);\n\n menuMedicamento.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n menuMedicamento.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuMedicamento.setText(\"Medicamentos\");\n menuMedicamento.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuMedicamentoActionPerformed(evt);\n }\n });\n menuClientes.add(menuMedicamento);\n\n menuCompuestos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n menuCompuestos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuCompuestos.setText(\"Compuestos\");\n menuCompuestos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuCompuestosActionPerformed(evt);\n }\n });\n menuClientes.add(menuCompuestos);\n\n jMenu2.add(menuClientes);\n\n jMenu5.setText(\"Secundarios\");\n jMenu5.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n menuLaboratorios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n menuLaboratorios.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuLaboratorios.setText(\"Laboratorios o marcas\");\n menuLaboratorios.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuLaboratoriosActionPerformed(evt);\n }\n });\n jMenu5.add(menuLaboratorios);\n\n menuProveedores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n menuProveedores.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuProveedores.setText(\"Proveedores\");\n menuProveedores.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuProveedoresActionPerformed(evt);\n }\n });\n jMenu5.add(menuProveedores);\n\n menuUsuarios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n menuUsuarios.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuUsuarios.setText(\"Usuarios\");\n menuUsuarios.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuUsuariosActionPerformed(evt);\n }\n });\n jMenu5.add(menuUsuarios);\n\n jMenu2.add(jMenu5);\n\n jMenuBar1.add(jMenu2);\n\n jMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/controlar.png\"))); // NOI18N\n jMenu7.setText(\"Procesos\");\n jMenu7.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n menuPedidos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n menuPedidos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuPedidos.setText(\"Generar Pedido Interno\");\n menuPedidos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuPedidosActionPerformed(evt);\n }\n });\n jMenu7.add(menuPedidos);\n\n menuCompras.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n menuCompras.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuCompras.setText(\"Registrar compras realizadas\");\n menuCompras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuComprasActionPerformed(evt);\n }\n });\n jMenu7.add(menuCompras);\n\n jMenuItemCompuestos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n jMenuItemCompuestos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n jMenuItemCompuestos.setText(\"Buscar por compuestos\");\n jMenuItemCompuestos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCompuestosActionPerformed(evt);\n }\n });\n jMenu7.add(jMenuItemCompuestos);\n\n jMenuBar1.add(jMenu7);\n\n menuReportes.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/dinero.png\"))); // NOI18N\n menuReportes.setText(\"Reportes\");\n menuReportes.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n jMenu4.setText(\"Reportes de la empresa\");\n jMenu4.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n rptActivos.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptActivos.setText(\"Reporte de activos de la entidad\");\n rptActivos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptActivosActionPerformed(evt);\n }\n });\n jMenu4.add(rptActivos);\n\n rptInventarioC.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptInventarioC.setText(\"Reporte de inventario[COMPLETO]\");\n rptInventarioC.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptInventarioCActionPerformed(evt);\n }\n });\n jMenu4.add(rptInventarioC);\n\n rptInventarioCS.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptInventarioCS.setText(\"Reporte de inventario[SOLO CON STOCK]\");\n rptInventarioCS.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptInventarioCSActionPerformed(evt);\n }\n });\n jMenu4.add(rptInventarioCS);\n\n rptInventarioSS.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptInventarioSS.setText(\"Reporte de inventario[SIN STOCK]\");\n rptInventarioSS.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptInventarioSSActionPerformed(evt);\n }\n });\n jMenu4.add(rptInventarioSS);\n\n rptInventarioEA.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptInventarioEA.setText(\"Reporte de inventario[ESTADO DE ALERTA]\");\n rptInventarioEA.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptInventarioEAActionPerformed(evt);\n }\n });\n jMenu4.add(rptInventarioEA);\n\n rptFiltradoXLab.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n rptFiltradoXLab.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptFiltradoXLab.setText(\"Reporte de inventario FILTRADO por laboratorio\");\n rptFiltradoXLab.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptFiltradoXLabActionPerformed(evt);\n }\n });\n jMenu4.add(rptFiltradoXLab);\n\n rptSeguimientoMed.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptSeguimientoMed.setText(\"Reporte de seguimiento de medicamentos\");\n rptSeguimientoMed.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptSeguimientoMedActionPerformed(evt);\n }\n });\n jMenu4.add(rptSeguimientoMed);\n\n rptVentasAnio.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptVentasAnio.setText(\"Reporte de ventas del año\");\n rptVentasAnio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptVentasAnioActionPerformed(evt);\n }\n });\n jMenu4.add(rptVentasAnio);\n\n menuReportes.add(jMenu4);\n\n jMenu1.setText(\"Reportes de Ventas\");\n jMenu1.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n rptVentasDH.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptVentasDH.setText(\"Reporte de ventas Desde-Hasta\");\n rptVentasDH.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptVentasDHActionPerformed(evt);\n }\n });\n jMenu1.add(rptVentasDH);\n\n RptVentasDia.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n RptVentasDia.setText(\"Reporte de ventas del día\");\n RptVentasDia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n RptVentasDiaActionPerformed(evt);\n }\n });\n jMenu1.add(RptVentasDia);\n\n rptVentasXUsu.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptVentasXUsu.setText(\"Reporte de ventas por Usuario Desde-Hasta\");\n rptVentasXUsu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptVentasXUsuActionPerformed(evt);\n }\n });\n jMenu1.add(rptVentasXUsu);\n\n menuReportes.add(jMenu1);\n\n jMenu6.setText(\"Reportes de compras\");\n jMenu6.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n rptCompras.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptCompras.setText(\"Reporte de compras\");\n rptCompras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptComprasActionPerformed(evt);\n }\n });\n jMenu6.add(rptCompras);\n\n rptComprasDH.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptComprasDH.setText(\"Reporte de compras desde-hasta\");\n rptComprasDH.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptComprasDHActionPerformed(evt);\n }\n });\n jMenu6.add(rptComprasDH);\n\n rptComprasXDoc.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n rptComprasXDoc.setText(\"Reporte de compras por documento\");\n rptComprasXDoc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rptComprasXDocActionPerformed(evt);\n }\n });\n jMenu6.add(rptComprasXDoc);\n\n menuReportes.add(jMenu6);\n\n jMenuBar1.add(menuReportes);\n\n menuHerramientas.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/tienda.png\"))); // NOI18N\n menuHerramientas.setText(\"Herramientas\");\n menuHerramientas.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n\n menuAjustes.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuAjustes.setText(\"Ajustes del sistema\");\n menuAjustes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuAjustesActionPerformed(evt);\n }\n });\n menuHerramientas.add(menuAjustes);\n\n menuAjustes1.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuAjustes1.setText(\"Acerca del sistema\");\n menuAjustes1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuAjustes1ActionPerformed(evt);\n }\n });\n menuHerramientas.add(menuAjustes1);\n\n menuAjustes2.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuAjustes2.setText(\"Liberar todas las opciones del sistema \");\n menuAjustes2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuAjustes2ActionPerformed(evt);\n }\n });\n menuHerramientas.add(menuAjustes2);\n\n menuBuscador.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n menuBuscador.setText(\"Abrir el buscador\");\n menuBuscador.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuBuscadorActionPerformed(evt);\n }\n });\n menuHerramientas.add(menuBuscador);\n\n jMenuBar1.add(menuHerramientas);\n\n jMenu10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/img/info.png\"))); // NOI18N\n jMenu10.setText(\"Mostrar productos con bajo stock\");\n jMenu10.setFont(new java.awt.Font(\"Calibri Light\", 0, 12)); // NOI18N\n jMenu10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenu10MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu10MousePressed(evt);\n }\n });\n jMenuBar1.add(jMenu10);\n\n jMenu8.setText(\" \");\n jMenuBar1.add(jMenu8);\n\n jMenu3.setText(\"jMenu3\");\n jMenu3.setFont(new java.awt.Font(\"Calibri Light\", 1, 18)); // NOI18N\n jMenuBar1.add(jMenu3);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n TECHS = new javax.swing.JDialog();\n jPanel3 = new javax.swing.JPanel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n name_e = new javax.swing.JTextField();\n genero_e = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n edad_e = new javax.swing.JSpinner();\n id_e = new javax.swing.JFormattedTextField();\n VEHI = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n tipvol_int = new javax.swing.JTextField();\n tmal_car = new javax.swing.JTextField();\n mat_bat = new javax.swing.JTextField();\n mate_int = new javax.swing.JTextField();\n spin_bat = new javax.swing.JSpinner();\n spin_mal_car = new javax.swing.JSpinner();\n spin_int = new javax.swing.JSpinner();\n spinbot_int = new javax.swing.JSpinner();\n spin_car = new javax.swing.JSpinner();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n spin_info = new javax.swing.JSpinner();\n spin2_info = new javax.swing.JSpinner();\n spin3_info = new javax.swing.JSpinner();\n si1 = new javax.swing.JRadioButton();\n no1 = new javax.swing.JRadioButton();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n elec = new javax.swing.JRadioButton();\n manu = new javax.swing.JRadioButton();\n si2 = new javax.swing.JRadioButton();\n no2 = new javax.swing.JRadioButton();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n spin_cantasien = new javax.swing.JSpinner();\n colorcar = new javax.swing.JTextField();\n marcaudio = new javax.swing.JTextField();\n vincar = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n mate_asien = new javax.swing.JTextField();\n spin_asien = new javax.swing.JSpinner();\n auto_bat = new javax.swing.JSpinner();\n buttonGroup1 = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n buttonGroup3 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jLabel26 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n vehi_combo = new javax.swing.JComboBox<>();\n tech_combo = new javax.swing.JComboBox<>();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 204));\n\n jLabel22.setForeground(new java.awt.Color(0, 0, 0));\n jLabel22.setText(\"Nombre:\");\n\n jLabel23.setForeground(new java.awt.Color(0, 0, 0));\n jLabel23.setText(\"ID:\");\n\n jLabel24.setForeground(new java.awt.Color(0, 0, 0));\n jLabel24.setText(\"Genero:\");\n\n jLabel25.setForeground(new java.awt.Color(0, 0, 0));\n jLabel25.setText(\"Edad:\");\n\n name_e.setBackground(new java.awt.Color(255, 255, 255));\n name_e.setForeground(new java.awt.Color(0, 0, 0));\n\n genero_e.setBackground(new java.awt.Color(255, 255, 255));\n genero_e.setForeground(new java.awt.Color(0, 0, 0));\n\n jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/dominic.png\"))); // NOI18N\n\n jButton2.setText(\"Add\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n id_e.setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton2)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(genero_e, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addComponent(name_e, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addComponent(edad_e)\n .addComponent(id_e))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 72, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel23)\n .addComponent(id_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(name_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(13, 13, 13)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(genero_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(edad_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addContainerGap(36, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout TECHSLayout = new javax.swing.GroupLayout(TECHS.getContentPane());\n TECHS.getContentPane().setLayout(TECHSLayout);\n TECHSLayout.setHorizontalGroup(\n TECHSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(TECHSLayout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n TECHSLayout.setVerticalGroup(\n TECHSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel2.setBackground(new java.awt.Color(204, 255, 255));\n\n jLabel1.setForeground(new java.awt.Color(0, 0, 0));\n jLabel1.setText(\"Autonomia (Bateria):\");\n\n jLabel2.setForeground(new java.awt.Color(0, 0, 0));\n jLabel2.setText(\"Material (Bateria):\");\n\n jLabel3.setForeground(new java.awt.Color(0, 0, 0));\n jLabel3.setText(\"Tiempo Ensamblaje (Bateria):\");\n\n jLabel4.setForeground(new java.awt.Color(0, 0, 0));\n jLabel4.setText(\"Tiempo Ensamblaje (Carroceria):\");\n\n jLabel5.setForeground(new java.awt.Color(0, 0, 0));\n jLabel5.setText(\"Tipo Maletero (Carroceria):\");\n\n jLabel6.setForeground(new java.awt.Color(0, 0, 0));\n jLabel6.setText(\"Capacidad Maletero (Carroceria):\");\n\n jLabel7.setForeground(new java.awt.Color(0, 0, 0));\n jLabel7.setText(\"Tipo de Volante (Interior):\");\n\n jLabel8.setForeground(new java.awt.Color(0, 0, 0));\n jLabel8.setText(\"Material mas usado (Interior):\");\n\n jLabel9.setForeground(new java.awt.Color(0, 0, 0));\n jLabel9.setText(\"Tiempo Ensamblaje (Interior):\");\n\n jLabel10.setForeground(new java.awt.Color(0, 0, 0));\n jLabel10.setText(\"Cantidad de botones (Interior):\");\n\n tipvol_int.setBackground(new java.awt.Color(255, 255, 255));\n\n tmal_car.setBackground(new java.awt.Color(255, 255, 255));\n\n mat_bat.setBackground(new java.awt.Color(255, 255, 255));\n\n mate_int.setBackground(new java.awt.Color(255, 255, 255));\n\n spin_bat.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_mal_car.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_int.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spinbot_int.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_car.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n jLabel11.setForeground(new java.awt.Color(0, 0, 0));\n jLabel11.setText(\"Ancho Pantalla (Infoentretenimiento):\");\n\n jLabel12.setForeground(new java.awt.Color(0, 0, 0));\n jLabel12.setText(\"Visor (Infoentretenimiento):\");\n\n jLabel13.setForeground(new java.awt.Color(0, 0, 0));\n jLabel13.setText(\"Cantidad pantallas (Infoentretenimiento):\");\n\n jLabel14.setForeground(new java.awt.Color(0, 0, 0));\n jLabel14.setText(\"Tiempo Ensamblaje (Infoentretenimiento):\");\n\n spin_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin2_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin3_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n buttonGroup1.add(si1);\n si1.setForeground(new java.awt.Color(0, 0, 0));\n si1.setText(\"Si\");\n\n buttonGroup1.add(no1);\n no1.setForeground(new java.awt.Color(0, 0, 0));\n no1.setText(\"No\");\n\n jLabel15.setForeground(new java.awt.Color(0, 0, 0));\n jLabel15.setText(\"Masaje (Asientos):\");\n\n jLabel17.setForeground(new java.awt.Color(0, 0, 0));\n jLabel17.setText(\"Material (Asientos):\");\n\n jLabel18.setForeground(new java.awt.Color(0, 0, 0));\n jLabel18.setText(\"Tiempo Ensamblaje (Asientos):\");\n\n buttonGroup2.add(elec);\n elec.setForeground(new java.awt.Color(0, 0, 0));\n elec.setText(\"Electrico\");\n\n buttonGroup2.add(manu);\n manu.setForeground(new java.awt.Color(0, 0, 0));\n manu.setText(\"Manual\");\n\n buttonGroup3.add(si2);\n si2.setForeground(new java.awt.Color(0, 0, 0));\n si2.setText(\"Si\");\n\n buttonGroup3.add(no2);\n no2.setForeground(new java.awt.Color(0, 0, 0));\n no2.setText(\"No\");\n\n jLabel16.setForeground(new java.awt.Color(0, 0, 0));\n jLabel16.setText(\"Cantidad Asientos:\");\n\n jLabel19.setForeground(new java.awt.Color(0, 0, 0));\n jLabel19.setText(\"Marca Sistema de Audio:\");\n\n jLabel20.setForeground(new java.awt.Color(0, 0, 0));\n jLabel20.setText(\"Color:\");\n\n jLabel21.setForeground(new java.awt.Color(0, 0, 0));\n jLabel21.setText(\"VIN:\");\n\n spin_cantasien.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n colorcar.setBackground(new java.awt.Color(255, 255, 255));\n\n marcaudio.setBackground(new java.awt.Color(255, 255, 255));\n\n vincar.setBackground(new java.awt.Color(255, 255, 255));\n\n jButton1.setText(\"Crear\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n mate_asien.setBackground(new java.awt.Color(255, 255, 255));\n\n spin_asien.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n auto_bat.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(spin_mal_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(72, 72, 72)\n .addComponent(mat_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel8)\n .addComponent(jLabel7))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spin_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tmal_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spin_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(si2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(elec)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(manu)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(no2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18)\n .addComponent(jLabel17))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(mate_asien, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addComponent(spin_asien)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tipvol_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(mate_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spinbot_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21)\n .addComponent(jLabel20)\n .addComponent(jLabel19))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(vincar, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(marcaudio, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorcar, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)))))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(spin_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(auto_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spin_info, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(spin3_info, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addComponent(spin2_info, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(si1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(no1))\n .addComponent(spin_cantasien))))))))\n .addContainerGap(68, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(mat_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spin_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(spin_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(auto_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(spin2_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(si1)\n .addComponent(no1))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(spin3_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(10, 10, 10)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(spin_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tmal_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(spin_mal_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(spin_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addGap(18, 18, 18)\n .addComponent(jLabel17)\n .addGap(14, 14, 14)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(elec)\n .addComponent(manu))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(si2)\n .addComponent(no2))))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(mate_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(tipvol_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(spinbot_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spin_asien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(mate_asien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(80, 80, 80)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(jLabel20)\n .addGap(18, 18, 18)\n .addComponent(jLabel19))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(vincar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(colorcar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(marcaudio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spin_cantasien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout VEHILayout = new javax.swing.GroupLayout(VEHI.getContentPane());\n VEHI.getContentPane().setLayout(VEHILayout);\n VEHILayout.setHorizontalGroup(\n VEHILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(VEHILayout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n VEHILayout.setVerticalGroup(\n VEHILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel26.setForeground(new java.awt.Color(0, 0, 0));\n jLabel26.setText(\"Vehiculo:\");\n\n jLabel28.setForeground(new java.awt.Color(0, 0, 0));\n jLabel28.setText(\"Ensamblador:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tech_combo, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(vehi_combo, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(383, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(vehi_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel28)\n .addComponent(tech_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(318, Short.MAX_VALUE))\n );\n\n jMenu1.setText(\"Menu\");\n\n jMenuItem1.setText(\"Crear Vehiculo\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuItem2.setText(\"Crear Ensemblador\");\n jMenuItem2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuItem2MouseClicked(evt);\n }\n });\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n panelConsultarVeiculo = new javax.swing.JPanel();\n txtPlaca = new javax.swing.JTextField();\n labelTipo = new javax.swing.JLabel();\n txtNdeIdentificacao = new javax.swing.JTextField();\n labelMarca = new javax.swing.JLabel();\n txtModelo = new javax.swing.JTextField();\n labelModelo = new javax.swing.JLabel();\n txtMarca = new javax.swing.JTextField();\n labelPlaca = new javax.swing.JLabel();\n labelNdeInscricao = new javax.swing.JLabel();\n labelCor = new javax.swing.JLabel();\n txtTipo = new javax.swing.JTextField();\n txtCor = new javax.swing.JTextField();\n jPanelBGConsultarVeiculo1 = new javax.swing.JPanel();\n btnAlterarVeiculo = new javax.swing.JButton();\n btnExcluirVeiculo = new javax.swing.JButton();\n jPanelBGConsultarVeiculo2 = new javax.swing.JPanel();\n btnConsultarVeiculo = new javax.swing.JButton();\n btnNovaConsultarVeiculo = new javax.swing.JButton();\n\n setClosable(true);\n setResizable(true);\n setTitle(\"Consultar Veículo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n panelConsultarVeiculo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n panelConsultarVeiculo.add(txtPlaca, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 220, 632, 30));\n\n labelTipo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelTipo.setForeground(new java.awt.Color(72, 61, 139));\n labelTipo.setText(\"Tipo\");\n panelConsultarVeiculo.add(labelTipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 330, -1, -1));\n panelConsultarVeiculo.add(txtNdeIdentificacao, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 320, 250, 30));\n\n labelMarca.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelMarca.setForeground(new java.awt.Color(72, 61, 139));\n labelMarca.setText(\"Marca\");\n panelConsultarVeiculo.add(labelMarca, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 280, -1, -1));\n panelConsultarVeiculo.add(txtModelo, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 120, 632, 30));\n\n labelModelo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelModelo.setForeground(new java.awt.Color(72, 61, 139));\n labelModelo.setText(\"Modelo\");\n panelConsultarVeiculo.add(labelModelo, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 130, -1, -1));\n panelConsultarVeiculo.add(txtMarca, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 270, 632, 30));\n\n labelPlaca.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelPlaca.setForeground(new java.awt.Color(72, 61, 139));\n labelPlaca.setText(\"Placa\");\n panelConsultarVeiculo.add(labelPlaca, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 230, -1, -1));\n\n labelNdeInscricao.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelNdeInscricao.setForeground(new java.awt.Color(72, 61, 139));\n labelNdeInscricao.setText(\"N° de Identificação\");\n panelConsultarVeiculo.add(labelNdeInscricao, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 330, -1, -1));\n\n labelCor.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelCor.setForeground(new java.awt.Color(72, 61, 139));\n labelCor.setText(\"Cor\");\n panelConsultarVeiculo.add(labelCor, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 180, -1, -1));\n panelConsultarVeiculo.add(txtTipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 320, 250, 30));\n panelConsultarVeiculo.add(txtCor, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 170, 632, 30));\n\n jPanelBGConsultarVeiculo1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(72, 61, 139), 1, true));\n jPanelBGConsultarVeiculo1.setForeground(new java.awt.Color(72, 61, 139));\n\n btnAlterarVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnAlterarVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnAlterarVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnAlterarVeiculo.setText(\"Alterar\");\n\n btnExcluirVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnExcluirVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnExcluirVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnExcluirVeiculo.setText(\"Excluir\");\n\n javax.swing.GroupLayout jPanelBGConsultarVeiculo1Layout = new javax.swing.GroupLayout(jPanelBGConsultarVeiculo1);\n jPanelBGConsultarVeiculo1.setLayout(jPanelBGConsultarVeiculo1Layout);\n jPanelBGConsultarVeiculo1Layout.setHorizontalGroup(\n jPanelBGConsultarVeiculo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBGConsultarVeiculo1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanelBGConsultarVeiculo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAlterarVeiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnExcluirVeiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanelBGConsultarVeiculo1Layout.setVerticalGroup(\n jPanelBGConsultarVeiculo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelBGConsultarVeiculo1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnAlterarVeiculo)\n .addGap(17, 17, 17)\n .addComponent(btnExcluirVeiculo)\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n panelConsultarVeiculo.add(jPanelBGConsultarVeiculo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 370, 140, 90));\n\n jPanelBGConsultarVeiculo2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(72, 61, 139), 1, true));\n jPanelBGConsultarVeiculo2.setForeground(new java.awt.Color(72, 61, 139));\n\n btnConsultarVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnConsultarVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnConsultarVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnConsultarVeiculo.setText(\"Consultar\");\n\n btnNovaConsultarVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnNovaConsultarVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnNovaConsultarVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnNovaConsultarVeiculo.setText(\"Nova Consulta\");\n\n javax.swing.GroupLayout jPanelBGConsultarVeiculo2Layout = new javax.swing.GroupLayout(jPanelBGConsultarVeiculo2);\n jPanelBGConsultarVeiculo2.setLayout(jPanelBGConsultarVeiculo2Layout);\n jPanelBGConsultarVeiculo2Layout.setHorizontalGroup(\n jPanelBGConsultarVeiculo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBGConsultarVeiculo2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanelBGConsultarVeiculo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnConsultarVeiculo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnNovaConsultarVeiculo, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n jPanelBGConsultarVeiculo2Layout.setVerticalGroup(\n jPanelBGConsultarVeiculo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelBGConsultarVeiculo2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnConsultarVeiculo)\n .addGap(18, 18, 18)\n .addComponent(btnNovaConsultarVeiculo)\n .addContainerGap(13, Short.MAX_VALUE))\n );\n\n panelConsultarVeiculo.add(jPanelBGConsultarVeiculo2, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 370, -1, 90));\n\n jPanel1.add(panelConsultarVeiculo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -2, 1050, 590));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n DialogInformacja = new javax.swing.JDialog();\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n ButtonWypelnijToolbar = new javax.swing.JButton();\n ButtonSredniaToolbar = new javax.swing.JButton();\n ButtonSumaToolbar = new javax.swing.JButton();\n ButtonInfoToolBar = new javax.swing.JButton();\n ButtonPomoc = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tabelaDanych = new javax.swing.JTable();\n WprowadzonaLiczba = new javax.swing.JTextField();\n spinerKolumna = new javax.swing.JSpinner();\n spinerWiersz = new javax.swing.JSpinner();\n ButtonWypelnij = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n textAreaRezultat = new javax.swing.JTextArea();\n ButtonZerowanie = new javax.swing.JButton();\n ButtonZapiszDoPliku = new javax.swing.JButton();\n ComboBoxWybor = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n ButtonZapiszDoBazy = new javax.swing.JButton();\n jToggleButton1 = new javax.swing.JToggleButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenuPlik = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuEdycja = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuOperacje = new javax.swing.JMenu();\n jMenuItem5 = new javax.swing.JMenuItem();\n jMenuItem6 = new javax.swing.JMenuItem();\n jMenuItem7 = new javax.swing.JMenuItem();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenuPomoc = new javax.swing.JMenu();\n jMenuItem10 = new javax.swing.JMenuItem();\n jMenuItem9 = new javax.swing.JMenuItem();\n\n DialogInformacja.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jButton1.setText(\"Zamknij\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Projekty\\\\Java\\\\Zasoby\\\\java-bg400.jpg\")); // NOI18N\n jLabel2.setMaximumSize(new java.awt.Dimension(1250, 768));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe Print\", 1, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Program testowy- moje GUI\");\n\n jLabel6.setText(\"Wykonawca: Adrian. Kontakt [email protected]\");\n\n javax.swing.GroupLayout DialogInformacjaLayout = new javax.swing.GroupLayout(DialogInformacja.getContentPane());\n DialogInformacja.getContentPane().setLayout(DialogInformacjaLayout);\n DialogInformacjaLayout.setHorizontalGroup(\n DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DialogInformacjaLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(82, 82, 82))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DialogInformacjaLayout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(173, 173, 173))))\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 26, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DialogInformacjaLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6)\n .addGap(91, 91, 91))\n );\n DialogInformacjaLayout.setVerticalGroup(\n DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(204, 204, 204));\n setResizable(false);\n setSize(new java.awt.Dimension(0, 0));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jToolBar1.setBackground(new java.awt.Color(204, 204, 204));\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n ButtonWypelnijToolbar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonWypelnijToolbar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/dodaj.png\"))); // NOI18N\n ButtonWypelnijToolbar.setToolTipText(\"Wypełnij\");\n ButtonWypelnijToolbar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n ButtonWypelnijToolbar.setFocusable(false);\n ButtonWypelnijToolbar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonWypelnijToolbar.setName(\"Wypełnij\"); // NOI18N\n ButtonWypelnijToolbar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonWypelnijToolbarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonWypelnijToolbar);\n\n ButtonSredniaToolbar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonSredniaToolbar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/srednia.png\"))); // NOI18N\n ButtonSredniaToolbar.setToolTipText(\"Średnia\");\n ButtonSredniaToolbar.setFocusable(false);\n ButtonSredniaToolbar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonSredniaToolbar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonSredniaToolbar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSredniaToolbarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonSredniaToolbar);\n\n ButtonSumaToolbar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonSumaToolbar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/suma.png\"))); // NOI18N\n ButtonSumaToolbar.setToolTipText(\"Suma\");\n ButtonSumaToolbar.setFocusable(false);\n ButtonSumaToolbar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonSumaToolbar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonSumaToolbar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSumaToolbarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonSumaToolbar);\n\n ButtonInfoToolBar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonInfoToolBar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/info.png\"))); // NOI18N\n ButtonInfoToolBar.setToolTipText(\"Informacja o programie\");\n ButtonInfoToolBar.setFocusable(false);\n ButtonInfoToolBar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonInfoToolBar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonInfoToolBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonInfoToolBarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonInfoToolBar);\n\n ButtonPomoc.setBackground(new java.awt.Color(204, 204, 204));\n ButtonPomoc.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/o_programie.png\"))); // NOI18N\n ButtonPomoc.setToolTipText(\"Pomoc\");\n ButtonPomoc.setFocusable(false);\n ButtonPomoc.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonPomoc.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonPomoc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonPomocActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonPomoc);\n\n tabelaDanych.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tabelaDanych.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)}\n },\n new String [] {\n \"Kolumna 1\", \"Kolumna 2\", \"Kolumna 3\", \"Kolumna 4\", \"Kolumna 5\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n tabelaDanych.setRowHeight(20);\n tabelaDanych.setRowMargin(2);\n tabelaDanych.setRowSelectionAllowed(false);\n tabelaDanych.getTableHeader().setReorderingAllowed(false);\n jScrollPane2.setViewportView(tabelaDanych);\n\n WprowadzonaLiczba.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n WprowadzonaLiczba.setText(\"0\");\n WprowadzonaLiczba.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n WprowadzonaLiczbaActionPerformed(evt);\n }\n });\n WprowadzonaLiczba.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n WprowadzonaLiczbaKeyTyped(evt);\n }\n });\n\n spinerKolumna.setModel(new javax.swing.SpinnerNumberModel(1, 1, 5, 1));\n\n spinerWiersz.setModel(new javax.swing.SpinnerNumberModel(1, 1, 5, 1));\n\n ButtonWypelnij.setText(\"Wypełnij\");\n ButtonWypelnij.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonWypelnijActionPerformed(evt);\n }\n });\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Rezultat operacji\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 14))); // NOI18N\n\n textAreaRezultat.setColumns(20);\n textAreaRezultat.setRows(5);\n jScrollPane1.setViewportView(textAreaRezultat);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 809, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n ButtonZerowanie.setText(\"Zerowanie\");\n ButtonZerowanie.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonZerowanieActionPerformed(evt);\n }\n });\n\n ButtonZapiszDoPliku.setText(\"Zapisz do pliku\");\n ButtonZapiszDoPliku.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonZapiszDoPlikuActionPerformed(evt);\n }\n });\n\n ComboBoxWybor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Wybierz rodzaj operacji\", \"Suma elementów\", \"Średnia elementów\", \"Wartości min i max\" }));\n ComboBoxWybor.setToolTipText(\"Wybierz właściwą opcję, aby zobaczyć wyniki.\");\n ComboBoxWybor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBoxWyborActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Wiersz\");\n\n jLabel4.setText(\"Kolumna\");\n\n jLabel5.setText(\"Wpisz liczbe\");\n\n jButton2.setText(\"Losowe wypełnienie\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n ButtonZapiszDoBazy.setText(\"Zapisz do bazy\");\n ButtonZapiszDoBazy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonZapiszDoBazyActionPerformed(evt);\n }\n });\n\n jToggleButton1.setText(\"jToggleButton1\");\n jToggleButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton1ActionPerformed(evt);\n }\n });\n\n jMenuPlik.setText(\"Plik\");\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setMnemonic('Z');\n jMenuItem1.setText(\"Zapisz\");\n jMenuItem1.setToolTipText(\"\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenuPlik.add(jMenuItem1);\n\n jMenuBar1.add(jMenuPlik);\n jMenuPlik.getAccessibleContext().setAccessibleDescription(\"\");\n\n jMenuEdycja.setText(\"Edycja\");\n\n jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem2.setText(\"Wypełnij\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenuEdycja.add(jMenuItem2);\n\n jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem3.setText(\"Zerowanie\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenuEdycja.add(jMenuItem3);\n\n jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem4.setText(\"Losowo wypełnij\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenuEdycja.add(jMenuItem4);\n\n jMenuBar1.add(jMenuEdycja);\n\n jMenuOperacje.setText(\"Operacje\");\n\n jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem5.setText(\"Zapisz do pliku\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenuOperacje.add(jMenuItem5);\n\n jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem6.setText(\"Suma elementów\");\n jMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem6ActionPerformed(evt);\n }\n });\n jMenuOperacje.add(jMenuItem6);\n\n jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem7.setText(\"Średnia elementów\");\n jMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem7ActionPerformed(evt);\n }\n });\n jMenuOperacje.add(jMenuItem7);\n\n jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem8.setText(\"Wartości min i max\");\n jMenuOperacje.add(jMenuItem8);\n\n jMenuBar1.add(jMenuOperacje);\n\n jMenuPomoc.setText(\"Pomoc\");\n\n jMenuItem10.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem10.setText(\"O programie\");\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem10ActionPerformed(evt);\n }\n });\n jMenuPomoc.add(jMenuItem10);\n\n jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem9.setText(\"Pomoc\");\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem9ActionPerformed(evt);\n }\n });\n jMenuPomoc.add(jMenuItem9);\n\n jMenuBar1.add(jMenuPomoc);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(121, 121, 121)\n .addComponent(ComboBoxWybor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addGap(18, 18, 18)\n .addComponent(ButtonZapiszDoBazy)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jToggleButton1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(66, 66, 66)\n .addComponent(WprowadzonaLiczba, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(spinerKolumna, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spinerWiersz, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(ButtonWypelnij)\n .addGap(18, 18, 18)\n .addComponent(ButtonZerowanie)\n .addGap(18, 18, 18)\n .addComponent(ButtonZapiszDoPliku))))\n .addComponent(jScrollPane2))\n .addGap(29, 29, 29))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jToggleButton1)\n .addGap(23, 23, 23)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(WprowadzonaLiczba, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spinerKolumna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spinerWiersz, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonWypelnij)\n .addComponent(ButtonZerowanie)\n .addComponent(ButtonZapiszDoPliku)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGap(22, 22, 22)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboBoxWybor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2)\n .addComponent(ButtonZapiszDoBazy))\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n apagarVenda = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jLabel36 = new javax.swing.JLabel();\n lucro = new javax.swing.JTextField();\n jLabel34 = new javax.swing.JLabel();\n codigoCliente = new javax.swing.JTextField();\n custoNaMadri = new javax.swing.JTextField();\n jLabel35 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n valorLiquidoML = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n dataVenda = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n precoVendido = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n codigoPeca = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n cadastroObservacoes = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n tarifaDoML = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n porcentagemDoMercadoLivre = new javax.swing.JTextField();\n quantidadeVendida = new javax.swing.JTextField();\n botAtualizar = new javax.swing.JButton();\n botaoEntrarIniciall1 = new javax.swing.JButton();\n nomePeca = new javax.swing.JTextField();\n valorFrete = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel37 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n mostrarNivel = new javax.swing.JLabel();\n acessoUser = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"EDITAR VENDA\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n getContentPane().setLayout(null);\n\n apagarVenda.setBackground(new java.awt.Color(0, 0, 0));\n apagarVenda.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n apagarVenda.setForeground(new java.awt.Color(255, 255, 255));\n apagarVenda.setText(\"APAGAR\");\n apagarVenda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n apagarVendaActionPerformed(evt);\n }\n });\n apagarVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n apagarVendaKeyPressed(evt);\n }\n });\n getContentPane().add(apagarVenda);\n apagarVenda.setBounds(300, 640, 160, 40);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/APAGAR.png\"))); // NOI18N\n getContentPane().add(jLabel14);\n jLabel14.setBounds(440, 610, 80, 70);\n\n jLabel36.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel36.setForeground(new java.awt.Color(255, 255, 255));\n jLabel36.setText(\"LUCRO\");\n getContentPane().add(jLabel36);\n jLabel36.setBounds(280, 350, 70, 17);\n\n lucro.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n lucro.setText(\"0,00\");\n lucro.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n lucroFocusGained(evt);\n }\n });\n lucro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lucroActionPerformed(evt);\n }\n });\n lucro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n lucroKeyPressed(evt);\n }\n });\n getContentPane().add(lucro);\n lucro.setBounds(280, 380, 140, 30);\n\n jLabel34.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel34.setForeground(new java.awt.Color(255, 255, 255));\n jLabel34.setText(\"CÓDIGO DA VENDA\");\n getContentPane().add(jLabel34);\n jLabel34.setBounds(480, 350, 180, 17);\n\n codigoCliente.setEditable(false);\n codigoCliente.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoCliente.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n codigoClienteFocusGained(evt);\n }\n });\n codigoCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codigoClienteActionPerformed(evt);\n }\n });\n codigoCliente.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoClienteKeyPressed(evt);\n }\n });\n getContentPane().add(codigoCliente);\n codigoCliente.setBounds(480, 380, 140, 30);\n\n custoNaMadri.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n custoNaMadri.setText(\"0,00\");\n custoNaMadri.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n custoNaMadriFocusGained(evt);\n }\n });\n custoNaMadri.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n custoNaMadriActionPerformed(evt);\n }\n });\n custoNaMadri.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n custoNaMadriKeyPressed(evt);\n }\n });\n getContentPane().add(custoNaMadri);\n custoNaMadri.setBounds(30, 380, 190, 30);\n\n jLabel35.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel35.setForeground(new java.awt.Color(255, 255, 255));\n jLabel35.setText(\"PREÇO DE CUSTO NA MADRI\");\n getContentPane().add(jLabel35);\n jLabel35.setBounds(30, 350, 210, 17);\n\n jLabel28.setFont(new java.awt.Font(\"Tahoma\", 1, 21)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(255, 255, 255));\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"EDITAR VENDA\");\n getContentPane().add(jLabel28);\n jLabel28.setBounds(260, 10, 320, 60);\n\n valorLiquidoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorLiquidoML.setText(\"0,00\");\n valorLiquidoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorLiquidoMLFocusGained(evt);\n }\n });\n valorLiquidoML.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorLiquidoMLActionPerformed(evt);\n }\n });\n valorLiquidoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorLiquidoMLKeyPressed(evt);\n }\n });\n getContentPane().add(valorLiquidoML);\n valorLiquidoML.setBounds(480, 300, 140, 30);\n\n jLabel29.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(255, 255, 255));\n jLabel29.setText(\"VALOR LÍQUIDO DO MERCADO LIVRE\");\n getContentPane().add(jLabel29);\n jLabel29.setBounds(480, 270, 270, 17);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"PORCENTAGEM DO MERCADO LIVRE\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(480, 190, 270, 17);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"DATA\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(280, 110, 100, 17);\n\n dataVenda.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n dataVenda.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n dataVendaFocusGained(evt);\n }\n });\n dataVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n dataVendaKeyPressed(evt);\n }\n });\n getContentPane().add(dataVenda);\n dataVenda.setBounds(280, 140, 140, 30);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"QUANTIDADE VENDIDA\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(480, 110, 190, 17);\n\n precoVendido.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n precoVendido.setText(\"0,00\");\n precoVendido.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n precoVendidoFocusGained(evt);\n }\n });\n precoVendido.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n precoVendidoKeyPressed(evt);\n }\n });\n getContentPane().add(precoVendido);\n precoVendido.setBounds(280, 220, 140, 30);\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 0, 0));\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setText(\"*\");\n getContentPane().add(jLabel15);\n jLabel15.setBounds(230, 330, 40, 60);\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 0, 0));\n jLabel17.setText(\"*\");\n getContentPane().add(jLabel17);\n jLabel17.setBounds(330, 100, 30, 40);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(255, 0, 0));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"*\");\n getContentPane().add(jLabel18);\n jLabel18.setBounds(660, 110, 20, 22);\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(255, 0, 0));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"*\");\n getContentPane().add(jLabel16);\n jLabel16.setBounds(90, 100, 30, 40);\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"CÓDIGO\");\n getContentPane().add(jLabel19);\n jLabel19.setBounds(30, 110, 70, 17);\n\n codigoPeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoPeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n codigoPecaFocusLost(evt);\n }\n });\n codigoPeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoPecaKeyPressed(evt);\n }\n });\n getContentPane().add(codigoPeca);\n codigoPeca.setBounds(30, 140, 130, 30);\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/MER-LIVRE.png\"))); // NOI18N\n getContentPane().add(jLabel5);\n jLabel5.setBounds(715, 5, 70, 75);\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(255, 255, 255));\n jLabel21.setText(\"OBSERVAÇÕES\");\n getContentPane().add(jLabel21);\n jLabel21.setBounds(30, 430, 200, 17);\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"TARIFA DO MERCADO LIVRE\");\n getContentPane().add(jLabel20);\n jLabel20.setBounds(30, 270, 210, 17);\n\n cadastroObservacoes.setColumns(20);\n cadastroObservacoes.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n cadastroObservacoes.setRows(5);\n cadastroObservacoes.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cadastroObservacoesKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(cadastroObservacoes);\n\n getContentPane().add(jScrollPane1);\n jScrollPane1.setBounds(30, 460, 730, 140);\n\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Sem título.png\"))); // NOI18N\n jLabel6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n getContentPane().add(jLabel6);\n jLabel6.setBounds(-4, 0, 150, 80);\n\n tarifaDoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tarifaDoML.setText(\"0,00\");\n tarifaDoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n tarifaDoMLFocusGained(evt);\n }\n });\n tarifaDoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tarifaDoMLKeyPressed(evt);\n }\n });\n getContentPane().add(tarifaDoML);\n tarifaDoML.setBounds(30, 300, 140, 30);\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(255, 255, 255));\n jLabel22.setText(\"PREÇO DE VENDA\");\n getContentPane().add(jLabel22);\n jLabel22.setBounds(280, 190, 150, 17);\n\n porcentagemDoMercadoLivre.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n porcentagemDoMercadoLivre.setText(\"11,00\");\n porcentagemDoMercadoLivre.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n porcentagemDoMercadoLivreFocusGained(evt);\n }\n });\n porcentagemDoMercadoLivre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n porcentagemDoMercadoLivreActionPerformed(evt);\n }\n });\n porcentagemDoMercadoLivre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n porcentagemDoMercadoLivreKeyPressed(evt);\n }\n });\n getContentPane().add(porcentagemDoMercadoLivre);\n porcentagemDoMercadoLivre.setBounds(480, 220, 140, 30);\n\n quantidadeVendida.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n quantidadeVendida.setText(\"1\");\n quantidadeVendida.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n quantidadeVendidaFocusGained(evt);\n }\n });\n quantidadeVendida.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n quantidadeVendidaKeyPressed(evt);\n }\n });\n getContentPane().add(quantidadeVendida);\n quantidadeVendida.setBounds(480, 140, 140, 30);\n\n botAtualizar.setBackground(new java.awt.Color(0, 0, 0));\n botAtualizar.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botAtualizar.setForeground(new java.awt.Color(255, 255, 255));\n botAtualizar.setText(\"ATUALIZAR\");\n botAtualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botAtualizarActionPerformed(evt);\n }\n });\n botAtualizar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botAtualizarKeyPressed(evt);\n }\n });\n getContentPane().add(botAtualizar);\n botAtualizar.setBounds(30, 640, 160, 40);\n\n botaoEntrarIniciall1.setBackground(new java.awt.Color(0, 0, 0));\n botaoEntrarIniciall1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botaoEntrarIniciall1.setForeground(new java.awt.Color(255, 255, 255));\n botaoEntrarIniciall1.setText(\"PESQUISAR\");\n botaoEntrarIniciall1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoEntrarIniciall1ActionPerformed(evt);\n }\n });\n botaoEntrarIniciall1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botaoEntrarIniciall1KeyPressed(evt);\n }\n });\n getContentPane().add(botaoEntrarIniciall1);\n botaoEntrarIniciall1.setBounds(560, 640, 160, 40);\n\n nomePeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n nomePeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n nomePecaFocusGained(evt);\n }\n });\n nomePeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n nomePecaKeyPressed(evt);\n }\n });\n getContentPane().add(nomePeca);\n nomePeca.setBounds(30, 220, 210, 30);\n\n valorFrete.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorFrete.setText(\"0,00\");\n valorFrete.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorFreteFocusGained(evt);\n }\n });\n valorFrete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorFreteActionPerformed(evt);\n }\n });\n valorFrete.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorFreteKeyPressed(evt);\n }\n });\n getContentPane().add(valorFrete);\n valorFrete.setBounds(280, 300, 140, 30);\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(255, 255, 255));\n jLabel30.setText(\"VALOR DO FRETE\");\n getContentPane().add(jLabel30);\n jLabel30.setBounds(280, 270, 140, 17);\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(255, 255, 255));\n jLabel23.setText(\"NOME\");\n getContentPane().add(jLabel23);\n jLabel23.setBounds(30, 190, 150, 17);\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(255, 0, 0));\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"*\");\n getContentPane().add(jLabel25);\n jLabel25.setBounds(400, 170, 40, 60);\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel31.setForeground(new java.awt.Color(255, 0, 0));\n jLabel31.setText(\"*\");\n getContentPane().add(jLabel31);\n jLabel31.setBounds(750, 160, 30, 80);\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel12.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel12.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel12);\n jLabel12.setBounds(-80, 4, 760, 77);\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(255, 0, 0));\n jLabel24.setText(\"*\");\n getContentPane().add(jLabel24);\n jLabel24.setBounds(90, 170, 30, 60);\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/PROCURA HEHE.png\"))); // NOI18N\n getContentPane().add(jLabel13);\n jLabel13.setBounds(700, 610, 80, 70);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(255, 0, 0));\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"*\");\n getContentPane().add(jLabel27);\n jLabel27.setBounds(230, 250, 40, 60);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel1.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel1.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel1);\n jLabel1.setBounds(140, 4, 760, 77);\n\n jLabel37.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel37.setForeground(new java.awt.Color(255, 0, 0));\n jLabel37.setText(\"*\");\n getContentPane().add(jLabel37);\n jLabel37.setBounds(420, 250, 30, 60);\n\n jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/atua.png\"))); // NOI18N\n getContentPane().add(jLabel26);\n jLabel26.setBounds(170, 610, 80, 70);\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/FUNDO AMARELO.jpg\"))); // NOI18N\n getContentPane().add(jLabel11);\n jLabel11.setBounds(0, -331, 810, 430);\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel7);\n jLabel7.setBounds(310, 10, 610, 530);\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel8);\n jLabel8.setBounds(320, 340, 570, 530);\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel9);\n jLabel9.setBounds(-20, 450, 570, 530);\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel10);\n jLabel10.setBounds(0, 0, 570, 530);\n\n mostrarNivel.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mostrarNivel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n mostrarNivel.setText(\"5\");\n getContentPane().add(mostrarNivel);\n mostrarNivel.setBounds(520, 130, 50, 70);\n\n acessoUser.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n acessoUser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n acessoUser.setText(\"ADMIN\");\n getContentPane().add(acessoUser);\n acessoUser.setBounds(520, 220, 70, 60);\n\n setBounds(427, 5, 790, 716);\n }", "public void dialogoEditarUsuario() {\n vEditarUsuario = new V_EditarUsuario(new JFrame(), true);\n vEditarUsuario.setVisible(true);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialogAjouterSéance = new javax.swing.JDialog();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTable2 = new javax.swing.JTable();\n jLabelNomCat = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox<>();\n bValiderSeance = new javax.swing.JButton();\n jCheckBox1 = new javax.swing.JCheckBox();\n jLabelAletreUserSaisi = new javax.swing.JLabel();\n jComboBox3 = new javax.swing.JComboBox<>();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n bAjouterSéance = new javax.swing.JToggleButton();\n jLabelNomPlanning = new javax.swing.JLabel();\n\n jDialogAjouterSéance.setTitle(\"Création d'une séance\");\n jDialogAjouterSéance.setSize(new java.awt.Dimension(1152, 644));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setText(\"Création d'une séance : \");\n\n jTable2.setAutoCreateRowSorter(true);\n jTable2.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n jTable2.setFont(new java.awt.Font(\"Segoe UI\", 0, 15)); // NOI18N\n jTable2.setModel(new javax.swing.table.DefaultTableModel(\n film,\n nomColFilm) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class, java.lang.String.class\n };\n\n boolean[] canEdit = new boolean [] {\n false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTable2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jTable2.setGridColor(new java.awt.Color(51, 153, 255));\n jTable2.setIntercellSpacing(new java.awt.Dimension(0, 0));\n jTable2.setRowHeight(30);\n jTable2.setSelectionBackground(new java.awt.Color(130, 244, 15));\n jTable2.setSelectionForeground(new java.awt.Color(0, 0, 0));\n jTable2.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jTable2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTable2MouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jTable2);\n\n jLabelNomCat.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n\n jLabel2.setText(\"Date :\");\n\n jLabel3.setText(\"Salle :\");\n\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Horaire :\");\n\n jComboBox2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox2ActionPerformed(evt);\n }\n });\n\n bValiderSeance.setText(\"Valider\");\n bValiderSeance.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bValiderSeanceActionPerformed(evt);\n }\n });\n\n jCheckBox1.setText(\"Séance du lendemain : \");\n jCheckBox1.setFocusCycleRoot(true);\n jCheckBox1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n jLabelAletreUserSaisi.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabelAletreUserSaisi.setForeground(new java.awt.Color(255, 51, 51));\n\n jComboBox3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jDialogAjouterSéanceLayout = new javax.swing.GroupLayout(jDialogAjouterSéance.getContentPane());\n jDialogAjouterSéance.getContentPane().setLayout(jDialogAjouterSéanceLayout);\n jDialogAjouterSéanceLayout.setHorizontalGroup(\n jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 336, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)))\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel2)))\n .addGap(37, 37, 37)\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBox3, 0, 190, Short.MAX_VALUE)\n .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(74, 74, 74))\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGap(679, 679, 679)\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAjouterSéanceLayout.createSequentialGroup()\n .addComponent(bValiderSeance)\n .addGap(91, 91, 91))\n .addComponent(jLabelAletreUserSaisi, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 473, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGap(269, 269, 269)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabelNomCat, javax.swing.GroupLayout.PREFERRED_SIZE, 573, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 641, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(499, Short.MAX_VALUE)))\n );\n jDialogAjouterSéanceLayout.setVerticalGroup(\n jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabelNomCat, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 170, Short.MAX_VALUE)\n .addComponent(jCheckBox1)\n .addGap(32, 32, 32)\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabelAletreUserSaisi, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(77, 77, 77)\n .addComponent(bValiderSeance)\n .addGap(89, 89, 89))\n .addGroup(jDialogAjouterSéanceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogAjouterSéanceLayout.createSequentialGroup()\n .addGap(119, 119, 119)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 459, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(66, Short.MAX_VALUE)))\n );\n\n int j = 0;\n if(etatCreation==true){\n tabSalle = Salle.recupSalle(idCategoriePlanningOuIdPlanning, valueLendemainCB);\n }\n else{\n tabSalle = Salle.recupSalle(Planning.getIdCatPlanning(idPlanning), valueLendemainCB);\n }\n while (tabSalle[j][1] != null && j < tabSalle.length){\n jComboBox1.addItem(tabSalle[j][0]);\n j++;\n }\n int i = 0;\n String[][] tabHoraires = Horaire.recupHoraire();\n while (tabHoraires[i][1] != null && i < tabHoraires.length){\n jComboBox2.addItem(tabHoraires[i][0] + \" (\" + tabHoraires[i][2] + \")\");\n i++;\n }\n int j2 = 0;\n tabDate = Date.recupDate();\n while (tabDate[j2][1] != null && j < tabDate.length){\n jComboBox3.addItem(tabDate[j2][0]);\n j2++;\n }\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Planning du festival\");\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n métier.MultilineTableCellRenderer renderer = new MultilineTableCellRenderer();\n jTable1.setDefaultRenderer(String.class, renderer);\n jTable1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTable1.setForeground(new java.awt.Color(255, 255, 255));\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n PlanningTab,\n nomColPlanning) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n\n boolean[] canEdit = new boolean [] {\n false,false,false,false,false,false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTable1.setGridColor(new java.awt.Color(51, 153, 255));\n jTable1.setIntercellSpacing(new java.awt.Dimension(0, 0));\n jTable1.setRowHeight(30);\n jTable1.setSelectionBackground(new java.awt.Color(255, 204, 102));\n jTable1.setSelectionForeground(new java.awt.Color(0, 0, 0));\n jScrollPane1.setViewportView(jTable1);\n\n bAjouterSéance.setText(\"Ajouter une séance\");\n bAjouterSéance.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bAjouterSéanceActionPerformed(evt);\n }\n });\n\n jLabelNomPlanning.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bAjouterSéance)\n .addGap(61, 61, 61))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1839, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabelNomPlanning, javax.swing.GroupLayout.PREFERRED_SIZE, 832, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(22, Short.MAX_VALUE)\n .addComponent(jLabelNomPlanning, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 823, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40)\n .addComponent(bAjouterSéance)\n .addGap(26, 26, 26))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public VentasGUI() {\n initComponents();\n btnEliminarVenta.setEnabled(false);\n tablaVentasDefault = (DefaultTableModel) tablaVentas.getModel();\n tablaProductosDefault = (DefaultTableModel) tablaProductos.getModel();\n\n \n \n txtDesde.setToolTipText(\"Ver ventas desde la fecha\");\n txtDesde.setDateFormatString(\"dd/MM/yyyy\");\n txtHasta.setToolTipText(\"Ver ventas hasta la fecha\");\n txtHasta.setDateFormatString(\"dd/MM/yyyy\");\n txtDesde.getDateEditor().setEnabled(false);\n txtHasta.getDateEditor().setEnabled(false);\n txtHasta.setDate(Calendar.getInstance().getTime());\n\n SimpleDateFormat formatoDelTexto = new SimpleDateFormat(\"dd/MM/yyyy\");\n String strFecha = \"01/01/2015\";\n Date fecha = null;\n try {\n\n fecha = formatoDelTexto.parse(strFecha);\n\n } catch (ParseException ex) {\n\n ex.printStackTrace();\n\n }\n txtDesde.setDate(fecha);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n nFranquicia = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n CancelarF = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabla = new javax.swing.JTable();\n nombreB = new javax.swing.JTextField();\n precioB = new javax.swing.JTextField();\n cantidadB = new javax.swing.JSpinner();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n descripcionB = new javax.swing.JTextArea();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n comboBox1 = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n\n jDialog1.setMinimumSize(new java.awt.Dimension(381, 250));\n jDialog1.addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n jDialog1ComponentShown(evt);\n }\n });\n\n nFranquicia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nFranquiciaActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Ingrese el nombre de una franquicia\");\n\n jButton5.setText(\"Guardar\");\n jButton5.addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentHidden(java.awt.event.ComponentEvent evt) {\n jButton5ComponentHidden(evt);\n }\n });\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n CancelarF.setText(\"Cancelar\");\n CancelarF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CancelarFActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Agency FB\", 1, 24)); // NOI18N\n jLabel8.setText(\"Franquicias\");\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(nFranquicia, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(98, 98, 98)\n .addComponent(jButton5)\n .addGap(42, 42, 42)\n .addComponent(CancelarF)))\n .addContainerGap(47, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialog1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel8)\n .addGap(149, 149, 149))\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nFranquicia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton5)\n .addComponent(CancelarF))\n .addContainerGap(31, Short.MAX_VALUE))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n tabla.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Nombre\", \"Descripcion\", \"Precio\", \"Franquicia\", \"Existencia\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, true, true, false, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tabla.setRowSelectionAllowed(true);\n tabla.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaMouseClicked(evt);\n }\n });\n tabla.addInputMethodListener(new java.awt.event.InputMethodListener() {\n public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {\n tablaCaretPositionChanged(evt);\n }\n public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {\n tablaInputMethodTextChanged(evt);\n }\n });\n tabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n tablaPropertyChange(evt);\n }\n });\n jScrollPane1.setViewportView(tabla);\n\n precioB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n precioBActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Nombre\");\n\n jLabel2.setText(\"Descripción\");\n\n descripcionB.setColumns(20);\n descripcionB.setRows(5);\n jScrollPane2.setViewportView(descripcionB);\n\n jLabel3.setText(\"Precio\");\n\n jLabel4.setText(\"Cantidad\");\n\n jLabel5.setText(\"Franquicia\");\n\n comboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboBox1ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Guardar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Agregar Franquicia\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Limpiar\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Agency FB\", 1, 36)); // NOI18N\n jLabel6.setText(\"Ingreso de Figuras de Accion\");\n\n jButton4.setText(\"Menu\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton6.setText(\"Actualizar\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 648, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(precioB, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cantidadB, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(comboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(nombreB))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 426, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(21, 21, 21)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel6))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton4)))\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nombreB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jButton6))\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(precioB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(cantidadB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(comboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jLabel2))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton3))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtMora = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtCliente = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jfecha = new com.toedter.calendar.JDateChooser();\n jLabel5 = new javax.swing.JLabel();\n txtFact = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n btnGuardar = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n txtCuota = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n spAbono = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n lblPending = new javax.swing.JLabel();\n txtPpago = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n txtProxP = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtProducto = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n spAbonoRec = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel13 = new javax.swing.JLabel();\n lblCambio = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(102, 102, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jLabel1.setText(\"Abono a Cuenta\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(148, 148, 148)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel2.setText(\"Mora $\");\n\n txtMora.setEditable(false);\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel3.setText(\"Cliente\");\n\n txtCliente.setEditable(false);\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel4.setText(\"Fecha\");\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel5.setText(\"N° Factura\");\n\n txtFact.setEditable(false);\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel6.setText(\"Monto a abonar\");\n\n btnGuardar.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n btnGuardar.setText(\"Guardar\");\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Cuota $\");\n\n txtCuota.setEditable(false);\n\n spAbono.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n spAbono.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n spAbonoFocusLost(evt);\n }\n });\n spAbono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n spAbonoActionPerformed(evt);\n }\n });\n spAbono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n spAbonoKeyTyped(evt);\n }\n });\n\n jLabel8.setText(\"Saldo Pendiente Actual:\");\n\n lblPending.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n lblPending.setText(\"aaaa\");\n\n txtPpago.setEditable(false);\n txtPpago.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPpagoActionPerformed(evt);\n }\n });\n\n jLabel10.setText(\"Fecha maxima de pago\");\n\n jLabel11.setText(\"Sig. Fecha de pago\");\n\n txtProxP.setEditable(false);\n txtProxP.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtProxPActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Producto\");\n\n txtProducto.setEditable(false);\n\n jLabel12.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel12.setText(\"Monto recibido\");\n\n spAbonoRec.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n spAbonoRec.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n spAbonoRecFocusLost(evt);\n }\n });\n spAbonoRec.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n spAbonoRecActionPerformed(evt);\n }\n });\n spAbonoRec.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n spAbonoRecKeyTyped(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jButton1.setText(\"Calcular Cambio\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel13.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel13.setText(\"Cambio $\");\n\n lblCambio.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n lblCambio.setText(\"0.00\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtFact, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jfecha, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(txtCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtMora, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spAbono, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel12))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblCambio, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnGuardar)\n .addComponent(spAbonoRec, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblPending)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(txtPpago, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtProxP, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)\n .addComponent(jLabel10)))\n .addGap(58, 58, 58)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(txtFact, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jfecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtMora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txtProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPpago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(lblPending)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtProxP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spAbono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(spAbonoRec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnGuardar)\n .addComponent(jButton1)\n .addComponent(jLabel13)\n .addComponent(lblCambio))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n jButton2 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n txtNome = new javax.swing.JTextField();\n txtResponsavel = new javax.swing.JTextField();\n txtDescricao = new javax.swing.JTextField();\n btnCadastrar = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtDataFim = new javax.swing.JFormattedTextField();\n jLabel9 = new javax.swing.JLabel();\n txtDataInicio = new javax.swing.JFormattedTextField();\n txtCargaHoraria = new javax.swing.JTextField();\n lbTitulo = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n\n jPanel2.setBackground(new java.awt.Color(5, 103, 49));\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton2.setForeground(new java.awt.Color(8, 8, 8));\n jButton2.setText(\"Voltar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(1072, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 44, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n txtNome.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtNome.setForeground(java.awt.Color.gray);\n txtNome.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtNome.setText(\" Nome do Curso\");\n txtNome.setName(\"\"); // NOI18N\n txtNome.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtNomeFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtNomeFocusLost(evt);\n }\n });\n\n txtResponsavel.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtResponsavel.setForeground(java.awt.Color.gray);\n txtResponsavel.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtResponsavel.setText(\" Responsável\");\n txtResponsavel.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtResponsavelFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtResponsavelFocusLost(evt);\n }\n });\n\n txtDescricao.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtDescricao.setForeground(java.awt.Color.gray);\n txtDescricao.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtDescricao.setText(\" Descrição\");\n txtDescricao.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtDescricaoFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtDescricaoFocusLost(evt);\n }\n });\n\n btnCadastrar.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnCadastrar.setForeground(new java.awt.Color(71, 82, 94));\n btnCadastrar.setText(\"Adicionar\");\n btnCadastrar.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n btnCadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCadastrarActionPerformed(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(71, 82, 94));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(71, 82, 94));\n jLabel8.setText(\"Período:\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(71, 82, 94));\n jLabel6.setText(\"De\");\n\n try {\n txtDataFim.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(71, 82, 94));\n jLabel9.setText(\"Até\");\n\n try {\n txtDataInicio.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n txtCargaHoraria.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtCargaHoraria.setForeground(java.awt.Color.gray);\n txtCargaHoraria.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n txtCargaHoraria.setText(\"Carga Horária\");\n txtCargaHoraria.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtCargaHorariaFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtCargaHorariaFocusLost(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(61, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 279, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtDataInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel9)))\n .addGap(20, 20, 20)\n .addComponent(txtDataFim, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCargaHoraria, javax.swing.GroupLayout.PREFERRED_SIZE, 279, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtNome, javax.swing.GroupLayout.DEFAULT_SIZE, 279, Short.MAX_VALUE)\n .addComponent(txtDescricao, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtResponsavel, javax.swing.GroupLayout.Alignment.LEADING)))\n .addGap(58, 58, 58))))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addComponent(jLabel7)\n .addContainerGap(220, Short.MAX_VALUE)))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtResponsavel, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCargaHoraria, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(23, 23, 23)\n .addComponent(jLabel8)\n .addGap(10, 10, 10)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtDataInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(jLabel9))\n .addComponent(txtDataFim, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(236, Short.MAX_VALUE)\n .addComponent(jLabel7)\n .addGap(189, 189, 189)))\n );\n\n lbTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n lbTitulo.setForeground(new java.awt.Color(71, 82, 94));\n lbTitulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbTitulo.setText(\"Novo\");\n lbTitulo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(71, 82, 94));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Preencha todos os campos\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 398, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 398, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(328, 328, 328))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(lbTitulo)\n .addGap(18, 18, 18)\n .addComponent(jLabel5)\n .addGap(51, 51, 51)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(109, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "public frmOrdenacao() {\n initComponents();\n setResizable(false);\n ordenacaoControle = new OrdenacaoControle();\n }", "public JDialogZonas(java.awt.Frame parent, boolean modal, Remiseria remiseria, JComboBox cmbZona, Maestro unMaestro, Operario unOperario) {\n super(parent, modal);\n this.remiseria = remiseria;\n this.cmbZona = cmbZona;\n this.unOperario = unOperario;\n this.unMaestro = unMaestro;\n this.utilidades = new Utilidad();\n initComponents();\n this.setModal(true);\n this.setLocationRelativeTo(null);\n this.cargarZonas();\n jXTaskPane1.setCollapsed(true);\n btnGuardarModificaciones.setEnabled(false);\n btnGuardarChofer.setEnabled(false);\n txtNombreZona.setEnabled(false);\n txtDescripcion.setEnabled(false);\n btnModificar.setEnabled(true);\n btnAgregar.setEnabled(true);\n btnEliminar.setEnabled(true); \n try\n {\n tablaZonas.setRowSelectionInterval(0, 0);\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"No hay Zonas registradas aúx\", null, JOptionPane.WARNING_MESSAGE);\n }\n }", "public JDialogParticleAnalysisNew() { }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jP_Titulo = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jP_buqueda_general = new javax.swing.JPanel();\n jL_fecha_inicial = new javax.swing.JLabel();\n jL_fecha_final = new javax.swing.JLabel();\n jDC_fecha_inicial = new com.toedter.calendar.JDateChooser();\n jDC_fehca_final = new com.toedter.calendar.JDateChooser();\n jB_ver = new javax.swing.JButton();\n jB_imprimir = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jT_vista = new javax.swing.JTable();\n jTF_busqueda = new javax.swing.JTextField();\n jCB_buscar = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jLabel8 = new javax.swing.JLabel();\n jL_mejor_vendedor = new javax.swing.JLabel();\n jTF_mejor_vendedor = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jL_producto_mas_vendido = new javax.swing.JLabel();\n jTF_prod_mas_vendido = new javax.swing.JTextField();\n jL_producto_menos_vendido = new javax.swing.JLabel();\n jTF_prod_menos_vendido = new javax.swing.JTextField();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setPreferredSize(new java.awt.Dimension(1150, 692));\n\n jP_Titulo.setBackground(new java.awt.Color(153, 204, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 0, 45)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(102, 102, 102));\n jLabel1.setText(\"Detalle Ventas\");\n\n javax.swing.GroupLayout jP_TituloLayout = new javax.swing.GroupLayout(jP_Titulo);\n jP_Titulo.setLayout(jP_TituloLayout);\n jP_TituloLayout.setHorizontalGroup(\n jP_TituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_TituloLayout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jP_TituloLayout.setVerticalGroup(\n jP_TituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_TituloLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Datos\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 11), new java.awt.Color(0, 153, 255))); // NOI18N\n jPanel1.setPreferredSize(new java.awt.Dimension(1307, 170));\n\n jP_buqueda_general.setBackground(new java.awt.Color(255, 255, 255));\n jP_buqueda_general.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Busqueda General\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 11), new java.awt.Color(0, 153, 255))); // NOI18N\n\n jL_fecha_inicial.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_fecha_inicial.setText(\"Fecha inicio (dia/mes/año) :\");\n\n jL_fecha_final.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_fecha_final.setText(\"Fecha final (dia/mes/año) :\");\n\n jB_ver.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/buscar .png\"))); // NOI18N\n jB_ver.setText(\"Ver\");\n\n jB_imprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/Botonimpirmi.png\"))); // NOI18N\n jB_imprimir.setText(\"Imprimir\");\n\n javax.swing.GroupLayout jP_buqueda_generalLayout = new javax.swing.GroupLayout(jP_buqueda_general);\n jP_buqueda_general.setLayout(jP_buqueda_generalLayout);\n jP_buqueda_generalLayout.setHorizontalGroup(\n jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jP_buqueda_generalLayout.createSequentialGroup()\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_buqueda_generalLayout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addComponent(jL_fecha_inicial)\n .addGap(87, 87, 87)\n .addComponent(jL_fecha_final))\n .addGroup(jP_buqueda_generalLayout.createSequentialGroup()\n .addGap(62, 62, 62)\n .addComponent(jDC_fecha_inicial, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(107, 107, 107)\n .addComponent(jDC_fehca_final, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB_imprimir)\n .addComponent(jB_ver))\n .addGap(18, 18, 18))\n );\n jP_buqueda_generalLayout.setVerticalGroup(\n jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_buqueda_generalLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jL_fecha_inicial)\n .addComponent(jL_fecha_final)\n .addComponent(jB_ver))\n .addGap(22, 22, 22)\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDC_fehca_final, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jDC_fecha_inicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB_imprimir))\n .addGap(19, 19, 19))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(230, 230, 230)\n .addComponent(jP_buqueda_general, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jP_buqueda_general, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 6, Short.MAX_VALUE))\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 51));\n jPanel2.setPreferredSize(new java.awt.Dimension(1150, 692));\n\n jT_vista.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null, null, null, null}\n },\n new String [] {\n \"Id venta\", \"Fecha\", \"RFC cliente\", \"RFC empleado\", \"No sucursal\", \"Codigo descuento\", \"Puntos ganados\", \"Id detalle venta\", \"Codigo producto\", \"Cantidad\", \"Precio venta\", \"Total\"\n }\n ));\n jScrollPane2.setViewportView(jT_vista);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jCB_buscar.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione uno\", \"RFC cliente\", \"RFC empleado\", \"Sucursal\" }));\n jCB_buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCB_buscarActionPerformed(evt);\n }\n });\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/buscar .png\"))); // NOI18N\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Los mas destacado\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 11), new java.awt.Color(0, 153, 255))); // NOI18N\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/empleadoDestacado.png\"))); // NOI18N\n\n jL_mejor_vendedor.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_mejor_vendedor.setText(\"Mejor Vendedor:\");\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/productoMasVendido.png\"))); // NOI18N\n\n jL_producto_mas_vendido.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_producto_mas_vendido.setText(\"Producto mas vendido: \");\n\n jL_producto_menos_vendido.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_producto_menos_vendido.setText(\"Producto menos vendido:\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel8)\n .addGap(41, 41, 41)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jL_mejor_vendedor)\n .addComponent(jTF_mejor_vendedor, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(57, 57, 57)\n .addComponent(jLabel9)\n .addGap(51, 51, 51)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jL_producto_mas_vendido)\n .addComponent(jTF_prod_mas_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(53, 53, 53)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTF_prod_menos_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jL_producto_menos_vendido))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jL_mejor_vendedor)\n .addGap(18, 18, 18)\n .addComponent(jTF_mejor_vendedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel8))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(7, 7, 7)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jL_producto_menos_vendido)\n .addComponent(jL_producto_mas_vendido))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTF_prod_menos_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTF_prod_mas_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jP_Titulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(797, 797, 797)\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jCB_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTF_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(22, Short.MAX_VALUE))\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1150, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jP_Titulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCB_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTF_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel4))\n .addGap(7, 7, 7)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public frmCalendario(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n esquema = new GridLayout(0,1); // espacios libres de 5 píxeles \n esquema1 = new GridLayout(0,1);\n PACreditos.setLayout(esquema1);\n CREDITO= new credito();\n EMPLEADO= new empleado();\n Container contenedor = getContentPane();\n this.getContentPane().setLayout(esquema);\n this.getContentPane().add(PDTrabajador);\n this.getContentPane().add(PDCredito);\n contenedor.setLayout( esquema1 );\n JScrollPane scrollpane = new JScrollPane(PACreditos);\n contenedor.add( scrollpane, BorderLayout.CENTER ); \n this.getContentPane().add(scrollpane);\n setSize( 1000, 500 );\n setVisible( true ); \n }", "private FenetreCreation() {\n\t\tsuper(\"Machine de Turing - Creation\");\n\t\tsetSize(1000, 450);\n\t\tsetLocation(100, 100);\n\t\tsetResizable(false);\n\t\t//Pas possible de fermer par le bouton fermer de fenetre\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\t\n\t\t//Initialisation de toutes les composantes\n\t\tlabelEtat = new JLabel(\"Etats :\");\n\t\tlabelSym = new JLabel(\"Symboles :\");\n\t\tlabelConsigne = new JLabel(\"<html>Le premier etat ajoute sera l'etat initial.<br>\"\n\t\t\t\t+ \"# signifie des cases vides.<br>\"\n\t\t\t\t+ \"Pas d'espace pour des symboles et etats.</html>\");\n\n\t\tok = new JButton(\"OK\");\n\t\tannuler = new JButton(\"Annuler\");\n\t\tajoutEtat = new JButton(\"+\");\n\t\tsuppEtat = new JButton(\"-\");\n\t\tajoutSym = new JButton(\"+\");\n\t\tsuppSym = new JButton(\"-\");\n\n\t\ttextEtat = new JTextField();\n\t\ttextSym = new JTextField();\n\n\t\tmodelEtat = new DefaultListModel<String>();\n\t\tetats = new JList<String>(modelEtat);\n\t\tetats.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tetats.setVisibleRowCount(10);\n\t\tscrollEtat = new JScrollPane(etats);\n\n\t\tmodelSym = new DefaultListModel<String>();\n\t\tsymboles = new JList<String>(modelSym);\n\t\tsymboles.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tsymboles.setVisibleRowCount(10);\n\t\tscrollSym = new JScrollPane(symboles);\n\n\t\tselSym = new JComboBox<String>();\n\t\tselEtat = new JComboBox<String>();\n\t\tselDeplace = new JComboBox<String>();\n\t\t//ajouter l'etat finale et symbole speciale pour simuler ruban infini\n\t\tselEtat.addItem(\"eFinale\");\n\t\tselSym.addItem(\"#\");\n\t\t//etiquettes de deplacement\n\t\tselDeplace.addItem(\"Gauche\");\n\t\tselDeplace.addItem(\"Droite\");\n\t\tselDeplace.addItem(\"Statique\");\n\n\t\ttabModel = new HashMap<String, DefaultTableModel>();\n\t\tString[] colId = {\"Etat\", \"Vue\", \"Changer à\", \"Prochain Etat\", \"Deplacement\"};\n\t\temptyMod = new DefaultTableModel(0, 5);\n\t\temptyMod.setColumnIdentifiers(colId);\n\t\ttab = new JTable(emptyMod);\n\t\tscrollTab = new JScrollPane(tab);\n\n\t\ttabSym = new ArrayList<String>();\n\t\ttabEtat = new ArrayList<String>();\n\t\t\n\t\t//rendre visible symbole speciale a l'initialisation\n\t\ttabSym.add(\"#\");\n\t\tmodelSym.addElement(\"#\");\n\t\t\n\t\t//ajout de fonctionnement des boutons\n\t\tajoutEtat.addActionListener(e -> {\n\t\t\tString data = textEtat.getText();\n\t\t\tif (!modelEtat.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"eFinale\")) {\n\t\t\t\tmodelEtat.addElement(data);\n\t\t\t\ttabEtat.add(data);\n\t\t\t\ttabModel.put(data, new DefaultTableModel(0, 4) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\treturn !(column == 0 || column == 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\ttabModel.get(data).setColumnIdentifiers(colId);\n\t\t\t\ttabModel.get(data).addRow(new Object[]{data, \"\", \"\", \"\", \"\"});\n\t\t\t\tfor (int i = 0; i < modelSym.size(); i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\ttabModel.get(data).setValueAt(modelSym.get(i), i, 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttabModel.get(data).addRow(new Object[]{\"\", modelSym.get(i), \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselEtat.addItem(data);\n\t\t\t}\n\t\t\ttextEtat.setText(null);\n\t\t});\n\n\t\tsuppEtat.addActionListener(e -> {\n\t\t\tint index = etats.getSelectedIndex();\n\t\t\tif (index != -1) {\n\t\t\t\tString data = etats.getSelectedValue();\n\t\t\t\tmodelEtat.remove(index);\n\t\t\t\ttabEtat.remove(index);\n\t\t\t\ttabModel.remove(data);\n\t\t\t\tselEtat.removeItem(data);\n\t\t\t}\n\t\t});\n\n\t\tajoutSym.addActionListener(e -> {\n\t\t\tString data = textSym.getText();\n\t\t\tif (!modelSym.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"#\")) {\n\t\t\t\tmodelSym.addElement(data);\n\t\t\t\ttabSym.add(data);\n\t\t\t\tif (modelSym.size() == 1) {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).setValueAt(data, 0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).addRow(new Object[]{\"\", data, \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselSym.addItem(data);\n\t\t\t}\n\t\t\ttextSym.setText(null);\n\t\t});\n\n\t\tsuppSym.addActionListener(e -> {\n\t\t\tint index = symboles.getSelectedIndex();\n\t\t\tif (index != -1 && !modelSym.getElementAt(index).equals(\"#\")) {\n\t\t\t\tselSym.removeItem(modelSym.getElementAt(index));\n\t\t\t\ttabSym.remove(index);\n\t\t\t\tmodelSym.remove(index);\n\t\t\t\tfor (DefaultTableModel d : tabModel.values()) {\n\t\t\t\t\td.removeRow(index);\n\t\t\t\t\tif (index == 0 && d.getRowCount() == 0) {\n\t\t\t\t\t\td.addRow(new Object[]{etats.getSelectedValue(), \"\", \"\", \"\", \"\"});\n\t\t\t\t\t} else if (index == 0) {\n\t\t\t\t\t\td.setValueAt(etats.getSelectedValue(), 0, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//seul moyen de fermer la fenetre\n\t\tannuler.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tbarrier.await();\n\t\t\t} catch (Exception ex) {\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t});\n\t\t\n\t\t//finaliser les parametres d'entree pour la creation\n\t\t//verification qu'aucun champ n'est null, sinon erreur\n\t\tok.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tif (tabEtat.isEmpty() || tabSym.isEmpty()) {\n\t\t\t\t\tthrow new Exception();\n\t\t\t\t} else {\n\t\t\t\t\ttabAct = new int[tabEtat.size()][tabSym.size()][3];\n\t\t\t\t\tfor (int i = 0; i < tabAct.length; i++) {\n\t\t\t\t\t\tString etat = tabEtat.get(i);\n\t\t\t\t\t\tfor (int j = 0; j < tabAct[i].length; j++) {\n\t\t\t\t\t\t\tString newSym = (String) tabModel.get(etat).getValueAt(j, 2);\n\t\t\t\t\t\t\tString newEtat = (String) tabModel.get(etat).getValueAt(j, 3);\n\t\t\t\t\t\t\tString dep = (String) tabModel.get(etat).getValueAt(j, 4);\n\n\t\t\t\t\t\t\tif (newSym == \"\" || newEtat == \"\" || dep == \"\") {\n\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttabAct[i][j][0] = tabSym.indexOf(newSym);\n\n\t\t\t\t\t\t\tif (newEtat.equals(\"eFinale\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = tabEtat.indexOf(newEtat);\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif (dep.equals(\"Gauche\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.GAUCHE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Droite\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.DROITE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Statique\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.RESTER;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.dispose();\n\t\t\t\t\tmachine = new Turing_Machine(tabAct, tabEtat, tabSym);\n\t\t\t\t\tbarrier.await();\n\t\t\t\t}\n\t\t\t} catch (Exception n) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Veuillez remplir tous les champs de saisie!\", \"\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//changement de tableau par selection d'etat\n\t\tetats.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent evt) {\n\t\t\t\tif (!evt.getValueIsAdjusting()) {\n\t\t\t\t\tif (!modelEtat.isEmpty() && etats.getSelectedIndex() != -1) {\n\t\t\t\t\t\ttab.setModel(tabModel.get(etats.getSelectedValue()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttab.setModel(emptyMod);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttab.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(selSym));\n\t\t\t\ttab.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(selEtat));\n\t\t\t\ttab.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(selDeplace));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//positionnement des composantes\n\t\tentryPanel = new JPanel(new GridBagLayout());\n\t\tmainPanel = new JPanel(new BorderLayout());\n\t\tboutonVal = new JPanel(new GridLayout(1, 2, 0, 0));\n\t\tboutonEtat = new JPanel(new GridLayout(1, 2, 10, 0));\n\t\tboutonSym = new JPanel(new GridLayout(1, 2, 10, 0));\n\n\t\tboutonEtat.add(ajoutEtat);\n\t\tboutonEtat.add(suppEtat);\n\t\tboutonSym.add(ajoutSym);\n\t\tboutonSym.add(suppSym);\n\n\t\tc = new GridBagConstraints();\n\t\tc.gridheight = 1;\n\t\tc.gridwidth = 1;\n\t\tc.insets = new Insets(5, 10, 5, 10);\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\t\n\t\tentryPanel.add(labelConsigne, c);\n\t\t\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.gridwidth = 1;\n\t\tentryPanel.add(labelEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(labelSym, c);\n\n\t\tc.gridy = 3;\n\t\tc.gridx = 0;\n\t\tc.gridwidth = 2;\n\t\tentryPanel.add(boutonEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(boutonSym, c);\n\n\t\tc.gridy = 4;\n\t\tc.gridx = 0;\n\t\tentryPanel.add(textEtat, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollEtat, c);\n\n\t\tc.gridx = 2;\n\t\tc.gridy = 4;\n\t\tentryPanel.add(textSym, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollSym, c);\n\n\t\tboutonVal.add(ok);\n\t\tboutonVal.add(annuler);\n\t\tmainPanel.add(entryPanel, BorderLayout.WEST);\n\t\tmainPanel.add(scrollTab, BorderLayout.EAST);\n\t\tmainPanel.add(boutonVal, BorderLayout.SOUTH);\n\t\tsetContentPane(mainPanel);\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ventana_cobrador = new javax.swing.JDialog();\n jPanel5 = new javax.swing.JPanel();\n txt_bnombre_cobrador = new javax.swing.JTextField();\n jScrollPane4 = new javax.swing.JScrollPane();\n tbl_bcobrador = new javax.swing.JTable();\n jLabel10 = new javax.swing.JLabel();\n btn_agreg_cob = new javax.swing.JButton();\n ventana_moneda = new javax.swing.JDialog();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane7 = new javax.swing.JScrollPane();\n tbl_bmoneda = new javax.swing.JTable();\n btn_agreg_moneda = new javax.swing.JButton();\n ventana_transaccion = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n txt_busq_transaccion = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n tbl_transaccion = new javax.swing.JTable();\n jLabel13 = new javax.swing.JLabel();\n btn_agreg_trans = new javax.swing.JButton();\n ventana_saldo_proveedor = new javax.swing.JDialog();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tbl_saldo_prov = new javax.swing.JTable();\n jLabel9 = new javax.swing.JLabel();\n btn_agreg_sal = new javax.swing.JButton();\n ventana_proveedor = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tbl_busq_prov = new javax.swing.JTable();\n txt_bcod_prov = new javax.swing.JTextField();\n btn_agreg_busq = new javax.swing.JButton();\n txt_bnomb_prov = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n btn_nuevo = new javax.swing.JButton();\n btnguardar = new javax.swing.JButton();\n btnactualizar = new javax.swing.JButton();\n btneliminar = new javax.swing.JButton();\n btncancelar = new javax.swing.JButton();\n btn_busqueda = new javax.swing.JButton();\n btn_ejecutar = new javax.swing.JButton();\n btn_imprimir = new javax.swing.JButton();\n btn_salir = new javax.swing.JButton();\n btn_ant = new javax.swing.JButton();\n btn_sig = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txt_cod_sucursal = new javax.swing.JTextField();\n txt_cod_tipo_comp = new javax.swing.JTextField();\n txt_nro_comp = new javax.swing.JTextField();\n txt_fecha_comp = new com.toedter.calendar.JDateChooser();\n txt_cod_prov = new javax.swing.JTextField();\n txt_desc_prov = new javax.swing.JTextField();\n txt_cod_moneda = new javax.swing.JTextField();\n txt_desc_moneda = new javax.swing.JTextField();\n txt_desc_sucursal = new javax.swing.JTextField();\n lbl_serie_nro = new javax.swing.JLabel();\n campo_obligatorio = new javax.swing.JLabel();\n lbl_fec_comp = new javax.swing.JLabel();\n lbl_cod_cliente = new javax.swing.JLabel();\n lbl_cod_moneda = new javax.swing.JLabel();\n txt_ser_comp = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n txt_sub_tipo_transaccion = new javax.swing.JTextField();\n txt_desc_tipo_transac = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tbl_comprobante = new javax.swing.JTable();\n btn_limpiar = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n txt_total_comprobante = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txt_cod_usuario = new javax.swing.JTextField();\n txt_desc_usuario = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n\n ventana_cobrador.setTitle(\"COBRADORES\");\n ventana_cobrador.setResizable(false);\n ventana_cobrador.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel5.setBackground(new java.awt.Color(0, 102, 102));\n jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel5.add(txt_bnombre_cobrador, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 150, -1));\n\n tbl_bcobrador = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_bcobrador.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane4.setViewportView(tbl_bcobrador);\n\n jPanel5.add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 60, 360, 260));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(204, 204, 0));\n jLabel10.setText(\"Codigo Cobrador\");\n jPanel5.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(53, 35, -1, -1));\n\n btn_agreg_cob.setText(\"Agregar\");\n btn_agreg_cob.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_agreg_cobActionPerformed(evt);\n }\n });\n jPanel5.add(btn_agreg_cob, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 330, -1, -1));\n\n ventana_cobrador.getContentPane().add(jPanel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 380));\n\n ventana_moneda.setTitle(\"MONEDAS\");\n ventana_moneda.setResizable(false);\n ventana_moneda.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel6.setBackground(new java.awt.Color(0, 102, 102));\n jPanel6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_bmoneda = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_bmoneda.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane7.setViewportView(tbl_bmoneda);\n\n jPanel6.add(jScrollPane7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 370, 90));\n\n btn_agreg_moneda.setText(\"Agregar\");\n jPanel6.add(btn_agreg_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 120, -1, -1));\n\n ventana_moneda.getContentPane().add(jPanel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 150));\n\n ventana_transaccion.setTitle(\"VENTANA TRANSACCION\");\n ventana_transaccion.setResizable(false);\n ventana_transaccion.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel8.setBackground(new java.awt.Color(0, 102, 102));\n jPanel8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel8.add(txt_busq_transaccion, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 150, -1));\n\n tbl_transaccion.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane2.setViewportView(tbl_transaccion);\n\n jPanel8.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 380, 200));\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(204, 204, 0));\n jLabel13.setText(\"Codigo\");\n jPanel8.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(65, 35, -1, -1));\n\n btn_agreg_trans.setText(\"Agregar\");\n jPanel8.add(btn_agreg_trans, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 270, -1, -1));\n\n ventana_transaccion.getContentPane().add(jPanel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 300));\n\n ventana_saldo_proveedor.setTitle(\"SALDOS CLIENTES\");\n ventana_saldo_proveedor.setResizable(false);\n ventana_saldo_proveedor.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel9.setBackground(new java.awt.Color(0, 102, 102));\n jPanel9.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_saldo_prov = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_saldo_prov.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane5.setViewportView(tbl_saldo_prov);\n\n jPanel9.add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 680, 220));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(204, 204, 0));\n jLabel9.setText(\"PARA SELECCIONAR MAS DE UNA FILA PULSE LA TECLA SHIFT\");\n jPanel9.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 10, 430, -1));\n\n btn_agreg_sal.setText(\"Agregar\");\n btn_agreg_sal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_agreg_salActionPerformed(evt);\n }\n });\n jPanel9.add(btn_agreg_sal, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 265, -1, -1));\n\n ventana_saldo_proveedor.getContentPane().add(jPanel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 700, 300));\n\n ventana_proveedor.setTitle(\"BUSQUEDA PROVEEDOR\");\n ventana_proveedor.setResizable(false);\n ventana_proveedor.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel7.setBackground(new java.awt.Color(51, 51, 51));\n jPanel7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_busq_prov = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_busq_prov.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane3.setViewportView(tbl_busq_prov);\n\n jPanel7.add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 360, 190));\n jPanel7.add(txt_bcod_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 150, -1));\n\n btn_agreg_busq.setText(\"Agregar\");\n jPanel7.add(btn_agreg_busq, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 260, -1, -1));\n jPanel7.add(txt_bnomb_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 20, 150, -1));\n\n ventana_proveedor.getContentPane().add(jPanel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 390, 300));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"RECIBOS DE COMPRAS(FORMRECOMP)\");\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel4.setBackground(new java.awt.Color(51, 51, 51));\n jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jToolBar1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jToolBar1.setFloatable(false);\n\n btn_nuevo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_nuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/nuevo.png\"))); // NOI18N\n btn_nuevo.setToolTipText(\"Nuevo\");\n btn_nuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_nuevoActionPerformed(evt);\n }\n });\n btn_nuevo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n btn_nuevoKeyPressed(evt);\n }\n });\n jToolBar1.add(btn_nuevo);\n\n btnguardar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btnguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/guardar.png\"))); // NOI18N\n btnguardar.setToolTipText(\"GRABAR\");\n btnguardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardarActionPerformed(evt);\n }\n });\n jToolBar1.add(btnguardar);\n\n btnactualizar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btnactualizar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/actualizar.png\"))); // NOI18N\n btnactualizar.setToolTipText(\"Modificar\");\n jToolBar1.add(btnactualizar);\n\n btneliminar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btneliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/borrar.png\"))); // NOI18N\n btneliminar.setToolTipText(\"Eliminar\");\n btneliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneliminarActionPerformed(evt);\n }\n });\n jToolBar1.add(btneliminar);\n\n btncancelar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btncancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/cancelar.png\"))); // NOI18N\n btncancelar.setToolTipText(\"Cancelar\");\n btncancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btncancelarActionPerformed(evt);\n }\n });\n jToolBar1.add(btncancelar);\n\n btn_busqueda.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_busqueda.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/busqueda.png\"))); // NOI18N\n btn_busqueda.setToolTipText(\"Buscar\");\n btn_busqueda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_busquedaActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_busqueda);\n\n btn_ejecutar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_ejecutar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/6.png\"))); // NOI18N\n btn_ejecutar.setToolTipText(\"Buscar\");\n btn_ejecutar.setFocusable(false);\n btn_ejecutar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_ejecutar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_ejecutar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_ejecutarActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_ejecutar);\n\n btn_imprimir.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_imprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/imprimir.png\"))); // NOI18N\n btn_imprimir.setToolTipText(\"Imprimir\");\n btn_imprimir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_imprimirActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_imprimir);\n\n btn_salir.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_salir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/salir2.png\"))); // NOI18N\n btn_salir.setToolTipText(\"Salir\");\n btn_salir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_salirActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_salir);\n\n btn_ant.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_ant.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/siguiente.png\"))); // NOI18N\n btn_ant.setToolTipText(\"Anterior reg\");\n btn_ant.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_antActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_ant);\n\n btn_sig.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_sig.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/next.png\"))); // NOI18N\n btn_sig.setToolTipText(\"Sigiente reg\");\n btn_sig.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_sigActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_sig);\n\n jPanel4.add(jToolBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 450, 54));\n\n jPanel1.setBackground(new java.awt.Color(0, 102, 102));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)), \"DATOS PROVEEDOR\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 204, 0));\n jLabel1.setText(\"Sucursal:\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(204, 204, 0));\n jLabel2.setText(\"Tipo Comp:\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(204, 204, 0));\n jLabel3.setText(\"Fecha:\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(204, 204, 0));\n jLabel4.setText(\"Proveedor:(F9)\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(204, 204, 0));\n jLabel6.setText(\"Moneda:\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 145, -1, -1));\n jPanel1.add(txt_cod_sucursal, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 20, 50, -1));\n jPanel1.add(txt_cod_tipo_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 50, 50, -1));\n\n txt_nro_comp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_nro_compActionPerformed(evt);\n }\n });\n jPanel1.add(txt_nro_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(225, 50, 50, -1));\n jPanel1.add(txt_fecha_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 80, 130, -1));\n jPanel1.add(txt_cod_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 110, 50, -1));\n jPanel1.add(txt_desc_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 110, 250, -1));\n\n txt_cod_moneda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_cod_monedaActionPerformed(evt);\n }\n });\n jPanel1.add(txt_cod_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 145, 50, -1));\n\n txt_desc_moneda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_desc_monedaActionPerformed(evt);\n }\n });\n jPanel1.add(txt_desc_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 145, 250, -1));\n jPanel1.add(txt_desc_sucursal, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 250, -1));\n\n lbl_serie_nro.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_serie_nro.setForeground(new java.awt.Color(204, 204, 0));\n lbl_serie_nro.setText(\"*\");\n jPanel1.add(lbl_serie_nro, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 50, 10, -1));\n\n campo_obligatorio.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n campo_obligatorio.setForeground(new java.awt.Color(204, 204, 0));\n campo_obligatorio.setText(\"CAMPOS OBLIGATORIOS *\");\n jPanel1.add(campo_obligatorio, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 145, -1, -1));\n\n lbl_fec_comp.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_fec_comp.setForeground(new java.awt.Color(204, 204, 0));\n lbl_fec_comp.setText(\"*\");\n jPanel1.add(lbl_fec_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 80, -1, -1));\n\n lbl_cod_cliente.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_cod_cliente.setForeground(new java.awt.Color(204, 204, 0));\n lbl_cod_cliente.setText(\"*\");\n jPanel1.add(lbl_cod_cliente, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 110, -1, -1));\n\n lbl_cod_moneda.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_cod_moneda.setForeground(new java.awt.Color(204, 204, 0));\n lbl_cod_moneda.setText(\"*\");\n jPanel1.add(lbl_cod_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 145, -1, -1));\n\n txt_ser_comp.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_ser_compKeyTyped(evt);\n }\n });\n jPanel1.add(txt_ser_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 50, 50, -1));\n\n jPanel4.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 760, 180));\n\n jPanel2.setBackground(new java.awt.Color(0, 102, 102));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)), \"TIPO TRANSACCION\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(204, 204, 0));\n jLabel7.setText(\"Transaccion:\");\n jPanel2.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n jPanel2.add(txt_sub_tipo_transaccion, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 20, 50, -1));\n jPanel2.add(txt_desc_tipo_transac, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 230, -1));\n\n jPanel3.setBackground(new java.awt.Color(51, 51, 51));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)), \"DETALLE RECIBO\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 153, 255))); // NOI18N\n jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_comprobante = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_comprobante.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tbl_comprobante);\n\n jPanel3.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 710, 120));\n\n btn_limpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/17_2.png\"))); // NOI18N\n btn_limpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_limpiarActionPerformed(evt);\n }\n });\n jPanel3.add(btn_limpiar, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 20, 40, 25));\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 51, 51));\n jLabel15.setText(\"Limpar Detalle\");\n jPanel3.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(585, 20, -1, -1));\n\n jPanel2.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 730, 180));\n\n txt_total_comprobante.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n txt_total_comprobante.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_total_comprobanteActionPerformed(evt);\n }\n });\n jPanel2.add(txt_total_comprobante, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 240, 150, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(153, 153, 153));\n jLabel8.setText(\"Total Recibo:\");\n jPanel2.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 245, -1, -1));\n\n jPanel4.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 250, 760, 280));\n jPanel4.add(txt_cod_usuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 25, 70, 25));\n jPanel4.add(txt_desc_usuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(545, 25, 220, 25));\n\n jLabel14.setFont(new java.awt.Font(\"Noto Sans\", 1, 12)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(204, 204, 0));\n jLabel14.setText(\"USUARIO\");\n jPanel4.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 6, -1, -1));\n\n getContentPane().add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 780, 570));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n titulo = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n txtFecha = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n btnConfirm = new javax.swing.JButton();\r\n btnCancel = new javax.swing.JButton();\r\n txtDes = new javax.swing.JTextField();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\r\n titulo.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 16)); // NOI18N\r\n titulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 14)); // NOI18N\r\n jLabel2.setText(\"Fecha\");\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 14)); // NOI18N\r\n jLabel1.setText(\"Descripción\");\r\n\r\n btnConfirm.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 14)); // NOI18N\r\n btnConfirm.setText(\"Confirmar\");\r\n btnConfirm.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnConfirmActionPerformed(evt);\r\n }\r\n });\r\n\r\n btnCancel.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 14)); // NOI18N\r\n btnCancel.setText(\"Cancelar\");\r\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnCancelActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(titulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\r\n .addGap(0, 179, Short.MAX_VALUE)\r\n .addComponent(btnConfirm)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel1)\r\n .addComponent(jLabel2))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(txtDes))))\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel2)\r\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jLabel1))\r\n .addComponent(txtDes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(btnConfirm)\r\n .addComponent(btnCancel))\r\n .addContainerGap())\r\n );\r\n\r\n pack();\r\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public NewProjectDialog(String pt) {\n\t\t\t\n\t\t\tsuper(frame, \"Add new project\");\n\t\t\tresetFields();\n\t\t\tpType = pt;\n\t\t\t\n\t\t\tfinal JDialog npd = this;\n\t\t\t\n\t\t\tpSDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpDeadline.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpEndDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpBudget.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpTotalCost.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpCompletion.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\t\n\t\t\tint x = frame.getLocation().x;\n\t\t\tint y = frame.getLocation().y;\n\t\t\t\n\t\t\tint pWidth = frame.getSize().width;\n\t\t\tint pHeight = frame.getSize().height;\n\t\t\t\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\t\n\t\t\tfinal JPanel fieldPanel = new JPanel();\n\t\t\t\n\t\t\tpCode.setText(portfolio.getNewCode());\n\t\t\tpCode.setEditable(false);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(7,3));\n\t\t\t\tSystem.out.println(\"ongoing\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,230));\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(6,3));\n\t\t\t\tSystem.out.println(\"finished\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,200));\n\t\t\t}\n\t\t\tfieldPanel.add(new JLabel(\"Project Code :\"));\n\t\t\tfieldPanel.add(pCode);\n\t\t\tfieldPanel.add(msgCode);\t\t\n\t\t\tfieldPanel.add(new JLabel(\"Project Name :\"));\n\t\t\tfieldPanel.add(pName);\n\t\t\tfieldPanel.add(msgName);\n\t\t\tfieldPanel.add(new JLabel(\"Client :\"));\n\t\t\tfieldPanel.add(pClient);\n\t\t\tfieldPanel.add(msgClient);\n\t\t\tfieldPanel.add(new JLabel(\"Start date: \"));\n\t\t\tfieldPanel.add(pSDate);\n\t\t\tfieldPanel.add(msgSDate);\n\t\t\tmsgSDate.setText(DATE_FORMAT);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"Deadline :\"));\n\t\t\t\tfieldPanel.add(pDeadline);\n\t\t\t\tfieldPanel.add(msgDeadline);\n\t\t\t\tmsgDeadline.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Budget :\"));\n\t\t\t\tfieldPanel.add(pBudget);\n\t\t\t\tfieldPanel.add(msgBudget);\n\t\t\t\tfieldPanel.add(new JLabel(\"Completion :\"));\n\t\t\t\tfieldPanel.add(pCompletion);\t\t\t\n\t\t\t\tfieldPanel.add(msgCompletion);\n\t\t\t\t\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"End Date :\"));\n\t\t\t\tfieldPanel.add(pEndDate);\n\t\t\t\tfieldPanel.add(msgEndDate);\n\t\t\t\tmsgEndDate.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Total Cost :\"));\n\t\t\t\tfieldPanel.add(pTotalCost);\n\t\t\t\tfieldPanel.add(msgTotalCost);\n\t\t\t}\n\t\t\t\n\t\t\tJPanel optionButtons = new JPanel();\n\t\t\toptionButtons.setLayout(new FlowLayout());\n\t\t\t\n\t\t\tJButton btnAdd = new JButton(\"Add\");\n\t\t\tbtnAdd.addActionListener(new ActionListener() {\n\n\t\t\t\t/**\n\t\t\t\t * Validates the information entered by the user and adds the project to the\n\t\t\t\t * Portfolio object if data is valid.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\toptionButtons.add(btnAdd);\n\t\t\t\n\t\t\tJButton btnClose = new JButton(\"Close\");\n\t\t\tbtnClose.addActionListener(new ActionListener() {\n\n\t\t\t\t/* Closes the NewProjectDialog window. */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\toptionButtons.add(btnClose);\n\t\t\tgetContentPane().add(new JLabel(\"Enter the data for your new \" + getPType(pType) + \" project:\"), BorderLayout.PAGE_START);\n\t\t\tthis.add(fieldPanel, BorderLayout.CENTER);\n\t\t\tthis.add(optionButtons, BorderLayout.PAGE_END);\n\n\t\t\tthis.pack();\n\t\t\t\t\t\n\t\t\tint width = this.getSize().width;\n\t\t\tint height = this.getSize().height;\n\t\t\t\n\t\t\tthis.setLocation(new Point((x+pWidth/2-width/2),(y+pHeight/2-height/2)));\n\t\t\tthis.setVisible(true);\n\t\t}", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n FormaP = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n jLabel19 = new javax.swing.JLabel();\n jPanel48 = new javax.swing.JPanel();\n txtBuscar = new javax.swing.JTextField();\n btnBuscarPaciente4 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tb_Grupo = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n Nomenclatura = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n jLabel20 = new javax.swing.JLabel();\n jPanel47 = new javax.swing.JPanel();\n txtBuscar1 = new javax.swing.JTextField();\n btnBuscarPaciente5 = new javax.swing.JButton();\n jScrollPane4 = new javax.swing.JScrollPane();\n tb_Grupo2 = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jDialog1 = new javax.swing.JDialog();\n jPanel1 = new javax.swing.JPanel();\n btnNuevo = new javax.swing.JButton();\n btneditar = new javax.swing.JButton();\n btnguardar = new javax.swing.JButton();\n btneliminar = new javax.swing.JButton();\n lblusu = new javax.swing.JLabel();\n jLabel57 = new javax.swing.JLabel();\n jPanel23 = new javax.swing.JPanel();\n buscartodo = new javax.swing.JTextField();\n btnBuscarPaciente = new javax.swing.JButton();\n lbldetalle = new javax.swing.JLabel();\n cargareliminar = new javax.swing.JPanel();\n Mensaje = new javax.swing.JLabel();\n eli = new javax.swing.JButton();\n noeli = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtPrecio = new javax.swing.JTextField();\n fp = new javax.swing.JLabel();\n nom = new javax.swing.JLabel();\n txtcodigo = new javax.swing.JTextField();\n panelFormaPago = new javax.swing.JPanel();\n forma = new javax.swing.JTextField();\n b = new javax.swing.JButton();\n panelFormaPago1 = new javax.swing.JPanel();\n Nomen = new javax.swing.JTextField();\n b1 = new javax.swing.JButton();\n jScrollPane3 = new javax.swing.JScrollPane();\n tb_Grupo1 = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jPanel5 = new javax.swing.JPanel();\n jLabel33 = new javax.swing.JLabel();\n\n FormaP.setMinimumSize(new java.awt.Dimension(310, 441));\n FormaP.setResizable(false);\n\n jPanel7.setBackground(new java.awt.Color(41, 127, 184));\n jPanel7.setMinimumSize(new java.awt.Dimension(310, 441));\n\n jLabel19.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 30)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"Forma de Pago\");\n\n jPanel48.setBackground(new java.awt.Color(255, 255, 255));\n\n txtBuscar.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtBuscar.setBorder(null);\n txtBuscar.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtBuscarCaretUpdate(evt);\n }\n });\n txtBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscarActionPerformed(evt);\n }\n });\n txtBuscar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtBuscarKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel48Layout = new javax.swing.GroupLayout(jPanel48);\n jPanel48.setLayout(jPanel48Layout);\n jPanel48Layout.setHorizontalGroup(\n jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel48Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 5, Short.MAX_VALUE))\n );\n jPanel48Layout.setVerticalGroup(\n jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel48Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n btnBuscarPaciente4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente4.setContentAreaFilled(false);\n btnBuscarPaciente4.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscarPaciente4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPaciente4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jPanel48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente4, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addContainerGap(25, Short.MAX_VALUE)\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnBuscarPaciente4, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel48, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(334, 334, 334))\n );\n\n jScrollPane2.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo.setRowHeight(25);\n tb_Grupo.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_GrupoMouseClicked(evt);\n }\n });\n tb_Grupo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_GrupoKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(tb_Grupo);\n\n javax.swing.GroupLayout FormaPLayout = new javax.swing.GroupLayout(FormaP.getContentPane());\n FormaP.getContentPane().setLayout(FormaPLayout);\n FormaPLayout.setHorizontalGroup(\n FormaPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)\n );\n FormaPLayout.setVerticalGroup(\n FormaPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(FormaPLayout.createSequentialGroup()\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n Nomenclatura.setMinimumSize(new java.awt.Dimension(612, 430));\n Nomenclatura.setResizable(false);\n\n jPanel8.setBackground(new java.awt.Color(41, 127, 184));\n jPanel8.setMinimumSize(new java.awt.Dimension(310, 441));\n\n jLabel20.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 30)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"CPT\");\n\n jPanel47.setBackground(new java.awt.Color(255, 255, 255));\n\n txtBuscar1.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtBuscar1.setBorder(null);\n txtBuscar1.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtBuscar1CaretUpdate(evt);\n }\n });\n txtBuscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscar1ActionPerformed(evt);\n }\n });\n txtBuscar1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscar1KeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtBuscar1KeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel47Layout = new javax.swing.GroupLayout(jPanel47);\n jPanel47.setLayout(jPanel47Layout);\n jPanel47Layout.setHorizontalGroup(\n jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel47Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txtBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 5, Short.MAX_VALUE))\n );\n jPanel47Layout.setVerticalGroup(\n jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel47Layout.createSequentialGroup()\n .addComponent(txtBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n btnBuscarPaciente5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente5.setContentAreaFilled(false);\n btnBuscarPaciente5.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jPanel47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente5, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(299, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnBuscarPaciente5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel47, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(348, 348, 348))\n );\n\n jScrollPane4.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo2.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo2.setRowHeight(25);\n tb_Grupo2.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_Grupo2MouseClicked(evt);\n }\n });\n tb_Grupo2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_Grupo2KeyPressed(evt);\n }\n });\n jScrollPane4.setViewportView(tb_Grupo2);\n\n javax.swing.GroupLayout NomenclaturaLayout = new javax.swing.GroupLayout(Nomenclatura.getContentPane());\n Nomenclatura.getContentPane().setLayout(NomenclaturaLayout);\n NomenclaturaLayout.setHorizontalGroup(\n NomenclaturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)\n );\n NomenclaturaLayout.setVerticalGroup(\n NomenclaturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NomenclaturaLayout.createSequentialGroup()\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jDialog1.setAlwaysOnTop(true);\n jDialog1.setResizable(false);\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(41, 127, 184));\n jPanel1.setPreferredSize(new java.awt.Dimension(284, 714));\n\n btnNuevo.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btnNuevo.setForeground(new java.awt.Color(240, 240, 240));\n btnNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Documento-32.png\"))); // NOI18N\n btnNuevo.setText(\"Nuevo\");\n btnNuevo.setContentAreaFilled(false);\n btnNuevo.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnNuevo.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnNuevo.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btnNuevo.setIconTextGap(30);\n btnNuevo.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btnNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNuevoActionPerformed(evt);\n }\n });\n\n btneditar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btneditar.setForeground(new java.awt.Color(240, 240, 240));\n btneditar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Editar-32.png\"))); // NOI18N\n btneditar.setText(\"Editar\");\n btneditar.setContentAreaFilled(false);\n btneditar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btneditar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btneditar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btneditar.setIconTextGap(30);\n btneditar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btneditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneditarActionPerformed(evt);\n }\n });\n\n btnguardar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btnguardar.setForeground(new java.awt.Color(240, 240, 240));\n btnguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Guardar-32.png\"))); // NOI18N\n btnguardar.setText(\"Guardar\");\n btnguardar.setContentAreaFilled(false);\n btnguardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnguardar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnguardar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btnguardar.setIconTextGap(30);\n btnguardar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btnguardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardarActionPerformed(evt);\n }\n });\n\n btneliminar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btneliminar.setForeground(new java.awt.Color(240, 240, 240));\n btneliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Basura-32.png\"))); // NOI18N\n btneliminar.setText(\"Eliminar\");\n btneliminar.setContentAreaFilled(false);\n btneliminar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btneliminar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btneliminar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btneliminar.setIconTextGap(30);\n btneliminar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btneliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneliminarActionPerformed(evt);\n }\n });\n\n lblusu.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblusu.setForeground(new java.awt.Color(255, 255, 255));\n lblusu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Usuario-40.png\"))); // NOI18N\n lblusu.setText(\"Silvana\");\n lblusu.setFocusable(false);\n lblusu.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n\n jLabel57.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 36)); // NOI18N\n jLabel57.setForeground(new java.awt.Color(255, 255, 255));\n jLabel57.setText(\"<html>Precios<span style=\\\"font-size:'14px'\\\"><br>Nomenclaturas</br></span></html>\");\n\n jPanel23.setBackground(new java.awt.Color(255, 255, 255));\n\n buscartodo.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n buscartodo.setForeground(new java.awt.Color(51, 51, 51));\n buscartodo.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n buscartodo.setBorder(null);\n buscartodo.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n buscartodoCaretUpdate(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\n jPanel23.setLayout(jPanel23Layout);\n jPanel23Layout.setHorizontalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(buscartodo, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42))\n );\n jPanel23Layout.setVerticalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel23Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(buscartodo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnBuscarPaciente.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente.setContentAreaFilled(false);\n btnBuscarPaciente.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscarPaciente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPacienteActionPerformed(evt);\n }\n });\n\n lbldetalle.setForeground(new java.awt.Color(255, 255, 255));\n lbldetalle.setText(\"CPT, Descripción\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lbldetalle)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel57, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblusu, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnguardar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btneditar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btneliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel57, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbldetalle)\n .addGap(21, 21, 21)\n .addComponent(btnNuevo)\n .addGap(18, 18, 18)\n .addComponent(btnguardar)\n .addGap(18, 18, 18)\n .addComponent(btneditar)\n .addGap(18, 18, 18)\n .addComponent(btneliminar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 184, Short.MAX_VALUE)\n .addComponent(lblusu, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n cargareliminar.setBackground(new java.awt.Color(255, 153, 51));\n\n Mensaje.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n Mensaje.setForeground(new java.awt.Color(255, 255, 255));\n Mensaje.setText(\"Mensaje\");\n\n eli.setForeground(new java.awt.Color(240, 240, 240));\n eli.setText(\"Si\");\n eli.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));\n eli.setContentAreaFilled(false);\n eli.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n eli.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n eli.setIconTextGap(30);\n eli.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n eliActionPerformed(evt);\n }\n });\n\n noeli.setForeground(new java.awt.Color(240, 240, 240));\n noeli.setText(\"No\");\n noeli.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));\n noeli.setContentAreaFilled(false);\n noeli.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n noeli.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n noeli.setIconTextGap(30);\n noeli.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n noeliActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout cargareliminarLayout = new javax.swing.GroupLayout(cargareliminar);\n cargareliminar.setLayout(cargareliminarLayout);\n cargareliminarLayout.setHorizontalGroup(\n cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cargareliminarLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(Mensaje)\n .addGap(46, 46, 46)\n .addComponent(eli, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(noeli, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n cargareliminarLayout.setVerticalGroup(\n cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cargareliminarLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Mensaje)\n .addComponent(eli, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(noeli, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setMinimumSize(new java.awt.Dimension(543, 156));\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(51, 51, 51));\n jLabel3.setText(\"Forma de Pago\");\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(51, 51, 51));\n jLabel4.setText(\"Nomenclatura\");\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(51, 51, 51));\n jLabel5.setText(\"Precio\");\n\n txtPrecio.setEditable(false);\n txtPrecio.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtPrecio.setForeground(new java.awt.Color(51, 51, 51));\n txtPrecio.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPrecioKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPrecioKeyTyped(evt);\n }\n });\n\n fp.setBackground(new java.awt.Color(255, 255, 255));\n fp.setForeground(new java.awt.Color(255, 255, 255));\n fp.setText(\"jLabel8\");\n\n nom.setBackground(new java.awt.Color(255, 255, 255));\n nom.setForeground(new java.awt.Color(255, 255, 255));\n nom.setText(\"jLabel8\");\n\n txtcodigo.setEditable(false);\n txtcodigo.setForeground(new java.awt.Color(255, 255, 255));\n txtcodigo.setBorder(null);\n\n panelFormaPago.setBackground(new java.awt.Color(255, 255, 255));\n panelFormaPago.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n\n forma.setEditable(false);\n forma.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n forma.setForeground(new java.awt.Color(51, 51, 51));\n forma.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n forma.setBorder(null);\n forma.setSelectedTextColor(new java.awt.Color(51, 51, 51));\n forma.setSelectionColor(new java.awt.Color(255, 255, 255));\n forma.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n formaCaretUpdate(evt);\n }\n });\n\n b.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-25.png\"))); // NOI18N\n b.setContentAreaFilled(false);\n b.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n b.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelFormaPagoLayout = new javax.swing.GroupLayout(panelFormaPago);\n panelFormaPago.setLayout(panelFormaPagoLayout);\n panelFormaPagoLayout.setHorizontalGroup(\n panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPagoLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(forma, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(b, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n panelFormaPagoLayout.setVerticalGroup(\n panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPagoLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(forma, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)\n .addComponent(b, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n panelFormaPago1.setBackground(new java.awt.Color(255, 255, 255));\n panelFormaPago1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n\n Nomen.setEditable(false);\n Nomen.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n Nomen.setForeground(new java.awt.Color(51, 51, 51));\n Nomen.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n Nomen.setBorder(null);\n Nomen.setSelectedTextColor(new java.awt.Color(51, 51, 51));\n Nomen.setSelectionColor(new java.awt.Color(255, 255, 255));\n Nomen.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n NomenCaretUpdate(evt);\n }\n });\n\n b1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-25.png\"))); // NOI18N\n b1.setContentAreaFilled(false);\n b1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n b1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n b1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelFormaPago1Layout = new javax.swing.GroupLayout(panelFormaPago1);\n panelFormaPago1.setLayout(panelFormaPago1Layout);\n panelFormaPago1Layout.setHorizontalGroup(\n panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPago1Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(Nomen)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n panelFormaPago1Layout.setVerticalGroup(\n panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPago1Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Nomen, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel3))\n .addGap(61, 61, 61)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(panelFormaPago, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panelFormaPago1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(fp)\n .addGap(5, 5, 5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(txtPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(338, 338, 338)\n .addComponent(nom))\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(121, 121, 121))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(fp)\n .addComponent(nom)))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(panelFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(txtPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(panelFormaPago1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jScrollPane3.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo1.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n tb_Grupo1.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n tb_Grupo1.setForeground(new java.awt.Color(51, 51, 51));\n tb_Grupo1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo1.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo1.setRowHeight(25);\n tb_Grupo1.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo1.getTableHeader().setReorderingAllowed(false);\n tb_Grupo1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_Grupo1MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n tb_Grupo1MousePressed(evt);\n }\n });\n tb_Grupo1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_Grupo1KeyPressed(evt);\n }\n });\n jScrollPane3.setViewportView(tb_Grupo1);\n\n jPanel5.setBackground(new java.awt.Color(43, 43, 43));\n jPanel5.setPreferredSize(new java.awt.Dimension(929, 115));\n\n jLabel33.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 24)); // NOI18N\n jLabel33.setForeground(new java.awt.Color(255, 255, 255));\n jLabel33.setText(\"Edición\");\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 335, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(67, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cargareliminar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1223, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(cargareliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public viewEmpleado1(java.awt.Frame parent, boolean modal, ArrayList<Venta> refere, String clien1, String tipo1) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n emple = new Dao_Empleados();\n llenarTabla();\n albolbusquedad = new ArbolBBEmpleado();\n combo = new ArrayList();\n refere1 = refere;\n clien = clien1;\n tipo = tipo1;\n }", "public PanelCrearJugador( DialogoCrearJugador d )\n {\n dialogo = d;\n\n setLayout( new GridBagLayout( ) );\n\n etiquetaNombre = new JLabel( \"Nombre: \" );\n GridBagConstraints gbc = new GridBagConstraints( );\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.insets = new Insets( 3, 3, 3, 3 );\n add( etiquetaNombre, 0 );\n\n txtNombre = new JTextField( );\n txtNombre.setPreferredSize( new Dimension( 80, 25 ) );\n gbc.gridx = 1;\n add( txtNombre, gbc );\n\n etiquetaEdad = new JLabel( \"Edad:\" );\n gbc.gridx = 0;\n gbc.gridy = 1;\n add( etiquetaEdad, gbc );\n\n txtEdad = new JTextField( );\n txtEdad.setPreferredSize( new Dimension( 80, 25 ) );\n gbc.gridx = 1;\n add( txtEdad, gbc );\n\n etiquetaPosicion = new JLabel( \"Posición:\" );\n gbc.gridx = 0;\n gbc.gridy = 2;\n add( etiquetaPosicion, gbc );\n\n txtPosicion = new JTextField( );\n txtPosicion.setPreferredSize( new Dimension( 80, 25 ) );\n gbc.gridx = 1;\n add( txtPosicion, gbc );\n\n etiquetaAltura = new JLabel( \"Altura:\" );\n gbc.gridx = 0;\n gbc.gridy = 3;\n add( etiquetaAltura, gbc );\n\n txtAltura = new JTextField( );\n txtAltura.setPreferredSize( new Dimension( 80, 25 ) );\n gbc.gridx = 1;\n add( txtAltura, gbc );\n\n etiquetaPeso = new JLabel( \"Peso:\" );\n gbc.gridx = 0;\n gbc.gridy = 4;\n add( etiquetaPeso, gbc );\n\n txtPeso = new JTextField( );\n txtPeso.setPreferredSize( new Dimension( 80, 25 ) );\n gbc.gridx = 1;\n add( txtPeso, gbc );\n\n etiquetaSalario = new JLabel( \"Salario:\" );\n gbc.gridx = 0;\n gbc.gridy = 5;\n add( etiquetaSalario, gbc );\n\n txtSalario = new JTextField( );\n txtSalario.setPreferredSize( new Dimension( 80, 25 ) );\n gbc.gridx = 1;\n add( txtSalario, gbc );\n\n etiquetaImagen = new JLabel( \"Imagen:\" );\n gbc.gridx = 0;\n gbc.gridy = 6;\n add( etiquetaImagen, gbc );\n\n JPanel panelImagen = new JPanel( );\n panelImagen.setLayout( new GridLayout( 1, 2, 3, 3 ) );\n txtImagen = new JTextField( );\n panelImagen.add( txtImagen );\n\n botonExplorar = new JButton( \"Explorar\" );\n botonExplorar.setActionCommand( EXPLORAR );\n botonExplorar.addActionListener( this );\n panelImagen.add( botonExplorar );\n\n gbc.gridx = 1;\n add( panelImagen, gbc );\n\n JPanel panelBotones = new JPanel( );\n panelBotones.setLayout( new GridBagLayout( ) );\n\n botonAgregarJugador = new JButton( \"Crear\" );\n botonAgregarJugador.setActionCommand( CREAR_JUGADOR );\n botonAgregarJugador.addActionListener( this );\n gbc.gridx = 0;\n gbc.gridy = 0;\n panelBotones.add( botonAgregarJugador, gbc );\n\n botonCancelar = new JButton( \"Cancelar\" );\n botonCancelar.setActionCommand( CANCELAR );\n botonCancelar.addActionListener( this );\n gbc.gridx = 1;\n panelBotones.add( botonCancelar, gbc );\n\n gbc.gridx = 0;\n gbc.gridy = 7;\n gbc.gridwidth = 2;\n add( panelBotones, gbc );\n\n setBorder( new EmptyBorder( 5, 5, 5, 5 ) );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n nome = new javax.swing.JTextField();\n cep = new javax.swing.JTextField();\n cidade = new javax.swing.JTextField();\n endereco = new javax.swing.JTextField();\n codigo = new javax.swing.JTextField();\n dependencia = new javax.swing.JComboBox<>();\n bairro = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n salvar = new javax.swing.JButton();\n deletar = new javax.swing.JButton();\n atualizar = new javax.swing.JButton();\n pesquisar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Cadastro Escola\");\n setResizable(false);\n setSize(new java.awt.Dimension(0, 0));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n nome.setBorder(null);\n getContentPane().add(nome, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 200, 390, 30));\n\n cep.setBorder(null);\n cep.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cepActionPerformed(evt);\n }\n });\n getContentPane().add(cep, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 420, 390, 30));\n\n cidade.setBorder(null);\n getContentPane().add(cidade, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 350, 390, 30));\n\n endereco.setBorder(null);\n getContentPane().add(endereco, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 490, 380, 30));\n\n codigo.setBorder(null);\n getContentPane().add(codigo, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 560, 140, 30));\n\n dependencia.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Estadual\", \"Municipal\", \"Particular\" }));\n getContentPane().add(dependencia, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 560, 130, 30));\n\n bairro.setBorder(null);\n getContentPane().add(bairro, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 272, 390, 30));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imgs/tela.png\"))); // NOI18N\n jLabel2.setText(\"jLabel2\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 660, -1));\n\n salvar.setText(\"Salvar\");\n salvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salvarActionPerformed(evt);\n }\n });\n getContentPane().add(salvar, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 640, 150, 50));\n\n deletar.setText(\"Excluir\");\n deletar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deletarActionPerformed(evt);\n }\n });\n getContentPane().add(deletar, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 640, 150, 50));\n\n atualizar.setText(\"Alterar\");\n atualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n atualizarActionPerformed(evt);\n }\n });\n getContentPane().add(atualizar, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 640, 140, 50));\n\n pesquisar.setText(\"Pesquisar\");\n pesquisar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pesquisarActionPerformed(evt);\n }\n });\n getContentPane().add(pesquisar, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 640, 150, 50));\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n TextNome = new javax.swing.JTextField();\n TextCod = new javax.swing.JTextField();\n ButtonSair = new javax.swing.JButton();\n ButtonSalvarAlterar = new javax.swing.JButton();\n ButtonNovo = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n ButtonSalvar1 = new javax.swing.JButton();\n ButtonLimpar = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n JTabCadastro = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n TextCodigo = new javax.swing.JTextField();\n ButtonPesqCod = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n TextNomeCons = new javax.swing.JTextField();\n ButtonPesqNome = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n\n jButton2.setText(\"jButton2\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Cadastro de Categoria\");\n setUndecorated(true);\n\n jPanel2.setBackground(new java.awt.Color(232, 222, 200));\n jPanel2.setLayout(null);\n\n jPanel4.setBackground(new java.awt.Color(230, 214, 165));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Dados de Cadastro\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 14))); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel1.setText(\"Código\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel2.setText(\"Nome\");\n\n TextNome.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n TextCod.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCod, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(TextNome, javax.swing.GroupLayout.PREFERRED_SIZE, 437, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextCod, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addContainerGap(30, Short.MAX_VALUE))\n );\n\n jPanel2.add(jPanel4);\n jPanel4.setBounds(20, 80, 680, 100);\n\n ButtonSair.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n ButtonSair.setText(\"Sair\");\n ButtonSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSairActionPerformed(evt);\n }\n });\n jPanel2.add(ButtonSair);\n ButtonSair.setBounds(610, 510, 90, 30);\n\n ButtonSalvarAlterar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n ButtonSalvarAlterar.setText(\"Alterar\");\n ButtonSalvarAlterar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSalvarAlterarActionPerformed(evt);\n }\n });\n jPanel2.add(ButtonSalvarAlterar);\n ButtonSalvarAlterar.setBounds(520, 200, 90, 30);\n\n ButtonNovo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n ButtonNovo.setText(\"Novo\");\n ButtonNovo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNovoActionPerformed(evt);\n }\n });\n jPanel2.add(ButtonNovo);\n ButtonNovo.setBounds(30, 190, 90, 30);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel3.setText(\"Cadastro de Categoria\");\n jPanel2.add(jLabel3);\n jLabel3.setBounds(20, 30, 210, 22);\n\n ButtonSalvar1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n ButtonSalvar1.setText(\"Salvar\");\n ButtonSalvar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSalvar1ActionPerformed(evt);\n }\n });\n jPanel2.add(ButtonSalvar1);\n ButtonSalvar1.setBounds(320, 200, 75, 30);\n\n ButtonLimpar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n ButtonLimpar.setText(\"Limpar\");\n ButtonLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonLimparActionPerformed(evt);\n }\n });\n jPanel2.add(ButtonLimpar);\n ButtonLimpar.setBounds(620, 200, 80, 30);\n\n JTabCadastro.setBackground(new java.awt.Color(230, 214, 165));\n JTabCadastro.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null}\n },\n new String [] {\n \"Código\", \"Nome\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n JTabCadastro.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n JTabCadastroMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(JTabCadastro);\n if (JTabCadastro.getColumnModel().getColumnCount() > 0) {\n JTabCadastro.getColumnModel().getColumn(0).setMinWidth(50);\n JTabCadastro.getColumnModel().getColumn(0).setPreferredWidth(100);\n JTabCadastro.getColumnModel().getColumn(0).setMaxWidth(150);\n JTabCadastro.getColumnModel().getColumn(1).setMinWidth(300);\n JTabCadastro.getColumnModel().getColumn(1).setMaxWidth(700);\n }\n\n jPanel2.add(jScrollPane1);\n jScrollPane1.setBounds(20, 240, 680, 107);\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton1.setText(\"Todos\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton1);\n jButton1.setBounds(617, 360, 80, 25);\n\n jPanel1.setBackground(new java.awt.Color(230, 214, 165));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Consulta de Categoria\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 14))); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel4.setText(\"Código\");\n\n TextCodigo.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n ButtonPesqCod.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n ButtonPesqCod.setText(\"Buscar\");\n ButtonPesqCod.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonPesqCodActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel5.setText(\"Nome\");\n\n TextNomeCons.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n ButtonPesqNome.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n ButtonPesqNome.setText(\"Buscar\");\n ButtonPesqNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonPesqNomeActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ButtonPesqCod, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(360, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(TextNomeCons)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ButtonPesqNome, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(58, 58, 58))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(TextCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonPesqCod))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(TextNomeCons, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonPesqNome))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel2.add(jPanel1);\n jPanel1.setBounds(20, 390, 680, 110);\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton3.setText(\"Editar\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton3);\n jButton3.setBounds(430, 200, 73, 30);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 719, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)\n );\n\n setSize(new java.awt.Dimension(719, 551));\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jComboBox2 = new javax.swing.JComboBox<>();\r\n jComboBox1 = new javax.swing.JComboBox<>();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n txtBuscar = new javax.swing.JTextField();\r\n field3 = new javax.swing.JTextField();\r\n field1 = new javax.swing.JTextField();\r\n field2 = new javax.swing.JTextField();\r\n jPanel1 = new javax.swing.JPanel();\r\n jButton1 = new javax.swing.JButton();\r\n Cedula = new javax.swing.JLabel();\r\n jButton2 = new javax.swing.JButton();\r\n jLabel4 = new javax.swing.JLabel();\r\n jTextField1 = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jDateChooser1 = new com.toedter.calendar.JDateChooser();\r\n jLabel5 = new javax.swing.JLabel();\r\n comboFecha = new javax.swing.JComboBox<>();\r\n\r\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \":00\", \":15\", \":30\", \":45\" }));\r\n\r\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\" }));\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jLabel1.setText(\"Telefono:\");\r\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 80, -1, -1));\r\n\r\n jLabel2.setText(\"Correo Electronico:\");\r\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, -1, -1));\r\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 50, 50));\r\n getContentPane().add(txtBuscar, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 50, 120, -1));\r\n\r\n field3.setEditable(false);\r\n getContentPane().add(field3, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 110, 180, -1));\r\n\r\n field1.setEditable(false);\r\n getContentPane().add(field1, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 50, 230, -1));\r\n\r\n field2.setEditable(false);\r\n getContentPane().add(field2, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 80, 230, -1));\r\n\r\n jPanel1.setBackground(new java.awt.Color(246, 245, 244));\r\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jButton1.setText(\"Guardar\");\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 190, 100, -1));\r\n\r\n Cedula.setText(\"Cedula:\");\r\n jPanel1.add(Cedula, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 50, -1, -1));\r\n\r\n jButton2.setText(\"Buscar\");\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 80, 80, -1));\r\n\r\n jLabel4.setText(\"Codigo Cita:\");\r\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, -1, -1));\r\n\r\n jTextField1.setEditable(false);\r\n jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 150, 180, -1));\r\n\r\n jLabel7.setText(\"Nombre: \");\r\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 50, -1, -1));\r\n\r\n jLabel6.setText(\"Registrar Cita\");\r\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 0, 240, 50));\r\n\r\n jDateChooser1.setDateFormatString(\"yyyy/MM/dd \");\r\n jPanel1.add(jDateChooser1, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 190, 180, -1));\r\n\r\n jLabel5.setText(\"Fecha y hora:\");\r\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 190, -1, -1));\r\n\r\n comboFecha.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"09:00\", \"09:30\", \"10:00\", \"10:30\", \"11:00\", \"11:30\", \"12:00\", \"12:30\", \"13:00\", \"13:30\", \"14:00\" }));\r\n comboFecha.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n comboFechaActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(comboFecha, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 190, -1, -1));\r\n\r\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 670, 250));\r\n\r\n pack();\r\n }", "public VendaView(int idVenda) throws SQLException {\n initComponents();\n\n jTextFieldIDFuncionario.setEnabled(false);\n jTextFieldNomeCliente.setEnabled(false);\n jTextFieldNomeFuncionario.setEnabled(false);\n// jTextFieldNotaFiscal.setEnabled(false);\n jTextFieldNumeroParcelas.setEnabled(false);\n jTextFieldValorVenda.setEnabled(false);\n jFormattedTextDataVenda.setEnabled(false);\n jTextFieldIDCliente.setEnabled(false);\n int idVenda1 = idVenda;\n buscarPressedEnter();\n\n if (idVenda != -1) {\n textFieldIDVenda.setText(\"\" + idVenda1);\n\n Connection connection;\n try {\n connection = new ConnectionFactory().getConnection();\n\n VendaDAO vendaDAO = new VendaDAO(connection);\n modeloVenda1 = vendaDAO.buscaPorId(Long.parseLong(String.valueOf(idVenda1)));\n\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ClienteDAO clienteDAO = new ClienteDAO(connection);\n ParcelaDAO parcelasDao = new ParcelaDAO(connection);\n List<ModeloParcela> modeloParcelas = new ArrayList<ModeloParcela>();\n\n if (null == pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())))) {\n\n } else {\n modeloPedido1 = pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())));\n\n idPedidoClasse = modeloPedido1.getId();\n viewProdutoPedidos = pedidoDAO.buscarPedidoproduto(Integer.parseInt(String.valueOf(idPedidoClasse)));\n modeloParcelas = parcelasDao.listaPorIdVenda(modeloVenda1.getId());\n listarParcelas(modeloParcelas);\n PreencherTabela();\n PreencherTabela2();\n }\n\n FuncionarioDAO funcionarioDAO = new FuncionarioDAO(connection);\n ModeloFuncionario modeloFuncionario = new ModeloFuncionario();\n\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n ModeloCliente modeloCliente = new ModeloCliente();\n modeloFuncionario = funcionarioDAO.buscaPorId(modeloVenda1.getIdfuncionario());\n modeloCliente = clienteDAO.buscaPorId(modeloVenda1.getIdcliente());\n System.out.println(modeloVenda1.getIdcliente());\n jTextFieldIDFuncionario.setText(\"\" + modeloFuncionario.getId());\n jTextFieldNomeFuncionario.setText(modeloFuncionario.getNome());\n jFormattedTextDataVenda.setText(format.format(modeloVenda1.getDataVenda()));\n\n jTextFieldIDCliente.setText(\"\" + modeloCliente.getId());\n jTextFieldNomeCliente.setText(\"\" + modeloCliente.getNome());\n jTextFieldNotaFiscal.setText(modeloVenda1.getNotaFiscal());\n\n jTextFieldValorVenda.setText(\"\" + modeloVenda1.getValorVenda());\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(rootPane, ex);\n Logger.getLogger(VendaView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n BotonCancelar = new javax.swing.JButton();\n BotonAceptar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n CampoNombre = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear Tema\");\n setIconImage(null);\n setModal(true);\n setResizable(false);\n\n BotonCancelar.setText(\"Cancelar\");\n BotonCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotonCancelarActionPerformed(evt);\n }\n });\n\n BotonAceptar.setText(\"Aceptar\");\n BotonAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotonAceptarActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Introduce el nombre del tema:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(BotonCancelar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addComponent(BotonAceptar))\n .addComponent(CampoNombre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE))\n .addGap(32, 32, 32))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(CampoNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 53, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BotonAceptar)\n .addComponent(BotonCancelar))\n .addGap(24, 24, 24))\n );\n\n pack();\n }", "public AddFeriado(java.awt.Frame parent, boolean modal,String modo,String fecha,String usu) {\r\n initComponents();\r\n setLocationRelativeTo(null);\r\n mode = modo;\r\n usuario = usu; \r\n fec = fecha;\r\n \r\n if(\"INS\".equals(modo)){\r\n titulo.setText(\"Ingresar Feriado\"); \r\n txtFecha.setText(Formato.FechaHoy3()); \r\n }else{\r\n titulo.setText(\"Modificar Feriado\"); \r\n Feriados fer = FeriadosControlador.recFer(fec);\r\n txtFecha.setText(fer.getTf_fec_nh());\r\n txtFecha.setEnabled(false);\r\n txtDes.setText(fer.getTf_descrip());\r\n } \r\n }", "public Dialog_create_new_group(java.awt.Frame parent, boolean modal, String mode, String path) {\n\n super(parent, modal);\n\n this.mode = mode;\n\n this.path = path;\n\n this.mode = mode;\n setLookAndFeel();\n\n initComponents();\n\n jButton4.setVisible(false);\n jTextField1.setText(\"\");\n\n if (mode.equalsIgnoreCase(\"edit\")) {\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"create_new_group/Dialog_create_new_group\"); // NOI18N \n jButton1.setText(bundle.getString(\"SPEICHERN\"));\n\n setTitle(bundle.getString(\"TITLE\"));\n }\n\n String type = getElementType();\n jLabel15.setText(type);\n\n image32 = new ImageComponent();\n\n //URL url = this.getClass().getClassLoader().getResource(\"create_new_group/std_lib_icon_32.png\");\n String icon32=new File(FrameMain.elementPath + \"/std_lib_icon_32.png\").getAbsolutePath();\n\n image32.setFilename(icon32);\n image32.setLocation(0, 0);\n image32.setPreferredSize(new Dimension(40, 40));\n\n jPanel1.add(image32, BorderLayout.CENTER);\n\n // Fenster mittig anzeigen!\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n Date date = new Date();\n txtDate.setText(dateFormat.format(date));\n\n \n load(path);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialogFinal = new javax.swing.JDialog();\n jLabelCajero3 = new javax.swing.JLabel();\n jLabelCajero1 = new javax.swing.JLabel();\n jLabelCajero4 = new javax.swing.JLabel();\n jLabelCajero5 = new javax.swing.JLabel();\n jLabelCajero2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextArea3 = new javax.swing.JTextArea();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextArea4 = new javax.swing.JTextArea();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextArea5 = new javax.swing.JTextArea();\n jLabel1Fondo3 = new javax.swing.JLabel();\n jLabelLogo = new javax.swing.JLabel();\n jButtonOpcion1 = new javax.swing.JButton();\n jButtonOpcion2 = new javax.swing.JButton();\n jSpinner1 = new javax.swing.JSpinner();\n jLabelCajeros = new javax.swing.JLabel();\n jButton1Start = new javax.swing.JButton();\n jLabel1Fondo = new javax.swing.JLabel();\n\n jDialogFinal.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabelCajero3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero3.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero3, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 60, -1, -1));\n\n jLabelCajero1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero1.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 60, -1, -1));\n\n jLabelCajero4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero4.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero4, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 60, -1, -1));\n\n jLabelCajero5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero5.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero5, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 60, -1, -1));\n\n jLabelCajero2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero2.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero2, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 60, -1, -1));\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n jDialogFinal.getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 210, 150, 270));\n\n jTextArea2.setColumns(20);\n jTextArea2.setRows(5);\n jScrollPane2.setViewportView(jTextArea2);\n\n jDialogFinal.getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 210, 150, 270));\n\n jTextArea3.setColumns(20);\n jTextArea3.setRows(5);\n jScrollPane3.setViewportView(jTextArea3);\n\n jDialogFinal.getContentPane().add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 210, 150, 270));\n\n jTextArea4.setColumns(20);\n jTextArea4.setRows(5);\n jScrollPane4.setViewportView(jTextArea4);\n\n jDialogFinal.getContentPane().add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 210, 150, 270));\n\n jTextArea5.setColumns(20);\n jTextArea5.setRows(5);\n jScrollPane5.setViewportView(jTextArea5);\n\n jDialogFinal.getContentPane().add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 210, 150, 270));\n\n jLabel1Fondo3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/background1.jpg\"))); // NOI18N\n jDialogFinal.getContentPane().add(jLabel1Fondo3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 990, 560));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabelLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/logo transparente.png\"))); // NOI18N\n getContentPane().add(jLabelLogo, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 30, -1, -1));\n\n jButtonOpcion1.setBackground(new java.awt.Color(255, 204, 153));\n jButtonOpcion1.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n jButtonOpcion1.setForeground(new java.awt.Color(153, 0, 0));\n jButtonOpcion1.setText(\"Opción 1\");\n jButtonOpcion1.setActionCommand(\"Opción 1\");\n jButtonOpcion1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpcion1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButtonOpcion1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 310, 240, 80));\n\n jButtonOpcion2.setBackground(new java.awt.Color(255, 204, 153));\n jButtonOpcion2.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n jButtonOpcion2.setForeground(new java.awt.Color(153, 0, 0));\n jButtonOpcion2.setText(\"Opción 2\");\n jButtonOpcion2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpcion2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButtonOpcion2, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 310, 240, 80));\n\n jSpinner1.setModel(new javax.swing.SpinnerNumberModel(1, 1, 5, 1));\n getContentPane().add(jSpinner1, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 430, 70, 30));\n\n jLabelCajeros.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabelCajeros.setForeground(new java.awt.Color(153, 0, 0));\n jLabelCajeros.setText(\"Número de Cajeros:\");\n getContentPane().add(jLabelCajeros, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 410, -1, -1));\n\n jButton1Start.setText(\"Start\");\n jButton1Start.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1StartActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1Start, new org.netbeans.lib.awtextra.AbsoluteConstraints(640, 440, -1, -1));\n\n jLabel1Fondo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/background1.jpg\"))); // NOI18N\n getContentPane().add(jLabel1Fondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 804, 488));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n jDialog2 = new javax.swing.JDialog();\n btnCarregarArquivo = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtCodigo = new javax.swing.JTextArea();\n txtLocalArquivo = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n txtRetorno = new javax.swing.JTextArea();\n btnAnalisarLexico = new javax.swing.JButton();\n btnAnaliseAST = new javax.swing.JButton();\n btnAnaliseCST = new javax.swing.JButton();\n lblLocalizacao = new javax.swing.JLabel();\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jDialog2Layout = new javax.swing.GroupLayout(jDialog2.getContentPane());\n jDialog2.getContentPane().setLayout(jDialog2Layout);\n jDialog2Layout.setHorizontalGroup(\n jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n jDialog2Layout.setVerticalGroup(\n jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n btnCarregarArquivo.setText(\"Abrir Arquivo\");\n btnCarregarArquivo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCarregarArquivoActionPerformed(evt);\n }\n });\n\n txtCodigo.setColumns(20);\n txtCodigo.setRows(5);\n txtCodigo.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtCodigoCaretUpdate(evt);\n }\n });\n jScrollPane1.setViewportView(txtCodigo);\n\n txtLocalArquivo.setEditable(false);\n txtLocalArquivo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n txtLocalArquivoMouseClicked(evt);\n }\n });\n\n txtRetorno.setEditable(false);\n txtRetorno.setColumns(20);\n txtRetorno.setLineWrap(true);\n txtRetorno.setRows(5);\n txtRetorno.setWrapStyleWord(true);\n jScrollPane2.setViewportView(txtRetorno);\n\n btnAnalisarLexico.setText(\"Analisar Léxico\");\n btnAnalisarLexico.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAnalisarLexicoActionPerformed(evt);\n }\n });\n\n btnAnaliseAST.setText(\"Analisar AST\");\n btnAnaliseAST.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAnaliseASTActionPerformed(evt);\n }\n });\n\n btnAnaliseCST.setText(\"Analisar CST\");\n btnAnaliseCST.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAnaliseCSTActionPerformed(evt);\n }\n });\n\n lblLocalizacao.setText(\"1,1\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(158, 158, 158)\n .addComponent(btnAnalisarLexico)\n .addGap(48, 48, 48)\n .addComponent(btnAnaliseCST)\n .addGap(42, 42, 42)\n .addComponent(btnAnaliseAST))\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblLocalizacao)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 746, Short.MAX_VALUE)\n .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(txtLocalArquivo)\n .addGap(18, 18, 18)\n .addComponent(btnCarregarArquivo))))))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnCarregarArquivo)\n .addComponent(txtLocalArquivo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblLocalizacao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAnalisarLexico)\n .addComponent(btnAnaliseAST)\n .addComponent(btnAnaliseCST))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n pack();\n }", "public IfrViagem() {\n initComponents();\n v = new Viagem();\n criarViagem();\n\n Formatacao.formatarData(ftfDataSaida);\n Formatacao.formatarHora(ftfHoraSaida);\n Formatacao.formatarData(ftfDataRetorno);\n Formatacao.formatarHora(ftfHoraRetorno);\n Formatacao.formatarReal(ftfValorViagem);\n\n }", "private void createForumDialog() {\n AlertDialog.Builder dialog = new AlertDialog.Builder(Objects.requireNonNull(this),\n R.style.AlertDialogTheme);\n dialog.setTitle(R.string.add_new_forum_title);\n dialog.setMessage(R.string.add_new_forum_description);\n\n View newForumDialog = getLayoutInflater().inflate(R.layout.new_forum_dialog, null);\n dialog.setView(newForumDialog);\n\n AlertDialog alertDialog = dialog.create();\n setAddForumButtonListener(alertDialog, newForumDialog);\n\n alertDialog.show();\n }", "public FichaDeContactoJFrame() {\n initComponents();\n }", "private void btnEntrarActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n Alumno.Aula = jcbAula.getSelectedItem().toString();\n Alumno.Materia = \"\";\n Info_Computo a1 = new Info_Computo();\n a1.setVisible(true);\n }", "public FrmLeerCodigoBarras(java.awt.Frame parent, boolean modal,String accion) {\n super(parent,\"Codigo de barras\", modal);\n this.parent = parent;\n initComponents();\n this.turno = Main.getInstance().getTurnoActual();\n this.accion = accion;\n this.estacionamiento = Main.getInstance().getEstacionamiento();\n this.getContentPane().setBackground(Color.white);\n pack();\n id =\"\";\n if(accion.equals(\"COBRO\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"CANCELAR\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"RECIBO\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"PERDIDO\")){\n lblMensaje.setText(\"Coloca la contra en el sensor\");\n }else if(accion.equals(\"CONTRA\")){\n lblMensaje.setText(\"Coloca la contra en el sensor\");\n }else if(accion.equals(\"ENTRADA\")){\n lblMensaje.setText(\"Coloca tu gafet contra en el sensor\");\n }else{\n lblMensaje.setText(\"Coloca el codigo\");\n }\n \n\n if(!Configuracion.getInstancia().getTerminal().equals(Configuracion.CLIENTE)){\n this.lblBienvenido.setVisible(false);\n }\n setLocationRelativeTo(parent);\n setVisible(true);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n TXTSerialEquipo = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n TXTIdUsuario = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n TXTFechaDeEntrega = new com.toedter.calendar.JDateChooser();\n TXTFechaDePrestamo = new javax.swing.JLabel();\n TXTIdBibliotecario = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n\n setClosable(true);\n setTitle(\"Prestar Equipo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 153, 0));\n jLabel2.setText(\"Serial Equipo\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 160, 100, -1));\n\n TXTSerialEquipo.setBackground(new java.awt.Color(255, 255, 255));\n TXTSerialEquipo.setForeground(new java.awt.Color(255, 153, 0));\n TXTSerialEquipo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 0)));\n getContentPane().add(TXTSerialEquipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 150, 150, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 153, 0));\n jLabel7.setText(\"ID Usuario \");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 240, 100, -1));\n\n TXTIdUsuario.setBackground(new java.awt.Color(255, 255, 255));\n TXTIdUsuario.setForeground(new java.awt.Color(255, 153, 0));\n TXTIdUsuario.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 0)));\n getContentPane().add(TXTIdUsuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 230, 150, 30));\n\n jButton2.setBackground(new java.awt.Color(255, 153, 0));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 16)); // NOI18N\n jButton2.setForeground(new java.awt.Color(240, 240, 240));\n jButton2.setText(\"Prestar \");\n jButton2.setBorder(null);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 370, 130, 40));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 153, 0));\n jLabel3.setText(\"Fecha De Prestamo\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 280, 130, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 153, 0));\n jLabel8.setText(\"Fecha De Entrega\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 320, 120, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 153, 0));\n jLabel5.setText(\"ID Bibliotecario\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 200, 100, -1));\n\n TXTFechaDeEntrega.setBackground(new java.awt.Color(255, 153, 0));\n TXTFechaDeEntrega.setForeground(new java.awt.Color(255, 153, 0));\n getContentPane().add(TXTFechaDeEntrega, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 310, 150, 30));\n\n TXTFechaDePrestamo.setFont(new java.awt.Font(\"Dialog\", 2, 14)); // NOI18N\n TXTFechaDePrestamo.setForeground(new java.awt.Color(255, 153, 0));\n TXTFechaDePrestamo.setText(\"fecha de prestamo\");\n getContentPane().add(TXTFechaDePrestamo, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 270, 150, 30));\n\n TXTIdBibliotecario.setFont(new java.awt.Font(\"Dialog\", 2, 14)); // NOI18N\n TXTIdBibliotecario.setForeground(new java.awt.Color(255, 153, 0));\n TXTIdBibliotecario.setText(\"idBibliotecario\");\n getContentPane().add(TXTIdBibliotecario, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 186, 150, 30));\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setOpaque(true);\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 90, 410, 350));\n\n jLabel6.setFont(new java.awt.Font(\"Dialog\", 2, 36)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Prestar Un Equipo\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 340, 60));\n\n jLabel4.setBackground(new java.awt.Color(255, 153, 0));\n jLabel4.setOpaque(true);\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -4, 410, 100));\n\n pack();\n }", "public JanelaGraficosDialogo(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n super.setTitle(\"Gráficos\");\n super.setResizable(true);\n super.setLocationRelativeTo(null);\n \n //Muda icone da Janela\n URL url = this.getClass().getResource(\"/Imagens/ICONE_DR_3.png\"); \n Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url); \n this.setIconImage(imagemTitulo); \n \n String AAAA = dataAtual.RetornaAnoAtualYYYY();\n campoAno.setSelectedItem(AAAA);\n String AnoAAAA = (String) campoAno.getSelectedItem();\n //geraGrafico.geraGraficoDeVendasMensal(painelGrafico1,AnoAAAA);\n \n //geraGrafico.geraGraficoDeOSMensal(painelGrafico3);\n \n //Desabilita guias de acordo com perfil\n //if (em.getPerfil().equals(\"TICIANO\") || em.getPerfil().equals(\"consultorio\")){\n jTabbedPane1.setEnabledAt(0, true);\n jTabbedPane1.setEnabledAt(1, false);\n jTabbedPane1.setEnabledAt(2, true);\n\n //}\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n titleLabel = new javax.swing.JLabel();\n panAjoutBas = new javax.swing.JPanel();\n nomLabel = new javax.swing.JLabel();\n identifiantLabel = new javax.swing.JLabel();\n identifiantUsagerCombo = new javax.swing.JComboBox();\n validerBouton = new javax.swing.JButton();\n annulerBouton = new javax.swing.JButton();\n nomUsagerLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Emprunter\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setName(\"Gestion personnel\"); // NOI18N\n jPanel1.setPreferredSize(new java.awt.Dimension(1162, 608));\n jPanel1.setRequestFocusEnabled(false);\n\n titleLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n titleLabel.setForeground(new java.awt.Color(51, 51, 255));\n titleLabel.setText(\"Choisir Usager\");\n\n panAjoutBas.setBackground(new java.awt.Color(255, 255, 255));\n panAjoutBas.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n nomLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n nomLabel.setForeground(new java.awt.Color(0, 0, 255));\n nomLabel.setText(\"Nom usager\");\n\n identifiantLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n identifiantLabel.setForeground(new java.awt.Color(0, 0, 255));\n identifiantLabel.setText(\"Identifiant \");\n\n identifiantUsagerCombo.setFont(new java.awt.Font(\"Times New Roman\", 1, 12)); // NOI18N\n identifiantUsagerCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Choisir identifiant\" }));\n identifiantUsagerCombo.setPreferredSize(new java.awt.Dimension(123, 26));\n identifiantUsagerCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n identifiantUsagerComboActionPerformed(evt);\n }\n });\n\n validerBouton.setFont(new java.awt.Font(\"Times New Roman\", 1, 16)); // NOI18N\n validerBouton.setText(\"Valider\");\n validerBouton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emprunter(evt);\n }\n });\n\n annulerBouton.setFont(new java.awt.Font(\"Times New Roman\", 1, 16)); // NOI18N\n annulerBouton.setText(\"Annuler\");\n annulerBouton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n annulerBoutonActionPerformed(evt);\n }\n });\n\n nomUsagerLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n nomUsagerLabel.setText(\" \");\n\n javax.swing.GroupLayout panAjoutBasLayout = new javax.swing.GroupLayout(panAjoutBas);\n panAjoutBas.setLayout(panAjoutBasLayout);\n panAjoutBasLayout.setHorizontalGroup(\n panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panAjoutBasLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panAjoutBasLayout.createSequentialGroup()\n .addGap(0, 169, Short.MAX_VALUE)\n .addComponent(annulerBouton)\n .addGap(30, 30, 30)\n .addComponent(validerBouton))\n .addGroup(panAjoutBasLayout.createSequentialGroup()\n .addGroup(panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(nomLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(identifiantLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(62, 62, 62)\n .addGroup(panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(identifiantUsagerCombo, 0, 230, Short.MAX_VALUE)\n .addComponent(nomUsagerLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap())\n );\n panAjoutBasLayout.setVerticalGroup(\n panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panAjoutBasLayout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(identifiantLabel)\n .addComponent(identifiantUsagerCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addGroup(panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nomLabel)\n .addComponent(nomUsagerLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addGroup(panAjoutBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(annulerBouton)\n .addComponent(validerBouton))\n .addGap(5, 5, 5))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panAjoutBas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(77, 77, 77))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(titleLabel)\n .addGap(18, 18, 18)\n .addComponent(panAjoutBas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 409, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n lbValor = new javax.swing.JLabel();\n lbValorTotal = new javax.swing.JLabel();\n TpDados = new javax.swing.JTabbedPane();\n PanelDadosGerais = new javax.swing.JPanel();\n lbUsuario = new javax.swing.JLabel();\n lbCliente = new javax.swing.JLabel();\n cbCliente = new javax.swing.JComboBox();\n Cbusuario = new javax.swing.JComboBox();\n lbData = new javax.swing.JLabel();\n PanelItensVenda = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblProduto = new javax.swing.JTable();\n btnAdiciona = new javax.swing.JButton();\n btnRemove = new javax.swing.JButton();\n btnFecharVenda = new javax.swing.JButton();\n\n jTextField1.setText(\"jTextField1\");\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setTitle(\"Vendas\");\n\n lbValor.setText(\"Valor Total:\");\n\n lbUsuario.setText(\"Usuario: \");\n\n lbCliente.setText(\"Cliente:\");\n\n cbCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecione o Cliente\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cbCliente.setToolTipText(\"Selecione o Cliente\");\n\n Cbusuario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecione o Usuário\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n lbData.setText(\"jLabel2\");\n\n javax.swing.GroupLayout PanelDadosGeraisLayout = new javax.swing.GroupLayout(PanelDadosGerais);\n PanelDadosGerais.setLayout(PanelDadosGeraisLayout);\n PanelDadosGeraisLayout.setHorizontalGroup(\n PanelDadosGeraisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosGeraisLayout.createSequentialGroup()\n .addGroup(PanelDadosGeraisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosGeraisLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(PanelDadosGeraisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lbUsuario)\n .addComponent(lbCliente))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelDadosGeraisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cbCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Cbusuario, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(PanelDadosGeraisLayout.createSequentialGroup()\n .addGap(384, 384, 384)\n .addComponent(lbData)))\n .addContainerGap(397, Short.MAX_VALUE))\n );\n PanelDadosGeraisLayout.setVerticalGroup(\n PanelDadosGeraisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosGeraisLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(lbData)\n .addGap(30, 30, 30)\n .addGroup(PanelDadosGeraisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Cbusuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbUsuario))\n .addGap(28, 28, 28)\n .addGroup(PanelDadosGeraisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbCliente))\n .addContainerGap(101, Short.MAX_VALUE))\n );\n\n TpDados.addTab(\"Dados Gerais\", PanelDadosGerais);\n\n tblProduto.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null},\n {null, null},\n {null, null},\n {null, null}\n },\n new String [] {\n \"Nome Produto\", \"Valor Unitário\"\n }\n ));\n jScrollPane1.setViewportView(tblProduto);\n tblProduto.getColumnModel().getColumn(1).setResizable(false);\n\n btnAdiciona.setText(\"Adicionar Produto\");\n btnAdiciona.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdicionaActionPerformed(evt);\n }\n });\n\n btnRemove.setText(\"Remover Produto\");\n btnRemove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRemoveActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout PanelItensVendaLayout = new javax.swing.GroupLayout(PanelItensVenda);\n PanelItensVenda.setLayout(PanelItensVendaLayout);\n PanelItensVendaLayout.setHorizontalGroup(\n PanelItensVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelItensVendaLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 452, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 126, Short.MAX_VALUE)\n .addGroup(PanelItensVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAdiciona, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(btnRemove, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(110, 110, 110))\n );\n PanelItensVendaLayout.setVerticalGroup(\n PanelItensVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelItensVendaLayout.createSequentialGroup()\n .addContainerGap(15, Short.MAX_VALUE)\n .addGroup(PanelItensVendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelItensVendaLayout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(btnAdiciona)\n .addGap(26, 26, 26)\n .addComponent(btnRemove)))\n .addGap(117, 117, 117))\n );\n\n TpDados.addTab(\"Itens da Venda\", PanelItensVenda);\n\n btnFecharVenda.setText(\"Concluir Venda\");\n btnFecharVenda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnFecharVendaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(TpDados))\n .addGroup(layout.createSequentialGroup()\n .addGap(229, 229, 229)\n .addComponent(btnFecharVenda)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbValor)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lbValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63)))\n .addGap(19, 19, 19))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(TpDados, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lbValor))\n .addComponent(lbValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(67, 67, 67)\n .addComponent(btnFecharVenda)\n .addContainerGap(184, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n codigo = new javax.swing.JTextField();\n edicao = new javax.swing.JTextField();\n Sair = new javax.swing.JButton();\n Apagar = new javax.swing.JButton();\n Gravar = new javax.swing.JButton();\n Novo = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n data = new javax.swing.JFormattedTextField();\n jLabel3 = new javax.swing.JLabel();\n codObra = new javax.swing.JComboBox();\n jLabel4 = new javax.swing.JLabel();\n codEditora = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Cadastro de Livro\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setText(\"Código\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setText(\"Edição\");\n\n codigo.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n codigoFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n codigoFocusLost(evt);\n }\n });\n\n Sair.setText(\"Sair\");\n Sair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SairActionPerformed(evt);\n }\n });\n\n Apagar.setText(\"Apagar\");\n Apagar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ApagarActionPerformed(evt);\n }\n });\n\n Gravar.setText(\"Gravar\");\n Gravar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n GravarActionPerformed(evt);\n }\n });\n\n Novo.setText(\"Novo\");\n Novo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n NovoActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel5.setText(\"Data\");\n\n try {\n data.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel3.setText(\"Obra\");\n\n codObra.setModel(new javax.swing.DefaultComboBoxModel(SelecionarObra()));\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel4.setText(\"Editora\");\n\n codEditora.setModel(new javax.swing.DefaultComboBoxModel(SelecionarEditora()));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(edicao, javax.swing.GroupLayout.PREFERRED_SIZE, 444, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(data, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(26, 26, 26))))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(codObra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(Novo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Gravar)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(codEditora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Apagar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Sair)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(codigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(data, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(edicao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(codObra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(codEditora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Sair)\n .addComponent(Apagar)\n .addComponent(Gravar)\n .addComponent(Novo))\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pnlGeral = new javax.swing.JPanel();\n tabMenuGeral = new javax.swing.JTabbedPane();\n pnlDetalhes = new javax.swing.JPanel();\n lblDescricao = new javax.swing.JLabel();\n txtDescricao = new javax.swing.JTextField();\n lblTitular = new javax.swing.JLabel();\n txtTitular = new javax.swing.JTextField();\n lblBanco = new javax.swing.JLabel();\n txtBanco = new javax.swing.JTextField();\n lblAgencia = new javax.swing.JLabel();\n txtAgencia = new br.com.tamarozzi.util.JNumberFormatFieldUtil(new DecimalFormat(\"#\"), 4);\n txtAgenciaDigito = new br.com.tamarozzi.util.JNumberFormatFieldUtil(new DecimalFormat(\"#\"), 1);\n lblConta = new javax.swing.JLabel();\n txtConta = new br.com.tamarozzi.util.JNumberFormatFieldUtil(new DecimalFormat(\"#\"), 11);\n txtContaDigito = new br.com.tamarozzi.util.JNumberFormatFieldUtil(new DecimalFormat(\"#\"), 1);\n btnTitular = new javax.swing.JButton();\n btnBanco = new javax.swing.JButton();\n chkAtivo = new javax.swing.JCheckBox();\n btnCancelar = new javax.swing.JButton();\n btnCadastrar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Conta Corrente\");\n setResizable(false);\n\n lblDescricao.setText(\"Descrição:\");\n\n lblTitular.setText(\"Titular:\");\n\n txtTitular.setEditable(false);\n\n lblBanco.setText(\"Banco\");\n\n txtBanco.setEditable(false);\n\n lblAgencia.setText(\"Agência:\");\n\n txtAgenciaDigito.setPreferredSize(new java.awt.Dimension(6, 20));\n\n lblConta.setText(\"Conta:\");\n\n btnTitular.setText(\"jButton1\");\n btnTitular.setPreferredSize(new java.awt.Dimension(23, 23));\n btnTitular.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnTitularMouseClicked(evt);\n }\n });\n\n btnBanco.setText(\"jButton1\");\n btnBanco.setPreferredSize(new java.awt.Dimension(23, 23));\n btnBanco.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnBancoMouseClicked(evt);\n }\n });\n\n chkAtivo.setSelected(true);\n chkAtivo.setText(\"Ativa\");\n\n javax.swing.GroupLayout pnlDetalhesLayout = new javax.swing.GroupLayout(pnlDetalhes);\n pnlDetalhes.setLayout(pnlDetalhesLayout);\n pnlDetalhesLayout.setHorizontalGroup(\n pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDetalhesLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDescricao)\n .addComponent(lblTitular)\n .addComponent(lblBanco)\n .addComponent(lblAgencia))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDetalhesLayout.createSequentialGroup()\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtTitular)\n .addComponent(txtBanco))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnTitular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBanco, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(pnlDetalhesLayout.createSequentialGroup()\n .addComponent(txtAgencia, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtAgenciaDigito, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblConta)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtConta, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtContaDigito, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(pnlDetalhesLayout.createSequentialGroup()\n .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkAtivo)))\n .addContainerGap())\n );\n pnlDetalhesLayout.setVerticalGroup(\n pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDetalhesLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDescricao)\n .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chkAtivo))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtTitular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblTitular)\n .addComponent(btnTitular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblBanco)\n .addComponent(btnBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDetalhesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblConta)\n .addComponent(lblAgencia)\n .addComponent(txtAgencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtConta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtAgenciaDigito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtContaDigito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n tabMenuGeral.addTab(\"Detalhes\", pnlDetalhes);\n\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n btnCadastrar.setText(\"Ok\");\n btnCadastrar.setMaximumSize(new java.awt.Dimension(75, 23));\n btnCadastrar.setMinimumSize(new java.awt.Dimension(75, 23));\n btnCadastrar.setPreferredSize(new java.awt.Dimension(75, 23));\n btnCadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCadastrarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout pnlGeralLayout = new javax.swing.GroupLayout(pnlGeral);\n pnlGeral.setLayout(pnlGeralLayout);\n pnlGeralLayout.setHorizontalGroup(\n pnlGeralLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlGeralLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlGeralLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tabMenuGeral)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlGeralLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnCancelar)))\n .addContainerGap())\n );\n pnlGeralLayout.setVerticalGroup(\n pnlGeralLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlGeralLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(tabMenuGeral)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlGeralLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnCancelar)\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pnlGeral, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pnlGeral, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public Venda() {\n initComponents();\n }", "public Venda() {\n initComponents();\n }", "public frmCliente() {\r\n \r\n initComponents();\r\n // Botao do Note_ON brusco que foi retirado ...\r\n //jButton9.setVisible(false);\r\n \r\n // Inicializa o display de desenho\r\n //ImageIcon image=new ImageIcon(\"Hapax4.PNG\");\r\n //setIconImage(image.getImage());\r\n \r\n iniciaDesenho();\r\n // Lista de Dispositivos MIDI\r\n PegaMIDI();\r\n \r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear programa maestro de asignación\");\n setLocationByPlatform(true);\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jButton2.setText(\"ok\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextField1.setText(\"jTextField1\");\n\n jLabel1.setText(\"Seleccionar archivo de Topcon\");\n\n jButton1.setText(\"Browse\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setLabelFor(jComboBox1);\n jLabel2.setText(\"Número de grabación\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 329, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(6, 6, 6)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addContainerGap())\n );\n\n pack();\n }", "private void jBtn_AjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_AjouterActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n Formulaire_Client creaClient = new Formulaire_Client();\n creaClient.setVisible(true);\n this.setVisible(false);\n \n }\n else{\n Formulaire_Prospect creaProspect = new Formulaire_Prospect();\n creaProspect.setVisible(true);\n this.setVisible(false);\n } \n }", "public frmClienteIncobrable() {\n initComponents();\n \n //CARGAR PROVINCIAS\n ArrayList<clsComboBox> dataProvincia = objProvincia.consultarTipoIncobrable(); \n for(int i=0;i<dataProvincia.size();i=i+1)\n {\n clsComboBox oItem = new clsComboBox(dataProvincia.get(i).getCodigo(), dataProvincia.get(i).getDescripcion());\n cmbTipoIncobrable.addItem(oItem); \n } \n \n \n //CARGAR AUTOCOMPLETAR\n List<String> dataCedula = objCliente.consultarCedulas(); \n SelectAllUtils.install(txtCedula);\n ListDataIntelliHints intellihints = new ListDataIntelliHints(txtCedula, dataCedula); \n intellihints.setCaseSensitive(false);\n \n Date fechaActual = new Date();\n txtFecha.setDate(fechaActual);\n }", "public VentanaAltaModifPieza(JFrame padre) {\r\n\t\tsuper(padre, true);\r\n\t\tsetBounds(100, 100, 437, 304);\r\n\t\tsetResizable(false);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\tbtnAlta = new JButton(\"Dar de alta\");\r\n\t\tbtnAlta.setBounds(183, 242, 139, 23);\r\n\t\tcontentPane.add(btnAlta);\r\n\r\n\t\tbtnCancelar = new JButton(\"Cancelar\");\r\n\t\tbtnCancelar.setBounds(332, 242, 89, 23);\r\n\t\tcontentPane.add(btnCancelar);\r\n\r\n\t\tlblDireccin = new JLabel(\"Marca:\");\r\n\t\tlblDireccin.setBounds(27, 102, 99, 14);\r\n\t\tcontentPane.add(lblDireccin);\r\n\r\n\t\tlblLocalidad = new JLabel(\"Descripcion: \");\r\n\t\tlblLocalidad.setBounds(27, 133, 99, 14);\r\n\t\tcontentPane.add(lblLocalidad);\r\n\t\t\r\n\t\tlblBajoStock = new JLabel(\"Bajo stock:\");\r\n\t\tlblBajoStock.setBounds(27, 194, 99, 14);\r\n\t\tcontentPane.add(lblBajoStock);\r\n\r\n\t\tlblProvincia = new JLabel(\"Precio Venta:\");\r\n\t\tlblProvincia.setBounds(27, 164, 99, 14);\r\n\t\tcontentPane.add(lblProvincia);\r\n\r\n\t\ttfDescripcionMarca = new JTextField();\r\n\t\ttfDescripcionMarca.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (!Validador.caracterConEspacioNumero(e.getKeyChar()) || tfDescripcionMarca.getText().length() > 19) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfDescripcionMarca.setColumns(10);\r\n\t\ttfDescripcionMarca.setBounds(133, 130, 236, 20);\r\n\t\tcontentPane.add(tfDescripcionMarca);\r\n\r\n\t\ttfPrecioVenta = new JTextField();\r\n\t\ttfPrecioVenta.select(tfPrecioVenta.getText().length(), 0);\r\n\t\ttfPrecioVenta.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (!Validador.esNumero(e.getKeyChar()) || tfPrecioVenta.getText().length()>19 ){ \r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t\tif (tfPrecioVenta.getText().length()>=0) {\r\n\t\t\t\t\ttfPrecioVenta.setText(Validador.armarPrecioValido(tfPrecioVenta.getText()));\r\n\t\t\t\t}\r\n\t\t\t\ttfPrecioVenta.select(tfPrecioVenta.getText().length(), 0);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfPrecioVenta.setColumns(10);\r\n\t\ttfPrecioVenta.setBounds(136, 161, 113, 20);\r\n\t\tcontentPane.add(tfPrecioVenta);\r\n\r\n\t\tcboMarcas = new JComboBox<MarcaDTO>();\r\n\t\tcboMarcas.setBounds(133, 99, 163, 20);\r\n\t\tcontentPane.add(cboMarcas);\r\n\r\n\t\tbtnNuevaMarca = new JButton(\"A\\u00F1adir marca\");\r\n\t\tbtnNuevaMarca.setBounds(306, 98, 115, 23);\r\n\t\tcontentPane.add(btnNuevaMarca);\r\n\t\t\r\n\t\tspinnerBajoStock = new JSpinner();\r\n\t\tspinnerBajoStock.setModel(new SpinnerNumberModel(new Integer(1), new Integer(1), null, new Integer(1)));\r\n\t\tspinnerBajoStock.setBounds(133, 191, 49, 20);\r\n\t\tcontentPane.add(spinnerBajoStock);\r\n\t\t\r\n\t\ttfIdUnico = new JTextField();\r\n\t\ttfIdUnico.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (!Validador.esLetra(e.getKeyChar()) && !Validador.esNumero(e.getKeyChar()) || tfIdUnico.getText().length()>7)\r\n\t\t\t\t\te.consume();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfIdUnico.setBounds(183, 68, 86, 20);\r\n\t\tcontentPane.add(tfIdUnico);\r\n\t\ttfIdUnico.setColumns(10);\r\n\t\t\r\n\t\tlblIdentificadornico = new JLabel(\"Identificador \\u00FAnico:\");\r\n\t\tlblIdentificadornico.setBounds(27, 71, 113, 14);\r\n\t\tcontentPane.add(lblIdentificadornico);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel8 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n BtbReserva = new javax.swing.JButton();\n rbtDebito = new javax.swing.JRadioButton();\n rbtCredito = new javax.swing.JRadioButton();\n jLabel9 = new javax.swing.JLabel();\n btnVolverCompra = new javax.swing.JButton();\n rbtEfectivo = new javax.swing.JRadioButton();\n jDateCompra = new com.toedter.calendar.JDateChooser();\n SpinnerSillas = new javax.swing.JSpinner();\n jDateReserva = new com.toedter.calendar.JDateChooser();\n jLabel4 = new javax.swing.JLabel();\n BtbBuscar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n txtCedula = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(73, 181, 172));\n jPanel1.setPreferredSize(new java.awt.Dimension(370, 470));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/proyecto01/img/Logo.png\"))); // NOI18N\n jLabel8.setText(\"jLabel8\");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 362, 390));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 360, 390));\n\n jPanel2.setBackground(new java.awt.Color(33, 45, 62));\n jPanel2.setForeground(new java.awt.Color(255, 255, 255));\n jPanel2.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Fecha De Salida\");\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 140, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Fecha De Reserva\");\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 230, -1, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Realiza Tu Reserva\");\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 10, -1, -1));\n\n BtbReserva.setBackground(new java.awt.Color(73, 181, 172));\n BtbReserva.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n BtbReserva.setForeground(new java.awt.Color(255, 255, 255));\n BtbReserva.setText(\"RESERVAR\");\n BtbReserva.setBorder(null);\n BtbReserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtbReservaActionPerformed(evt);\n }\n });\n jPanel2.add(BtbReserva, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 350, 90, 30));\n\n rbtDebito.setBackground(new java.awt.Color(33, 45, 62));\n rbtDebito.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 1, 12)); // NOI18N\n rbtDebito.setForeground(new java.awt.Color(255, 255, 255));\n rbtDebito.setText(\"Tarjeta De Debito\");\n rbtDebito.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbtDebitoActionPerformed(evt);\n }\n });\n jPanel2.add(rbtDebito, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, -1, -1));\n\n rbtCredito.setBackground(new java.awt.Color(33, 45, 62));\n rbtCredito.setFont(new java.awt.Font(\"Yu Gothic Light\", 1, 12)); // NOI18N\n rbtCredito.setForeground(new java.awt.Color(255, 255, 255));\n rbtCredito.setText(\"Tarjeta De Credito\");\n jPanel2.add(rbtCredito, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 290, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Seleccione Su Metodo De Pago Modo De Pago\");\n jPanel2.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 260, -1, -1));\n\n btnVolverCompra.setBackground(new java.awt.Color(73, 181, 172));\n btnVolverCompra.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n btnVolverCompra.setForeground(new java.awt.Color(255, 255, 255));\n btnVolverCompra.setText(\"x\");\n btnVolverCompra.setBorder(null);\n btnVolverCompra.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVolverCompraActionPerformed(evt);\n }\n });\n jPanel2.add(btnVolverCompra, new org.netbeans.lib.awtextra.AbsoluteConstraints(519, 0, 30, 30));\n\n rbtEfectivo.setBackground(new java.awt.Color(33, 45, 62));\n rbtEfectivo.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 1, 12)); // NOI18N\n rbtEfectivo.setForeground(new java.awt.Color(255, 255, 255));\n rbtEfectivo.setText(\"Efectivo\");\n jPanel2.add(rbtEfectivo, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 290, -1, -1));\n\n jDateCompra.setBackground(new java.awt.Color(33, 45, 62));\n jDateCompra.setForeground(new java.awt.Color(51, 51, 255));\n jPanel2.add(jDateCompra, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 130, 150, -1));\n jPanel2.add(SpinnerSillas, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 180, 150, -1));\n\n jDateReserva.setBackground(new java.awt.Color(33, 45, 62));\n jDateReserva.setForeground(new java.awt.Color(51, 51, 255));\n jPanel2.add(jDateReserva, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 220, 150, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Seleccione Su N° De Silla\");\n jPanel2.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 180, -1, -1));\n\n BtbBuscar.setBackground(new java.awt.Color(73, 181, 172));\n BtbBuscar.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n BtbBuscar.setForeground(new java.awt.Color(255, 255, 255));\n BtbBuscar.setText(\"BUSCAR RESERVA\");\n BtbBuscar.setBorder(null);\n BtbBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtbBuscarActionPerformed(evt);\n }\n });\n jPanel2.add(BtbBuscar, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 350, 120, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Cedula\");\n jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 70, -1, -1));\n\n txtCedula.setBackground(new java.awt.Color(33, 45, 62));\n txtCedula.setFont(new java.awt.Font(\"Yu Gothic UI Light\", 0, 14)); // NOI18N\n txtCedula.setForeground(new java.awt.Color(255, 255, 255));\n txtCedula.setBorder(null);\n txtCedula.setCaretColor(new java.awt.Color(255, 255, 255));\n jPanel2.add(txtCedula, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 100, 150, -1));\n\n jSeparator1.setBackground(new java.awt.Color(73, 181, 172));\n jPanel2.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 120, 150, 7));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 0, 550, 390));\n\n pack();\n }", "private void init (){\n ///compoennetes\n // cuadros de texto\n txCodigo = new JTextField(10);\n txNombre = new JTextField(10);\n // etiquetas\n lbCodigo = new JLabel(\"codigo: \");\n lbNombre = new JLabel(\"nombre: \");\n // boton \n btAcpetar = new JButton(\"aceptar\");\n btAcpetar.setToolTipText(\"realizar insert\");\n btAcpetar.addActionListener(this);\n // paneles contenedores\n JPanel pCodigo = new JPanel();\n JPanel pNombre = new JPanel();\n // cambio de layout\n BoxLayout bx = new BoxLayout(this.getContentPane(), BoxLayout.PAGE_AXIS);\n this.setLayout(bx);\n // annadir a los paneles\n pCodigo.add(lbCodigo);\n pCodigo.add(txCodigo);\n pNombre.add(lbNombre);\n pNombre.add(txNombre);\n // annadir al dialogo\n add(pCodigo);\n add(pNombre);\n add(btAcpetar);\n }", "public FrCadFabricante() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n painel_cadastrar_area3 = new javax.swing.JPanel();\n salvar = new javax.swing.JButton();\n Funcionario_id = new javax.swing.JLabel();\n voltar = new javax.swing.JButton();\n Nivel_id = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n campo_nome = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n campo_endereco = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n campo_numero = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n campo_bairro = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n campo_cidade = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n campo_estado = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n campo_cep = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n campo_ddd = new javax.swing.JTextField();\n campo_telefone = new javax.swing.JTextField();\n msg = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n campo_idt = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n campo_cpf = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n campo_login = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n combo_nivel = new javax.swing.JComboBox();\n campo_senha = new javax.swing.JPasswordField();\n jLabel11 = new javax.swing.JLabel();\n campo_adm_dia = new javax.swing.JTextField();\n campo_adm_mes = new javax.swing.JTextField();\n campo_adm_ano = new javax.swing.JTextField();\n\n setBackground(new java.awt.Color(255, 241, 88));\n\n painel_cadastrar_area3.setBackground(new java.awt.Color(255, 241, 88));\n painel_cadastrar_area3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n salvar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/salvar.png\"))); // NOI18N\n salvar.setToolTipText(\"Salvar\");\n salvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salvarActionPerformed(evt);\n }\n });\n\n Funcionario_id.setForeground(new java.awt.Color(255, 241, 88));\n Funcionario_id.setText(\"0\");\n\n voltar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/back.png\"))); // NOI18N\n voltar.setToolTipText(\"Voltar\");\n voltar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n voltarActionPerformed(evt);\n }\n });\n\n Nivel_id.setBackground(new java.awt.Color(255, 241, 88));\n Nivel_id.setForeground(new java.awt.Color(255, 241, 88));\n Nivel_id.setText(\"0\");\n\n org.jdesktop.layout.GroupLayout painel_cadastrar_area3Layout = new org.jdesktop.layout.GroupLayout(painel_cadastrar_area3);\n painel_cadastrar_area3.setLayout(painel_cadastrar_area3Layout);\n painel_cadastrar_area3Layout.setHorizontalGroup(\n painel_cadastrar_area3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(painel_cadastrar_area3Layout.createSequentialGroup()\n .addContainerGap()\n .add(salvar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(voltar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 54, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(142, 142, 142)\n .add(Funcionario_id)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(Nivel_id)\n .addContainerGap(378, Short.MAX_VALUE))\n );\n painel_cadastrar_area3Layout.setVerticalGroup(\n painel_cadastrar_area3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(painel_cadastrar_area3Layout.createSequentialGroup()\n .add(painel_cadastrar_area3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(salvar)\n .add(voltar)\n .add(painel_cadastrar_area3Layout.createSequentialGroup()\n .add(26, 26, 26)\n .add(painel_cadastrar_area3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(Funcionario_id)\n .add(Nivel_id))))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1.setBackground(new java.awt.Color(255, 241, 88));\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setText(\"Nome:\");\n\n jLabel2.setText(\"Rua/Av.:\");\n\n jLabel3.setText(\"Numero:\");\n\n jLabel4.setText(\"Bairro:\");\n\n jLabel5.setText(\"Cidade:\");\n\n jLabel6.setText(\"Estado:\");\n\n jLabel7.setText(\"Cep:\");\n\n jLabel8.setText(\"Telefone:\");\n\n msg.setForeground(new java.awt.Color(255, 102, 0));\n msg.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n\n jLabel9.setText(\"Identidade:\");\n\n jLabel10.setText(\"CPF:\");\n\n jLabel13.setText(\"Login:\");\n\n jLabel14.setText(\"Senha:\");\n\n jLabel15.setText(\"Nível acesso:\");\n\n combo_nivel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n combo_nivel.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n combo_nivelItemStateChanged(evt);\n }\n });\n\n jLabel11.setText(\"D. Admissão:\");\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(21, 21, 21)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(jLabel15)\n .add(jLabel13)\n .add(jLabel8)\n .add(jLabel7)\n .add(jLabel5)\n .add(jLabel4)\n .add(jLabel2)\n .add(jLabel1)\n .add(jLabel9))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(campo_nome, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 300, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel11)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(campo_adm_dia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(1, 1, 1)\n .add(campo_adm_mes, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(2, 2, 2)\n .add(campo_adm_ano, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 48, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel1Layout.createSequentialGroup()\n .add(campo_endereco, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 300, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel3)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(campo_numero, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(campo_bairro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 300, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jPanel1Layout.createSequentialGroup()\n .add(campo_cidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 300, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel6)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(campo_estado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(campo_cep, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 96, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(org.jdesktop.layout.GroupLayout.LEADING, campo_idt)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1Layout.createSequentialGroup()\n .add(campo_ddd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 47, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(2, 2, 2)\n .add(campo_telefone, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(org.jdesktop.layout.GroupLayout.LEADING, campo_login))\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(30, 30, 30)\n .add(jLabel10))\n .add(jPanel1Layout.createSequentialGroup()\n .add(18, 18, 18)\n .add(jLabel14)))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(campo_senha)\n .add(campo_cpf, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(msg))\n .add(combo_nivel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(msg, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1)\n .add(campo_nome, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel11)\n .add(campo_adm_dia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(campo_adm_mes, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(campo_adm_ano, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel2)\n .add(campo_endereco, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel3)\n .add(campo_numero, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel4)\n .add(campo_bairro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel5)\n .add(campo_cidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel6)\n .add(campo_estado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel7)\n .add(campo_cep, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel8)\n .add(campo_ddd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(campo_telefone, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel9)\n .add(campo_idt, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel10)\n .add(campo_cpf, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel13)\n .add(campo_login, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(campo_senha, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel14))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel15)\n .add(combo_nivel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(95, 95, 95))\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(painel_cadastrar_area3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 669, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(painel_cadastrar_area3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 69, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 399, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtdate = new com.toedter.calendar.JDateChooser();\n txtproducto = new javax.swing.JTextField();\n txtcantidad = new javax.swing.JTextField();\n txtvalorU = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Nombre producto:\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 50, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Cantidad:\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Valor Unitario:\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 150, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Fecha: \");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 210, -1, -1));\n getContentPane().add(txtdate, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 210, 138, -1));\n\n txtproducto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtproductoKeyTyped(evt);\n }\n });\n getContentPane().add(txtproducto, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 50, 138, -1));\n\n txtcantidad.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtcantidadActionPerformed(evt);\n }\n });\n txtcantidad.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtcantidadKeyTyped(evt);\n }\n });\n getContentPane().add(txtcantidad, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 100, 138, -1));\n\n txtvalorU.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtvalorUKeyTyped(evt);\n }\n });\n getContentPane().add(txtvalorU, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 150, 138, -1));\n\n jButton1.setBackground(new java.awt.Color(51, 51, 255));\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"Realizar Venta\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 260, -1, -1));\n\n jButton2.setBackground(new java.awt.Color(255, 0, 0));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton2.setText(\"Cerrar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 10, -1, -1));\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Fondo2.jpg\"))); // NOI18N\n jLabel5.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 300));\n\n pack();\n }", "public frm_tutor_subida_prueba() {\n }" ]
[ "0.6955947", "0.67856383", "0.67487556", "0.673658", "0.6698104", "0.66937727", "0.669027", "0.6680009", "0.6651017", "0.66182625", "0.65973645", "0.65751785", "0.6569449", "0.6536228", "0.6526655", "0.65181834", "0.6505182", "0.64853436", "0.64559615", "0.6452254", "0.6430909", "0.64261097", "0.6423044", "0.6399599", "0.63979274", "0.6397207", "0.6392146", "0.63902414", "0.63888705", "0.638188", "0.63817114", "0.63729405", "0.6365266", "0.6359428", "0.6350828", "0.6350245", "0.6345899", "0.6339476", "0.63374007", "0.6334298", "0.6332558", "0.63305867", "0.6328314", "0.6323", "0.6312276", "0.6309764", "0.63097334", "0.6307623", "0.63045454", "0.6287001", "0.62852275", "0.6283844", "0.6282821", "0.6277921", "0.62708306", "0.62705064", "0.62692416", "0.62647116", "0.6262426", "0.6261582", "0.62486464", "0.6243328", "0.6239721", "0.6239107", "0.62355113", "0.6231648", "0.62312114", "0.62288547", "0.6225473", "0.62219954", "0.6218783", "0.6217884", "0.62172914", "0.6216789", "0.62150437", "0.6214645", "0.6211705", "0.6207756", "0.61987907", "0.61956483", "0.6193964", "0.6188083", "0.61877304", "0.61739415", "0.6168201", "0.6164275", "0.61633694", "0.6162254", "0.61614263", "0.61614263", "0.6157874", "0.6157001", "0.6156466", "0.6156367", "0.61551607", "0.6150426", "0.61499023", "0.6149828", "0.6148474", "0.6147551", "0.61453265" ]
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() { jDialogCards = new javax.swing.JDialog(); jButton10 = new javax.swing.JButton(); jButton11 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(ClassSale.allCards().toArray()); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jButton9 = new javax.swing.JButton(); jButtonPagCartao = new javax.swing.JButton(); jButton12 = new javax.swing.JButton(); jButton50Reais = new javax.swing.JButton(); jButton10Reais = new javax.swing.JButton(); jButton20Reais = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); jButtonFinalizaCalculoPagameto = new javax.swing.JButton(); jButtonLimpaCalculoPagamento = new javax.swing.JButton(); jButtonSairCalculoPagamento = new javax.swing.JButton(); jPanel4 = new javax.swing.JPanel(); jTextValueTotalCoupon = new javax.swing.JTextField(); jTextValueDiscontCoupon = new javax.swing.JTextField(); jTextCash = new javax.swing.JTextField(); jTextSmallCash = new javax.swing.JTextField(); jScrollPane2 = new javax.swing.JScrollPane(); jList2 = new javax.swing.JList(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenuItemPaymentCardCredit = new javax.swing.JMenuItem(); jMenuItemDiscount = new javax.swing.JMenuItem(); jMenuIteExactCash = new javax.swing.JMenuItem(); jMenuExit = new javax.swing.JMenuItem(); jDialogCards.addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { jDialogCardsWindowActivated(evt); } public void windowClosed(java.awt.event.WindowEvent evt) { jDialogCardsWindowClosed(evt); } }); jButton10.setText("OK [Enter]"); jButton10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton10ActionPerformed(evt); } }); jButton11.setText("Cancelar [Esc]"); jButton11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton11ActionPerformed(evt); } }); jList1.setToolTipText(""); jList1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jList1MouseClicked(evt); } }); jList1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jList1KeyPressed(evt); } }); jScrollPane1.setViewportView(jList1); javax.swing.GroupLayout jDialogCardsLayout = new javax.swing.GroupLayout(jDialogCards.getContentPane()); jDialogCards.getContentPane().setLayout(jDialogCardsLayout); jDialogCardsLayout.setHorizontalGroup( jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jDialogCardsLayout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGroup(jDialogCardsLayout.createSequentialGroup() .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(5, 5, 5)) ); jDialogCardsLayout.setVerticalGroup( jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogCardsLayout.createSequentialGroup() .addGap(5, 5, 5) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE) .addGap(5, 5, 5) .addGroup(jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE) .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(5, 5, 5)) ); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pagamento", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton1.setForeground(new java.awt.Color(102, 102, 102)); jButton1.setText("1"); jButton1.setName("1"); // NOI18N jButton1.setPreferredSize(new java.awt.Dimension(75, 23)); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton1MouseClicked(evt); } }); jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton2.setForeground(new java.awt.Color(102, 102, 102)); jButton2.setText("2"); jButton2.setName("2"); // NOI18N jButton2.setPreferredSize(new java.awt.Dimension(75, 23)); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton2jButton1MouseClicked(evt); } }); jButton3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton3.setForeground(new java.awt.Color(102, 102, 102)); jButton3.setText("3"); jButton3.setName("3"); // NOI18N jButton3.setPreferredSize(new java.awt.Dimension(75, 23)); jButton3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton3jButton1MouseClicked(evt); } }); jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton4.setForeground(new java.awt.Color(102, 102, 102)); jButton4.setText("4"); jButton4.setName("4"); // NOI18N jButton4.setPreferredSize(new java.awt.Dimension(75, 23)); jButton4.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton4jButton1MouseClicked(evt); } }); jButton5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton5.setForeground(new java.awt.Color(102, 102, 102)); jButton5.setText("5"); jButton5.setName("5"); // NOI18N jButton5.setPreferredSize(new java.awt.Dimension(75, 23)); jButton5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton5jButton1MouseClicked(evt); } }); jButton6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton6.setForeground(new java.awt.Color(102, 102, 102)); jButton6.setText("6"); jButton6.setName("6"); // NOI18N jButton6.setPreferredSize(new java.awt.Dimension(75, 23)); jButton6.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton6jButton1MouseClicked(evt); } }); jButton7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton7.setForeground(new java.awt.Color(102, 102, 102)); jButton7.setText("7"); jButton7.setName("7"); // NOI18N jButton7.setPreferredSize(new java.awt.Dimension(75, 23)); jButton7.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton7jButton1MouseClicked(evt); } }); jButton8.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton8.setForeground(new java.awt.Color(102, 102, 102)); jButton8.setText("8"); jButton8.setName("8"); // NOI18N jButton8.setPreferredSize(new java.awt.Dimension(75, 23)); jButton8.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton8jButton1MouseClicked(evt); } }); jButton9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton9.setForeground(new java.awt.Color(102, 102, 102)); jButton9.setText("9"); jButton9.setName("9"); // NOI18N jButton9.setPreferredSize(new java.awt.Dimension(75, 23)); jButton9.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton9jButton1MouseClicked(evt); } }); jButton9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton9ActionPerformed(evt); } }); jButtonPagCartao.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButtonPagCartao.setForeground(new java.awt.Color(102, 102, 102)); jButtonPagCartao.setText("Cartão ( F1 )"); jButtonPagCartao.setPreferredSize(new java.awt.Dimension(75, 23)); jButtonPagCartao.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPagCartaoActionPerformed(evt); } }); jButton12.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton12.setForeground(new java.awt.Color(102, 102, 102)); jButton12.setText("0"); jButton12.setName("0"); // NOI18N jButton12.setPreferredSize(new java.awt.Dimension(75, 23)); jButton12.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton12jButton1MouseClicked(evt); } }); jButton50Reais.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton50Reais.setForeground(new java.awt.Color(102, 102, 102)); jButton50Reais.setText("50"); jButton50Reais.setName("50.00"); // NOI18N jButton50Reais.setPreferredSize(new java.awt.Dimension(75, 23)); jButton50Reais.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton50ReaisActionPerformed(evt); } }); jButton10Reais.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton10Reais.setForeground(new java.awt.Color(102, 102, 102)); jButton10Reais.setText("10"); jButton10Reais.setName("10.00"); // NOI18N jButton10Reais.setPreferredSize(new java.awt.Dimension(75, 23)); jButton10Reais.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton10ReaisActionPerformed(evt); } }); jButton20Reais.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton20Reais.setForeground(new java.awt.Color(102, 102, 102)); jButton20Reais.setText("20"); jButton20Reais.setName("20.00"); // NOI18N jButton20Reais.setPreferredSize(new java.awt.Dimension(75, 23)); jButton20Reais.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton20ReaisActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButtonPagCartao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jButton50Reais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton10Reais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton20Reais, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton12, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE) .addComponent(jButtonPagCartao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false) .addComponent(jButton50Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton10Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jButton20Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Ações", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jPanel3.setLayout(new java.awt.GridLayout(1, 0)); jButtonFinalizaCalculoPagameto.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButtonFinalizaCalculoPagameto.setForeground(new java.awt.Color(102, 102, 102)); jButtonFinalizaCalculoPagameto.setText("Fim"); jButtonFinalizaCalculoPagameto.setEnabled(false); jButtonFinalizaCalculoPagameto.setPreferredSize(new java.awt.Dimension(83, 18)); jButtonFinalizaCalculoPagameto.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFinalizaCalculoPagametoActionPerformed(evt); } }); jPanel3.add(jButtonFinalizaCalculoPagameto); jButtonLimpaCalculoPagamento.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButtonLimpaCalculoPagamento.setForeground(new java.awt.Color(102, 102, 102)); jButtonLimpaCalculoPagamento.setText("Limpa"); jButtonLimpaCalculoPagamento.setPreferredSize(new java.awt.Dimension(83, 18)); jButtonLimpaCalculoPagamento.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonLimpaCalculoPagamentoActionPerformed(evt); } }); jPanel3.add(jButtonLimpaCalculoPagamento); jButtonSairCalculoPagamento.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButtonSairCalculoPagamento.setForeground(new java.awt.Color(102, 102, 102)); jButtonSairCalculoPagamento.setText("Sair(Esc)"); jButtonSairCalculoPagamento.setPreferredSize(new java.awt.Dimension(83, 18)); jButtonSairCalculoPagamento.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSairCalculoPagamentoActionPerformed(evt); } }); jPanel3.add(jButtonSairCalculoPagamento); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("")); jPanel4.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jPanel4MouseClicked(evt); } }); jTextValueTotalCoupon.setEditable(false); jTextValueTotalCoupon.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextValueTotalCoupon.setForeground(new java.awt.Color(102, 102, 102)); jTextValueTotalCoupon.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextValueTotalCoupon.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Total R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jTextValueTotalCoupon.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTextValueTotalCouponMouseClicked(evt); } }); jTextValueTotalCoupon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextValueTotalCouponActionPerformed(evt); } }); jTextValueDiscontCoupon.setEditable(false); jTextValueDiscontCoupon.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextValueDiscontCoupon.setForeground(new java.awt.Color(102, 102, 102)); jTextValueDiscontCoupon.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextValueDiscontCoupon.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Desconto R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jTextValueDiscontCoupon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextValueDiscontCouponActionPerformed(evt); } }); jTextValueDiscontCoupon.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jTextValueDiscontCouponFocusLost(evt); } }); jTextValueDiscontCoupon.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTextValueDiscontCouponKeyReleased(evt); } }); jTextCash.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background")); jTextCash.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextCash.setForeground(new java.awt.Color(102, 102, 102)); jTextCash.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextCash.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pagamento R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jTextCash.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextCashActionPerformed(evt); } }); jTextCash.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTextCashKeyReleased(evt); } }); jTextSmallCash.setEditable(false); jTextSmallCash.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextSmallCash.setForeground(new java.awt.Color(102, 102, 102)); jTextSmallCash.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextSmallCash.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Troco R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jScrollPane2.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); jList2.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background")); jList2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N jList2.setForeground(new java.awt.Color(102, 102, 102)); jList2.setModel(listModel); jList2.setAutoscrolls(false); jList2.setEnabled(false); jScrollPane2.setViewportView(jList2); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextCash, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jTextValueDiscontCoupon, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextSmallCash) .addComponent(jTextValueTotalCoupon, javax.swing.GroupLayout.Alignment.TRAILING)) .addContainerGap()) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jTextValueTotalCoupon, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(11, 11, 11) .addComponent(jTextValueDiscontCoupon, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextCash, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextSmallCash, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPane2)) .addContainerGap()) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jMenuBar1.setPreferredSize(new java.awt.Dimension(20, 20)); jMenuBar1.setRequestFocusEnabled(false); jMenu1.setForeground(new java.awt.Color(102, 102, 102)); jMenu1.setText("Ações"); jMenuItemPaymentCardCredit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0)); jMenuItemPaymentCardCredit.setText("Pag. Cartão"); jMenuItemPaymentCardCredit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPaymentCardCreditActionPerformed(evt); } }); jMenu1.add(jMenuItemPaymentCardCredit); jMenuItemDiscount.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, 0)); jMenuItemDiscount.setText("Desconto"); jMenuItemDiscount.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDiscountActionPerformed(evt); } }); jMenu1.add(jMenuItemDiscount); jMenuIteExactCash.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, 0)); jMenuIteExactCash.setText("Dinheiro Certo"); jMenuIteExactCash.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuIteExactCashActionPerformed(evt); } }); jMenu1.add(jMenuIteExactCash); jMenuExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0)); jMenuExit.setText("Sair"); jMenuExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuExitActionPerformed(evt); } }); jMenu1.add(jMenuExit); jMenuBar1.add(jMenu1); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); 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 initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7320782", "0.72918797", "0.72918797", "0.72918797", "0.728645", "0.72498447", "0.7214492", "0.720934", "0.7197145", "0.71912014", "0.71852076", "0.7160113", "0.71487373", "0.70943654", "0.70820624", "0.7058153", "0.69883204", "0.6978216", "0.69558746", "0.6955715", "0.69455403", "0.6944223", "0.6936588", "0.6933016", "0.6929512", "0.6925853", "0.6925524", "0.6912182", "0.6912122", "0.6895022", "0.6894088", "0.68921435", "0.68919635", "0.6889464", "0.6884104", "0.6883508", "0.6882322", "0.6879773", "0.6876671", "0.68755716", "0.6872437", "0.6860746", "0.68575454", "0.6857284", "0.68563104", "0.6854648", "0.68544936", "0.68532896", "0.68532896", "0.68444484", "0.68380433", "0.6837678", "0.68299913", "0.6828643", "0.6828147", "0.6825278", "0.6823024", "0.68182456", "0.68178964", "0.681216", "0.6809752", "0.6809671", "0.6809534", "0.6808423", "0.6803337", "0.6794699", "0.67944574", "0.6793996", "0.6792107", "0.67904186", "0.67898226", "0.67888504", "0.6782858", "0.67673683", "0.67670184", "0.6765726", "0.6757476", "0.67573047", "0.6753978", "0.6752576", "0.674217", "0.67403704", "0.6738196", "0.67374873", "0.67351323", "0.6728453", "0.67277855", "0.6722282", "0.6716617", "0.67165154", "0.67154175", "0.6709239", "0.67077744", "0.6703873", "0.67028135", "0.6702373", "0.6700207", "0.67000616", "0.6695769", "0.6691885", "0.6690232" ]
0.0
-1
End of variables declaration//GENEND:variables
private void funcaoTotalPedido() { ClassSale.paymentCoupon(codeCoupon); BigDecimal smallCash = PaymentCoupon.getSmallCash(); jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon())); jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP))); //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento())); if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) { valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); jTextCash.setText("0,00"); jTextValueDiscontCoupon.setText("0,00"); jTextCash.requestFocus(true); } else { if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) { if (JOptionPane.showConfirmDialog(this, "Não é permitido troco para pagamento com cartão.\nDeseja emitir um contra vale?", "Mensagem", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) { JOptionPane.showMessageDialog(this, "Emitindo contra vale..."); fechouVenda = true; //BeanConsulta.setVenda_fechada(fechouVenda); this.dispose(); } else { funcaoLimpaPag(); } } else { valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); jButtonFinalizaCalculoPagameto.setEnabled(true); jButtonFinalizaCalculoPagameto.requestFocus(true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
cria uma thread pra gravar o seu arquivo
@Override public void run() { try { //AQUI VAI A FUNCÃO A SER EXECUTADA invokeMethod(method); } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) { Logger.getLogger(JFrameSale_1.class.getName()).log(Level.SEVERE, null, ex); } catch (Exception ex) { Logger.getLogger(JFrameSale_1.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ThreadStart createThreadStart();", "public void createThread() {\n }", "void startThread();", "public synchronized void start(){\n if(jogoAtivo) return;\n jogoAtivo = true;\n thread = new Thread(this);\n thread.start();\n }", "NetThread(){}", "public IThread createThread() throws IllegalWriteException, BBException;", "public void start () {\r\n // Declaras un hilo\r\n Thread th = new Thread (this);\r\n // Empieza el hilo\r\n th.start ();\r\n }", "public void start(){\n hiloAux = new Thread(this);\n hiloAux.start();\n }", "public ImageThread() {\n\t}", "NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }", "private Thread createThreadFor(Agent ag) {\n ProcessData data = getDataFor(ag);\n\n data.thread = new Thread(threadGroup, ag);\n data.thread.setPriority(THREAD_PRIORITY);\n\n return data.thread;\n }", "public void getFile(){\n\t\t\n\t\tParser parser = new Parser(f, this, taskPool);\n\t\tWorker w;\n\t\tfor (int i = 0; i < this.getTasks().getNumWorker(); i++){\n\t\t\t w = new Worker(position, this);\n\t\t\t w.setWorkerNum(i);\n\t\t\t workers.add(w);\n\t\t\t} \n\t\t\n\t\tworkPanel = new WorkPanel(tasks, this, workers);\n\t\tworkPanel.setBounds(0, 0, 600, 600);\n\t\tThread twp = new Thread(workPanel);\n\t\ttwp.start();\n\n\t\tmainPanel.add(workPanel);\n\t\t\n\t\t\tfor (int k = 0; k < workers.size(); k++){\n\t\t\t\tworkers.get(k).start();\n\t\t\t}\n\n\t}", "public void start() {\n // Declaras un hilo\n Thread th = new Thread(this);\n // Empieza el hilo\n th.start();\n }", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "@Override\n\tpublic void run() {\n\t\t// TODO Auto-generated method stub\n\t\twhile(keepGoing){\n\t\t\ttry {\n\t\t\t\tThread newThreadSocket = new Thread(new newThreadWaitingForFile(mySocket.accept()));\n\t\t\t\tnewThreadSocket.start();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public void initReloj(){\r\n Thread r1 = new Thread(this,\"Reloj\");\r\n r1.start();\r\n }", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "protected Thread createPlayerThread()\n\t{\n\t\treturn new Thread(this, \"Audio player thread\");\t\n\t}", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "public Thread startThread() {\n Thread thread = createThread();\n thread.start();\n return thread;\n }", "public JanelaThread() {\n initComponents();\n }", "public void start(){\n thread.start();\n }", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "private Thread createThread() {\n return new Thread(this::_loadCatalog, \"CDS Hooks Catalog Retrieval\"\n );\n }", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public CryptoThread(File file,SecretKeySpec skeySpec) {\r\n\t\tthis.simmetricKey = skeySpec;\r\n\t\tthis.fileToEncrypt = file;\r\n\t\tif (fileToEncrypt!= null) {\r\n\t\t\tthis.start();\r\n\t\t}\r\n\t}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public void init() {\n Thread run = new Thread(new Run());\n run.start();\n }", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "@Override\n public void run(){\n try {\n // Instantiate file reader\n FileReader fr = new FileReader(f);\n @SuppressWarnings(\"resource\")\n BufferedReader br = new BufferedReader(fr);\n StringBuilder stream = new StringBuilder();\n String str = null;\n // Reads in and prints to console in put from read thread\n while ((str = br.readLine()) != null) {\n stream.append(str).append(\"\\n\");\n System.out.println(str);\n }\n // Prints the data received from main method\n System.out.println(line);\n // Closes file and buffer readers\n br.close();\n fr.close();\n // Catches input and output stream exceptions\n } catch (IOException ex){\n System.err.println(ex);\n }\n // Deletes file when finished\n if(f.exists()){\n f.delete();\n }\n }", "public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}", "public MainThread()\n {\n super();\n setPriority(1);\n setId(0x55); \n }", "private ThreadUtil() {\n \n }", "public ReadThread (InputStream in)\n {\n this.in = in;\n this.start();\n }", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "private Timer() {\n myThread = new TimerThread();\n myThread.start();\n }", "void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }", "public void start() {\n\t\tThread start = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\t//mientras Alive sea= true va a ejecutar el hilo\n\t\t\t\twhile(_alive){\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * Variable temporal que va a ser igual a la posicion actual en X+1 pixel que avanza\n\t\t\t\t * Si se pasa del máximo permitido se detiene el hilo\n\t\t\t\t */\n\t\t\t\tint temp_x = _pos_X + velocidad_X;\n\t\t\t\tif(temp_x < max_PosX && temp_x > min_PosX){\n\t\t\t\t\tsetChange();\n\t\t\t\t\t_pos_X = temp_x;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\t_alive = false;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * Variable temporal que va a ser igual a la posicion actual en Y+1 pixel que avanza\n\t\t\t\t * Si se pasa del máximo permitido se detiene el hilo\n\t\t\t\t */\n\t\t\t\tint temp_y = _pos_Y + velocidad_Y;\n\t\t\t\tif (temp_y > max_PosY && temp_y <min_PosY){\n\t\t\t\t\t_pos_Y = temp_y;\n\t\t\t\t\tsetChange();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t_alive = false;\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t//Inicia el hilo\n\t\tstart.start();\n\t\t\n\t}", "public void start() {\n\t\tif (path != null) {\n\t\t\tfileNameChain = new ByteArrayOutputStream();\n\t\t\tfileAsynctask doing = new fileAsynctask();\n\t\t\tdoing.execute(getPath());\n\t\t}\n\t}", "private void arrancarHiloCambiosVentas() {\n HiloCambiosVentas hilo = new HiloCambiosVentas();\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "@Test\n public void testRun() {\n System.out.println(\"run\");\n File_Chooser fc = new File_Chooser();\n new Thread(fc).start();\n }", "public void start() {\n thread = new Thread(this);\n thread.start();\n System.out.println(\"---\\t Ober \" + naam + \" is gestart.\");\n }", "@Override\n\t\t\t\tpublic void run() \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"reading..\" +next.getFileName());\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t//ts1.finalWrite(next.getFileName(),(int)file.length());\n\t\t\t\t\t\t\tInputStream in = new FileInputStream(readFile);\n\t\t\t\t\t\t\tint i;\n\t\t\t\t\t\t\tint fileNameLength =readFile.length();\n\t\t\t\t\t\t\tlong fileLength = file.length();\n\t\t\t\t\t\t\tlong total = (2+fileNameLength+fileLength);\n\t\t\t\t\t\t\t//System.out.println(\"toal length\" +total);\n\t\t\t\t\t\t\tqu.put((byte)total);\n\t\t\t\t\t\t\tqu.put((byte)readFile.length()); // file name length\n\t\t\t\t\t\t\tqu.put((byte)file.length()); //file content length\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int j=0;j<readFile.length();j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)readFile.charAt(j)); //writing file Name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twhile((i=in.read())!=-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)i);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tin.close();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public void startThread(){\n String message = \"Connecting to RescueNet...Please Wait\";\n showProgressDialog(message);\n connectionThread = new ConnectionThread(mwifiAdmin, handlerMain);\n connectionThread.start();\n }", "public void ativaThread() {\n\t\t\n\t\tmDialog = ProgressDialog.show(this, \"Buslocation\",\n\t\t\t\t\"Buscando coordenadas...\", false, false);\n\t\tmHandler = new Handler();\n\t\tmThread = new MinhaThread(1);\n\t\tmThread.start();\n\t}", "public ProducerThread() {\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() throws Exception {\n if (_runningThread != null) {\n throw new Exception(\"Node already running!\");\n }\n _runningThread = new Thread(this);\n _runningThread.start();\n }", "private static void ThreadCreationOldWay() {\r\n\t\tThread t1 = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"This is a runnable method done in old fashion < 1.8\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tt1.start();\r\n\t}", "tut65(int numero){\n\t\tthis.numero=numero; //me guardo un numero\n\t\t\n\t\tThread thread = new Thread(this); //Pasarle como parametro la clase runnable\n\t\tthread.start();\n\t}", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n System.out.println(Thread.currentThread().getName());\n AddDataFromFile();\n Thread.yield();\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n\n }", "MyInputStream(String name, InputStream in) {\n this.name = name;\n this.in = new BufferedInputStream(in);\n buffer = new StringBuffer(4096);\n Thread thr = new Thread(this);\n thr.setDaemon(true);\n thr.start();\n }", "public HiloThread(Dato d, int num, int inicio, int fin) {\n this.d = d; // INICIALISAMOS LA ESTANCIA DEL OBJETO CON EL RECIBIDO COMO PARAMETRO DESDE EL MAIN PARA SINCRONISAR DATOS ENTRE HILOS\n this.num = num; // DEFINIMOS EL NUMERO DE HILO \n this.i = inicio; // DEFINIMOS 'i' COMO EL PRINCIPIO DEL RANGO 'INICIO' \n this.f = fin; // DEFINIMOS 'f' COMO EL FINAL DEL RANGO 'FIN'\n }", "public void run() {\n\t\t\t\tf.start();\r\n\t\t\t}", "private void startThread() {\n\t\tif(receivethread != null && receivethread.isAlive())\n\t\t\treceivethread.interrupt();\n\n\t\t// Close datagram socket If still open\n\t\tif(udpsocket != null && udpsocket.isClosed() == false)\n\t\t\tudpsocket.close();\n\n\t\t// Open datagram socket\n\t\ttry {\n\t\t\tudpsocket = new DatagramSocket();\n\t\t\tudpsocket.setReceiveBufferSize(1024 * 1024);\n\t\t\tudpsocket.setSoTimeout(15000);\n\t\t} catch (SocketException e) {\n\t\t\tudpsocket.close();\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\t// Start Receive Thread\n\t\treceivethread = new ReceiveThread(this.udpsocket, callback);\n\t\treceivethread.start();\n\t}", "private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}", "FileSystemWatcher(FileExtractor fileExtractor) {\r\n\t\tthis.pool = Executors.newSingleThreadScheduledExecutor(tFactory);\r\n\t\tthis.fileExtractor = fileExtractor;\r\n\t}", "public void run() {\n /*\n r28 = this;\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled\n r24 = r0\n boolean r24 = r24.get()\n if (r24 == 0) goto L_0x000d\n L_0x000c:\n return\n L_0x000d:\n r6 = 0\n r17 = 0\n r14 = 0\n java.io.File r9 = new java.io.File // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r0 = r28\n java.net.URL r0 = r0.url // Catch:{ Exception -> 0x02f2 }\n r25 = r0\n java.lang.String r25 = r25.toString() // Catch:{ Exception -> 0x02f2 }\n java.lang.String r24 = r24.getTempFile(r25) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r9.<init>(r0) // Catch:{ Exception -> 0x02f2 }\n boolean r15 = r9.exists() // Catch:{ Exception -> 0x02f2 }\n anetwork.channel.entity.RequestImpl r19 = new anetwork.channel.entity.RequestImpl // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.net.URL r0 = r0.url // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r0 = r19\n r1 = r24\n r0.<init>((java.net.URL) r1) // Catch:{ Exception -> 0x02f2 }\n r24 = 0\n r0 = r19\n r1 = r24\n r0.setRetryTime(r1) // Catch:{ Exception -> 0x02f2 }\n r24 = 1\n r0 = r19\n r1 = r24\n r0.setFollowRedirects(r1) // Catch:{ Exception -> 0x02f2 }\n if (r15 == 0) goto L_0x007e\n java.lang.String r24 = \"Range\"\n java.lang.StringBuilder r25 = new java.lang.StringBuilder // Catch:{ Exception -> 0x02f2 }\n r25.<init>() // Catch:{ Exception -> 0x02f2 }\n java.lang.String r26 = \"bytes=\"\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n long r26 = r9.length() // Catch:{ Exception -> 0x02f2 }\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n java.lang.String r26 = \"-\"\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n java.lang.String r25 = r25.toString() // Catch:{ Exception -> 0x02f2 }\n r0 = r19\n r1 = r24\n r2 = r25\n r0.addHeader(r1, r2) // Catch:{ Exception -> 0x02f2 }\n L_0x007e:\n anetwork.channel.degrade.DegradableNetwork r16 = new anetwork.channel.degrade.DegradableNetwork // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n android.content.Context r24 = r24.context // Catch:{ Exception -> 0x02f2 }\n r0 = r16\n r1 = r24\n r0.<init>(r1) // Catch:{ Exception -> 0x02f2 }\n r24 = 0\n r0 = r16\n r1 = r19\n r2 = r24\n anetwork.channel.aidl.Connection r24 = r0.getConnection(r1, r2) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r1 = r28\n r1.conn = r0 // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n int r20 = r24.getStatusCode() // Catch:{ Exception -> 0x02f2 }\n if (r20 <= 0) goto L_0x00c7\n r24 = 200(0xc8, float:2.8E-43)\n r0 = r20\n r1 = r24\n if (r0 == r1) goto L_0x0121\n r24 = 206(0xce, float:2.89E-43)\n r0 = r20\n r1 = r24\n if (r0 == r1) goto L_0x0121\n r24 = 416(0x1a0, float:5.83E-43)\n r0 = r20\n r1 = r24\n if (r0 == r1) goto L_0x0121\n L_0x00c7:\n r24 = -102(0xffffffffffffff9a, float:NaN)\n java.lang.StringBuilder r25 = new java.lang.StringBuilder // Catch:{ Exception -> 0x02f2 }\n r25.<init>() // Catch:{ Exception -> 0x02f2 }\n java.lang.String r26 = \"ResponseCode:\"\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n r0 = r25\n r1 = r20\n java.lang.StringBuilder r25 = r0.append(r1) // Catch:{ Exception -> 0x02f2 }\n java.lang.String r25 = r25.toString() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n r1 = r24\n r2 = r25\n r0.notifyFail(r1, r2) // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x00ef\n r6.close() // Catch:{ Exception -> 0x0421 }\n L_0x00ef:\n if (r17 == 0) goto L_0x00f4\n r17.close() // Catch:{ Exception -> 0x0424 }\n L_0x00f4:\n if (r14 == 0) goto L_0x00f9\n r14.close() // Catch:{ Exception -> 0x0427 }\n L_0x00f9:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x011e }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x011e }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x011e }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x011e }\n monitor-exit(r25) // Catch:{ all -> 0x011e }\n goto L_0x000c\n L_0x011e:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x011e }\n throw r24\n L_0x0121:\n if (r15 == 0) goto L_0x0195\n r24 = 416(0x1a0, float:5.83E-43)\n r0 = r20\n r1 = r24\n if (r0 != r1) goto L_0x018c\n r15 = 0\n java.util.List r24 = r19.getHeaders() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n r1 = r24\n r0.removeRangeHeader(r1) // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x017a\n if (r6 == 0) goto L_0x0148\n r6.close() // Catch:{ Exception -> 0x042a }\n L_0x0148:\n if (r17 == 0) goto L_0x014d\n r17.close() // Catch:{ Exception -> 0x042d }\n L_0x014d:\n if (r14 == 0) goto L_0x0152\n r14.close() // Catch:{ Exception -> 0x0430 }\n L_0x0152:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x0177 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x0177 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x0177 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x0177 }\n monitor-exit(r25) // Catch:{ all -> 0x0177 }\n goto L_0x000c\n L_0x0177:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x0177 }\n throw r24\n L_0x017a:\n r24 = 0\n r0 = r16\n r1 = r19\n r2 = r24\n anetwork.channel.aidl.Connection r24 = r0.getConnection(r1, r2) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r1 = r28\n r1.conn = r0 // Catch:{ Exception -> 0x02f2 }\n L_0x018c:\n r24 = 200(0xc8, float:2.8E-43)\n r0 = r20\n r1 = r24\n if (r0 != r1) goto L_0x0195\n r15 = 0\n L_0x0195:\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x01d8\n if (r6 == 0) goto L_0x01a6\n r6.close() // Catch:{ Exception -> 0x0433 }\n L_0x01a6:\n if (r17 == 0) goto L_0x01ab\n r17.close() // Catch:{ Exception -> 0x0436 }\n L_0x01ab:\n if (r14 == 0) goto L_0x01b0\n r14.close() // Catch:{ Exception -> 0x0439 }\n L_0x01b0:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x01d5 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x01d5 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x01d5 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x01d5 }\n monitor-exit(r25) // Catch:{ all -> 0x01d5 }\n goto L_0x000c\n L_0x01d5:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x01d5 }\n throw r24\n L_0x01d8:\n r12 = 0\n if (r15 != 0) goto L_0x0250\n java.io.BufferedOutputStream r7 = new java.io.BufferedOutputStream // Catch:{ Exception -> 0x02f2 }\n java.io.FileOutputStream r24 = new java.io.FileOutputStream // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r0.<init>(r9) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r7.<init>(r0) // Catch:{ Exception -> 0x02f2 }\n r6 = r7\n L_0x01eb:\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n java.util.Map r24 = r24.getConnHeadFields() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n r1 = r20\n r2 = r24\n long r22 = r0.parseContentLength(r1, r2, r12) // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n anetwork.channel.aidl.ParcelableInputStream r14 = r24.getInputStream() // Catch:{ Exception -> 0x02f2 }\n if (r14 != 0) goto L_0x0279\n r24 = -103(0xffffffffffffff99, float:NaN)\n java.lang.String r25 = \"input stream is null.\"\n r0 = r28\n r1 = r24\n r2 = r25\n r0.notifyFail(r1, r2) // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x021e\n r6.close() // Catch:{ Exception -> 0x043c }\n L_0x021e:\n if (r17 == 0) goto L_0x0223\n r17.close() // Catch:{ Exception -> 0x043f }\n L_0x0223:\n if (r14 == 0) goto L_0x0228\n r14.close() // Catch:{ Exception -> 0x0442 }\n L_0x0228:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x024d }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x024d }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x024d }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x024d }\n monitor-exit(r25) // Catch:{ all -> 0x024d }\n goto L_0x000c\n L_0x024d:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x024d }\n throw r24\n L_0x0250:\n java.io.RandomAccessFile r18 = new java.io.RandomAccessFile // Catch:{ Exception -> 0x02f2 }\n java.lang.String r24 = \"rw\"\n r0 = r18\n r1 = r24\n r0.<init>(r9, r1) // Catch:{ Exception -> 0x02f2 }\n long r12 = r18.length() // Catch:{ Exception -> 0x0474, all -> 0x046f }\n r0 = r18\n r0.seek(r12) // Catch:{ Exception -> 0x0474, all -> 0x046f }\n java.io.BufferedOutputStream r7 = new java.io.BufferedOutputStream // Catch:{ Exception -> 0x0474, all -> 0x046f }\n java.nio.channels.FileChannel r24 = r18.getChannel() // Catch:{ Exception -> 0x0474, all -> 0x046f }\n java.io.OutputStream r24 = java.nio.channels.Channels.newOutputStream(r24) // Catch:{ Exception -> 0x0474, all -> 0x046f }\n r0 = r24\n r7.<init>(r0) // Catch:{ Exception -> 0x0474, all -> 0x046f }\n r17 = r18\n r6 = r7\n goto L_0x01eb\n L_0x0279:\n r10 = -1\n r21 = 0\n r24 = 2048(0x800, float:2.87E-42)\n r0 = r24\n byte[] r8 = new byte[r0] // Catch:{ Exception -> 0x02f2 }\n L_0x0282:\n int r10 = r14.read(r8) // Catch:{ Exception -> 0x02f2 }\n r24 = -1\n r0 = r24\n if (r10 == r0) goto L_0x0354\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x02d8\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r24.cancel() // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x02a6\n r6.close() // Catch:{ Exception -> 0x0445 }\n L_0x02a6:\n if (r17 == 0) goto L_0x02ab\n r17.close() // Catch:{ Exception -> 0x0448 }\n L_0x02ab:\n if (r14 == 0) goto L_0x02b0\n r14.close() // Catch:{ Exception -> 0x044b }\n L_0x02b0:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x02d5 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x02d5 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x02d5 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x02d5 }\n monitor-exit(r25) // Catch:{ all -> 0x02d5 }\n goto L_0x000c\n L_0x02d5:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x02d5 }\n throw r24\n L_0x02d8:\n int r21 = r21 + r10\n r24 = 0\n r0 = r24\n r6.write(r8, r0, r10) // Catch:{ Exception -> 0x02f2 }\n r0 = r21\n long r0 = (long) r0 // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n long r24 = r24 + r12\n r0 = r28\n r1 = r24\n r3 = r22\n r0.notifyProgress(r1, r3) // Catch:{ Exception -> 0x02f2 }\n goto L_0x0282\n L_0x02f2:\n r11 = move-exception\n L_0x02f3:\n java.lang.String r24 = \"anet.DownloadManager\"\n java.lang.String r25 = \"file download failed!\"\n r26 = 0\n r27 = 0\n r0 = r27\n java.lang.Object[] r0 = new java.lang.Object[r0] // Catch:{ all -> 0x03ee }\n r27 = r0\n r0 = r24\n r1 = r25\n r2 = r26\n r3 = r27\n anet.channel.util.ALog.e(r0, r1, r2, r11, r3) // Catch:{ all -> 0x03ee }\n r24 = -104(0xffffffffffffff98, float:NaN)\n java.lang.String r25 = r11.toString() // Catch:{ all -> 0x03ee }\n r0 = r28\n r1 = r24\n r2 = r25\n r0.notifyFail(r1, r2) // Catch:{ all -> 0x03ee }\n if (r6 == 0) goto L_0x0322\n r6.close() // Catch:{ Exception -> 0x0460 }\n L_0x0322:\n if (r17 == 0) goto L_0x0327\n r17.close() // Catch:{ Exception -> 0x0463 }\n L_0x0327:\n if (r14 == 0) goto L_0x032c\n r14.close() // Catch:{ Exception -> 0x0466 }\n L_0x032c:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x0351 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x0351 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x0351 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x0351 }\n monitor-exit(r25) // Catch:{ all -> 0x0351 }\n goto L_0x000c\n L_0x0351:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x0351 }\n throw r24\n L_0x0354:\n r6.flush() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x039a\n if (r6 == 0) goto L_0x0368\n r6.close() // Catch:{ Exception -> 0x044e }\n L_0x0368:\n if (r17 == 0) goto L_0x036d\n r17.close() // Catch:{ Exception -> 0x0451 }\n L_0x036d:\n if (r14 == 0) goto L_0x0372\n r14.close() // Catch:{ Exception -> 0x0454 }\n L_0x0372:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x0397 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x0397 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x0397 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x0397 }\n monitor-exit(r25) // Catch:{ all -> 0x0397 }\n goto L_0x000c\n L_0x0397:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x0397 }\n throw r24\n L_0x039a:\n java.io.File r24 = new java.io.File // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.lang.String r0 = r0.filePath // Catch:{ Exception -> 0x02f2 }\n r25 = r0\n r24.<init>(r25) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r9.renameTo(r0) // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.lang.String r0 = r0.filePath // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r0 = r28\n r1 = r24\n r0.notifySuccess(r1) // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x03bc\n r6.close() // Catch:{ Exception -> 0x0457 }\n L_0x03bc:\n if (r17 == 0) goto L_0x03c1\n r17.close() // Catch:{ Exception -> 0x045a }\n L_0x03c1:\n if (r14 == 0) goto L_0x03c6\n r14.close() // Catch:{ Exception -> 0x045d }\n L_0x03c6:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x03eb }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x03eb }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x03eb }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x03eb }\n monitor-exit(r25) // Catch:{ all -> 0x03eb }\n goto L_0x000c\n L_0x03eb:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x03eb }\n throw r24\n L_0x03ee:\n r24 = move-exception\n L_0x03ef:\n if (r6 == 0) goto L_0x03f4\n r6.close() // Catch:{ Exception -> 0x0469 }\n L_0x03f4:\n if (r17 == 0) goto L_0x03f9\n r17.close() // Catch:{ Exception -> 0x046b }\n L_0x03f9:\n if (r14 == 0) goto L_0x03fe\n r14.close() // Catch:{ Exception -> 0x046d }\n L_0x03fe:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r25 = r0\n android.util.SparseArray r25 = r25.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x041e }\n r26 = r0\n android.util.SparseArray r26 = r26.taskMap // Catch:{ all -> 0x041e }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x041e }\n r27 = r0\n r26.remove(r27) // Catch:{ all -> 0x041e }\n monitor-exit(r25) // Catch:{ all -> 0x041e }\n throw r24\n L_0x041e:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x041e }\n throw r24\n L_0x0421:\n r24 = move-exception\n goto L_0x00ef\n L_0x0424:\n r24 = move-exception\n goto L_0x00f4\n L_0x0427:\n r24 = move-exception\n goto L_0x00f9\n L_0x042a:\n r24 = move-exception\n goto L_0x0148\n L_0x042d:\n r24 = move-exception\n goto L_0x014d\n L_0x0430:\n r24 = move-exception\n goto L_0x0152\n L_0x0433:\n r24 = move-exception\n goto L_0x01a6\n L_0x0436:\n r24 = move-exception\n goto L_0x01ab\n L_0x0439:\n r24 = move-exception\n goto L_0x01b0\n L_0x043c:\n r24 = move-exception\n goto L_0x021e\n L_0x043f:\n r24 = move-exception\n goto L_0x0223\n L_0x0442:\n r24 = move-exception\n goto L_0x0228\n L_0x0445:\n r24 = move-exception\n goto L_0x02a6\n L_0x0448:\n r24 = move-exception\n goto L_0x02ab\n L_0x044b:\n r24 = move-exception\n goto L_0x02b0\n L_0x044e:\n r24 = move-exception\n goto L_0x0368\n L_0x0451:\n r24 = move-exception\n goto L_0x036d\n L_0x0454:\n r24 = move-exception\n goto L_0x0372\n L_0x0457:\n r24 = move-exception\n goto L_0x03bc\n L_0x045a:\n r24 = move-exception\n goto L_0x03c1\n L_0x045d:\n r24 = move-exception\n goto L_0x03c6\n L_0x0460:\n r24 = move-exception\n goto L_0x0322\n L_0x0463:\n r24 = move-exception\n goto L_0x0327\n L_0x0466:\n r24 = move-exception\n goto L_0x032c\n L_0x0469:\n r25 = move-exception\n goto L_0x03f4\n L_0x046b:\n r25 = move-exception\n goto L_0x03f9\n L_0x046d:\n r25 = move-exception\n goto L_0x03fe\n L_0x046f:\n r24 = move-exception\n r17 = r18\n goto L_0x03ef\n L_0x0474:\n r11 = move-exception\n r17 = r18\n goto L_0x02f3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: anetwork.channel.download.DownloadManager.DownloadTask.run():void\");\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "@Override\n\tpublic void transferFile() throws Exception {\n\t\tnew Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"开始上传\");\n\t\t\t\t\tsocket=new Socket(ip,port);\n\t\t\t\t\tInputStream in=socket.getInputStream();\n\t\t\t\t\tOutputStream out=socket.getOutputStream();\n\t\t\t\t\tBufferedInputStream input=new BufferedInputStream(in);\n\t\t\t\t\twhile(true)\n\t\t\t\t\t{\n\t\t\t\t\t\tFileInputStream fis=new FileInputStream(file);\n\t\t\t\t\t\tDataInputStream dis=new DataInputStream(new BufferedInputStream(fis));\n\t\t\t\t\t\tbyte[] buf=new byte[8192];\n\t\t\t\t\t\tDataOutputStream ps=new DataOutputStream(out);\n\t\t\t\t\t\twhile(true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\tint read=0;\n\t\t\t\t\t\t\tif(dis!=null){\n\t\t\t\t\t\t\t\tread=fis.read(buf);\n\t\t\t\t\t\t\t\tdownLoadFileSize+=read;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(read==-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttimer.cancel();\n\t\t\t\t\t\t\t\tMessage msg=new Message();\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putInt(\"percent\",100 );\n\t\t\t\t\t\t\t\tmsg.setData(bundle);\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tps.write(buf,0,read);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tps.flush();\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t\tdis.close();\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\tSystem.out.println(\"上传完成\");\n\t\t\t\t\t\t \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}).start();\n\t}", "public static void main(String[] args) {\n CreateRunnable createRunnable = new CreateRunnable();\n Thread thread = new Thread(createRunnable);\n thread.start();\n }", "public MultiThreadedTabuSearch() {}", "private void startRead() {\n ExecutorService service = Executors.newFixedThreadPool(this.countReadThreads);\n while (!this.files.isEmpty() || !this.isWorkSearch()) {\n service.submit(this.threads.getReadThread());\n }\n service.shutdown();\n }", "public void run() {\n\t\t//Puede ser cualquier codigo, he aqui un ejemplo:\n\t\t\n\t\twhile (true){\n\t\t\tSystem.out.println(\"Soy un Thread/tut65 #: \"+numero);\n\t\t\t\n\t\t\t//Esperar 1seg.\n\t\t\ttry {Thread.sleep(1000);} \n\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\n\t\t}\n\t}", "public void ListenThread() \n {\n Thread t = new Thread(new IncomingReader(writer, reader));\n t.start();\n \n }", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "private Thread startTestThread(Runnable runnable) {\n Thread t = new Thread(runnable);\n t.setDaemon(true);\n return t;\n }", "private ThreadUtil() {\n }", "public boolean startExportThread(File exportFile, Resources resource) {\r\n\r\n this.file = exportFile;\r\n this.resource = resource;\r\n new Thread(this).start();\r\n return (true);\r\n }", "CarThread(Car car) {\n this.car = car;\n thread = new Thread(this);\n }", "private void Thread() {\n\n Thread thread = new Thread ( new Runnable() {\n \n @Override\n public void run() {\n \n String mensagem = \"\";\n\n try {\n \n InputStreamReader isr = new InputStreamReader(socket.getInputStream());\n BufferedReader br = new BufferedReader(isr);\n\n while ((mensagem = br.readLine()) != null) {\n\n enviarMensagem(mensagem);\n }\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n });\n //para iniciar a thread\n thread.start();\n }", "public void startBackgroundThread() {\n this.backgroundThread = new HandlerThread(\"DepthDecoderThread\");\n this.backgroundThread.start();\n this.backgroundHandler = new Handler(backgroundThread.getLooper());\n }", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "public static void threadloader()\r\n\r\n\t{\r\n\t\tThread threadloadData = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadData(inputFile1);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading data: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tThread threadloadPattern = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadPattern(inputFile2);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading pattern: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthreadloadData.run();\r\n\t\tthreadloadPattern.run();\r\n\t}", "public Thread getThread();", "public FrameJogo() {\n initComponents();\n createBufferStrategy(2);\n Thread t = new Thread(this);\n t.start();\n }", "protected FileMonitor() {\n /* Create timer, run timer thread as daemon */\n timer = new Timer(true);\n \n /* Create timer entries */\n timerEntries = new Hashtable<String, FileMonitorTask>();\n }", "FileLoader createJob(Reader reader);", "public RecorderThread (Context context) {\n\tthis.con = context;\n\trecording = true;\n\tsetDaemon(true);\n}", "public FileMonitor(String file) {\n this.file = new java.io.File(file);\n t = new Timer();\n }", "private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public ImageLoader(Context context){\n fileCache=new FileCache(context);\n executorService=Executors.newFixedThreadPool(5);\n }", "private void newListener() {\n (new Thread(this)).start();\n }" ]
[ "0.6898261", "0.67540085", "0.6207001", "0.6195683", "0.61819077", "0.60546166", "0.6047581", "0.60410225", "0.6040991", "0.60385954", "0.60360825", "0.6031043", "0.5994602", "0.59922004", "0.58963656", "0.5889763", "0.5887079", "0.58830994", "0.5854798", "0.58528", "0.5838042", "0.5821116", "0.5807033", "0.5796085", "0.57905114", "0.57781905", "0.57755303", "0.57415545", "0.5716388", "0.5714916", "0.57126266", "0.5709404", "0.5678234", "0.5673539", "0.56597406", "0.5659512", "0.56595004", "0.5659201", "0.56123817", "0.56012297", "0.55843914", "0.5584261", "0.558275", "0.55590695", "0.5557665", "0.5552718", "0.55473435", "0.55459815", "0.5516062", "0.55021983", "0.54909366", "0.54821724", "0.5480792", "0.5478895", "0.5476201", "0.54558533", "0.5426545", "0.5421171", "0.5403481", "0.539023", "0.5388422", "0.5388422", "0.5388343", "0.53836095", "0.5382706", "0.5382372", "0.5380502", "0.53787774", "0.5376579", "0.5369097", "0.5367882", "0.5365668", "0.53623873", "0.53620416", "0.5361484", "0.53490317", "0.5348825", "0.5346701", "0.5344926", "0.533731", "0.53357637", "0.5328701", "0.5325736", "0.5321572", "0.53208005", "0.5320507", "0.53192383", "0.5319188", "0.52876514", "0.52785265", "0.52726805", "0.5270205", "0.5260469", "0.5260466", "0.52560765", "0.52496034", "0.5249163", "0.52474594", "0.524382", "0.52417535", "0.524169" ]
0.0
-1
cria outra thread pra sua tela de espera
@Override public void run() { //cria a tela de espera e mostra ela JDialogLoading jd = new JDialogLoading(null, false); jd.setVisible(true); try { t1.join();//fica esperando a primeira thread acabar } catch (InterruptedException ex) { Logger.getLogger(JFrameSale_1.class.getName()).log(Level.SEVERE, null, ex); } // quando acabar fecha a janela de espera, podes fazer outras coisas aqui jd.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ThreadStart createThreadStart();", "public void createThread() {\n }", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }", "private Thread createThreadFor(Agent ag) {\n ProcessData data = getDataFor(ag);\n\n data.thread = new Thread(threadGroup, ag);\n data.thread.setPriority(THREAD_PRIORITY);\n\n return data.thread;\n }", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "public IThread createThread() throws IllegalWriteException, BBException;", "NetThread(){}", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public synchronized void start(){\n if(jogoAtivo) return;\n jogoAtivo = true;\n thread = new Thread(this);\n thread.start();\n }", "void startThread();", "private static void ThreadCreationOldWay() {\r\n\t\tThread t1 = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"This is a runnable method done in old fashion < 1.8\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tt1.start();\r\n\t}", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "public MainThread()\n {\n super();\n setPriority(1);\n setId(0x55); \n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "public void initReloj(){\r\n Thread r1 = new Thread(this,\"Reloj\");\r\n r1.start();\r\n }", "public void start () {\r\n // Declaras un hilo\r\n Thread th = new Thread (this);\r\n // Empieza el hilo\r\n th.start ();\r\n }", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "public JanelaThread() {\n initComponents();\n }", "public void setThread(Thread t);", "public void ativaThread() {\n\t\t\n\t\tmDialog = ProgressDialog.show(this, \"Buslocation\",\n\t\t\t\t\"Buscando coordenadas...\", false, false);\n\t\tmHandler = new Handler();\n\t\tmThread = new MinhaThread(1);\n\t\tmThread.start();\n\t}", "public Thread getThread();", "public void start() {\n // Declaras un hilo\n Thread th = new Thread(this);\n // Empieza el hilo\n th.start();\n }", "public void start(){\n hiloAux = new Thread(this);\n hiloAux.start();\n }", "public Thread startThread() {\n Thread thread = createThread();\n thread.start();\n return thread;\n }", "private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}", "tut65(int numero){\n\t\tthis.numero=numero; //me guardo un numero\n\t\t\n\t\tThread thread = new Thread(this); //Pasarle como parametro la clase runnable\n\t\tthread.start();\n\t}", "public abstract AbstractSctlThreadEntry addThread();", "private ThreadUtil() {\n \n }", "private Timer() {\n myThread = new TimerThread();\n myThread.start();\n }", "private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public Thread getThread(int type, String name, Runnable r);", "@WorkerThread\n public abstract void zzaso();", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "private Thread startTestThread(Runnable runnable) {\n Thread t = new Thread(runnable);\n t.setDaemon(true);\n return t;\n }", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "public void start() {\n thread = new Thread(this);\n thread.start();\n System.out.println(\"---\\t Ober \" + naam + \" is gestart.\");\n }", "@Override\n\tpublic void run() {\n\t\tthis.avancaPessoa(200, 4, 6);\n\t\ttry {\n\t\t\tsemaforo.acquire();\n\t\t\tthis.portaPessoa(1, 2);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsemaforo.release();\n\t\t\tthis.passaPessoa();\n\t\t}\n\t}", "public void startThread(VirtualThread newThread) {\n\t\tlog.debug(\"**** CREATING A THREAD? ****\");\n\t}", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "private void arrancarHiloCambiosVentas() {\n HiloCambiosVentas hilo = new HiloCambiosVentas();\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "private void arrancaHiloPrincipal() {\n //Creo objeto hilo principal\n HiloPrincipal hilo = new HiloPrincipal(this);\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public void start(){\n thread.start();\n }", "public void run() {\n\t\t//Puede ser cualquier codigo, he aqui un ejemplo:\n\t\t\n\t\twhile (true){\n\t\t\tSystem.out.println(\"Soy un Thread/tut65 #: \"+numero);\n\t\t\t\n\t\t\t//Esperar 1seg.\n\t\t\ttry {Thread.sleep(1000);} \n\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\n\t\t}\n\t}", "public ProducerThread() {\n }", "private Thread createThread() {\n return new Thread(this::_loadCatalog, \"CDS Hooks Catalog Retrieval\"\n );\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "protected Thread createPlayerThread()\n\t{\n\t\treturn new Thread(this, \"Audio player thread\");\t\n\t}", "private void tokenRingThread() throws Exception {\n\t\tThread thread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttokenRing.init();\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\t}", "private void iniciarHilo() {\n tarea = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n if (encendido) { // se activa la variable encendido si se presiona el boton iniciar\n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n mili++;\n if (mili >= 999) {\n seg++;\n mili = 0;\n }\n if (seg >= 59) {\n minutos++;\n seg = 0;\n }\n h.post(new Runnable() {\n @Override\n public void run() {\n String m = \"\", s = \"\", mi = \"\";\n if (mili < 10) { //Modificar la variacion de los 0\n m = \"00\" + mili;\n } else if (mili <= 100) {\n m = \"0\" + mili;\n } else {\n m = \"\" + mili;\n }\n if (seg <= 10) {\n s = \"0\" + seg;\n } else {\n s = \"\" + seg;\n }\n if (minutos <= 10) {\n mi = \"0\" + minutos;\n } else {\n mi = \"\" + minutos;\n }\n crono.setText(mi + \":\" + s + \":\" + m);\n }\n });\n }\n }\n }\n });\n tarea.start();\n }", "public static void addThread(Thread athread){\n Threads.add(athread);\n }", "private ShutdownThread() {}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(mThread==null){\n\t\t\t\t\tmThread=new Thread(runnable);\n\t\t\t\t\tmThread.start();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(getApplication(), getApplication().getString(R.string.thread_started), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}", "public void ponerMarchaTren() {\n\n try {\n this.semLugarTren.acquire(this.capacidadTren); \n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public static JSqVM sq_newthread(JSqVM friend, int initialStackSize) throws JSquirrelException {\r\n\t\tlong handle = sq_newthread_native(friend.m_nativeHandle, initialStackSize);\r\n\t\tif (handle == 0)\r\n\t\t\tthrow new JSquirrelException(\"Could not create a new thread.\");\r\n\t\treturn new JSqVM(handle);\r\n\t}", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public void startThread(){\n String message = \"Connecting to RescueNet...Please Wait\";\n showProgressDialog(message);\n connectionThread = new ConnectionThread(mwifiAdmin, handlerMain);\n connectionThread.start();\n }", "public void thread() {\n\t\tnew Thread(first).start();\n\t\trest.thread();\n\t}", "public void start(){\r\n\t\tnew Thread(\r\n\t new Runnable() {\r\n\t public void run() {\r\n\t \twhile(true){\r\n\t \t\t try {\r\n\t \t Thread.sleep(200);\r\n\t \t } catch (Exception e) {\r\n\t \t e.printStackTrace();\r\n\t \t }\r\n\t \t // Functions.DEBUG(\r\n\t \t // \"child thread \" + new Date(System.currentTimeMillis()));\r\n\t \t repaint();\r\n\t \t}\r\n\t }\r\n\t }).start();\r\n\t}", "public TicketBoothClient()\n {\n Thread myThread = new Thread(this);\n myThread.start();\n }", "@Override\n public void run() {\n try {\n //Indica que el hilo comienza\n System.out.println(\"Nombre: \" + getName() + \" ha comenzado\");\n //Crearemos en total 5 hilos\n while (cont <= 5) {\n //Numero de hilo\n cont++; \n //Bucle que indica que cada hilo se esta procesando\n for (int i = 0; i < 10; i++) {\n System.out.println(getName() + \" procesando\");\n sleep((long) ((Math.random() * (600 - 100)) + 100));\n } \n //Dentro de cada hilo crea el siguiente\n hilo = new Main(\"Hilo\" + cont);\n //Condicional para que arranque solo hasta 5 hilos\n if (cont <= 5) {\n //Inicia el siguiente hilo\n hilo.start();\n //Espera a que termine el hilo hijo\n hilo.join();\n }\n System.out.println(getName() + \" ha terminado\");\n }\n } catch (Throwable ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n\n }\n }", "public static void spielstart() {\n\n\t\tThread thread = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tgameboard = new GameFrame();\n\n\t\t\t}\n\t\t};\n\n\t\tthread.start();\n\n\t}", "private void newListener() {\n (new Thread(this)).start();\n }", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public ThreadState(KThread thread) \n {\n this.thread = thread;\n setPriority(priorityDefault);\n }", "private ThreadUtil() {\n }", "@Override\n public void run (){\n System.out.println(\"soy \" +Thread.currentThread().getName());\n Recurso.uso();\n try {\n Thread.sleep( 2000 );\n } catch (InterruptedException e) {\n };\n }", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "SchreibThread(Puffer puf) {\n this.puf = puf;\n }", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public void init() {\n Thread run = new Thread(new Run());\n run.start();\n }", "ThreadEnd createThreadEnd();", "default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n Integer autoArchiveDuration) {\n return createThread(channelType, name, autoArchiveDuration, null);\n }", "public static void main(String[] args) {\n\t\n System.out.println(ANSI_Black+\"Hello from Main thread\");\n\tThread extendThread = new ThreadExtendsExample();\n\textendThread.setName(\"ThreadByExtends1~\");\n\textendThread.start();\n\t\n\t//java.lang.IllegalThreadStateException, same thread cannot be started again\n\t//extendThread.start();\n\tThread extendThread2 = new ThreadExtendsExample();\n\textendThread2.setName(\"ThreadByExtends2~\");\n\textendThread2.start();\n\t\n\t\n\t\n\tThreadImplExample implThread = new ThreadImplExample();\n\timplThread.run();\n\t\n\t\n\tThread runnableThread = new Thread(new ThreadImplExample());\n\trunnableThread.start();\n\t\n\t\n\t\n\tSystem.out.println(ANSI_Black+\"Hello Again from Main thread\");\n\t\n}", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "public static void initCommunicationClientThread(){\r\n new CommunicationClientThread();\r\n }", "public void crearGloboAmarillo(int tiempo){ \n GloboAmarillo globoa = new GloboAmarillo();\n globoslista.add(globoa);\n double posicionx = generarPosicionX();\n globoa.fijarPosicion(posicionx);\n gpane.getChildren().addAll(globoa);\n MoverGlobo mv = new MoverGlobo(globoa,tiempo);\n mov= new Thread(mv);\n mov.start(); \n }", "public void start() {\n\t\tThread start = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\t//mientras Alive sea= true va a ejecutar el hilo\n\t\t\t\twhile(_alive){\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * Variable temporal que va a ser igual a la posicion actual en X+1 pixel que avanza\n\t\t\t\t * Si se pasa del máximo permitido se detiene el hilo\n\t\t\t\t */\n\t\t\t\tint temp_x = _pos_X + velocidad_X;\n\t\t\t\tif(temp_x < max_PosX && temp_x > min_PosX){\n\t\t\t\t\tsetChange();\n\t\t\t\t\t_pos_X = temp_x;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\t_alive = false;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * Variable temporal que va a ser igual a la posicion actual en Y+1 pixel que avanza\n\t\t\t\t * Si se pasa del máximo permitido se detiene el hilo\n\t\t\t\t */\n\t\t\t\tint temp_y = _pos_Y + velocidad_Y;\n\t\t\t\tif (temp_y > max_PosY && temp_y <min_PosY){\n\t\t\t\t\t_pos_Y = temp_y;\n\t\t\t\t\tsetChange();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t_alive = false;\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t//Inicia el hilo\n\t\tstart.start();\n\t\t\n\t}", "default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration,\n Boolean inviteable) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), inviteable);\n }", "public void addThread(Thread t) {\n\t\tt.setPriority(1);\n\t\tqueue.addLast(t);\n\n\t}", "public void doWork() {\n Thread thread = new Thread( hva != null ? hva : this);\n thread.start();\n }", "public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }", "public ImageThread() {\n\t}", "public MyRunnable(){\t\n\t}", "CarThread(Car car) {\n this.car = car;\n thread = new Thread(this);\n }", "@Override\n public void threadStarted() {\n }", "private void wczytajPlanszeZdalnie()\n\t{\n\t\tPobraniePlanszy pobranie = new PobraniePlanszy(pojazd.ktoryPoziom(), this, port, host);\n\t\tThread zadanie = new Thread(pobranie);\n\t\tzadanie.start();\t\n\t}", "default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n Integer autoArchiveDuration,\n Boolean inviteable) {\n return new ServerThreadChannelBuilder(this, channelType, name)\n .setAutoArchiveDuration(autoArchiveDuration)\n .setInvitableFlag(inviteable).create();\n }", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public KThread nextThread() \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n\t\t\tif (waitQueue.isEmpty())\n\t\t\t{\n\t\t\t\towner=null;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\towner=waitQueue.peek(); //Set the head of the waitQueue as owner\n\t\t\tThreadState waiterState = getThreadState(owner);\n\t\t\tgetThreadState(owner).acquire(this); //Make the new owner acquire the queue\n\t\t\treturn waitQueue.poll(); //return next thread\n\t\t}", "public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}", "default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), null);\n }", "public UCharacterThreadTest()\n {\n }" ]
[ "0.7651856", "0.76175076", "0.7090413", "0.6912405", "0.68458796", "0.6818605", "0.6806083", "0.67932916", "0.6629942", "0.66037226", "0.6549594", "0.6514127", "0.65085816", "0.6493986", "0.64769703", "0.64767087", "0.6463867", "0.6418317", "0.6386439", "0.63838255", "0.6352847", "0.6336859", "0.6331876", "0.63236344", "0.62538975", "0.6236786", "0.6205733", "0.6191701", "0.61583674", "0.61557376", "0.6111471", "0.6110897", "0.6110811", "0.61093724", "0.6105278", "0.61042017", "0.6102775", "0.60843337", "0.60529274", "0.6050314", "0.60452366", "0.60287654", "0.6009821", "0.5997848", "0.59927034", "0.59877044", "0.5987703", "0.5950592", "0.59491664", "0.59447813", "0.59323925", "0.5923808", "0.592341", "0.59228545", "0.5913328", "0.5905786", "0.5890484", "0.5867567", "0.5861766", "0.5845603", "0.5841467", "0.5837797", "0.5837155", "0.5828337", "0.5824269", "0.58194095", "0.5817416", "0.58029693", "0.5800107", "0.57933795", "0.5791317", "0.5787074", "0.57778347", "0.5777476", "0.57763946", "0.57744455", "0.5764686", "0.57644755", "0.5764353", "0.57633704", "0.5762567", "0.57592887", "0.57583505", "0.5757895", "0.57407737", "0.5736988", "0.57366765", "0.57175535", "0.5712997", "0.5706022", "0.57038033", "0.5702587", "0.56888145", "0.567591", "0.5672649", "0.56720334", "0.56694824", "0.5657534", "0.5656744", "0.5654317", "0.5653784" ]
0.0
-1
Creates the pages of the multipage editor.
protected void createPages() { createIntroEditor(); createPageMainEditor(); createPageController(); createCssEditor(); createPageTextEditor(); refreshPageMainEditor(); refreshPageControllerEditor(); refreshCssEditor(); setDirty(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "public void addPages() {\n\t\tpage = new NewTotoriWizardPage(selection);\n\t\taddPage(page);\n\t}", "public void addPages() {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\t\n\t\tDb db = loadDBParams();\n\t\tDBConnection dbConn = new DBConnection();\n\t\tConnection connection = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = dbConn.loadDriver(proj.getLocation()+\"/\"+db.getDriverClassPath(), db.getDriverClass(), db.getDatabaseURL(), db.getUserName(), db.getPassWord());\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tpage = new SmartNewWizardPage(selection, connection, proj.getLocation().toString());\n\t\taddPage(page);\n\n\t}", "@Override\n\tpublic void addPages() {\n\t\t_fileWizard = new NewPlotFilenameWizardPage(selection);\n\t\t_scaleWizard = new ScaleWizardPage(selection);\n\t\t_coastWizard = new CoastWizardPage(selection);\n\t\t_gridWizard = new GridWizardPage(selection);\n\n\t\t// check there's ETOPO data before we add the page\n\t\t_etopoWizard = new ETOPOWizardPage(selection);\n\n\t\taddPage(_fileWizard);\n\t\taddPage(_scaleWizard);\n\t\taddPage(_coastWizard);\n\t\taddPage(_gridWizard);\n\t\tif (_etopoWizard.isAvailable())\n\t\t\taddPage(_etopoWizard);\n\t}", "public void addPages() {\t\t\n\t\tpage1 = new Opera2ActionsTransformationWizardPage1(selection, operaModel);\n\t\taddPage(page1);\t\n\t}", "public void addPages() {\n //super.addPages(); //<--- notice we're overriding here\n mainPage = new NewTargetWizardPage(\"newFilePage1\", getSelection());//$NON-NLS-1$\n mainPage.setTitle(TITLE);\n mainPage.setDescription(DESCRIPTION); \n addPage(mainPage);\n }", "@Override\n\tpublic void addPages() {\n\t\tthis.mainPage = new SNLFilePage(this.workbench, this.selection);\n\t\tthis.addPage(this.mainPage);\n\t}", "public void addPages() {\n\t\twizardPage = new WizardNewProjectCreationPage(\n\t\t\"NewExampleComSiteProject\");\n\t\twizardPage.setDescription(\"Create a new Example.com Site Project.\");\n\t\twizardPage.setTitle(\"New Example.com Site Project\");\n\t\taddPage(wizardPage);\n\t}", "@Override\r\n\tpublic void addPages() {\n\t\tprojectPage = new NewProjectWizardPage();\r\n\t\taddPage(projectPage);\r\n\t}", "Page createPage();", "@Override\n public void addPages() {\n super.addPages();\n page1 = new NewReviewWizardPage();\n addPage(page1);\n }", "private final void createAppPages() {\r\n\t\t//Instantiate Page objects that have no associated test properties\r\n\t\t//Note that if a test DOES need to specify test properties for one of these pages\r\n\t\t// (e.g., search terms), it can create its own local version of the page, and pass\r\n\t\t// the pagePropertiesFilenameKey argument, OR create it here, by calling createPage\r\n\t\t// instead of createStaticPage\r\n\r\n\t\t//Can also instantiate regular (i.e., with associated test properties) DD-specific\r\n\t\t// Page objects here, but typically it is best for the test or utility methods to do that;\r\n\t\t// if we do it here we may end up creating Page objects that never get used.\r\n }", "@Override\n public void createPageControls(Composite pageContainer) {\n fSelectionPage.createControl(pageContainer);\n }", "public abstract void addCustomPages();", "public void addPage() {\n Context context = App.getContext();\n //get index for new current page\n int index = 0;\n if (currentPage != null) {\n index = currentPage.getIndex() + 1;\n }\n if(currentPage == null || !currentPage.isPageEmpty()){\n //add page to template\n currentPage = new TemplatePage(index);\n currentTemplate.addPage(currentPage);\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View newView = inflater.inflate(R.layout.new_page, null);\n //Add page to the list so we keep track of the pages for printing\n pageViews.add(newView.findViewById(R.id.linearLayoutBody));\n //Add new page under last\n linearLayoutPdf.addView(newView, linearLayoutPdf.getChildCount());\n //focus on new page\n linearLayoutBody = newView.findViewById(R.id.linearLayoutBody);\n //Number the page\n linearLayoutBody.setTag(currentPage);\n TextView footer = linearLayoutBody.findViewById(R.id.footer);\n footer.setText(\"Page \" + (index + 1));\n //log\n LogManager.reportStatus(context, \"INSPECTOR\", \"onAddPage\");\n //add slots\n if(!isLoading){\n isLoading = true;\n int slot = 16;\n while (slot > 0){\n addSpacer(0);\n slot = slot - 1;\n }\n isLoading = false;\n }\n } else{\n //do nothing, current page is empty\n LogManager.reportStatus(context, \"INSPECTOR\", \"pageNotAdded:PageEmpty\");\n }\n }", "public void setPages(int pages) {\n this.pages = pages;\n }", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "public void setPages(int pages) {\n this.pages = pages;\n }", "private Page createPage() throws IOException {\n\n Page page = new Page(DenseLayerPath + indexkey + \"dense_\" + (++noPages) + \".class\");\n saveindex();\n return page;\n }", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "private void createPaginationPageFactory() {\n pdfViewer.setPageFactory(pageNumber -> {\n if (currentFile.get() == null) {\n return null ;\n } else {\n if (pageNumber >= currentFile.get().getNumPages() || pageNumber < 0) {\n return null ;\n } else {\n updateImage(currentFile.get(), pageNumber);\n return scroller;\n }\n }\n });\n }", "public void addPage(String name, String park);", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}", "public NewPageWizard(IXWikiSpace sapce)\n {\n super();\n setWindowTitle(\"Add New Page...\");\n setNeedsProgressMonitor(false);\n this.space = sapce;\n }", "public void createPage3()\n {\n panel3 = new JPanel();\n VelocityMessageList = new DefaultListModel<>();\n list3 = new JList(VelocityMessageList);\n panel3.add(list3);\n }", "public abstract StandaloneAlgorithmEditorPage createEditorPage(final SharedHeaderFormEditor sharedHeaderFormEditor);", "private void createPostNativeAndPoliciesPageSequence() {\n assert !mPostNativeAndPolicyPagesCreated;\n assert areNativeAndPoliciesInitialized();\n\n // Initialize SigninChecker, to kick off sign-in for child accounts as early as possible.\n //\n // TODO(b/245912657): explicitly sign in supervised users in {@link\n // SigninFirstRunMediator#handleContinueWithNative} rather than relying on SigninChecker.\n SigninCheckerProvider.get();\n\n mFirstRunFlowSequencer.updateFirstRunProperties(mFreProperties);\n\n BooleanSupplier showSearchEnginePromo =\n () -> mFreProperties.getBoolean(SHOW_SEARCH_ENGINE_PAGE);\n BooleanSupplier showSyncConsent = () -> mFreProperties.getBoolean(SHOW_SYNC_CONSENT_PAGE);\n\n // An optional page to select a default search engine.\n if (showSearchEnginePromo.getAsBoolean()) {\n mPages.add(new FirstRunPage<>(\n DefaultSearchEngineFirstRunFragment.class, showSearchEnginePromo));\n mFreProgressStates.add(MobileFreProgress.DEFAULT_SEARCH_ENGINE_SHOWN);\n }\n\n // An optional sync consent page, the visibility of this page will be decided on the fly\n // according to the situation.\n mPages.add(new FirstRunPage<>(SyncConsentFirstRunFragment.class, showSyncConsent));\n mFreProgressStates.add(MobileFreProgress.SYNC_CONSENT_SHOWN);\n\n if (mPagerAdapter != null) {\n mPagerAdapter.notifyDataSetChanged();\n }\n mPostNativeAndPolicyPagesCreated = true;\n\n if (sObserver != null) {\n sObserver.onCreatePostNativeAndPoliciesPageSequence(FirstRunActivity.this);\n }\n }", "private void _createPageDef()\n {\n _pageDef = new DemoPageDef();\n _pageDef.setupAttributes();\n \n List<DemoPageDef.SavedSearchDef> searchDefList = _pageDef.setupSavedSearchDefList();\n \n // Mark the first sabved Search definition as the current\n _currentDescriptor = new DemoQueryDescriptor(searchDefList.get(0));\n for (DemoPageDef.SavedSearchDef searchDef: searchDefList)\n {\n DemoQueryDescriptor qd = new DemoQueryDescriptor(searchDef);\n _QDMap.put(searchDef.getName(), qd); \n if (_currentDescriptor == null)\n _currentDescriptor = qd;\n }\n\n _queryModel = new DemoQueryModel(_QDMap);\n \n }", "public void createPage2()\n {\n panel2 = new JPanel();\n PositionMassageList = new DefaultListModel<>();\n list2 = new JList(PositionMassageList);\n panel2.add(list2);\n\n }", "private void createUIComponents() {\n editor = createEditor(project, document);\n splitter = new JBSplitter(0.4f);\n ((JBSplitter) splitter).setFirstComponent(editor.getComponent());\n// ((JBSplitter) splitter).setSecondComponent();\n }", "public Set getPages () {\n return pages;\n }", "public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}", "public void setPages(List<PdfPage> pages) {\n this.pages = pages;\n }", "Pages getPages();", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\t\n\t\tbtnNewButton = new Button(container, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(286, 513, 75, 30);\n\t\tbtnNewButton.setText(\"\\u9996\\u9875\");\n\t\t\n\t\tbutton = new Button(container, SWT.NONE);\n\t\tbutton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage--;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton.setText(\"\\u4E0A\\u4E00\\u9875\");\n\t\tbutton.setBounds(367, 513, 75, 30);\n\t\t\n\t\tbutton_1 = new Button(container, SWT.NONE);\n\t\tbutton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = page.getPageCount();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_1.setText(\"\\u5C3E\\u9875\");\n\t\tbutton_1.setBounds(652, 513, 75, 30);\n\t\t\n\t\tbutton_2 = new Button(container, SWT.NONE);\n\t\tbutton_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage++;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_2.setText(\"\\u4E0B\\u4E00\\u9875\");\n\t\tbutton_2.setBounds(571, 513, 75, 30);\n\t\t\n\t\ttext = new Text(container, SWT.BORDER);\n\t\ttext.setText(\"\"+currentPage);\n\t\ttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\ttext.setBounds(445, 515, 32, 26);\n\t\t\n\t\tLabel label = new Label(container, SWT.NONE);\n\t\tlabel.setText(\"/\");\n\t\tlabel.setBounds(483, 518, 6, 20);\n\t\t\n\t\tlabel_1 = new Label(container, SWT.NONE);\n\t\tlabel_1.setText(\"2\");\n\t\tlabel_1.setBounds(495, 518, 22, 20);\n\t\t\n\t\tButton button_3 = new Button(container, SWT.NONE);\n\t\tbutton_3.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tint want = Integer.parseInt(text.getText());\n\t\t\t\tif(want<1){\n\t\t\t\t\twant = 1;\n\t\t\t\t}else if(want>page.getCurrentPage()){\n\t\t\t\t\twant = page.getPageCount();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentPage = want;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_3.setText(\"->\");\n\t\tbutton_3.setBounds(527, 513, 32, 30);\n\t\t\n\t\ttext_1 = new Text(container, SWT.BORDER);\n\t\ttext_1.setBounds(286, 134, 73, 26);\n\t\t\n\t\tButton btnNewButton_1 = new Button(container, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tname = text_1.getText();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(367, 134, 55, 30);\n\t\tbtnNewButton_1.setText(\"\\u67E5\\u627E\");\n\t\t\n\t\ttabFolder = new TabFolder(container, SWT.NONE);\n\t\ttabFolder.setBounds(281, 184, 456, 323);\n\t\t\n\t\ttabItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_2.setText(\"\\u672A\\u8BCA\\u65AD\");\n\t\t\n\t\ttable_2 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tregister.setState(\"诊断中\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_2.setLinesVisible(true);\n\t\ttable_2.setHeaderVisible(true);\n\t\ttabItem_2.setControl(table_2);\n\t\t\n\t\tTableColumn tableColumn_4 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_4.setWidth(100);\n\t\ttableColumn_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_5 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_5.setWidth(115);\n\t\ttableColumn_5.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_6 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_6.setWidth(118);\n\t\ttableColumn_6.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_7 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_7.setWidth(108);\n\t\ttableColumn_7.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_2 = new Menu(table_2);\n\t\ttable_2.setMenu(menu_2);\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem_4.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_2.getItem(table_2.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_5.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_1.setText(\"\\u8BCA\\u65AD\\u4E2D\");\n\t\t\n\t\ttable_1 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_1.setLinesVisible(true);\n\t\ttable_1.setHeaderVisible(true);\n\t\ttabItem_1.setControl(table_1);\n\t\t\n\t\tTableColumn tableColumn = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn.setWidth(100);\n\t\ttableColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_1 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_1.setWidth(115);\n\t\ttableColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_2 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_2.setWidth(118);\n\t\ttableColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_3 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_3.setWidth(108);\n\t\ttableColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_1 = new Menu(table_1);\n\t\ttable_1.setMenu(menu_1);\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_1.getItem(table_1.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.CLOSE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_3.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem.setText(\"\\u5DF2\\u8BCA\\u65AD\");\n\t\t\n\t\ttable = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttabItem.setControl(table);\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\t\t\n\t\tTableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn.setWidth(100);\n\t\ttblclmnNewColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_1.setWidth(115);\n\t\ttblclmnNewColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\ttblclmnNewColumn_2.setWidth(118);\n\t\t\n\t\tTableColumn tblclmnNewColumn_3 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_3.setWidth(108);\n\t\ttblclmnNewColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu = new Menu(table);\n\t\ttable.setMenu(menu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table.getItem(table.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_1.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\n\t\tcreateActions();\n\t\tinitializeToolBar();\n\t\tinitializeMenu();\n\t}", "@Test\n\tpublic void test02_PreviewAPage() {\n\t\tinfo(\"Test 2: Preview a page\");\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open form to create new page\n\t\t*Step Description: \n\t\t\t- Choose path to add new page\n\t\t\t- Click [Add Page] --> [Blank Page]/[From Template...]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tForm to create new page is shown and in the [Rich Text] editor*/\n\t\tinfo(\"Go to Add a Wiki page\");\n\t\tString title = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString content = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\thp.goToWiki();\n\t\twHome.goToAddBlankPage();\n\t\t\n\t\t/*Step Number: 2\n\t\t*Step Name: Step 2: Create new page\n\t\t*Step Description: \n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tAll fields are inputed with values*/\n\t\trichEditor.addSimplePage(title, content);\n\t\t\n\t\t/*Step Number: 3\n\t\t*Step Name: Step 3: Preview a page\n\t\t*Step Description: \n\t\t\t- Click on Preview \n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tContent of page is shown*/\n\t\t\n\t\twikiMg.PreviewASimplePage(title, content);\n \t}", "public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\n\tpublic Page createPage(String title, String author) {\n\t\treturn new ListPage(title, author);\n\t}", "private void createFirstPage() {\n BooleanSupplier showWelcomePage = () -> !FirstRunStatus.shouldSkipWelcomePage();\n mPages.add(new FirstRunPage<>(SigninFirstRunFragment.class, showWelcomePage));\n mFreProgressStates.add(MobileFreProgress.WELCOME_SHOWN);\n mPagerAdapter = new FirstRunPagerAdapter(FirstRunActivity.this, mPages);\n mPager.setAdapter(mPagerAdapter);\n // Other pages will be created by createPostNativeAndPoliciesPageSequence() after\n // native and policy service have been initialized.\n }", "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "@Override\n public LiveWebModel[] getChildren() {\n return pages;\n }", "protected PageRec createPage(IWorkbenchPart part, IPageBookViewPage page) {\n\t\tinitPage(page);\n\t\tpage.createControl(getPageBook());\n\t\tgetPages().add(page);\n\t\treturn new PageRec(part, page);\n\t}", "@Override\r\n\tpublic IndexStore addPage(String pageName, String description, String message, ContainerTypes type, boolean onCancel, boolean onFinish ) {\r\n\t\tcurrent = new IndexStore( pageName, description, message, type, this.store.size() );\r\n\t\tif( onCancel ){\r\n\t\t\tfor( IndexStore is: store.values() )\r\n\t\t\t\tis.onCancel = false;\r\n\t\t\tcurrent.onCancel = true;\r\n\t\t}\r\n\t\tif( onFinish ){\r\n\t\t\tfor( IndexStore is: store.values() )\r\n\t\t\t\tis.onFinish = false;\r\n\t\t\tcurrent.onFinish = true;\r\n\t\t}\r\n\t\tstore.put( pageName, current );\r\n\t\treturn current;\r\n\t}", "public void setActivePage(IEditorPart activeEditor) {\n\r\n\t}", "private void setupPager() {\n SectionsPagerAdapter pagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager(), getResources());\n ViewPager pager = findViewById(R.id.pager);\n pager.setAdapter(pagerAdapter);\n TabLayout tabLayout = findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(pager);\n pager.addOnPageChangeListener(addPageChangeListener());\n }", "public void createPage4()\n {\n panel4 = new JPanel();\n IdentificationMessageList = new DefaultListModel<>();\n list4 = new JList(IdentificationMessageList);\n panel4.add(list4);\n\n }", "@Override\n public void run() {\n for (int pg = PreviewPanel.this.firstPage; pg < PreviewPanel.this.firstPage\n + PreviewPanel.this.pageRange; pg++) {\n PreviewPanel.this.pagePanels[pg - PreviewPanel.this.firstPage]\n .setPage(pg);\n }\n revalidate();\n }", "public void create() {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n\n // Create a new font object selecting one of the PDF base fonts\n PDFont font = PDType1Font.HELVETICA_BOLD;\n try (document) {\n // Start a new content stream which will \"hold\" the to be created content\n writeDataToDocument(document, page, font);\n // Save the results and ensure that the document is properly closed:\n document.save(\"Hello World.pdf\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public MultiResourceContainerPage(FormEditor editor, String id, String pageTitle, ImageRegistry imageRegistry) {\r\n\t\tsuper(editor, ID_BASE + id, pageTitle);\r\n\t\tthis.imageRegistry = imageRegistry;\r\n\t}", "public void createPage3(){\n tabAbout = new JPanel();\n tabAbout.setLayout( null );\n \n\n JLabel lblGuidText_syn = new JLabel( \"<html><h1>Useless Dictionary</h1><p>Sulochana Kodituwakku<br>2014/CS/066<br>14000662</p></html>\" ); //html can be used in JLables\n lblGuidText_syn.setHorizontalAlignment(JLabel.LEFT);\n lblGuidText_syn.setVerticalAlignment(JLabel.TOP);\n lblGuidText_syn.setBounds( 10, 200, 750, 380 );\n tabAbout.add( lblGuidText_syn );\n \n btnImport.setBounds(10,10,125,25);\n tabAbout.add(btnImport);\n \n \n //set conlick event for Import button\n event_buttonImport ebd = new event_buttonImport();\n btnImport.addActionListener(ebd);\n }", "public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}", "public Iterator<WizardPage> getPages()\n {\n java.util.List<WizardPage> pages = new ArrayList<WizardPage>();\n this.firstWizardPage = new FirstWizardPage(this);\n pages.add(this.firstWizardPage);\n return pages.iterator();\n }", "@Test\n\tpublic void test04_CreateNewPageUsingExistingTemplate() {\n\t\tinfo(\"Test 4: Create new page using existing template\");\n\t\tString template1 = wTempData.getWikiTemplate(0);\n\t\tString title1 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template1);\n\t\tString template2 = wTempData.getWikiTemplate(1);\n\t\tString title2 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template2);\n\t\tString template3 = wTempData.getWikiTemplate(2);\n\t\tString title3 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template3);\n\t\tString template4 = wTempData.getWikiTemplate(3);\n\t\tString title4 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template4);\n\t\tString template5 = wTempData.getWikiTemplate(4);\n\t\tString title5 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template5);\n\t\t\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open form to create new page\n\t\t*Step Description: \n\t\t\t- Choose path to add new page\n\t\t\t- Click [Add Page] --> [From Template...]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- By default, the [Create Wiki page] is displayed in the [Rich Text] mode */\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t \n\t /*Step Number: 2\n\t\t*Step Name: Step 2: Create new page with Two Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Two Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with two column layout*/\n\t\twikiMg.addSimpleWikiPageByTemplate(template1,title1);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title1);\n\t\tarrayPage.add(title1);\n\t \n\t\t /*Step Number: 3\n\t\t*Step Name: Step 3: Create new page with Three Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Three Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with three column layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template2,title2);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title2);\n\t\tarrayPage.add(title2);\n\t\t\n\t\t /*Step Number: 4\n\t\t*Step Name: Step 4: Create new page with Status Meeting layout\n\t\t*Step Description: \n\t\t\t- Choose template \"Status Meeting\" in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Status Meeting layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template3,title3);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title3);\n\t\tarrayPage.add(title3);\n\t\t\n\t\t /*Step Number: 5\n\t\t*Step Name: Step 5: Create new page with HOW-TO Guide layout\n\t\t*Step Description: \n\t\t\t- Choose template [HOW-TO Guide] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with HOW-TO Guide layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template4,title4);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title4);\n\t\tarrayPage.add(title4);\n\t\t\n\t\t/*Step Number: 6\n\t\t*Step Name: Step 6: Create new page with Leave Planning layout\n\t\t*Step Description: \n\t\t\t- Choose template [Leave Planning] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Leave Planning layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template5,title5);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title5);\n\t\tarrayPage.add(title5);\n \t}", "public PIMPage()throws IOException\n\t{\n\t\tPageFactory.initElements(driver,this);\n\t\t\n\t}", "private static MockPageManager createPageManager()\r\n {\r\n return new MockPageManager();\r\n }", "@Override\r\n\tpublic void createPageControls(Composite pageContainer) {\n\t\tsuper.createPageControls(pageContainer);\r\n\t\tthis.getShell().setImage(IImageKey.getImage(IImageKey.KEY_WIZADSMALL));\r\n\t}", "private void setupViewPager(ViewPager viewpager){\n pokearticle.ViewPagerAdapter adapter = new pokearticle.ViewPagerAdapter(\n getSupportFragmentManager());\n if(tab2 == null && tab3 == null){\n tab1 = new TabActivity1();\n tab2 = new TabActivity2();\n tab3 = new TabActivity3();\n\n setupTab1();\n setupTab2();\n setupTab3();\n\n }\n else if(tab3==null){\n setupTab3();\n }\n\n\n adapter.addFragment(tab1, \"Stats\");\n adapter.addFragment(tab2, \"Overview\");\n adapter.addFragment(tab3, \"Articles\");\n\n\n viewpager.setAdapter(adapter);\n }", "@BeforeEach\n void setUp() throws Exception {\n context.currentPage(context.create().page(\"/content/unittest/de_test/brand/de/section/page\",\n DummyAppTemplate.CONTENT.getTemplatePath()));\n\n // create internal pages for unit tests\n targetPage = context.create().page(\"/content/unittest/de_test/brand/de/section/content\",\n DummyAppTemplate.CONTENT.getTemplatePath());\n context.create().page(\"/content/unittest/en_test/brand/en/section/content\",\n DummyAppTemplate.CONTENT.getTemplatePath());\n\n }", "private void setUpPageItem() {\n displaylimit = xmlhandler.getItemDisplayLimit();\n itemrow = inventory.getItemRow();\n Back.setEnabled(false);\n Begin.setEnabled(false);\n if(getPageEnd()==1) {\n Forward.setEnabled(false);\n End.setEnabled(false);\n }\n }", "@Override\n public void processPages(File imageFile, File outputFile) throws Exception {\n instance.setDatapath(datapath);\n instance.setLanguage(language);\n instance.setPageSegMode(Integer.parseInt(pageSegMode));\n instance.setOcrEngineMode(Integer.parseInt(ocrEngineMode));\n\n List<RenderedFormat> renderedFormats = new ArrayList<RenderedFormat>();\n\n for (String format : outputFormats.toUpperCase().split(\",\")) {\n renderedFormats.add(RenderedFormat.valueOf(format));\n }\n\n instance.createDocuments(imageFile.getPath(), outputFile.getPath(), renderedFormats);\n }", "public abstract StandaloneAlgorithmEditorPage createEditorPage(final SharedHeaderFormEditor sharedHeaderFormEditor,\n StandaloneAlgorithm algorithm);", "public void setPage(Page page) {this.page = page;}", "@Test \n\tpublic void generateParagraphsTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'paragraphs' radio button \n\t\thomePage.selectContentType(\"paragraphs\");\n\n\t\t// enter '10' in the count field \n\t\thomePage.inputCount(\"10\");\n\n\t\t// click \"Generate Lorum Ipsum\" button\n\t\thomePage.generateLorumIpsum();\n\t\tGeneratedPage generatedPage = new GeneratedPage(driver);\n\n\t\t// validate the number of text paragraphs generated \n\t\tint paragraphCount = generatedPage.getActualGeneratedCount(\"paragraphs\");\n\t\tAssert.assertTrue(paragraphCount == 10);\n\n\t\t// validate the report text // ex: \"Generated 10 paragraphs, 1106 words, 7426 bytes of Lorem Ipsum\"\n\t\tAssert.assertEquals(\"Generated \" + generatedPage.getReport(\"paragraphs\") + \n\t\t\t\t\" paragraphs, \" + generatedPage.getReport(\"words\") + \n\t\t\t\t\" words, \" + generatedPage.getReport(\"bytes\") + \n\t\t\t\t\" bytes of Lorem Ipsum\", generatedPage.getCompleteReport());\n\t}", "private void initializePaging() {\r\n\t\t\r\n\t\tList<Fragment> fragments = new Vector<Fragment>();\r\n\t\tfragments.add(Fragment.instantiate(this, ContactBookFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, MainDashBoardFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, GroupDashBoardFragment.class.getName()));\r\n\t\tthis.mPagerAdapter = new PagerAdapter(super.getSupportFragmentManager(), fragments);\r\n\t\t//\r\n\t\tViewPager pager = (ViewPager)super.findViewById(R.id.viewpager);\r\n\t\tpager.setAdapter(this.mPagerAdapter);\r\n\t\tpager.setCurrentItem(1);\t// Set the default page to Main Dash Board\r\n\t}", "public ChoosePagePresenter() {\n// mGetKnowledgeHierarchyDataFromNet = new GetKnowledgeHierarchyDataFromNet();\n dataManager = DataManager.getInstance();\n }", "public NewCZ_DPPHRProcessPage(){ super(); }", "public void createPage(@NonNull WPEView wpeView, @NonNull Context context) {\n Log.d(LOGTAG, \"Create new Page instance for view \" + wpeView);\n if (m_pages == null) {\n m_pages = new IdentityHashMap<>();\n }\n assert (!m_pages.containsKey(wpeView));\n Page page = new Page(this, context, wpeView, m_pages.size());\n m_pages.put(wpeView, page);\n m_activeView = wpeView;\n if (m_webProcess != null) {\n m_webProcess.setActivePage(page);\n }\n loadPendingUrls(wpeView);\n }", "private void initHomePage() {\r\n welcomePage.setSpacing(30);\r\n HTML welcomeLabel = new HTML(\"<h1 style='color:black;font-family:verdana; font-weight:bold;text-decoration:none;font-style:normal;'>Welcome to DiVA <font size='3'>omics </h1>\");\r\n welcomeLabel.setWidth(\"400px\");\r\n VerticalPanel leftSideLayout = new VerticalPanel();\r\n welcomePage.add(leftSideLayout);\r\n welcomePage.setCellVerticalAlignment(leftSideLayout, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(leftSideLayout, VerticalPanel.ALIGN_RIGHT);\r\n leftSideLayout.add(welcomeLabel);\r\n leftSideLayout.setSpacing(10);\r\n\r\n HTML ieErrorLabel = new HTML(\"<p align=\\\"left\\\" style=\\\"margin-left:0px;color:red;\\\"><font size=\\\"3\\\">It looks like you are using an old version of Internet Explorer. Unfortunatly Internet Explorer 6,7,8,9 and 10 are not supported in the curent version of DiVA. Please try other browsers.</font></p>\");\r\n ieErrorLabel.setWidth(\"400px\");\r\n\r\n HTML infoLabel = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">Start using DiVA by selecting a dataset</font></p>\");\r\n infoLabel.setWidth(\"400px\");\r\n\r\n HorizontalPanel selectionLayout = new HorizontalPanel();\r\n\r\n if (oldIE) {\r\n leftSideLayout.add(ieErrorLabel);\r\n } else {\r\n leftSideLayout.add(infoLabel);\r\n leftSideLayout.add(selectionLayout);\r\n selectionLayout.setWidth(\"400px\");\r\n selectionLayout.add(tempSelectDatasetList);\r\n }\r\n\r\n tempSelectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 400px;border-radius: 5px;\");\r\n\r\n leftSideLayout.setCellVerticalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_MIDDLE);\r\n leftSideLayout.setCellHorizontalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_LEFT);\r\n \r\n HTML info2Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:20px;margin-left:0px;color:#585858;line-height: 200%;\\\"><font size=\\\"2\\\">Getting started tutorial available <a target=\\\"_blank\\\" href='\" +\"tutorial/diva_tutorial.pdf\" + \"'>here</a>. </font><br/><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n leftSideLayout.add(info2Label);\r\n\r\n// HTML info3Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:5px;margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n// leftSideLayout.add(info3Label);\r\n\r\n Image screenImg = new Image(\"images/divascreen1.png\");\r\n screenImg.getElement().setAttribute(\"style\", \"width:640px;\");\r\n\r\n welcomePage.add(screenImg);\r\n welcomePage.setCellVerticalAlignment(screenImg, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(screenImg, VerticalPanel.ALIGN_CENTER);\r\n tempSelectDatasetList.setFocus(true);\r\n\r\n }", "public org.biocatalogue.x2009.xml.rest.PageParameter addNewPage()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.PageParameter target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.PageParameter)get_store().add_element_user(PAGE$2);\r\n return target;\r\n }\r\n }", "@Override\n public void changePage(int newPage) {\n\n if ( (newPage >= 0) && (newPage< bookInitial.getListAllTextToDisplay().size()))\n {\n\n if (isManual)\n {\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n }else\n {\n int a = bookInitial.getCurrentPage();\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n updateAutoWPop(a);\n }\n\n\n }\n\n\n }", "public PDFPagesTree(PDFFile file) { _dict.put(\"Type\", \"/Pages\"); }", "protected void createContents() {\n\n\t}", "public static void main(String[] args) throws Exception {\n PdfDocument doc = new PdfDocument();\r\n //Set margin\r\n PdfUnitConvertor unitCvtr = new PdfUnitConvertor();\r\n PdfMargins margin = new PdfMargins();\r\n margin.setTop(unitCvtr.convertUnits(2.54f, PdfGraphicsUnit.Centimeter, PdfGraphicsUnit.Point));\r\n margin.setBottom(margin.getTop());\r\n margin.setLeft(unitCvtr.convertUnits(3.17f, PdfGraphicsUnit.Centimeter, PdfGraphicsUnit.Point));\r\n margin.setRight(margin.getLeft());\r\n\r\n drawCover(doc.getSections().add(), margin);\r\n drawContent(doc.getSections().add(), margin);\r\n drawPageNumber(doc.getSections().get(1), margin, 1, doc.getSections().get(1).getCount());\r\n\r\n //Save pdf file.\r\n doc.saveToFile(\"output/pagination.pdf\");\r\n doc.close();\r\n }", "public void addPage(int newPage) {\r\n\t\tpage.addAtTail(newPage);\r\n\t}", "private void setupViewPager(ViewPager viewPager)\n {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(One, \"Courses\");\n adapter.addFragment(new TwoFragment(), \"Grades\");\n adapter.addFragment(Three, \"Notifications\");\n viewPager.setAdapter(adapter);\n }", "public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "public void addPage(PDFPage aPage) { _pages.add(aPage); }", "private void setPageProperties(PageDef pageDef){\n\t\tenableQuestionOnlyProperties(false);\n\n\t\ttxtText.setEnabled(true);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\n\t\ttxtText.setText(pageDef.getName());\n\t\ttxtBinding.setText(String.valueOf(pageDef.getPageNo()));\n\t\t//skipRulesView.updateSkipRule();\n\t}", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for lab1\n }", "private void setupViewPage(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFrag(new SavedGamesFragment(), savedGamesLabel);\n adapter.addFrag(new HostGamesFragment(), hostedGamesLabel);\n viewPager.setAdapter(adapter);\n }", "@Test\n public void testContentDefaultValues() throws Exception\n {\n assertEquals( projectName + \"-portlet\", page.getPortletPluginProject() );\n assertTrue( page.getSourceFolderText().contains( \"docroot/WEB-INF/src\" ) );\n assertEquals( \"NewVaadinPortletApplication\", page.getApplicationClassText() );\n assertEquals( \"com.test\", page.getJavaPackageText() );\n assertEquals( \"com.vaadin.Application\", page.getSuperClassCombobox() );\n assertEquals( \"com.vaadin.terminal.gwt.server.ApplicationPortlet2\", page.getVaadinPortletClassText() );\n // page2\n page.next();\n assertEquals( \"newvaadinportlet\", page2.getPortletName() );\n assertEquals( \"NewVaadinPortlet\", page2.getDisplayName() );\n assertEquals( \"NewVaadinPortlet\", page2.getPortletTitle() );\n assertFalse( page2.get_createResourceBundleFileCheckbox().isChecked() );\n assertEquals( \"content/Language.properties\", page2.getResourceBundleFilePath() );\n // page3\n page.next();\n assertFalse( page3.isEntryCategoryEnabled() );\n assertFalse( page3.isEntryWeightEnabled() );\n assertFalse( page3.isCreateEntryClassEnabled() );\n assertFalse( page3.isEntryClassEnabled() );\n\n assertEquals( \"/icon.png\", page3.getIconText() );\n assertEquals( false, page3.isAllowMultipleInstancesChecked() );\n assertEquals( \"/css/main.css\", page3.getCssText() );\n assertEquals( \"/js/main.js\", page3.getJavaScriptText() );\n assertEquals( \"newvaadinportlet-portlet\", page3.getCssClassWrapperText() );\n assertEquals( \"Sample\", page3.getDisplayCategoryCombobox() );\n assertEquals( false, page3.isAddToControlPanelChecked() );\n assertEquals( \"My Account Administration\", page3.getEntryCategoryCombobox() );\n assertEquals( \"1.5\", page3.getEntryWeightText() );\n assertEquals( false, page3.isCreateEntryClassChecked() );\n assertEquals( \"NewVaadinPortletApplicationControlPanelEntry\", page3.getEntryClassText() );\n }", "public void startContent() {\n iTextContext.pageNumber().startMainMatter();\n }", "private void setupViewPager() {\n SectionsPagerAdapter adapter = new SectionsPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new MainFragment());\n\n mViewPager.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(mViewPager);\n }", "public Page(PageInformation pageInfo)\n\t{\n\t\tthis.pageInfo = pageInfo;\n\t\tthis.contentInstructions = new ArrayList<ContentInstruction>();\n\t\tthis.pageContent = new HashMap<Integer, Content>();\n\t\tnextContentNumber = 0;\n\t}", "abstract public String createPage(int taskId, Connection con) throws SQLException, ServletException;", "ItemStack addPage(ItemStack itemstack, ItemStack page, float x, float y);", "public void setPage(int page) {\n this.page = page;\n }", "public void create(String description, Integer quantity, Integer pages) {\n\n Object[][] obj = null;\n\n obj = createBook(description, quantity, pages);\n\n for (View v : views) {\n v.update(obj);\n }\n\n }", "private void createGenericPage() throws IOException {\r\n\t\tFileOutputStream pageStream = new FileOutputStream(page, false);\r\n\t\tpageStream.write(DEFAULT_STRING.getBytes());\r\n\t\tpageStream.close();\r\n\t}", "@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}", "public abstract void createContents(Panel mainPanel);", "private void setupViewPager() {\n // Get the ViewPager and set it's PagerAdapter so that it can display items\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n fragmentAdapter = new LovesPagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(fragmentAdapter);\n\n // Give the PagerSlidingTabStrip the ViewPager\n tabsStrip = (PagerSlidingTabStrip) findViewById(R.id.tabs);\n // Attach the view pager to the tab strip\n tabsStrip.setViewPager(viewPager);\n }", "@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\tpageBook = new PageBook(parent, SWT.NONE);\r\n\t\t\r\n\t\toutline = getViewer().createControl(pageBook);\r\n\t\tgetViewer().setContents(new Root(model));\r\n\t\tselectionSynchronizer.addViewer(getViewer());\r\n\t\t\r\n\t\toverview = new Canvas(pageBook, SWT.NONE);\r\n\t\tlws = new LightweightSystem(overview);\r\n\t\t\r\n IToolBarManager tbm = getSite().getActionBars().getToolBarManager();\r\n showOutlineAction = new Action() {\r\n public void run() {\r\n showPage(outline);\r\n }\r\n };\r\n showOutlineAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/outline.gif\"));\r\n tbm.add(showOutlineAction);\r\n showOverviewAction = new Action() {\r\n public void run() {\r\n showPage(overview);\r\n }\r\n };\r\n showOverviewAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/overview.gif\"));\r\n tbm.add(showOverviewAction);\r\n \r\n initializeOverview();\r\n \r\n showPage(outline);\r\n\t}", "public Page addSlide(RetailscmUserContext userContext, String pageId, String name, int displayOrder, String imageUrl, String videoUrl, String linkToUrl , String [] tokensExpr) throws Exception;", "AbstractPoliticianPageModContentFactoryImpl() {\n\t\tsuper();\n\t}", "public void newPage(FrameDesc fdesc) {\n // no need to update frame state\n }", "@Override\n public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {\n PhotoViewController pageZero = PhotoViewController.create(0);\n if (pageZero != null) {\n // assign the first page to the pageViewController (our\n // rootViewController)\n UIPageViewController pageViewController = (UIPageViewController) getWindow().getRootViewController();\n pageViewController.setDataSource(new UIPageViewControllerDataSourceAdapter() {\n @Override\n public UIViewController getViewControllerBefore(UIPageViewController pageViewController,\n UIViewController viewController) {\n int index = ((PhotoViewController) viewController).getPageIndex();\n return PhotoViewController.create(index - 1);\n }\n\n @Override\n public UIViewController getViewControllerAfter(UIPageViewController pageViewController,\n UIViewController viewController) {\n int index = ((PhotoViewController) viewController).getPageIndex();\n return PhotoViewController.create(index + 1);\n }\n });\n\n pageViewController.setViewControllers(new NSArray<UIViewController>(pageZero),\n UIPageViewControllerNavigationDirection.Forward, false, null);\n }\n\n return true;\n }" ]
[ "0.7241845", "0.7040695", "0.69481117", "0.6822576", "0.68092126", "0.67983156", "0.6763554", "0.6682627", "0.6586342", "0.6517261", "0.6467837", "0.6284505", "0.62662256", "0.62307584", "0.5969357", "0.5962134", "0.58985895", "0.58738446", "0.5802183", "0.574188", "0.5719683", "0.5706144", "0.5702112", "0.5686377", "0.567663", "0.566055", "0.56061125", "0.5580756", "0.55585855", "0.55406296", "0.55157983", "0.5515465", "0.5500808", "0.54657215", "0.5441815", "0.541994", "0.5417289", "0.5409754", "0.54034364", "0.53832686", "0.5351269", "0.53394806", "0.5321706", "0.5303215", "0.53030217", "0.5284134", "0.52756244", "0.5270946", "0.5259001", "0.5243395", "0.5236512", "0.52299684", "0.5226825", "0.5208388", "0.52070785", "0.5198516", "0.5181348", "0.5174576", "0.5166267", "0.5145049", "0.513646", "0.513616", "0.5135039", "0.5133806", "0.51129246", "0.5105875", "0.50867057", "0.508439", "0.5082089", "0.5077398", "0.5058779", "0.50541", "0.50539726", "0.5045254", "0.50401264", "0.50379574", "0.5032985", "0.50301874", "0.5022729", "0.5000188", "0.4997372", "0.49973112", "0.49858248", "0.49676064", "0.49665457", "0.49629346", "0.49622774", "0.49620116", "0.49617028", "0.49616015", "0.49592772", "0.49565434", "0.4951384", "0.49508047", "0.49495494", "0.49444824", "0.49368715", "0.49314353", "0.49309132", "0.4918586" ]
0.82448536
0
The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors. Subclasses may extend.
public void dispose() { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); super.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void dispose() {\n\t\tsuper.dispose();\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.setPage(null);\n\t\t\t\tpe.setPropertyChangeListener(null);\n\t\t\t\tpe.setPreferenceStore(null);\n\t\t\t}\n\t\t}\n\t}", "public void dispose() {\n // System.out.println(\"NctextuiPaletteWindow dispose me, isEditorVisible=\"+\n // isEditorVisible);\n if (!isEditorVisible) {\n\t \tNctextuiResource.unregisterMouseHandler();\n\t \treturn;\n } else {\n\t \tsuper.dispose();\n\n\t \tNatlCntrsEditor editor = NctextuiResource.getMapEditor();\n\t \t\n if (editor != null) {\n for (IRenderableDisplay display : UiUtil\n .getDisplaysFromContainer(editor)) {\n // System.out.println(\"display \" + display.toString());\n for (ResourcePair rp : display.getDescriptor()\n .getResourceList()) {\n if (rp.getResource() instanceof NctextuiResource) {\n NctextuiResource rsc = (NctextuiResource) rp\n .getResource();\n\t \t\t\t\t\trsc.unload();\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t \tnctextuiPaletteWindow = null;\n\n\t \t/*\n\t \t * remove the workbench part listener\n\t \t */\n\t \tpage.removePartListener(this);\n\t }\n\n \t}", "@Override\n\tpublic void \n\tdispose()\n\t{\n\t\tActivator.getDefault().persistTreeContentProvider(\n\t\t\tthis.file_tree_content_provider\n\t\t);\n\t\tsuper.dispose();\n\t}", "public void disposeAll()\r\n\t{\r\n\t\tfor(IMmdPmdRender item:_renders)\r\n\t\t{\r\n\t\t\titem.dispose();\r\n\t\t}\r\n\t}", "public void dispose(){\n\t\tcurrentSections.clear();\n\t}", "protected void doDisposeNestedParts() {\n\t}", "public void dispose()\n {\n PerlEditorPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this);\n \n uninstallAnnotationListener();\n \n try\n {\n if (sourceViewer instanceof ITextViewerExtension &&\n bracketInserter != null)\n {\n ((ITextViewerExtension) sourceViewer).removeVerifyKeyListener(\n bracketInserter);\n }\n if (validationThread != null) validationThread.dispose();\n if (idleTimer != null) idleTimer.dispose();\n \n String[] actionIds = PerlEditorActionIds.getEditorActions();\n for (int i = 0; i < actionIds.length; i++)\n {\n IAction action = getAction(actionIds[i]);\n if (action instanceof PerlEditorAction)\n ((PerlEditorAction) action).dispose();\n }\n \n super.dispose();\n }\n catch (InterruptedException e)\n {\n e.printStackTrace(); // TODO log it\n }\n }", "protected void dispose() {\r\n\t\titems.removeAllElements();\r\n\t\tlist.deleteAll();\r\n\t\tthis.list.removeCommand(add2CartCommand);\r\n\t\tthis.list.removeCommand(previewCommand);\r\n\t}", "void fillInnerParts() {\n browserPanel = new BrowserPanel();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"129\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"browserPanel\", \"VariableName: \",\"BrowserPanel\");\n browserPlaceholder.getChildren().add(browserPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"130\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n personListPanel = new PersonListPanel(logic.getFilteredPersonList());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"132\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n personListPanelPlaceholder.getChildren().add(personListPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"133\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n ResultDisplay resultDisplay = new ResultDisplay();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"135\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"ResultDisplay\", \"VariableName: \",\"resultDisplay\", \"VariableName: \",\"ResultDisplay\");\n resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"136\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n StatusBarFooter statusBarFooter = new StatusBarFooter(prefs.getAddressBookFilePath());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"138\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"139\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n CommandBox commandBox = new CommandBox(logic);\n\t\tTemplateClass.instrum(\"LineNumber: \",\"141\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"commandBox\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"logic\");\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"142\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n }", "public void dispose ()\n {\n for (int ii = 0, nn = gbox.getItemCount(); ii < nn; ii++) {\n ((GroupItem)gbox.getItemAt(ii)).dispose();\n }\n }", "public void dispose ()\n {\n if (_tree != null) {\n _tree.dispose();\n _tree = null;\n }\n }", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "public void dispose() {\n if (mainDocument != null) {\n mainDocument.dispose();\n }\n\n if (docAttachments != null) {\n for (DocumentItem d : docAttachments) {\n d.dispose();\n }\n\n docAttachments.clear();\n }\n\n if (documentLink != null) {\n documentLink.clear();\n }\n\n contextWidget = null;\n mainDocument = null;\n docAttachments = null;\n documentLink = null;\n callback = null;\n window = null;\n linkedData = null;\n }", "public void createFieldEditors() {\t\t\n\t\t\n//\t\taddField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, \n//\t\t\t\tMessages.UMAPPreferencePage_1, getFieldEditorParent()));\n\t\tgroup = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n\t\tgroup.setText(Messages.UMAPPreferencesHeader);\n\t\tgroup.setLayout(new GridLayout());\n\t\tGridData gd = new GridData(GridData.FILL_HORIZONTAL);\n\t\tgd.horizontalSpan = 1;\n\t\tgroup.setLayoutData(gd);\t\t\n\t\t\n//\t\tgroup2 = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n//\t\tgroup2.setText(Messages.UmapStringButtonFieldEditor_0);\n//\t\tgd.horizontalSpan = 2;\n//\t\tgroup2.setLayoutData(gd);\n//\t\tgroup2.setLayout(new GridLayout());\n\t\t\n\t\t\n\t\tvalidation = new BooleanFieldEditor( PreferenceConstants.P_BOOLEAN,\tMessages.UMAPPreferencePage_2, group);\n\t\taddField( validation );\n\n\t\tclassAbreviation = new StringFieldEditor(PreferenceConstants.P_CLASS_NAME, Messages.UMAPPreferencePage_3, group);\n\t\tclassAbreviation.setEmptyStringAllowed(false);\n\t\tclassAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\tintfAbreviation = new StringFieldEditor(PreferenceConstants.P_INTF_NAME, Messages.UMAPPreferencePage_4, group);\n\t\tintfAbreviation.setEmptyStringAllowed(false);\n\t\tintfAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\texcAbreviation = new StringFieldEditor(PreferenceConstants.P_EXCP_NAME, Messages.UMAPPreferencePage_5, group);\n\t\texcAbreviation.setEmptyStringAllowed(false);\n\t\texcAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\t\n//\t\tprojectAbbreviation = new StringFieldEditor(PreferenceConstants.P_PROJ_NAME, Messages.UMAPPreferencePage_6, group);\n//\t\tprojectAbbreviation.setEmptyStringAllowed(true);\n\n//\t\tStringFieldEditor name = new StringFieldEditor(PreferenceConstants.P_USER_NAME, Messages.UmapStringButtonFieldEditor_2, group2);\n//\t\t\n//\t\tStringFieldEditor pass = new StringFieldEditor(PreferenceConstants.P_PWD, Messages.UmapStringButtonFieldEditor_3, group2);\n\t\t\n//\t\tURIStringButtonFieldEditor button = new URIStringButtonFieldEditor(PreferenceConstants.P_URI, Messages.UmapStringButtonFieldEditor_1, group2);\n\t\t\n//\t\taddField(name);\n//\t\taddField(pass);\n//\t\taddField(button);\n\t\t\n\t\taddField( classAbreviation );\n\t\taddField( intfAbreviation );\n\t\taddField( excAbreviation );\n//\t\taddField( projectAbbreviation );\t\t\n\t}", "public void finalizeChildren() {\n finalizeAllNestedChildren(this);\n }", "@Override\n\tpublic void partClosed(IWorkbenchPart part) {\n\t}", "public void dispose() {\n\t\tif (regionItemProvider != null) regionItemProvider.dispose();\n\t\tif (nodeItemProvider != null) nodeItemProvider.dispose();\n\t\tif (transitionItemProvider != null) transitionItemProvider.dispose();\n\t\tif (stateItemProvider != null) stateItemProvider.dispose();\n\t\tif (pseudostateItemProvider != null) pseudostateItemProvider.dispose();\n\t\tif (dataElementItemProvider != null) dataElementItemProvider.dispose();\n\t\tif (variableItemProvider != null) variableItemProvider.dispose();\n\t\tif (eventItemProvider != null) eventItemProvider.dispose();\n\t\tif (statechartItemProvider != null) statechartItemProvider.dispose();\n\t\tif (finalStateItemProvider != null) finalStateItemProvider.dispose();\n\t}", "@Override\n\tpublic void dispose() {\n\t\tif (workPieceItemProvider != null) workPieceItemProvider.dispose();\n\t\tif (manufacturingStepItemProvider != null) manufacturingStepItemProvider.dispose();\n\t\tif (manufacturingSystemItemProvider != null) manufacturingSystemItemProvider.dispose();\n\t\tif (transportStepItemProvider != null) transportStepItemProvider.dispose();\n\t\tif (qualityAssuranceStepItemProvider != null) qualityAssuranceStepItemProvider.dispose();\n\t\tif (responsibleItemProvider != null) responsibleItemProvider.dispose();\n\t\tif (inputConditionItemProvider != null) inputConditionItemProvider.dispose();\n\t\tif (storagePointItemProvider != null) storagePointItemProvider.dispose();\n\t\tif (manufacturingSystemElementItemProvider != null) manufacturingSystemElementItemProvider.dispose();\n\t\tif (compositeManufacturingStepItemProvider != null) compositeManufacturingStepItemProvider.dispose();\n\t\tif (workPieceTypeItemProvider != null) workPieceTypeItemProvider.dispose();\n\t\tif (outputDecisionItemProvider != null) outputDecisionItemProvider.dispose();\n\t\tif (workPieceConditionItemProvider != null) workPieceConditionItemProvider.dispose();\n\t\tif (binaryConditionItemProvider != null) binaryConditionItemProvider.dispose();\n\t\tif (negationItemProvider != null) negationItemProvider.dispose();\n\t}", "public synchronized void close() {\n if (mRootView != null) mRootView.setVisibility(View.GONE);\n\n //Display the emoticons picker\n replaceFragment(mEmoticonFragment, TAG_EMOTICON_FRAGMENT);\n\n }", "public void dispose() {\r\n // Remove from existing Customer render groups.\r\n leaveRenderGroups();\r\n }", "public void dispose() {\n\t\tif (acapeDataModelItemProvider != null) acapeDataModelItemProvider.dispose();\n\t\tif (entityItemProvider != null) entityItemProvider.dispose();\n\t\tif (attributeItemProvider != null) attributeItemProvider.dispose();\n\t\tif (levelItemProvider != null) levelItemProvider.dispose();\n\t\tif (constraintItemProvider != null) constraintItemProvider.dispose();\n\t\tif (featureItemProvider != null) featureItemProvider.dispose();\n\t\tif (priceSettingsItemProvider != null) priceSettingsItemProvider.dispose();\n\t}", "public void dispose() {\n\t\tif (modelItemProvider != null) modelItemProvider.dispose();\n\t\tif (allInstancesItemProvider != null) allInstancesItemProvider.dispose();\n\t\tif (newInstanceItemProvider != null) newInstanceItemProvider.dispose();\n\t\tif (filterItemProvider != null) filterItemProvider.dispose();\n\t\tif (sortItemProvider != null) sortItemProvider.dispose();\n\t\tif (copyItemProvider != null) copyItemProvider.dispose();\n\t\tif (productItemProvider != null) productItemProvider.dispose();\n\t\tif (getFeatureItemProvider != null) getFeatureItemProvider.dispose();\n\t\tif (setFeatureItemProvider != null) setFeatureItemProvider.dispose();\n\t\tif (newContainerItemProvider != null) newContainerItemProvider.dispose();\n\t\tif (addToContainerItemProvider != null) addToContainerItemProvider.dispose();\n\t\tif (forEachItemProvider != null) forEachItemProvider.dispose();\n\t\tif (collectByItemProvider != null) collectByItemProvider.dispose();\n\t\tif (evaluateItemProvider != null) evaluateItemProvider.dispose();\n\t\tif (integerLiteralItemProvider != null) integerLiteralItemProvider.dispose();\n\t\tif (booleanLiteralItemProvider != null) booleanLiteralItemProvider.dispose();\n\t\tif (realLiteralItemProvider != null) realLiteralItemProvider.dispose();\n\t\tif (stringLiteralItemProvider != null) stringLiteralItemProvider.dispose();\n\t\tif (fieldReferenceItemProvider != null) fieldReferenceItemProvider.dispose();\n\t\tif (unaryOperationItemProvider != null) unaryOperationItemProvider.dispose();\n\t\tif (binaryOperationItemProvider != null) binaryOperationItemProvider.dispose();\n\t\tif (featureCallItemProvider != null) featureCallItemProvider.dispose();\n\t\tif (conditionalExpressionItemProvider != null) conditionalExpressionItemProvider.dispose();\n\t}", "public void partClosed(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public void dispose() {\n\t\tif (musicItemProvider != null)\n\t\t\tmusicItemProvider.dispose();\n\t\tif (trackItemProvider != null)\n\t\t\ttrackItemProvider.dispose();\n\t\tif (sectionItemProvider != null)\n\t\t\tsectionItemProvider.dispose();\n\t\tif (batteryItemProvider != null)\n\t\t\tbatteryItemProvider.dispose();\n\t\tif (melodyItemProvider != null)\n\t\t\tmelodyItemProvider.dispose();\n\t\tif (batteryNoteItemProvider != null)\n\t\t\tbatteryNoteItemProvider.dispose();\n\t\tif (emptyNoteItemProvider != null)\n\t\t\temptyNoteItemProvider.dispose();\n\t\tif (layerItemProvider != null)\n\t\t\tlayerItemProvider.dispose();\n\t\tif (melodyNoteItemProvider != null)\n\t\t\tmelodyNoteItemProvider.dispose();\n\t\tif (compositeNoteItemProvider != null)\n\t\t\tcompositeNoteItemProvider.dispose();\n\t\tif (sectionLayerItemProvider != null)\n\t\t\tsectionLayerItemProvider.dispose();\n\t}", "public void cleanup() {\r\n\t\tsuper.cleanup();\r\n\t\tfor (int i = 0; i < _composites.size(); i++) {\r\n\t\t\t_composites.get(i).cleanup();\t\r\n\t\t}\r\n\t}", "private void presentationDisposed() {\r\n\t\tapiPreferences.dispose();\r\n\t\tthemePreferences.dispose();\r\n\r\n\t\tIterator iter = prefs.values().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tPropertyMapAdapter next = (PropertyMapAdapter) iter.next();\r\n\t\t\tnext.dispose();\r\n\t\t}\r\n\r\n\t\tif (systemMenu != null) {\r\n\t\t\tsystemMenu.dispose();\r\n\t\t}\r\n\r\n\t\tif (partList != null) {\r\n\t\t\tpartList.dispose();\r\n\t\t}\r\n\r\n\t\tsystemMenu = null;\r\n\t\tpartList = null;\r\n\r\n\t}", "public void dispose() {\n\t\tif (diagramItemProvider != null) diagramItemProvider.dispose();\n\t\tif (squareItemProvider != null) squareItemProvider.dispose();\n\t\tif (triangleItemProvider != null) triangleItemProvider.dispose();\n\t\tif (unknownItemProvider != null) unknownItemProvider.dispose();\n\t\tif (connectionItemProvider != null) connectionItemProvider.dispose();\n\t\tif (dashedConnectionItemProvider != null) dashedConnectionItemProvider.dispose();\n\t}", "protected void dispose()\n {\n TextureLoader.disposeTextures();\n TileRender.dispose();\n EntityRender.dispose();\n ItemRender.dispose();\n fontRender.dispose();\n background_render.dispose();\n target_render.dispose();\n box_render.dispose();\n Shader.disposeAll();\n }", "public void dispose() {\n\t\tif (disciplinaItemProvider != null) disciplinaItemProvider.dispose();\n\t\tif (matriculaItemProvider != null) matriculaItemProvider.dispose();\n\t\tif (alunoBolsistaItemProvider != null) alunoBolsistaItemProvider.dispose();\n\t\tif (alunoComumItemProvider != null) alunoComumItemProvider.dispose();\n\t\tif (tipoMatriculaItemProvider != null) tipoMatriculaItemProvider.dispose();\n\t}", "public void dispose() {\n parent.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n child.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n parent.removeEdge(this);\n child.removeEdge(this);\n child.setParentEdge(null);\n }", "private void initEditorPanel() {\n\t\t\n\t\t//Remove all components from panel\n\t\tthis.editor.removeAll();\n\t\t\n\t\t//Redraw which feature\n\t\tthis.whichFeature.validate();\n\t\tthis.whichFeature.repaint();\n\t\t\n\t\t//Setting icon values\n\t\tpartL.setIcon(myParent.editor.profileImage);\n\t\tendTypeLTL.setIcon(myParent.editor.ltImage);\n\t\tendTypeRBL.setIcon(myParent.editor.rbImage);\n\t\tpfFormLL.setIcon(myParent.profileshapeImage);\n\t\tsetGo.setIcon(myParent.setImage);\n\t\tcancel.setIcon(myParent.cancelImage);\n\t\t\n\t\t//Setting values visibility\n\t\tpart.setVisible(false);\n\t\tpartL.setVisible(false);\n\t\tparts.setVisible(false);\n\t\t\n\t\tendTypeLT.setVisible(false);\n\t\tendTypeLTL.setVisible(false);\n\t\tlCut.setVisible(false);\n\t\tendTypeRB.setVisible(false);\n\t\tendTypeRBL.setVisible(false);\n\t\trCut.setVisible(false);\n\t\tpfFormL.setVisible(false);\n\t\tpfFormLL.setVisible(false);\n\t\tpfCombo.setVisible(false);\n\t\t\n\t\toffsetL.setVisible(false);\n\t\toffsetR.setVisible(false);\n\t\toffsetLT.setVisible(false);\n\t\toffsetRB.setVisible(false);\n\t\t\n\t\tbL.setVisible(false);\n\t\tbR.setVisible(false);\n\t\tdeltaL.setVisible(false);\n\t\tdeltaR.setVisible(false);\n\t\t\n\t\tsetGo.setVisible(false);\n\t\tcancel.setVisible(false);\n\t\t\n\t\tmyParent.dim.masterSelected.setEnabled(false);\n\t\tmyParent.dim.slaveSelected.setEnabled(false);\n\t\tmyParent.dim.masterSelected.setVisible(false);\n\t\tmyParent.dim.slaveSelected.setVisible(false);\n\t\tmyParent.dim.doAlign.setVisible(false);\n\t\tmyParent.dim.changeAlign.setVisible(false);\n\t\tmyParent.dim.cancelAlign.setVisible(false);\n\t\tmyParent.dim.doAlign.setEnabled(false);\n\t\tmyParent.dim.changeAlign.setEnabled(false);\n\t\t\n\t\tmyParent.alignSeq = 0;\n\t\t\n\t\t//Adding components to editor panel\n\t\teditor.add(part, new XYConstraints(1, 1, 20, 19));\n\t\teditor.add(partL, new XYConstraints(22, 1, 20, 19));\n\t\teditor.add(parts, new XYConstraints(42, 1, 140, 19));\n\t\t\n\t\teditor.add(endTypeLT, new XYConstraints(1, 23, 20, 19));\n\t\teditor.add(endTypeLTL, new XYConstraints(22, 23, 20, 19));\n\t\teditor.add(lCut, new XYConstraints(81, 23, 100, 19));\n\t\t\n\t\teditor.add(endTypeRB, new XYConstraints(1, 44, 20, 19));\n\t\teditor.add(endTypeRBL, new XYConstraints(22, 44, 20, 19));\n\t\teditor.add(rCut, new XYConstraints(81, 44, 100, 19));\n\t\t\n\t\teditor.add(pfFormL, new XYConstraints(1, 65, 20, 19));\n\t\teditor.add(pfFormLL, new XYConstraints(22, 65, 20, 19));\n\t\teditor.add(pfCombo, new XYConstraints(81, 65, 100, 19));\n\t\t\n\t\teditor.add(offsetL, new XYConstraints(1, 86, 50, 19));\n\t\teditor.add(offsetR, new XYConstraints(1, 107, 50, 19));\n\t\teditor.add(bL, new XYConstraints(1, 128, 50, 19));\n\t\teditor.add(bR, new XYConstraints(1, 149, 50, 19));\n\t\t\n\t\teditor.add(offsetLT, new XYConstraints(60, 86, 118, 19));\n\t\teditor.add(offsetRB, new XYConstraints(60, 107, 118, 19));\n\t\t\n\t\teditor.add(deltaL, new XYConstraints(60, 127, 118, 19));\n\t\teditor.add(deltaR, new XYConstraints(60, 147, 118, 19));\n\t\t\n\t\teditor.add(setGo, new XYConstraints(56, 168, 60, 19));\n\t\teditor.add(cancel, new XYConstraints(118, 168, 60, 19));\n\t\t\n\t\teditor.add(myParent.dim.masterSelected, new XYConstraints(1, 3, 120, 19));\n\t\teditor.add(myParent.dim.slaveSelected, new XYConstraints(1, 24,120, 19));\n\t\t\n\t\teditor.add(myParent.dim.doAlign, new XYConstraints(1, 50, 59, 19));\n\t\teditor.add(myParent.dim.changeAlign, new XYConstraints(61, 50, 59, 19));\n\t\teditor.add(myParent.dim.cancelAlign, new XYConstraints(121, 50, 59, 19));\n\t}", "@Override\r\n\t\t\tpublic void partClosed(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "private void closeModules()\n {\n for (Module m : m_modules)\n {\n // Remove the module from the resolver state.\n getFramework().getResolver().removeModule(m);\n\n // Set fragments to null, which will remove the module from all\n // of its dependent fragment modules.\n try\n {\n ((ModuleImpl) m).attachFragments(null);\n }\n catch (Exception ex)\n {\n getFramework().getLogger().log(\n m.getBundle(), Logger.LOG_ERROR, \"Error detaching fragments.\", ex);\n }\n // Set wires to null, which will remove the module from all\n // of its dependent modules.\n ((ModuleImpl) m).setWires(null);\n\n // Close the module's content.\n ((ModuleImpl) m).close();\n }\n }", "public void dispose() {\n\t\tif (table != null) {\n\t\t\ttable.dispose();\n\t\t\ttable = null;\n\t\t}\n\n\t\tif (cursor != null) {\n\t\t\tcursor.dispose();\n\t\t\tcursor = null;\n\t\t}\n\n\t\tif (clipboard != null) {\n\t\t\tclipboard.dispose();\n\t\t}\n\n\t\tdisposeCommands(undolist);\n\t\tdisposeCommands(redolist);\n\n\t\tencodingTypes = null;\n\t}", "public void dispose() {\n\t\tif (controllerItemProvider != null) controllerItemProvider.dispose();\n\t\tif (associationRelationshipItemProvider != null) associationRelationshipItemProvider.dispose();\n\t\tif (operationItemProvider != null) operationItemProvider.dispose();\n\t\tif (actionItemProvider != null) actionItemProvider.dispose();\n\t\tif (viewItemProvider != null) viewItemProvider.dispose();\n\t\tif (attributeItemProvider != null) attributeItemProvider.dispose();\n\t\tif (inheritanceRelationshipItemProvider != null) inheritanceRelationshipItemProvider.dispose();\n\t\tif (realizationRelationshipItemProvider != null) realizationRelationshipItemProvider.dispose();\n\t\tif (modelItemProvider != null) modelItemProvider.dispose();\n\t\tif (packageItemProvider != null) packageItemProvider.dispose();\n\t\tif (dependencyRelationshipItemProvider != null) dependencyRelationshipItemProvider.dispose();\n\t\tif (classItemProvider != null) classItemProvider.dispose();\n\t\tif (interfaceItemProvider != null) interfaceItemProvider.dispose();\n\t\tif (actionToViewTransitionItemProvider != null) actionToViewTransitionItemProvider.dispose();\n\t\tif (taggedValueItemProvider != null) taggedValueItemProvider.dispose();\n\t\tif (documentationItemProvider != null) documentationItemProvider.dispose();\n\t\tif (classifierMemberItemProvider != null) classifierMemberItemProvider.dispose();\n\t\tif (includeItemProvider != null) includeItemProvider.dispose();\n\t\tif (styleSheetItemProvider != null) styleSheetItemProvider.dispose();\n\t\tif (viewTransitionItemProvider != null) viewTransitionItemProvider.dispose();\n\t\tif (enumerationItemProvider != null) enumerationItemProvider.dispose();\n\t\tif (enumerationLiteralItemProvider != null) enumerationLiteralItemProvider.dispose();\n\t\tif (dictionaryItemProvider != null) dictionaryItemProvider.dispose();\n\t\tif (labelItemProvider != null) labelItemProvider.dispose();\n\t\tif (langstringItemProvider != null) langstringItemProvider.dispose();\n\t\tif (databaseTableItemProvider != null) databaseTableItemProvider.dispose();\n\t\tif (usecaseSubsystemItemProvider != null) usecaseSubsystemItemProvider.dispose();\n\t\tif (usecaseItemProvider != null) usecaseItemProvider.dispose();\n\t\tif (actorItemProvider != null) actorItemProvider.dispose();\n\t\tif (areaItemProvider != null) areaItemProvider.dispose();\n\t\tif (controllerMemberExecutableItemProvider != null) controllerMemberExecutableItemProvider.dispose();\n\t\tif (widgetElementItemProvider != null) widgetElementItemProvider.dispose();\n\t\tif (widgetOptionItemProvider != null) widgetOptionItemProvider.dispose();\n\t\tif (formItemProvider != null) formItemProvider.dispose();\n\t\tif (widgetAttributeItemProvider != null) widgetAttributeItemProvider.dispose();\n\t\tif (widgetAssociationItemProvider != null) widgetAssociationItemProvider.dispose();\n\t}", "public void dispose() {\n\t\tif (operAModelItemProvider != null) operAModelItemProvider.dispose();\n\t\tif (omItemProvider != null) omItemProvider.dispose();\n\t\tif (ssItemProvider != null) ssItemProvider.dispose();\n\t\tif (isItemProvider != null) isItemProvider.dispose();\n\t\tif (nsItemProvider != null) nsItemProvider.dispose();\n\t\tif (csItemProvider != null) csItemProvider.dispose();\n\t\tif (roleItemProvider != null) roleItemProvider.dispose();\n\t\tif (objectiveItemProvider != null) objectiveItemProvider.dispose();\n\t\tif (normItemProvider != null) normItemProvider.dispose();\n\t\tif (individualDeonticStatementItemProvider != null) individualDeonticStatementItemProvider.dispose();\n\t\tif (roleDeonticStatementItemProvider != null) roleDeonticStatementItemProvider.dispose();\n\t\tif (rightItemProvider != null) rightItemProvider.dispose();\n\t\tif (hierarchyDependencyItemProvider != null) hierarchyDependencyItemProvider.dispose();\n\t\tif (marketDependencyItemProvider != null) marketDependencyItemProvider.dispose();\n\t\tif (networkDependencyItemProvider != null) networkDependencyItemProvider.dispose();\n\t\tif (sceneItemProvider != null) sceneItemProvider.dispose();\n\t\tif (transitionItemProvider != null) transitionItemProvider.dispose();\n\t\tif (sceneToTransitionArcItemProvider != null) sceneToTransitionArcItemProvider.dispose();\n\t\tif (transitionToSceneArcItemProvider != null) transitionToSceneArcItemProvider.dispose();\n\t\tif (playerItemProvider != null) playerItemProvider.dispose();\n\t\tif (landmarkPatternItemProvider != null) landmarkPatternItemProvider.dispose();\n\t\tif (landmarkItemProvider != null) landmarkItemProvider.dispose();\n\t\tif (transitionNormItemProvider != null) transitionNormItemProvider.dispose();\n\t\tif (partialOrderItemProvider != null) partialOrderItemProvider.dispose();\n\t\tif (atomItemProvider != null) atomItemProvider.dispose();\n\t\tif (constantItemProvider != null) constantItemProvider.dispose();\n\t\tif (variableItemProvider != null) variableItemProvider.dispose();\n\t\tif (functionItemProvider != null) functionItemProvider.dispose();\n\t\tif (negationItemProvider != null) negationItemProvider.dispose();\n\t\tif (conjunctionItemProvider != null) conjunctionItemProvider.dispose();\n\t\tif (disjunctionItemProvider != null) disjunctionItemProvider.dispose();\n\t\tif (implicationItemProvider != null) implicationItemProvider.dispose();\n\t\tif (forAllPathsItemProvider != null) forAllPathsItemProvider.dispose();\n\t\tif (existsPathItemProvider != null) existsPathItemProvider.dispose();\n\t\tif (pathNegationItemProvider != null) pathNegationItemProvider.dispose();\n\t\tif (pathConjunctionItemProvider != null) pathConjunctionItemProvider.dispose();\n\t\tif (pathDisjunctionItemProvider != null) pathDisjunctionItemProvider.dispose();\n\t\tif (pathImplicationItemProvider != null) pathImplicationItemProvider.dispose();\n\t\tif (nextItemProvider != null) nextItemProvider.dispose();\n\t\tif (sometimeItemProvider != null) sometimeItemProvider.dispose();\n\t\tif (alwaysItemProvider != null) alwaysItemProvider.dispose();\n\t\tif (untilItemProvider != null) untilItemProvider.dispose();\n\t\tif (ontologyItemProvider != null) ontologyItemProvider.dispose();\n\t\tif (conceptItemProvider != null) conceptItemProvider.dispose();\n\t\tif (countsAsItemProvider != null) countsAsItemProvider.dispose();\n\t\tif (actionsItemProvider != null) actionsItemProvider.dispose();\n\t\tif (atomicActionItemProvider != null) atomicActionItemProvider.dispose();\n\t\tif (sequenceItemProvider != null) sequenceItemProvider.dispose();\n\t\tif (conditionalItemProvider != null) conditionalItemProvider.dispose();\n\t\tif (contextItemProvider != null) contextItemProvider.dispose();\n\t}", "@Override\n public void dispose()\n {\n // Call super dispose first so that window is closed, before\n // disposing of the frame. This prevents a crash because of\n // trying to dry a disposed image.\n // Should really be at the end of this function. TODO:\n super.dispose();\n\n CogTool.selectionPhase.removeDelayedWork(delayedWidgetSelection);\n CogTool.repaintPhase.removeDelayedWork(delayedRepainting);\n\n uiModel.dispose();\n\n frameUI.removeAllHandlers(this);\n frame.removeAllHandlers(this);\n design.removeAllHandlers(this);\n\n undoManager.removeAllHandlers(this);\n selection.removeAllHandlers(this);\n }", "public void cleanup() {\n mParentLayout.removeView(mContainer);\n mControlsVisible.clear();\n }", "@Override\n\tpublic void release()\n\t{\n\t\tif (hasPropertyAndNotNull(TiC.PROPERTY_SEARCH)) {\n\t\t\tfinal TiViewProxy search = (TiViewProxy) getProperty(TiC.PROPERTY_SEARCH);\n\t\t\tsearch.releaseViews();\n\t\t}\n\t\tif (hasPropertyAndNotNull(TiC.PROPERTY_HEADER_VIEW)) {\n\t\t\tfinal TiViewProxy header = (TiViewProxy) getProperty(TiC.PROPERTY_HEADER_VIEW);\n\t\t\theader.releaseViews();\n\t\t}\n\t\tif (hasPropertyAndNotNull(TiC.PROPERTY_FOOTER_VIEW)) {\n\t\t\tfinal TiViewProxy footer = (TiViewProxy) getProperty(TiC.PROPERTY_FOOTER_VIEW);\n\t\t\tfooter.releaseViews();\n\t\t}\n\n\t\treleaseViews();\n\t\tthis.sections.clear();\n\n\t\tsuper.release();\n\t}", "public void EditorContainer() {\n\t setLayout(null);\n\t}", "public void close()\n {\n myListenerHelper.close();\n mySpecializedProcessorsLock.writeLock().lock();\n try\n {\n myRenderableGeometryProcessors.clear();\n myProjectionSensitiveProcessors.clear();\n }\n finally\n {\n mySpecializedProcessorsLock.writeLock().unlock();\n }\n myProcessorsLock.writeLock().lock();\n try\n {\n for (final GeometryProcessor<? extends Geometry> proc : myGeometryProcessorsMap.values())\n {\n myProcessorBuilder.getPickManager().removeGeometries(proc.getGeometries());\n proc.close();\n }\n myGeometryProcessorsMap.clear();\n myInactiveGeometries.clear();\n recalculateCoveredTimeSpans();\n myGeometryProcessorsSnapshot = Collections.emptyList();\n }\n finally\n {\n myProcessorsLock.writeLock().unlock();\n }\n\n myUnprocessedGeometryLock.lock();\n try\n {\n removeTimeListeners();\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n }", "public void dispose() {\n\t\tif (fashionDomainItemProvider != null) fashionDomainItemProvider.dispose();\n\t\tif (articleItemProvider != null) articleItemProvider.dispose();\n\t\tif (tvProgramItemProvider != null) tvProgramItemProvider.dispose();\n\t\tif (fashionStyleItemProvider != null) fashionStyleItemProvider.dispose();\n\t\tif (spatioTemporalDescriptorItemProvider != null) spatioTemporalDescriptorItemProvider.dispose();\n\t\tif (famousBrandItemProvider != null) famousBrandItemProvider.dispose();\n\t\tif (emergingBrandItemProvider != null) emergingBrandItemProvider.dispose();\n\t\tif (localBrandItemProvider != null) localBrandItemProvider.dispose();\n\t\tif (advertisingCampaignItemProvider != null) advertisingCampaignItemProvider.dispose();\n\t\tif (advertisingProductItemProvider != null) advertisingProductItemProvider.dispose();\n\t\tif (macroEventItemProvider != null) macroEventItemProvider.dispose();\n\t\tif (singleBrandEventItemProvider != null) singleBrandEventItemProvider.dispose();\n\t\tif (productLineItemProvider != null) productLineItemProvider.dispose();\n\t\tif (productStyleItemProvider != null) productStyleItemProvider.dispose();\n\t\tif (productItemProvider != null) productItemProvider.dispose();\n\t\tif (photoItemProvider != null) photoItemProvider.dispose();\n\t\tif (descriptionItemProvider != null) descriptionItemProvider.dispose();\n\t\tif (commentItemProvider != null) commentItemProvider.dispose();\n\t\tif (designerItemProvider != null) designerItemProvider.dispose();\n\t\tif (modelItemProvider != null) modelItemProvider.dispose();\n\t\tif (presenterItemProvider != null) presenterItemProvider.dispose();\n\t\tif (choreographerItemProvider != null) choreographerItemProvider.dispose();\n\t\tif (photographerItemProvider != null) photographerItemProvider.dispose();\n\t\tif (bloggerItemProvider != null) bloggerItemProvider.dispose();\n\t\tif (criticItemProvider != null) criticItemProvider.dispose();\n\t\tif (influencerItemProvider != null) influencerItemProvider.dispose();\n\t}", "public void disposeAllInspectors() {\n Object obj;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n obj = e.nextElement();\n ((InspectorInterface)obj).dispose();\n com.cosylab.vdct.DataProvider.getInstance().removeInspectableListener((InspectableObjectsListener)obj);\n }\n inspectors.removeAllElements();\n}", "private void createUIComponents() {\n editor = createEditor(project, document);\n splitter = new JBSplitter(0.4f);\n ((JBSplitter) splitter).setFirstComponent(editor.getComponent());\n// ((JBSplitter) splitter).setSecondComponent();\n }", "public void dispose() {\r\n\t\tif (fuzzyAutomatonItemProvider != null) fuzzyAutomatonItemProvider.dispose();\r\n\t\tif (stateItemProvider != null) stateItemProvider.dispose();\r\n\t\tif (transitionItemProvider != null) transitionItemProvider.dispose();\r\n\t\tif (variableSetItemProvider != null) variableSetItemProvider.dispose();\r\n\t\tif (variableItemProvider != null) variableItemProvider.dispose();\r\n\t\tif (transitionFeatureItemProvider != null) transitionFeatureItemProvider.dispose();\r\n\t\tif (inputItemProvider != null) inputItemProvider.dispose();\r\n\t\tif (outputItemProvider != null) outputItemProvider.dispose();\r\n\t\tif (fuzzyConstraintItemProvider != null) fuzzyConstraintItemProvider.dispose();\r\n\t\tif (fuzzyRelationItemProvider != null) fuzzyRelationItemProvider.dispose();\r\n\t\tif (varTransformationItemProvider != null) varTransformationItemProvider.dispose();\r\n\t\tif (varUpdateItemProvider != null) varUpdateItemProvider.dispose();\r\n\t}", "public void dispose()\n\t{\n\t\tthis.mDText=null;\n\t\tvisitorFacets.dispose();\n\t\tvisitorMicroSpecies.dispose();\n\t\tvisitorAttributes.dispose();\n\t\tvisitorActions.dispose();\n\t\tvisitorReflexes.dispose();\n\t\tvisitorAspects.dispose();\n\t\tthis.visitorFacets=null;\n\t\tthis.visitorMicroSpecies=null;\n\t\tthis.visitorAttributes=null;\n\t\tthis.visitorActions=null;\n\t\tthis.visitorReflexes=null;\n\t\tthis.visitorAspects=null;\n\t\tthis.experimentsLink=null;\n\t\tthis.speciesLink=null;\n\t}", "@Override\n\tpublic void dispose()\n\t{\n\t\tsuper.dispose();\n\t\tm_pokemon = null;\n\t\tm_boxes = null;\n\t\tm_friends = null;\n\t\tm_bag = null;\n\t\tm_currentShop = null;\n\t\tm_battleField = null;\n\t}", "public void dispose()\n\t{\n\t\tif (m_focusMgr != null)\n\t\t\tm_focusMgr.stop();\n\t\tm_focusMgr = null;\n\t\t//\n\t\tif (f_bpartner != null)\n\t\t\tf_bpartner.dispose();\n\t\tf_bpartner = null;\n\t\tif (f_salesRep != null)\n\t\t\tf_salesRep.dispose();\n\t\tf_salesRep = null;\n\t\tif (f_curLine != null)\n\t\t\tf_curLine.dispose();\n\t\tf_curLine = null;\n\t\tif (f_product != null)\n\t\t\tf_product.dispose();\n\t\tf_product = null;\n\t\tif (f_lines != null)\n\t\t\tf_lines.dispose();\n\t\tf_lines = null;\n\t\tif (f_functionKeys != null)\n\t\t\tf_functionKeys.dispose();\n\t\tf_functionKeys = null;\n\t\tif (f_checkout != null)\n\t\t\tf_checkout.dispose();\n\t\tf_checkout = null;\n\t\tif (f_basicKeys != null)\n\t\t\tf_basicKeys.dispose();\n\t\tf_basicKeys = null;\n\t\t//\n\t\tif (f_queryProduct != null)\n\t\t\tf_queryProduct.dispose();\n\t\tf_queryProduct = null;\n\t\tif (f_queryBPartner != null)\n\t\t\tf_queryBPartner.dispose();\n\t\tf_queryBPartner = null;\n\t\t//\n\t\tif (m_frame != null)\n\t\t\tm_frame.dispose();\n\t\tm_frame = null;\n\t\tm_ctx = null;\n\t}", "@FxThread\n private void onFinishLoading() {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(editorPlugin -> editorPlugin.onFinishLoading(pluginSystem));\n }", "public void unload() {\r\n\t\tunloadMCE(id);\r\n\t}", "public void refresh()\n {\n TreeViewer treeViewer = getTreeViewer();\n\n if ( treeViewer != null && composite != null )\n {\n if ( hasAnOutline() )\n {\n Control treeViewerControl = treeViewer.getControl();\n\n if ( ( treeViewerControl != null ) && ( !treeViewerControl.isDisposed() ) )\n {\n treeViewerControl.setParent( composite );\n }\n\n noOutlineComposite.setParent( fakeComposite );\n }\n else\n {\n Control treeViewerControl = treeViewer.getControl();\n\n if ( ( treeViewerControl != null ) && ( !treeViewerControl.isDisposed() ) )\n {\n treeViewerControl.setParent( fakeComposite );\n }\n\n noOutlineComposite.setParent( composite );\n }\n\n composite.layout();\n\n if ( treeViewer.getTree() != null && !treeViewer.getTree().isDisposed() )\n {\n TreeViewer entryEditorWidgetTreeViewer = getEntryEditorWidgetTreeViewer();\n if ( entryEditorWidgetTreeViewer != null )\n {\n treeViewer.setFilters( entryEditorWidgetTreeViewer.getFilters() );\n }\n if ( !treeViewer.getTree().isEnabled() )\n {\n treeViewer.getTree().setEnabled( true );\n }\n\n IEntry entry = getEntryEditorWidgetTreeViewerInput();\n if ( entry == null )\n {\n treeViewer.setInput( null );\n treeViewer.getTree().setEnabled( false );\n }\n else\n {\n treeViewer.setInput( entry );\n treeViewer.expandToLevel( 2 );\n }\n\n treeViewer.refresh();\n }\n }\n }", "@Override\n public void cleanup() {\n // dispose GUI:\n if (this.mainPanel != null) {\n this.mainPanel.dispose();\n }\n }", "public void dispose () {\n\t\twhile(!stack.isEmpty()) {\n\t\t\tstack.pop().dispose();\n\t\t}\n\t}", "public void dispose() {\n\t\tif (programItemProvider != null) programItemProvider.dispose();\n\t\tif (methodItemProvider != null) methodItemProvider.dispose();\n\t\tif (printItemProvider != null) printItemProvider.dispose();\n\t\tif (methodCallItemProvider != null) methodCallItemProvider.dispose();\n\t\tif (ifItemProvider != null) ifItemProvider.dispose();\n\t\tif (trueItemProvider != null) trueItemProvider.dispose();\n\t\tif (falseItemProvider != null) falseItemProvider.dispose();\n\t\tif (equalityItemProvider != null) equalityItemProvider.dispose();\n\t\tif (notItemProvider != null) notItemProvider.dispose();\n\t\tif (andItemProvider != null) andItemProvider.dispose();\n\t\tif (constItemProvider != null) constItemProvider.dispose();\n\t\tif (varItemProvider != null) varItemProvider.dispose();\n\t\tif (assignItemProvider != null) assignItemProvider.dispose();\n\t\tif (plusItemProvider != null) plusItemProvider.dispose();\n\t\tif (greaterThanItemProvider != null) greaterThanItemProvider.dispose();\n\t\tif (whileItemProvider != null) whileItemProvider.dispose();\n\t}", "public void partClosed(IWorkbenchPart part) {\n if (part instanceof ReviewEditorView) {\n log.debug(\"part is closed.\");\n }\n }", "public void dispose() {\n synchronized (getTreeLock()) {\n if (inputContext != null) {\n InputContext toDispose = inputContext;\n inputContext = null;\n toDispose.dispose();\n }\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) (ownedWindows.elementAt(i));\n if (child != null) {\n child.dispose();\n }\n }\n } \n hide();\n // 6182409: Window.pack does not work correctly.\n beforeFirstShow = true;\n removeNotify();\n if (parent != null) {\n Window parent = (Window) this.parent;\n parent.removeOwnedWindow(this);\n } \n postWindowEvent(WindowEvent.WINDOW_CLOSED);\n }\n }", "public void releaseChildren() {\n if (children != null) {\n unloadChildren();\n\n children.unload();\n children = null;\n }\n }", "public void setActivePage(IEditorPart activeEditor) {\n\r\n\t}", "public void cleanUp() {\r\n if(getFunctionType() != VIEW_HIERARCHY)\r\n panel.dispose();\r\n cvGroupsData = null;\r\n cvHierarchyData = null;\r\n cvSortData = null;\r\n sponsorHierarchyBean = null;\r\n sponsorHierarchyTree = null;\r\n model = null;\r\n selectedNode = null;\r\n selTreePath = null;\r\n groupsController = null;\r\n hierarchyRenderer = null;\r\n hierarchyTreeCellEditor = null;\r\n treeDropTarget = null;\r\n panel = null;\r\n editor = null;\r\n changePassword = null;\r\n backGroundColor = null;\r\n maintainSponsorHierarchyBaseWindow = null;\r\n }", "@Override\r\n\tpublic void dispose() {\r\n\t\tif (ngcsDataItemProvider != null)\r\n\t\t\tngcsDataItemProvider.dispose();\r\n\t\tif (ngcsProjectItemProvider != null)\r\n\t\t\tngcsProjectItemProvider.dispose();\r\n\t\tif (ngcsModuleItemProvider != null)\r\n\t\t\tngcsModuleItemProvider.dispose();\r\n\t\tif (ngcsAttributeItemProvider != null)\r\n\t\t\tngcsAttributeItemProvider.dispose();\r\n\t\tif (ngcsAggregationItemProvider != null)\r\n\t\t\tngcsAggregationItemProvider.dispose();\r\n\t\tif (ngcsReferenceItemProvider != null)\r\n\t\t\tngcsReferenceItemProvider.dispose();\r\n\t}", "public void dispose() {\n if (paramEditor == null) {\n // already disposed!\n return;\n }\n initEditor.removePropertyChangeListener(this);\n paramEditor.removePropertyChangeListener(initEditor);\n functionEditor.removePropertyChangeListener(initEditor);\n initEditor.removePropertyChangeListener(paramEditor);\n initEditor.removePropertyChangeListener(functionEditor);\n initEditor.setFunctionPanel(null);\n initEditor.setFunctionEditors(null);\n paramEditor.setFunctionEditors(null);\n model = null;\n super.dispose();\n }", "public void dispose() {\n\t\tBusinessObject owner = getOwner();\n\t\tif (owner != null) {\n\t\t\t// remove potential owner's pointer to this\n\t\t\towner.removeChild(this);\n\t\t\t// remove pointer to owner\n\t\t\t_ownerProperty().setValue(null);\n\t\t}\n\t\t\n\t\t// free all children {\n\t\tif (children != null) {\n\t\t\tBusinessObject[] array = new BusinessObject[children.size()];\n\t\t\tchildren.values().toArray(array);\n\t\t\tfor (BusinessObject bo : array) {\n\t\t\t\tbo.dispose();\n\t\t\t}\n\t\n\t\t\tchildren.clear();\n\t\t\tchildren = null;\t// not needed anymore\n\t\t}\n\t\t\n\t\t// remove all link records\n\t\tif (childLinks != null) {\n\t\t\tchildLinks.clear();\n\t\t\tchildLinks = null;\t// not needed anymore\n\t\t}\n\t\tif (childLinkedAttributes != null) {\n\t\t\tchildLinkedAttributes.clear();\n\t\t\tchildLinkedAttributes = null;\n\t\t}\n\t\t\n\t\t// stop anyone from listening to this object\n\t\tlisteners.clear();\n\t}", "@Override\n\tpublic void dispose() {\n\t\tif (assetItemProvider != null) assetItemProvider.dispose();\n\t\tif (processItemProvider != null) processItemProvider.dispose();\n\t\tif (edfdItemProvider != null) edfdItemProvider.dispose();\n\t\tif (dataStoreItemProvider != null) dataStoreItemProvider.dispose();\n\t\tif (flowItemProvider != null) flowItemProvider.dispose();\n\t\tif (externalEntityItemProvider != null) externalEntityItemProvider.dispose();\n\t\tif (valueItemProvider != null) valueItemProvider.dispose();\n\t\tif (assumptionItemProvider != null) assumptionItemProvider.dispose();\n\t\tif (attackerProfileItemProvider != null) attackerProfileItemProvider.dispose();\n\t\tif (trustZoneItemProvider != null) trustZoneItemProvider.dispose();\n\t\tif (responsibilityItemProvider != null) responsibilityItemProvider.dispose();\n\t}", "@Override\n\tpublic void disposeScene() {\n\t\tthis.detachSelf();\n\tthis.dispose();\n}", "public void dispose() {\r\n\t\tif (ihsDeployRootItemProvider != null) ihsDeployRootItemProvider.dispose();\r\n\t\tif (ihsModuleItemProvider != null) ihsModuleItemProvider.dispose();\r\n\t\tif (ihsServerItemProvider != null) ihsServerItemProvider.dispose();\r\n\t\tif (ihsServerUnitItemProvider != null) ihsServerUnitItemProvider.dispose();\r\n\t\tif (ihsSystemItemProvider != null) ihsSystemItemProvider.dispose();\r\n\t\tif (ihsSystemUnitItemProvider != null) ihsSystemUnitItemProvider.dispose();\r\n\t\tif (ihsUserItemProvider != null) ihsUserItemProvider.dispose();\r\n\t\tif (ihsUserRepositoryItemProvider != null) ihsUserRepositoryItemProvider.dispose();\r\n\t\tif (ihsUserUnitItemProvider != null) ihsUserUnitItemProvider.dispose();\r\n\t\tif (ihsWasAdminModuleItemProvider != null) ihsWasAdminModuleItemProvider.dispose();\r\n\t\tif (ihsWasAdminModuleUnitItemProvider != null) ihsWasAdminModuleUnitItemProvider.dispose();\r\n\t\tif (ihsWasModuleItemProvider != null) ihsWasModuleItemProvider.dispose();\r\n\t\tif (ihsWasModuleUnitItemProvider != null) ihsWasModuleUnitItemProvider.dispose();\r\n\t\tif (linuxIhsSystemItemProvider != null) linuxIhsSystemItemProvider.dispose();\r\n\t\tif (windowsIhsSystemItemProvider != null) windowsIhsSystemItemProvider.dispose();\r\n\t}", "public MultiResourceContainerPage(FormEditor editor, String id, String pageTitle, ImageRegistry imageRegistry) {\r\n\t\tsuper(editor, ID_BASE + id, pageTitle);\r\n\t\tthis.imageRegistry = imageRegistry;\r\n\t}", "private void leaveRenderGroups() {\r\n if (onePageDataModel.page != null) {\r\n for (CustomerBean uiCustomerBean : uiCustomerBeans) {\r\n renderManager.getOnDemandRenderer(uiCustomerBean.getCustomer().getCustomernumber().toString()).remove(this);\r\n }\r\n }\r\n }", "public void dispose() {\r\n\t\tif (appointmentItemProvider != null) appointmentItemProvider.dispose();\r\n\t\tif (dentistItemProvider != null) dentistItemProvider.dispose();\r\n\t\tif (clientItemProvider != null) clientItemProvider.dispose();\r\n\t\tif (polishingGelItemProvider != null) polishingGelItemProvider.dispose();\r\n\t\tif (amalgamItemProvider != null) amalgamItemProvider.dispose();\r\n\t\tif (goldCrownItemProvider != null) goldCrownItemProvider.dispose();\r\n\t\tif (crownItemProvider != null) crownItemProvider.dispose();\r\n\t\tif (scalingItemProvider != null) scalingItemProvider.dispose();\r\n\t\tif (fillingItemProvider != null) fillingItemProvider.dispose();\r\n\t\tif (checkupItemProvider != null) checkupItemProvider.dispose();\r\n\t\tif (minorSurgeryItemProvider != null) minorSurgeryItemProvider.dispose();\r\n\t}", "public EditorContainer() {\n\t setLayout(null);\n\t}", "public synchronized void close() throws IOException {\n\t\tif (journalWriter == null) {\n\t\t\treturn; // already closed\n\t\t}\n\t\tfor (Entry entry : new ArrayList<Entry>(lruEntries.values())) {\n\t\t\tif (entry.currentEditor != null) {\n\t\t\t\tentry.currentEditor.abort();\n\t\t\t}\n\t\t}\n\t\ttrimToSize();\n\t\tjournalWriter.close();\n\t\tjournalWriter = null;\n\t}", "protected void createContents() {\n\t\tDelAllShell = new Shell(SWT.CLOSE | SWT.MIN);\n\t\tfinal int WIDTH=java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;\n\t\tfinal int HEIGHT=java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;\n\t\t\n\t\tDelAllShell.setBounds((WIDTH-441)/2,(HEIGHT-300)/2,441, 177);\n\t\tDelAllShell.setText(\"清空\");\n\t\t\n\t\tLabel messgLabel_1 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_1.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_1.setBounds(10, 10, 405, 23);\n\t\tmessgLabel_1.setText(\"您所选择的分组为通讯录列表,确认删除时\");\n\t\t\n\t\tLabel messgLabel_2 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_2.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_2.setBounds(62, 39, 272, 23);\n\t\tmessgLabel_2.setText(\"清空所有内容!\");\n\t\t\n\t\tButton yesButton = new Button(DelAllShell, SWT.NONE);\n\t\tyesButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tTreeItem[] treeItem=mainTreeItem.getItems();\n\t\t\t\t\tfor(int i=0;i<treeItem.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttreeItem[i].dispose();\n\t\t\t\t\t}\n\t\t\t\tGroups.getGroupList().clear();\n\t\t\t\tUsers.getUserList().clear();\n\t\t\t\tGroups.updateToFile();\n\t\t\t\tUsers.updateToFile();\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"清空文件失败\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDelAllShell.close();\n\t\t\t\t//final Group mainTreeItem = new Group(tree, SWT.NONE);\n\t\t\t\t//mainTreeItem.setText(\"通讯录列表\");\n\t\t\t\t//mainShell.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tyesButton.setBounds(86, 102, 80, 27);\n\t\tyesButton.setText(\"确定\");\n\t\t\n\t\tButton noButton = new Button(DelAllShell, SWT.NONE);\n\t\tnoButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tDelAllShell.close();\n\t\t\t}\n\t\t});\n\t\tnoButton.setText(\"取消\");\n\t\tnoButton.setBounds(254, 102, 80, 27);\n\n\t}", "public void dispose()\r\n\t{\r\n\t\t_current.dispose();\r\n\t}", "@Override\n protected Collection<IChunk> clearInternal()\n {\n Collection<IChunk> rtn = super.clearInternal();\n \n setModalityChunk(getFreeChunk());\n setProcessorChunk(getFreeChunk());\n setExecutionChunk(getFreeChunk());\n setPreparationChunk(getFreeChunk());\n return rtn;\n }", "public void dispose() {\n\t\tsuper.dispose();\n\t\tfor(AbstractInteract o : obj)\n\t\t\to.dispose();\n\t}", "public static boolean closeSubdiagramEditors(State state) {\r\n\t\tDiagram diagram = DiagramPartitioningUtil.getSubDiagram(state);\r\n\t\tif (diagram == null)\r\n\t\t\treturn true;\r\n\t\tIWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\r\n\t\tIEditorReference[] refs = activePage.getEditorReferences();\r\n\t\tfor (IEditorReference ref : refs) {\r\n\t\t\ttry {\r\n\t\t\t\tif (ref.getEditorInput() instanceof IDiagramEditorInput) {\r\n\t\t\t\t\tIDiagramEditorInput diagramInput = (IDiagramEditorInput) ref.getEditorInput();\r\n\t\t\t\t\tif (diagramInput.getDiagram().equals(diagram)) {\r\n\t\t\t\t\t\tboolean close = MessageDialog.openQuestion(activePage.getActivePart().getSite().getShell(),\r\n\t\t\t\t\t\t\t\t\"Close subdiagram editor?\",\r\n\t\t\t\t\t\t\t\t\"The subdiagram is still open in another editor. Do you want to close it?\");\r\n\t\t\t\t\t\tif (close) {\r\n\t\t\t\t\t\t\tactivePage.closeEditor(ref.getEditor(false), false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn close;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (PartInitException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void dispose() {\n\t\tif (sourceItemProvider != null) sourceItemProvider.dispose();\n\t\tif (parameterItemProvider != null) parameterItemProvider.dispose();\n\t\tif (procedureItemProvider != null) procedureItemProvider.dispose();\n\t\tif (functionItemProvider != null) functionItemProvider.dispose();\n\t\tif (routineResultTableItemProvider != null) routineResultTableItemProvider.dispose();\n\t\tif (methodItemProvider != null) methodItemProvider.dispose();\n\t\tif (userDefinedFunctionItemProvider != null) userDefinedFunctionItemProvider.dispose();\n\t\tif (builtInFunctionItemProvider != null) builtInFunctionItemProvider.dispose();\n\t}", "public void free(){\n\t\t\tif(this.elements != null){\n\t\t\t\tfor(Element element : this.elements){\n\t\t\t\t\telement.free();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n public void dispose() {\r\n lvl.dispose();\r\n }", "public void dispose()\n {\n if (monitoringProbeItemProvider != null) monitoringProbeItemProvider.dispose();\n if (resizingActionItemProvider != null) resizingActionItemProvider.dispose();\n if (softwareDependencyItemProvider != null) softwareDependencyItemProvider.dispose();\n if (userApplicationItemProvider != null) userApplicationItemProvider.dispose();\n if (keyPairItemProvider != null) keyPairItemProvider.dispose();\n if (virtualMachineImageFlavorItemProvider != null) virtualMachineImageFlavorItemProvider.dispose();\n if (virtualNetworkItemProvider != null) virtualNetworkItemProvider.dispose();\n if (cloudProviderItemProvider != null) cloudProviderItemProvider.dispose();\n if (virtualMachineImageItemProvider != null) virtualMachineImageItemProvider.dispose();\n if (deploymentItemProvider != null) deploymentItemProvider.dispose();\n if (moduleItemProvider != null) moduleItemProvider.dispose();\n if (virtualInstanceItemProvider != null) virtualInstanceItemProvider.dispose();\n if (securityGroupItemProvider != null) securityGroupItemProvider.dispose();\n if (rootItemProvider != null) rootItemProvider.dispose();\n if (imagesItemProvider != null) imagesItemProvider.dispose();\n if (networksItemProvider != null) networksItemProvider.dispose();\n if (securityItemProvider != null) securityItemProvider.dispose();\n if (keysItemProvider != null) keysItemProvider.dispose();\n if (groupsItemProvider != null) groupsItemProvider.dispose();\n if (flavorsItemProvider != null) flavorsItemProvider.dispose();\n if (monitoringItemProvider != null) monitoringItemProvider.dispose();\n if (monitoringServiceItemProvider != null) monitoringServiceItemProvider.dispose();\n }", "public XMLEditor(MultiPageEditor editor) {\n colorManager = new ColorManager();\n setSourceViewerConfiguration(new XMLConfiguration(colorManager));\n setDocumentProvider(new XMLDocumentProvider());\n this.editor = editor;\n }", "@NotNull\n List<NlComponentEditor> getEditors();", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\t\n\t\tbtnNewButton = new Button(container, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(286, 513, 75, 30);\n\t\tbtnNewButton.setText(\"\\u9996\\u9875\");\n\t\t\n\t\tbutton = new Button(container, SWT.NONE);\n\t\tbutton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage--;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton.setText(\"\\u4E0A\\u4E00\\u9875\");\n\t\tbutton.setBounds(367, 513, 75, 30);\n\t\t\n\t\tbutton_1 = new Button(container, SWT.NONE);\n\t\tbutton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = page.getPageCount();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_1.setText(\"\\u5C3E\\u9875\");\n\t\tbutton_1.setBounds(652, 513, 75, 30);\n\t\t\n\t\tbutton_2 = new Button(container, SWT.NONE);\n\t\tbutton_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage++;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_2.setText(\"\\u4E0B\\u4E00\\u9875\");\n\t\tbutton_2.setBounds(571, 513, 75, 30);\n\t\t\n\t\ttext = new Text(container, SWT.BORDER);\n\t\ttext.setText(\"\"+currentPage);\n\t\ttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\ttext.setBounds(445, 515, 32, 26);\n\t\t\n\t\tLabel label = new Label(container, SWT.NONE);\n\t\tlabel.setText(\"/\");\n\t\tlabel.setBounds(483, 518, 6, 20);\n\t\t\n\t\tlabel_1 = new Label(container, SWT.NONE);\n\t\tlabel_1.setText(\"2\");\n\t\tlabel_1.setBounds(495, 518, 22, 20);\n\t\t\n\t\tButton button_3 = new Button(container, SWT.NONE);\n\t\tbutton_3.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tint want = Integer.parseInt(text.getText());\n\t\t\t\tif(want<1){\n\t\t\t\t\twant = 1;\n\t\t\t\t}else if(want>page.getCurrentPage()){\n\t\t\t\t\twant = page.getPageCount();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentPage = want;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_3.setText(\"->\");\n\t\tbutton_3.setBounds(527, 513, 32, 30);\n\t\t\n\t\ttext_1 = new Text(container, SWT.BORDER);\n\t\ttext_1.setBounds(286, 134, 73, 26);\n\t\t\n\t\tButton btnNewButton_1 = new Button(container, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tname = text_1.getText();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(367, 134, 55, 30);\n\t\tbtnNewButton_1.setText(\"\\u67E5\\u627E\");\n\t\t\n\t\ttabFolder = new TabFolder(container, SWT.NONE);\n\t\ttabFolder.setBounds(281, 184, 456, 323);\n\t\t\n\t\ttabItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_2.setText(\"\\u672A\\u8BCA\\u65AD\");\n\t\t\n\t\ttable_2 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tregister.setState(\"诊断中\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_2.setLinesVisible(true);\n\t\ttable_2.setHeaderVisible(true);\n\t\ttabItem_2.setControl(table_2);\n\t\t\n\t\tTableColumn tableColumn_4 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_4.setWidth(100);\n\t\ttableColumn_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_5 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_5.setWidth(115);\n\t\ttableColumn_5.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_6 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_6.setWidth(118);\n\t\ttableColumn_6.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_7 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_7.setWidth(108);\n\t\ttableColumn_7.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_2 = new Menu(table_2);\n\t\ttable_2.setMenu(menu_2);\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem_4.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_2.getItem(table_2.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_5.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_1.setText(\"\\u8BCA\\u65AD\\u4E2D\");\n\t\t\n\t\ttable_1 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_1.setLinesVisible(true);\n\t\ttable_1.setHeaderVisible(true);\n\t\ttabItem_1.setControl(table_1);\n\t\t\n\t\tTableColumn tableColumn = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn.setWidth(100);\n\t\ttableColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_1 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_1.setWidth(115);\n\t\ttableColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_2 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_2.setWidth(118);\n\t\ttableColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_3 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_3.setWidth(108);\n\t\ttableColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_1 = new Menu(table_1);\n\t\ttable_1.setMenu(menu_1);\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_1.getItem(table_1.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.CLOSE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_3.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem.setText(\"\\u5DF2\\u8BCA\\u65AD\");\n\t\t\n\t\ttable = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttabItem.setControl(table);\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\t\t\n\t\tTableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn.setWidth(100);\n\t\ttblclmnNewColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_1.setWidth(115);\n\t\ttblclmnNewColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\ttblclmnNewColumn_2.setWidth(118);\n\t\t\n\t\tTableColumn tblclmnNewColumn_3 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_3.setWidth(108);\n\t\ttblclmnNewColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu = new Menu(table);\n\t\ttable.setMenu(menu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table.getItem(table.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_1.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\n\t\tcreateActions();\n\t\tinitializeToolBar();\n\t\tinitializeMenu();\n\t}", "public void close() {\n if (!mCompositeDisposable.isDisposed()) mCompositeDisposable.dispose();\n }", "public void destroyAll() {\n children.destroyAll();\n }", "void dispose() {\n\tif (boldFont != null) boldFont.dispose();\n\tif (italicFont != null) italicFont.dispose();\n\tif (boldItalicFont != null) boldItalicFont.dispose();\n\tboldFont = italicFont = boldItalicFont = null;\n\tif (layouts != null) {\n\t\tfor (int i = 0; i < layouts.length; i++) {\n\t\t\tTextLayout layout = layouts[i];\n\t\t\tif (layout != null) layout.dispose();\n\t\t}\n\t\tlayouts = null;\n\t}\n\ttopIndex = -1;\n}", "public void destroy() {\n for (ComponentBean component : this.componentMap.values()) {\n component.getObject().destroy();\n }\n\n flushRegistry();\n\n }", "public void dispose() {\n\t\tif (tiles != null) {\n\t\t\tfor (int i = 0; i < tiles.length; i++)\n\t\t\t\tfor (int j = 0; j < tiles[i].length; j++)\n\t\t\t\t\ttiles[i][j].dispose();\n\t\t}\n\t}", "void dispose() {\n for (int i = 0; i < days.size(); i++) {\n days.get(i).dispose();\n }\n days.clear();\n days = null;\n }", "public void dispose() {\n\t\tsuper.dispose();\n\t}", "@Override\n\tpublic void dispose() {\n\t\tplat.dispose();\n\t\tbar1.dispose();\n\t\tbar2.dispose();\n\t}", "@Override\n\tpublic void dispose() {\n\t\tstage.dispose();\t\t\n\t\tsuper.dispose();\n\t}", "public void commit(boolean onSave) {\r\n\t\tfor( IFormPart part : _parts ) {\r\n\t\t\tif ( part.isDirty() ) part.commit( onSave );\r\n\t\t}\r\n\t}", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "@FromAnyThread\n public void handlePlugins(@NotNull Consumer<EditorPlugin> consumer) {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(consumer);\n }", "public void dispose()\n {\n if(mapaActual!=null)\n this.mapaActual.dispose();\n \n //Descarga de los recursos gráficos en animaciones\n for( Animation<TextureRegion>[] animaciones: this.mapaAnimaciones.values())\n {\n for(Animation<TextureRegion> an :animaciones)\n {\n for (TextureRegion tx : an.getKeyFrames())\n tx.getTexture().dispose();\n }\n }\n \n //Descarga de los efectos de sonido\n for(Map.Entry<String, Sound>efecto:this.mapaEfectosSonido.entrySet())\n efecto.getValue().dispose();\n \n //Descarga de la musica de fondo\n if(musicaFondo!=null)\n musicaFondo.dispose();\n \n //Descarga de los Skins\n SKIN_PROPIO.dispose();\n }", "public void close() {\n closeItems();\n }", "@Override\n protected void createFieldEditors() {\n /* ------------------------ CLI setup ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsCLIFieldEditors();\n\n /* -------------------------------------------------------------- */\n /* ------------------------ Log action ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsWaitForLogsInSeconds(getFieldEditorParent());\n /* -------------------------------------------------------------- */\n /* ------------------------ ERROR LEVEL ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsLinterErrorLevelComboBox(getFieldEditorParent());\n\n /* -------------------------------------------------------------- */\n /* ------------------------ APPEARANCE -------------------------- */\n /* -------------------------------------------------------------- */\n GridData appearanceLayoutData = new GridData();\n appearanceLayoutData.horizontalAlignment = GridData.FILL;\n appearanceLayoutData.verticalAlignment = GridData.BEGINNING;\n appearanceLayoutData.grabExcessHorizontalSpace = true;\n appearanceLayoutData.grabExcessVerticalSpace = false;\n appearanceLayoutData.verticalSpan = 2;\n appearanceLayoutData.horizontalSpan = 3;\n\n Composite appearanceComposite = new Composite(getFieldEditorParent(), SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n appearanceComposite.setLayout(layout);\n appearanceComposite.setLayoutData(appearanceLayoutData);\n\n createOtherFieldEditors(appearanceComposite);\n\n createBracketsFieldEditors(appearanceComposite);\n }", "@Override\n public void dispose()\n {\n super.dispose();\n if (_statusEditor!=null)\n {\n _statusEditor=null;\n }\n }", "@Override\n protected void unregisterVisuals() {\n Map visualPartMap = this.getViewer().getVisualPartMap();\n visualPartMap.remove(getFigure().getLabel());\n visualPartMap.remove(getFigure().getCheckBox());\n super.unregisterVisuals();\n }", "public void dispose()\n {\n if(petal_model.getSuperBox().isRootBox()) {\n int option = JOptionPane.showConfirmDialog(null,\n \"Do you like to save before quitting?\",\n \"Question\" ,\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (option == JOptionPane.YES_OPTION) {\n save(petal_model.getSuperBox().getParentModel() == null);\n super.dispose();\n }\n else if (option == JOptionPane.NO_OPTION) {\n super.dispose();\n }\n\n } else {\n setVisible(false);\n }\n }", "public void dispose() {\n equipment.dispose();\n inventory.dispose();\n }" ]
[ "0.6259621", "0.575208", "0.57427764", "0.560224", "0.554152", "0.5485066", "0.52333224", "0.5179598", "0.517174", "0.5101657", "0.5096866", "0.50887215", "0.5081484", "0.4946827", "0.49443975", "0.49431837", "0.49345368", "0.49318612", "0.49288303", "0.4908555", "0.49063483", "0.48816788", "0.4874588", "0.48574987", "0.483183", "0.48317918", "0.48178872", "0.48141804", "0.48127893", "0.4810678", "0.47883883", "0.47820634", "0.4778858", "0.47739184", "0.47463825", "0.47407168", "0.47406372", "0.4737821", "0.4730817", "0.47305378", "0.47270823", "0.47177678", "0.470523", "0.47045583", "0.4701328", "0.46998993", "0.46892992", "0.46863413", "0.46722937", "0.46612066", "0.46443602", "0.46420938", "0.46337828", "0.46319467", "0.4627764", "0.46265057", "0.46209428", "0.46191695", "0.4612432", "0.46086863", "0.4607595", "0.45994663", "0.4592454", "0.45915294", "0.4587119", "0.45863658", "0.45846093", "0.45806295", "0.45718974", "0.4563164", "0.45617613", "0.45493189", "0.45446002", "0.45337382", "0.45302525", "0.45146716", "0.45087802", "0.45077968", "0.45052987", "0.450005", "0.44982338", "0.449467", "0.44749466", "0.4468234", "0.44608364", "0.44541427", "0.4452305", "0.44437563", "0.44414172", "0.44367844", "0.44338447", "0.44284588", "0.44276953", "0.44248658", "0.4424564", "0.44228944", "0.442154", "0.4421526", "0.44165963", "0.44001028", "0.4399291" ]
0.0
-1
Saves the multipage editor's document.
public void doSave(IProgressMonitor monitor) { if (activePage == 0 && (introEditor.isUpdated() || introEditor.isDirty())) updateIntroEditor(); if (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty())) updateFile(); if (activePage == 3 && (cssEditor.isUpdated() || cssEditor.isDirty())) updateCssEditor(); getTextEditor().doSave(monitor); if (pageController.isDirty()) pageController.saveErMessages(); if (cssEditor.isDirty()) cssEditor.saveCssVars(); if (koxEditor != null && koxEditor.isDirty()) koxEditor.doSave(monitor); if (moxEditor != null && moxEditor.isDirty()) moxEditor.doSave(monitor); setDirty(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveDocument() throws IOException;", "public void doSaveAs() {\n\t\tif (activePage == 0 && introEditor.isUpdated() || introEditor.isDirty())\n\t\t\tupdateIntroEditor();\n\t\tif (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty()))\n\t\t\tupdateFile();\n\t\tIEditorPart editor = getTextEditor();\n\t\teditor.doSaveAs();\n\t\tsetPageText(getTextEditorIndex(), editor.getTitle());\n\t\tsetInput(editor.getEditorInput());\n\t}", "@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}", "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }", "void saveDocument(SingleDocumentModel model, Path newPath);", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "void save(JournalPage page);", "public abstract boolean processSaveDocument(Document document);", "public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }", "public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}", "boolean saveDocument(String path, String documentContent, Charset charset, List <String> moduleList);", "public void save() {\t\n\t\n\t\n\t}", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "public synchronized void save() throws IOException {\n for (DocumentSection section : this.sections) {\n section.save();\n }\n }", "private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}", "public boolean doSave() {\n\n if (fDocument.getFile() == null) {\n return doSaveAs(fDocument.getFormat());\n }\n \n return fDocument.save();\n }", "@Override\n\tpublic void save() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"save\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}", "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }", "public void save() {\n }", "void save();", "void save();", "void save();", "public void save();", "public void save();", "public void save();", "public void save();", "public void run() {\r\n\t\tif (window != null) {\r\n\t\t\tIEditorPart part = window.getActivePage().getActiveEditor();\r\n\t\t\t\r\n\t\t\tboolean write = false;\r\n\t\t\tGraphEditorInput input = null;\r\n\t\t\tString defaultFileName = sdf.format(new Date()) + getDefaultExtension();\r\n\t\t\tif (part != null) {\r\n\t\t\t\tinput = (GraphEditorInput) part.getEditorInput();\r\n\t\t\t\twrite = input != null;\r\n\t\t\t\tif (!GraphEditorInput.LIVE_EDITOR_NAME.equals(part.getTitle())) {\r\n\t\t\t\t\tdefaultFileName = part.getTitle();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFile f = chooseSaveFile(window.getShell(), defaultFileName);\r\n\t\t\t\r\n\t\t\tif (f != null) {\r\n\t\t\t\tif (write) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tlog.debug(\"writing file..\");\r\n\t\t\t\t\t\tinput.getGXLDocument().write(f);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\tMessageDialog.openError(window.getShell(), \"Error\", \"Error saving to file:\" + e.getMessage());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tMessageDialog.openInformation(window.getShell(), \"File saving failed!\",\r\n\t\t\t\t\t\t\t\"Could not save the file, editor contains no data!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }", "void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;", "public void save() throws Exception {\n\t\tgetControl(\"saveButton\").click();\n\t\tVoodooUtils.pause(3000);\n\t}", "public void save(View view) {\n \t\n \t// Cannot perform save unless there's a locked document.\n \tLockedDocument mlocked = mObjects.getLockedDoc();\n \tif (mlocked == null)\n \t\treturn;\n \t\n \ttry {\n \t\tmlocked.setTitle(text1.getText().toString());\n \tmlocked.setContents(text2.getText().toString());\n \t\tmObjects.addStatusList(\"Attemping to save document.\");\n \t\tUnlockedDocument unlocked = service.saveDocument(mlocked);\n \t\t\n \t\t// If expected document is saved, display the document.\n\t \tif (mObjects.getWaitingKey() == null || \n\t \t\t\tmObjects.getWaitingKey().equals(unlocked.getKey())) {\n\t \t\tmObjects.addStatusList(\"Document '\" + unlocked.getTitle()\n\t \t\t\t\t+ \"' successfully saved.\");\n\t \t\tsetView(unlocked);\n\t\t\t\tmObjects.setUnlockedDoc(unlocked);\n\t\t\t} else {\n\t\t\t\t// Otherwise, lock the error.\n\t\t\t\tLog.d(TAG,\"Saved document is not the anticipated document.\");\n\t\t\t}\n\t\t} catch (InvalidRequest e) {\n\t\t\tToast.makeText(this, \"Error saving document due to invalid request\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Error saving document: \" + e.getMessage());\n\t\t\t\n\t\t\t// Release the lock if there's error saving document.\n\t\t\treleaseLock(mlocked);\n\t\t} catch (LockExpired e) {\n\t\t\tToast.makeText(this, \"Lock expired\", Toast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Lock had already expired; save failed.\");\n\t\t}\n\t\t\n\t\t// If saving is not successful, modify client's local documents state as well.\n\t\t// This part will only get called if exception were caught. mlocked is set\n\t\t// to null if document is saved correctly. \n\t\tif (mlocked != null) {\n\t\t\tmObjects.setUnlockedDoc(mlocked.unlock());\n\t\t\tsetView(mlocked.unlock());\n\t\t}\n }", "public void Save() {\r\n //solo se salvara el container\r\n vc.getContainer();\r\n }", "public boolean save() {\n\t\treturn save(_file);\n\t}", "public void saveDocumentAs( final URL url ) {\n\t\ttry {\n\t\t\tSystem.out.println( \"Saving to: \" + url );\n\t\t\tif ( _optics.save( this ) ) {\n\t\t\t\tsetHasChanges( false );\n\t\t\t\t// to do: really should make a logbook entry about this\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJOptionPane.showMessageDialog( getMainWindow(), \"The save operation was cancelled.\", \"Save Cancelled\" , JOptionPane.WARNING_MESSAGE );\n\t\t\t}\n\t\t}\n\t\tcatch( Exception exception ) {\n\t\t\tdisplayError( \"Save Failed\", \"Exception while attempting to save changes\", exception );\n\t\t}\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "private void saveFile(boolean showWindow) {\n\n\t\tFormDef form = controller.getSelectedForm();\n\t\tif(form == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tString xml = FormHandler.writeToXML(form);\n\n\t\t\n\t\titextWidget.loadItext(Context.getItextList());\n\n\t\txformsWidget.setXform(xml);\n\t\tif (showWindow) {\n\t\t\txformsWidget.showWindow();\n\t\t}\n\t}", "public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }", "public void save() {\n savePrefs();\n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "@Override\n public void Save() {\n\t \n }", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}", "public boolean save();", "public void save() throws DBAppException, IOException{\n\t\tint numberOfPages = pages_loaded.size();\n\t\tfor (int i = 1; i <= numberOfPages; i++) {\n\t\t\tsavePage(i);\n\t\t}\n\t}", "public void save() {\n if (message == null || currentView == null) {\n return;\n }\n\n if (isEditable) {\n if (currentView.hasChanged()) {\n currentView.save();\n }\n }\n }", "public void save(){\n checkpoint = chapter;\n }", "@Override\n public void save() {\n\n }", "@Override\n public void save() {\n \n }", "public void save() {\n\t\tpreferences().flush();\n\t}", "@FXML\n\tpublic void saveFile() {\n\t\tif (file == null) {\n\t\t\tFileChooser saveFileChooser = new FileChooser();\n\t\t\tsaveFileChooser.setInitialDirectory(userWorkspace);\n\t\t\tsaveFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\t\tfile = saveFileChooser.showSaveDialog(ap.getScene().getWindow());\n\t\t}\n\n\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\ttry {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\t\tPrintWriter output = new PrintWriter(writer);\n\t\t\t\toutput.write(userText.getText());\n\t\t\t\toutput.flush();\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(file.getName() + \" has no valid file-extenstion.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void save()\n {\n \n }", "@Override\r\n\tpublic void doSaveAs() {\r\n\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());\r\n\t\tsaveAsDialog.open();\r\n\t\tIPath path = saveAsDialog.getResult();\r\n\t\tif (path != null) {\r\n\t\t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);\r\n\t\t\tif (file != null) {\r\n\t\t\t\tdoSaveAs(URI.createPlatformResourceURI(file.getFullPath()\r\n\t\t\t\t\t\t.toString(), true), new FileEditorInput(file));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void commit(boolean onSave) {\r\n\t\tfor( IFormPart part : _parts ) {\r\n\t\t\tif ( part.isDirty() ) part.commit( onSave );\r\n\t\t}\r\n\t}", "private void saveFile() {\n\t\ttry {\n\t\t\tFile file = jfc.getSelectedFile();\n\t\t\tint c = -1;\n\t\t\tif(file==null)\n\t\t\t{\n\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t}\n\t\t\t\n\n\t\t\tif(file!= null || c ==0)\n\t\t\t{\t\n\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\tfw.write(jta.getText());\n\t\t\t\tfw.close();\n\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t}", "public boolean doSaveAs(int format) {\n\n String title = ResourceUtils.getString(EditorResources.SAVE_TITLE);\n File file = getFileFromDialog(fDocument.getFile(), title, this, FileDialog.SAVE);\n \n if (file == null) {\n return false;\n }\n \n fDocument.setFile(file);\n setTitle(fDocument.getTitle());\n\n fDocument.setFormat(format);\n \n return fDocument.save();\n }", "public static void saveDocument( Document doc, String path ) {\n\t\ttry {\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\tXMLOutputter fmt = new XMLOutputter( format );\n\t\t\tFile file = new File( path );\n\t\t\tOutputStream stream = new FileOutputStream( file );\n\t\t\tfmt.output( doc, stream );\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException( \"No se encontro el archivo: \" + path, e );\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException( \"Error al guardar el archivo: \" + path, e );\n\t\t}\n\t}", "private void saveProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showSaveDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the output streams\n\t\t\t\tFileOutputStream fileOutput = new FileOutputStream(file.getAbsolutePath());\n\t\t\t\tObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput);\n\t\t\t\n\t\t\t\t// Write the objects\n\t\t\t\tfor(int i = 0; i < cards.size(); i++) {\n\t\t\t\t\tobjectOutput.writeObject(cards.get(i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the output streams\n\t\t\t\tobjectOutput.close();\n\t\t\t\tfileOutput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the file name\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not save the file.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void putDocumentAfterEdit() {\r\n\t\tif(pointer < strategy.getEntireHistory().size()-1) {\r\n\t\t\tstrategy.putVersion(currentDocument);\r\n\t\t}\r\n\t}", "public void doSave() {\n if (isSceneNameChanged()) {\n scene_.setName(nameInput_.getValue());\n }\n scene_.setText(sceneText_.getText());\n }", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "public void saveOffice(Office office) {\n\t\t\n\t}", "public void save() {\n MidiFileIO.saveMIDIFile(sequence);\n }", "@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}", "public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}", "private void saveAs ()\n {\n\tJFileChooser chooser = new JFileChooser ();\n\tchooser.setFileSelectionMode (chooser.FILES_ONLY);\n\tint result = chooser.showSaveDialog (this);\n\tif (result == chooser.CANCEL_OPTION)\n\t{\n\t return;\n\t}\n\n\tFile f = chooser.getSelectedFile ();\n\tif (f.exists ())\n\t{\n\t try\n\t {\n\t\tresult = \n\t\t JOptionPane.showConfirmDialog (\n this,\n\t\t\t\"Overwrite existing file \\\"\" + f.getCanonicalPath () + \n\t\t\t\"\\\"?\",\n\t\t\t\"File Exists\",\n\t\t\tJOptionPane.YES_NO_OPTION);\n\n\t\tif (result != JOptionPane.YES_OPTION)\n\t\t{\n\t\t return;\n\t\t}\n\n\t\tf.delete ();\n\t }\n\t catch (IOException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\tString text;\n\tsynchronized (myDocument)\n\t{\n\t int len = myDocument.getLength ();\n\t try\n\t {\n\t\ttext = myDocument.getText (0, len);\n\t }\n\t catch (BadLocationException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\ttry\n\t{\n\t FileWriter fw = new FileWriter (f);\n\t fw.write (text);\n\t fw.flush ();\n\t fw.close ();\n\t}\n\tcatch (IOException ex)\n\t{\n\t JOptionPane.showMessageDialog (null,\n\t\t\t\t\t ex.getMessage (),\n\t\t\t\t\t \"Write Error\",\n\t\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t}\n }", "void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;", "public void onSave() {\n\t\tsetCreationDate(new Date());\n\t\tPageAlias.create(this, null);\n\t\tupdateChildPaths();\n\t}", "private void save() {\n File personFile = mainApp.getFilmFilePath();\n if (personFile != null) {\n mainApp.saveFilmDataToFile(personFile);\n } else {\n saveAs();\n }\n }", "public void onSaveFile(){\n\n\t\t\n\t\tFormUtil.dlg.setText(\"Saving...\");\n\t\tFormUtil.dlg.show();\n\t\tGWT.runAsync(new RunAsyncCallback() {\n\t public void onFailure(Throwable caught) {}\n\t public void onSuccess() {\t \n\t\t\t\t//DeferredCommand.addCommand(new Command() {\n\t \t Scheduler scheduler = Scheduler.get();\n\t \t scheduler.scheduleDeferred(new Command() {\n\t\t\t\t\tpublic void execute() {\n\t\t\t\t\t FormDef form = controller.getSelectedForm();\t\t\t\t \t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(form != null){\n\t\t\t\t\t\t\t\tsaveFile(false);\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\n\t\t\t\t\t\t\t\tString fileName = \"filename\";\n\t\t\t\t\t\t\t\tfileName = form.getName();\n\t\t\t\t\t\t\t\tString xmlFormStr = FormHandler.writeToXML(form);\n\t\t\t\t\t\t\t\tSaveToFileDialog dlg = SaveToFileDialog.getInstnace(xmlFormStr, fileName);\n\t\t\t\t\t\t\t\tdlg.center();\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t\t\t\t\tWindow.alert(\"No form to save\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception ex){\n\t\t\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t }\n\t\t});\n\t}", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "public static native boolean saveDocument(String doc, String toFile);", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "void saveFile() {\n\t\tJFileChooser fileChooser = new JFileChooser(desktopPath);\n\t\tint returnVal = fileChooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile filePath = fileChooser.getSelectedFile();\n\t\t\ttry {\n\t\t\t\tPrintWriter writer = new PrintWriter(filePath);\n\t\t\t\tScanner out = new Scanner(textEditor.getText());\n\t\t\t\twhile(out.hasNextLine()) {\n\t\t\t\t\twriter.println(out.nextLine());\n\t\t\t\t}\n\t\t\t\tout.close();\n\t\t\t\twriter.close();\n\t\t\t\ttextAreaChanged =false;\n\t\t\t\tsavedFilePath = filePath.getPath();\n\t\t\t\terrorTextArea.setText(\"\");\n\t\t\t} catch (Exception ex) {\n\t\t\t\terrorTextArea.setForeground(Color.RED);\n\t\t\t\terrorTextArea.setText(\"Error saving file\");\n\t\t\t}\n\t\t}\n\t}", "private void save() {\n var boolGrid = editor.getBoolGrid();\n //Generate a track grid from the bool frid\n var grid = Track.createFromBoolGrid(boolGrid);\n var valid = Track.isValidTrack(grid);\n if (!valid) {\n //fire an error event\n MessageBus.fire(new ErrorEvent(\"Invalid track\", \"\", 2));\n } else {\n //Save the track and pop back\n var generator = new TrackFromGridGenerator(grid);\n var track = generator.generateTrack();\n (new TrackStorageManager()).saveTrack(track);\n menu.navigationPop();\n menu.showError(new ErrorEvent(\"Saved track!\", \"\", 2, Colour.GREEN));\n }\n }", "public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSave();\n\t\t\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "void save(ViewDefinition viewDefinition);", "public void save()\r\n {\r\n \tfc=new JFileChooser();\r\n\t fc.setCurrentDirectory(new File(\"\"));\r\n\t if(fc.showSaveDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t \t//Try-Catch Block\r\n\t try\r\n\t {\r\n\t pw=new PrintWriter(new FileWriter(fc.getSelectedFile()+\".txt\")); //Print to the user-selected file\r\n\t\t \tfor(Organism o: e.getTree()) //IN PROGESS\r\n\t\t \t{\r\n\t\t\t\t\tint[] genes=o.getGenes(); //Getting genes from \r\n\t\t\t\t\tfor(int i=0; i<genes.length; i++)\r\n\t\t\t\t\t\tpw.print(genes[i]+\" \"); //Print each gene value in a line\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tpw.println(); //Starts printing on a new line\r\n\t\t\t\t}\r\n\t\t\t\tpw.close(); //Closes the File\r\n\t }\r\n\t catch (Exception ex) //Catch Any Exception\r\n\t {\r\n\t ex.printStackTrace();\r\n\t }\r\n }", "@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }", "private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }", "public void save(String fileName) throws IOException;", "public void saveFile(MultipartFile file,Document document){\n document.setKey(UUID.randomUUID().toString());\n document.setLink(UUID.randomUUID().toString());\n\n }", "void save(XMLDocument document, XMLStreamWriter writer) throws XMLStreamException;", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.show();\r\n if (fd.getFile() != null) {\r\n jm.util.Write.xml(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }", "@Override\n public void saveFile() {\n LOG.fine(\"no.of viewers:\" + viewers.size());\n // assuming the widget that is active is the dirty widget. save it\n for (FileViewer viewer : viewers) {\n if (viewer.isDirty()) {\n saveFile(viewer);\n break;\n }\n }\n }", "@RequestMapping(value = \"save\", method = RequestMethod.POST)\n\tpublic ModelAndView save(@ModelAttribute(\"document\") Document document,\n\t\t\t@RequestParam(value = \"file\", required = false) MultipartFile file,\n\t\t\tModelMap modelMap) {\n\n\t\ttry {\n\n\t\t\tif (document.getpOrg() == null)\n\t\t\t\tthrow new ValidationException(\n\t\t\t\t\t\t\"The Finantial Institution can not be null\");\n\n\t\t\tProducerOrg pOrg = document.getpOrg();\n\n\t\t\tdocumentService.validate(document);\n\n\t\t\tif (file != null && file.getSize() > 0) {\n\n\t\t\t\tString extension = DocumentServiceImpl\n\t\t\t\t\t\t.getExtensionFromPath(file.getOriginalFilename());\n\t\t\t\tif (StringUtils.isBlank(extension)) {\n\t\t\t\t\textension = DocumentServiceImpl\n\t\t\t\t\t\t\t.getDocumentExtension(document);\n\t\t\t\t}\n\n\t\t\t\tString contentType = DocumentServiceImpl.getMimeType(extension);\n\t\t\t\tif (StringUtils.isBlank(contentType)) {\n\t\t\t\t\tcontentType = file.getContentType();\n\t\t\t\t}\n\n\t\t\t\tdocument.setDocumentExtension(extension);\n\t\t\t\tdocument.setContentType(contentType);\n\t\t\t\tdocument.setDocumentInputStream(file.getInputStream());\n\n\t\t\t}\n\n\t\t\tDocument existingDocument = document;\n\n\t\t\tif (StringUtils.isNotEmpty(document.getId())) {\n\n\t\t\t\texistingDocument = documentService.getDocumentById(document\n\t\t\t\t\t\t.getId());\n\t\t\t\texistingDocument.setName(document.getName());\n\t\t\t\texistingDocument.setContentType(document.getContentType());\n\t\t\t\texistingDocument.setDocumentType(document.getDocumentType());\n\t\t\t\texistingDocument.setDocumentExtension(document\n\t\t\t\t\t\t.getDocumentExtension());\n\t\t\t\texistingDocument.setDocumentUrl(document.getDocumentUrl());\n\t\t\t\texistingDocument.setOtherInfo(document.getOtherInfo());\n\t\t\t\texistingDocument.setpOrg(document\n\t\t\t\t\t\t.getpOrg());\n\t\t\t} else {\n\n\t\t\t\tif (file == null || file.getSize() == 0)\n\t\t\t\t\tthrow new ValidationException(\"File is required\");\n\n\t\t\t\texistingDocument.setDateCreated(Calendar.getInstance()\n\t\t\t\t\t\t.getTime());\n\t\t\t\texistingDocument\n\t\t\t\t\t\t.setCreatedBy(OXMSecurityUtil.getLoggedInUser());\n\t\t\t\texistingDocument.setId(null);\n\t\t\t\tpOrg.addDocument(existingDocument);\n\t\t\t}\n\n\t\t\tif (file != null && file.getSize() > 0) {\n\t\t\t\tdocumentService.saveDocument(existingDocument,\n\t\t\t\t\t\tfile.getInputStream());\n\t\t\t\tporgService.save(pOrg);\n\t\t\t} else\n\t\t\t\tdocumentService.saveDocument(existingDocument, null);\n\n\t\t\tmodelMap.put(WebConstants.MODEL_ATTRIBUTE_SYSTEM_MESSAGE,\n\t\t\t\t\t\"Financial Document Saved sucessfully.\");\n\n\t\t\treturn view(pOrg.getId(), modelMap);\n\n\t\t} catch (Exception ex) {\n\t\t\tlog.error(null, ex);\n\t\t\tmodelMap.put(WebConstants.MODEL_ATTRIBUTE_ERROR_MESSAGE,\n\t\t\t\t\t\" - \" + ex.getMessage());\n\t\t\tmodelMap.put(\"document\", document);\n\t\t\tmodelMap.put(\"pOrg\", document.getpOrg());\n\n\t\t\tmodelMap.put(WebConstants.CONTENT_HEADER,\n\t\t\t\t\t\"Retry Add/Edit Document of \"\n\t\t\t\t\t\t\t+ document.getpOrg().getName());\n\n\t\t\treturn new ModelAndView(\"pOrgDocForm\", modelMap);\n\t\t}\n\n\t}", "void save(String fileName);", "public void save(String path){\t\r\n\t\t\t FMParser.save(this, path);\r\n\t\t\t}", "public void onMenuSave() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n onMenuSaveAs();\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(lastSavedPath));\n }" ]
[ "0.7236715", "0.7233356", "0.6865159", "0.67617476", "0.67083234", "0.6514789", "0.64592004", "0.64592004", "0.643202", "0.64257276", "0.6408726", "0.6381028", "0.6217142", "0.6212406", "0.6171021", "0.6165891", "0.6152324", "0.61109996", "0.60742736", "0.6040256", "0.60312766", "0.6019441", "0.6004341", "0.5975452", "0.5975452", "0.5975452", "0.5960837", "0.5960837", "0.5960837", "0.5960837", "0.5956523", "0.5884899", "0.58786744", "0.5871972", "0.58664125", "0.58244216", "0.58017135", "0.57982296", "0.57960564", "0.57960564", "0.5750468", "0.5743356", "0.57417816", "0.57390165", "0.57390165", "0.57305163", "0.5712746", "0.5707401", "0.5706286", "0.5690478", "0.56799906", "0.5669713", "0.56678957", "0.56678426", "0.5661353", "0.56559014", "0.56517", "0.56441385", "0.56308645", "0.5621737", "0.56123066", "0.5611908", "0.5610863", "0.56079113", "0.5594082", "0.55919826", "0.558614", "0.55852515", "0.5581449", "0.55754703", "0.55608577", "0.5550795", "0.5542446", "0.55379725", "0.5533228", "0.55296254", "0.55287117", "0.552083", "0.55203503", "0.5518786", "0.5518371", "0.5515334", "0.5515327", "0.55120736", "0.5505779", "0.54901505", "0.5482333", "0.5480487", "0.5473827", "0.54703015", "0.5461134", "0.54593414", "0.5458943", "0.5444703", "0.5442943", "0.54427654", "0.5439823", "0.5436243", "0.54217786", "0.5411513" ]
0.5926595
31
Saves the multipage editor's document as another file. Also updates the text for page 0's tab, and updates this multipage editor's input to correspond to the nested editor's.
public void doSaveAs() { if (activePage == 0 && introEditor.isUpdated() || introEditor.isDirty()) updateIntroEditor(); if (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty())) updateFile(); IEditorPart editor = getTextEditor(); editor.doSaveAs(); setPageText(getTextEditorIndex(), editor.getTitle()); setInput(editor.getEditorInput()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }", "public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }", "public void saveDocument() throws IOException;", "public void run() {\r\n\t\tif (window != null) {\r\n\t\t\tIEditorPart part = window.getActivePage().getActiveEditor();\r\n\t\t\t\r\n\t\t\tboolean write = false;\r\n\t\t\tGraphEditorInput input = null;\r\n\t\t\tString defaultFileName = sdf.format(new Date()) + getDefaultExtension();\r\n\t\t\tif (part != null) {\r\n\t\t\t\tinput = (GraphEditorInput) part.getEditorInput();\r\n\t\t\t\twrite = input != null;\r\n\t\t\t\tif (!GraphEditorInput.LIVE_EDITOR_NAME.equals(part.getTitle())) {\r\n\t\t\t\t\tdefaultFileName = part.getTitle();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFile f = chooseSaveFile(window.getShell(), defaultFileName);\r\n\t\t\t\r\n\t\t\tif (f != null) {\r\n\t\t\t\tif (write) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tlog.debug(\"writing file..\");\r\n\t\t\t\t\t\tinput.getGXLDocument().write(f);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\tMessageDialog.openError(window.getShell(), \"Error\", \"Error saving to file:\" + e.getMessage());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tMessageDialog.openInformation(window.getShell(), \"File saving failed!\",\r\n\t\t\t\t\t\t\t\"Could not save the file, editor contains no data!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@FXML\n\tpublic void saveFile() {\n\t\tif (file == null) {\n\t\t\tFileChooser saveFileChooser = new FileChooser();\n\t\t\tsaveFileChooser.setInitialDirectory(userWorkspace);\n\t\t\tsaveFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\t\tfile = saveFileChooser.showSaveDialog(ap.getScene().getWindow());\n\t\t}\n\n\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\ttry {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\t\tPrintWriter output = new PrintWriter(writer);\n\t\t\t\toutput.write(userText.getText());\n\t\t\t\toutput.flush();\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(file.getName() + \" has no valid file-extenstion.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSplitPane1 = new javax.swing.JSplitPane();\n jSplitPane2 = new javax.swing.JSplitPane();\n jScrollPane2 = new javax.swing.JScrollPane();\n txtEditor = new javax.swing.JTextArea();\n jPanel1 = new javax.swing.JPanel();\n toolsPanel = new javax.swing.JPanel();\n btnSaveData = new javax.swing.JButton();\n tablePanel = new javax.swing.JScrollPane();\n treePanel = new javax.swing.JScrollPane();\n\n jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n\n jScrollPane2.setMinimumSize(new java.awt.Dimension(200, 150));\n\n txtEditor.setColumns(20);\n txtEditor.setRows(5);\n jScrollPane2.setViewportView(txtEditor);\n txtEditor.getAccessibleContext().setAccessibleName(\"tabEditor\");\n\n jSplitPane2.setTopComponent(jScrollPane2);\n\n btnSaveData.setText(\"save\");\n\n javax.swing.GroupLayout toolsPanelLayout = new javax.swing.GroupLayout(toolsPanel);\n toolsPanel.setLayout(toolsPanelLayout);\n toolsPanelLayout.setHorizontalGroup(\n toolsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(toolsPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnSaveData)\n .addContainerGap(298, Short.MAX_VALUE))\n );\n toolsPanelLayout.setVerticalGroup(\n toolsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, toolsPanelLayout.createSequentialGroup()\n .addGap(0, 10, Short.MAX_VALUE)\n .addComponent(btnSaveData))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(toolsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tablePanel)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(toolsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tablePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))\n );\n\n jSplitPane2.setRightComponent(jPanel1);\n\n jSplitPane1.setRightComponent(jSplitPane2);\n jSplitPane2.getAccessibleContext().setAccessibleName(\"tabTable\");\n\n jSplitPane1.setLeftComponent(treePanel);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n );\n\n jSplitPane1.getAccessibleContext().setAccessibleName(\"tabTree\");\n }", "public void fileSave()\n {\n try\n {\n // construct the default file name using the instance name + current date and time\n StringBuffer currentDT = new StringBuffer();\n try {\n currentDT = new StringBuffer(ConnectWindow.getDatabase().getSYSDate());\n }\n catch (Exception e) {\n displayError(e,this) ;\n }\n\n // construct a default file name\n String defaultFileName;\n if (ConnectWindow.isLinux()) {\n defaultFileName = ConnectWindow.getBaseDir() + \"/Output/RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n else {\n defaultFileName = ConnectWindow.getBaseDir() + \"\\\\Output\\\\RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setSelectedFile(new File(defaultFileName));\n File saveFile;\n BufferedWriter save;\n\n // prompt the user to choose a file name\n int option = fileChooser.showSaveDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n\n // force the user to use a new file name if the specified filename already exists\n while (saveFile.exists())\n {\n JOptionPane.showConfirmDialog(this,\"File already exists\",\"File Already Exists\",JOptionPane.ERROR_MESSAGE);\n option = fileChooser.showOpenDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n }\n }\n save = new BufferedWriter(new FileWriter(saveFile));\n saveFile.createNewFile();\n\n // create a process to format the output and write the file\n try {\n OutputHTML outputHTML = new OutputHTML(saveFile,save,\"Database\",databasePanel.getResultCache());\n outputHTML.savePanel(\"Performance\",performancePanel.getResultCache(),null);\n// outputHTML.savePanel(\"Scratch\",scratchPanel.getResultCache(),scratchPanel.getSQLCache());\n\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n \n for (int i=0; i < scratchTP.getComponentCount(); i++) {\n try {\n System.out.println(\"i=\" + i + \" class: \" + scratchTP.getComponentAt(i).getClass());\n if (scratchTP.getComponentAt(i) instanceof ScratchDetailPanel) {\n ScratchDetailPanel t = (ScratchDetailPanel)scratchTP.getComponentAt(i);\n System.out.println(\"Saving: \" + scratchTP.getTitleAt(i));\n outputHTML.savePanel(scratchTP.getTitleAt(i), t.getResultCache(), t.getSQLCache());\n }\n } catch (Exception e) {\n // do nothing \n }\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n\n // close the file\n save.close();\n }\n }\n catch (IOException e)\n {\n displayError(e,this);\n }\n }", "public void setActivePage(IEditorPart activeEditor) {\n\r\n\t}", "public synchronized void save() throws IOException {\n for (DocumentSection section : this.sections) {\n section.save();\n }\n }", "public void putDocumentAfterEdit() {\r\n\t\tif(pointer < strategy.getEntireHistory().size()-1) {\r\n\t\t\tstrategy.putVersion(currentDocument);\r\n\t\t}\r\n\t}", "void save(JournalPage page);", "public void switchToEditor() {\r\n\t\teditPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"editPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void executeSaveAction(Editor editor, Tab tab, PostProcessHandler handler) {\n Long ref = tab.getAttributeAsLong(\"ref\");\n editResourceService.getVMFile(ref, new AsyncCallback<VMFile>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(VMFile result) {\n if (result == null) {\n SC.warn(\"File not found.\");\n return;\n }\n if (result.getExtension() == Extension.TXT || result.getExtension() == Extension.LSC || result.getExtension() == Extension.CSC) {\n editResourceService.saveTextFile(result.getId(), ((TextEditor) editor).getValue(), projectId, new AsyncCallback<Void>() {\n @Override\n public void onSuccess(Void result) {\n editor.setSavedPosition();\n setDirtyFlagToTabTitle(tab);\n if (handler != null) {\n handler.execute();\n }\n }\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n });\n } else if (result.getExtension() != null) {\n AbstractRootElement root = editor.getRoot();\n BinaryResourceImpl r = new BinaryResourceImpl();\n r.getContents().add(root);\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n try {\n r.save(outputStream, null);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n byte[] bytes = outputStream.toByteArray();\n editResourceService.saveFile(result.getId(), bytes, new AsyncCallback<Void>() {\n @Override\n public void onSuccess(Void result) {\n editor.setSavedPosition();\n setDirtyFlagToTabTitle(tab);\n if (handler != null) {\n handler.execute();\n }\n }\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n });\n } else {\n editResourceService.saveTextFile(result.getId(), ((TextEditor) editor).getValue(), projectId, new AsyncCallback<Void>() {\n @Override\n public void onSuccess(Void result) {\n editor.setSavedPosition();\n setDirtyFlagToTabTitle(tab);\n if (handler != null) {\n handler.execute();\n }\n }\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n });\n }\n }\n });\n }", "public void save() throws IOException {\n File f = new File(\"data/pages/\" + pageName + \".class\");\n if (!f.exists()) {\n if (!f.getParentFile().exists()) {\n if (f.getParentFile().mkdirs()) {\n f.createNewFile();\n }\n }\n }\n FileOutputStream fos = new FileOutputStream(f);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.flush();\n oos.close();\n }", "private void saveCurrentFile(String file) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tPath path = Paths.get(file);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.write(path, editor.getText().getBytes(StandardCharsets.UTF_8));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tJNotepadApp.this,\r\n\t\t\t\t\tflp.getString(\"saveError\"),\r\n\t\t\t\t\tflp.getString(\"error\"),\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\tJNotepadApp.this,\r\n\t\t\t\tflp.getString(\"saved\"),\r\n\t\t\t\t\"Info\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\r\n\t\tchangeCurrentIcon(greenIcon);\r\n\t\t\r\n\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\ttabbedPane.setToolTipTextAt(index, path.toString());\r\n\t\ttabbedPane.setTitleAt(index, path.getFileName().toString());\r\n\t\t\r\n\t\tfor (ChangeListener l : tabbedPane.getChangeListeners()) {\r\n\t\t\tl.stateChanged(new ChangeEvent(tabbedPane));\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "public void viePage(URL link) throws IOException\n {\n this.mainEditorPane.setPage(link);\n }", "private void saveFile(boolean showWindow) {\n\n\t\tFormDef form = controller.getSelectedForm();\n\t\tif(form == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tString xml = FormHandler.writeToXML(form);\n\n\t\t\n\t\titextWidget.loadItext(Context.getItextList());\n\n\t\txformsWidget.setXform(xml);\n\t\tif (showWindow) {\n\t\t\txformsWidget.showWindow();\n\t\t}\n\t}", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "private void saveOutputFile() {\n FileChooser fileChooser = new FileChooser();\n if (textMergeScript.hasCurrentDirectory()) {\n fileChooser.setInitialDirectory (textMergeScript.getCurrentDirectory());\n }\n chosenOutputFile = fileChooser.showSaveDialog (ownerWindow);\n if (fileChooser != null) {\n writeOutput();\n openOutputDataName.setText (tabNameOutput);\n }\n }", "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "public void storePartCapturedContent() {\n // storePart only works for the classic external index format.\n // for internal, we just ignore it (will be fully stored eventually by final call to store())\n\n getDocWriter().storeInContentStore(null, new TextContent(content), captureContentFieldName, \"contents\");\n }", "private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}", "private void createGUI() {\n myPanel.setLayout(new GridBagLayout());\n\n // Save\n bSave = new JButton(\"Save\");\n bSave.setMnemonic(KeyEvent.VK_S);\n bSave.setEnabled(false);\n bSave.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Document doc = view.getDocument();\n try {\n FileWriter w =\n new FileWriter(view.getPage().getFile());\n w.write(view.getText(), 0, view.getText().length());\n w.close();\n }\n catch (IOException ex) {\n // Debug\n ex.printStackTrace();\n }\n setDirty(false);\n }\n });\n bSave.setToolTipText(\"Save changes\");\n\n\t// View\n\tview = new PrintPane();\n view.setEditorKit(view.getEditorKitForContentType(\"text/html\"));\n view.setEditable(false);\n view.setMargin(new Insets(10,10,10,10));\n view.addCaretListener(new CaretListener() {\n public void caretUpdate(CaretEvent e) {\n if (!indocListener.inwork)\n indocListener.setStart(e.getMark());\n }\n });\n\tview.addHyperlinkListener(new HyperlinkListener() {\n\t\tpublic void hyperlinkUpdate(HyperlinkEvent e) {\n\t\t if (e.getEventType() == ACTIVATED) {\n\t\t\ttry {\n String key = myData.getKey(e.getURL().toString());\n if (key.equals(\"---\")) {\n view.setPage(e.getURL());\n title.setText(key);\n }\n else {\n TreePath tp = getTreePath(key);\n indexTree.addSelectionPath(tp);\n }\n\t\t\t}\n\t\t\tcatch(Exception ex) {\n\t\t\t ex.printStackTrace();\n\t\t\t}\n\t\t }\n\t\t}\n\t });\n view.setToolTipText(\"Use popup to print page\");\n\n\t// Index\n indexTree = new JTree();\n indexTree.addTreeSelectionListener(new TreeSelectionListener() {\n public void valueChanged(TreeSelectionEvent e) {\n TreePath p = e.getNewLeadSelectionPath();\n if (p == null) return;\n Object oa[] = p.getPath();\n MutableTreeNode tn = (MutableTreeNode) oa[oa.length - 1];\n if (tn != null && tn.isLeaf()) {\n String key = \"\";\n for (int i = 1; i < oa.length; i++)\n key += \"/\" + oa[i].toString();\n key = key.substring(1);\n String s = myData.getFile(key);\n if (s == null) return;\n try {\n if (s.indexOf(\"pdf:\") == 0) {\n s = s.substring(4);\n Runtime.getRuntime().exec\n (System.getProperty(\"pdf\") + \" \" + myPath + s);\n }\n else {\n URL url = view.getPage();\n if (url != null && !myData.getKey(url.toString()).equals(\"---\")) {\n history.add(url);\n if (!linear) future.clear();\n }\n view.setPage(new URL(\"file:\" + myPath + s));\n title.setText(key);\n }\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n myData.getLocation(key).inform();\n // Other selections\n indexTree.scrollPathToVisible(p);\n }\n }\n });\n\tindexTree.getSelectionModel().setSelectionMode\n (TreeSelectionModel.SINGLE_TREE_SELECTION);\n indexTree.setEditable(false);\n\n search = new JTextField();\n inindListener = new IncSearchDocListener(search, indexTree);\n fullListener = new MyFullListener();\n indocListener = new MyDocListener();\n\n curListener = inindListener;\n search.getDocument().addDocumentListener(curListener);\n search.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (curListener == inindListener) {\n inindListener.increment();\n inindListener.work(search.getDocument());\n }\n if (curListener == fullListener) {\n fullListener.work(search.getDocument());\n }\n if (curListener == indocListener) {\n indocListener.increment();\n indocListener.work(search.getDocument());\n }\n }\n });\n\n indexTree.addTreeSelectionListener(new TreeSelectionListener() {\n public void valueChanged(TreeSelectionEvent e) {\n TreePath p = e.getNewLeadSelectionPath();\n DefaultMutableTreeNode tn = null;\n if (p != null)\n tn = (DefaultMutableTreeNode) p.getLastPathComponent();\n if (tn != null) {\n inindListener.setStart(tn.getFirstLeaf());\n indocListener.setStart(0);\n }\n }\n });\n\n // History buttons\n forward = new JButton(\"Forward\");\n forward.setMnemonic(KeyEvent.VK_F);\n forward.setEnabled(false);\n forward.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (future.size() > 0) {\n try {\n String key = myData.getKey(future.getLast().toString());\n TreePath tp = getTreePath(key);\n linear = true;\n indexTree.addSelectionPath(tp);\n linear = false;\n future.removeLast();\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n forward.setToolTipText(\"Forward a page in view history\");\n\n back = new JButton(\"Back\");\n back.setMnemonic(KeyEvent.VK_B);\n back.setEnabled(false);\n back.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (history.size() > 0) {\n try {\n String key = myData.getKey(history.getLast().toString());\n TreePath tp = getTreePath(key);\n linear = true;\n indexTree.addSelectionPath(tp);\n linear = false;\n future.add(history.getLast().toString());\n history.removeLast();\n history.removeLast(); \n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n back.setToolTipText(\"Back a page in view history\");\n\n pMenuHI = new JPopupMenu();\n JMenuItem mi1 = new JMenuItem(\"Locate\");\n pMenuHI.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n TreePath tp = indexTree.getPathForLocation(gx, gy);\n if (tp == null) return;\n Object[] oa = tp.getPath();\n if (tp.getPath().length < 4) return;\n String entry = \"\";\n for (int i = 1; i < 4; i++)\n entry += \"/\" + oa[i].toString();\n MyLocation loc = myData.getLocation(entry.substring(1));\n loc.locate();\n }\n\t });\n mi1 = new JMenuItem(\"Sound Trigger\");\n pMenuHI.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n TreePath tp = indexTree.getPathForLocation(gx, gy);\n if (tp == null) return;\n Object[] oa = tp.getPath();\n String entry = oa[oa.length - 1].toString();\n if (oa.length > 1)\n entry = oa[oa.length - 2].toString() + \"/\" + entry;\n if (oa.length > 2)\n entry = oa[oa.length - 3].toString() + \"/\" + entry;\n MyLocation loc = myData.getLocation(entry);\n if (myData.getSoundBank() != null)\n myData.getSoundBank().addLocation(loc);\n }\n\t });\n\n indexTree.addMouseListener(new MouseAdapter() {\n public void mousePressed(MouseEvent e) { popup(e); }\n public void mouseReleased(MouseEvent e) { popup(e); }\n private void popup(MouseEvent e) {\n if (e.isPopupTrigger()) {\n gx = e.getX(); gy = e.getY();\n pMenuHI.show(e.getComponent(), gx, gy);\n }\n }\n });\n\n pMenuV = new JPopupMenu();\n mi1 = new JMenuItem(\"Boldface\");\n pMenuV.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n int b = view.getSelectionStart();\n String txt = view.getSelectedText();\n view.replaceSelection(\"\");\n try {\n HTMLDocument doc = (HTMLDocument)view.getDocument();\n ((HTMLEditorKit)view.getEditorKit()).insertHTML\n (doc, b, \"<b>\" + txt + \"</b>\", 0, 0, HTML.Tag.B);\n }\n catch (Exception ex) {\n // Debug\n ex.printStackTrace();\n }\n }\n });\n JMenuItem mi2 = new JMenuItem(\"Italics\");\n pMenuV.add(mi2);\n mi2.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n int b = view.getSelectionStart();\n String txt = view.getSelectedText();\n view.replaceSelection(\"\");\n try {\n HTMLDocument doc = (HTMLDocument)view.getDocument();\n ((HTMLEditorKit)view.getEditorKit()).insertHTML\n (doc, b, \"<i>\" + txt + \"</i>\", 0, 0, HTML.Tag.I);\n }\n catch (Exception ex) {\n // Debug\n ex.printStackTrace();\n }\n }\n });\n\n view.addMouseListener(new MouseAdapter() {\n public void mousePressed(MouseEvent e) { popup(e); }\n public void mouseReleased(MouseEvent e) { popup(e); }\n private void popup(MouseEvent e) {\n if (e.isPopupTrigger()) {\n if (editor != null) {\n gx = e.getX(); gy = e.getY();\n pMenuV.show(e.getComponent(), gx, gy);\n }\n else {\n pPrint.show(e.getComponent(), e.getX(), e.getY());\n }\n }\n }\n });\n pPrint = new JPopupMenu();\n mi1 = new JMenuItem(\"Print\");\n pPrint.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n PrinterJob job = PrinterJob.getPrinterJob();\n job.setPrintable(view);\n if (job.printDialog()) {\n try {\n job.print();\n }\n catch (PrinterException ex) {\n // Debug\n ex.printStackTrace();\n }\n }\n }\n });\n\n // Panels\n\tJScrollPane sview = new JScrollPane(view);\n sview.getVerticalScrollBar().setUnitIncrement(10);\n sview.getHorizontalScrollBar().setUnitIncrement(10);\n\tJScrollPane sindex = new JScrollPane(indexTree);\n sindex.getVerticalScrollBar().setUnitIncrement(10);\n sindex.getHorizontalScrollBar().setUnitIncrement(10);\n\tresults = new JPanel(new GridBagLayout());\n\tsresults = new JScrollPane(results);\n sresults.getVerticalScrollBar().setUnitIncrement(10);\n sresults.getHorizontalScrollBar().setUnitIncrement(10);\n JSplitPane sp = new JSplitPane\n (JSplitPane.VERTICAL_SPLIT, sview, sresults);\n sp.setResizeWeight(.9);\n\n final JCheckBox full = new JCheckBox(\"Full\");\n full.setToolTipText(\"Full database search (non-incremental)\");\n final JCheckBox inind = new JCheckBox(\"Index\");\n inind.setSelected(true);\n inind.setToolTipText(\"Index search (incremental)\");\n final JCheckBox indoc = new JCheckBox(\"Page\");\n indoc.setToolTipText(\"Search shown page (incremental)\");\n Box three = new Box(BoxLayout.X_AXIS);\n three.add(full);\n three.add(inind);\n three.add(indoc);\n ButtonGroup bg = new ButtonGroup();\n bg.add(full);\n bg.add(inind);\n bg.add(indoc);\n ItemListener il = new ItemListener() {\n public void itemStateChanged(ItemEvent e) {\n if (e.getStateChange() != ItemEvent.SELECTED) return;\n String mod = ((JCheckBox)e.getItem()).getText();\n search.getDocument().removeDocumentListener(curListener);\n if (e.getItem() == full)\n curListener = fullListener;\n if (e.getItem() == inind)\n curListener = inindListener;\n if (e.getItem() == indoc)\n curListener = indocListener;\n results.removeAll();\n results.repaint();\n search.getDocument().addDocumentListener(curListener);\n }\n };\n full.addItemListener(il);\n inind.addItemListener(il);\n indoc.addItemListener(il);\n\n\tGridBagConstraints constr1 = new GridBagConstraints();\n\tconstr1.gridx = 0;\n\tconstr1.weightx = 1;\n\tconstr1.fill = GridBagConstraints.BOTH;\n\n\tJPanel p1 = new JPanel(new GridBagLayout());\n p1.add(back, constr1);\n p1.add(forward, constr1);\n p1.add(bSave, constr1);\n\tconstr1.weighty = 1;\n p1.add(sindex, constr1);\n constr1.weighty = 0;\n p1.add(three, constr1);\n p1.add(search, constr1);\n\n\tGridBagConstraints constr3 = new GridBagConstraints();\n\tconstr3.gridx = constr3.gridy = 0;\n\tconstr3.weightx = 1;\n constr3.weighty = 0;\n\tconstr3.fill = GridBagConstraints.HORIZONTAL;\n\n tp = new JPanel(new GridBagLayout());\n title = new JTextField();\n title.setEnabled(false);\n tp.add(title, constr3);\n\tconstr3.gridy = 1;\n constr3.weighty = 1;\n\tconstr3.fill = GridBagConstraints.BOTH;\n tp.add(sp, constr3);\n\n\tJSplitPane sp4 = new JSplitPane\n (JSplitPane.HORIZONTAL_SPLIT, p1, tp);\n sp4.setResizeWeight(.2);\n\t\n\tconstr1.weighty = 1;\n\tmyPanel.add(sp4, constr1);\n\n\t// If someone turned these value into non-Integers, we throw up\n\tint w = Integer.parseInt(myProps.getProperty(\"display.width\"));\n\tint h = Integer.parseInt(myProps.getProperty(\"display.height\"));\n\tview.setPreferredSize(new Dimension(w, h));\n }", "@Override\n public void saveFile() {\n LOG.fine(\"no.of viewers:\" + viewers.size());\n // assuming the widget that is active is the dirty widget. save it\n for (FileViewer viewer : viewers) {\n if (viewer.isDirty()) {\n saveFile(viewer);\n break;\n }\n }\n }", "public void doSave(IProgressMonitor monitor) {\n\t\tif (activePage == 0 && (introEditor.isUpdated() || introEditor.isDirty()))\n\t\t\tupdateIntroEditor();\n\t\tif (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty()))\n\t\t\tupdateFile();\n\t\tif (activePage == 3 && (cssEditor.isUpdated() || cssEditor.isDirty()))\n\t\t\tupdateCssEditor();\n\t\tgetTextEditor().doSave(monitor);\n\t\tif (pageController.isDirty())\n\t\t\tpageController.saveErMessages();\n\t\tif (cssEditor.isDirty())\n\t\t\tcssEditor.saveCssVars();\n\t\tif (koxEditor != null && koxEditor.isDirty())\n\t\t\tkoxEditor.doSave(monitor);\n\t\tif (moxEditor != null && moxEditor.isDirty())\n\t\t\tmoxEditor.doSave(monitor);\n\t\tsetDirty(false);\n\t}", "public void doSave() {\n if (isSceneNameChanged()) {\n scene_.setName(nameInput_.getValue());\n }\n scene_.setText(sceneText_.getText());\n }", "private void syncContent() {\n \tdocument.setContent(textArea.getText());\n }", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "public void save(){\n checkpoint = chapter;\n }", "public void pageChanged(String inputDocument, String modelType, boolean documentTypeSelected)\n {\n \n if (inputDocument.endsWith(\".docx\") || inputDocument.endsWith(\".odt\")) //$NON-NLS-1$ //$NON-NLS-2$\n {\n isSpreadsheet = false;\n \n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDRegexOrStyle();\n RecognizedTree newTree = controller.getStylesAndRegex();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n \n boolean b = Constants.SYSML_EXTENSION.equals(modelType) || Constants.UML_EXTENSION.equals(modelType);\n \n descriptionComposite.setAttributeComboVisible(b);\n } \n else\n {\n isSpreadsheet = true;\n\n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDColumn();\n RecognizedTree newTree = controller.getColumns();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n }\n \n if (documentTypeSelected)\n {\n descriptionText = controller.getDescriptionEndText();\n descriptionRegex = controller.getDescriptionRegex();\n }\n \n updateWizard();\n \n if (inputDocument != null)\n {\n if (inputDocument.contains(\"file:\")) //$NON-NLS-1$\n {\n currentFileSystem = new File(URI.createURI(inputDocument).toFileString());\n controller.setCurrentFileSystem(currentFileSystem);\n }\n else if (inputDocument.contains(\"platform:\")) //$NON-NLS-1$\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.createURI(inputDocument).toPlatformString(true)));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n else\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(URI.createURI(inputDocument).toFileString()));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n }\n setDocumentFile(currentFileSystem);\n }", "public void reshapeEditor() {\n if (getEditedText() != null) {\n // Update the size to fit the new document - note that it is a 2 stage process\n Dimension prefSize = getEditor().getPreferredSize();\n\n Insets pInsets = getEditedText().getInsets();\n Insets jInsets = getEditor().getInsets();\n\n int width = (getEditedText().getConstrainWidthToTextWidth()) ? (int) prefSize.getWidth() : (int) (getEditedText().getWidth() - pInsets.left - pInsets.right\n + jInsets.left + jInsets.right);\n prefSize.setSize(width, prefSize.getHeight());\n getEditor().setSize(prefSize);\n\n prefSize = getEditor().getPreferredSize();\n int height = (getEditedText().getConstrainHeightToTextHeight()) ? (int) prefSize.getHeight() : (int) (getEditedText().getHeight() - pInsets.top - pInsets.bottom\n + jInsets.top + jInsets.bottom);\n\n prefSize.setSize(width, height);\n getEditor().setSize(prefSize);\n\n // need some twiddling to make the width dance together with an editor...\n if (enforceWidth) {\n if (getWidth() < width + getPedding().getRight() - getPedding().getLeft()) {\n width = width + getPedding().getRight() - getPedding().getLeft();\n } else {\n width = width + getPedding().getLeft();\n }\n setMinConstraint(new PDimension(width, height));\n } else {\n setMinConstraint(new PDimension(0, 0));\n }\n\n reshape(false); // reshaping this component\n getCanvas().repaint();\n }\n }", "public void save() throws DBAppException, IOException{\n\t\tint numberOfPages = pages_loaded.size();\n\t\tfor (int i = 1; i <= numberOfPages; i++) {\n\t\t\tsavePage(i);\n\t\t}\n\t}", "private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }", "private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }", "@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}", "@Override\n public void storeParsedText() {\n parsedHtmlPages.parallelStream().forEach(parsedHtmlPage -> {\n FileUtility.writeToFile(parsedHtmlPage, FILE_DIRECTORY_NAME + FILE_SEPARATOR + parsedHtmlPage.getTitle());\n });\n }", "public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }", "private void createView(Tab tab, VMFile file, PostProcessHandler handler) {\n editResourceService.getFileContent(file.getId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n AbstractRootElement root = null;\n try {\n if (file.getExtension() != Extension.TXT && file.getExtension() != Extension.LSC && file.getExtension() != Extension.CSC) {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (AbstractRootElement) r.getContents().get(0);\n }\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n Editor editor;\n if (file.getExtension() == null) {\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n } else\n switch (file.getExtension()) {\n\n case ARC:\n editor = new ARCEditor((ARCRoot) root, projectId, editResourceService);\n editor.create();\n clickNewStateMachine((ARCEditor) editor, file);\n clickOpenFile((ARCEditor) editor);\n break;\n case FM:\n editor = new FMEditor((FMRoot) root, projectId, file.getId(), editResourceService);\n editor.create();\n clickOpenFile((FMEditor) editor);\n clickCreateChildModel((FMEditor) editor, file);\n setFileNameToReferenceNode((FMEditor) editor);\n break;\n case FMC:\n editor = new FMCEditor((FMCRoot) root, file.getId(), projectId, editResourceService);\n editor.create();\n break;\n case FSM:\n editor = new FSMEditor((FSMDStateMachine) root, file.getId());\n editor.create();\n break;\n case SCD:\n editor = new SCDEditor((SCDRoot) root, tab, projectId, ModelingProjectView.this, editResourceService);\n editor.create();\n clickOpenFile((SCDEditor) editor);\n break;\n case SPQL:\n editor = new SPQLEditor((SPQLRoot) root, tab, projectId, editResourceService);\n editor.create();\n clickOpenFile((SPQLEditor) editor);\n break;\n case TC:\n editor = new TCEditor((TCRoot) root, projectId, file.getName(), editResourceService);\n editor.create();\n break;\n case BPS:\n editor = new BPSEditor((BPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case BP:\n editor = new BPEditor((BPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case FPS:\n editor = new TPSEditor((TPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case FP:\n editor = new TPViewer((TPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case CSC:\n editor = new CSCEditor(tab, file, editResourceService);\n editor.create();\n break;\n case SCSS:\n editor = new CBEditor((CBRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case SCS:\n editor = new SCSEditor((SCSRoot) root, ModelingProjectView.this, projectId, file, editResourceService);\n editor.create();\n break;\n case CSCS:\n editor = new CSCSEditor((CSCSRoot) root, projectId, file);\n editor.create();\n break;\n default:\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n }\n createTabMenu(tab, editor.getSaveItem());\n clickSaveFile(editor, tab);\n\n if (editor instanceof NodeArrangeInterface) {\n NodeArrange.add((NodeArrangeInterface) editor);\n }\n tab.setPane(editor.getLayout());\n tab.setAttribute(EDITOR, editor);\n editorTabSet.addTab(tab);\n editorTabSet.selectTab(tab.getAttributeAsString(\"UniqueId\"));\n if (handler != null) {\n handler.execute();\n }\n }\n });\n }", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }", "private void clickSaveFile(Editor editor, Tab tab) {\n editor.addSaveHandler(createClickSavaHandler(editor, tab));\n }", "public void renderAndSave(VirtualDocument document, File output)\n\t\t\tthrows RenderingException, IOException {\n\t\tbyte[] data = renderBinary(document);\n\t\tFiles.write(output.toPath(), data);\n\t\tlogger.info(\"writeFile_done\", output);\n\t}", "private void saveProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showSaveDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the output streams\n\t\t\t\tFileOutputStream fileOutput = new FileOutputStream(file.getAbsolutePath());\n\t\t\t\tObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput);\n\t\t\t\n\t\t\t\t// Write the objects\n\t\t\t\tfor(int i = 0; i < cards.size(); i++) {\n\t\t\t\t\tobjectOutput.writeObject(cards.get(i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the output streams\n\t\t\t\tobjectOutput.close();\n\t\t\t\tfileOutput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the file name\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not save the file.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }", "private void setTextEditor() throws FileNotFoundException, IOException{\n String newTextEditor = TextEditorTextfield.getText(); \n \n //TODO: Include validation check to see it the file editor is proper program \n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"textEditor\", newTextEditor);\n\n textEditorPref = newTextEditor;\n \n TextEditorDialog.setVisible(false);\n }", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for lab1\n }", "public void save() {\n\t\tInputManager.resetWriter(false);\n\t\tInputManager.writer(InputManager.newDelimeterOne + \" \" + InputManager.newDelimeterTwo);\n\t\tfor(Row r: rows) {\n\t\t\tInputManager.writer(r.toString());\n\t\t}\n\t}", "public void saveFile() {\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\tfileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;;\t\t\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\ttry {\n\t\t\tif(fl.exists()) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"The file with this name already exists, do you want to overwrite it?\", \"Save File\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tFiles.delete(fl.toPath());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The specified folder doesnt exist.\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void saveDocument(SingleDocumentModel model, Path newPath);", "public void saveCurrentFile(File file) {\n\t\tPrintWriter writer;\n\t\ttry {\n\t\t\twriter = new PrintWriter(file);\n\t\t\twriter.write(frame.textArea.getText());\n\t\t\tframe.originalText=frame.textArea.getText();\n\t\t\twriter.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}", "@Override\n\tpublic void addPages() {\n\t\tthis.mainPage = new SNLFilePage(this.workbench, this.selection);\n\t\tthis.addPage(this.mainPage);\n\t}", "@Override\n\tpublic void save() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"save\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}", "private void swapContent(){\n Editable content = WordText.getText();\n WordText.setText(TranText.getText());\n TranText.setText(content);\n\n }", "@FXML\r\n\tpublic void save() {\r\n\t\ttry {\r\n\t\t\tFile copy = new File(fileName.getText());\r\n\t\t\tScanner fileIn = new Scanner(result.getText());\r\n\t\t\tPrintStream fileOut = new PrintStream(copy);\r\n\r\n\t\t\twhile (fileIn.hasNextLine()) {\r\n\t\t\t\tfileOut.print(fileIn.nextLine());\r\n\t\t\t}\r\n\r\n\t\t\tfileIn.close();\r\n\t\t\tfileOut.close();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t}", "public void runEditorNew()\r\n\t{\r\n\t\tmainFrame.runEditorNew();\r\n\t}", "private void uploadLocalDocument(){\t\t\n\t\tif(getFileChooser(JFileChooser.FILES_ONLY).showOpenDialog(this)==JFileChooser.APPROVE_OPTION){\n\t\t\tNode node = null;\n\t\t\ttry {\n\t\t\t\tnode = alfrescoDocumentClient.addFileFromParent(getTreeSelectedAlfrescoKey(), getFileChooser().getSelectedFile());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\t\n\t\t\t//Node node = alfrescoManager.addFileFromParent(getTreeSelectedAlfrescoKey(), getFileChooser().getSelectedFile());\t\t\n\t\t\tif(node!=null){\n\t\t\t\tgetDynamicTreePanel().getChildFiles(getTreeSelectedDefaultMutableNode());\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"El documento se ha subido correctamente.\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Error al subir el documento.\");\n\t\t}\n\t\t//el boton solo esta activo si un directorio esta seleccionado en el arbol directorios\n\t\t//se abre un filechooser y se elije un documento\n\t\t//solo se sube a alfresco, no se asocia automaticamente\n\t\t//se enviara la instancia de File() con el fichero seleccionado\n\t\t//se crea el fichero en alfresco, se recupera el nodo y se añade a la tabla actual (se hace de nuevo la peticion a getChildFiles())\n\t}", "void saveFile() {\n\t\tJFileChooser fileChooser = new JFileChooser(desktopPath);\n\t\tint returnVal = fileChooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile filePath = fileChooser.getSelectedFile();\n\t\t\ttry {\n\t\t\t\tPrintWriter writer = new PrintWriter(filePath);\n\t\t\t\tScanner out = new Scanner(textEditor.getText());\n\t\t\t\twhile(out.hasNextLine()) {\n\t\t\t\t\twriter.println(out.nextLine());\n\t\t\t\t}\n\t\t\t\tout.close();\n\t\t\t\twriter.close();\n\t\t\t\ttextAreaChanged =false;\n\t\t\t\tsavedFilePath = filePath.getPath();\n\t\t\t\terrorTextArea.setText(\"\");\n\t\t\t} catch (Exception ex) {\n\t\t\t\terrorTextArea.setForeground(Color.RED);\n\t\t\t\terrorTextArea.setText(\"Error saving file\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}", "@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }", "public void runEditorExisting()\r\n\t{\r\n\t\tmainFrame.runEditorExisting();\r\n\t}", "@Override\n public void onEditButtonClicked() {\n FragmentManager fm = getFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n currentExercise = workout.get(currentExerciseIndex);\n exerciseEditFragment.setCurrentExercise(currentExercise);\n Log.d(TAG, \"onEditButtonClicked: \" + currentExercise);\n transaction.replace(R.id.exerciseFragmentLayout, exerciseEditFragment);\n transaction.commit();\n }", "public void saveNewFile() {\n\t\tJFileChooser choose = new JFileChooser();\n\t\tif(choose.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\ttry {\n\t\t\t\tdir=choose.getCurrentDirectory().toString();\n\t\t\t\tString fileName =dir+ \"\\\\\" + choose.getSelectedFile().getName();\n\t\t\t File file = new File(fileName);\n\t\t\t if(file.exists()) {\n\t\t\t \tint confirm = JOptionPane.showConfirmDialog(null, \n\t\t\t \t\t\t\"File already exists. Do you want to overwrite it?\",\n\t\t\t \t\t\t\"Choose one\",JOptionPane.YES_NO_OPTION);\n\t\t\t \tif(confirm == JOptionPane.NO_OPTION)return;\n\t\t\t }\n\t\t\t\tPrintWriter writer = new PrintWriter(file);\n\t\t\t\twriter.write(frame.textArea.getText());\n\t\t\t\twriter.close();\n\t\t\t\tframe.setTitle(choose.getSelectedFile().getName()+\"-Text Editor\");\n\t\t\t\tframe.originalText=frame.textArea.getText();\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void addTab(DocumentWrapper file, String text) {\n\t\tJTextArea textEditor = new JTextArea();\n\n\t\ttextEditor.setText(text);\n\t\ttextEditor.getDocument().putProperty(\"changed\", false);\n\t\ttextEditor.addCaretListener(new CaretListener() {\n\t\t\t@Override\n\t\t\tpublic void caretUpdate(CaretEvent arg0) {\n\t\t\t\tint dot = arg0.getDot();\n\t\t\t\tint mark = arg0.getMark();\n\n\t\t\t\tint caretpos = textEditor.getCaretPosition();\n\t\t\t\tint lineNum = 1;\n\t\t\t\tint columnNum = 1;\n\t\t\t\ttry {\n\t\t\t\t\tlineNum = textEditor.getLineOfOffset(caretpos);\n\t\t\t\t\tcolumnNum = 1 + caretpos - textEditor.getLineStartOffset(lineNum);\n\t\t\t\t\tlineNum += 1;\n\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tstatusLabel.setText(\"length : \" + textEditor.getText().length());\n\t\t\t\tlineLabel.setText(\"Ln : \" + lineNum);\n\t\t\t\tcolumnLabel.setText(\"Col : \" + columnNum);\n\t\t\t\tselectedLabel.setText(\"Sel : \" + Math.abs(dot - mark));\n\t\t\t\t;\n\n\t\t\t\tif (dot == mark) {\n\t\t\t\t\titemInvert.setEnabled(false);\n\t\t\t\t\titemLower.setEnabled(false);\n\t\t\t\t\titemUpper.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\titemInvert.setEnabled(true);\n\t\t\t\t\titemLower.setEnabled(true);\n\t\t\t\t\titemUpper.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttextEditor.getDocument().addDocumentListener(new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t\tButtonTabComponent comp = (ButtonTabComponent) pane.getTabComponentAt(pane.getSelectedIndex());\n\n\t\t\t\tcomp.setImage(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\t\t});\n\n\t\tfile.setEditor(textEditor);\n\n\t\tJScrollPane scPane = new JScrollPane(textEditor);\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(scPane, BorderLayout.CENTER);\n\n\t\tint index = pane.getTabCount();\n\n\t\tpane.addTab(file.getName(), textEditor);\n\n\t\tinitTabComponent(file, index);\n\t}", "protected void createPages() {\n\t\tcreateIntroEditor();\n\t\tcreatePageMainEditor();\n\t\tcreatePageController();\n\t\tcreateCssEditor();\n\t\tcreatePageTextEditor();\n\t\trefreshPageMainEditor();\n\t\trefreshPageControllerEditor();\n\t\trefreshCssEditor();\n\t\tsetDirty(false);\n\t}", "public void save()\r\n {\r\n \tfc=new JFileChooser();\r\n\t fc.setCurrentDirectory(new File(\"\"));\r\n\t if(fc.showSaveDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t \t//Try-Catch Block\r\n\t try\r\n\t {\r\n\t pw=new PrintWriter(new FileWriter(fc.getSelectedFile()+\".txt\")); //Print to the user-selected file\r\n\t\t \tfor(Organism o: e.getTree()) //IN PROGESS\r\n\t\t \t{\r\n\t\t\t\t\tint[] genes=o.getGenes(); //Getting genes from \r\n\t\t\t\t\tfor(int i=0; i<genes.length; i++)\r\n\t\t\t\t\t\tpw.print(genes[i]+\" \"); //Print each gene value in a line\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tpw.println(); //Starts printing on a new line\r\n\t\t\t\t}\r\n\t\t\t\tpw.close(); //Closes the File\r\n\t }\r\n\t catch (Exception ex) //Catch Any Exception\r\n\t {\r\n\t ex.printStackTrace();\r\n\t }\r\n }", "public static void saveCurrentNode() {\r\n TreeElement node = TreePanel.getSelectedNode();\r\n if (node != null) {\r\n node.updateDataFromEditor(); // it should update from editor\r\n }\r\n }", "private void saveFile() {\n\t\ttry {\n\t\t\tFile file = jfc.getSelectedFile();\n\t\t\tint c = -1;\n\t\t\tif(file==null)\n\t\t\t{\n\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t}\n\t\t\t\n\n\t\t\tif(file!= null || c ==0)\n\t\t\t{\t\n\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\tfw.write(jta.getText());\n\t\t\t\tfw.close();\n\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t}", "private void saveJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveJMenuItemActionPerformed\n //save the current points\n myWriter.saveToFile(FILE_PATH, namesArray, tempArray);\n }", "@Override\n public void onClick(View v) {\n editor4.putInt(\"page\", ++page);\n editor4.apply();\n startActivity(new Intent(FileUpload.this, UploadActivity.class));\n }", "void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;", "public void save()\n throws IOException\n {\n File file = new File(MainFrame.getConfig().getUserPath(), SNAPSHOTFILE);\n if(null != file.getParentFile())\n file.getParentFile().mkdirs();\n\n try(FileOutputStream ostream = new FileOutputStream(file)) {\n try(OutputStreamWriter fw = new OutputStreamWriter(ostream, StandardCharsets.UTF_8)) {\n PrintNode.printNode(m_snapshotDoc, \" \", fw);\n }\n }\n }", "private void saveAs ()\n {\n\tJFileChooser chooser = new JFileChooser ();\n\tchooser.setFileSelectionMode (chooser.FILES_ONLY);\n\tint result = chooser.showSaveDialog (this);\n\tif (result == chooser.CANCEL_OPTION)\n\t{\n\t return;\n\t}\n\n\tFile f = chooser.getSelectedFile ();\n\tif (f.exists ())\n\t{\n\t try\n\t {\n\t\tresult = \n\t\t JOptionPane.showConfirmDialog (\n this,\n\t\t\t\"Overwrite existing file \\\"\" + f.getCanonicalPath () + \n\t\t\t\"\\\"?\",\n\t\t\t\"File Exists\",\n\t\t\tJOptionPane.YES_NO_OPTION);\n\n\t\tif (result != JOptionPane.YES_OPTION)\n\t\t{\n\t\t return;\n\t\t}\n\n\t\tf.delete ();\n\t }\n\t catch (IOException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\tString text;\n\tsynchronized (myDocument)\n\t{\n\t int len = myDocument.getLength ();\n\t try\n\t {\n\t\ttext = myDocument.getText (0, len);\n\t }\n\t catch (BadLocationException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\ttry\n\t{\n\t FileWriter fw = new FileWriter (f);\n\t fw.write (text);\n\t fw.flush ();\n\t fw.close ();\n\t}\n\tcatch (IOException ex)\n\t{\n\t JOptionPane.showMessageDialog (null,\n\t\t\t\t\t ex.getMessage (),\n\t\t\t\t\t \"Write Error\",\n\t\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t}\n }", "@Override\n public void whenDone() {\n getDocumentController().setFile(fileToSaveTo);\n getDocumentController().setHasChanged(false);\n getDocumentController().notifyChange();\n }", "boolean saveDocument(String path, String documentContent, Charset charset, List <String> moduleList);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTabbedPane1 = new javax.swing.JTabbedPane();\n mainPage = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextPane3 = new javax.swing.JTextPane();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextPane4 = new javax.swing.JTextPane();\n jLabel2 = new javax.swing.JLabel();\n myGarden = new javax.swing.JPanel();\n jLabel11 = new javax.swing.JLabel();\n jScrollPane13 = new javax.swing.JScrollPane();\n jTextPane13 = new javax.swing.JTextPane();\n history = new javax.swing.JPanel();\n jLabel22 = new javax.swing.JLabel();\n jScrollPane14 = new javax.swing.JScrollPane();\n jTextPane14 = new javax.swing.JTextPane();\n meteoInfo = new javax.swing.JPanel();\n jLabel23 = new javax.swing.JLabel();\n jScrollPane15 = new javax.swing.JScrollPane();\n jTextPane15 = new javax.swing.JTextPane();\n infoMainPage = new javax.swing.JPanel();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTextPane6 = new javax.swing.JTextPane();\n jLabel6 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jTextPane7 = new javax.swing.JTextPane();\n jPanel3 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n jPanel8 = new javax.swing.JPanel();\n jScrollPane8 = new javax.swing.JScrollPane();\n jTextPane8 = new javax.swing.JTextPane();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane9 = new javax.swing.JScrollPane();\n jTextPane9 = new javax.swing.JTextPane();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jPanel10 = new javax.swing.JPanel();\n jScrollPane10 = new javax.swing.JScrollPane();\n jTextPane10 = new javax.swing.JTextPane();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jPanel11 = new javax.swing.JPanel();\n jScrollPane11 = new javax.swing.JScrollPane();\n jTextPane11 = new javax.swing.JTextPane();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jPanel12 = new javax.swing.JPanel();\n jScrollPane12 = new javax.swing.JScrollPane();\n jTextPane12 = new javax.swing.JTextPane();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextPane5 = new javax.swing.JTextPane();\n\n setTitle(\"ATS - Tizimi\");\n setFocusable(false);\n setMaximumSize(new java.awt.Dimension(1600, 900));\n setResizable(false);\n\n jTabbedPane1.setToolTipText(\"Shaxsiy bog' nazorati\");\n jTabbedPane1.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); // NOI18N\n jTabbedPane1.setMaximumSize(new java.awt.Dimension(1024, 625));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/linea_2a3(0)_128.png\"))); // NOI18N\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/linea_45(0)_128.png\"))); // NOI18N\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/linea_1f3(0)_128.png\"))); // NOI18N\n\n jTextPane1.setEditable(false);\n jTextPane1.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jTextPane1.setText(\"\\tAvtomatik tarzda tomchilab sug'orilganda esa suv sarfi:\\nPaxtachilikda 30-65 %\\nBog', uzum va sabzavotchilikda 32-54 %\\nHosildorlik mos ravishda 25-40 foizgacha ortishi kuzatilmoqda.\\nMehnat va moddiy resurslar sarfi 2 barobargacha kamayadi \\nSabzavotlarda ekin ildizi yaqinidagi tuproq sho'rini 35 %gacha kamayadi\\n\");\n jScrollPane1.setViewportView(jTextPane1);\n\n jTextPane2.setEditable(false);\n jTextPane2.setFont(new java.awt.Font(\"Tahoma\", 0, 22)); // NOI18N\n jTextPane2.setText(\"\\tSuv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi.\\n\");\n jScrollPane2.setViewportView(jTextPane2);\n\n jTextPane3.setEditable(false);\n jTextPane3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextPane3.setText(\"\\tSuv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi.\\n\");\n jTextPane3.setToolTipText(\"\");\n jScrollPane3.setViewportView(jTextPane3);\n\n jTextPane4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane4.setText(\"DeveloP Solutions 2016\");\n jScrollPane4.setViewportView(jTextPane4);\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n javax.swing.GroupLayout mainPageLayout = new javax.swing.GroupLayout(mainPage);\n mainPage.setLayout(mainPageLayout);\n mainPageLayout.setHorizontalGroup(\n mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 646, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 646, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 646, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGap(501, 501, 501)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(385, Short.MAX_VALUE))\n );\n mainPageLayout.setVerticalGroup(\n mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGap(73, 73, 73)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPageLayout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPageLayout.createSequentialGroup()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25))))\n );\n\n jTabbedPane1.addTab(\"Asosiy oyna \", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_2302(0)_24.png\")), mainPage, \"Bosh Sahifa\"); // NOI18N\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane13.setEditable(false);\n jTextPane13.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane13.setText(\"DeveloP Solutions 2016\");\n jScrollPane13.setViewportView(jTextPane13);\n\n javax.swing.GroupLayout myGardenLayout = new javax.swing.GroupLayout(myGarden);\n myGarden.setLayout(myGardenLayout);\n myGardenLayout.setHorizontalGroup(\n myGardenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(myGardenLayout.createSequentialGroup()\n .addGap(502, 502, 502)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(505, Short.MAX_VALUE))\n );\n myGardenLayout.setVerticalGroup(\n myGardenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, myGardenLayout.createSequentialGroup()\n .addContainerGap(562, Short.MAX_VALUE)\n .addGroup(myGardenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(myGardenLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Mening Bog'im\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_d83c(3)_24.png\")), myGarden, \"Shaxsiy bog' nazorati\"); // NOI18N\n\n history.setMaximumSize(new java.awt.Dimension(1024, 625));\n history.setPreferredSize(new java.awt.Dimension(1024, 586));\n\n jLabel22.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane14.setEditable(false);\n jTextPane14.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane14.setText(\"DeveloP Solutions 2016\");\n jScrollPane14.setViewportView(jTextPane14);\n\n javax.swing.GroupLayout historyLayout = new javax.swing.GroupLayout(history);\n history.setLayout(historyLayout);\n historyLayout.setHorizontalGroup(\n historyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(historyLayout.createSequentialGroup()\n .addGap(501, 501, 501)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(506, Short.MAX_VALUE))\n );\n historyLayout.setVerticalGroup(\n historyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, historyLayout.createSequentialGroup()\n .addContainerGap(562, Short.MAX_VALUE)\n .addGroup(historyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(historyLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Hisobot\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_d83d(4)_24.png\")), history, \"Resurslar sarfi hisobotlari\"); // NOI18N\n\n jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane15.setEditable(false);\n jTextPane15.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane15.setText(\"DeveloP Solutions 2016\");\n jScrollPane15.setViewportView(jTextPane15);\n\n javax.swing.GroupLayout meteoInfoLayout = new javax.swing.GroupLayout(meteoInfo);\n meteoInfo.setLayout(meteoInfoLayout);\n meteoInfoLayout.setHorizontalGroup(\n meteoInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(meteoInfoLayout.createSequentialGroup()\n .addGap(500, 500, 500)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(507, Short.MAX_VALUE))\n );\n meteoInfoLayout.setVerticalGroup(\n meteoInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, meteoInfoLayout.createSequentialGroup()\n .addContainerGap(562, Short.MAX_VALUE)\n .addGroup(meteoInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(meteoInfoLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Meterologik ma'lumotlar\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_26c8(1)_24.png\")), meteoInfo, \"Ob - Havo va atrof muuhit haqida ma'lumotlar\"); // NOI18N\n\n jTabbedPane2.setTabPlacement(javax.swing.JTabbedPane.LEFT);\n jTabbedPane2.setToolTipText(\"\");\n jTabbedPane2.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n\n jTextPane6.setEditable(false);\n jTextPane6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane6.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane6.setViewportView(jTextPane6);\n\n jLabel6.setBackground(new java.awt.Color(0, 255, 255));\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 0, 153));\n jLabel6.setText(\"ATS Tizimi\");\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsic064.png\"))); // NOI18N\n\n jLabel7.setText(\"Avtomatik tomchilab Sug'orish\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(5, 5, 5)\n .addComponent(jLabel7))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 1, Short.MAX_VALUE)\n .addComponent(jLabel8)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Dastur Haqida\", jPanel1);\n\n jLabel9.setBackground(new java.awt.Color(0, 255, 255));\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(0, 0, 153));\n jLabel9.setText(\"ATS Tizimi O'rnatish tartibi\");\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/MS System settings Configuration Manger-01.png\"))); // NOI18N\n\n jTextPane7.setEditable(false);\n jTextPane7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane7.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane7.setViewportView(jTextPane7);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Tizimni ornatish tartibi\", jPanel2);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"1- Qadam\", jPanel3);\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"2- Qadam \", jPanel4);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"3- Qadam \", jPanel5);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"4- Qadam\", jPanel6);\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"5- Qadam\", jPanel7);\n\n jTextPane8.setEditable(false);\n jTextPane8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane8.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane8.setViewportView(jTextPane8);\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Media-Play.png\"))); // NOI18N\n\n jLabel13.setBackground(new java.awt.Color(0, 255, 255));\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(0, 0, 153));\n jLabel13.setText(\"Ishga tushirish\");\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 36, Short.MAX_VALUE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel13)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Sozlash va ishga tushirish\", jPanel8);\n\n jTextPane9.setEditable(false);\n jTextPane9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane9.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane9.setViewportView(jTextPane9);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Rules.png\"))); // NOI18N\n\n jLabel15.setBackground(new java.awt.Color(0, 255, 255));\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(0, 0, 153));\n jLabel15.setText(\"ATS Tizimi Ishlatish Qoidalari\");\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(jLabel15)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Dasturni Ishlatish qoidalari\", jPanel9);\n\n jTextPane10.setEditable(false);\n jTextPane10.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane10.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane10.setViewportView(jTextPane10);\n\n jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Circle Info - 02.png\"))); // NOI18N\n\n jLabel17.setBackground(new java.awt.Color(0, 255, 255));\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(0, 0, 153));\n jLabel17.setText(\"Qo'shimcha ma'lumotlar\");\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel16)\n .addGap(18, 18, 18)\n .addComponent(jLabel17)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Qo'shimcha ma'lumotlar\", jPanel10);\n\n jTextPane11.setEditable(false);\n jTextPane11.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane11.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane11.setViewportView(jTextPane11);\n\n jLabel18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Help - 01.png\"))); // NOI18N\n\n jLabel19.setBackground(new java.awt.Color(0, 255, 255));\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(0, 0, 153));\n jLabel19.setText(\"Tez tez So'raladigan Savollar\");\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel18)\n .addGap(18, 18, 18)\n .addComponent(jLabel19)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"FAQ\", jPanel11);\n\n jTextPane12.setEditable(false);\n jTextPane12.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane12.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane12.setViewportView(jTextPane12);\n\n jLabel20.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/E Service-WF.png\"))); // NOI18N\n\n jLabel21.setBackground(new java.awt.Color(0, 255, 255));\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(0, 0, 153));\n jLabel21.setText(\"DP Solutions Servis Hizmati\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel20)\n .addGap(18, 18, 18)\n .addComponent(jLabel21)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Servis Hizmati\", jPanel12);\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane5.setEditable(false);\n jTextPane5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane5.setText(\"DeveloP Solutions 2016\");\n jScrollPane5.setViewportView(jTextPane5);\n\n javax.swing.GroupLayout infoMainPageLayout = new javax.swing.GroupLayout(infoMainPage);\n infoMainPage.setLayout(infoMainPageLayout);\n infoMainPageLayout.setHorizontalGroup(\n infoMainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane2)\n .addGroup(infoMainPageLayout.createSequentialGroup()\n .addGap(499, 499, 499)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n infoMainPageLayout.setVerticalGroup(\n infoMainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(infoMainPageLayout.createSequentialGroup()\n .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 536, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addGroup(infoMainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(infoMainPageLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Dastur Haqida\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_2139(2)_24.png\")), infoMainPage, \"Dastur va ishlab chiqaruvchi haqida\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1223, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1223, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 659, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void saveState() {\n mementos = new ArrayList<>(mementos.subList(0, statePointer + 1));\n Notebook notebookToAdd = new Notebook(this.notebook);\n notebookToAdd.setCurrentClassroom(this.notebook.getCurrentClassroom());\n Memento mementoToAdd = new Memento(notebookToAdd);\n mementos.add(mementoToAdd);\n statePointer++;\n }", "@Override\n public WikiPageInfo updateWikiPage(WikiPageInfo page) \n {\n if (page.getNodeRef() == null)\n {\n throw new IllegalArgumentException(\"Can't update a page that was never persisted, call create instead\");\n }\n \n NodeRef nodeRef = page.getNodeRef();\n String nodeName = buildName(page.getTitle());\n \n // Handle the rename case\n boolean renamed = false;\n if (! nodeService.getProperty(nodeRef, ContentModel.PROP_TITLE).equals(page.getTitle()))\n {\n try\n {\n fileFolderService.rename(nodeRef, nodeName);\n renamed = true;\n }\n catch (FileNotFoundException e)\n {\n throw new AlfrescoRuntimeException(\"Invalid node state - wiki page no longer found\");\n }\n nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, nodeName);\n nodeService.setProperty(nodeRef, ContentModel.PROP_TITLE, page.getTitle());\n }\n \n // Change the content\n ContentWriter writer = contentService.getWriter(nodeRef, ContentModel.PROP_CONTENT, true);\n writer.setMimetype(MimetypeMap.MIMETYPE_HTML);\n writer.setEncoding(\"UTF-8\");\n writer.putContent(page.getContents());\n \n // Now do the tags\n taggingService.setTags(nodeRef, page.getTags());\n \n // If we re-named, re-create the object\n if (renamed)\n {\n page = buildPage(nodeRef, page.getContainerNodeRef(), nodeName, page.getContents());\n }\n \n // All done\n return page;\n }", "boolean openPageInEditMode();", "public void saveText() {\n\t\t\tapp.saveStrings(\"./data/exports/ID_Order.txt\", saveIDOrder);\n\t\t\t//Saving the new name text\n\t\t\tapp.saveStrings(\"./data/exports/Name_Order.txt\", saveNameOrder);\n\t\t\t//Saving the new breed text\n\t\t\tapp.saveStrings(\"./data/exports/Breed_Order.txt\", saveBreedOrder);\n\t\t\t//Saving the new date text\n\t\t\tapp.saveStrings(\"./data/exports/Date_Order.txt\", saveDateOrder);\n\t\t\n\t}", "public void update() {\n\t\tthis.editorView.update();\n\t}", "void doSaveAs() {\r\n\t\tMapOpenSaveDialog dlg = new MapOpenSaveDialog(true, labels, saveSettings);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.saveSettings != null) {\r\n\t\t\tsaveSettings = dlg.saveSettings;\r\n\t\t\tfinal String fn = dlg.saveSettings.fileName.getPath();\r\n\t\t\taddRecentEntry(fn);\r\n\t\t\tdoSave();\r\n\t\t}\r\n\t}", "private void simpleSave()\n {\n // updates the branchfile stats\n updateFileStats(FileState.valueOf(newPageState), selectedAssignee, branch, getAllPageIdsForUpdate());\n\n // save change comment to page\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n wikiContext.getWikiWeb().saveElement(wikiContext, page, false);\n return null;\n }\n });\n }", "public void setEditDocumentationPage(org.semanticwb.model.WebPage value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_editDocumentationPage, value.getSemanticObject());\r\n }else\r\n {\r\n removeEditDocumentationPage();\r\n }\r\n }", "void onNewTextSet(CodeEditor editor);", "public void saveOffers() {\n System.out.println(this.currentChild);\n // TODO [assignment_final] ulozeni aktualnich nabidek do souboru (vyberte si nazev souboru a format jaky uznate za vhodny - CSV nebo JSON)\n }", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for proj1\n \ttry {\n\t \tRandomAccessFile raf = new RandomAccessFile(m_f, \"rw\");\n\t \traf.seek(page.getId().pageNumber() * BufferPool.PAGE_SIZE);\n\t\t\traf.write(page.getPageData(), 0, BufferPool.PAGE_SIZE);\n\t\t\traf.close();\n \t} catch (IOException e){\n \t\te.printStackTrace();\n \t}\n \t\n }", "void open() {\n \tJFileChooser fileopen = new JFileChooser();\n int ret = fileopen.showDialog(null, \"Open file\");\n\n if (ret == JFileChooser.APPROVE_OPTION) {\n document.setFile(fileopen.getSelectedFile());\n textArea.setText(document.getContent());\n }\n }", "private void btn_add_plan_nutricionalActionPerformed(java.awt.event.ActionEvent evt) {\n JFrame parentFrame = new JFrame();\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.addChoosableFileFilter(new FileFilter() {\n public String getDescription() {\n return \"PDF Documents (*.pdf)\";\n }\n\n public boolean accept(File f) {\n if (f.isDirectory()) {\n return true;\n } else {\n return f.getName().toLowerCase().endsWith(\".pdf\");\n }\n }\n });\n fileChooser.setDialogTitle(\"Specify a file to save\");\n int userSelection = fileChooser.showSaveDialog(parentFrame);\n File fileToSave = fileChooser.getSelectedFile();\n if (userSelection == 0) {\n if (fileToSave.getName().toLowerCase().endsWith(\".pdf\")) {\n\n System.out.println(\"Save as file: \" + fileToSave.getAbsolutePath());\n try {\n copyFile(fileToSave.getAbsolutePath(), \"C:\\\\PGS\\\\nutricion\\\\\" + fileToSave.getName());\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Vista.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Vista.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n JOptionPane.showMessageDialog(null, \"No es un archivo .PDF\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n }", "void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }", "private void updateTree() {\n String txt = textArea.getText();\n int tabSize = textArea.getTabSize();\n StringBuilder sb = new StringBuilder(tabSize);\n for (int i=0; i<tabSize; i++) {\n sb.append(\" \"); // NOI18N\n }\n txt = txt.replace(\"\\t\", sb.toString()); // NOI18N\n TreeModel model = propEditor.createTreeModel(txt);\n tree.setModel(model);\n expandTree();\n propEditor.setValue(model);\n }", "public void commit() {\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tDOMSource domSource = new DOMSource(document);\n\t\t\tStreamResult streamResult = new StreamResult(new File(fileName));\n\t\t\ttransformer.transform(domSource, streamResult);\n\t\t\t//Reload nodes list\n\t\t\tnodes = document.getDocumentElement().getChildNodes();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save(View view) {\n \t\n \t// Cannot perform save unless there's a locked document.\n \tLockedDocument mlocked = mObjects.getLockedDoc();\n \tif (mlocked == null)\n \t\treturn;\n \t\n \ttry {\n \t\tmlocked.setTitle(text1.getText().toString());\n \tmlocked.setContents(text2.getText().toString());\n \t\tmObjects.addStatusList(\"Attemping to save document.\");\n \t\tUnlockedDocument unlocked = service.saveDocument(mlocked);\n \t\t\n \t\t// If expected document is saved, display the document.\n\t \tif (mObjects.getWaitingKey() == null || \n\t \t\t\tmObjects.getWaitingKey().equals(unlocked.getKey())) {\n\t \t\tmObjects.addStatusList(\"Document '\" + unlocked.getTitle()\n\t \t\t\t\t+ \"' successfully saved.\");\n\t \t\tsetView(unlocked);\n\t\t\t\tmObjects.setUnlockedDoc(unlocked);\n\t\t\t} else {\n\t\t\t\t// Otherwise, lock the error.\n\t\t\t\tLog.d(TAG,\"Saved document is not the anticipated document.\");\n\t\t\t}\n\t\t} catch (InvalidRequest e) {\n\t\t\tToast.makeText(this, \"Error saving document due to invalid request\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Error saving document: \" + e.getMessage());\n\t\t\t\n\t\t\t// Release the lock if there's error saving document.\n\t\t\treleaseLock(mlocked);\n\t\t} catch (LockExpired e) {\n\t\t\tToast.makeText(this, \"Lock expired\", Toast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Lock had already expired; save failed.\");\n\t\t}\n\t\t\n\t\t// If saving is not successful, modify client's local documents state as well.\n\t\t// This part will only get called if exception were caught. mlocked is set\n\t\t// to null if document is saved correctly. \n\t\tif (mlocked != null) {\n\t\t\tmObjects.setUnlockedDoc(mlocked.unlock());\n\t\t\tsetView(mlocked.unlock());\n\t\t}\n }", "public void save() {\n if (message == null || currentView == null) {\n return;\n }\n\n if (isEditable) {\n if (currentView.hasChanged()) {\n currentView.save();\n }\n }\n }" ]
[ "0.61412466", "0.6115059", "0.6088262", "0.59165436", "0.5875688", "0.578783", "0.5715929", "0.5699074", "0.5652298", "0.5618457", "0.55986315", "0.55373955", "0.55359226", "0.55359226", "0.55131584", "0.5490583", "0.54720694", "0.54623276", "0.5460144", "0.5456105", "0.543206", "0.54233575", "0.5415849", "0.54082346", "0.5404028", "0.540276", "0.5390416", "0.53657675", "0.53605354", "0.5356912", "0.5355711", "0.5354832", "0.53438175", "0.5322606", "0.5321757", "0.53207463", "0.5311342", "0.52972436", "0.527924", "0.5273353", "0.5246286", "0.5227743", "0.52233773", "0.52089196", "0.5200701", "0.5197797", "0.51907533", "0.51863897", "0.51840824", "0.5174744", "0.51680547", "0.516724", "0.51650286", "0.5146913", "0.5146871", "0.5144456", "0.5140486", "0.5138983", "0.51191485", "0.51177555", "0.51060134", "0.5081478", "0.5072207", "0.50698215", "0.50274104", "0.5015302", "0.5015202", "0.5009457", "0.50055754", "0.49824327", "0.49707907", "0.49658734", "0.49652356", "0.4960026", "0.49587986", "0.4957936", "0.4950811", "0.49378297", "0.49372572", "0.49307123", "0.49203125", "0.49200788", "0.49181467", "0.49101597", "0.49099952", "0.48996335", "0.4892178", "0.48884565", "0.48860067", "0.4871696", "0.4869055", "0.4867274", "0.4866184", "0.48516613", "0.48515517", "0.48511264", "0.4850991", "0.48505765", "0.48459384", "0.48418555" ]
0.7549272
0
/ (nonJavadoc) Method declared on IEditorPart
public void gotoMarker(IMarker marker) { setActivePage(getTextEditorIndex()); IDE.gotoMarker(getTextEditor(), marker); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Editor getEditor() { return editor; }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\r\n\t}", "public interface ITextEditor extends ISelectionProvider {\r\n\r\n /**\r\n * a constant for Incresing e.g. the font size\r\n * \r\n * @author Lukas Balzer\r\n */\r\n String INCREASE = \"INCREASE\"; //$NON-NLS-1$\r\n /**\r\n * a constant for decreasing sth.\r\n * \r\n * @author Lukas Balzer\r\n */\r\n String DECREASE = \"DECREASE\"; //$NON-NLS-1$\r\n /**\r\n * constant for applying an italic style to some text\r\n */\r\n String ITALIC = \"ITALIC\"; //$NON-NLS-1$\r\n /**\r\n * constant for underlining text\r\n */\r\n String UNDERLINE = \"UNDERLINE\"; //$NON-NLS-1$\r\n /**\r\n * constant for for adding a strike out\r\n */\r\n String STRIKEOUT = \"STRIKEOUT\"; //$NON-NLS-1$\r\n /**\r\n * constant for addressing the foreground color\r\n */\r\n String FOREGROUND = \"FOREGROUND\"; //$NON-NLS-1$\r\n /**\r\n * constant for addressing the background color\r\n */\r\n String BACKGROUND = \"BACKGROUND\"; //$NON-NLS-1$\r\n /**\r\n * constant for applying a bold style to the text\r\n */\r\n String BOLD = \"BOLD\"; //$NON-NLS-1$\r\n /**\r\n * constant for adding an itemization\r\n */\r\n String DOT_LIST = \"DOT_LIST\"; //$NON-NLS-1$\r\n /**\r\n * constant for adding an enumeration\r\n */\r\n String NUM_LIST = \"NUM_LIST\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_SIZE = \"FONT_SIZE\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_FAMILY = \"FONT_FAMILY\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_SIZE_UP = \"FONT_SIZE_UP\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_SIZE_DOWN = \"FONT_SIZE_DOWN\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String DESCRIPTION = \"DESCRIPTION\"; //$NON-NLS-1$\r\n\r\n /**\r\n * Set style to chosen format if text gets modified or toolBar item pressed.\r\n * \r\n * @author Sebastian Sieber,Lukas Balzer\r\n * @param style\r\n * one of the constants defined in ITextEditor\r\n */\r\n void setStyle(String style);\r\n\r\n /**\r\n * @author Lukas Balzer\r\n *\r\n * @param color\r\n * one of {@link #FOREGROUND} and {@link #BACKGROUND}\r\n * @param rgb\r\n * the new rgbColor\r\n */\r\n void setStyleColor(String color, RGB rgb);\r\n\r\n /**\r\n * changes the font\r\n *\r\n * @author Lukas Balzer\r\n *\r\n * @param fontString\r\n * the name of the new Font\r\n * @param fontSize\r\n * the Size in points\r\n */\r\n void setFont(String fontString, int fontSize);\r\n\r\n /**\r\n * changes the font size\r\n *\r\n * @author Lukas Balzer\r\n * @param style\r\n * one of {@link #FONT_SIZE_DOWN},{@link #FONT_SIZE_UP},\r\n * {@link #FONT_SIZE}\r\n *\r\n * @param fontSize\r\n * the font size of the text in points\r\n */\r\n void setFontSize(String style, int fontSize);\r\n\r\n /**\r\n * Set a bullet to TextField.\r\n * \r\n * @author Sebastian Sieber\r\n * @param type\r\n * one of {@link #DOT_LIST},{@value #NUM_LIST}\r\n */\r\n void setBullet(String type);\r\n\r\n /**\r\n * registers the contributor by the editor so that the editor can react to its\r\n * calls\r\n * \r\n * @author Lukas Balzer\r\n *\r\n * @param contributor\r\n * the contributor, with which the user can manipulate the Text\r\n */\r\n void setEditToolContributor(ITextEditContribution contributor);\r\n\r\n}", "public static void designTextEditor() {\n\t\t\n\t}", "public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }", "@Override\n public void testCreateAsEditor() {}", "@Override\n public FormFieldComponent getEditorComponent() {\n return (FormFieldComponent)editor;\n }", "public abstract void addEditorForm();", "public void configureEditor() {\n\t\tsuper.configureEditor();\n\t}", "@Override\r\n\tpublic IWorkbenchPart getPart() {\n\t\treturn super.getPart();\r\n\t}", "protected ITextEditor getEditor() {\n return editor;\n }", "Editor mo117962b();", "public boolean supportsCustomEditor() {\n\t\treturn true;\n\t}", "public interface ComboPropertiesEditionPart {\n\n\t/**\n\t * @return the combo\n\t */\n\tpublic Object getCombo();\n\n\t/**\n\t * Init the combo\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initCombo(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new combo\n\t * @param newValue the new combo to set\n\t */\n\tpublic void setCombo(Object newValue);\n\n\t/**\n\t * Adds the given filter to the combo edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToCombo(ViewerFilter filter);\n\n\n\n\n\n\n\t/**\n\t * @return the comboRO\n\t */\n\tpublic Object getComboRO();\n\n\t/**\n\t * Init the comboRO\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initComboRO(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new comboRO\n\t * @param newValue the new comboRO to set\n\t */\n\tpublic void setComboRO(Object newValue);\n\n\t/**\n\t * Adds the given filter to the comboRO edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToComboRO(ViewerFilter filter);\n\n\n\n\n\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public Component getCustomEditor() {\n\t\treturn mEditor;\n\t}", "@Override\n\tpublic void validation() throws EditorException\n\t{\n\t}", "public interface InternalLinkReferencePropertiesEditionPart {\n\n\t/**\n\t * @return the referencedLink\n\t * \n\t */\n\tpublic EObject getReferencedLink();\n\n\t/**\n\t * Init the referencedLink\n\t * @param settings the combo setting\n\t */\n\tpublic void initReferencedLink(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new referencedLink\n\t * @param newValue the new referencedLink to set\n\t * \n\t */\n\tpublic void setReferencedLink(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setReferencedLinkButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the referencedLink edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToReferencedLink(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the referencedLink edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToReferencedLink(ViewerFilter filter);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void partVisible(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}", "void onNewTextSet(CodeEditor editor);", "public interface MemoPropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the creator\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initCreator(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the creator\n\t * @param newValue the creator to update\n\t * \n\t */\n\tpublic void updateCreator();\n\n\t/**\n\t * Adds the given filter to the creator edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToCreator(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the creator edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToCreator(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the creator table\n\t * \n\t */\n\tpublic boolean isContainedInCreatorTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the reader\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initReader(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the reader\n\t * @param newValue the reader to update\n\t * \n\t */\n\tpublic void updateReader();\n\n\t/**\n\t * Adds the given filter to the reader edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToReader(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the reader edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToReader(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the reader table\n\t * \n\t */\n\tpublic boolean isContainedInReaderTable(EObject element);\n\n\n\t/**\n\t * @return the subject\n\t * \n\t */\n\tpublic String getSubject();\n\n\t/**\n\t * Defines a new subject\n\t * @param newValue the new subject to set\n\t * \n\t */\n\tpublic void setSubject(String newValue);\n\n\n\t/**\n\t * @return the body\n\t * \n\t */\n\tpublic String getBody();\n\n\t/**\n\t * Defines a new body\n\t * @param newValue the new body to set\n\t * \n\t */\n\tpublic void setBody(String newValue);\n\n\n\t/**\n\t * @return the id\n\t * \n\t */\n\tpublic String getId();\n\n\t/**\n\t * Defines a new id\n\t * @param newValue the new id to set\n\t * \n\t */\n\tpublic void setId(String newValue);\n\n\n\t/**\n\t * @return the type\n\t * \n\t */\n\tpublic String getType();\n\n\t/**\n\t * Defines a new type\n\t * @param newValue the new type to set\n\t * \n\t */\n\tpublic void setType(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "@Override\n\tpublic boolean execute(IEditorPart target) {\n\t\treturn false;\n\t}", "public void setEditor(Editor editor)\n {\n this.editor = editor;\n }", "@Override\r\n\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\n\r\n\t}", "@Override\n public void handleEditStart ()\n {\n\n }", "public java.awt.Component getInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).getInPlaceCustomEditor ();\n } else {\n return null;\n }\n }", "@Override\n\t\t\t\t\tpublic void partInputChanged(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void buildPart() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void checkEditing() {\n }", "public MyTextPane getEditor() {\n\t\treturn editor;\n\t}", "public interface AdvancedTableCompositionEditorSamplePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the advancedtablecompositionRequiredProperty\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAdvancedtablecompositionRequiredProperty(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the advancedtablecompositionRequiredProperty\n\t * @param newValue the advancedtablecompositionRequiredProperty to update\n\t * \n\t */\n\tpublic void updateAdvancedtablecompositionRequiredProperty();\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionRequiredProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionRequiredProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the advancedtablecompositionRequiredProperty table\n\t * \n\t */\n\tpublic boolean isContainedInAdvancedtablecompositionRequiredPropertyTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the advancedtablecompositionOptionalProperty\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAdvancedtablecompositionOptionalProperty(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the advancedtablecompositionOptionalProperty\n\t * @param newValue the advancedtablecompositionOptionalProperty to update\n\t * \n\t */\n\tpublic void updateAdvancedtablecompositionOptionalProperty();\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionOptionalProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionOptionalProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the advancedtablecompositionOptionalProperty table\n\t * \n\t */\n\tpublic boolean isContainedInAdvancedtablecompositionOptionalPropertyTable(EObject element);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\r\n\t\r\n\t// End of user code\n\n}", "@Override\n\tpublic void onEditorCreate()\n\t{\n\t\tsetPath(t().getComponent(LttlPath.class, true));\n\t}", "@Override\n\tpublic void partOpened(IWorkbenchPart part) {\n\t}", "protected void initializeEditors() {\n\t}", "public interface AttributePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "protected abstract IEditorPreferences getPreferences();", "@Override\r\n\t\t\tpublic void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void setActiveEditor(IEditorPart editor) {\n\t\tsuper.setActiveEditor(editor);\r\n\r\n\t\tif (editor instanceof DiagramEditor) {\r\n\t\t\tgetActionBars().getStatusLineManager().setMessage(\r\n\t\t\t\t\t((DiagramEditor) editor).getPartName());\r\n\t\t}\r\n\t}", "public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }", "Object onCancelCreateFromEditor() {\n\t\t_mode = null;\n\t\t_facilityId = null;\n\t\treturn _editorZone.getBody();\n\t}", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\r\n\t}", "public void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "private void initEditorPanel() {\n\t\t\n\t\t//Remove all components from panel\n\t\tthis.editor.removeAll();\n\t\t\n\t\t//Redraw which feature\n\t\tthis.whichFeature.validate();\n\t\tthis.whichFeature.repaint();\n\t\t\n\t\t//Setting icon values\n\t\tpartL.setIcon(myParent.editor.profileImage);\n\t\tendTypeLTL.setIcon(myParent.editor.ltImage);\n\t\tendTypeRBL.setIcon(myParent.editor.rbImage);\n\t\tpfFormLL.setIcon(myParent.profileshapeImage);\n\t\tsetGo.setIcon(myParent.setImage);\n\t\tcancel.setIcon(myParent.cancelImage);\n\t\t\n\t\t//Setting values visibility\n\t\tpart.setVisible(false);\n\t\tpartL.setVisible(false);\n\t\tparts.setVisible(false);\n\t\t\n\t\tendTypeLT.setVisible(false);\n\t\tendTypeLTL.setVisible(false);\n\t\tlCut.setVisible(false);\n\t\tendTypeRB.setVisible(false);\n\t\tendTypeRBL.setVisible(false);\n\t\trCut.setVisible(false);\n\t\tpfFormL.setVisible(false);\n\t\tpfFormLL.setVisible(false);\n\t\tpfCombo.setVisible(false);\n\t\t\n\t\toffsetL.setVisible(false);\n\t\toffsetR.setVisible(false);\n\t\toffsetLT.setVisible(false);\n\t\toffsetRB.setVisible(false);\n\t\t\n\t\tbL.setVisible(false);\n\t\tbR.setVisible(false);\n\t\tdeltaL.setVisible(false);\n\t\tdeltaR.setVisible(false);\n\t\t\n\t\tsetGo.setVisible(false);\n\t\tcancel.setVisible(false);\n\t\t\n\t\tmyParent.dim.masterSelected.setEnabled(false);\n\t\tmyParent.dim.slaveSelected.setEnabled(false);\n\t\tmyParent.dim.masterSelected.setVisible(false);\n\t\tmyParent.dim.slaveSelected.setVisible(false);\n\t\tmyParent.dim.doAlign.setVisible(false);\n\t\tmyParent.dim.changeAlign.setVisible(false);\n\t\tmyParent.dim.cancelAlign.setVisible(false);\n\t\tmyParent.dim.doAlign.setEnabled(false);\n\t\tmyParent.dim.changeAlign.setEnabled(false);\n\t\t\n\t\tmyParent.alignSeq = 0;\n\t\t\n\t\t//Adding components to editor panel\n\t\teditor.add(part, new XYConstraints(1, 1, 20, 19));\n\t\teditor.add(partL, new XYConstraints(22, 1, 20, 19));\n\t\teditor.add(parts, new XYConstraints(42, 1, 140, 19));\n\t\t\n\t\teditor.add(endTypeLT, new XYConstraints(1, 23, 20, 19));\n\t\teditor.add(endTypeLTL, new XYConstraints(22, 23, 20, 19));\n\t\teditor.add(lCut, new XYConstraints(81, 23, 100, 19));\n\t\t\n\t\teditor.add(endTypeRB, new XYConstraints(1, 44, 20, 19));\n\t\teditor.add(endTypeRBL, new XYConstraints(22, 44, 20, 19));\n\t\teditor.add(rCut, new XYConstraints(81, 44, 100, 19));\n\t\t\n\t\teditor.add(pfFormL, new XYConstraints(1, 65, 20, 19));\n\t\teditor.add(pfFormLL, new XYConstraints(22, 65, 20, 19));\n\t\teditor.add(pfCombo, new XYConstraints(81, 65, 100, 19));\n\t\t\n\t\teditor.add(offsetL, new XYConstraints(1, 86, 50, 19));\n\t\teditor.add(offsetR, new XYConstraints(1, 107, 50, 19));\n\t\teditor.add(bL, new XYConstraints(1, 128, 50, 19));\n\t\teditor.add(bR, new XYConstraints(1, 149, 50, 19));\n\t\t\n\t\teditor.add(offsetLT, new XYConstraints(60, 86, 118, 19));\n\t\teditor.add(offsetRB, new XYConstraints(60, 107, 118, 19));\n\t\t\n\t\teditor.add(deltaL, new XYConstraints(60, 127, 118, 19));\n\t\teditor.add(deltaR, new XYConstraints(60, 147, 118, 19));\n\t\t\n\t\teditor.add(setGo, new XYConstraints(56, 168, 60, 19));\n\t\teditor.add(cancel, new XYConstraints(118, 168, 60, 19));\n\t\t\n\t\teditor.add(myParent.dim.masterSelected, new XYConstraints(1, 3, 120, 19));\n\t\teditor.add(myParent.dim.slaveSelected, new XYConstraints(1, 24,120, 19));\n\t\t\n\t\teditor.add(myParent.dim.doAlign, new XYConstraints(1, 50, 59, 19));\n\t\teditor.add(myParent.dim.changeAlign, new XYConstraints(61, 50, 59, 19));\n\t\teditor.add(myParent.dim.cancelAlign, new XYConstraints(121, 50, 59, 19));\n\t}", "public void correcto( Editor<Tipo> editor );", "public void prepareEditor(){\n System.out.println(\"Prepare editor to be used !\");\r\n ((EditorScene)map.getScene()).initScene(20,20,map);\r\n ((EditorScene)map.getScene()).setController(this);\r\n builder.registerBasicEffect();\r\n ((EditorScene)map.getScene()).initListView(builder.getEffects(),selectEffects);\r\n\r\n\r\n\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tIWorkbenchPage page = getPage();\n\t\t\t\t\tJasmineEditorInput input = new JasmineEditorInput(specRunner, name);\n\t\t\t\t\tpart.add(page.openEditor(input, ID));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\texception.add(e);\n\t\t\t\t}\n\t\t\t}", "protected abstract Entity getEditedEntity();", "public interface EdentInlineEditableObject {\n public static final String INSERT_VALUE = \"Povinná hodnota\";\n \n public void setStringValue(String name, String value);\n \n}", "protected JComponent createEditor() {\n return spinner.getEditor(); }", "public interface Plugin\n{\n /**\n * Initialize the plug-in. Plug-ins need to know the text area in order to provide only those feature that are\n * supported.\n * \n * @param textArea the text area of the editor\n * @param config the configuration object\n */\n void init(RichTextArea textArea, Config config);\n\n /**\n * @return all the user interface extensions that are provided by this plug-in\n */\n UIExtension[] getUIExtensions();\n\n /**\n * Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.\n */\n void destroy();\n}", "boolean mo117961a(Editor editor);", "public abstract void acceptEditing();", "@Override\n protected void validateEdit(Fornecedor post) {\n\n }", "protected InteractionDrawingEditor getViewEditor()\n {\n return view.getEditor();\n }", "public void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public void createFieldEditors()\n\t{\n\t}", "public interface ACSUIEditor {\n\n ACSUIEditable getEditable(SimpleRequestContext src);\n\n ACSUIEditable getEditable();\n\n ACSUIEditable updatetEditable(SimpleRequestContext src);\n\n ACSUIEditable insertEditable(SimpleRequestContext src);\n\n ACSUIEditable deleteEditable(SimpleRequestContext src);\n\n ACSUIEditable[] getEditables(SimpleRequestContext src);\n\n String[] getColNames();\n\n String getType();\n\n boolean[] checkInputData(ACSRequestContext ctx);\n\n String getManagmentLabel();\n\n String getAddLabel();\n\n String getUpdateLabel();\n\n}", "protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (editorPart instanceof MigrationEditorOperation) {\n return (MigrationEditorOperation) editorPart;\n }\n return null;\n }", "@Override\r\n protected boolean canEdit(Object element) {\n return true;\r\n }", "private ch.softenvironment.view.SimpleEditorPanel getPnlEditor() {\n\tif (ivjPnlEditor == null) {\n\t\ttry {\n\t\t\tivjPnlEditor = new ch.softenvironment.view.SimpleEditorPanel();\n\t\t\tivjPnlEditor.setName(\"PnlEditor\");\n\t\t\tivjPnlEditor.setLayout(new javax.swing.BoxLayout(getPnlEditor(), javax.swing.BoxLayout.X_AXIS));\n\t\t\tivjPnlEditor.setEnabled(true);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlEditor;\n}", "public StringEditor() {\n\t\tsuper();\n\t\tmEditor = new JTextField();\n\t\t\n\t}", "protected abstract void createFieldEditors();", "public TextComposeBasePopup(CodeEditor editor) {\n if (editor == null) {\n throw new IllegalArgumentException();\n }\n mLocation = new int[2];\n mEditor = editor;\n super.setTouchable(true);\n textSizePx = mEditor.getTextSizePx();\n }", "public interface Editable {\n\n /**\n * Append will be assigned to add a string fragment to the end of _TextLine\n * @param fragment the string to add at the end of _TextLine\n */\n public void append(String fragment);\n\n /**\n * Insert will be assigned to insert string fragment at index 0\n * @param index the index at which to insert the fragment\n * @param fragment the fragment that will be inserted at index\n */\n public void insert(int index, String fragment);\n /**\n * Replace will replace from a starting index to an ending index with\n * the string fragment\n * @param start where to start replacing\n * @param end where to end replacing\n * @param fragment string to insert at start index\n */\n public void replace(int start, int end, String fragment);\n\n}", "public void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public interface CMLEditor {\n\n\tvoid executeCommand(CMLElement cmlIn);\n\n}", "private void edit() {\n\n\t}", "private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }", "public boolean hasInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).hasInPlaceCustomEditor ();\n } else {\n return false;\n }\n }", "@Override\n\tpublic void editingStopped(ChangeEvent arg0) {\n\n\t}", "public Container getContainer() {\n return editor;\n }", "public interface IListener {\n\n /**\n * Called when the contents of the editor changes.\n */\n public void onChange(Transform transform);\n\n }", "public interface StatusCodePropertiesEditionPart {\n\n\t/**\n\t * @return the number\n\t * \n\t */\n\tpublic String getNumber();\n\n\t/**\n\t * Defines a new number\n\t * @param newValue the new number to set\n\t * \n\t */\n\tpublic void setNumber(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}", "private void initEditorComponent () {\n // Overriding the 'setJawbDocument' method to handle logging too.\n final AnnotationPopupListener popupListener =\n new AnnotationPopupListener(this);\n \n JTabbedPane tp = new DetachableTabsJawbComponent (task.getName()) {\n public void setJawbDocument (JawbDocument doc) {\n\t JawbDocument old = getJawbDocument();\n super.setJawbDocument (doc); // this is a must!!!\n\t if (old != null) \n\t old.getAnnotationMouseModel().\n\t removeAnnotationMouseListener(popupListener);\n\t if (doc != null)\n\t doc.getAnnotationMouseModel().\n\t addAnnotationMouseListener(popupListener);\n }\n };\n\n // add a simple editor for each\n Iterator iter = task.getMaiaScheme().iteratorOverAnnotationTypes();\n while (iter.hasNext()) {\n AnnotationType type = (AnnotationType) iter.next();\n Component editor = new SimpleAnnotEditor(this, type);\n tp.add (type.getName(), editor);\n }\n\n editorComponent = (JawbComponent)tp;\n }", "public interface SlamPropertiesEditionPart {\n\n\t/**\n\t * @return the side\n\t * \n\t */\n\tpublic Enumerator getSide();\n\n\t/**\n\t * Init the side\n\t * @param eenum the enum to manage\n\t * @param current the current value\n\t */\n\tpublic void initSide(EEnum eenum, Enumerator current);\n\n\t/**\n\t * Defines a new side\n\t * @param newValue the new side to set\n\t * \n\t */\n\tpublic void setSide(Enumerator newValue);\n\n\n\t/**\n\t * @return the announced\n\t * \n\t */\n\tpublic Boolean getAnnounced();\n\n\t/**\n\t * Defines a new announced\n\t * @param newValue the new announced to set\n\t * \n\t */\n\tpublic void setAnnounced(Boolean newValue);\n\n\n\t/**\n\t * @return the achieved\n\t * \n\t */\n\tpublic Boolean getAchieved();\n\n\t/**\n\t * Defines a new achieved\n\t * @param newValue the new achieved to set\n\t * \n\t */\n\tpublic void setAchieved(Boolean newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}", "public PtWikiTextEditorBase(GWikiElement element, String sectionName, String editor, String hint)\n {\n super(element, sectionName, editor, hint);\n extractContent();\n }", "@Override\r\n\tprotected boolean hasEditSupport() {\n\t\treturn false;\r\n\t}", "void setEditorController(EditorViewController gameEditorViewController);", "@Override\n\tpublic String getName(EditorInterface editor) {\n\t\treturn \"Selection\";\n\t}", "public InputFieldEditingSupport(TableViewer viewer) {\n\t\tsuper(viewer);\n\t\tthis.viewer = viewer;\n\t\t//cellEditor = new TextCellEditor(viewer.getTable(), SWT.MULTI | SWT.WRAP | SWT.BORDER);\n\t\tcellEditor = new TextCellEditor(viewer.getTable());\n\t\t\n\t\tfinal Text aaa = (Text)cellEditor.getControl();\n\t}", "public interface UnitTestPropertiesEditionPart {\n\n\t/**\n\t * @return the locs\n\t * \n\t */\n\tpublic String getLocs();\n\n\t/**\n\t * Defines a new locs\n\t * @param newValue the new locs to set\n\t * \n\t */\n\tpublic void setLocs(String newValue);\n\n\n\t/**\n\t * @return the comments\n\t * \n\t */\n\tpublic String getComments();\n\n\t/**\n\t * Defines a new comments\n\t * @param newValue the new comments to set\n\t * \n\t */\n\tpublic void setComments(String newValue);\n\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the weight\n\t * \n\t */\n\tpublic String getWeight();\n\n\t/**\n\t * Defines a new weight\n\t * @param newValue the new weight to set\n\t * \n\t */\n\tpublic void setWeight(String newValue);\n\n\n\t/**\n\t * @return the name\n\t * \n\t */\n\tpublic String getName();\n\n\t/**\n\t * Defines a new name\n\t * @param newValue the new name to set\n\t * \n\t */\n\tpublic void setName(String newValue);\n\n\n\t/**\n\t * @return the maxWeight\n\t * \n\t */\n\tpublic String getMaxWeight();\n\n\t/**\n\t * Defines a new maxWeight\n\t * @param newValue the new maxWeight to set\n\t * \n\t */\n\tpublic void setMaxWeight(String newValue);\n\n\n\n\n\t/**\n\t * Init the migRelations\n\t * @param settings settings for the migRelations ReferencesTable \n\t */\n\tpublic void initMigRelations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the migRelations\n\t * @param newValue the migRelations to update\n\t * \n\t */\n\tpublic void updateMigRelations();\n\n\t/**\n\t * Adds the given filter to the migRelations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMigRelations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the migRelations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMigRelations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the migRelations table\n\t * \n\t */\n\tpublic boolean isContainedInMigRelationsTable(EObject element);\n\n\n\t/**\n\t * @return the parentLayer\n\t * \n\t */\n\tpublic EObject getParentLayer();\n\n\t/**\n\t * Init the parentLayer\n\t * @param settings the combo setting\n\t */\n\tpublic void initParentLayer(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new parentLayer\n\t * @param newValue the new parentLayer to set\n\t * \n\t */\n\tpublic void setParentLayer(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setParentLayerButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the parentLayer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToParentLayer(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the parentLayer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToParentLayer(ViewerFilter filter);\n\n\n\t/**\n\t * @return the parentModule\n\t * \n\t */\n\tpublic EObject getParentModule();\n\n\t/**\n\t * Init the parentModule\n\t * @param settings the combo setting\n\t */\n\tpublic void initParentModule(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new parentModule\n\t * @param newValue the new parentModule to set\n\t * \n\t */\n\tpublic void setParentModule(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setParentModuleButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the parentModule edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToParentModule(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the parentModule edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToParentModule(ViewerFilter filter);\n\n\n\t/**\n\t * @return the originalFilePath\n\t * \n\t */\n\tpublic String getOriginalFilePath();\n\n\t/**\n\t * Defines a new originalFilePath\n\t * @param newValue the new originalFilePath to set\n\t * \n\t */\n\tpublic void setOriginalFilePath(String newValue);\n\n\n\t/**\n\t * @return the newFilePath\n\t * \n\t */\n\tpublic String getNewFilePath();\n\n\t/**\n\t * Defines a new newFilePath\n\t * @param newValue the new newFilePath to set\n\t * \n\t */\n\tpublic void setNewFilePath(String newValue);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\t/**\n\t * Init the attributes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAttributes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the attributes\n\t * @param newValue the attributes to update\n\t * \n\t */\n\tpublic void updateAttributes();\n\n\t/**\n\t * Adds the given filter to the attributes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAttributes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the attributes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAttributes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the attributes table\n\t * \n\t */\n\tpublic boolean isContainedInAttributesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the methods\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initMethods(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the methods\n\t * @param newValue the methods to update\n\t * \n\t */\n\tpublic void updateMethods();\n\n\t/**\n\t * Adds the given filter to the methods edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMethods(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the methods edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMethods(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the methods table\n\t * \n\t */\n\tpublic boolean isContainedInMethodsTable(EObject element);\n\n\n\t/**\n\t * @return the inhertance\n\t * \n\t */\n\tpublic Enumerator getInhertance();\n\n\t/**\n\t * Init the inhertance\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initInhertance(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new inhertance\n\t * @param newValue the new inhertance to set\n\t * \n\t */\n\tpublic void setInhertance(Enumerator newValue);\n\n\n\n\n\t/**\n\t * Init the implements\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initImplements_(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the implements\n\t * @param newValue the implements to update\n\t * \n\t */\n\tpublic void updateImplements_();\n\n\t/**\n\t * Adds the given filter to the implements edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToImplements_(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the implements edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToImplements_(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the implements table\n\t * \n\t */\n\tpublic boolean isContainedInImplements_Table(EObject element);\n\n\n\t/**\n\t * @return the originalFileName\n\t * \n\t */\n\tpublic String getOriginalFileName();\n\n\t/**\n\t * Defines a new originalFileName\n\t * @param newValue the new originalFileName to set\n\t * \n\t */\n\tpublic void setOriginalFileName(String newValue);\n\n\n\t/**\n\t * @return the type\n\t * \n\t */\n\tpublic String getType();\n\n\t/**\n\t * Defines a new type\n\t * @param newValue the new type to set\n\t * \n\t */\n\tpublic void setType(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public interface NTLMMediatorInputConnectorPropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the incomingLinks\n\t * @param settings settings for the incomingLinks ReferencesTable \n\t */\n\tpublic void initIncomingLinks(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the incomingLinks\n\t * @param newValue the incomingLinks to update\n\t * \n\t */\n\tpublic void updateIncomingLinks();\n\n\t/**\n\t * Adds the given filter to the incomingLinks edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToIncomingLinks(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the incomingLinks edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToIncomingLinks(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the incomingLinks table\n\t * \n\t */\n\tpublic boolean isContainedInIncomingLinksTable(EObject element);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public void setActivePage(IEditorPart activeEditor) {\n\r\n\t}", "@Override\r\n protected void onTriggerClick(ComponentEvent ce)\r\n {\r\n showEditor(ConceptPicker.this);\r\n }", "@Override\n\tpublic java.lang.String getEditorType() {\n\t\treturn _scienceApp.getEditorType();\n\t}", "public interface OnEditorInteraction {\n boolean onItemLongClick(MissionItemProxy item);\n\n void onItemClick(MissionItemProxy item, boolean zoomToFit);\n\n void onMapClick(LatLong coord);\n\n void onListVisibilityChanged();\n}", "public override void Do()\r\n { \r\n if (TextEditor.UiScope == null)\r\n { \r\n // We dont want to process the input item if the editor has already been detached from its UiScope. \r\n return;\r\n } \r\n\r\n DoTextInput(TextEditor, _text, _isInsertKeyToggled, /*acceptControlCharacters:*/false);\r\n }", "Builder addEditor(String value);", "public Object getItem ()\r\n {\r\n return editor.getText ();\r\n }", "public Map addToEditor (Composite composite, Object listener);", "public void editOperation() {\n\t\t\r\n\t}", "protected final JTextComponent getComponent() {\n return editor;\n }", "public void createFieldEditors() {\t\t\n\t\t\n//\t\taddField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, \n//\t\t\t\tMessages.UMAPPreferencePage_1, getFieldEditorParent()));\n\t\tgroup = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n\t\tgroup.setText(Messages.UMAPPreferencesHeader);\n\t\tgroup.setLayout(new GridLayout());\n\t\tGridData gd = new GridData(GridData.FILL_HORIZONTAL);\n\t\tgd.horizontalSpan = 1;\n\t\tgroup.setLayoutData(gd);\t\t\n\t\t\n//\t\tgroup2 = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n//\t\tgroup2.setText(Messages.UmapStringButtonFieldEditor_0);\n//\t\tgd.horizontalSpan = 2;\n//\t\tgroup2.setLayoutData(gd);\n//\t\tgroup2.setLayout(new GridLayout());\n\t\t\n\t\t\n\t\tvalidation = new BooleanFieldEditor( PreferenceConstants.P_BOOLEAN,\tMessages.UMAPPreferencePage_2, group);\n\t\taddField( validation );\n\n\t\tclassAbreviation = new StringFieldEditor(PreferenceConstants.P_CLASS_NAME, Messages.UMAPPreferencePage_3, group);\n\t\tclassAbreviation.setEmptyStringAllowed(false);\n\t\tclassAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\tintfAbreviation = new StringFieldEditor(PreferenceConstants.P_INTF_NAME, Messages.UMAPPreferencePage_4, group);\n\t\tintfAbreviation.setEmptyStringAllowed(false);\n\t\tintfAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\texcAbreviation = new StringFieldEditor(PreferenceConstants.P_EXCP_NAME, Messages.UMAPPreferencePage_5, group);\n\t\texcAbreviation.setEmptyStringAllowed(false);\n\t\texcAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\t\n//\t\tprojectAbbreviation = new StringFieldEditor(PreferenceConstants.P_PROJ_NAME, Messages.UMAPPreferencePage_6, group);\n//\t\tprojectAbbreviation.setEmptyStringAllowed(true);\n\n//\t\tStringFieldEditor name = new StringFieldEditor(PreferenceConstants.P_USER_NAME, Messages.UmapStringButtonFieldEditor_2, group2);\n//\t\t\n//\t\tStringFieldEditor pass = new StringFieldEditor(PreferenceConstants.P_PWD, Messages.UmapStringButtonFieldEditor_3, group2);\n\t\t\n//\t\tURIStringButtonFieldEditor button = new URIStringButtonFieldEditor(PreferenceConstants.P_URI, Messages.UmapStringButtonFieldEditor_1, group2);\n\t\t\n//\t\taddField(name);\n//\t\taddField(pass);\n//\t\taddField(button);\n\t\t\n\t\taddField( classAbreviation );\n\t\taddField( intfAbreviation );\n\t\taddField( excAbreviation );\n//\t\taddField( projectAbbreviation );\t\t\n\t}", "public MWC.GUI.Editable.EditorType getInfo()\n\t{\n\t\tif (_myEditor == null)\n\t\t\t_myEditor = new InvestigateInfo(this);\n\n\t\treturn _myEditor;\n\t}", "public MultiViewDescription getActiveDescription() {\n \treturn currentEditor;\n }", "public interface IContentSelection\n{\n \n /**\n * Returns true if this object has a selected part, false otherwise.\n * \n * @return true if a selected part is within this object, false otherwise.\n */\n public abstract boolean hasSelection();\n \n /**\n * Returns the selection start within this object.\n * \n * @return start position in atoms.\n */\n public abstract int getSelectionStart();\n \n /**\n * Returns the selection end within this object.\n * \n * @return end position in atoms.\n */\n public abstract int getSelectionEnd();\n \n /**\n * Removes all selections from this object. No content is removed.\n */\n public abstract void clearSelection(TextAppearance appearance);\n \n /**\n * Removes everything that is selected including the content of this object.\n */\n public abstract void removeSelection(IContentFactory factory,\n TextAppearance appearance);\n \n /**\n * Selected the parts between the to atom positions.\n * \n * @param start\n * start position in atoms\n * @param end\n * end position in atoms\n */\n public abstract void setSelection(int start, int end,\n TextAppearance appearance);\n \n}" ]
[ "0.68893427", "0.682302", "0.68092054", "0.6788858", "0.6707339", "0.66036946", "0.6592822", "0.6561224", "0.6558784", "0.65431404", "0.6484775", "0.64194906", "0.6414691", "0.6372267", "0.63478816", "0.63309115", "0.63156796", "0.62444687", "0.62277", "0.6219752", "0.6214253", "0.62021315", "0.61828655", "0.6175704", "0.6172435", "0.6165635", "0.6164891", "0.6154767", "0.6151693", "0.61417043", "0.6138351", "0.6127958", "0.6101364", "0.6101193", "0.6067577", "0.60589254", "0.6054752", "0.6051638", "0.6033705", "0.6009101", "0.5973368", "0.5960877", "0.5957232", "0.59572166", "0.59565127", "0.5922088", "0.5919027", "0.59086704", "0.5901782", "0.5900312", "0.58951026", "0.58861345", "0.5875909", "0.58695143", "0.58660316", "0.58471656", "0.58332014", "0.58228284", "0.58215714", "0.5821472", "0.5819908", "0.58184415", "0.5817604", "0.58161616", "0.5800282", "0.5796195", "0.57910854", "0.578841", "0.57785976", "0.57771385", "0.5772243", "0.57631993", "0.5754524", "0.57501936", "0.57367504", "0.57245153", "0.5720019", "0.57094204", "0.57089883", "0.5708211", "0.5707628", "0.5704174", "0.56964695", "0.5694815", "0.5692226", "0.56804395", "0.56803125", "0.5675832", "0.56661147", "0.5663391", "0.5661926", "0.5661007", "0.56583107", "0.5655657", "0.56552994", "0.56549424", "0.56526357", "0.56497335", "0.56492084", "0.5648718", "0.5648394" ]
0.0
-1
The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.
public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException { if (!(editorInput instanceof IFileEditorInput)) throw new PartInitException("Invalid Input: Must be IFileEditorInput"); super.init(site, editorInput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doSetInput(IEditorInput input)\n throws CoreException\n {\n // Map external files into workspace (epic-links)\n if (input instanceof ILocationProvider)\n {\n ILocationProvider l = (ILocationProvider)\n input.getAdapter(ILocationProvider.class);\n \n input = FileUtilities.getFileEditorInput(l.getPath(l).makeAbsolute());\n if (input == null) throw new CoreException(new Status(\n IStatus.ERROR,\n PerlEditorPlugin.getPluginId(),\n IStatus.OK,\n \"Could not open requested file \" + l.getPath(l).makeAbsolute() +\n \". Inspect the Error Log for additional information.\",\n null));\n }\n \n super.doSetInput(input);\n \n if (getViewer() != null)\n {\n // The editor is being reused (e.g. when the user clicks on matches\n // found through a search). Make sure we synchronize with the new content.\n \n source = new SourceFile(\n PerlEditorPlugin.getDefault().getLog(),\n getViewer().getDocument());\n \n reconcile();\n }\n }", "public void testBug72337() {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n IPath path = new Path(\"/foo/bar.txt\");\n IFile fileA = workspace.getRoot().getFile(path);\n FileEditorInput inputA1 = new FileEditorInput(fileA);\n OtherFileEditorInput inputA2 = new OtherFileEditorInput(fileA);\n assertTrue(inputA1.equals(inputA2));\n assertTrue(inputA2.equals(inputA1));\n }", "@Override\n public void collectInput(Object o) {\n if (o instanceof File && file == null) {\n file = (File) o;\n }\n }", "@Override\r\n \t\tprotected boolean validatePage() {\r\n \t\t\tif (super.validatePage()) {\r\n \t\t\t\tString extension = new Path(getFileName()).getFileExtension();\r\n \t\t\t\tif (extension == null || !FILE_EXTENSIONS.contains(extension)) {\r\n \t\t\t\t\tString key = FILE_EXTENSIONS.size() > 1 ? \"_WARN_FilenameExtensions\" : \"_WARN_FilenameExtension\";\r\n \t\t\t\t\tsetErrorMessage(Reqif10EditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));\r\n \t\t\t\t\treturn false;\r\n \t\t\t\t}\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\treturn false;\r\n \t\t}", "public boolean isInputFileType(String extension);", "@Override\n\tpublic boolean isFile() {\n\t\treturn true;\n\t}", "@Nonnull\n public Pair<FileEditor[], FileEditorProvider[]> openFileImpl4(@Nonnull UIAccess uiAccess,\n @Nonnull final FileEditorWindow window,\n @Nonnull final VirtualFile file,\n @Nullable final HistoryEntry entry,\n FileEditorOpenOptions options) {\n assert UIAccess.isUIThread() || !ApplicationManager.getApplication()\n .isReadAccessAllowed() : \"must not open files under read action since we are doing a lot of invokeAndWaits here\";\n\n int index = options.getIndex();\n boolean current = options.isCurrentTab();\n boolean focusEditor = options.isFocusEditor();\n Boolean pin = options.getPin();\n\n final Ref<FileEditorWithProviderComposite> compositeRef = new Ref<>();\n if (!options.isReopeningEditorsOnStartup()) {\n uiAccess.giveAndWaitIfNeed(() -> compositeRef.set(window.findFileComposite(file)));\n }\n\n final FileEditorProvider[] newProviders;\n final AsyncFileEditorProvider.Builder[] builders;\n if (compositeRef.isNull()) {\n // File is not opened yet. In this case we have to create editors\n // and select the created EditorComposite.\n newProviders = FileEditorProviderManager.getInstance().getProviders(myProject, file);\n if (newProviders.length == 0) {\n return Pair.create(EMPTY_EDITOR_ARRAY, EMPTY_PROVIDER_ARRAY);\n }\n\n builders = new AsyncFileEditorProvider.Builder[newProviders.length];\n for (int i = 0; i < newProviders.length; i++) {\n try {\n final FileEditorProvider provider = newProviders[i];\n LOG.assertTrue(provider != null, \"Provider for file \" + file + \" is null. All providers: \" + Arrays.asList(newProviders));\n ThrowableComputable<AsyncFileEditorProvider.Builder, RuntimeException> action = () -> {\n if (myProject.isDisposed() || !file.isValid()) {\n return null;\n }\n LOG.assertTrue(provider.accept(myProject, file), \"Provider \" + provider + \" doesn't accept file \" + file);\n return provider instanceof AsyncFileEditorProvider ? ((AsyncFileEditorProvider)provider).createEditorAsync(myProject,\n file) : null;\n };\n builders[i] = AccessRule.read(action);\n }\n catch (ProcessCanceledException e) {\n throw e;\n }\n catch (Exception | AssertionError e) {\n LOG.error(e);\n }\n }\n }\n else {\n newProviders = null;\n builders = null;\n }\n Runnable runnable = () -> {\n if (myProject.isDisposed() || !file.isValid()) {\n return;\n }\n\n compositeRef.set(window.findFileComposite(file));\n boolean newEditor = compositeRef.isNull();\n if (newEditor) {\n getProject().getMessageBus().syncPublisher(FileEditorManagerBeforeListener.class).beforeFileOpened(this, file);\n\n FileEditor[] newEditors = new FileEditor[newProviders.length];\n for (int i = 0; i < newProviders.length; i++) {\n try {\n final FileEditorProvider provider = newProviders[i];\n final FileEditor editor = builders[i] == null ? provider.createEditor(myProject, file) : builders[i].build();\n LOG.assertTrue(editor.isValid(),\n \"Invalid editor created by provider \" + (provider == null ? null : provider.getClass().getName()));\n newEditors[i] = editor;\n // Register PropertyChangeListener into editor\n editor.addPropertyChangeListener(myEditorPropertyChangeListener);\n editor.putUserData(DUMB_AWARE, DumbService.isDumbAware(provider));\n }\n catch (ProcessCanceledException e) {\n throw e;\n }\n catch (Exception | AssertionError e) {\n LOG.error(e);\n }\n }\n\n // Now we have to create EditorComposite and insert it into the TabbedEditorComponent.\n // After that we have to select opened editor.\n FileEditorWithProviderComposite composite = createComposite(file, newEditors, newProviders);\n if (composite == null) return;\n\n if (index >= 0) {\n composite.getFile().putUserData(FileEditorWindow.INITIAL_INDEX_KEY, index);\n }\n\n compositeRef.set(composite);\n }\n\n final FileEditorWithProviderComposite composite = compositeRef.get();\n FileEditor[] editors = composite.getEditors();\n FileEditorProvider[] providers = composite.getProviders();\n\n window.setEditor(composite, current, focusEditor);\n\n for (int i = 0; i < editors.length; i++) {\n restoreEditorState(file, providers[i], editors[i], entry, newEditor);\n }\n\n // Restore selected editor\n final FileEditorProvider selectedProvider;\n if (entry == null) {\n selectedProvider =\n ((FileEditorProviderManagerImpl)FileEditorProviderManager.getInstance()).getSelectedFileEditorProvider(EditorHistoryManagerImpl.getInstance(\n myProject), file, providers);\n }\n else {\n selectedProvider = entry.getSelectedProvider();\n }\n if (selectedProvider != null) {\n for (int i = editors.length - 1; i >= 0; i--) {\n final FileEditorProvider provider = providers[i];\n if (provider.equals(selectedProvider)) {\n composite.setSelectedEditor(i);\n break;\n }\n }\n }\n\n // Notify editors about selection changes\n window.getOwner().setCurrentWindow(window, focusEditor);\n if (window.getOwner() instanceof FileEditorsSplittersBase) {\n ((FileEditorsSplittersBase)window.getOwner()).afterFileOpen(file);\n }\n addSelectionRecord(file, window);\n\n composite.getSelectedEditor().selectNotify();\n\n // Transfer focus into editor\n if (!Application.get().isUnitTestMode()) {\n if (focusEditor) {\n //myFirstIsActive = myTabbedContainer1.equals(tabbedContainer);\n window.setAsCurrentWindow(true);\n ToolWindowManager.getInstance(myProject).activateEditorComponent();\n\n window.getOwner().toFront();\n }\n }\n\n if (newEditor) {\n notifyPublisher(() -> {\n if (isFileOpen(file)) {\n getProject().getMessageBus().syncPublisher(FileEditorManagerListener.class).fileOpened(this, file);\n }\n });\n ourOpenFilesSetModificationCount.incrementAndGet();\n }\n\n //[jeka] this is a hack to support back-forward navigation\n // previously here was incorrect call to fireSelectionChanged() with a side-effect\n ((IdeDocumentHistoryImpl)IdeDocumentHistory.getInstance(myProject)).onSelectionChanged();\n\n // Update frame and tab title\n updateFileName(file);\n\n // Make back/forward work\n IdeDocumentHistory.getInstance(myProject).includeCurrentCommandAsNavigation();\n\n if (pin != null) {\n window.setFilePinned(file, pin);\n }\n };\n\n uiAccess.giveAndWaitIfNeed(runnable);\n\n FileEditorWithProviderComposite composite = compositeRef.get();\n return Pair.create(composite == null ? EMPTY_EDITOR_ARRAY : composite.getEditors(),\n composite == null ? EMPTY_PROVIDER_ARRAY : composite.getProviders());\n }", "public interface InputFormat {\n /**\n * Return a FileFilter that can be used to identify files which can be restored\n * with this Storage Format. Typically, each input format has its own \n * recognizable file naming convention.\n *\n * @return FileFilter to be used with a javax.swing.JFileChooser\n */\n public javax.swing.filechooser.FileFilter getFileFilter();\n \n /**\n * Return a JFileChooser accessory that can be used to customize the input\n * format.\n *\n * @return A JFileChooser accessory to be used with a javax.swing.JFileChooser\n * Returns null, if no accessory is provided for this format.\n */\n public JComponent getInputFormatAccessory();\n \n /**\n * Reads figures from a file and replaces the children of the drawing\n * with them.\n * <p>\n * This is a convenience method for calling read(File,Drawing,true).\n *\n * @param file The file.\n * @param drawing The drawing.\n */\n public void read(File file, Drawing drawing) throws IOException;\n \n /**\n * Reads figures from a file and adds them to the specified drawing.\n *\n * @param file The file.\n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the file replaces the\n * contents of the drawing (for example, when loading a drawing from a file).\n * Set this to false, to add the contents of the file to the drawing (for\n * example, when the file has been dropped into the drawing view).\n */\n public void read(File file, Drawing drawing, boolean replace) throws IOException;\n\n /**\n * Reads figures from a file and adds them to the specified drawing.\n *\n * @param in The input stream.\n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the stream replaces the\n * contents of the drawing (for example, when loading a drawing from a stream).\n * Set this to false, to add the contents of the file to the drawing (for\n * example, when the stream has been dropped into the drawing view).\n */\n public void read(InputStream in, Drawing drawing, boolean replace) throws IOException;\n\n /**\n * Returns true, if this InputFormat can readFigures TransferData using the \n * specified DataFlavor.\n * \n * @param flavor A DataFlavor.\n */\n public boolean isDataFlavorSupported(DataFlavor flavor);\n \n /**\n * Reads figures from the specified Transferable and adds them to the\n * specified drawing.\n * \n * @param t The Transferable. \n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the transferable\n * replaces the contents of the drawing (for example, when loading a drawing\n * from a transferable). Set this to false, to add the contents of the \n * transferable to the drawing (for example, when the transferable has been\n * dropped or pasted into the drawing view).\n */\n public void read(Transferable t, Drawing drawing, boolean replace) throws UnsupportedFlavorException, IOException;\n}", "public boolean isFile() { return true; }", "public boolean isFile() { return false; }", "public interface IFileService {\n ResponseJson uploadFile(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson uploadFiles(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson fileDownload(HttpServletRequest request, HttpServletResponse response,int fid) throws UnsupportedEncodingException;\n\n ResponseJson fileDelete(FileModel fileModel, HttpServletRequest request);\n\n ResponseJson findFileList(int uid);\n\n ResponseJson excelUpload(MultipartHttpServletRequest request,String type);\n\n ResponseJson findFileListByPage(int uid, PageJson pageJson);\n\n EUditorJson ueditorUploadImage(MultipartHttpServletRequest request) throws IOException;\n}", "protected abstract boolean invokable(FileObjectView f);", "public File getInputFile() {\n return inputFile;\n }", "public T caseInputFile(InputFile object) {\n\t\treturn null;\n\t}", "public interface IDatFileEditor {\n\n /**\n * Close the file at the end of editing.\n * @throws IOException if there is an I/O failure.\n */\n void close() throws IOException;\n\n /**\n * Writes the records to the dat file one by one.\n * @param recordList the record list\n * @throws IOException if there is an I/O failure\n */\n void writeRecordsToFile(List<IRecord> recordList) throws IOException;\n}", "public void correcto( Editor<Tipo> editor );", "@Override\n public boolean onCheckIsTextEditor() {\n return false;\n }", "public boolean validImageContent() {\n\t\treturn input.validFile(list);\n\t}", "public interface MultipleFileInterface {\n void onMultipleItemClick(int position);\n}", "public void foreachDocumentinInputPath(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n File aInputPath = new File(_aParam.getInputPath());\n if (aInputPath.isDirectory())\n {\n // check a whole directory\n // a whole directory\n FileFilter aFileFilter = FileHelper.getFileFilter();\n traverseDirectory(aFileFilter, _aParam);\n }\n else\n {\n callEntry(_aParam.getInputPath(), _aParam);\n }\n }", "@Contract(pure = true)\n public FileActions(final MimaUserInterface mimaUI, final MimaEditorManager editorManager) {\n this.mimaUI = mimaUI;\n this.editorManager = editorManager;\n }", "public interface FileConstract {\n interface FileView extends BaseView<FilePresenter> {\n void refreshUI(List<FileBean> data);\n void showToast(String msg);\n }\n\n interface FilePresenter extends BasePresenter {\n void initData();\n\n void uploadFile(String path);\n }\n\n}", "public boolean isSetFileType() {\n return this.fileType != null;\n }", "public IFile getIFile ();", "private boolean checkEditContent()\n {\n if (etUrl.hasContent() && etFilePath.hasContent())\n {\n return true;\n }\n return false;\n }", "public void pageChanged(String inputDocument, String modelType, boolean documentTypeSelected)\n {\n \n if (inputDocument.endsWith(\".docx\") || inputDocument.endsWith(\".odt\")) //$NON-NLS-1$ //$NON-NLS-2$\n {\n isSpreadsheet = false;\n \n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDRegexOrStyle();\n RecognizedTree newTree = controller.getStylesAndRegex();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n \n boolean b = Constants.SYSML_EXTENSION.equals(modelType) || Constants.UML_EXTENSION.equals(modelType);\n \n descriptionComposite.setAttributeComboVisible(b);\n } \n else\n {\n isSpreadsheet = true;\n\n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDColumn();\n RecognizedTree newTree = controller.getColumns();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n }\n \n if (documentTypeSelected)\n {\n descriptionText = controller.getDescriptionEndText();\n descriptionRegex = controller.getDescriptionRegex();\n }\n \n updateWizard();\n \n if (inputDocument != null)\n {\n if (inputDocument.contains(\"file:\")) //$NON-NLS-1$\n {\n currentFileSystem = new File(URI.createURI(inputDocument).toFileString());\n controller.setCurrentFileSystem(currentFileSystem);\n }\n else if (inputDocument.contains(\"platform:\")) //$NON-NLS-1$\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.createURI(inputDocument).toPlatformString(true)));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n else\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(URI.createURI(inputDocument).toFileString()));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n }\n setDocumentFile(currentFileSystem);\n }", "public void setInputFile(File inputFile) {\n this.inputFile = inputFile;\n }", "void btnValidateFile(File file);", "@Override\n public void testCreateAsEditor() {}", "@InputValidation(IValidationStrategy.PROCESS.class)\r\npublic interface IFileFormatService extends IService2 {\r\n\r\n\t/**\r\n\t * Saves new file formats into storage\r\n\t * \r\n\t * @param formData\r\n\t * FileFormatFormData\r\n\t * @return the assigned FileFormatFormData\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic FileFormatFormData create(FileFormatFormData formData)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Deletes all file formats from storage having one of the assigned ids\r\n\t * \r\n\t * @param ids\r\n\t * Long[]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic void delete(Long[] ids) throws ProcessingException;\r\n\r\n\t/**\r\n\t * Modifies the assigned file format in the storage\r\n\t * \r\n\t * @param formData\r\n\t * FileFormatFormData\r\n\t * @return the assigned FileFormatFormData\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic FileFormatFormData update(FileFormatFormData formData)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches all formats which belongs to the assigned file type id from\r\n\t * storage [file format id, format, file type]\r\n\t * \r\n\t * @param filetypeNr\r\n\t * Long\r\n\t * @return Object[][]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Object[][] getFileFormats(Long filetypeNr)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Decides whether there are more than one file type the assigned file\r\n\t * format belongs to\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return boolean [true for multiple file format - file type connections]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic boolean isFormatMultipleAssigned(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches the file type id for the assigned file format from storage\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return Long [file type id]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Long getFiletypeForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Returns true if the assigned file format has already been stored\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return boolean\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic boolean isFileformatRegistered(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches an Array of ids of all file types, the assigned file format\r\n\t * belongs to\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return Long[]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Long[] getFiletypesForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n}", "private void postValidationNoArrayOfFiles() throws APIRestGeneratorException\r\n\t{\r\n\t\tfinal Iterator<Response> iterator = this.localResponses.getResponsesMap().values().iterator() ;\r\n\t\tboolean found \t\t\t\t = false ;\r\n\t\t\r\n\t\twhile (iterator.hasNext() && !found)\r\n\t\t{\r\n\t\t\tfinal Response response = iterator.next() ;\r\n\t\t\tfinal Item responseItem = response.getItem() ;\r\n\t\t\tif (responseItem instanceof ItemArray)\r\n\t\t\t{\r\n\t\t\t\tfinal Item itemBaseArray = ((ItemArray) responseItem).calculateBaseType() ;\r\n\t\t\t\tfound = itemBaseArray instanceof ItemFile ;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (found)\r\n\t\t{\r\n\t\t\tfinal String errorString = \"The path '\" + this.pathValue + \"' ('\" + this.pathOp + \"' operation) cannot contain a response with an array of files\" ;\r\n\t\t\t\r\n\t\t\tResponsesPostValidator.LOGGER.error(errorString) ;\r\n\t \tthrow new APIRestGeneratorException(errorString) ;\r\n\t\t}\r\n\t}", "@Override\n protected void validaCampos(ArquivoLoteVO entity) {\n\n }", "public abstract void checkEditing();", "public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}", "public void invoke(@NotNull Project project, Editor editor, PsiFile file, DataContext dataContext) {\n int offset = editor.getCaretModel().getOffset();\n editor.getScrollingModel().scrollToCaret(ScrollType.MAKE_VISIBLE);\n PsiElement element = file.findElementAt(offset);\n while(true){\n\n if (element == null) {\n if (file instanceof PsiPlainTextFile) {\n PsiElement[] elements = new PsiElement[]{file};\n if (MoveFilesOrDirectoriesUtil.canMoveFiles(elements)) {\n doMove(project, elements, null, null);\n }\n return;\n }\n\n String message = RefactoringBundle.getCannotRefactorMessage(RefactoringBundle.message(\"the.caret.should.be.positioned.at.the.class.method.or.field.to.be.refactored\"));\n CommonRefactoringUtil.showErrorMessage(REFACTORING_NAME, message, null, project);\n return;\n }\n\n if (tryToMoveElement(element, project, dataContext)) {\n return;\n } else {\n final TextRange range = element.getTextRange();\n if (range != null) {\n int relative = offset - range.getStartOffset();\n final PsiReference reference = element.findReferenceAt(relative);\n if (reference != null &&\n !(reference instanceof PsiJavaCodeReferenceElement &&\n ((PsiJavaCodeReferenceElement)reference).getParent() instanceof PsiAnonymousClass)) {\n final PsiElement refElement = reference.resolve();\n if (refElement != null && tryToMoveElement(refElement, project, dataContext)) return;\n }\n }\n }\n\n element = element.getParent();\n }\n }", "protected boolean acceptFile(File file, String contentType, String inputName,\r\n\t\t\tValidationAware validation, Locale locale) {\r\n\t\tboolean fileIsAcceptable = false;\r\n\r\n\t\t// If it's null the upload failed\r\n\t\tif (file == null) {\r\n\t\t\t// String errMsg = getText(\"vulpe.error.uploading\", new Object[] {\r\n\t\t\t// inputName });\r\n\t\t\tfinal String message = getText(\"vulpe.error.uploading\");\r\n\t\t\tif (validation != null) {\r\n\t\t\t\t// validation.addFieldError(inputName, message);\r\n\t\t\t\tvalidation.addActionError(message);\r\n\t\t\t}\r\n\t\t\tLOG.error(message);\r\n\t\t} else if (maximumSize != null && maximumSize.longValue() < file.length()) {\r\n\t\t\tfinal VulpeUpload upload = VulpeConfigHelper.getApplicationConfiguration().upload();\r\n\t\t\t// String errMsg = getText(\"vulpe.error.file.too.large\", new\r\n\t\t\t// Object[] { inputName, file.getName(),\r\n\t\t\t// \"\" + file.length() });\r\n\t\t\tfinal String message = getText(\"vulpe.error.file.too.large\", upload.maximumSize());\r\n\t\t\tif (validation != null) {\r\n\t\t\t\t// validation.addFieldError(inputName, message);\r\n\t\t\t\tvalidation.addActionError(message);\r\n\t\t\t\tfinal AbstractVulpeBaseController baseController = (AbstractVulpeBaseController) validation;\r\n\t\t\t\tbaseController.now.put(\"fileUploadError\", \"too.large\");\r\n\t\t\t}\r\n\r\n\t\t\tLOG.error(message);\r\n\t\t} else if ((!allowedTypesSet.isEmpty()) && (!containsItem(allowedTypesSet, contentType))) {\r\n\t\t\t// String errMsg = getText(\"vulpe.error.content.type.not.allowed\",\r\n\t\t\t// new Object[] { inputName, file.getName(),\r\n\t\t\t// contentType });\r\n\t\t\tfinal String message = getText(\"vulpe.error.content.type.not.allowed\", new Object[] {\r\n\t\t\t\t\tinputName, file.getName(), contentType });\r\n\t\t\tif (validation != null) {\r\n\t\t\t\t// validation.addFieldError(inputName, message);\r\n\t\t\t\tvalidation.addActionError(message);\r\n\t\t\t}\r\n\r\n\t\t\tLOG.error(message);\r\n\t\t} else {\r\n\t\t\tfileIsAcceptable = true;\r\n\t\t}\r\n\r\n\t\treturn fileIsAcceptable;\r\n\t}", "@Override\n public void checkEditing() {\n }", "public interface UploadFileService {\n boolean saveFile(MultipartFile file);\n boolean readFile(String type);\n}", "public File getInputFile() {\n\t\treturn infile;\n\t}", "public interface FileFilter {\n\t\n\t/**\n\t * Metoda provjerava zadovoljava li file zadani implementirani filter, ovisno o razredu.\n\t * \n\t * @param f file nad kojim se provjerava \n\t * @return true ili false, ovisno o uspjesnosti provjere\n\t */\n\tpublic boolean accepts(File f);\n\n}", "@Override\r\n public boolean isFile() throws FileSystemException {\r\n // Use equals instead of == to avoid any class loader worries.\r\n return FileType.FILE.equals(this.getType());\r\n }", "public AbstractSpotterEditorInput createInstance(IFile file) {\n\t\tAbstractSpotterEditorInput input = null;\n\n\t\tConstructor<?>[] allConstructors = editorInputClazz.getDeclaredConstructors();\n\t\tfor (Constructor<?> constructor : allConstructors) {\n\t\t\tClass<?>[] pType = constructor.getParameterTypes();\n\t\t\tif (pType.length == 1 && pType[0].equals(IFile.class)) {\n\t\t\t\ttry {\n\t\t\t\t\tinput = (AbstractSpotterEditorInput) constructor.newInstance(file);\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {\n\t\t\t\t\tthrow new RuntimeException(ERR_CALL_CONSTRUCTOR, e);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "protected abstract FileInfo getFileInfoFromInputDataImpl(T inputData);", "public interface FileInterface {\n\t/**\n\t * Operation that allows to read an input file to a data structure.\n\t */\n\tpublic void readFile();\n\t/**\n\t * Operation that allows to read an input file and select a specific fraction into a string array.\n\t * @return Array of strings containing a specific fraction of the file.\n\t */\n\tpublic String[] readClasses();\n}", "private void createView(Tab tab, VMFile file, PostProcessHandler handler) {\n editResourceService.getFileContent(file.getId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n AbstractRootElement root = null;\n try {\n if (file.getExtension() != Extension.TXT && file.getExtension() != Extension.LSC && file.getExtension() != Extension.CSC) {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (AbstractRootElement) r.getContents().get(0);\n }\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n Editor editor;\n if (file.getExtension() == null) {\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n } else\n switch (file.getExtension()) {\n\n case ARC:\n editor = new ARCEditor((ARCRoot) root, projectId, editResourceService);\n editor.create();\n clickNewStateMachine((ARCEditor) editor, file);\n clickOpenFile((ARCEditor) editor);\n break;\n case FM:\n editor = new FMEditor((FMRoot) root, projectId, file.getId(), editResourceService);\n editor.create();\n clickOpenFile((FMEditor) editor);\n clickCreateChildModel((FMEditor) editor, file);\n setFileNameToReferenceNode((FMEditor) editor);\n break;\n case FMC:\n editor = new FMCEditor((FMCRoot) root, file.getId(), projectId, editResourceService);\n editor.create();\n break;\n case FSM:\n editor = new FSMEditor((FSMDStateMachine) root, file.getId());\n editor.create();\n break;\n case SCD:\n editor = new SCDEditor((SCDRoot) root, tab, projectId, ModelingProjectView.this, editResourceService);\n editor.create();\n clickOpenFile((SCDEditor) editor);\n break;\n case SPQL:\n editor = new SPQLEditor((SPQLRoot) root, tab, projectId, editResourceService);\n editor.create();\n clickOpenFile((SPQLEditor) editor);\n break;\n case TC:\n editor = new TCEditor((TCRoot) root, projectId, file.getName(), editResourceService);\n editor.create();\n break;\n case BPS:\n editor = new BPSEditor((BPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case BP:\n editor = new BPEditor((BPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case FPS:\n editor = new TPSEditor((TPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case FP:\n editor = new TPViewer((TPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case CSC:\n editor = new CSCEditor(tab, file, editResourceService);\n editor.create();\n break;\n case SCSS:\n editor = new CBEditor((CBRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case SCS:\n editor = new SCSEditor((SCSRoot) root, ModelingProjectView.this, projectId, file, editResourceService);\n editor.create();\n break;\n case CSCS:\n editor = new CSCSEditor((CSCSRoot) root, projectId, file);\n editor.create();\n break;\n default:\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n }\n createTabMenu(tab, editor.getSaveItem());\n clickSaveFile(editor, tab);\n\n if (editor instanceof NodeArrangeInterface) {\n NodeArrange.add((NodeArrangeInterface) editor);\n }\n tab.setPane(editor.getLayout());\n tab.setAttribute(EDITOR, editor);\n editorTabSet.addTab(tab);\n editorTabSet.selectTab(tab.getAttributeAsString(\"UniqueId\"));\n if (handler != null) {\n handler.execute();\n }\n }\n });\n }", "public EditorDriver() {\r\n\t\tgui = new GUI(this);\r\n\t\treadingInputPath = true;\r\n\t\tinputFileFound = false;\r\n\t\teditor = new Editor();\r\n\t\tgui.println(IN_FILE_PROMPT);\r\n\t}", "public void foreachPSorPDFinInputPath(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n if (aInputPath.isDirectory())\n {\n // check a whole directory\n // a whole directory\n FileFilter aFileFilter = FileHelper.getFileFilterPSorPDF();\n traverseDirectory(aFileFilter, _aParam);\n }\n else\n {\n // the inputpath contains a file\n if (sInputPath.toLowerCase().endsWith(\".ini\"))\n {\n IniFile aIniFile = new IniFile(_aParam.getInputPath());\n while (aIniFile.hasMoreElements())\n {\n String sKey = (String)aIniFile.nextElement();\n String sPath = FileHelper.getPath(_aParam.getInputPath());\n String sEntry = FileHelper.appendPath(sPath, sKey);\n File aFile = new File(sEntry);\n assure(\"File '\" + sEntry + \"' doesn't exists.\", aFile.exists(), true);\n if (aFile.exists())\n {\n callEntry(sEntry, _aParam);\n }\n }\n }\n else\n {\n // call for a single pdf/ps file\n if (sInputPath.toLowerCase().endsWith(\".ps\") ||\n sInputPath.toLowerCase().endsWith(\".pdf\") ||\n sInputPath.toLowerCase().endsWith(\".prn\"))\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n String sInputPathWithPDF = sInputPath + \".pdf\";\n File aInputPathWithPDF = new File(sInputPathWithPDF);\n\n if (aInputPathWithPDF.exists() &&\n _aParam.getReferenceType().toLowerCase().equals(\"pdf\"))\n {\n // create PDF only if a pdf file exists and creatortype is set to PDF\n callEntry(sInputPathWithPDF, _aParam);\n }\n else\n {\n String sInputPathWithPS = sInputPath + \".ps\";\n \n File aInputPathWithPS = new File(sInputPathWithPS);\n if (aInputPathWithPS.exists())\n {\n callEntry(sInputPathWithPS, _aParam);\n }\n else\n {\n String sPath = FileHelper.getPath(sInputPath);\n String sBasename = FileHelper.getBasename(sInputPath);\n\n // there exist an index file, therefore we assume the given\n // file is already converted to postscript or pdf\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n }\n }\n }\n }\n }\n }", "public final static native boolean isSupported() /*-{\r\n return !!$wnd.FileReader;\r\n }-*/;", "@Override\r\n\tprotected void isBodyValid() {\r\n\t\tif( withinButton.isSelected() \r\n\t\t\t\t&& withinField.getText().equals(\"\")){\r\n//\t\t\tinformation.setText(\"When --within is selected you must specify a file.\");\r\n\t\t\tvalidBody = false;\r\n\t\t}\r\n\t\telse \r\n\t\t\tvalidBody = true;\r\n\t\t\r\n\t\tokForm();\r\n\r\n\t}", "@RequiredUIAccess\n private void fileOpenedImpl(@Nonnull final VirtualFile file, @Nullable final FileEditor fallbackEditor, @Nullable FileEditorProvider fallbackProvider) {\n myProject.getApplication().assertIsDispatchThread();\n // don't add files that cannot be found via VFM (light & etc.)\n if (VirtualFileManager.getInstance().findFileByUrl(file.getUrl()) == null) return;\n\n final FileEditorManagerEx editorManager = FileEditorManagerEx.getInstanceEx(myProject);\n\n final Pair<FileEditor[], FileEditorProvider[]> editorsWithProviders = editorManager.getEditorsWithProviders(file);\n FileEditor[] editors = editorsWithProviders.getFirst();\n FileEditorProvider[] oldProviders = editorsWithProviders.getSecond();\n if (editors.length <= 0 && fallbackEditor != null) {\n editors = new FileEditor[]{fallbackEditor};\n }\n if (oldProviders.length <= 0 && fallbackProvider != null) {\n oldProviders = new FileEditorProvider[]{fallbackProvider};\n }\n if (editors.length <= 0) {\n LOG.error(\"No editors for file \" + file.getPresentableUrl());\n }\n FileEditor selectedEditor = editorManager.getSelectedEditor(file);\n if (selectedEditor == null) {\n selectedEditor = fallbackEditor;\n }\n LOG.assertTrue(selectedEditor != null);\n final int selectedProviderIndex = ArrayUtil.find(editors, selectedEditor);\n LOG.assertTrue(selectedProviderIndex != -1, \"Can't find \" + selectedEditor + \" among \" + Arrays.asList(editors));\n\n final HistoryEntry entry = getEntry(file);\n if (entry != null) {\n moveOnTop(entry);\n }\n else {\n final FileEditorState[] states = new FileEditorState[editors.length];\n final FileEditorProvider[] providers = new FileEditorProvider[editors.length];\n for (int i = states.length - 1; i >= 0; i--) {\n FileEditorProvider provider = oldProviders[i];\n LOG.assertTrue(provider != null);\n providers[i] = provider;\n FileEditor editor = editors[i];\n if (editor.isValid()) {\n states[i] = editor.getState(FileEditorStateLevel.FULL);\n }\n }\n addEntry(HistoryEntry.createHeavy(myProject, file, providers, states, providers[selectedProviderIndex]));\n trimToSize(UISettings.getInstance());\n }\n }", "public ChangeTypeAction(JavaEditor editor) {\n this(editor.getEditorSite());\n fEditor = editor;\n setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);\n }", "private void isImage(MultipartFile file) {\n if(!Arrays.asList(IMAGE_JPEG.getMimeType(), IMAGE_PNG.getMimeType(), IMAGE_GIF.getMimeType(), IMAGE_BMP.getMimeType(), IMAGE_SVG.getMimeType()).contains(file.getContentType()))\n throw new IllegalStateException(\"File must be an image [\"+ file.getContentType()+\"]\\nExpected Types: [\"+IMAGE_JPEG+\" \"+IMAGE_PNG+\" \"+IMAGE_GIF+\" \"+IMAGE_BMP+\" \"+IMAGE_SVG+\"]\");\n }", "public interface FileProcessor extends FileFilter\n{\n\t/**\n\t * Do something with the file.\n\t * \n\t * @param file\n\t * @return Success of processing. It may not be an error not to succeed.\n\t * @throws IOException\n\t */\n\tpublic boolean process(File file) throws IOException;\n}", "@Test\n public void testFileSelection()\n\n {\n if (editContinentController.selectFile() != null)\n {\n assertTrue(true);\n }\n }", "public interface FileView {\n\n /**\n * 设置标题\n * @param preText 前标题\n * @param nowText 现标题\n */\n void setTitle(String preText, String nowText);\n\n /**\n * 给列表设置适配器\n * @param adapter 适配器\n */\n void setAdapter(DocumentFileAdapter adapter);\n\n /**\n * 获取适配器\n * @return 适配器\n */\n DocumentFileAdapter getAdapter();\n\n /**\n * 设置刷新条\n * @param b 设置控制\n */\n void setRefreshing(boolean b);\n\n /**\n * 显示密码框\n */\n void showPasswordView();\n\n /**\n * u盘插入的操作\n * @param intent\n */\n void onUDiskInsert(Intent intent);\n\n /**\n * u盘移除的操作\n * @param intent\n */\n void onUDiskRemove(Intent intent);\n}", "public interface FileEngin {\n\n /**\n * 上传图片\n * @param fileList\n * @return\n */\n public String uploadImage(List<File> fileList);\n}", "protected void setField(HtmlElement element) throws IOException {\n\t\tString attributeValue = element.getAttribute(HtmlConstants.TYPE);\n\t\tif (!HtmlConstants.FILE.equals(attributeValue)) {\n\t\t\tthrow new StepFailedException(\"HTML input with id='\" + getHtmlId() + \"' is of type '\"\n\t\t\t\t+ attributeValue + \"' but should be '\" + HtmlConstants.FILE + \"'\", this);\n\t\t}\n\t\tfinal HtmlFileInput fileInput = (HtmlFileInput) element;\n\t\tfileInput.setValueAttribute(getFileName().getAbsolutePath());\n\t}", "boolean isFileIngestModuleFactory();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tIWorkbenchPage page = getPage();\n\t\t\t\t\tJasmineEditorInput input = new JasmineEditorInput(specRunner, name);\n\t\t\t\t\tpart.add(page.openEditor(input, ID));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\texception.add(e);\n\t\t\t\t}\n\t\t\t}", "public interface FileSegment {\n\n /**\n * 分割文件\n *\n */\n void split();\n\n\n\n\n}", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "@Test\n\tpublic void testGetIfile_1()\n\t\tthrows Exception {\n\t\tTreeData fixture = new TreeData((IFile) null, \"\", 1, 1);\n\n\t\tIFile result = fixture.getIfile();\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "public abstract boolean supportsMultipleInputs();", "public abstract void addEditorForm();", "public interface FileTypeFilterable {\n void setAllowedFileTypes(String... fileTypes);\n}", "public interface EditPagesListener {\n /**\n * Called when a page was moved to a new position\n *\n * @param fromPageNum The page number from which the page moves\n * @param toPageNum The page number to which the page moves\n */\n void onPageMoved(int fromPageNum, int toPageNum);\n\n /**\n * Called when new pages were added to the document.\n *\n * @param pageList The list of pages added to the document\n */\n void onPagesAdded(List<Integer> pageList);\n }", "public abstract boolean canDecodeInput(File file) throws IOException;", "public interface IFile<T> extends IProgress<T>{\n\n T filePath(String filePath);\n\n T fileName(String fileName);\n\n}", "public Boolean isTraversable(FileObject f)\n {\n return null;\n }", "@Override\n public boolean inputIsValid(ParserInput<?> input) {\n return input instanceof TokensParserInput;\n }", "@Override\n public void processInput() throws IllegalArgumentException, InputMismatchException,\n FileNotFoundException {\n Scanner scanner = new Scanner(this.in);\n while (scanner.hasNext()) {\n String input = scanner.next();\n switch (input) {\n case \"q\":\n return;\n case \"load:\":\n File imageFile = new File(scanner.next());\n if (imageFile.exists()) {\n this.model = this.model.fromImage(load(imageFile));\n } else {\n throw new FileNotFoundException(\"File does not exist\");\n }\n break;\n case \"save:\":\n String path = scanner.next();\n this.save(this.model.getModelImage(), getImageFormat(path), path);\n break;\n default:\n Function<Scanner, EnhancedImageModel> getCommand = knownCommands.getOrDefault(\n input, null);\n if (getCommand == null) {\n throw new IllegalArgumentException(\"command not defined.\");\n } else {\n this.model = getCommand.apply(scanner);\n }\n break;\n }\n }\n\n }", "public abstract boolean isFileOutput();", "public interface FileStoreInterface {\r\n boolean isAuthenticated();\r\n @Nullable\r\n List<String> get(String path);\r\n void archive(String path, List<String> lines);\r\n void startLogin(Activity caller, int i);\r\n void deauthenticate();\r\n void browseForNewFile(Activity act, String path, FileSelectedListener listener, boolean txtOnly);\r\n void modify(String mTodoName, List<String> original,\r\n List<String> updated,\r\n List<String> added,\r\n List<String> removed);\r\n int getType();\r\n void setEol(String eol);\r\n boolean isSyncing();\r\n public boolean initialSyncDone();\r\n void invalidateCache();\r\n void sync();\r\n String readFile(String file);\r\n boolean supportsSync();\r\n public interface FileSelectedListener {\r\n void fileSelected(String file);\r\n }\r\n}", "@InitBinder\n protected void initBinder(WebDataBinder binder){\n binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor());\n\n }", "@Override\n public void processPages(File imageFile, File outputFile) throws Exception {\n instance.setDatapath(datapath);\n instance.setLanguage(language);\n instance.setPageSegMode(Integer.parseInt(pageSegMode));\n instance.setOcrEngineMode(Integer.parseInt(ocrEngineMode));\n\n List<RenderedFormat> renderedFormats = new ArrayList<RenderedFormat>();\n\n for (String format : outputFormats.toUpperCase().split(\",\")) {\n renderedFormats.add(RenderedFormat.valueOf(format));\n }\n\n instance.createDocuments(imageFile.getPath(), outputFile.getPath(), renderedFormats);\n }", "@Override\n public Format[] getSupportedInputFormats()\n {\n return supportedInputFormats;\n }", "public List<FFileInputDO> findByCondition(FFileInputDO FFileInput, long limitStart, long pageSize) throws DataAccessException;", "public interface InputContentInfoCompatImpl {\n }", "public void openForInput (DataDictionary dict) \n throws IOException {\n \n // If this is markdown, then convert it to HTML before going any farther\n if (context.isMarkdown()) {\n if (inFile == null && inURL != null) {\n mdReader = new MetaMarkdownReader(inURL, \n MetaMarkdownReader.MARKDOWN_TYPE);\n }\n else\n if (inFile != null) {\n mdReader = new MetaMarkdownReader(inFile, \n MetaMarkdownReader.MARKDOWN_TYPE);\n }\n else\n if (textLineReader != null) {\n mdReader = new MetaMarkdownReader(textLineReader, \n MetaMarkdownReader.MARKDOWN_TYPE);\n }\n if (mdReader != null) {\n mdReader.setMetadataAsMarkdown(metadataAsMarkdown);\n mdReader.openForInput();\n inFile = null;\n inURL = null;\n textLineReader = new StringLineReader(mdReader.getHTML());\n mdReader.close();\n mdReader = null;\n }\n }\n \n if (inFile == null && inURL != null) {\n HttpURLConnection.setFollowRedirects(true);\n inConnect = inURL.openConnection();\n if (inConnect.getClass().getName().endsWith(\"HttpURLConnection\")) {\n HttpURLConnection httpConnect = (HttpURLConnection)inConnect;\n httpConnect.setInstanceFollowRedirects(true);\n httpConnect.setConnectTimeout(0);\n }\n inConnect.connect();\n inStream = inConnect.getInputStream();\n streamReader = new InputStreamReader(inStream, \"UTF-8\");\n reader = new BufferedReader(streamReader);\n Logger.getShared().recordEvent(\n LogEvent.NORMAL,\n \"HTMLFile Open for input URL \" + inURL.toString()\n + \" with encoding \" + streamReader.getEncoding(),\n false);\n } \n else\n if (inFile != null) {\n streamReader = new FileReader(inFile);\n reader = new BufferedReader(streamReader);\n }\n else\n if (textLineReader != null) {\n textLineReader.open();\n reader = null;\n }\n \n this.dict = dict;\n dataRec = new DataRecord();\n recDef = new RecordDefinition(this.dict);\n openWithRule();\n recordNumber = 0;\n atEnd = false;\n }", "public interface OnInputFragmentInteractionListener {\n void onInputFragmentInteraction(ArrayList<RepositoryInfo> repositoryInfoArrayList);\n }", "public static IEditorPart findReusableCompareEditor(IWorkbenchPage aPage, R4EFileVersion aBaseFile,\r\n \t\t\tR4EFileVersion aTargetFile) {\r\n \r\n \t\tfinal IEditorReference[] editorRefs = aPage.getEditorReferences();\r\n \t\tIEditorPart part = null;\r\n \t\tR4ECompareEditorInput input = null;\r\n \t\tITypedElement left = null;\r\n \t\tITypedElement right = null;\r\n \t\t// first loop looking for an editor with the same input\r\n \t\tfor (IEditorReference editorRef : editorRefs) {\r\n \t\t\tpart = editorRef.getEditor(false);\r\n \t\t\tif (null != part && part instanceof IReusableEditor) {\r\n \t\t\t\t// check if the editor input type complies with the types given by the caller\r\n \t\t\t\tif (R4ECompareEditorInput.class.isInstance(part.getEditorInput())) {\r\n \t\t\t\t\t//Now check if the input files are the same as with the found editor\r\n \t\t\t\t\tinput = (R4ECompareEditorInput) part.getEditorInput();\r\n \t\t\t\t\tleft = input.getLeftElement();\r\n \t\t\t\t\tright = input.getRightElement();\r\n \r\n \t\t\t\t\t//Case: No input in editor, that should never happen but guard here just in case\r\n \t\t\t\t\tif (null == left && null == right) {\r\n \t\t\t\t\t\treturn null;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Get the file versions\r\n \t\t\t\t\tR4EFileVersion leftVersion = null;\r\n \t\t\t\t\tR4EFileVersion rightVersion = null;\r\n \t\t\t\t\tif (left instanceof R4EFileRevisionTypedElement) {\r\n \t\t\t\t\t\tleftVersion = ((R4EFileRevisionTypedElement) left).getFileVersion();\r\n \t\t\t\t\t} else if (left instanceof R4EFileTypedElement) {\r\n \t\t\t\t\t\tleftVersion = ((R4EFileTypedElement) left).getFileVersion();\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (right instanceof R4EFileRevisionTypedElement) {\r\n \t\t\t\t\t\trightVersion = ((R4EFileRevisionTypedElement) right).getFileVersion();\r\n \t\t\t\t\t} else if (right instanceof R4EFileTypedElement) {\r\n \t\t\t\t\t\trightVersion = ((R4EFileTypedElement) right).getFileVersion();\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: No target file and base is the same\r\n \t\t\t\t\tif (null == leftVersion && null == aTargetFile && null != rightVersion && null != aBaseFile\r\n \t\t\t\t\t\t\t&& rightVersion.equals(aBaseFile)) {\r\n \t\t\t\t\t\treturn part;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: No base file and target is the same\r\n \t\t\t\t\tif (null == rightVersion && null == aBaseFile && null != leftVersion && null != aTargetFile\r\n \t\t\t\t\t\t\t&& leftVersion.equals(aTargetFile)) {\r\n \t\t\t\t\t\treturn part;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: Base and target are the same\r\n \t\t\t\t\tif (null != leftVersion && null != rightVersion && null != aBaseFile && null != aTargetFile) {\r\n \t\t\t\t\t\tif (leftVersion.equals(aTargetFile) && rightVersion.equals(aBaseFile)) {\r\n \t\t\t\t\t\t\treturn part;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// no re-usable editor found\r\n \t\treturn null;\r\n \t}", "@Test\n public void test044() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.fileInput(\":JX\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }", "public void run(IAction action) {\n\n if (selection == null || selection.isEmpty()) {\n return;\n }\n \n boolean saveNoConfirm = BuildAction.isSaveAllSet();\n boolean savedOk = PerformanceRFPlugin.getDefault().getWorkbench()\n .saveAllEditors(!saveNoConfirm);\n if (!savedOk) {\n return;\n }\n\n /* check that all the files have the same extension */\n String fileExtension = null;\n for (Iterator it = selection.iterator(); it.hasNext();) {\n \tIFile file = (IFile) it.next();\n \t\n \tif (fileExtension == null) {\n \t\tfileExtension = file.getFileExtension();\n \t} else if (!file.getFileExtension().equals(fileExtension)) {\n \t\tMessageDialog.openError(null, \"Performance Analysis\",\n \t\t\t\t\"All the selected files must be of the same kind in order to perform batch analysis\");\n \t\treturn;\n \t}\n }\n \n /* default to \"no translation needed\" if file is already ICM */\n ITransformToIcm designToIcmTranslator = null;\n \n if (!fileExtension.equals(\"icm\")) {\n \n\t // first check that there's a designToIcm translator for the selected kind of file\n\t List<DesignInputExtension> availableDesignInputs = PerformanceRFPlugin.getDefault()\n\t .getAvailableDesignInputs();\n\t for (Iterator<DesignInputExtension> it = availableDesignInputs.iterator(); it.hasNext();) {\n\t DesignInputExtension designInput = it.next();\n\t if (designInput.getFileExtension().equals(fileExtension)) {\n\t designToIcmTranslator = designInput.getTransformToIcmObject();\n\t break;\n\t }\n\t }\n\t if (designToIcmTranslator == null) {\n\t String msg = Messages.getString(\"noDesignToIcmObject\");//$NON-NLS-1$\n\t MessageDialog.openError(null, \"Performance Analysis\", msg);\n\t return;\n\t }\n }\n\n IWorkbenchWindow wbw = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\n // nothing should be written to the console until after the wizard is created.\n // this is because creating the wizard will create the translation to ICM, which\n // in the case of CCL, will potentially clear the console if the appropriate\n // user preference is set.\n Wizard wizard = (selection.size() > 1) ?\n \tnew BatchPerfAnalysisWizard(selection, designToIcmTranslator) :\n \t\tnew PerfAnalysisWizard((IFile) selection.getFirstElement(),\n \t\t\t\tdesignToIcmTranslator);\n WizardDialog dialog = new WizardDialog(wbw.getShell(), wizard);\n dialog.open();\n }", "public interface IFileMark {\n\n boolean isMark(File file, String mark);\n}", "public boolean isFilterObject(final Object o) {\n return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse;\n }", "@Debug.Renderer(text = \"getClass().getName() + \\\":\\\" + getDebugName()\")\[email protected]\[email protected]\npublic interface IndexableFilesIterator {\n\n /**\n * Presentable name that can be shown in logs and used for debugging purposes.\n */\n @NonNls\n String getDebugName();\n\n /**\n * Presentable text shown in progress indicator during indexing of files of this provider.\n */\n @NlsContexts.ProgressText\n String getIndexingProgressText();\n\n /**\n * Presentable text shown in progress indicator during traversing of files of this provider.\n */\n @NlsContexts.ProgressText\n String getRootsScanningProgressText();\n\n /**\n * Iterates through all files and directories corresponding to this provider.\n * <br />\n * The {@param visitedFileSet} is used to store positive {@link VirtualFileWithId#getId()} of Virtual Files,\n * the implementation is free to skip other {@link VirtualFile} implementations and\n * non-positive {@link VirtualFileWithId#getId()}.\n * The {@param visitedFileSet} is used to implement filtering to skip already visited files by looking to [visitedFileSet].\n * <br />\n * The {@param fileIterator} should be invoked on every new file (with respect to {@oaram visitedFileSet},\n * should the {@link ContentIterator#processFile(VirtualFile)} returns false, the processing should be\n * stopped and the {@code false} should be returned from the method.\n *\n * @return `false` if [fileIterator] has stopped iteration by returning `false`, `true` otherwise.\n */\n boolean iterateFiles(@NotNull Project project,\n @NotNull ContentIterator fileIterator,\n @NotNull ConcurrentBitSet visitedFileSet);\n}", "@Override\n\t\t\t\t\tpublic void partInputChanged(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "public void inputChanged(Viewer arg0, Object arg1, Object arg2) {\n\t\t// Nothing to change\n\t}", "public boolean supportsCustomEditor() {\n\t\treturn true;\n\t}", "public void inputChanged(Viewer arg0, Object arg1, Object arg2) {\r\n\t\t// Nothing to do\r\n\t}", "@Override\n\tpublic void validation() throws EditorException\n\t{\n\t}", "@InitBinder\n public void initBinder(WebDataBinder binder) {\n binder.registerCustomEditor(byte[].class,\n new ByteArrayMultipartFileEditor());\n // now Spring knows how to handle multipart object and convert them\n }", "@Override\r\n protected void runComponent() {\r\n\r\n File theFile = this.getAttachment(0, 0);\r\n\r\n try {\r\n \tif (theFile != null && theFile.exists()) {\r\n \t\tverifyInputFile(this.getAttachment(0, 0));\r\n \t} else {\r\n \t\taddErrorMessage(\"Could not read required input file.\");\r\n \t}\r\n\r\n } catch (Exception e) {\r\n logger.info(\"Verify of first \" + NUM_INPUT_LINES_TO_CHECK + \" failed: \" + e);\r\n this.addErrorMessage(e.toString());\r\n }\r\n\r\n System.out.println(this.getOutput());\r\n }", "public boolean isSetFileType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILETYPE$8) != 0;\n }\n }", "public void inputChanged(Viewer arg0, Object arg1, Object arg2) {\n\t\t}", "@Override\n @SuppressLint(\"NewApi\")\n public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {\n if (fileChooserParams != null && fileChooserParams.getAcceptTypes() != null\n && fileChooserParams.getAcceptTypes().length > 0 && fileChooserParams.getAcceptTypes()[0].equals(\"image/*\")) {\n if (mUploadMessageArray != null) {\n mUploadMessageArray.onReceiveValue(null);\n }\n mUploadMessageArray = filePathCallback;\n selectImage();\n } else {\n onReceiveValue();\n }\n return true;\n }", "@Override\n public boolean containsFile(IFile file) {\n // TODO Auto-generated method stub\n return childFiles.contains(file);\n }", "public final boolean isMultipart() {\n return this.getTopLevelType().equals(\"multipart\");\n }", "@Override\n\tpublic boolean execute(IEditorPart target) {\n\t\treturn false;\n\t}", "public static void openEditor(IWorkbenchPage aPage, ISelection aSelection, boolean forceSingleEditor) {\r\n \r\n \t\tif (aSelection.isEmpty() || !(aSelection instanceof IStructuredSelection)) {\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\tObject element = null;\r\n \t\tIR4EUIPosition position = null;\r\n \r\n \t\tR4EUIFileContext context = null;\r\n \t\tR4EFileVersion baseFileVersion = null;\r\n \t\tR4EFileVersion targetFileVersion = null;\r\n \r\n \t\tfor (final Iterator<?> iterator = ((IStructuredSelection) aSelection).iterator(); iterator.hasNext();) {\r\n \r\n \t\t\telement = iterator.next();\r\n \t\t\tif (!(element instanceof IR4EUIModelElement)) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \r\n \t\t\t//Depending on which element was selected in the tree, we make the target file editable\r\n \t\t\t//The file is editable if it was opened from the anomaly or comment level, otherwise it is not\r\n \t\t\t//Check to get the position we should put the cursor on and the highlight range in the editor\r\n \t\t\tif (element instanceof R4EUIAnomalyBasic) {\r\n \t\t\t\tposition = ((R4EUIAnomalyBasic) element).getPosition();\r\n \t\t\t} else if (element instanceof R4EUIComment) {\r\n\t\t\t\tposition = ((R4EUIAnomalyBasic) ((R4EUIComment) element).getParent()).getPosition();\r\n \t\t\t} else if (element instanceof R4EUIContent) {\r\n \t\t\t\tposition = ((R4EUIContent) element).getPosition();\r\n \t\t\t}\r\n \r\n \t\t\t//Find the parent FileContextElement\r\n \t\t\twhile (!(element instanceof R4EUIFileContext)) {\r\n \t\t\t\telement = ((IR4EUIModelElement) element).getParent();\r\n \t\t\t\tif (null == element) {\r\n \t\t\t\t\treturn;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tcontext = ((R4EUIFileContext) element);\r\n \r\n \t\t\t//Get files from FileContext\r\n \t\t\tbaseFileVersion = context.getBaseFileVersion();\r\n \t\t\ttargetFileVersion = context.getTargetFileVersion();\r\n \r\n \t\t\t//If the files are the same (or do not exist), open the single editor\r\n \t\t\tif (null == baseFileVersion || null == targetFileVersion\r\n \t\t\t\t\t|| baseFileVersion.getVersionID().equals(targetFileVersion.getVersionID())) {\r\n \t\t\t\tforceSingleEditor = true;\r\n \t\t\t}\r\n \r\n \t\t\t//Check if the base file is set, if so, we will use the compare editor. Otherwise we use the normal editor of the appropriate type\r\n \t\t\tif (context.isFileVersionsComparable() && !forceSingleEditor) {\r\n \t\t\t\topenCompareEditor(aPage, baseFileVersion, targetFileVersion);\r\n \t\t\t} else {\r\n \t\t\t\tif (null != targetFileVersion) {\r\n \t\t\t\t\topenSingleEditor(aPage, targetFileVersion, position);\r\n \t\t\t\t} else {\r\n \t\t\t\t\t//File was removed, open the base then\r\n \t\t\t\t\topenSingleEditor(aPage, baseFileVersion, position);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}" ]
[ "0.5438525", "0.53175855", "0.51308024", "0.5048297", "0.48819143", "0.48205742", "0.47921488", "0.47859108", "0.4777567", "0.47039652", "0.46727014", "0.466375", "0.4648248", "0.45842487", "0.45547447", "0.4541425", "0.4534391", "0.4528315", "0.45206738", "0.45148712", "0.44982648", "0.44953725", "0.4486438", "0.44722703", "0.44714513", "0.44691515", "0.4463352", "0.44569197", "0.4450987", "0.44506994", "0.44482693", "0.444766", "0.44384217", "0.4436207", "0.4435848", "0.44355345", "0.4428204", "0.44265497", "0.44162834", "0.44064566", "0.44020146", "0.43820938", "0.43654674", "0.43494266", "0.4348631", "0.43473807", "0.43472216", "0.43445894", "0.4335557", "0.43313128", "0.4328359", "0.43280143", "0.43209982", "0.43147603", "0.43059063", "0.42982185", "0.4294335", "0.42866978", "0.4286329", "0.4286022", "0.4285525", "0.42776445", "0.42770147", "0.42694288", "0.4268435", "0.42669907", "0.42661607", "0.42606747", "0.42584372", "0.42580938", "0.42535576", "0.42486027", "0.42476165", "0.42468536", "0.42414474", "0.42404675", "0.4239888", "0.42396805", "0.42355135", "0.42307696", "0.42306972", "0.42305714", "0.4228538", "0.42191106", "0.4211617", "0.4203572", "0.42008525", "0.41987705", "0.4191461", "0.41908932", "0.41845486", "0.41831622", "0.41738477", "0.41714048", "0.41623658", "0.41582015", "0.41575298", "0.41561782", "0.41547304", "0.41546655" ]
0.5517978
0
/ (nonJavadoc) Method declared on IEditorPart.
public boolean isSaveAsAllowed() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Editor getEditor() { return editor; }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\r\n\t}", "public interface ITextEditor extends ISelectionProvider {\r\n\r\n /**\r\n * a constant for Incresing e.g. the font size\r\n * \r\n * @author Lukas Balzer\r\n */\r\n String INCREASE = \"INCREASE\"; //$NON-NLS-1$\r\n /**\r\n * a constant for decreasing sth.\r\n * \r\n * @author Lukas Balzer\r\n */\r\n String DECREASE = \"DECREASE\"; //$NON-NLS-1$\r\n /**\r\n * constant for applying an italic style to some text\r\n */\r\n String ITALIC = \"ITALIC\"; //$NON-NLS-1$\r\n /**\r\n * constant for underlining text\r\n */\r\n String UNDERLINE = \"UNDERLINE\"; //$NON-NLS-1$\r\n /**\r\n * constant for for adding a strike out\r\n */\r\n String STRIKEOUT = \"STRIKEOUT\"; //$NON-NLS-1$\r\n /**\r\n * constant for addressing the foreground color\r\n */\r\n String FOREGROUND = \"FOREGROUND\"; //$NON-NLS-1$\r\n /**\r\n * constant for addressing the background color\r\n */\r\n String BACKGROUND = \"BACKGROUND\"; //$NON-NLS-1$\r\n /**\r\n * constant for applying a bold style to the text\r\n */\r\n String BOLD = \"BOLD\"; //$NON-NLS-1$\r\n /**\r\n * constant for adding an itemization\r\n */\r\n String DOT_LIST = \"DOT_LIST\"; //$NON-NLS-1$\r\n /**\r\n * constant for adding an enumeration\r\n */\r\n String NUM_LIST = \"NUM_LIST\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_SIZE = \"FONT_SIZE\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_FAMILY = \"FONT_FAMILY\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_SIZE_UP = \"FONT_SIZE_UP\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String FONT_SIZE_DOWN = \"FONT_SIZE_DOWN\"; //$NON-NLS-1$\r\n\r\n @SuppressWarnings(\"javadoc\")\r\n String DESCRIPTION = \"DESCRIPTION\"; //$NON-NLS-1$\r\n\r\n /**\r\n * Set style to chosen format if text gets modified or toolBar item pressed.\r\n * \r\n * @author Sebastian Sieber,Lukas Balzer\r\n * @param style\r\n * one of the constants defined in ITextEditor\r\n */\r\n void setStyle(String style);\r\n\r\n /**\r\n * @author Lukas Balzer\r\n *\r\n * @param color\r\n * one of {@link #FOREGROUND} and {@link #BACKGROUND}\r\n * @param rgb\r\n * the new rgbColor\r\n */\r\n void setStyleColor(String color, RGB rgb);\r\n\r\n /**\r\n * changes the font\r\n *\r\n * @author Lukas Balzer\r\n *\r\n * @param fontString\r\n * the name of the new Font\r\n * @param fontSize\r\n * the Size in points\r\n */\r\n void setFont(String fontString, int fontSize);\r\n\r\n /**\r\n * changes the font size\r\n *\r\n * @author Lukas Balzer\r\n * @param style\r\n * one of {@link #FONT_SIZE_DOWN},{@link #FONT_SIZE_UP},\r\n * {@link #FONT_SIZE}\r\n *\r\n * @param fontSize\r\n * the font size of the text in points\r\n */\r\n void setFontSize(String style, int fontSize);\r\n\r\n /**\r\n * Set a bullet to TextField.\r\n * \r\n * @author Sebastian Sieber\r\n * @param type\r\n * one of {@link #DOT_LIST},{@value #NUM_LIST}\r\n */\r\n void setBullet(String type);\r\n\r\n /**\r\n * registers the contributor by the editor so that the editor can react to its\r\n * calls\r\n * \r\n * @author Lukas Balzer\r\n *\r\n * @param contributor\r\n * the contributor, with which the user can manipulate the Text\r\n */\r\n void setEditToolContributor(ITextEditContribution contributor);\r\n\r\n}", "@Override\r\n\tpublic IWorkbenchPart getPart() {\n\t\treturn super.getPart();\r\n\t}", "public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }", "public static void designTextEditor() {\n\t\t\n\t}", "public void configureEditor() {\n\t\tsuper.configureEditor();\n\t}", "@Override\n public FormFieldComponent getEditorComponent() {\n return (FormFieldComponent)editor;\n }", "public abstract void addEditorForm();", "protected ITextEditor getEditor() {\n return editor;\n }", "@Override\n\tpublic void validation() throws EditorException\n\t{\n\t}", "@Override\r\n\tpublic void buildPart() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void partVisible(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "@Override\n public void testCreateAsEditor() {}", "public Component getCustomEditor() {\n\t\treturn mEditor;\n\t}", "@Override\r\n\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "public boolean supportsCustomEditor() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean execute(IEditorPart target) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void partInputChanged(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void handleEditStart ()\n {\n\n }", "public void setEditor(Editor editor)\n {\n this.editor = editor;\n }", "public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}", "public interface ComboPropertiesEditionPart {\n\n\t/**\n\t * @return the combo\n\t */\n\tpublic Object getCombo();\n\n\t/**\n\t * Init the combo\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initCombo(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new combo\n\t * @param newValue the new combo to set\n\t */\n\tpublic void setCombo(Object newValue);\n\n\t/**\n\t * Adds the given filter to the combo edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToCombo(ViewerFilter filter);\n\n\n\n\n\n\n\t/**\n\t * @return the comboRO\n\t */\n\tpublic Object getComboRO();\n\n\t/**\n\t * Init the comboRO\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initComboRO(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new comboRO\n\t * @param newValue the new comboRO to set\n\t */\n\tpublic void setComboRO(Object newValue);\n\n\t/**\n\t * Adds the given filter to the comboRO edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToComboRO(ViewerFilter filter);\n\n\n\n\n\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "void onNewTextSet(CodeEditor editor);", "@Override\r\n\tpublic void setActiveEditor(IEditorPart editor) {\n\t\tsuper.setActiveEditor(editor);\r\n\r\n\t\tif (editor instanceof DiagramEditor) {\r\n\t\t\tgetActionBars().getStatusLineManager().setMessage(\r\n\t\t\t\t\t((DiagramEditor) editor).getPartName());\r\n\t\t}\r\n\t}", "@Override\n public void checkEditing() {\n }", "public java.awt.Component getInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).getInPlaceCustomEditor ();\n } else {\n return null;\n }\n }", "@Override\n\tpublic void partOpened(IWorkbenchPart part) {\n\t}", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\r\n\t}", "Object onCancelCreateFromEditor() {\n\t\t_mode = null;\n\t\t_facilityId = null;\n\t\treturn _editorZone.getBody();\n\t}", "@Override\r\n\t\t\tpublic void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "public interface InternalLinkReferencePropertiesEditionPart {\n\n\t/**\n\t * @return the referencedLink\n\t * \n\t */\n\tpublic EObject getReferencedLink();\n\n\t/**\n\t * Init the referencedLink\n\t * @param settings the combo setting\n\t */\n\tpublic void initReferencedLink(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new referencedLink\n\t * @param newValue the new referencedLink to set\n\t * \n\t */\n\tpublic void setReferencedLink(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setReferencedLinkButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the referencedLink edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToReferencedLink(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the referencedLink edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToReferencedLink(ViewerFilter filter);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "@Override\n\tpublic void onEditorCreate()\n\t{\n\t\tsetPath(t().getComponent(LttlPath.class, true));\n\t}", "private void initEditorPanel() {\n\t\t\n\t\t//Remove all components from panel\n\t\tthis.editor.removeAll();\n\t\t\n\t\t//Redraw which feature\n\t\tthis.whichFeature.validate();\n\t\tthis.whichFeature.repaint();\n\t\t\n\t\t//Setting icon values\n\t\tpartL.setIcon(myParent.editor.profileImage);\n\t\tendTypeLTL.setIcon(myParent.editor.ltImage);\n\t\tendTypeRBL.setIcon(myParent.editor.rbImage);\n\t\tpfFormLL.setIcon(myParent.profileshapeImage);\n\t\tsetGo.setIcon(myParent.setImage);\n\t\tcancel.setIcon(myParent.cancelImage);\n\t\t\n\t\t//Setting values visibility\n\t\tpart.setVisible(false);\n\t\tpartL.setVisible(false);\n\t\tparts.setVisible(false);\n\t\t\n\t\tendTypeLT.setVisible(false);\n\t\tendTypeLTL.setVisible(false);\n\t\tlCut.setVisible(false);\n\t\tendTypeRB.setVisible(false);\n\t\tendTypeRBL.setVisible(false);\n\t\trCut.setVisible(false);\n\t\tpfFormL.setVisible(false);\n\t\tpfFormLL.setVisible(false);\n\t\tpfCombo.setVisible(false);\n\t\t\n\t\toffsetL.setVisible(false);\n\t\toffsetR.setVisible(false);\n\t\toffsetLT.setVisible(false);\n\t\toffsetRB.setVisible(false);\n\t\t\n\t\tbL.setVisible(false);\n\t\tbR.setVisible(false);\n\t\tdeltaL.setVisible(false);\n\t\tdeltaR.setVisible(false);\n\t\t\n\t\tsetGo.setVisible(false);\n\t\tcancel.setVisible(false);\n\t\t\n\t\tmyParent.dim.masterSelected.setEnabled(false);\n\t\tmyParent.dim.slaveSelected.setEnabled(false);\n\t\tmyParent.dim.masterSelected.setVisible(false);\n\t\tmyParent.dim.slaveSelected.setVisible(false);\n\t\tmyParent.dim.doAlign.setVisible(false);\n\t\tmyParent.dim.changeAlign.setVisible(false);\n\t\tmyParent.dim.cancelAlign.setVisible(false);\n\t\tmyParent.dim.doAlign.setEnabled(false);\n\t\tmyParent.dim.changeAlign.setEnabled(false);\n\t\t\n\t\tmyParent.alignSeq = 0;\n\t\t\n\t\t//Adding components to editor panel\n\t\teditor.add(part, new XYConstraints(1, 1, 20, 19));\n\t\teditor.add(partL, new XYConstraints(22, 1, 20, 19));\n\t\teditor.add(parts, new XYConstraints(42, 1, 140, 19));\n\t\t\n\t\teditor.add(endTypeLT, new XYConstraints(1, 23, 20, 19));\n\t\teditor.add(endTypeLTL, new XYConstraints(22, 23, 20, 19));\n\t\teditor.add(lCut, new XYConstraints(81, 23, 100, 19));\n\t\t\n\t\teditor.add(endTypeRB, new XYConstraints(1, 44, 20, 19));\n\t\teditor.add(endTypeRBL, new XYConstraints(22, 44, 20, 19));\n\t\teditor.add(rCut, new XYConstraints(81, 44, 100, 19));\n\t\t\n\t\teditor.add(pfFormL, new XYConstraints(1, 65, 20, 19));\n\t\teditor.add(pfFormLL, new XYConstraints(22, 65, 20, 19));\n\t\teditor.add(pfCombo, new XYConstraints(81, 65, 100, 19));\n\t\t\n\t\teditor.add(offsetL, new XYConstraints(1, 86, 50, 19));\n\t\teditor.add(offsetR, new XYConstraints(1, 107, 50, 19));\n\t\teditor.add(bL, new XYConstraints(1, 128, 50, 19));\n\t\teditor.add(bR, new XYConstraints(1, 149, 50, 19));\n\t\t\n\t\teditor.add(offsetLT, new XYConstraints(60, 86, 118, 19));\n\t\teditor.add(offsetRB, new XYConstraints(60, 107, 118, 19));\n\t\t\n\t\teditor.add(deltaL, new XYConstraints(60, 127, 118, 19));\n\t\teditor.add(deltaR, new XYConstraints(60, 147, 118, 19));\n\t\t\n\t\teditor.add(setGo, new XYConstraints(56, 168, 60, 19));\n\t\teditor.add(cancel, new XYConstraints(118, 168, 60, 19));\n\t\t\n\t\teditor.add(myParent.dim.masterSelected, new XYConstraints(1, 3, 120, 19));\n\t\teditor.add(myParent.dim.slaveSelected, new XYConstraints(1, 24,120, 19));\n\t\t\n\t\teditor.add(myParent.dim.doAlign, new XYConstraints(1, 50, 59, 19));\n\t\teditor.add(myParent.dim.changeAlign, new XYConstraints(61, 50, 59, 19));\n\t\teditor.add(myParent.dim.cancelAlign, new XYConstraints(121, 50, 59, 19));\n\t}", "protected void initializeEditors() {\n\t}", "public MyTextPane getEditor() {\n\t\treturn editor;\n\t}", "public interface MemoPropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the creator\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initCreator(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the creator\n\t * @param newValue the creator to update\n\t * \n\t */\n\tpublic void updateCreator();\n\n\t/**\n\t * Adds the given filter to the creator edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToCreator(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the creator edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToCreator(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the creator table\n\t * \n\t */\n\tpublic boolean isContainedInCreatorTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the reader\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initReader(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the reader\n\t * @param newValue the reader to update\n\t * \n\t */\n\tpublic void updateReader();\n\n\t/**\n\t * Adds the given filter to the reader edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToReader(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the reader edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToReader(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the reader table\n\t * \n\t */\n\tpublic boolean isContainedInReaderTable(EObject element);\n\n\n\t/**\n\t * @return the subject\n\t * \n\t */\n\tpublic String getSubject();\n\n\t/**\n\t * Defines a new subject\n\t * @param newValue the new subject to set\n\t * \n\t */\n\tpublic void setSubject(String newValue);\n\n\n\t/**\n\t * @return the body\n\t * \n\t */\n\tpublic String getBody();\n\n\t/**\n\t * Defines a new body\n\t * @param newValue the new body to set\n\t * \n\t */\n\tpublic void setBody(String newValue);\n\n\n\t/**\n\t * @return the id\n\t * \n\t */\n\tpublic String getId();\n\n\t/**\n\t * Defines a new id\n\t * @param newValue the new id to set\n\t * \n\t */\n\tpublic void setId(String newValue);\n\n\n\t/**\n\t * @return the type\n\t * \n\t */\n\tpublic String getType();\n\n\t/**\n\t * Defines a new type\n\t * @param newValue the new type to set\n\t * \n\t */\n\tpublic void setType(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public void prepareEditor(){\n System.out.println(\"Prepare editor to be used !\");\r\n ((EditorScene)map.getScene()).initScene(20,20,map);\r\n ((EditorScene)map.getScene()).setController(this);\r\n builder.registerBasicEffect();\r\n ((EditorScene)map.getScene()).initListView(builder.getEffects(),selectEffects);\r\n\r\n\r\n\r\n }", "public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }", "Editor mo117962b();", "public void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "protected abstract IEditorPreferences getPreferences();", "@Override\n protected void validateEdit(Fornecedor post) {\n\n }", "@Override\n\tpublic void editingStopped(ChangeEvent arg0) {\n\n\t}", "public TextComposeBasePopup(CodeEditor editor) {\n if (editor == null) {\n throw new IllegalArgumentException();\n }\n mLocation = new int[2];\n mEditor = editor;\n super.setTouchable(true);\n textSizePx = mEditor.getTextSizePx();\n }", "protected JComponent createEditor() {\n return spinner.getEditor(); }", "public interface AdvancedTableCompositionEditorSamplePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the advancedtablecompositionRequiredProperty\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAdvancedtablecompositionRequiredProperty(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the advancedtablecompositionRequiredProperty\n\t * @param newValue the advancedtablecompositionRequiredProperty to update\n\t * \n\t */\n\tpublic void updateAdvancedtablecompositionRequiredProperty();\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionRequiredProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionRequiredProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the advancedtablecompositionRequiredProperty table\n\t * \n\t */\n\tpublic boolean isContainedInAdvancedtablecompositionRequiredPropertyTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the advancedtablecompositionOptionalProperty\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAdvancedtablecompositionOptionalProperty(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the advancedtablecompositionOptionalProperty\n\t * @param newValue the advancedtablecompositionOptionalProperty to update\n\t * \n\t */\n\tpublic void updateAdvancedtablecompositionOptionalProperty();\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionOptionalProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionOptionalProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the advancedtablecompositionOptionalProperty table\n\t * \n\t */\n\tpublic boolean isContainedInAdvancedtablecompositionOptionalPropertyTable(EObject element);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\r\n\t\r\n\t// End of user code\n\n}", "public StringEditor() {\n\t\tsuper();\n\t\tmEditor = new JTextField();\n\t\t\n\t}", "public void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public interface AttributePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public Container getContainer() {\n return editor;\n }", "private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }", "@Override\r\n\t\t\tpublic void partClosed(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\tpublic void setEditedContent(CGFile file) {\n\n\t\t}", "public boolean hasInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).hasInPlaceCustomEditor ();\n } else {\n return false;\n }\n }", "protected abstract Entity getEditedEntity();", "@Override\n\tpublic void msgFedPart() {\n\t\t\n\t}", "@Override\r\n protected boolean canEdit(Object element) {\n return true;\r\n }", "public abstract void acceptEditing();", "protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (editorPart instanceof MigrationEditorOperation) {\n return (MigrationEditorOperation) editorPart;\n }\n return null;\n }", "public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tIWorkbenchPage page = getPage();\n\t\t\t\t\tJasmineEditorInput input = new JasmineEditorInput(specRunner, name);\n\t\t\t\t\tpart.add(page.openEditor(input, ID));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\texception.add(e);\n\t\t\t\t}\n\t\t\t}", "public void setActivePage(IEditorPart activeEditor) {\n\r\n\t}", "protected final JTextComponent getComponent() {\n return editor;\n }", "protected InteractionDrawingEditor getViewEditor()\n {\n return view.getEditor();\n }", "public override void Do()\r\n { \r\n if (TextEditor.UiScope == null)\r\n { \r\n // We dont want to process the input item if the editor has already been detached from its UiScope. \r\n return;\r\n } \r\n\r\n DoTextInput(TextEditor, _text, _isInsertKeyToggled, /*acceptControlCharacters:*/false);\r\n }", "private void edit() {\n\n\t}", "@Override\n\tpublic void partClosed(IWorkbenchPart part) {\n\t}", "@Override\n\tpublic void editorCut()\n\t{\n\t\teditorCopy();\n\t\teditorInsert(\"\");\n\t\tSystem.out.println(\"DEBUG: performing Cut\") ;\n\t}", "public void createFieldEditors()\n\t{\n\t}", "public PtWikiTextEditorBase(GWikiElement element, String sectionName, String editor, String hint)\n {\n super(element, sectionName, editor, hint);\n extractContent();\n }", "public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}", "@Override\n\tpublic void editExchange() {\n\t\t\n\t}", "private ch.softenvironment.view.SimpleEditorPanel getPnlEditor() {\n\tif (ivjPnlEditor == null) {\n\t\ttry {\n\t\t\tivjPnlEditor = new ch.softenvironment.view.SimpleEditorPanel();\n\t\t\tivjPnlEditor.setName(\"PnlEditor\");\n\t\t\tivjPnlEditor.setLayout(new javax.swing.BoxLayout(getPnlEditor(), javax.swing.BoxLayout.X_AXIS));\n\t\t\tivjPnlEditor.setEnabled(true);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlEditor;\n}", "protected JComponent createEditor() {\n/* 84 */ JComponent editor = super.createEditor();\n/* 85 */ if (editor instanceof JSpinner.DefaultEditor) {\n/* */ \n/* 87 */ JSpinner.DefaultEditor de = (JSpinner.DefaultEditor)editor;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 92 */ de.getTextField().setBorder(new EmptyBorder(0, 0, 0, 0));\n/* */ \n/* 94 */ Dimension prefSize = de.getPreferredSize();\n/* 95 */ int compHeight = prefSize.height;\n/* */ \n/* 97 */ int height = LiquidSpinnerButtonUI.getSkin(1).getVsize() + LiquidSpinnerButtonUI.getSkin(5).getVsize();\n/* 98 */ int diff = height - compHeight;\n/* */ \n/* 100 */ if (diff > 0) {\n/* */ \n/* 102 */ int half = diff / 2;\n/* 103 */ de.getTextField().setBorder(new EmptyBorder(half, 0, diff - half, 0));\n/* */ } \n/* */ } \n/* 106 */ return editor;\n/* */ }", "public Part getPartToModify()\n {\n if (partTable.getSelectionModel().getSelectedItem() != null)\n {\n return ((Part) partTable.getSelectionModel().getSelectedItem());\n }\n return null;\n }", "public Object getItem ()\r\n {\r\n return editor.getText ();\r\n }", "@Override\n\tpublic String getName(EditorInterface editor) {\n\t\treturn \"Selection\";\n\t}", "public void correcto( Editor<Tipo> editor );", "private void initEditorComponent () {\n // Overriding the 'setJawbDocument' method to handle logging too.\n final AnnotationPopupListener popupListener =\n new AnnotationPopupListener(this);\n \n JTabbedPane tp = new DetachableTabsJawbComponent (task.getName()) {\n public void setJawbDocument (JawbDocument doc) {\n\t JawbDocument old = getJawbDocument();\n super.setJawbDocument (doc); // this is a must!!!\n\t if (old != null) \n\t old.getAnnotationMouseModel().\n\t removeAnnotationMouseListener(popupListener);\n\t if (doc != null)\n\t doc.getAnnotationMouseModel().\n\t addAnnotationMouseListener(popupListener);\n }\n };\n\n // add a simple editor for each\n Iterator iter = task.getMaiaScheme().iteratorOverAnnotationTypes();\n while (iter.hasNext()) {\n AnnotationType type = (AnnotationType) iter.next();\n Component editor = new SimpleAnnotEditor(this, type);\n tp.add (type.getName(), editor);\n }\n\n editorComponent = (JawbComponent)tp;\n }", "protected abstract void createFieldEditors();", "@Override\n\t\tpublic String getEditedContentForKey(String contentKey) {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tprotected boolean hasEditSupport() {\n\t\treturn false;\r\n\t}", "protected void replaceEditor(JComponent oldEditor, JComponent newEditor) {\n spinner.remove(oldEditor);\n spinner.add(newEditor, \"Editor\"); }", "public interface Plugin\n{\n /**\n * Initialize the plug-in. Plug-ins need to know the text area in order to provide only those feature that are\n * supported.\n * \n * @param textArea the text area of the editor\n * @param config the configuration object\n */\n void init(RichTextArea textArea, Config config);\n\n /**\n * @return all the user interface extensions that are provided by this plug-in\n */\n UIExtension[] getUIExtensions();\n\n /**\n * Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.\n */\n void destroy();\n}", "public interface EdentInlineEditableObject {\n public static final String INSERT_VALUE = \"Povinná hodnota\";\n \n public void setStringValue(String name, String value);\n \n}", "public MultiViewDescription getActiveDescription() {\n \treturn currentEditor;\n }", "public void createPartControl(Composite parent)\n {\n if (Workbench.getInstance().isClosing()) return;\n \n super.createPartControl(parent);\n \n installProjectionSupport();\n installBracketInserter();\n installCaretMoveListener();\n installModuleCompletionHelper();\n installIdleTimer();\n installSyntaxValidationThread();\n installFoldReconciler();\n installTasksReconciler();\n installAnnotationListener();\n \n source = new SourceFile(\n PerlEditorPlugin.getDefault().getLog(),\n getViewer().getDocument());\n \n reconcile();\n }", "public InputFieldEditingSupport(TableViewer viewer) {\n\t\tsuper(viewer);\n\t\tthis.viewer = viewer;\n\t\t//cellEditor = new TextCellEditor(viewer.getTable(), SWT.MULTI | SWT.WRAP | SWT.BORDER);\n\t\tcellEditor = new TextCellEditor(viewer.getTable());\n\t\t\n\t\tfinal Text aaa = (Text)cellEditor.getControl();\n\t}", "@Override\n public boolean onCheckIsTextEditor() {\n return false;\n }", "public void setEditor(Editor editor) {\n this.currentEditor = editor;\n refreshView();\n }", "public interface IListener {\n\n /**\n * Called when the contents of the editor changes.\n */\n public void onChange(Transform transform);\n\n }", "public interface IContentSelection\n{\n \n /**\n * Returns true if this object has a selected part, false otherwise.\n * \n * @return true if a selected part is within this object, false otherwise.\n */\n public abstract boolean hasSelection();\n \n /**\n * Returns the selection start within this object.\n * \n * @return start position in atoms.\n */\n public abstract int getSelectionStart();\n \n /**\n * Returns the selection end within this object.\n * \n * @return end position in atoms.\n */\n public abstract int getSelectionEnd();\n \n /**\n * Removes all selections from this object. No content is removed.\n */\n public abstract void clearSelection(TextAppearance appearance);\n \n /**\n * Removes everything that is selected including the content of this object.\n */\n public abstract void removeSelection(IContentFactory factory,\n TextAppearance appearance);\n \n /**\n * Selected the parts between the to atom positions.\n * \n * @param start\n * start position in atoms\n * @param end\n * end position in atoms\n */\n public abstract void setSelection(int start, int end,\n TextAppearance appearance);\n \n}", "@Override\n\tprotected void initForEdit(AWRequestContext requestContext) {\n\n\t}", "public IWorkbenchPart getWorkbenchPart() {\n\t\treturn part;\n\t}", "public void createFieldEditors() {\t\t\n\t\t\n//\t\taddField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, \n//\t\t\t\tMessages.UMAPPreferencePage_1, getFieldEditorParent()));\n\t\tgroup = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n\t\tgroup.setText(Messages.UMAPPreferencesHeader);\n\t\tgroup.setLayout(new GridLayout());\n\t\tGridData gd = new GridData(GridData.FILL_HORIZONTAL);\n\t\tgd.horizontalSpan = 1;\n\t\tgroup.setLayoutData(gd);\t\t\n\t\t\n//\t\tgroup2 = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n//\t\tgroup2.setText(Messages.UmapStringButtonFieldEditor_0);\n//\t\tgd.horizontalSpan = 2;\n//\t\tgroup2.setLayoutData(gd);\n//\t\tgroup2.setLayout(new GridLayout());\n\t\t\n\t\t\n\t\tvalidation = new BooleanFieldEditor( PreferenceConstants.P_BOOLEAN,\tMessages.UMAPPreferencePage_2, group);\n\t\taddField( validation );\n\n\t\tclassAbreviation = new StringFieldEditor(PreferenceConstants.P_CLASS_NAME, Messages.UMAPPreferencePage_3, group);\n\t\tclassAbreviation.setEmptyStringAllowed(false);\n\t\tclassAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\tintfAbreviation = new StringFieldEditor(PreferenceConstants.P_INTF_NAME, Messages.UMAPPreferencePage_4, group);\n\t\tintfAbreviation.setEmptyStringAllowed(false);\n\t\tintfAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\texcAbreviation = new StringFieldEditor(PreferenceConstants.P_EXCP_NAME, Messages.UMAPPreferencePage_5, group);\n\t\texcAbreviation.setEmptyStringAllowed(false);\n\t\texcAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\t\n//\t\tprojectAbbreviation = new StringFieldEditor(PreferenceConstants.P_PROJ_NAME, Messages.UMAPPreferencePage_6, group);\n//\t\tprojectAbbreviation.setEmptyStringAllowed(true);\n\n//\t\tStringFieldEditor name = new StringFieldEditor(PreferenceConstants.P_USER_NAME, Messages.UmapStringButtonFieldEditor_2, group2);\n//\t\t\n//\t\tStringFieldEditor pass = new StringFieldEditor(PreferenceConstants.P_PWD, Messages.UmapStringButtonFieldEditor_3, group2);\n\t\t\n//\t\tURIStringButtonFieldEditor button = new URIStringButtonFieldEditor(PreferenceConstants.P_URI, Messages.UmapStringButtonFieldEditor_1, group2);\n\t\t\n//\t\taddField(name);\n//\t\taddField(pass);\n//\t\taddField(button);\n\t\t\n\t\taddField( classAbreviation );\n\t\taddField( intfAbreviation );\n\t\taddField( excAbreviation );\n//\t\taddField( projectAbbreviation );\t\t\n\t}", "public interface Editable {\n\n /**\n * Append will be assigned to add a string fragment to the end of _TextLine\n * @param fragment the string to add at the end of _TextLine\n */\n public void append(String fragment);\n\n /**\n * Insert will be assigned to insert string fragment at index 0\n * @param index the index at which to insert the fragment\n * @param fragment the fragment that will be inserted at index\n */\n public void insert(int index, String fragment);\n /**\n * Replace will replace from a starting index to an ending index with\n * the string fragment\n * @param start where to start replacing\n * @param end where to end replacing\n * @param fragment string to insert at start index\n */\n public void replace(int start, int end, String fragment);\n\n}" ]
[ "0.66419345", "0.65480834", "0.6521256", "0.64872974", "0.6467999", "0.64593", "0.6451705", "0.6448595", "0.63442385", "0.6340461", "0.62868905", "0.62504077", "0.62241143", "0.6220505", "0.6207637", "0.61951447", "0.61768496", "0.6158589", "0.61272085", "0.60823166", "0.60794723", "0.60728914", "0.6072334", "0.60532415", "0.60468423", "0.60300547", "0.6025229", "0.60182387", "0.60115784", "0.60069084", "0.6003462", "0.59962505", "0.599434", "0.59907085", "0.59900516", "0.5953678", "0.5952643", "0.5946641", "0.59460205", "0.5847132", "0.58393663", "0.5828465", "0.58087534", "0.5799603", "0.57830554", "0.5765211", "0.5757288", "0.57572824", "0.5754854", "0.5746555", "0.5733444", "0.5724277", "0.569489", "0.5690219", "0.56900734", "0.56840545", "0.5681318", "0.5668086", "0.5658039", "0.56516576", "0.56488127", "0.56439984", "0.56377876", "0.56327075", "0.56130975", "0.56084144", "0.5600155", "0.5587526", "0.5585128", "0.5584826", "0.55760956", "0.5575751", "0.55736923", "0.55716544", "0.5566069", "0.5557834", "0.5555601", "0.55479825", "0.5543668", "0.5542458", "0.5537963", "0.5537939", "0.5537203", "0.55283797", "0.5526917", "0.5526093", "0.55245197", "0.5522294", "0.5519791", "0.5516541", "0.5509685", "0.549898", "0.54985034", "0.54964244", "0.54836553", "0.5472061", "0.5469559", "0.5466593", "0.5464387", "0.54621184", "0.5459195" ]
0.0
-1
Closes all project files on project close.
public void resourceChanged(final IResourceChangeEvent event) { if (event.getType() == IResourceChangeEvent.POST_CHANGE) { if (event.getDelta() != null) { if (event.getDelta().getKind() == IResourceDelta.CHANGED || event.getDelta().getKind() == IResourceDelta.REMOVED) { Display.getDefault().asyncExec(new Runnable() { public void run() { pageMainEditor.refreshLstClasses(); pageMainEditor.updateBuildPathStatus(getEditor(1)); pageMainEditor.checkCache(); } }); } } } if (event.getType() == IResourceChangeEvent.PRE_CLOSE) { Display.getDefault().asyncExec(new Runnable() { public void run() { IWorkbenchPage[] pages = getSite().getWorkbenchWindow().getPages(); for (int i = 0; i < pages.length; i++) { if (((FileEditorInput) editor.getEditorInput()).getFile().getProject().equals(event.getResource())) { IEditorPart editorPart = pages[i].findEditor(editor.getEditorInput()); pages[i].closeEditor(editorPart, true); } } } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void closeFiles() {\n try {\n inputFile.close();\n debugFile.close();\n reportFile.close();\n workFile.close();\n stnFile.close();\n } catch(Exception e) {}\n }", "public void doProjectClose() {\r\n\t\tthis.observerList.notifyObservers(GNotification.PROJECT_CLOSE, null);\r\n\t}", "void closeAll();", "public void projectClosed() {\n finaliseToolWindow();\n this.project = null;\n }", "private void closeAll(){\r\n\t\t\r\n\t}", "private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }", "@Nullable\n IdeaProject close(Module module);", "public static void closeAllMsiDb() {\r\n\t\tconnectionByProjectIdMap.forEach((k, v) -> {\r\n\t\t\ttry {\r\n\t\t\t\tif (v != null && !v.isClosed()) {\r\n\t\t\t\t\tlogger.info(\"Close msi_db_project_{} connection\", k);\r\n\t\t\t\t\tv.close();\r\n\t\t\t\t\tv = null;\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tlogger.error(\"Error while trying to close msi_db database connections\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void closeAll() throws IOException {\n\t\tscMessages.close();\n\t\tscFiles.close();\n\t}", "public void shutdown() {\n\t\tint i = 0;\n\t\twhile (i < openFiles.size()) {\n\t\t\tPhile phile = openFiles.get(i);\n\t\t\ttry {\n\t\t\t\tclose(phile);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n }", "public void closeAllWindow() {\n\t\tthis.dispose();\n\t\tSystem.exit(0);\n\t}", "public void close() {}", "public void close() {\n if (cleanup != null) {\n cleanup.disable();\n }\n if (isOpen()) {\n forceClose();\n }\n }", "public static void closeAllWindows() {\n\t\tcloseAllWindows(false);\n\t}", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void closeProject(AbstractProject project) {\n\t\tsetActiveValue(project.getId(), \"0\"); //$NON-NLS-1$\n\t}", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "public void openNewProject() {\n\n\t\t// Dispose of all the sound objects in the project that is currently open\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n sound.close();\n }\n \n // Set the newly opened project variables\n\t\tsoundList = new HashMap<Integer, SoundInfo>();\n\t\tprojectModified = false;\n\t\tprojectFileIO = null;\n\t}", "@Override\n public void projectClosed() {\n ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);\n toolWindowManager.unregisterToolWindow(TOOL_WINDOW_ID);\n }", "public void close() {\n saveConfigurationSettings();\n removeAllLogHandlers();\n try {\n Constants.PREFS.flush();\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n }", "public void close() {\n m_module.close();\n }", "public void closeAllFrames() {\r\n\t\tfor (int i = 0; i < frames.size(); i++) {\r\n\t\t\tframes.get(i).attemptClose();\r\n\t\t}\r\n\t}", "public void close(){\n this.println(\"Library has been closed! See you tomorrow morning!!\");\n this.openOrNot = false;\n this.searchOrNot = false;\n this.serveOrNot = false;\n }", "@Override\n public void close()\n {\n GitUtil.release(treeWalk);\n }", "private void close() {\r\n\t\tfor ( int i = 0; i < _headerObject._filenames.length; ++i) {\r\n\t\t\tFileObject fileObject = ( FileObject)_headerObject._fileObjectMap.get( _headerObject._filenames[ i]);\r\n\t\t\tif ( null == fileObject)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tfileObject.close();\r\n\t\t}\r\n\t}", "public void close() {\r\n\t}", "public void close() {\t\t\n\t}", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "public void close() {\n\t}", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n\t\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public synchronized void close() {}", "static void dispose() {\n for (final Writer w : logFiles.values()) {\n try {\n w.close();\n } catch (IOException ioe) {\n // don't care\n }\n }\n logFiles.clear();\n }", "public void closeFile(){\n }", "@Override\n\tpublic void closeAndCleanupAllData() throws Exception {\n\t\tclose();\n\t}", "public void close()\n\t\t{\n\t\t}", "public void close() {\n\t\t\r\n\t}", "static synchronized void closeAll() {\n List<BlackLabEngine> copy = new ArrayList<>(engines);\n engines.clear();\n for (BlackLabEngine engine : copy) {\n engine.close();\n }\n }", "private void closeModules()\n {\n for (Module m : m_modules)\n {\n // Remove the module from the resolver state.\n getFramework().getResolver().removeModule(m);\n\n // Set fragments to null, which will remove the module from all\n // of its dependent fragment modules.\n try\n {\n ((ModuleImpl) m).attachFragments(null);\n }\n catch (Exception ex)\n {\n getFramework().getLogger().log(\n m.getBundle(), Logger.LOG_ERROR, \"Error detaching fragments.\", ex);\n }\n // Set wires to null, which will remove the module from all\n // of its dependent modules.\n ((ModuleImpl) m).setWires(null);\n\n // Close the module's content.\n ((ModuleImpl) m).close();\n }\n }", "public static void close()\n {\n if(!info) return;\n debugger.log.close();\n }", "public static void closeFile() {\n\t\tif (input != null)\n\t\t\tinput.close();\n\t\t\n\t}", "public void close() {\n this.octaveExec.close();\n }" ]
[ "0.7334943", "0.7286342", "0.7157992", "0.7091727", "0.67941433", "0.652609", "0.64192003", "0.63577914", "0.634568", "0.6303673", "0.6277123", "0.62126374", "0.61835176", "0.6175454", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.6100253", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6096144", "0.6090168", "0.6089639", "0.60809565", "0.606541", "0.60634047", "0.604209", "0.60182196", "0.60177463", "0.60153127", "0.6009282", "0.5974475", "0.5974475", "0.5963766", "0.59581554", "0.59301627", "0.59301627", "0.59301627", "0.5918448", "0.5915361", "0.5915361", "0.5915361", "0.5914883", "0.5888891", "0.5888891", "0.5888891", "0.58851177", "0.58811843", "0.58748245", "0.5862069", "0.58606637", "0.58563733", "0.585568", "0.5855063", "0.5852772", "0.5852222", "0.5840936" ]
0.0
-1
Sets this ID so nested editor is configured for XML source
public String getId() { return ContentTypeIdForXML.ContentTypeID_XML + ".source"; //$NON-NLS-1$; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setElementId(String arg0)\n {\n \n }", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "void xsetID(org.apache.xmlbeans.XmlString id);", "private void setupSpalteID() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteID.setCellValueFactory(new PropertyValueFactory<>(\"idExtern\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteID.setCellFactory(EditCell.<ArbeitspaketTableData>forTableColumn());\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteID.setOnEditCommit(event -> {\r\n\t\t\tfinal String value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setIdExtern(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void setID(String s) {\r\n\t\tthis.idNode = s;\r\n\t}", "@Override\r\n\tpublic void setID(String id) {\n\t\tsuper.id=id;\r\n\t}", "@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "void xsetId(org.apache.xmlbeans.XmlString id);", "public void setParent(int id);", "@Override\n\tpublic void setId(String id)\n\t{\n\t\t\n\t}", "@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public static void setID(EObject eObject, String id) {\n\n\t\tResource resource = eObject.eResource();\n\n\t\tif (resource instanceof XMLResource)\n\t\t\t((XMLResource) resource).setID(eObject, id);\n\t}", "void setId(int id) {\n this.id = id;\n }", "public void setID(int id){\n this.id=id;\n }", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "public void setID(int id){\n this.ID = id;\n }", "public void setId(String eId) {\n\t\tmId = eId;\n\t}", "public void setID(int id);", "@Override\n\tpublic void setId(int id) {\n\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}", "public void setId(String id) {\n }", "public void setId(ID id)\n {\n this.id = id;\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\r\n\t\tsId = id;\r\n\t}", "public void setID(String idIn) {this.id = idIn;}", "public void setIdPath(String idPath) {\n\t\tthis.idPath = idPath;\n\t\tthis.handleConfig(\"idPath\", idPath);\n\t}", "@Override\n public void setId(int id) {\n this.id = id;\n }", "public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (ocpp.IdToken)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (ocpp.IdToken)get_store().add_element_user(IDTAG$0);\n }\n target.set(idTag);\n }\n }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "@Override\r\n\tpublic void setId(String id) {\n\t\tthis.id = id;\r\n\t}", "public void setId(String id){\r\n\t\tthis.id = id;\r\n\t}", "@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}", "public void setId(int id){\r\n this.id = id;\r\n }", "public void set_id(int ID)\n {\n id =ID;\n }", "public void setID() throws IOException;", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId (String id)\n {\n _id = id;\n }", "public void setId (String id) {\n this.id = id;\n }", "public void setId(int id){ this.id = id; }", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId (String id) {\n this.id = id;\n }", "public void setId (String id) {\n this.id = id;\n }", "public void setID(int id)\r\n {\r\n\tthis.id = id;\r\n }", "protected void setTypeId(String typeId) {\n\t\tcontext.getElement().setAttribute(\"typeId\", \"org.csstudio.opibuilder.widgets.\" + typeId);\n\t}", "public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }", "public void setID(String newID)\r\n {\r\n id=newID;\r\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id)\n {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(String id)\n\t{\n\t\tm_sID=id;\t\n\t}", "@Override\n\tpublic void setId(String id) {\n\t\tthis.id = id;\n\t}", "private void setComponentsId(){\n this.tableA.setId(1);\n this.horizontalScrollViewB.setId(2);\n this.scrollViewC.setId(3);\n this.scrollViewD.setId(4);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(int id) {\n this.id = id;\n }", "void setId(ID id);", "public void setId (String id);", "public void setId(int id)\n {\n this.id=id;\n }", "void setId(String id);", "void setId(String id);", "void setId(String id);", "public void setId(int id) {\n this.id = id;\n\t}", "public void setId (int id) {\r\n\t\tthis.id=id;\r\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "@Override\r\n\t\tpublic void setIdAttribute(String name, boolean isId) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }" ]
[ "0.62255365", "0.6099267", "0.6021612", "0.5982268", "0.59115905", "0.5901187", "0.58961767", "0.5895503", "0.58911514", "0.588989", "0.58230734", "0.5802581", "0.5734114", "0.57297224", "0.5727281", "0.5715634", "0.56999105", "0.5693904", "0.5686169", "0.56832665", "0.5682314", "0.5672775", "0.5664881", "0.5663525", "0.56328046", "0.56170213", "0.56170213", "0.55969685", "0.5594194", "0.5590041", "0.5586505", "0.5576668", "0.5572345", "0.5568739", "0.5568739", "0.5568095", "0.55667764", "0.5565733", "0.5564873", "0.55625045", "0.5561404", "0.55542624", "0.55521256", "0.55518377", "0.554566", "0.55410814", "0.5535891", "0.5535891", "0.5532269", "0.5527907", "0.55243284", "0.55153567", "0.55010974", "0.55010974", "0.55010974", "0.55010974", "0.55010974", "0.55010974", "0.549625", "0.54951674", "0.5494212", "0.5494212", "0.5494212", "0.5494212", "0.5492497", "0.5489703", "0.54872257", "0.54756844", "0.54756844", "0.54756486", "0.54756486", "0.54756486", "0.54726774", "0.54712194", "0.54691386", "0.54633313", "0.5462681", "0.5462681", "0.5462681", "0.546241", "0.5454967", "0.54549", "0.5454506", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244", "0.5454244" ]
0.60250634
2
base type: MSNavigatorDoNotTrack flags: 32768 declared in: apis/browserapi/tsd/lib.es6.d.ts:732752
@JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object") public interface MSNavigatorDoNotTrack { /* Methods */ /** * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152)) * TE Signature : S(confirmSiteSpecificTrackingException,P(d152)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@732792 */ Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args); /** * Std Signature : S(confirmWebWideTrackingException,27,,P(d153)) * TE Signature : S(confirmWebWideTrackingException,P(d153)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@732891 */ Boolean confirmWebWideTrackingException(ExceptionInformation args); /** * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153)) * TE Signature : S(removeSiteSpecificTrackingException,P(d153)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@732965 */ void removeSiteSpecificTrackingException(ExceptionInformation args); /** * Std Signature : S(removeWebWideTrackingException,289,,P(d153)) * TE Signature : S(removeWebWideTrackingException,P(d153)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@733040 */ void removeWebWideTrackingException(ExceptionInformation args); /** * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154)) * TE Signature : S(storeSiteSpecificTrackingException,P(d154)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@733110 */ void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args); /** * Std Signature : S(storeWebWideTrackingException,289,,P(d155)) * TE Signature : S(storeWebWideTrackingException,P(d155)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@733202 */ void storeWebWideTrackingException(StoreExceptionsInformation args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void m7753b() {\n f8029a = false;\n }", "@Override\n public Set<SessionTrackingMode> getDefaultSessionTrackingModes() {\n return null;\n }", "@Override\n public Set<SessionTrackingMode> getEffectiveSessionTrackingModes() {\n return null;\n }", "static void m7752a() {\n f8029a = true;\n }", "public static void m71676a() {\n f57214d = false;\n }", "@Test\n public void testNotPersistentIOGlobalStat() throws Exception {\n ioStatGlobalPageTrackTest(false);\n }", "private static native boolean isDevelopmentMode()/*-{\n return typeof $wnd.__gwt_sdm !== 'undefined';\n }-*/;", "@Override\n public boolean getDefineAlternateReferenceLocationFlag() {\n return false;\n }", "public AccessibilityWindowInfo getWindow() {\n/* 634 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Property\n public native boolean isHandledWhileDebugging ();", "private static boolean hasUnsupportedTypedefSettings(TypeDef type) {\n\t\treturn (PointerTypedefInspector.getPointerType(type) != PointerType.DEFAULT ||\n\t\t\tPointerTypedefInspector.hasPointerBitShift(type) ||\n\t\t\tPointerTypedefInspector.hasPointerBitMask(type));\n\t}", "public boolean isDirect()\r\n/* 76: */ {\r\n/* 77:111 */ return false;\r\n/* 78: */ }", "protected boolean func_70041_e_() { return false; }", "public final void mo63265d() {\n m80071a(false, true);\n }", "public boolean method_4132() {\n return false;\n }", "@Override\n public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes) {\n\n }", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface NavigatorConcurrentHardware\n{\n\n /*\n Methods\n */\n /** \n * inherited from (js.browser.NavigatorConcurrentHardware)\n */\n @JsProperty(name = \"hardwareConcurrency\")\n Number getHardwareConcurrency();\n /** \n * inherited from (js.browser.NavigatorConcurrentHardware)\n */\n @JsProperty(name = \"hardwareConcurrency\")\n void setHardwareConcurrency(@DoNotAutobox Number value);\n}", "@java.lang.Deprecated\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static synchronized void m13804a(android.content.Context r3, com.facebook.C6787r.C6788a r4) {\n /*\n java.lang.Class<com.facebook.r> r0 = com.facebook.C6787r.class\n monitor-enter(r0)\n java.lang.Boolean r1 = f12487s // Catch:{ all -> 0x0088 }\n boolean r1 = r1.booleanValue() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0012\n if (r4 == 0) goto L_0x0010\n r4.mo20141a() // Catch:{ all -> 0x0088 }\n L_0x0010:\n monitor-exit(r0)\n return\n L_0x0012:\n java.lang.String r1 = \"applicationContext\"\n com.facebook.internal.C6697T.m13461a(r3, r1) // Catch:{ all -> 0x0088 }\n r1 = 0\n com.facebook.internal.C6697T.m13460a(r3, r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6697T.m13466b(r3, r1) // Catch:{ all -> 0x0088 }\n android.content.Context r1 = r3.getApplicationContext() // Catch:{ all -> 0x0088 }\n f12481m = r1 // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n m13810b(r1) // Catch:{ all -> 0x0088 }\n java.lang.String r1 = f12472d // Catch:{ all -> 0x0088 }\n boolean r1 = com.facebook.internal.C6694S.m13436b(r1) // Catch:{ all -> 0x0088 }\n if (r1 != 0) goto L_0x0080\n r1 = 1\n java.lang.Boolean r1 = java.lang.Boolean.valueOf(r1) // Catch:{ all -> 0x0088 }\n f12487s = r1 // Catch:{ all -> 0x0088 }\n boolean r1 = m13817g() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0041\n m13812c() // Catch:{ all -> 0x0088 }\n L_0x0041:\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n boolean r1 = r1 instanceof android.app.Application // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n boolean r1 = com.facebook.C6557O.m12974e() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n android.app.Application r1 = (android.app.Application) r1 // Catch:{ all -> 0x0088 }\n java.lang.String r2 = f12472d // Catch:{ all -> 0x0088 }\n com.facebook.p127a.p130b.C6602h.m13083a(r1, r2) // Catch:{ all -> 0x0088 }\n L_0x0056:\n com.facebook.internal.C6670D.m13313f() // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6678J.m13355d() // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6712c.m13522a(r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.G r1 = new com.facebook.internal.G // Catch:{ all -> 0x0088 }\n com.facebook.o r2 = new com.facebook.o // Catch:{ all -> 0x0088 }\n r2.<init>() // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n f12480l = r1 // Catch:{ all -> 0x0088 }\n java.util.concurrent.FutureTask r1 = new java.util.concurrent.FutureTask // Catch:{ all -> 0x0088 }\n com.facebook.p r2 = new com.facebook.p // Catch:{ all -> 0x0088 }\n r2.<init>(r4, r3) // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n java.util.concurrent.Executor r2 = m13822l() // Catch:{ all -> 0x0088 }\n r2.execute(r1) // Catch:{ all -> 0x0088 }\n monitor-exit(r0)\n return\n L_0x0080:\n com.facebook.FacebookException r1 = new com.facebook.FacebookException // Catch:{ all -> 0x0088 }\n java.lang.String r2 = \"A valid Facebook app id must be set in the AndroidManifest.xml or set by calling FacebookSdk.setApplicationId before initializing the sdk.\"\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n throw r1 // Catch:{ all -> 0x0088 }\n L_0x0088:\n r3 = move-exception\n monitor-exit(r0)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.C6787r.m13804a(android.content.Context, com.facebook.r$a):void\");\n }", "public final boolean mo62081r() {\n return false;\n }", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }", "public final void mo74763d(C29296g gVar) {\n }", "void mo56812a(@NonNull C4122e eVar);", "void removeWebWideTrackingException(ExceptionInformation args);", "static boolean m31779a() {\n return f29996a != null && !f29997b;\n }", "private static boolean m151985b(C32724ad adVar, Proxy.Type type) {\n return !adVar.mo132325g() && type == Proxy.Type.HTTP;\n }", "public interface C9067a {\n /* renamed from: a */\n void mo23497a(MediaSource mediaSource, Timeline timeline, Object obj);\n }", "private /* synthetic */ void m57187h() {\n this.f41189e = true;\n }", "public boolean isAccessibilityFocused() {\n/* 853 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean mo8393h() {\n return false;\n }", "void mo56813b(@NonNull C4122e eVar);", "@Override\n\tpublic int getNavigationMode() {\n\t\treturn 0;\n\t}", "public boolean method_4088() {\n return false;\n }", "protected boolean trackable() {\n return Boolean.TRUE;\n }", "private void m11881f() {\n Boolean valueOf = Boolean.valueOf(!((Boolean) this.f9673b.getTag(R.id.dp7)).booleanValue());\n this.f9673b.setTag(R.id.dp7, valueOf);\n m11882g();\n this.f9685n.mo25021a(\"hotsoon.pref.LAST_SET_LANDSCAPE\", (Object) valueOf).mo25023a();\n }", "static boolean m7754c() {\n return f8029a;\n }", "public final void mo63264c() {\n m80071a(true, true);\n }", "public static void normalDebug(){\n enableVerbos = false;\n }", "public boolean mo7081t() {\n return false;\n }", "public boolean hasOTDFLTROSSRIND() {\n return fieldSetFlags()[4];\n }", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "private static final native boolean isSupported()/*-{\n\t\treturn !!(chrome.extension);\n\t}-*/;", "@DISPID(78)\r\n\t// = 0x4e. The runtime will prefer the VTID if present\r\n\t@VTID(76)\r\n\tboolean globalDisable();", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public boolean shouldIncludeInGlobalSearch() {\n/* 255 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void mo74759a(C29296g gVar) {\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void stopTrackingNfc() {\n\t\tif (adapter == null) {\n\t\t\treturn;\n\t\t}\n\t\tadapter.disableForegroundDispatch(activity);\n\t}", "public boolean isScreenReaderFocusable() {\n/* 1331 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static boolean isUseGlint() {\n/* 962 */ return useGlint;\n/* */ }", "public boolean method_108() {\r\n return false;\r\n }", "static synchronized void a(android.content.Context r18) {\n /*\n java.lang.Class<com.ss.android.common.applog.n> r1 = com.ss.android.common.applog.n.class\n monitor-enter(r1)\n r2 = 1\n java.lang.Object[] r3 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r10 = 0\n r3[r10] = r18 // Catch:{ all -> 0x0085 }\n r4 = 0\n com.meituan.robust.ChangeQuickRedirect r5 = f28180a // Catch:{ all -> 0x0085 }\n r6 = 1\n r7 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r8 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r9 = android.content.Context.class\n r8[r10] = r9 // Catch:{ all -> 0x0085 }\n java.lang.Class r9 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n boolean r3 = com.meituan.robust.PatchProxy.isSupport(r3, r4, r5, r6, r7, r8, r9) // Catch:{ all -> 0x0085 }\n if (r3 == 0) goto L_0x0036\n java.lang.Object[] r11 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r11[r10] = r18 // Catch:{ all -> 0x0085 }\n r12 = 0\n com.meituan.robust.ChangeQuickRedirect r13 = f28180a // Catch:{ all -> 0x0085 }\n r14 = 1\n r15 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r0 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r0[r10] = r2 // Catch:{ all -> 0x0085 }\n java.lang.Class r17 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n r16 = r0\n com.meituan.robust.PatchProxy.accessDispatch(r11, r12, r13, r14, r15, r16, r17) // Catch:{ all -> 0x0085 }\n monitor-exit(r1)\n return\n L_0x0036:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r3 >= 0) goto L_0x003d\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x003d:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n r4 = 500(0x1f4, float:7.0E-43)\n if (r3 >= r4) goto L_0x0045\n monitor-exit(r1)\n return\n L_0x0045:\n java.util.LinkedList<java.io.File> r3 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r3 != 0) goto L_0x004c\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x004c:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r0 != 0) goto L_0x0052\n monitor-exit(r1)\n return\n L_0x0052:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 <= r4) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n int r0 = r0.size() // Catch:{ Throwable -> 0x0083 }\n if (r0 <= 0) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n java.lang.Object r0 = r0.removeFirst() // Catch:{ Throwable -> 0x0083 }\n java.io.File r0 = (java.io.File) r0 // Catch:{ Throwable -> 0x0083 }\n r0.delete() // Catch:{ Throwable -> 0x0083 }\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n int r0 = r0 - r2\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n goto L_0x0052\n L_0x006f:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 >= 0) goto L_0x0076\n r0 = -1\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0076:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n boolean r0 = r0.isEmpty() // Catch:{ Throwable -> 0x0083 }\n if (r0 == 0) goto L_0x0081\n r0 = 0\n f28182c = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0081:\n monitor-exit(r1)\n return\n L_0x0083:\n monitor-exit(r1)\n return\n L_0x0085:\n r0 = move-exception\n monitor-exit(r1)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.common.applog.n.a(android.content.Context):void\");\n }", "public boolean mo9240ax() {\n return false;\n }", "private void m81845c(WindowConfig iVar) {\n if (iVar.mo81408c()) {\n if (iVar.f58086b == null) {\n iVar.mo81402a(C6969H.m41409d(\"G618AD11F9131BD0BE71C\"));\n return;\n }\n this.f58078j = iVar.f58086b.booleanValue();\n if (this.f58069a.getHasSystemBar()) {\n SystemBar systemBar = this.f58069a.getSystemBar();\n boolean b = mo81391b();\n if (b) {\n systemBar.setVisibility(8);\n } else {\n systemBar.setVisibility(0);\n }\n WebViewFragment2 u = m81857u();\n if (u != null) {\n u.mo81334b(b);\n }\n }\n }\n }", "public boolean method_2453() {\r\n return false;\r\n }", "@DISPID(36)\r\n\t// = 0x24. The runtime will prefer the VTID if present\r\n\t@VTID(41)\r\n\tboolean globalDisable();", "public boolean mo72a() {\n return false;\n }", "public boolean mo7079r() {\n return false;\n }", "@Override\n protected boolean isDebugEnable() {\n return false;\n }", "boolean no_onport(DiagnosticChain diagnostics, Map<Object, Object> context);", "public boolean getDefaultTracking() {\n return (defaultTracking);\n }", "@Override\n\tpublic boolean isDebugEnabled(Marker marker) {\n\t\treturn false;\n\t}", "public boolean getVoiceSearchEnabled() {\n/* 170 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean mo6546a() {\n return false;\n }", "public boolean mo11676b() {\n return true;\n }", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }", "public final void mo74761b(C29296g gVar) {\n C34867a.this.f90934d.setVisibility(0);\n if (!C39805en.m127445a()) {\n C23487o.m77136a((Activity) C34867a.this.f90931a);\n }\n C6907h.m21519a((Context) C34867a.this.f90931a, \"filter_confirm\", \"mid_page\", \"0\", 0, C34867a.this.f90936f);\n }", "private static VelocityTracker m80090a() {\n return VelocityTracker.obtain();\n }", "private void disableForegroundDispatchSystem() {\n nfcAdapter_act.disableForegroundDispatch(this);\n }", "public short getGIOPTargetAddressPreference() {\n/* 230 */ return this.giopTargetAddressPreference;\n/* */ }", "public boolean method_3897() {\r\n return false;\r\n }", "public synchronized void a(com.umeng.commonsdk.proguard.f r9) {\n /*\n r8 = this;\n monitor-enter(r8);\n r0 = \"UMSysLocation\";\n r1 = 1;\n r2 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r3 = \"getSystemLocation\";\n r4 = 0;\n r2[r4] = r3;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00c6;\n L_0x0010:\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n if (r0 != 0) goto L_0x0016;\n L_0x0014:\n goto L_0x00c6;\n L_0x0016:\n r8.e = r9;\t Catch:{ all -> 0x00c8 }\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n r2 = \"android.permission.ACCESS_COARSE_LOCATION\";\n r0 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r0, r2);\t Catch:{ all -> 0x00c8 }\n r2 = r8.d;\t Catch:{ all -> 0x00c8 }\n r3 = \"android.permission.ACCESS_FINE_LOCATION\";\n r2 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r2, r3);\t Catch:{ all -> 0x00c8 }\n r3 = 0;\n if (r0 != 0) goto L_0x0039;\n L_0x002b:\n if (r2 == 0) goto L_0x002e;\n L_0x002d:\n goto L_0x0039;\n L_0x002e:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x0037;\n L_0x0032:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n r9.a(r3);\t Catch:{ all -> 0x00c8 }\n L_0x0037:\n monitor-exit(r8);\n return;\n L_0x0039:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n if (r5 == 0) goto L_0x00c4;\n L_0x003d:\n r5 = android.os.Build.VERSION.SDK_INT;\t Catch:{ Throwable -> 0x0098 }\n r6 = 21;\n if (r5 < r6) goto L_0x0054;\n L_0x0043:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x0054:\n if (r2 == 0) goto L_0x005f;\n L_0x0056:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0060;\n L_0x005f:\n r5 = 0;\n L_0x0060:\n if (r0 == 0) goto L_0x006b;\n L_0x0062:\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x006b:\n r6 = 0;\n L_0x006c:\n if (r5 != 0) goto L_0x0070;\n L_0x006e:\n if (r6 == 0) goto L_0x0091;\n L_0x0070:\n r5 = \"UMSysLocation\";\n r6 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0098 }\n r7 = \"getLastKnownLocation(LocationManager.PASSIVE_PROVIDER)\";\n r6[r4] = r7;\t Catch:{ Throwable -> 0x0098 }\n com.umeng.commonsdk.statistics.common.e.a(r5, r6);\t Catch:{ Throwable -> 0x0098 }\n if (r2 == 0) goto L_0x0086;\n L_0x007d:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"passive\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0086:\n if (r0 == 0) goto L_0x0091;\n L_0x0088:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"network\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0091:\n r0 = r3;\n L_0x0092:\n r2 = r8.e;\t Catch:{ Throwable -> 0x0098 }\n r2.a(r0);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x00c4;\n L_0x0098:\n r0 = move-exception;\n r2 = \"UMSysLocation\";\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c8 }\n r5.<init>();\t Catch:{ all -> 0x00c8 }\n r6 = \"e is \";\n r5.append(r6);\t Catch:{ all -> 0x00c8 }\n r5.append(r0);\t Catch:{ all -> 0x00c8 }\n r5 = r5.toString();\t Catch:{ all -> 0x00c8 }\n r1[r4] = r5;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r2, r1);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00bf;\n L_0x00b5:\n r9.a(r3);\t Catch:{ Throwable -> 0x00b9 }\n goto L_0x00bf;\n L_0x00b9:\n r9 = move-exception;\n r1 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r1, r9);\t Catch:{ all -> 0x00c8 }\n L_0x00bf:\n r9 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r9, r0);\t Catch:{ all -> 0x00c8 }\n L_0x00c4:\n monitor-exit(r8);\n return;\n L_0x00c6:\n monitor-exit(r8);\n return;\n L_0x00c8:\n r9 = move-exception;\n monitor-exit(r8);\n throw r9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.d.a(com.umeng.commonsdk.proguard.f):void\");\n }", "protected boolean isAlwaysExperienceDropper() {\n/* 1849 */ return true;\n/* */ }", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "private final void m90474c() {\n RxBus.m86979a().mo84367a(new UnFriendlyEvent(2));\n popSelf();\n }", "private void m9534a(android.content.Context r3) {\n /*\n r2 = this;\n android.content.Context r0 = r2.f7502i\n boolean r1 = r0 instanceof android.app.Activity\n if (r1 == 0) goto L_0x0010\n android.app.Activity r0 = (android.app.Activity) r0\n boolean r0 = r0.isFinishing()\n if (r0 != 0) goto L_0x0010\n android.content.Context r3 = r2.f7502i\n L_0x0010:\n com.bytedance.sdk.openadsdk.dislike.b r0 = new com.bytedance.sdk.openadsdk.dislike.b\n com.bytedance.sdk.openadsdk.core.d.k r1 = r2.f7501h\n r0.m43956init(r3, r1)\n r2.f7503j = r0\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.sdk.openadsdk.core.p171e.TTNativeAdImpl.m9534a(android.app.Activity):void\");\n }", "public boolean mo64135b() {\n return false;\n }", "public AccessibilityNodeInfo getTraversalBefore() {\n/* 376 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void enableLocationTracking() {\n map.getTrackingSettings().setDismissAllTrackingOnGesture(false);\n\n // Enable location and bearing tracking\n map.getTrackingSettings().setMyLocationTrackingMode(MyLocationTracking.TRACKING_FOLLOW);\n map.getTrackingSettings().setMyBearingTrackingMode(MyBearingTracking.COMPASS);\n }", "private final void m90475d() {\n RxBus.m86979a().mo84367a(new UnFriendlyEvent(1));\n popSelf();\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public boolean mo7084v() {\n return false;\n }", "public interface C1477a {\n /* renamed from: a */\n boolean mo1835a();\n\n /* renamed from: b */\n boolean mo1836b();\n\n int getCurrentPosition();\n\n boolean getGlobalVisibleRect(Rect rect);\n\n long getInitialBufferTime();\n\n int getMeasuredHeight();\n\n int getMeasuredWidth();\n\n VideoStartReason getVideoStartReason();\n\n float getVolume();\n }", "public boolean isSuperResolutionEnabled() {\n return false;\n }", "public void setTrackingNo(Integer aTrackingNo) {\n trackingNo = aTrackingNo;\n }", "void m1864a() {\r\n }", "@Test\n public void trackingDisabled_unsolicitedResultsIgnored_withToken() {\n configureTrackingDisabled();\n\n // Set the storage into an arbitrary state so we can detect a reset.\n mPackageStatusStorage.generateCheckToken(INITIAL_APP_PACKAGE_VERSIONS);\n\n // Initialize the tracker.\n assertFalse(mPackageTracker.start());\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Receiving a check result when tracking is disabled should cause the storage to be reset.\n mPackageTracker.recordCheckResult(createArbitraryCheckToken(), true /* success */);\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Assert the storage was reset.\n checkPackageStorageStatusIsInitialOrReset();\n }", "public void m23075a() {\n }", "public boolean mo3363f() {\n /*\n r2 = this;\n androidx.appcompat.widget.Toolbar r0 = r2.f2802a\n int r1 = r0.getVisibility()\n if (r1 != 0) goto L_0x0012\n androidx.appcompat.widget.ActionMenuView r0 = r0.f466b\n if (r0 == 0) goto L_0x0012\n boolean r0 = r0.f304t\n if (r0 == 0) goto L_0x0012\n r0 = 1\n goto L_0x0013\n L_0x0012:\n r0 = 0\n L_0x0013:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C0661j3.mo3363f():boolean\");\n }", "public boolean mo9376a() {\n return true;\n }", "public Navigator getNavigator() {\n\t\treturn null;\n\t}", "@Test\n public void trackingDisabled_unsolicitedResultsIgnored_withoutToken() {\n configureTrackingDisabled();\n\n // Initialize the tracker.\n assertFalse(mPackageTracker.start());\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Receiving a check result when tracking is disabled should cause the storage to be\n // reset.\n mPackageTracker.recordCheckResult(null /* checkToken */, true /* success */);\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Assert the storage was reset.\n checkPackageStorageStatusIsInitialOrReset();\n }", "public interface C43014c extends C1694a {\n\n /* renamed from: com.tencent.mm.plugin.expt.a.c$a */\n public enum C38982a {\n MM_DEFAULT(0),\n MMAppMgr_Activated(1),\n MMAppMgr_Deactivated(2),\n MMLifeCall_OnResume(3),\n MMLifeCall_OnPause(4),\n MMActivity_OnResume(5),\n MMActivity_OnPause(6),\n MMActivity_Back2Front(7),\n MMActivity_Front2Back(8);\n \n public int value;\n\n static {\n AppMethodBeat.m2505o(128627);\n }\n\n private C38982a(int i) {\n this.value = i;\n }\n\n /* renamed from: uW */\n public static C38982a m66222uW(int i) {\n switch (i) {\n case 1:\n return MMAppMgr_Activated;\n case 2:\n return MMAppMgr_Deactivated;\n case 3:\n return MMLifeCall_OnResume;\n case 4:\n return MMLifeCall_OnPause;\n case 5:\n return MMActivity_OnResume;\n case 6:\n return MMActivity_OnPause;\n case 7:\n return MMActivity_Back2Front;\n case 8:\n return MMActivity_Front2Back;\n default:\n return MM_DEFAULT;\n }\n }\n }\n\n void logout();\n}", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void c(int r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r2 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((int) r11) // Catch:{ all -> 0x004b }\n r10.o = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.c(int):void\");\n }", "private android.media.AudioTrack createStreamingAudioTrack() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.speech.tts.BlockingAudioTrack.createStreamingAudioTrack():android.media.AudioTrack, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.createStreamingAudioTrack():android.media.AudioTrack\");\n }", "C0832f m5767a() throws C0841b, WDException;", "public void mo11153b() {\n m48032c(false);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public boolean getVoiceSearchLaunchWebSearch() {\n/* 178 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface C31889b {\n }" ]
[ "0.5378401", "0.52770215", "0.51715815", "0.5169373", "0.51204574", "0.48876154", "0.4886587", "0.48793775", "0.48584127", "0.4822454", "0.48029062", "0.4768471", "0.47536564", "0.475337", "0.47037005", "0.46880558", "0.46755502", "0.46669096", "0.46584514", "0.4656334", "0.46495432", "0.46477428", "0.4641107", "0.46336648", "0.46326748", "0.46289822", "0.46232745", "0.46150526", "0.46102613", "0.46026272", "0.46021682", "0.4601713", "0.45980394", "0.45973432", "0.45942253", "0.4589946", "0.4586737", "0.45860183", "0.4580572", "0.45715716", "0.45696938", "0.45687556", "0.45686182", "0.45597935", "0.4554773", "0.4544474", "0.45435357", "0.45389292", "0.45337123", "0.45333165", "0.45328832", "0.4529667", "0.4526924", "0.45200807", "0.45200387", "0.45167544", "0.4505269", "0.4500415", "0.44981557", "0.4492253", "0.448026", "0.44737405", "0.44702366", "0.44698033", "0.44669306", "0.44638932", "0.44622815", "0.4461525", "0.44612584", "0.4460897", "0.4460314", "0.4460034", "0.44560084", "0.44509336", "0.44447833", "0.44357502", "0.44284907", "0.44267678", "0.4426195", "0.44232386", "0.441721", "0.4410803", "0.4407292", "0.44058454", "0.43984994", "0.43974537", "0.43901178", "0.43878812", "0.43850034", "0.43846768", "0.43845096", "0.4381047", "0.4380915", "0.43808234", "0.43712133", "0.43708044", "0.43704796", "0.43694788", "0.4362391", "0.4357643" ]
0.7311178
0
/ Methods Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152)) TE Signature : S(confirmSiteSpecificTrackingException,P(d152))
Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "void removeSiteSpecificTrackingException(ExceptionInformation args);", "void removeWebWideTrackingException(ExceptionInformation args);", "void storeWebWideTrackingException(StoreExceptionsInformation args);", "public static void traduitSiteAllemand() {\n\t\t\n\t}", "public void remoteExceptionInVerify() {\n\tremoteExceptionInVerify = true;\n }", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732792\n */\n Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(confirmWebWideTrackingException,27,,P(d153))\n * TE Signature : S(confirmWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732891\n */\n Boolean confirmWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153))\n * TE Signature : S(removeSiteSpecificTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732965\n */\n void removeSiteSpecificTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeWebWideTrackingException,289,,P(d153))\n * TE Signature : S(removeWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733040\n */\n void removeWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154))\n * TE Signature : S(storeSiteSpecificTrackingException,P(d154))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733110\n */\n void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(storeWebWideTrackingException,289,,P(d155))\n * TE Signature : S(storeWebWideTrackingException,P(d155))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733202\n */\n void storeWebWideTrackingException(StoreExceptionsInformation args);\n}", "@Then(\"^i should redirected to confirmation page$\")\n public void i_should_redirected_to_confirmation_page() throws Throwable {\n throw new PendingException();\n }", "void mo57276a(Exception exc);", "public abstract void mo33865a(Throwable th, Throwable th2);", "public static String _takeselfie_click() throws Exception{\nreturn \"\";\n}", "public void clickConfirmRemoveAgentButton() throws Exception {\n\n\t\twdriver.findElement(By.xpath(WebData.confirmRemoveAgentButton)).click();\n\t}", "public void sendDiscrepancyEmail() throws Exception;", "public abstract void mo13751b(Throwable th, Throwable th2);", "final /* synthetic */ void m36058a(Throwable th) throws Exception {\n this.f29981a.showErrorUnMuteNotifications();\n }", "public final void mo6481a(Throwable th) {\n }", "@Override\n public void verifyAirInformationPage() {\n String currentURL = getWebdriverInstance().getCurrentUrl();\n if (!currentURL.contains(\"flight-information\")) {\n throw new org.openqa.selenium.NotFoundException(\"Was expecting to be on SEO flight information page\" +\n \" but was on\" + currentURL);\n }\n }", "@When(\"^customer selecting the new message and verifies the target page$\")\r\n\tpublic void customer_selecting_the_new_message_and_verifies_the_target_page() throws Throwable {\n\t\tthrow new PendingException();\r\n\t}", "final /* synthetic */ void m36062b(Throwable th) throws Exception {\n this.f29981a.showErrorMuteNotifications();\n }", "public final void mo57296a(Exception exc) {\n C7573i.m23587b(exc, \"e\");\n C28951i iVar = (C28951i) this.f67572c;\n if (iVar != null) {\n iVar.mo74239a(exc);\n }\n }", "public static void m5825e() {\n if (f4669a != null) {\n f4669a.m12578a(\"Background_webview_fail\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"Background_webview_fail\"));\n }", "private void m15515d(Throwable th) {\n HashMap hashMap = new HashMap();\n C8435g gVar = new C8435g();\n if (th == null) {\n hashMap.put(\"invitee_status\", \"0\");\n } else if (!(th instanceof ApiServerException)) {\n hashMap.put(\"invitee_status\", \"2\");\n } else if (((ApiServerException) th).getErrorCode() == 31002) {\n hashMap.put(\"invitee_status\", \"1\");\n } else {\n hashMap.put(\"invitee_status\", \"2\");\n }\n C8443c.m25663a().mo21606a(\"connection_invite\", hashMap, new C8438j().mo21599b(\"live\").mo21603f(\"other\").mo21598a(\"live_detail\"), gVar.mo21594b(this.f13394b.getOwner().getId()).mo21596c(this.f13396d.f11667e).mo21595b((String) C8946b.f24396aU.mo22117a()).mo21590a(((Integer) C8946b.f24390aO.mo22117a()).intValue()).mo21591a(this.f13396d.f11669g), this.f13396d.mo11449b(), Room.class);\n }", "public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }", "@Override\r\n\tpublic void afterAlertAccept(WebDriver arg0) {\n\t\t\r\n\t}", "void setSiteMessage( HttpServletRequest request, String strMessage, int nTypeMessage, String strUrlReturn ) throws SiteMessageException;", "public final void mo61680a(Exception exc) {\n if (this.f94801aw != null) {\n this.f94801aw.mo91617g();\n }\n if ((exc instanceof ApiServerException) && ((ApiServerException) exc).getErrorCode() == 20022) {\n C6906g.m21511a(getActivity(), \"profile_image_setting\", \"review_failure\");\n }\n C22814a.m75245a(getActivity(), exc, R.string.d0);\n }", "public final /* synthetic */ void mo9087a(Throwable th) throws Exception {\n if (th instanceof ApiServerException) {\n this.f8105a.mo8776b(((ApiServerException) th).getErrorCode());\n }\n this.f8105a.mo8776b(0);\n }", "final /* synthetic */ void m65929b(Throwable th) {\n if (H() != null) {\n ((SpotifyTrackSearchTarget) H()).toastError(R.string.spotify_connection_error);\n }\n }", "public void inquiryError() {\n\t\t\n\t}", "public void clickOnNotNowBtn() throws Exception {\n\t\tgetHomepagenotnowbtn().waitForVisible();\n\t\tJavascriptExecutor executor = (JavascriptExecutor) driver;\n\t\texecutor.executeScript(\"arguments[0].click()\",homepagenotnowbtn);\n\t\tSystem.out.println(\"alert is closed\" + homepagenotnowbtn);\n\t\twaitForPageToLoad();\n\t}", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "@Override\n\tpublic void update_in_DB() throws CouponSiteMsg \n\t{\n\t\t\n\t}", "public void handleSilentException(Throwable e) {\n mCrashProperties.put(IS_SILENT_KEY, \"true\");\r\n handleException(e, ReportingInteractionMode.SILENT);\r\n }", "final /* synthetic */ void m65926a(Throwable th) {\n if (H() != null) {\n ((SpotifyTrackSearchTarget) H()).toastError(R.string.spotify_connection_error);\n }\n }", "public void mo55257a(Void voidR) {\n C3490e3.m665e(\"Analytics sent successfully\");\n }", "void mo67922a(AbstractC32732ag agVar, Throwable th);", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "@Override\r\n\tpublic Object consistence(int siteId) throws RemoteException, Exception {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Object synchro(int siteId) throws Exception {\n\t\treturn null;\r\n\t}", "private void sendOldError(Exception e) {\n }", "public void m9741j() throws cf {\r\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "@java.lang.Override\n public boolean hasAbort() {\n return stepInfoCase_ == 14;\n }", "protected void thoroughInspection() {}", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo1962e() throws cf {\r\n }", "@java.lang.Override\n public boolean hasAbort() {\n return stepInfoCase_ == 14;\n }", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "@Override\r\n\tpublic void afterAlertDismiss(WebDriver arg0) {\n\t\t\r\n\t}", "public void test1152() throws Exception {\n try {\n invoke(createDispatchForNonAnonymousWithWSDLWithoutAddressing(),\n MESSAGES.getNonAnonymousReplyToNoneFaultToMessage(),\n S11_NS,\n getNonAnonymousEndpointAddress(),\n clientAddress,\n ECHO_IN_ACTION,\n \"fault-test1152\");\n fail(\"WebServiceException must be thrown\");\n } catch (WebServiceException e) {\n assertEquals(\"No response returned.\", e.getMessage());\n }\n }", "public void catchVerify(RuntimeException e) {\n\tverifyTrap = e;\n }", "@Override\n public void abort(RuntimeStep exe) {\n }", "@Então(\"a especificação deve finalizar com sucesso$\")\n\tpublic void aEspecificaçãoDeveFinalizarComSucesso() throws Throwable {\n\t\tthrow new PendingException();\n\t}", "private final void m6487e() throws C0918i {\n try {\n WDAppManager.m2565a(f2486z[4], f2486z[5]);\n } catch (C0653m e) {\n throw new C0918i((int) C0607n.wd, e.getMessage());\n }\n }", "public static void clickAlerts() throws Exception{\n \tclickOnviewMore();\n \t//cliking on aboutthisapp\n \tclickOnAboutthisapp();\t\n \t clickOnVersionnumber();\n \tclickOntestmodesettings() ;\n \t\n \tclickOnAlerts();\n \n \t\n}", "public void mo55257a(Void voidR) {\n C3490e3.m665e(\"Analytics v2 sent successfully\");\n this.f1481a.mo55257a(this.f1482b);\n }", "@Given(\"^customer is on home page$\")\n\tpublic void customer_is_on_home_page() throws Throwable {\n\t throw new PendingException();\n\t}", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tWindow.alert(\"failed to add new Information Request in Updated list\");\r\n\t\t\t}", "public void mo1944a() throws cf {\r\n }", "@Override\n\tpublic void delete_from_DB() throws CouponSiteMsg\n\t{\n\t\t\n\t}", "private void handleInvalidSimNotify(int r1, android.os.AsyncResult r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleInvalidSimNotify(int, android.os.AsyncResult):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleInvalidSimNotify(int, android.os.AsyncResult):void\");\n }", "public Throwable method_8075() {\r\n return this.field_7865;\r\n }", "@Override\r\n\tpublic void failed(Throwable exc, SessionState attachment) {\n\r\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean Verify_NonIpoConfirmation() {\n\t\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed();\n\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"DISPLAYED\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERRECEIVED_LABEL).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"DISPLAYED\");\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.WHATNEXT_SECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"DISPLAYED\");\n\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed();\n\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"DISPLAYED\");\n\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"DISPLAYED\");\n\t\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.MYSTORE_SECTION).isDisplayed();\n\t\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"DISPLAYED\");\n\t\t\t\t\t\t flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.GOTOHOMEPAGE_BUTTON).isDisplayed();\n\t\t\t\t\t\t if(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");\n\t\t\t\t\t\t\t}else{extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"NOTDISPLAYED\");}\n\t\t \t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"NOTDISPLAYED\");}\n\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"NOTDISPLAYED\");}\n\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"NOTDISPLAYED\");}\n\t\nreturn flag;\n\t}", "@Suspendable\n @Override\n protected void checkTransaction(SignedTransaction stx) throws FlowException {\n }", "@Override\r\npublic void onException(Throwable arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}", "private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessage = e.getCause() != null? e.getCause().getLocalizedMessage() : null;\n String combinedExceptionMessage = \"primary message:\"+exceptionPrimaryMessage+(exceptionSecondaryMessage!=null?(\"; secondary message: \"+exceptionSecondaryMessage):(\"\"));\n \n //chances are this is the Oracle MCS erro message. If so then ths message has a JSON format. A simple JSON parsing \n //test will show if our assumption is true. If JSONObject parsing fails then apparently the message is not the MCS\n //error message\n //{\n // \"type\":\".....\",\n // * \"status\": <error_code>,\n // * \"title\": \"<short description of the error>\",\n // * \"detail\": \"<long description of the error>\",\n // * \"o:ecid\": \"...\",\n // * \"o:errorCode\": \"MOBILE-<MCS error number here>\",\n // * \"o:errorPath\": \"<URI of the request>\"\n // }\n if(exceptionSecondaryMessage!=null){\n try {\n JSONObject jsonErrorObject = new JSONObject(exceptionSecondaryMessage);\n //if we get here, then its a Oracle MCS error JSON Object. Get the \n //status code or set it to 0 (means none is found)\n int statusCode = jsonErrorObject.optInt(\"status\", 0);\n throw new ServiceProxyException(statusCode, exceptionSecondaryMessage);\n \n } catch (JSONException jse) {\n //if parsing fails, the this is proof enough that the error message is not \n //an Oracle MCS message and we need to continue our analysis\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception message is not a Oracle MCS error JSONObject\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n } \n }\n \n //continue message analysis and check for known error codes for the references MCS API\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Rest invocation failed with following message\"+exceptionPrimaryMessage, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n int httpErrorCode = -1; \n String restoredOracleMcsErrorMessage = null;\n \n /*\n * Try to identify an MCS failure from the exception message.\n */\n if(combinedExceptionMessage.contains(\"400\")){\n httpErrorCode = 400; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(400, \"Invalid JSON payload\", \"One of the following problems occurred: \" +\n \"the user does not exist, the JSON is invalid, or a property was not found.\", uri);\n }\n else if(combinedExceptionMessage.contains(\"401\")){\n httpErrorCode = 401; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(401, \"Authorization failure\", \"The user is not authorized to retrieve the information for another user.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(403, \"Functionality is not supported\", \"Functionality is not supported.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(404, \"User not found\", \"The user with the specified ID does not exist.\",uri);\n }\n \n else{\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request failed with Exception: \"+e.getClass().getSimpleName()+\"; message: \"+e.getLocalizedMessage(), this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(e.getLocalizedMessage(), ServiceProxyException.ERROR);\n }\n //if we get here then again its an Oracle MCS error, though one we found by inspecting the exception message\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request succeeded successful but failed with MCS application error. HTTP response: \"+httpErrorCode+\", Error message: \"+restoredOracleMcsErrorMessage, this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(httpErrorCode, restoredOracleMcsErrorMessage);\n }", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "void m5771e() throws C0841b;", "public SiteSpec verifySiteSelection() {\n return null;\n }", "private void checkSirsiResponseForErrors(AcceptItemTransactionResults acceptItemTransactionResults) throws SymphonyConnectorException {\n if (!acceptItemTransactionResults.getStatusCode().equalsIgnoreCase(SymphonyConstants.ACCEPT_ITEM_SUCCESSFUL)) {\r\n \tSymphonyConnectorException symphonyConnectorException = new SymphonyConnectorException(acceptItemTransactionResults.getStatusCode());\r\n \tthrow symphonyConnectorException;\r\n }\r\n }", "@And(\"^user clicks Manage Company$\")\n\tpublic void user_clicks_Manage_Company() throws Throwable {\n\t\ttry\n\t\t{\n\t\t SeleniumOperations.clickButton(\"//a[@title='Manage Company']\");\n\t\t HTMLReportGenerator.StepDetails(\"pass\", \"user clicks Manage Company\", \"Expected:User should able to click Manage Company,Actual:User clicked Manage Company successfully\");\n\t\t// String op1=\"Expected:User should able to click Manage Company:\"+\",Actual:User is able to click Manage Company Successfully,Exception:NA\";\n\t \t//System.out.println(op1);\n\t\t \n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\t HTMLReportGenerator.StepDetails(\"Fail\", \"user clicks Manage Company\", \"Expected:User should able to click Manage Company,Actual:Failed to clicked Manage Company \");\n\t\t\t//String op1=\"Expected:User should able to click Manage Company:\"+\",Actual:Flied to click Manage Company ,Exception:\"+ex.getMessage();\n\t \t//System.out.println(op1);\n\t\t}\n\t}", "@Override\r\n\tpublic void onErrorGetVerifyCode(Exception exception) {\n\t\tif (exception.getCause() instanceof ConnectTimeoutException) {\r\n\t\t\tSystem.out.println(\"ConnectionTimeoutException\");\r\n\t\t}\r\n\t\tif (exception instanceof ResourceAccessException) {\r\n\t\t\tSystem.out.println(\"ResourceAccessException\");\r\n\t\t}\r\n\t\tdisplayShortMsg(\"网络连接出错\");\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1500);\r\n\t}", "public final /* synthetic */ void mo9966a(Throwable th) throws Exception {\n C9076n.m27095a(this.f9684m.getActivity(), th);\n }", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "public void mo5385r() {\n throw null;\n }", "public void clickTaxExemptLink()\n\t{\n \telementUtils.performElementClick(wbTaxExemptLink);\n\t}", "@Then(\"^user is on Your Account page$\")\r\n public void user_is_on_Your_Account_page() throws Throwable {\n throw new PendingException();\r\n }", "@Given(\"^customer open the application$\")\r\n\tpublic void customer_open_the_application() throws Throwable {\n\r\n\t\tSystem.out.println(\"my scripts are execting\");\r\n\t\tthrow new PendingException();\r\n\t}", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.execDetails(1274, contractDetails0.m_summary, (Execution) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void afterAlertAccept(WebDriver driver) {\n\t\t\r\n\t}", "public void btnActualizarSecuencia()\r\n/* 653: */ {\r\n/* 654:727 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null;\r\n/* 655:728 */ PuntoDeVenta puntoDeVenta = AppUtil.getPuntoDeVenta();\r\n/* 656: */ try\r\n/* 657: */ {\r\n/* 658:731 */ if (puntoDeVenta != null) {\r\n/* 659:732 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, this.facturaProveedorSRI\r\n/* 660:733 */ .getFechaEmisionRetencion());\r\n/* 661: */ }\r\n/* 662:735 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), this.facturaProveedorSRI\r\n/* 663:736 */ .getFechaEmisionRetencion());\r\n/* 664: */ \r\n/* 665:738 */ this.facturaProveedorSRI.setNumeroRetencion(numero);\r\n/* 666:739 */ this.facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion());\r\n/* 667: */ }\r\n/* 668: */ catch (ExcepcionAS2 e)\r\n/* 669: */ {\r\n/* 670:741 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage());\r\n/* 671: */ }\r\n/* 672: */ }", "public final void mo83182c_(Exception exc) {\n }", "private void onButtonErrorClick() {\n mNavigationCallback.goToStepRqst(NavigationCallback.RegistrationSteps.MARKET_SELECTION);\n }", "public final /* synthetic */ void mo12622a(Throwable th) throws Exception {\n mo13031m(th);\n C4484aj.m14993a(th);\n }", "public final /* synthetic */ void mo12619a(C3479d dVar) throws Exception {\n this.f13396d.lambda$put$1$DataCenter(\"cmd_log_link\", \"REJECT_ANOTHER_GAME_SUCCEED\");\n }", "public static void requestLocationUpdate() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.76328", "0.69899076", "0.6868519", "0.6394668", "0.62680364", "0.5725721", "0.55303705", "0.5505755", "0.5358721", "0.5232941", "0.51815796", "0.51235974", "0.511804", "0.5103334", "0.50961274", "0.50119466", "0.5002618", "0.49808025", "0.49565205", "0.490724", "0.48590797", "0.48529544", "0.4846974", "0.48412272", "0.48376986", "0.48372328", "0.48186785", "0.4817099", "0.4809571", "0.4806716", "0.47938436", "0.47846", "0.47846", "0.47844204", "0.47836995", "0.47791052", "0.47748998", "0.4743482", "0.4734689", "0.4734281", "0.47333872", "0.4732855", "0.4720807", "0.47204238", "0.47204238", "0.47187275", "0.47084028", "0.47074792", "0.47074792", "0.4702868", "0.46992594", "0.46988904", "0.46988904", "0.46943662", "0.4693877", "0.46921778", "0.4690486", "0.46903354", "0.4684418", "0.46739593", "0.46689782", "0.46574378", "0.46541607", "0.46541607", "0.46539268", "0.46497232", "0.46438628", "0.46436155", "0.46409437", "0.46389058", "0.46361613", "0.46361613", "0.46356595", "0.4633918", "0.46182162", "0.46177903", "0.46153575", "0.46153575", "0.46026534", "0.46001676", "0.4599692", "0.45954457", "0.45948866", "0.45886216", "0.45871836", "0.4587165", "0.45863825", "0.4581007", "0.45806396", "0.45801604", "0.4579644", "0.45740697", "0.45740697", "0.45710167", "0.45690355", "0.455959", "0.45588815", "0.45549905", "0.45524922", "0.4546023" ]
0.844774
0
Std Signature : S(confirmWebWideTrackingException,27,,P(d153)) TE Signature : S(confirmWebWideTrackingException,P(d153))
Boolean confirmWebWideTrackingException(ExceptionInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeWebWideTrackingException(ExceptionInformation args);", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "void storeWebWideTrackingException(StoreExceptionsInformation args);", "synchronized public static String traceErrorForWeb(Throwable e) {\n\n StringBuffer sb = new StringBuffer();\n\n sb.append(\n \"&nbsp;<font color='blue'><a href='#' onclick='$(info\" + e.hashCode() + \").style.display=\\\"block\\\"'>details</a>\"\n + \"<div id='info\" + e.hashCode() + \"' style='display:none'>\" + e.toString() + \" \" + Tools.traceError(e) + \"</div></font>\"\n );\n return sb.toString();\n }", "public static String _takeselfie_click() throws Exception{\nreturn \"\";\n}", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "void mo57276a(Exception exc);", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "void m5771e() throws C0841b;", "public static void m5825e() {\n if (f4669a != null) {\n f4669a.m12578a(\"Background_webview_fail\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"Background_webview_fail\"));\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public static String _imghuevos_click() throws Exception{\nreturn \"\";\n}", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732792\n */\n Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(confirmWebWideTrackingException,27,,P(d153))\n * TE Signature : S(confirmWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732891\n */\n Boolean confirmWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153))\n * TE Signature : S(removeSiteSpecificTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732965\n */\n void removeSiteSpecificTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeWebWideTrackingException,289,,P(d153))\n * TE Signature : S(removeWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733040\n */\n void removeWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154))\n * TE Signature : S(storeSiteSpecificTrackingException,P(d154))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733110\n */\n void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(storeWebWideTrackingException,289,,P(d155))\n * TE Signature : S(storeWebWideTrackingException,P(d155))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733202\n */\n void storeWebWideTrackingException(StoreExceptionsInformation args);\n}", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "void m5770d() throws C0841b;", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void mo1534c() {\n C2201w.m8373a(\"Photo TransferData failed!\", 1);\n }", "public void mo1962e() throws cf {\r\n }", "void m5768b() throws C0841b;", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }", "public void mo1944a() throws cf {\r\n }", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "public abstract void mo33865a(Throwable th, Throwable th2);", "public static String _imgpupas_click() throws Exception{\nreturn \"\";\n}", "void m5769c() throws C0841b;", "private void m6645a(WebResourceError webResourceError) {\n if (!z) {\n if (this.f5306c.m25420a(webResourceError)) {\n m6644a();\n return;\n }\n }\n this.f5306c.f19105g.mo1302a(this.f5306c, C1700b.f5124f);\n }", "@Test(timeout = 4000)\n public void test188() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"/\", \"org.mvel.conversion.CharArrayCH$1\");\n // Undeclared exception!\n try { \n hidden0.getPage();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "final /* synthetic */ void m36058a(Throwable th) throws Exception {\n this.f29981a.showErrorUnMuteNotifications();\n }", "public abstract void mo13751b(Throwable th, Throwable th2);", "public final void mo6481a(Throwable th) {\n }", "public void mo1964g() throws cf {\r\n }", "void removeSiteSpecificTrackingException(ExceptionInformation args);", "public static void m5846r() {\n if (f4669a != null) {\n f4669a.m12578a(\"webview_load_error\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"webview_load_error\"));\n }", "@Test\n public void test084() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n String string0 = errorPage0.encode(\"%k8|vhOy\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void m9741j() throws cf {\r\n }", "void mo43357a(C16726e eVar) throws RemoteException;", "@Test(timeout = 4000)\n public void test364() throws Throwable {\n Submit submit0 = new Submit((Component) null, \"&!a0Q!<8UDk+%_*<Z'\", \"f$O#H/<9`I{%}A,c_ \");\n // Undeclared exception!\n try { \n submit0.frame(\"&!a0Q!<8UDk+%_*<Z'\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"]f '8Drr>Uj1==M2\", \"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n hidden0.h3((Object) \"java.lang.StringBuffer@0000000004\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-163118866), \"PwU}Ru&{'yR\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -163118866\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public DTMDOMException(short code) {\n/* 49 */ super(code, \"\");\n/* */ }", "public void mo1976s() throws cf {\r\n }", "public void ShowSSLDialog(java.lang.String r23, byte[] r24, android.net.http.SslCertificate r25, boolean r26) {\n /*\n r22 = this;\n r3 = com.adobe.air.AndroidActivityWrapper.GetAndroidActivityWrapper();\n r10 = r3.getActivity();\n if (r10 != 0) goto L_0x000e;\n L_0x000a:\n r10 = r3.WaitForNewActivity();\n L_0x000e:\n r7 = new com.adobe.air.AndroidAlertDialog;\n r7.<init>(r10);\n r16 = r7.GetAlertDialogBuilder();\n r9 = r10.getLayoutInflater();\n r14 = r10.getResources();\n r19 = \"ssl_certificate_warning\";\n r0 = r19;\n r17 = com.adobe.air.utils.Utils.GetLayoutView(r0, r14, r9);\n if (r17 == 0) goto L_0x0178;\n L_0x0029:\n r18 = r17.getResources();\n r19 = \"ServerName\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r15 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r15 = (android.widget.TextView) r15;\n r19 = new java.lang.StringBuilder;\n r19.<init>();\n r20 = r15.getText();\n r19 = r19.append(r20);\n r20 = \" \";\n r19 = r19.append(r20);\n r0 = r19;\n r1 = r23;\n r19 = r0.append(r1);\n r19 = r19.toString();\n r0 = r19;\n r15.setText(r0);\n r5 = 0;\n if (r24 == 0) goto L_0x0179;\n L_0x0062:\n r5 = new com.adobe.air.Certificate;\n r5.<init>();\n r0 = r24;\n r5.setCertificate(r0);\n L_0x006c:\n r19 = \"IDA_CERTIFICATE_DETAILS\";\n r0 = r19;\n r6 = com.adobe.air.utils.Utils.GetResourceString(r0, r14);\n r19 = 8;\n r0 = r19;\n r0 = new java.lang.Object[r0];\n r19 = r0;\n r20 = 0;\n r21 = r5.getIssuedToCommonName();\n r19[r20] = r21;\n r20 = 1;\n r21 = r5.getIssuedToOrganization();\n r19[r20] = r21;\n r20 = 2;\n r21 = r5.getIssuedToOrganizationalUnit();\n r19[r20] = r21;\n r20 = 3;\n r21 = r5.getIssuedByCommonName();\n r19[r20] = r21;\n r20 = 4;\n r21 = r5.getIssuedByOrganization();\n r19[r20] = r21;\n r20 = 5;\n r21 = r5.getIssuedByOrganizationalUnit();\n r19[r20] = r21;\n r20 = 6;\n r21 = r5.getIssuedOn();\n r19[r20] = r21;\n r20 = 7;\n r21 = r5.getExpiresOn();\n r19[r20] = r21;\n r0 = r19;\n r8 = java.lang.String.format(r6, r0);\n r19 = \"CertificateDetails\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r4 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r4 = (android.widget.TextView) r4;\n r19 = android.widget.TextView.BufferType.SPANNABLE;\n r0 = r19;\n r4.setText(r8, r0);\n r19 = \"NeutralButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r12 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r12 = (android.widget.Button) r12;\n r19 = new com.adobe.air.SSLSecurityDialog$1;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r12.setOnClickListener(r0);\n r19 = \"PositiveButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r13 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r13 = (android.widget.Button) r13;\n if (r26 == 0) goto L_0x0182;\n L_0x0103:\n r19 = new com.adobe.air.SSLSecurityDialog$2;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r13.setOnClickListener(r0);\n r19 = 0;\n r0 = r19;\n r13.setVisibility(r0);\n L_0x0118:\n r19 = \"NegativeButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r11 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r11 = (android.widget.Button) r11;\n r19 = new com.adobe.air.SSLSecurityDialog$3;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r11.setOnClickListener(r0);\n r16.setView(r17);\n r19 = new com.adobe.air.SSLSecurityDialog$4;\n r0 = r19;\n r1 = r22;\n r0.<init>();\n r0 = r16;\n r1 = r19;\n r0.setOnKeyListener(r1);\n r19 = new com.adobe.air.SSLSecurityDialog$5;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r10.runOnUiThread(r0);\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.lock();\n r0 = r22;\n r0 = r0.m_useraction;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n if (r19 != 0) goto L_0x016f;\n L_0x0166:\n r0 = r22;\n r0 = r0.m_condition;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n r19.await();\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n L_0x016f:\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n L_0x0178:\n return;\n L_0x0179:\n r5 = new com.adobe.air.Certificate;\n r0 = r25;\n r5.<init>(r0);\n goto L_0x006c;\n L_0x0182:\n r19 = 8;\n r0 = r19;\n r13.setVisibility(r0);\n goto L_0x0118;\n L_0x018a:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n goto L_0x0178;\n L_0x0195:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r20 = r0;\n r20.unlock();\n throw r19;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.air.SSLSecurityDialog.ShowSSLDialog(java.lang.String, byte[], android.net.http.SslCertificate, boolean):void\");\n }", "@Test(timeout = 4000)\n public void test155() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Submit submit0 = new Submit(xmlEntityRef0, \"\\\"8[P\", \"\\\"8[P\");\n // Undeclared exception!\n try { \n submit0.dfn((Object) null);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test293() throws Throwable {\n Form form0 = new Form(\"p|qV6$[lYUxn\\\"2`n%sF\");\n Submit submit0 = new Submit(form0, \"<=`.%?/-.[rY6>q\", \"p|qV6$[lYUxn\\\"2`n%sF\");\n // Undeclared exception!\n try { \n submit0.dt();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test268() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.rawText(\"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test292() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.code((Object) \"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test182() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getRevision();\n resultMatrixSignificance0.setColHidden(2, true);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixHTML0);\n // Undeclared exception!\n try { \n resultMatrixSignificance1.getHeader(\"B|A2 e+ >ww+37F\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void mo1966i() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"4wW\", \"java.lang.String@0000000002\");\n // Undeclared exception!\n try { \n hidden0.s();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public Throwable method_8075() {\r\n return this.field_7865;\r\n }", "public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }", "public abstract void mo53562a(C18796a c18796a);", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n Submit submit0 = new Submit(xmlEntityRef0, \"java.lang.String@0000000005\", \"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n submit0.rawText(\"java.lang.String@0000000005\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void mo1963f() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"wheel_ErrorPage\");\n ActionExpression actionExpression0 = new ActionExpression(\"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n xmlEntityRef0.strike((Object) actionExpression0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n // Undeclared exception!\n try { \n frame0.execute(5, 3, (ClassWriter) null, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "final /* synthetic */ void m36062b(Throwable th) throws Exception {\n this.f29981a.showErrorMuteNotifications();\n }", "static void m14941f(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "public JSimSecurityException(String pars)\n\t{\n\t\tsuper(\"J-Sim cannot execute the required action because of a (potential) security violation.\", pars);\n\t}", "public void mo1972o() throws cf {\r\n }", "void mo13373a(int i, ErrorCode errorCode, ByteString byteString);", "public void sendeFehlerHelo();", "@Test\n public void test141() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n TableRow tableRow0 = new TableRow(errorPage0);\n Block block0 = (Block)tableRow0.td();\n // Undeclared exception!\n try {\n FormElement formElement0 = block0.submit(\"&5E<\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }", "public static /* synthetic */ void m64977a(Throwable th) throws Exception {\n f45958a.mo9825b(C6969H.m41409d(\"G7B86D615AD34EB3DE71D9B08F4E4CADB\"));\n }", "C0832f m5767a() throws C0841b, WDException;", "public abstract void mo13750a(Throwable th, PrintWriter printWriter);", "@Test(timeout = 4000)\n public void test241() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n // Undeclared exception!\n try { \n xmlEntityRef0.q();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "void mo1343w(String str, String str2, Throwable th);", "int mo23350e(String str, String str2, Throwable th);", "@Test(timeout = 4000)\n public void test285() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n xmlEntityRef0.small((Object) \"cript\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n String string0 = \"mutSn)_E\";\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-2350), \"/h\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2350\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public C13463c(Throwable th) {\n super(th, null);\n C32569u.m150519b(th, \"e\");\n }", "private final void m6487e() throws C0918i {\n try {\n WDAppManager.m2565a(f2486z[4], f2486z[5]);\n } catch (C0653m e) {\n throw new C0918i((int) C0607n.wd, e.getMessage());\n }\n }", "@Test(timeout = 4000)\n public void test288() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.htmlText(\"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test160() throws Throwable {\n Form form0 = new Form(\"O@h'eF\");\n Checkbox checkbox0 = new Checkbox(form0, \"INVOKEVIRTUAL java/lang/Byte.byteValue\", \"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n checkbox0.dateInput(\"[pUE%{B\", \"INVOKEVIRTUAL java/lang/Byte.byteValue\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "final /* synthetic */ void m65926a(Throwable th) {\n if (H() != null) {\n ((SpotifyTrackSearchTarget) H()).toastError(R.string.spotify_connection_error);\n }\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n int int0 = (-1981);\n Item item1 = new Item((-1981), item0);\n item1.next = item0;\n // Undeclared exception!\n try { \n frame0.execute(175, (-1981), classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test296() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Checkbox checkbox0 = new Checkbox(xmlEntityRef0, \"expected apostrophe (') or quotation mark (\\\") after encoding and not \", \"z:_i>EAQ.Bdq@CL&k?\\\"\");\n // Undeclared exception!\n try { \n checkbox0.h4((Object) \"h3\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test128() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"C]5h\");\n // Undeclared exception!\n try { \n xmlEntityRef0.h4((Object) \"C]5h\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "void mo1332e(String str, String str2, Throwable th);", "@Test(timeout = 4000)\n public void test307() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.ins();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void inquiryError() {\n\t\t\n\t}", "public String getDisplayScript() {\n/* 577 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test163() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance0.assign(resultMatrixLatex0);\n resultMatrixSignificance0.getRowName(0);\n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"zuQ-ES@*gn\");\n Type type1 = Type.INT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(22, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test\n public void test115() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n ErrorPage errorPage1 = (ErrorPage)errorPage0.up(25);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n MXSerializer mXSerializer0 = new MXSerializer();\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"java.lang.String@0000000005\", \"/o:%Ab+Af@:#h3VI\");\n // Undeclared exception!\n try { \n hidden0.cite((Object) mXSerializer0);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }" ]
[ "0.67118436", "0.66700745", "0.6363684", "0.58435804", "0.5829917", "0.5776557", "0.5776557", "0.57516825", "0.5717889", "0.5717889", "0.5684393", "0.5646505", "0.56451446", "0.56451446", "0.5641875", "0.5641875", "0.5611291", "0.55905837", "0.5585575", "0.5585575", "0.5569196", "0.5569196", "0.5549469", "0.5530827", "0.55252177", "0.55031437", "0.55031437", "0.5485451", "0.54747456", "0.5466353", "0.546402", "0.5461545", "0.5450588", "0.5450588", "0.5420503", "0.5417704", "0.5389571", "0.53777784", "0.53775585", "0.53573585", "0.5352234", "0.53476477", "0.53083223", "0.52974516", "0.52910364", "0.5287142", "0.5267112", "0.52561116", "0.52533484", "0.52518815", "0.5247994", "0.5239374", "0.5234577", "0.5230068", "0.5224041", "0.5212598", "0.52019167", "0.5189907", "0.516879", "0.515899", "0.5154939", "0.5147195", "0.5140483", "0.51295453", "0.5118848", "0.5100082", "0.508552", "0.5083903", "0.50830334", "0.50775385", "0.5076709", "0.5074094", "0.5069286", "0.5065883", "0.50587523", "0.5056629", "0.50429404", "0.50416285", "0.50410455", "0.50403553", "0.50364184", "0.50363314", "0.50332195", "0.5031948", "0.5022968", "0.50170726", "0.5009729", "0.500917", "0.500062", "0.4996576", "0.4992803", "0.49878657", "0.49878314", "0.4983655", "0.49831083", "0.49817908", "0.49813485", "0.49754685", "0.49703258", "0.49692616" ]
0.8014084
0
Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153)) TE Signature : S(removeSiteSpecificTrackingException,P(d153))
void removeSiteSpecificTrackingException(ExceptionInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeWebWideTrackingException(ExceptionInformation args);", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "void storeWebWideTrackingException(StoreExceptionsInformation args);", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732792\n */\n Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(confirmWebWideTrackingException,27,,P(d153))\n * TE Signature : S(confirmWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732891\n */\n Boolean confirmWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153))\n * TE Signature : S(removeSiteSpecificTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732965\n */\n void removeSiteSpecificTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeWebWideTrackingException,289,,P(d153))\n * TE Signature : S(removeWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733040\n */\n void removeWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154))\n * TE Signature : S(storeSiteSpecificTrackingException,P(d154))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733110\n */\n void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(storeWebWideTrackingException,289,,P(d155))\n * TE Signature : S(storeWebWideTrackingException,P(d155))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733202\n */\n void storeWebWideTrackingException(StoreExceptionsInformation args);\n}", "void mo57276a(Exception exc);", "public void clearEndUserExceptions();", "@Override\n public void remove(int no) throws Exception {\n \n }", "public void m9741j() throws cf {\r\n }", "void removeArrayOfFaultType(int i);", "public void removeRawReferrer(String paramString, long paramLong) {\n }", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "public void mo1962e() throws cf {\r\n }", "public final void mo28153e() {\n super.mo28153e();\n try {\n this.f4965f = null;\n } catch (Exception unused) {\n } catch (Throwable th) {\n this.f4964e.mo28153e();\n throw th;\n }\n this.f4964e.mo28153e();\n }", "@Test(timeout = 4000)\n public void test287() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.sub((Object) \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public abstract void mo13751b(Throwable th, Throwable th2);", "public abstract void mo33865a(Throwable th, Throwable th2);", "public void uncaughtException(java.lang.Thread r12, java.lang.Throwable r13) {\n /*\n // Method dump skipped, instructions count: 416\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.AnonymousClass00M.uncaughtException(java.lang.Thread, java.lang.Throwable):void\");\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&``$\");\n // Undeclared exception!\n try { \n xmlEntityRef0.remove(\"MKsGx6sCTImJ\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n }\n }", "TrackRailsSectionsAtPosition tryRemove(TrackRailsSingleNodeElement sectionToRemove);", "public void secondaryRemoveFaultReport(com.hps.july.persistence.FaultReport arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveFaultReport(arg0);\n }", "void m5771e() throws C0841b;", "private void m16569e() {\n this.f14723f.removeMessages(this.f14724g);\n }", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public final void mo6481a(Throwable th) {\n }", "public void clickRemoveAgentButton() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.removeAgentButton)).click();\n\t}", "public static String remove(String s, String exception) {\n\t\tint i;\n\t\twhile((i = s.indexOf(exception)) > -1)\n\t\t\ts = (i == 0) ? s.substring(i + 1) : s.substring(0, i) + s.substring(i + 1);\n\t\treturn s;\n\t}", "public final /* synthetic */ void mo9087a(Throwable th) throws Exception {\n if (th instanceof ApiServerException) {\n this.f8105a.mo8776b(((ApiServerException) th).getErrorCode());\n }\n this.f8105a.mo8776b(0);\n }", "final /* synthetic */ void m36058a(Throwable th) throws Exception {\n this.f29981a.showErrorUnMuteNotifications();\n }", "public void removeExceptionStyle();", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "@Override\r\n\tpublic void uncaughtException(Thread thread, Throwable ex) {\n\r\n\t}", "private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessage = e.getCause() != null? e.getCause().getLocalizedMessage() : null;\n String combinedExceptionMessage = \"primary message:\"+exceptionPrimaryMessage+(exceptionSecondaryMessage!=null?(\"; secondary message: \"+exceptionSecondaryMessage):(\"\"));\n \n //chances are this is the Oracle MCS erro message. If so then ths message has a JSON format. A simple JSON parsing \n //test will show if our assumption is true. If JSONObject parsing fails then apparently the message is not the MCS\n //error message\n //{\n // \"type\":\".....\",\n // * \"status\": <error_code>,\n // * \"title\": \"<short description of the error>\",\n // * \"detail\": \"<long description of the error>\",\n // * \"o:ecid\": \"...\",\n // * \"o:errorCode\": \"MOBILE-<MCS error number here>\",\n // * \"o:errorPath\": \"<URI of the request>\"\n // }\n if(exceptionSecondaryMessage!=null){\n try {\n JSONObject jsonErrorObject = new JSONObject(exceptionSecondaryMessage);\n //if we get here, then its a Oracle MCS error JSON Object. Get the \n //status code or set it to 0 (means none is found)\n int statusCode = jsonErrorObject.optInt(\"status\", 0);\n throw new ServiceProxyException(statusCode, exceptionSecondaryMessage);\n \n } catch (JSONException jse) {\n //if parsing fails, the this is proof enough that the error message is not \n //an Oracle MCS message and we need to continue our analysis\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception message is not a Oracle MCS error JSONObject\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n } \n }\n \n //continue message analysis and check for known error codes for the references MCS API\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Rest invocation failed with following message\"+exceptionPrimaryMessage, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n int httpErrorCode = -1; \n String restoredOracleMcsErrorMessage = null;\n \n /*\n * Try to identify an MCS failure from the exception message.\n */\n if(combinedExceptionMessage.contains(\"400\")){\n httpErrorCode = 400; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(400, \"Invalid JSON payload\", \"One of the following problems occurred: \" +\n \"the user does not exist, the JSON is invalid, or a property was not found.\", uri);\n }\n else if(combinedExceptionMessage.contains(\"401\")){\n httpErrorCode = 401; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(401, \"Authorization failure\", \"The user is not authorized to retrieve the information for another user.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(403, \"Functionality is not supported\", \"Functionality is not supported.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(404, \"User not found\", \"The user with the specified ID does not exist.\",uri);\n }\n \n else{\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request failed with Exception: \"+e.getClass().getSimpleName()+\"; message: \"+e.getLocalizedMessage(), this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(e.getLocalizedMessage(), ServiceProxyException.ERROR);\n }\n //if we get here then again its an Oracle MCS error, though one we found by inspecting the exception message\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request succeeded successful but failed with MCS application error. HTTP response: \"+httpErrorCode+\", Error message: \"+restoredOracleMcsErrorMessage, this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(httpErrorCode, restoredOracleMcsErrorMessage);\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1944a() throws cf {\r\n }", "public final void mo83182c_(Exception exc) {\n }", "public void mo5385r() {\n throw null;\n }", "public CWE removeRxa9_AdministrationNotes(int rep) throws HL7Exception { \r\n return (CWE) super.removeRepetition(9, rep);\r\n }", "public void mo1964g() throws cf {\r\n }", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "public void deleteSiteStats () throws DataServiceException;", "public HCISRInstance run(HCISRStackFrame sf,HCISRHeapLocation hl) throws HCISRException{\n\t\tHCISRInstance toThrow;\n\t\tif(specialVar){\n\t\t\ttoThrow = hl.getLocation(arrayIndex);\n\t\t}\n\t\telse{\n\t\t\ttoThrow = sf.getLocation(arrayIndex);\n\t\t}\n\t\tHCISRException toThrowJava = new HCISRException(\"User defined throw.\",toThrow);\n\t\tthrow toThrowJava;\n\t}", "public void mo1976s() throws cf {\r\n }", "private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }", "void removeProblem(String stopOrLineId, Date time) throws Exception;", "public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }", "@Override\n\tpublic void delete_from_DB() throws CouponSiteMsg\n\t{\n\t\t\n\t}", "public void remove()\n { \n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_NO_DELETE\"); // Message name\n \n }", "public CWE removeSubstanceTreatmentRefusalReason(int rep) throws HL7Exception { \r\n return (CWE) super.removeRepetition(18, rep);\r\n }", "void m5770d() throws C0841b;", "void m5769c() throws C0841b;", "public final void mo57296a(Exception exc) {\n C7573i.m23587b(exc, \"e\");\n C28951i iVar = (C28951i) this.f67572c;\n if (iVar != null) {\n iVar.mo74239a(exc);\n }\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public Throwable method_8075() {\r\n return this.field_7865;\r\n }", "void m5768b() throws C0841b;", "public CWE removeAdministrationNotes(int rep) throws HL7Exception { \r\n return (CWE) super.removeRepetition(9, rep);\r\n }", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "private void sendOldError(Exception e) {\n }", "public void remove(){throw new RuntimeException(\"Removing() is not implemented\");\r\n\t\t}", "void removeCrashData(int i);", "@Override\n protected void updateEliminations() {\n\n }", "public ServiceAlreadyRemovedFromServicePackageException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "public ExceptionFilter$$anonfun$doFilter$10(ExceptionFilter $outer, ObjectRef cause$1) {}", "public void remoteExceptionInVerify() {\n\tremoteExceptionInVerify = true;\n }", "public static void traduitSiteAllemand() {\n\t\t\n\t}", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "void mo43357a(C16726e eVar) throws RemoteException;", "public CWE removeIndication(int rep) throws HL7Exception { \r\n return (CWE) super.removeRepetition(19, rep);\r\n }", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "@Override\n public void onClosedWatchServiceException(ClosedWatchServiceException x) {\n\n }", "public void clearExceptions();", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "public void testRemoveException() {\r\n list.add(\"A\");\r\n Exception e = null;\r\n try {\r\n list.remove(2);\r\n } \r\n catch (Exception exception) {\r\n e = exception;\r\n }\r\n assertTrue(e instanceof IndexOutOfBoundsException);\r\n e = null;\r\n try {\r\n list.remove(-1);\r\n } \r\n catch (Exception exception) {\r\n e = exception;\r\n }\r\n assertTrue(e instanceof IndexOutOfBoundsException);\r\n }", "public void mo1963f() throws cf {\r\n }", "public void testRemoveAddresses_PersistenceException() throws Exception {\r\n try {\r\n new InformixAddressDAO(\"InformixAddressDAO_Error_4\").removeAddresses(new long[]{1}, false);\r\n fail(\"PersistenceException expected\");\r\n } catch (PersistenceException e) {\r\n //good\r\n }\r\n }", "@Test(timeout = 4000)\n public void test313() throws Throwable {\n Submit submit0 = new Submit((Component) null, \" (position:\", \"6\");\n // Undeclared exception!\n try { \n submit0.remove((Component) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test(timeout=1000)\n\tpublic void testWrongRemove(){\n\t\texception.expect(RuntimeException.class);\n\t\texception.reportMissingExceptionWithMessage(\"Student 7 shouldn`t be findable and therefore a RunTimeException should be thrown\");\n\t\tStudent[] array = new Student[7];\n\t\tarray[5] = s2; // This is the correct hash position of this student\n\t\tarray[6] = s4;\n\t\tarray[0] = s5;\n\t\tarray[3] = s1;\n\t\tarray[4] = s3;\n\t\tarray[2] = s7;\n\t\thashmap.setArray(array);\n\t\thashmap.remove(s7);\n\t}", "public static String strip(String exceptionMessage) {\n\t\tint index = exceptionMessage.lastIndexOf(\"Exception:\");\n\t\tif (index == -1) \n\t\t\treturn exceptionMessage;\n\t\telse\n\t\t\treturn exceptionMessage.substring(index+10);\n\t}", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "void unsetBodySite();", "static void m34964c(Throwable th) {\n Thread currentThread = Thread.currentThread();\n currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, th);\n }", "public native void destruirTracker();", "@Test(timeout=1000)\n\tpublic void testRemoveElementTwice() {\n\t\texception.expect(RuntimeException.class);\n\t\texception.reportMissingExceptionWithMessage(\"Student 1 was already remove and thus a RuntimeException should be thrown\");\n\t\thashmap.add(s1);\n\t\thashmap.add(s9);\n\t\thashmap.remove(s1);\n\t\thashmap.remove(s1);\n\t}", "void mo1031a(Throwable th);", "void mo67922a(AbstractC32732ag agVar, Throwable th);", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void stateMachineAbort() {\n\n\t}", "@Override\n\tpublic void stateMachineAbort() {\n\n\t}", "@Override\n\tpublic void stateMachineAbort() {\n\n\t}" ]
[ "0.76784325", "0.6833928", "0.6739401", "0.6301109", "0.6284865", "0.56054825", "0.5542324", "0.5445207", "0.5163027", "0.5134683", "0.5118083", "0.5109128", "0.5103996", "0.50978297", "0.50955164", "0.5067813", "0.50658303", "0.5064791", "0.5050658", "0.50136024", "0.49922547", "0.49759716", "0.4971799", "0.49607152", "0.49542052", "0.49542052", "0.49526724", "0.4946493", "0.49375394", "0.49314532", "0.4929841", "0.48964456", "0.48914906", "0.48914906", "0.488919", "0.48864174", "0.48853895", "0.48853895", "0.48818612", "0.48747978", "0.4867285", "0.48664188", "0.4858649", "0.48548397", "0.48515642", "0.48494542", "0.48405087", "0.48349088", "0.48297375", "0.48270023", "0.48231548", "0.4822185", "0.48204878", "0.4817683", "0.48094866", "0.48059633", "0.48031145", "0.48031145", "0.47966355", "0.4791866", "0.47903928", "0.47841567", "0.47841567", "0.47837865", "0.47748926", "0.4773245", "0.47593194", "0.47577673", "0.4757077", "0.47565082", "0.47508737", "0.47430643", "0.47430643", "0.4740124", "0.47352618", "0.4724437", "0.4724437", "0.4722746", "0.472259", "0.4718675", "0.4718675", "0.47157085", "0.47108105", "0.4710125", "0.4704094", "0.47029015", "0.47010225", "0.47009975", "0.46956414", "0.46882427", "0.4687202", "0.46867004", "0.46845326", "0.46840233", "0.46818835", "0.46769768", "0.46769768", "0.46711496", "0.46711496", "0.46711496" ]
0.82653344
0
Std Signature : S(removeWebWideTrackingException,289,,P(d153)) TE Signature : S(removeWebWideTrackingException,P(d153))
void removeWebWideTrackingException(ExceptionInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "void removeSiteSpecificTrackingException(ExceptionInformation args);", "void storeWebWideTrackingException(StoreExceptionsInformation args);", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "private void m6645a(WebResourceError webResourceError) {\n if (!z) {\n if (this.f5306c.m25420a(webResourceError)) {\n m6644a();\n return;\n }\n }\n this.f5306c.f19105g.mo1302a(this.f5306c, C1700b.f5124f);\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732792\n */\n Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(confirmWebWideTrackingException,27,,P(d153))\n * TE Signature : S(confirmWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732891\n */\n Boolean confirmWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153))\n * TE Signature : S(removeSiteSpecificTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732965\n */\n void removeSiteSpecificTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeWebWideTrackingException,289,,P(d153))\n * TE Signature : S(removeWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733040\n */\n void removeWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154))\n * TE Signature : S(storeSiteSpecificTrackingException,P(d154))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733110\n */\n void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(storeWebWideTrackingException,289,,P(d155))\n * TE Signature : S(storeWebWideTrackingException,P(d155))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733202\n */\n void storeWebWideTrackingException(StoreExceptionsInformation args);\n}", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "void m5771e() throws C0841b;", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "void mo57276a(Exception exc);", "synchronized public static String traceErrorForWeb(Throwable e) {\n\n StringBuffer sb = new StringBuffer();\n\n sb.append(\n \"&nbsp;<font color='blue'><a href='#' onclick='$(info\" + e.hashCode() + \").style.display=\\\"block\\\"'>details</a>\"\n + \"<div id='info\" + e.hashCode() + \"' style='display:none'>\" + e.toString() + \" \" + Tools.traceError(e) + \"</div></font>\"\n );\n return sb.toString();\n }", "void m5768b() throws C0841b;", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "void m5770d() throws C0841b;", "void m5769c() throws C0841b;", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "public void mo1962e() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test287() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.sub((Object) \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void m9741j() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test188() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"/\", \"org.mvel.conversion.CharArrayCH$1\");\n // Undeclared exception!\n try { \n hidden0.getPage();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&``$\");\n // Undeclared exception!\n try { \n xmlEntityRef0.remove(\"MKsGx6sCTImJ\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n }\n }", "public static void m5825e() {\n if (f4669a != null) {\n f4669a.m12578a(\"Background_webview_fail\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"Background_webview_fail\"));\n }", "public void mo1976s() throws cf {\r\n }", "public final void mo28153e() {\n super.mo28153e();\n try {\n this.f4965f = null;\n } catch (Exception unused) {\n } catch (Throwable th) {\n this.f4964e.mo28153e();\n throw th;\n }\n this.f4964e.mo28153e();\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1964g() throws cf {\r\n }", "public void test427827() throws Exception\n {\n // line 6 column 1 - Warning: missing </a> before <a>\n // line 7 column 6 - Warning: discarding unexpected </a>\n // 2 warnings, 0 errors were found!\n\n executeTidyTest(\"427827.html\");\n assertWarnings(2);\n }", "public static String _takeselfie_click() throws Exception{\nreturn \"\";\n}", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }", "final /* synthetic */ void m36058a(Throwable th) throws Exception {\n this.f29981a.showErrorUnMuteNotifications();\n }", "public void clearEndUserExceptions();", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"4wW\", \"java.lang.String@0000000002\");\n // Undeclared exception!\n try { \n hidden0.s();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void mo1972o() throws cf {\r\n }", "public static void m5846r() {\n if (f4669a != null) {\n f4669a.m12578a(\"webview_load_error\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"webview_load_error\"));\n }", "public static String _imghuevos_click() throws Exception{\nreturn \"\";\n}", "public void mo1966i() throws cf {\r\n }", "public void mo1963f() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test182() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getRevision();\n resultMatrixSignificance0.setColHidden(2, true);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixHTML0);\n // Undeclared exception!\n try { \n resultMatrixSignificance1.getHeader(\"B|A2 e+ >ww+37F\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void uncaughtException(java.lang.Thread r12, java.lang.Throwable r13) {\n /*\n // Method dump skipped, instructions count: 416\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.AnonymousClass00M.uncaughtException(java.lang.Thread, java.lang.Throwable):void\");\n }", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n MXSerializer mXSerializer0 = new MXSerializer();\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"java.lang.String@0000000005\", \"/o:%Ab+Af@:#h3VI\");\n // Undeclared exception!\n try { \n hidden0.cite((Object) mXSerializer0);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void m16569e() {\n this.f14723f.removeMessages(this.f14724g);\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"]f '8Drr>Uj1==M2\", \"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n hidden0.h3((Object) \"java.lang.StringBuffer@0000000004\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"wheel_ErrorPage\");\n ActionExpression actionExpression0 = new ActionExpression(\"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n xmlEntityRef0.strike((Object) actionExpression0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test288() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.htmlText(\"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test292() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.code((Object) \"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final void mo6481a(Throwable th) {\n }", "public abstract void mo33865a(Throwable th, Throwable th2);", "public static String _imgpupas_click() throws Exception{\nreturn \"\";\n}", "public final void mo83182c_(Exception exc) {\n }", "@Test(timeout = 4000)\n public void test268() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.rawText(\"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "public abstract void mo13751b(Throwable th, Throwable th2);", "public void test427810() throws Exception\n {\n // line 1 column 1 - Warning: missing <!DOCTYPE> declaration\n // line 8 column 1 - Warning: <blink> is not approved by W3C\n // line 9 column 1 - Warning: <wbr> is not approved by W3C\n // line 10 column 1 - Warning: <nobr> is not approved by W3C\n // Info: Document content looks like HTML Proprietary\n // 4 warnings, 0 errors were found!\n\n executeTidyTest(\"427810.html\");\n assertWarnings(4);\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "public Throwable method_8075() {\r\n return this.field_7865;\r\n }", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "public void test427834() throws Exception\n {\n // no warnings\n executeTidyTest(\"427834.html\");\n assertNoWarnings();\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "private Object logError(WebClientResponseException e, String string) {\n\t\treturn null;\n\t}", "public void mo37873b() {\n try {\n C13262e.this.f34192f.mo38032a(this.f34247f);\n } catch (IOException e) {\n C13202e d = C13202e.m34581d();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Http2Connection.Listener failure for \");\n sb.append(C13262e.this.f34194h);\n d.mo37897a(4, sb.toString(), (Throwable) e);\n try {\n this.f34247f.mo38133a(C13256a.PROTOCOL_ERROR, e);\n } catch (IOException unused) {\n }\n }\n }", "@Test\n public void test084() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n String string0 = errorPage0.encode(\"%k8|vhOy\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test285() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n xmlEntityRef0.small((Object) \"cript\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void removeExceptionStyle();", "@Test(timeout = 4000)\n public void test307() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.ins();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance0.setRemoveFilterName(false);\n resultMatrixSignificance0.assign(resultMatrixLatex0);\n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test249() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n // Undeclared exception!\n try { \n xmlEntityRef0.a((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"&!a0Q!<8UDk+%_*<Z'\", \"&!a0Q!<8UDk+%_*<Z'\");\n // Undeclared exception!\n try { \n hidden0.label();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n Submit submit0 = new Submit(xmlEntityRef0, \"java.lang.String@0000000005\", \"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n submit0.rawText(\"java.lang.String@0000000005\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@DISPID(1097) //= 0x449. The runtime will prefer the VTID if present\n @VTID(20)\n java.lang.String urlUnencoded();", "public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }", "public DTMDOMException(short code) {\n/* 49 */ super(code, \"\");\n/* */ }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-163118866), \"PwU}Ru&{'yR\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -163118866\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Override\r\n\tpublic void uncaughtException(Thread thread, Throwable ex) {\n\r\n\t}", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.threshold = (-3);\n FileSystemHandling.shouldAllThrowIOExceptions();\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"H\";\n stringArray0[1] = \"A\\\"69NpZ!\";\n stringArray0[2] = \"/i%NB\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"oQm>;z{ZYH6=AwV\", \"oc[MfnZM[~MHOK iO\", \"Code\", stringArray0, false, false);\n Integer integer0 = new Integer(11);\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n // Undeclared exception!\n try { \n methodWriter0.visitLocalVariable(\"Deprecated\", \"H\", (String) null, (Label) null, (Label) null, 384);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "static void m14941f(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }", "public static void m5827f() {\n if (f4669a != null) {\n f4669a.m12578a(\"webview_max_polling_error\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"webview_max_polling_error\"));\n }", "public void test438956() throws Exception\n {\n // line 3 column 1 - Warning: plain text isn't allowed in <head> elements\n // line 6 column 1 - Warning: discarding unexpected <body>\n // Info: Doctype given is \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n // Info: Document content looks like HTML 4.01 Transitional\n // 2 warnings, 0 errors were found!\n\n executeTidyTest(\"438956.html\");\n\n assertWarnings(2);\n }", "private static java.lang.String m25224a(java.lang.String r7, java.lang.String r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"\";\n r1 = \"\\\\?\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r2 = 1;\n if (r1 <= r2) goto L_0x0033;\n L_0x000c:\n r7 = r7[r2];\n r1 = \"&\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r3 = 0;\n r4 = r0;\n r0 = 0;\n L_0x0018:\n if (r0 >= r1) goto L_0x0032;\n L_0x001a:\n r5 = r7[r0];\n r6 = \"=\";\n r5 = r5.split(r6);\n r6 = r5.length;\n if (r6 <= r2) goto L_0x002f;\n L_0x0025:\n r6 = r5[r3];\n r6 = r6.equals(r8);\n if (r6 == 0) goto L_0x002f;\n L_0x002d:\n r4 = r5[r2];\n L_0x002f:\n r0 = r0 + 1;\n goto L_0x0018;\n L_0x0032:\n r0 = r4;\n L_0x0033:\n r7 = \"UTF-8\";\t Catch:{ Exception -> 0x003a }\n r7 = java.net.URLDecoder.decode(r0, r7);\t Catch:{ Exception -> 0x003a }\n goto L_0x003b;\n L_0x003a:\n r7 = r0;\n L_0x003b:\n return r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.leanplum.messagetemplates.BaseMessageDialog.a(java.lang.String, java.lang.String):java.lang.String\");\n }", "void mo1031a(Throwable th);", "public void removeRawReferrer(String paramString, long paramLong) {\n }", "@Test(timeout = 4000)\n public void test155() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Submit submit0 = new Submit(xmlEntityRef0, \"\\\"8[P\", \"\\\"8[P\");\n // Undeclared exception!\n try { \n submit0.dfn((Object) null);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }" ]
[ "0.69993496", "0.6776259", "0.6464051", "0.5855401", "0.5855401", "0.5796961", "0.5796961", "0.57768637", "0.5740302", "0.5740302", "0.5724758", "0.57113504", "0.57113504", "0.56865907", "0.56865907", "0.5653746", "0.5653746", "0.5652807", "0.5597971", "0.55895454", "0.55895454", "0.55800205", "0.5545676", "0.5514012", "0.55135113", "0.55069464", "0.55032545", "0.54980695", "0.54980695", "0.54877657", "0.5479784", "0.5475419", "0.5407137", "0.5401442", "0.5382142", "0.53488314", "0.5312329", "0.5299747", "0.528359", "0.52366275", "0.52268904", "0.52120656", "0.5202614", "0.51939815", "0.5191525", "0.5178085", "0.5171571", "0.5165283", "0.51638323", "0.5159641", "0.5143325", "0.51392925", "0.5137331", "0.5120829", "0.50899994", "0.5080463", "0.507448", "0.50715756", "0.50708586", "0.50645494", "0.50513315", "0.50464284", "0.5043174", "0.5040726", "0.5037569", "0.5028598", "0.5015658", "0.49862975", "0.49801722", "0.49743232", "0.49673358", "0.4949352", "0.49491143", "0.49438274", "0.49283844", "0.4928071", "0.49247846", "0.49212447", "0.49174437", "0.4912153", "0.49013847", "0.49013847", "0.4894059", "0.4890151", "0.48880655", "0.48829585", "0.48806113", "0.48772308", "0.4870013", "0.4869233", "0.48685515", "0.4864632", "0.48599055", "0.48591882", "0.48565754", "0.4852756", "0.4848106", "0.48464298", "0.484636", "0.48458502" ]
0.8232305
0
Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154)) TE Signature : S(storeSiteSpecificTrackingException,P(d154))
void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void storeWebWideTrackingException(StoreExceptionsInformation args);", "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "void removeSiteSpecificTrackingException(ExceptionInformation args);", "void removeWebWideTrackingException(ExceptionInformation args);", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732792\n */\n Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(confirmWebWideTrackingException,27,,P(d153))\n * TE Signature : S(confirmWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732891\n */\n Boolean confirmWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153))\n * TE Signature : S(removeSiteSpecificTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732965\n */\n void removeSiteSpecificTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeWebWideTrackingException,289,,P(d153))\n * TE Signature : S(removeWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733040\n */\n void removeWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154))\n * TE Signature : S(storeSiteSpecificTrackingException,P(d154))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733110\n */\n void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(storeWebWideTrackingException,289,,P(d155))\n * TE Signature : S(storeWebWideTrackingException,P(d155))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733202\n */\n void storeWebWideTrackingException(StoreExceptionsInformation args);\n}", "void mo57276a(Exception exc);", "public void mo1962e() throws cf {\r\n }", "public void mo1964g() throws cf {\r\n }", "public Throwable method_8075() {\r\n return this.field_7865;\r\n }", "public void mo1944a() throws cf {\r\n }", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "public abstract void mo33865a(Throwable th, Throwable th2);", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void remoteExceptionInVerify() {\n\tremoteExceptionInVerify = true;\n }", "public void mo1976s() throws cf {\r\n }", "private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessage = e.getCause() != null? e.getCause().getLocalizedMessage() : null;\n String combinedExceptionMessage = \"primary message:\"+exceptionPrimaryMessage+(exceptionSecondaryMessage!=null?(\"; secondary message: \"+exceptionSecondaryMessage):(\"\"));\n \n //chances are this is the Oracle MCS erro message. If so then ths message has a JSON format. A simple JSON parsing \n //test will show if our assumption is true. If JSONObject parsing fails then apparently the message is not the MCS\n //error message\n //{\n // \"type\":\".....\",\n // * \"status\": <error_code>,\n // * \"title\": \"<short description of the error>\",\n // * \"detail\": \"<long description of the error>\",\n // * \"o:ecid\": \"...\",\n // * \"o:errorCode\": \"MOBILE-<MCS error number here>\",\n // * \"o:errorPath\": \"<URI of the request>\"\n // }\n if(exceptionSecondaryMessage!=null){\n try {\n JSONObject jsonErrorObject = new JSONObject(exceptionSecondaryMessage);\n //if we get here, then its a Oracle MCS error JSON Object. Get the \n //status code or set it to 0 (means none is found)\n int statusCode = jsonErrorObject.optInt(\"status\", 0);\n throw new ServiceProxyException(statusCode, exceptionSecondaryMessage);\n \n } catch (JSONException jse) {\n //if parsing fails, the this is proof enough that the error message is not \n //an Oracle MCS message and we need to continue our analysis\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception message is not a Oracle MCS error JSONObject\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n } \n }\n \n //continue message analysis and check for known error codes for the references MCS API\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Rest invocation failed with following message\"+exceptionPrimaryMessage, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n int httpErrorCode = -1; \n String restoredOracleMcsErrorMessage = null;\n \n /*\n * Try to identify an MCS failure from the exception message.\n */\n if(combinedExceptionMessage.contains(\"400\")){\n httpErrorCode = 400; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(400, \"Invalid JSON payload\", \"One of the following problems occurred: \" +\n \"the user does not exist, the JSON is invalid, or a property was not found.\", uri);\n }\n else if(combinedExceptionMessage.contains(\"401\")){\n httpErrorCode = 401; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(401, \"Authorization failure\", \"The user is not authorized to retrieve the information for another user.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(403, \"Functionality is not supported\", \"Functionality is not supported.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(404, \"User not found\", \"The user with the specified ID does not exist.\",uri);\n }\n \n else{\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request failed with Exception: \"+e.getClass().getSimpleName()+\"; message: \"+e.getLocalizedMessage(), this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(e.getLocalizedMessage(), ServiceProxyException.ERROR);\n }\n //if we get here then again its an Oracle MCS error, though one we found by inspecting the exception message\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request succeeded successful but failed with MCS application error. HTTP response: \"+httpErrorCode+\", Error message: \"+restoredOracleMcsErrorMessage, this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(httpErrorCode, restoredOracleMcsErrorMessage);\n }", "public abstract void mo13751b(Throwable th, Throwable th2);", "public void mo1963f() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "public RecordStoreException(String message) {\n\tsuper(message);\n }", "public interface ViewDetailsExceptionCodes extends BaseExceptionCodes {\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsManagerException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0020 = 700020;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsConfigurationException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0021 = 700021;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsDaoException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0022 = 700022;\r\n}", "private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }", "public void m9741j() throws cf {\r\n }", "public int getStorageId() {\n/* 83 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "public void mo5385r() {\n throw null;\n }", "SavebackException(String selector,Throwable cause)\n {\n super(\"Unable to eval saveback '\"+selector+\"'\",cause);\n }", "void m5771e() throws C0841b;", "public RetroTectorException(String sender) {\n\t\tTHESTRINGS = new String[1];\n\t\tTHESTRINGS[0] = sender;\n\t}", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n int int0 = (-1981);\n Item item1 = new Item((-1981), item0);\n item1.next = item0;\n // Undeclared exception!\n try { \n frame0.execute(175, (-1981), classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "void m5770d() throws C0841b;", "public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }", "public final void mo6481a(Throwable th) {\n }", "public void mo1972o() throws cf {\r\n }", "void mo67922a(AbstractC32732ag agVar, Throwable th);", "public static void traduitSiteAllemand() {\n\t\t\n\t}", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "void mo43357a(C16726e eVar) throws RemoteException;", "public void catchVerify(RuntimeException e) {\n\tverifyTrap = e;\n }", "public void method_8074(Throwable var1) {\r\n super();\r\n this.field_7865 = var1;\r\n }", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "abstract protected void _log(TrackingEvent event) throws Exception;", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n Item item0 = classWriter0.newClassItem(\"*6@#GSZr~Dvz\");\n item0.longVal = (long) 1048575;\n Item item1 = new Item(91, item0);\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(86, 2, classWriter0, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n byte[] byteArray0 = new byte[0];\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n Item item0 = classWriter0.newClassItem(\"java/lang/String\");\n classWriter0.newLong((byte) (-51));\n // Undeclared exception!\n try { \n frame0.execute((byte) (-99), (byte) (-51), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(3131);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField(182, \"IK\", \"IK\", \"IK\", \"The FileFilter must not be null\");\n classWriter0.firstField = fieldWriter0;\n ClassWriter classWriter1 = new ClassWriter(1);\n Item item0 = classWriter0.key2;\n fieldWriter0.getSize();\n fieldWriter0.visitAnnotation(\"Exceptions\", false);\n classWriter1.newFloat((-2110.0F));\n item0.hashCode = 231;\n // Undeclared exception!\n try { \n frame0.execute(182, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public final void mo57296a(Exception exc) {\n C7573i.m23587b(exc, \"e\");\n C28951i iVar = (C28951i) this.f67572c;\n if (iVar != null) {\n iVar.mo74239a(exc);\n }\n }", "private void sendOldError(Exception e) {\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-163118866), \"PwU}Ru&{'yR\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -163118866\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"zuQ-ES@*gn\");\n Type type1 = Type.INT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(22, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test307() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.ins();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public ASelectAuthSPException(String sCode) {\r\n\t\tsuper(sCode);\r\n\t}", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n MXSerializer mXSerializer0 = new MXSerializer();\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"java.lang.String@0000000005\", \"/o:%Ab+Af@:#h3VI\");\n // Undeclared exception!\n try { \n hidden0.cite((Object) mXSerializer0);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void inquiryError() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private final void m6487e() throws C0918i {\n try {\n WDAppManager.m2565a(f2486z[4], f2486z[5]);\n } catch (C0653m e) {\n throw new C0918i((int) C0607n.wd, e.getMessage());\n }\n }", "public AgentInitializationException(String s) {\n\t\tsuper(s);\n\t\treturnValue = 0;\n\t}", "public int getExceptionNumber(\n ) {return (0);}", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Frame frame0 = new Frame();\n EvoSuiteFile evoSuiteFile0 = null;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.toByteArray();\n ClassWriter classWriter1 = new ClassWriter(1048575);\n Frame frame1 = new Frame();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n Item item0 = classWriter0.newDouble((-1514));\n // Undeclared exception!\n try { \n frame1.execute((-181), 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void mo1966i() throws cf {\r\n }", "public static /* synthetic */ void m64977a(Throwable th) throws Exception {\n f45958a.mo9825b(C6969H.m41409d(\"G7B86D615AD34EB3DE71D9B08F4E4CADB\"));\n }", "private Object logError(WebClientResponseException e, String string) {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test43() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails((Contract) null, \" tradingClass=\", \" tradingClass=\", 2230.42, \" tradingClass=\", \"A(Qmft.fObCA t\", 2508, \"q7qtU8+N|#Qs\", \" tradingClass=\", \" whyHeld=\", \"/9I>auS;,$\", \"cumQty = \", \" whyHeld=\", \"\", \"q7qtU8+N|#Qs\");\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractDetails((-1957), contractDetails0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "private void m15515d(Throwable th) {\n HashMap hashMap = new HashMap();\n C8435g gVar = new C8435g();\n if (th == null) {\n hashMap.put(\"invitee_status\", \"0\");\n } else if (!(th instanceof ApiServerException)) {\n hashMap.put(\"invitee_status\", \"2\");\n } else if (((ApiServerException) th).getErrorCode() == 31002) {\n hashMap.put(\"invitee_status\", \"1\");\n } else {\n hashMap.put(\"invitee_status\", \"2\");\n }\n C8443c.m25663a().mo21606a(\"connection_invite\", hashMap, new C8438j().mo21599b(\"live\").mo21603f(\"other\").mo21598a(\"live_detail\"), gVar.mo21594b(this.f13394b.getOwner().getId()).mo21596c(this.f13396d.f11667e).mo21595b((String) C8946b.f24396aU.mo22117a()).mo21590a(((Integer) C8946b.f24390aO.mo22117a()).intValue()).mo21591a(this.f13396d.f11669g), this.f13396d.mo11449b(), Room.class);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048576);\n ClassWriter classWriter1 = new ClassWriter(285212648);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n Item item0 = classWriter1.newFieldItem(\"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\");\n classWriter1.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n MethodWriter methodWriter0 = classWriter1.lastMethod;\n classWriter1.lastMethod = null;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"QllX9_#%O~uxqo\");\n item0.strVal3 = \"qld m+eDWv\";\n // Undeclared exception!\n try { \n frame0.execute((-1044), (-3128), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(8);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 8, \"\", \"\", \"\", \"\");\n Attribute attribute0 = new Attribute(\"Signature\");\n fieldWriter0.visitAttribute(attribute0);\n ByteVector byteVector0 = classWriter0.pool;\n // Undeclared exception!\n try { \n fieldWriter0.put(byteVector0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Attribute\", e);\n }\n }", "@Test(timeout = 4000)\n public void test126() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Class<String> class0 = String.class;\n Type.getDescriptor(class0);\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(6, 189, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = null;\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Item item0 = new Item((-532));\n int int0 = 180;\n // Undeclared exception!\n try { \n frame0.execute(180, 4, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public final /* synthetic */ void mo9087a(Throwable th) throws Exception {\n if (th instanceof ApiServerException) {\n this.f8105a.mo8776b(((ApiServerException) th).getErrorCode());\n }\n this.f8105a.mo8776b(0);\n }", "@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }", "public final void accept(Throwable th) {\n CrashlyticsLogUtils.m83485a(th);\n String d = C6969H.m41409d(\"G4A91D01BAB39A427C207834BFEE4CADA6C91\");\n Log.e(d, \"获取问题的创作声明信息失败: \" + th.getMessage());\n }", "public void mo37873b() {\n try {\n C13262e.this.f34192f.mo38032a(this.f34247f);\n } catch (IOException e) {\n C13202e d = C13202e.m34581d();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Http2Connection.Listener failure for \");\n sb.append(C13262e.this.f34194h);\n d.mo37897a(4, sb.toString(), (Throwable) e);\n try {\n this.f34247f.mo38133a(C13256a.PROTOCOL_ERROR, e);\n } catch (IOException unused) {\n }\n }\n }", "@Override\r\n\tpublic void failed(Throwable exc, SessionState attachment) {\n\r\n\t}", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "@Override\n\tpublic void onSDKIntegrationError(String arg0) {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public C13463c(Throwable th) {\n super(th, null);\n C32569u.m150519b(th, \"e\");\n }", "public RecordStoreException() {\n }", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "@Test(timeout = 4000)\n public void test155() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Submit submit0 = new Submit(xmlEntityRef0, \"\\\"8[P\", \"\\\"8[P\");\n // Undeclared exception!\n try { \n submit0.dfn((Object) null);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter0.visitSource(\"&l{u&egzGn.@\", \"&l{u&egzGn.@\");\n ClassWriter classWriter2 = new ClassWriter(0);\n ClassWriter classWriter3 = new ClassWriter(1);\n Item item0 = classWriter1.newLong(1);\n Item item1 = new Item(1, item0);\n // Undeclared exception!\n try { \n frame0.execute(194, 1, classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Override\n public void handleException(final Exception e) throws OsgpException {\n if (e instanceof OsgpException) {\n if (e instanceof UnknownCorrelationUidException) {\n LOGGER.warn(e.getMessage());\n } else {\n LOGGER.error(\"Exception occurred: \", e);\n }\n throw (OsgpException) e;\n } else {\n LOGGER.error(\"Exception occurred: \", e);\n throw new TechnicalException(ComponentType.WS_SMART_METERING, e);\n }\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(159);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter1.newFieldItem(\"y])rS3DhfdTg\", \"y])rS3DhfdTg\", \"\");\n Item item0 = classWriter0.newLong(1);\n classWriter0.newLong(2);\n Item item1 = classWriter0.key2;\n // Undeclared exception!\n try { \n frame0.execute(159, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n Type type0 = Type.CHAR_TYPE;\n classWriter0.visit(188, 3, \"SXFlGaXY\\\"E\", \"\", \"G4E?i<_\", (String[]) null);\n ClassWriter classWriter1 = new ClassWriter(185);\n MethodWriter methodWriter0 = classWriter0.firstMethod;\n Item item0 = classWriter1.newClassItem(\"Sensitive\");\n classWriter1.newLong(8);\n Item item1 = new Item(47, item0);\n byte[] byteArray0 = new byte[1];\n byteArray0[0] = (byte) (-99);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"SXFlGaXY\\\"E\");\n classWriter1.toByteArray();\n ClassWriter classWriter2 = new ClassWriter(9);\n // Undeclared exception!\n try { \n frame0.execute(196, 267386880, classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test163() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance0.assign(resultMatrixLatex0);\n resultMatrixSignificance0.getRowName(0);\n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test292() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.code((Object) \"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte) (-80);\n byteArray0[1] = (byte) (-14);\n byteArray0[2] = (byte) (-80);\n byteArray0[3] = (byte)99;\n byteArray0[4] = (byte) (-80);\n byteArray0[5] = (byte)99;\n byteArray0[6] = (byte) (-80);\n byteArray0[7] = (byte) (-51);\n byteArray0[8] = (byte) (-80);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n classWriter1.newClassItem(\"nX,?6XHa$%9YoG<\");\n classWriter0.newLong(4672L);\n // Undeclared exception!\n try { \n frame0.execute(69, 78, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e}\");\n Frame frame0 = new Frame();\n int[] intArray0 = new int[5];\n frame0.inputStack = intArray0;\n ClassWriter classWriter0 = new ClassWriter(0);\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n frame0.inputLocals = intArray1;\n Item item0 = classWriter0.key3;\n // Undeclared exception!\n try { \n frame0.execute(41, 41, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.execDetails(1274, contractDetails0.m_summary, (Execution) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "public void mo21818a(Throwable th) {\n th.printStackTrace();\n }" ]
[ "0.7525147", "0.6610849", "0.659676", "0.6436391", "0.63061285", "0.573345", "0.5664249", "0.54198956", "0.53847146", "0.5370291", "0.5332914", "0.53034484", "0.5256583", "0.5219271", "0.5214219", "0.5206959", "0.5164123", "0.5159255", "0.5154143", "0.5145081", "0.51392794", "0.51381147", "0.5138034", "0.5136034", "0.51089656", "0.50998354", "0.50897354", "0.5085052", "0.50844544", "0.507551", "0.50629777", "0.50467724", "0.5021977", "0.5020909", "0.5020423", "0.50122666", "0.49995533", "0.4995133", "0.4985871", "0.4974746", "0.49741948", "0.49734795", "0.49698284", "0.49698284", "0.49652976", "0.49650645", "0.49589437", "0.49454522", "0.49260545", "0.4903977", "0.4900393", "0.48853078", "0.48843944", "0.4876457", "0.4876115", "0.48685482", "0.48685482", "0.48633587", "0.48633587", "0.48585644", "0.4854392", "0.48530626", "0.485265", "0.48456863", "0.48454076", "0.48423895", "0.4836807", "0.48361555", "0.48346564", "0.4834639", "0.48297572", "0.48256278", "0.48236167", "0.4810634", "0.48101595", "0.48054725", "0.48037884", "0.480346", "0.4797512", "0.47907868", "0.478967", "0.4784869", "0.4784421", "0.47828922", "0.478256", "0.478256", "0.47823268", "0.4781471", "0.4781383", "0.47801495", "0.47801495", "0.4779978", "0.47774234", "0.47773793", "0.47772917", "0.4777101", "0.4775435", "0.4774843", "0.477203", "0.47705784" ]
0.772603
0
Std Signature : S(storeWebWideTrackingException,289,,P(d155)) TE Signature : S(storeWebWideTrackingException,P(d155))
void storeWebWideTrackingException(StoreExceptionsInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "void removeWebWideTrackingException(ExceptionInformation args);", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "synchronized public static String traceErrorForWeb(Throwable e) {\n\n StringBuffer sb = new StringBuffer();\n\n sb.append(\n \"&nbsp;<font color='blue'><a href='#' onclick='$(info\" + e.hashCode() + \").style.display=\\\"block\\\"'>details</a>\"\n + \"<div id='info\" + e.hashCode() + \"' style='display:none'>\" + e.toString() + \" \" + Tools.traceError(e) + \"</div></font>\"\n );\n return sb.toString();\n }", "void mo57276a(Exception exc);", "@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732792\n */\n Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(confirmWebWideTrackingException,27,,P(d153))\n * TE Signature : S(confirmWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732891\n */\n Boolean confirmWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153))\n * TE Signature : S(removeSiteSpecificTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732965\n */\n void removeSiteSpecificTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeWebWideTrackingException,289,,P(d153))\n * TE Signature : S(removeWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733040\n */\n void removeWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154))\n * TE Signature : S(storeSiteSpecificTrackingException,P(d154))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733110\n */\n void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(storeWebWideTrackingException,289,,P(d155))\n * TE Signature : S(storeWebWideTrackingException,P(d155))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733202\n */\n void storeWebWideTrackingException(StoreExceptionsInformation args);\n}", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo1962e() throws cf {\r\n }", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "public void mo1964g() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }", "public void mo1944a() throws cf {\r\n }", "void removeSiteSpecificTrackingException(ExceptionInformation args);", "public static void m5825e() {\n if (f4669a != null) {\n f4669a.m12578a(\"Background_webview_fail\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"Background_webview_fail\"));\n }", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public static void m5846r() {\n if (f4669a != null) {\n f4669a.m12578a(\"webview_load_error\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"webview_load_error\"));\n }", "public Throwable method_8075() {\r\n return this.field_7865;\r\n }", "public DTMDOMException(short code) {\n/* 49 */ super(code, \"\");\n/* */ }", "void m5771e() throws C0841b;", "public void mo1976s() throws cf {\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "void m5770d() throws C0841b;", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "@Test\n public void test084() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n String string0 = errorPage0.encode(\"%k8|vhOy\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void mo1963f() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test188() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"/\", \"org.mvel.conversion.CharArrayCH$1\");\n // Undeclared exception!\n try { \n hidden0.getPage();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private Object logError(WebClientResponseException e, String string) {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test304() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"'H,u&*QAP\");\n // Undeclared exception!\n try { \n xmlEntityRef0.encode(\"java.lang.String@0000000005\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "public void m9741j() throws cf {\r\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "@Test(timeout = 4000)\n public void test155() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Submit submit0 = new Submit(xmlEntityRef0, \"\\\"8[P\", \"\\\"8[P\");\n // Undeclared exception!\n try { \n submit0.dfn((Object) null);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "public static String _takeselfie_click() throws Exception{\nreturn \"\";\n}", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "@Test(timeout = 4000)\n public void test268() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.rawText(\"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test292() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.code((Object) \"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test285() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n xmlEntityRef0.small((Object) \"cript\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public final void mo6481a(Throwable th) {\n }", "public void mo1972o() throws cf {\r\n }", "void m5768b() throws C0841b;", "private void m6645a(WebResourceError webResourceError) {\n if (!z) {\n if (this.f5306c.m25420a(webResourceError)) {\n m6644a();\n return;\n }\n }\n this.f5306c.f19105g.mo1302a(this.f5306c, C1700b.f5124f);\n }", "public abstract void mo33865a(Throwable th, Throwable th2);", "@Test(timeout = 4000)\n public void test287() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.sub((Object) \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test307() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.ins();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n int int0 = (-1981);\n Item item1 = new Item((-1981), item0);\n item1.next = item0;\n // Undeclared exception!\n try { \n frame0.execute(175, (-1981), classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test182() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getRevision();\n resultMatrixSignificance0.setColHidden(2, true);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixHTML0);\n // Undeclared exception!\n try { \n resultMatrixSignificance1.getHeader(\"B|A2 e+ >ww+37F\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void mo1966i() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test163() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance0.assign(resultMatrixLatex0);\n resultMatrixSignificance0.getRowName(0);\n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-163118866), \"PwU}Ru&{'yR\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -163118866\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "static void m14941f(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n MXSerializer mXSerializer0 = new MXSerializer();\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"java.lang.String@0000000005\", \"/o:%Ab+Af@:#h3VI\");\n // Undeclared exception!\n try { \n hidden0.cite((Object) mXSerializer0);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n Submit submit0 = new Submit(xmlEntityRef0, \"java.lang.String@0000000005\", \"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n submit0.rawText(\"java.lang.String@0000000005\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"zuQ-ES@*gn\");\n Type type1 = Type.INT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(22, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void mo37873b() {\n try {\n C13262e.this.f34192f.mo38032a(this.f34247f);\n } catch (IOException e) {\n C13202e d = C13202e.m34581d();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Http2Connection.Listener failure for \");\n sb.append(C13262e.this.f34194h);\n d.mo37897a(4, sb.toString(), (Throwable) e);\n try {\n this.f34247f.mo38133a(C13256a.PROTOCOL_ERROR, e);\n } catch (IOException unused) {\n }\n }\n }", "@Test(timeout = 4000)\n public void test249() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n // Undeclared exception!\n try { \n xmlEntityRef0.a((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test288() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.htmlText(\"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void mo1534c() {\n C2201w.m8373a(\"Photo TransferData failed!\", 1);\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n Item item0 = classWriter0.newClassItem(\"*6@#GSZr~Dvz\");\n item0.longVal = (long) 1048575;\n Item item1 = new Item(91, item0);\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(86, 2, classWriter0, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"]f '8Drr>Uj1==M2\", \"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n hidden0.h3((Object) \"java.lang.StringBuffer@0000000004\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test128() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"C]5h\");\n // Undeclared exception!\n try { \n xmlEntityRef0.h4((Object) \"C]5h\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static /* synthetic */ void m64977a(Throwable th) throws Exception {\n f45958a.mo9825b(C6969H.m41409d(\"G7B86D615AD34EB3DE71D9B08F4E4CADB\"));\n }", "@Test(timeout = 4000)\n public void test236() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.cite((Object) \"java.lang.String@0000000005\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance0.setRemoveFilterName(false);\n resultMatrixSignificance0.assign(resultMatrixLatex0);\n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "void m5769c() throws C0841b;", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n byte[] byteArray0 = new byte[0];\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n Item item0 = classWriter0.newClassItem(\"java/lang/String\");\n classWriter0.newLong((byte) (-51));\n // Undeclared exception!\n try { \n frame0.execute((byte) (-99), (byte) (-51), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "@Override\n \tpublic void onError(Throwable error, Uri uri) {\n \n \t\tBugSenseHandler.sendExceptionMessage(\"uri\", uri.toString(),\n \t\t\t\tnew Exception(error));\n \n \t\tanalytics.sendException(error.getMessage(), error, false);\n \t}", "@Test(timeout = 4000)\n public void test281() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.dd((Object) \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public MalformedURIException(String p_msg) {\n super(p_msg);\n }", "private final void m6487e() throws C0918i {\n try {\n WDAppManager.m2565a(f2486z[4], f2486z[5]);\n } catch (C0653m e) {\n throw new C0918i((int) C0607n.wd, e.getMessage());\n }\n }", "public static String _imghuevos_click() throws Exception{\nreturn \"\";\n}", "@Test(timeout = 4000)\n public void test296() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Checkbox checkbox0 = new Checkbox(xmlEntityRef0, \"expected apostrophe (') or quotation mark (\\\") after encoding and not \", \"z:_i>EAQ.Bdq@CL&k?\\\"\");\n // Undeclared exception!\n try { \n checkbox0.h4((Object) \"h3\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test373() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n // Undeclared exception!\n try { \n xmlEntityRef0.h2((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"wheel_ErrorPage\");\n ActionExpression actionExpression0 = new ActionExpression(\"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n xmlEntityRef0.strike((Object) actionExpression0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public UnsupportedProtocolException(String foutmelding) {\n\t\tsuper(foutmelding);\n\t}", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048576);\n ClassWriter classWriter1 = new ClassWriter(285212648);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n Item item0 = classWriter1.newFieldItem(\"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\");\n classWriter1.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n MethodWriter methodWriter0 = classWriter1.lastMethod;\n classWriter1.lastMethod = null;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"QllX9_#%O~uxqo\");\n item0.strVal3 = \"qld m+eDWv\";\n // Undeclared exception!\n try { \n frame0.execute((-1044), (-3128), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test241() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n // Undeclared exception!\n try { \n xmlEntityRef0.q();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public abstract void mo53562a(C18796a c18796a);", "public abstract void mo13751b(Throwable th, Throwable th2);", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter0.visitSource(\"&l{u&egzGn.@\", \"&l{u&egzGn.@\");\n ClassWriter classWriter2 = new ClassWriter(0);\n ClassWriter classWriter3 = new ClassWriter(1);\n Item item0 = classWriter1.newLong(1);\n Item item1 = new Item(1, item0);\n // Undeclared exception!\n try { \n frame0.execute(194, 1, classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = null;\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Item item0 = new Item((-532));\n int int0 = 180;\n // Undeclared exception!\n try { \n frame0.execute(180, 4, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@000000K005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.li();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Frame frame0 = new Frame();\n EvoSuiteFile evoSuiteFile0 = null;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.toByteArray();\n ClassWriter classWriter1 = new ClassWriter(1048575);\n Frame frame1 = new Frame();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n Item item0 = classWriter0.newDouble((-1514));\n // Undeclared exception!\n try { \n frame1.execute((-181), 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test376() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"RL:I(Gq;>k@NkN[\");\n // Undeclared exception!\n try { \n xmlEntityRef0.legend();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test254() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"x0\");\n // Undeclared exception!\n try { \n xmlEntityRef0.big((Object) \"x0\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test201() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n // Undeclared exception!\n try { \n frame0.execute(5, 3, (ClassWriter) null, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }" ]
[ "0.706374", "0.6867333", "0.63847363", "0.5667935", "0.56139296", "0.5578101", "0.5565547", "0.555003", "0.5518666", "0.55133224", "0.551265", "0.5494318", "0.5459788", "0.5452991", "0.5436819", "0.5436819", "0.5436669", "0.5401196", "0.538958", "0.53876007", "0.5360936", "0.53560793", "0.53560793", "0.5330068", "0.5313136", "0.5313136", "0.53105587", "0.5303", "0.5297711", "0.5270722", "0.5270621", "0.52569145", "0.52525127", "0.52525127", "0.5247681", "0.52460974", "0.5239783", "0.5237462", "0.5232879", "0.5220906", "0.5220906", "0.52168113", "0.52168113", "0.5216424", "0.52041817", "0.5201348", "0.52012813", "0.52012813", "0.519641", "0.5193285", "0.51863533", "0.5185459", "0.5180275", "0.51545733", "0.5148366", "0.5144723", "0.5139749", "0.5137059", "0.5116256", "0.51135474", "0.5105482", "0.5103136", "0.5099052", "0.5096811", "0.50917584", "0.50870454", "0.50819576", "0.5076199", "0.5074313", "0.50737536", "0.5070618", "0.5069389", "0.50690454", "0.5064829", "0.50606793", "0.50540507", "0.5052723", "0.5052723", "0.50456643", "0.50449556", "0.5043875", "0.50435996", "0.5037941", "0.5036658", "0.5033019", "0.5028505", "0.50217247", "0.50188345", "0.5015138", "0.5011221", "0.5008429", "0.5000234", "0.4995488", "0.4994463", "0.4988373", "0.4984175", "0.49734542", "0.49714074", "0.49676389", "0.49656358" ]
0.7356559
0
Creates node metadata using period and strike.
public static GenericVolatilitySurfacePeriodParameterMetadata of( Period period, Strike strike) { String label = Pair.of(period, strike.getLabel()).toString(); return new GenericVolatilitySurfacePeriodParameterMetadata(period, strike, label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Element createBaseTemporalNode(Node relOpNode, XmlProcessor hqmfXmlProcessor) {\n\n\t\tNamedNodeMap attribMap = relOpNode.getAttributes();\n\t\tElement temporallyRelatedInfoNode = hqmfXmlProcessor.getOriginalDoc()\n\t\t\t\t.createElement(\"temporallyRelatedInformation\");\n\t\ttemporallyRelatedInfoNode.setAttribute(TYPE_CODE, attribMap.getNamedItem(TYPE).getNodeValue().toUpperCase());\n\n\t\tElement temporalInfoNode = hqmfXmlProcessor.getOriginalDoc().createElement(\"qdm:temporalInformation\");\n\t\tString precisionUnit = \"min\"; // use min by default\n\n\t\tif (attribMap.getNamedItem(OPERATOR_TYPE) != null) {\n\t\t\tString operatorType = attribMap.getNamedItem(OPERATOR_TYPE).getNodeValue();\n\t\t\tString quantity = attribMap.getNamedItem(QUANTITY).getNodeValue();\n\t\t\tString unit = attribMap.getNamedItem(UNIT).getNodeValue();\n\n\t\t\tif (\"seconds\".equals(unit)) {\n\t\t\t\tprecisionUnit = \"s\";\n\t\t\t\tunit = \"s\";\n\t\t\t} else if (\"hours\".equals(unit)) {\n\t\t\t\tunit = \"h\";\n\t\t\t} else if (\"minutes\".equals(unit)) {\n\t\t\t\tunit = \"min\";\n\t\t\t} else {\n\t\t\t\tprecisionUnit = \"d\";\n\t\t\t\tif (\"days\".equals(unit)) {\n\t\t\t\t\tunit = \"d\";\n\t\t\t\t} else if (\"weeks\".equals(unit)) {\n\t\t\t\t\tunit = \"wk\";\n\t\t\t\t} else if (\"months\".equals(unit)) {\n\t\t\t\t\tunit = \"mo\";\n\t\t\t\t} else if (\"years\".equals(unit)) {\n\t\t\t\t\tunit = \"a\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tElement deltaNode = hqmfXmlProcessor.getOriginalDoc().createElement(\"qdm:delta\");\n\t\t\tElement lowNode = hqmfXmlProcessor.getOriginalDoc().createElement(\"low\");\n\t\t\tlowNode.setAttribute(UNIT, unit);\n\n\t\t\tElement highNode = hqmfXmlProcessor.getOriginalDoc().createElement(\"high\");\n\t\t\thighNode.setAttribute(UNIT, unit);\n\n\t\t\tif (operatorType.startsWith(\"Greater Than\")) {\n\t\t\t\tlowNode.setAttribute(VALUE, quantity);\n\t\t\t\thighNode.removeAttribute(UNIT);\n\t\t\t\thighNode.setAttribute(NULL_FLAVOR, \"PINF\");\n\t\t\t\tif (\"Greater Than or Equal To\".equals(operatorType)) {\n\t\t\t\t\tdeltaNode.setAttribute(\"lowClosed\", TRUE);\n\t\t\t\t}\n\t\t\t} else if (\"Equal To\".equals(operatorType)) {\n\t\t\t\tdeltaNode.setAttribute(\"lowClosed\", TRUE);\n\t\t\t\tdeltaNode.setAttribute(\"highClosed\", TRUE);\n\t\t\t\tlowNode.setAttribute(VALUE, quantity);\n\t\t\t\thighNode.setAttribute(VALUE, quantity);\n\t\t\t} else if (operatorType.startsWith(\"Less Than\")) {\n\t\t\t\tdeltaNode.setAttribute(\"lowClosed\", TRUE);\n\t\t\t\tlowNode.setAttribute(VALUE, \"0\");\n\t\t\t\thighNode.setAttribute(VALUE, quantity);\n\t\t\t\tif (\"Less Than or Equal To\".equals(operatorType)) {\n\t\t\t\t\tdeltaNode.setAttribute(\"highClosed\", TRUE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdeltaNode.appendChild(lowNode);\n\t\t\tdeltaNode.appendChild(highNode);\n\t\t\ttemporalInfoNode.appendChild(deltaNode);\n\t\t}\n\t\ttemporalInfoNode.setAttribute(\"precisionUnit\", precisionUnit);\n\t\ttemporallyRelatedInfoNode.appendChild(temporalInfoNode);\n\t\treturn temporallyRelatedInfoNode;\n\t}", "void addNodeMetadata(int node, String key, String value);", "private void addDotNode(DotNode dt) {\n dotNodes.add(dt);\n }", "public void addFileCreationPeriod() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"file-creation-period\",\n null,\n childrenNames());\n }", "public void markFileRetentionPeriodCreate() throws JNCException {\n markLeafCreate(\"fileRetentionPeriod\");\n }", "interface WithCreationData {\n /**\n * Specifies the creationData property: Disk source information. CreationData information cannot be changed\n * after the disk has been created..\n *\n * @param creationData Disk source information. CreationData information cannot be changed after the disk\n * has been created.\n * @return the next definition stage.\n */\n WithCreate withCreationData(CreationData creationData);\n }", "public void markFileCreationPeriodCreate() throws JNCException {\n markLeafCreate(\"fileCreationPeriod\");\n }", "protected List<Profile> createMetadata(JsonNode node) {\n return this.createProfiles(\"metadata\", node);\n }", "@Override\n\tpublic String createNode(String type,String name,String time,String loca,String phone, String desc,String axisId ) {\n\t\tNode node = new Node(type, name, time, loca, phone, desc, axisId);\n\t\thibernatedao.insert(null, node);\n\t\treturn node.getId();\n\t}", "DataElement createDataElement();", "private String generateMetadata() {\n ServiceMetadata metadata = new ServiceMetadata();\n\n // Populate metadata using setX() methods\n metadata.setName(this.getClass().getName());\n metadata.setAllow(Discriminators.Uri.ANY);\n metadata.setDescription(\"Mallet Topic Modeling Trainer\");\n metadata.setVersion(\"1.0.0-SNAPSHOT\");\n metadata.setVendor(\"http://www.lappsgrid.org\");\n metadata.setLicense(Discriminators.Uri.APACHE2);\n\n // JSON for input information\n IOSpecification requires = new IOSpecification();\n requires.addFormat(Discriminators.Uri.TEXT); // Plain text (form)\n requires.addLanguage(\"en\"); // Source language\n\n // JSON for output information\n IOSpecification produces = new IOSpecification();\n produces.addFormat(Discriminators.Uri.LAPPS); // LIF (form)\n produces.addLanguage(\"en\"); // Target language\n\n // Embed I/O metadata JSON objects\n metadata.setRequires(requires);\n metadata.setProduces(produces);\n\n // Serialize the metadata into LEDS string and return\n Data<ServiceMetadata> data = new Data<>(Discriminators.Uri.META, metadata);\n return data.asPrettyJson();\n }", "public MetalNode(int date1){\n date = date1;\n }", "CreationData creationData();", "void createItem (String name, String description, double price);", "void createNode(NodeKey key);", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "protected void createTelemetryMetadata(SpaceSystemType spaceSystem)\n {\n spaceSystem.setTelemetryMetaData(factory.createTelemetryMetaDataType());\n }", "private static void writeDimesnions() throws IOException {\r\n\t\tDate date = new Date();\r\n\t\t bw.write( \"<> a owl:Ontology ; \\n\"\r\n\t\t \t+ \" rdfs:label \\\"GeoKnow Spatical Data Qaluty DataCube Knowledge Base\\\" ;\\n\"\r\n\t\t \t+ \" dc:description \\\"This knowledgebase contains 3 different DataCubes with different dimensions and measures.\\\" .\\n\\n\"\r\n\t//-----------------------Dataset----------------------------\r\n\t\t \t+ \"#\\n #Data Set \\n # \\n\"\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds1> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\" Dataset Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd1> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds2> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\"Dataset Weighted Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Weighted Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd2> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\t\t\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds3> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\"Dataset Structuredness\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Structuredness\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd3> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\t\r\n //-----------------Data Cube 1 Structure Definitions-----------------------------------------\r\n\t\t\t+ \"# \\n# Data Structure Definitions \\n # \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube1\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd1/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd1/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd1/c3> . \\n\\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube2\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd2/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd2/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd2/c3> . \\n\\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube3\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd3/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd3/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd3/c3> . \\n\\n\"\r\n\t\r\n\t//-----------------------Component Specifications-------------------------------------------------------------------\r\n\t\t\t+ \" # \\n #Componenet Specifications\\n #\\n \"\t\t\r\n\t\t\t//-------------DataCube1------------------------------------\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Class \\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Class . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Coverage\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:Coverage . \\n\\n\"\t\t\t\t\r\n\t\t\t//-------------DataCube2------------------------------------\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Class\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Class . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Weighted Coverage\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:WeightedCoverage . \\n\\n\"\t\r\n\t\t\t//-------------DataCube3------------------------------------\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Dataset\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Dataset . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Structuredness\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:Structuredness . \\n\\n\"\t\t\t\t\r\n\t//-----------------------Dimensions, Unit and Measure ---------------------------------------------------------\t\t\r\n\t\t\t+ \"### \\n ## Dimensions, Unit, and Measure\\n##\\n\"\r\n\t\t\t+ \"gk-dim:Class a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Class of a dataset\\\"@en .\\n\"\r\n\t\t\t+ \"gk-dim:TimeStamp a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Time Stamp\\\"@en .\\n\"\r\n\t\t\t+ \"gk-dim:Dataset a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Dataset name\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:Coverage a qb:MeasureProperty ; \\n\"\t\r\n\t\t\t+ \" rdfs:label \\\"Class Coverage\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:WeightedCoverage a qb:MeasureProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Class Weighted Coverage\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:Structuredness a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Dataset Structuredness\\\"@en .\\n\\n\"\r\n\t\t\t\t );\r\n\t\t\r\n\t}", "private static String createChartCDATASection(String type, String title,String xAxisTitle, String yAxisTitle,ReportDesigner reportDesigner){\r\n\t\ttry{\r\n\r\n\t\t\tDocument doc = XmlUtil.createNewXmlDocument();\r\n\t\t\tChartBlock.setDoc(doc);\r\n\r\n\t\t\tString name = \"model:ChartWithAxes\";\r\n\t\t\tif(type.contains(\"Pie\"))\r\n\t\t\t\tname = \"model:ChartWithoutAxes\";\r\n\r\n\t\t\tElement modelNode = doc.createElement(name);\r\n\t\t\tdoc.appendChild(modelNode);\r\n\r\n\t\t\tmodelNode.setAttribute(\"xmlns:xsi\",\"http://www.w3.org/2001/XMLSchema-instance\");\r\n\t\t\tmodelNode.setAttribute(\"xmlns:attribute\",\"http://www.birt.eclipse.org/ChartModelAttribute\");\r\n\t\t\tmodelNode.setAttribute(\"xmlns:data\",\"http://www.birt.eclipse.org/ChartModelData\");\r\n\t\t\tmodelNode.setAttribute(\"xmlns:layout\",\"http://www.birt.eclipse.org/ChartModelLayout\");\r\n\t\t\tmodelNode.setAttribute(\"xmlns:model\",\"http://www.birt.eclipse.org/ChartModel\");\r\n\t\t\tmodelNode.setAttribute(\"xmlns:type\",\"http://www.birt.eclipse.org/ChartModelType\");\r\n\r\n\t\t\tElement versionNode = doc.createElement(\"Version\");\r\n\t\t\tversionNode.appendChild(doc.createTextNode(\"2.5.0\"));\r\n\t\t\tmodelNode.appendChild(versionNode);\r\n\r\n\t\t\tElement typeNode = doc.createElement(\"Type\");\r\n\t\t\ttypeNode.appendChild(doc.createTextNode(type));\r\n\t\t\tmodelNode.appendChild(typeNode);\r\n\r\n\t\t\tElement subTypeNode = doc.createElement(\"SubType\");\r\n\t\t\tsubTypeNode.appendChild(doc.createTextNode(\"Standard\"));\r\n\t\t\tmodelNode.appendChild(subTypeNode);\r\n\r\n\t\t\tmodelNode.appendChild(ChartBlock.createBlock(title));\r\n\r\n\t\t\tString xml = XmlUtil.doc2String(doc).replace(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\", \"\");\r\n\r\n\t\t\tString numericColName = reportDesigner.getReportColumns().get(0).getName();\r\n\t\t\tString textColName = reportDesigner.getReportColumns().get(1).getName();\r\n\r\n\t\t\tString chartType = type;\r\n\t\t\tint pos = type.indexOf(\" Chart\");\r\n\t\t\tif(pos > 0)\r\n\t\t\t\tchartType = type.substring(0,pos);\r\n\r\n\t\t\tif(chartType.contains(\"Bar\")){\r\n\t\t\t\txml = xml.replace(\"</model:ChartWithAxes>\", BarChartXml.getXml(numericColName,textColName,chartType,xAxisTitle, yAxisTitle));\r\n\t\t\t\txml += \"</model:ChartWithAxes>\";\r\n\t\t\t}\r\n\t\t\telse if(chartType.contains(\"Line\")){\r\n\t\t\t\txml = xml.replace(\"</model:ChartWithAxes>\", LineChartXml.getXml(numericColName,textColName,chartType,xAxisTitle, yAxisTitle));\r\n\t\t\t\txml += \"</model:ChartWithAxes>\";\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\txml = xml.replace(\"</model:ChartWithoutAxes>\", PieChartXml.getXml(numericColName,textColName,chartType,xAxisTitle, yAxisTitle));\r\n\t\t\t\txml += \"</model:ChartWithoutAxes>\";\r\n\t\t\t}\r\n\r\n\t\t\treturn xml;\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tlog.error(ex.getMessage(),ex);//ex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "TNode createTNode();", "Foot createFoot();", "private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}", "void nodeCreate( long id );", "public void createCustomNode() {\n final PNode n = new PNode() {\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n public void paint(final PPaintContext aPaintContext) {\n final double bx = getX();\n final double by = getY();\n final double rightBorder = bx + getWidth();\n final double bottomBorder = by + getHeight();\n\n final Line2D line = new Line2D.Double();\n final Graphics2D g2 = aPaintContext.getGraphics();\n\n g2.setStroke(new BasicStroke(0));\n g2.setPaint(getPaint());\n\n // draw vertical lines\n for (double x = bx; x < rightBorder; x += 5) {\n line.setLine(x, by, x, bottomBorder);\n g2.draw(line);\n }\n\n for (double y = by; y < bottomBorder; y += 5) {\n line.setLine(bx, y, rightBorder, y);\n g2.draw(line);\n }\n }\n };\n n.setBounds(0, 0, 100, 80);\n n.setPaint(Color.black);\n getCanvas().getLayer().addChild(n);\n }", "public void addNode(String id, String label, double sna, double sz, HashMap<String,Integer> growthsPerYear){\n\t\tnodes.add(new CircosNode(id, label, sna, sz, growthsPerYear));\n\t\t\n\t\tString color = Math.round(Math.random() * 255) + \",\" + \n\t\t\t\tMath.round(Math.random() * 255) + \",\" + Math.round(Math.random() * 255); \n\t\tcolors.put(id, color);\n\t}", "Definition createDefinition();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbaseElementEClass = createEClass(BASE_ELEMENT);\n\t\tcreateEReference(baseElementEClass, BASE_ELEMENT__KEY_VALUE_MAPS);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__ID);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__NAME);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__DESCRIPTION);\n\n\t\tkeyValueMapEClass = createEClass(KEY_VALUE_MAP);\n\t\tcreateEAttribute(keyValueMapEClass, KEY_VALUE_MAP__KEY);\n\t\tcreateEReference(keyValueMapEClass, KEY_VALUE_MAP__VALUES);\n\n\t\tvalueEClass = createEClass(VALUE);\n\t\tcreateEAttribute(valueEClass, VALUE__TAG);\n\t\tcreateEAttribute(valueEClass, VALUE__VALUE);\n\n\t\t// Create enums\n\t\ttimeUnitEEnum = createEEnum(TIME_UNIT);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__TIMING);\n\t\tcreateEAttribute(metadataEClass, METADATA__ADRESSING);\n\t\tcreateEAttribute(metadataEClass, METADATA__CARTRIDGE_TYPE);\n\t\tcreateEAttribute(metadataEClass, METADATA__ROM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__RAM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__LICENSEE);\n\t\tcreateEAttribute(metadataEClass, METADATA__COUNTRY);\n\t\tcreateEAttribute(metadataEClass, METADATA__VIDEOFORMAT);\n\t\tcreateEAttribute(metadataEClass, METADATA__VERSION);\n\t\tcreateEAttribute(metadataEClass, METADATA__IDE_VERSION);\n\t}", "private static void createMetadataNode(MetadataStore store, String path, byte[] data)\n throws InterruptedException, ExecutionException {\n try {\n store.put(path, data, Optional.of(-1L)).get();\n } catch (ExecutionException e) {\n if (!(e.getCause() instanceof MetadataStoreException.BadVersionException)) {\n throw e;\n }\n // Ignore\n }\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\n\t\taddAnnotation\n\t\t (unsignedIntEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (unsignedIntegerEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"baseType\", \"http://www.w3.org/2001/XMLSchema#decimal\"\n\t\t });\n\t\taddAnnotation\n\t\t (idEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"[a-zA-Z0-9_]([a-zA-Z0-9_\\\\-.$])*\"\n\t\t });\n\t\taddAnnotation\n\t\t (namespaceEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"([^\\\\s#])*(#|/)\",\n\t\t\t \"minLength\", \"2\"\n\t\t });\n\t}", "@Override\n\tpublic void configure(Node n) throws XMLWriteConfigurationException {\n\t\tif(n == null) throw new XMLWriteConfigurationException(\"Cannot configure reading point from null node\");\n\t\t\n\t\tString newname;\n\t\tGregorianCalendar newdate;\n\t\t\n\t\tNode nameNode = n.selectSingleNode(\"./name\");\n\t\tif(nameNode == null) throw new XMLWriteConfigurationException(\"Invalid reading point configuration: name node missing\");\n\t\tnewname = nameNode.getText();\n\t\t\n\t\tNode dateNode = n.selectSingleNode(\"./readingday\");\n\t\tif(dateNode == null) throw new XMLWriteConfigurationException(\"Invalid reading point configuration: date node missing\");\n\t\ttry {\n\t\t\tnewdate = new GregorianCalendar();\n\t\t\tnewdate.setTime(Fsfibu2DateFormats.getEntryDateFormat().parse(dateNode.getText()));\n\t\t}\n\t\tcatch(ParseException pe) {\n\t\t\tthrow new XMLWriteConfigurationException(\"Invalid reading point configuration: Date node contains invalid data.\");\n\t\t}\n\t\t\n\t\tsetName(newname);\n\t\tsetReadingDay(newdate);\n\t}", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "protected NodeFigure createNodePlate() {\r\n\t\tDefaultSizeNodeFigure result = new DefaultSizeNodeFigure(12, 12);\r\n\t\treturn result;\r\n\t}", "public HardTokenData(String tokensn, String username, Date createtime, Date modifytime, int tokentype, String significantissuerdn, HashMap data) {\n\t\tsetTokenSN(tokensn);\n\t\tsetUsername(username);\n\t\tsetCtime(createtime.getTime());\n\t\tsetMtime(modifytime.getTime());\n\t\tsetTokenType(tokentype);\n\t\tsetSignificantIssuerDN(significantissuerdn);\n\t\tsetData(data);\n\t\tlog.debug(\"Created Hard Token \"+ tokensn );\n\t}", "private final void createAndAddNode(String name) {\n\t}", "private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }", "org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume addNewTrafficVolume();", "void createNode(String path);", "@Override\n \t\t\t\tpublic void doCreateLineParticle() {\n \n \t\t\t\t}", "private Node createDetails ()\n {\n\n List<String> prefix = Arrays.asList (charts,sessionlength,labels);\n\n FlowPane b = new FlowPane ();\n b.getStyleClass ().add (StyleClassNames.DETAIL);\n\n return b;\n\n }", "Para createPara();", "public void createPackageContents() {\n if (this.isCreated) {\n return;\n }\n this.isCreated = true;\n\n // Create classes and their features\n this.systemSpecifiedExecutionTimeEClass = this.createEClass(SYSTEM_SPECIFIED_EXECUTION_TIME);\n\n this.specifiedExecutionTimeEClass = this.createEClass(SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.specifiedExecutionTimeEClass,\n SPECIFIED_EXECUTION_TIME__SPECIFICATION_SPECIFIED_EXECUTION_TIME);\n\n this.componentSpecifiedExecutionTimeEClass = this.createEClass(COMPONENT_SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.componentSpecifiedExecutionTimeEClass,\n COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcmdEClass = createEClass(CMD);\n\t\tcreateEAttribute(cmdEClass, CMD__PRIORITY);\n\t\tcreateEAttribute(cmdEClass, CMD__STAMP);\n\n\t\tcompoundCmdEClass = createEClass(COMPOUND_CMD);\n\t\tcreateEReference(compoundCmdEClass, COMPOUND_CMD__CHILDREN);\n\n\t\txCmdEClass = createEClass(XCMD);\n\t\tcreateEAttribute(xCmdEClass, XCMD__OBJ);\n\n\t\tbyteCmdEClass = createEClass(BYTE_CMD);\n\t\tcreateEAttribute(byteCmdEClass, BYTE_CMD__MESSAGE);\n\n\t\t// Create enums\n\t\tpriorityEEnum = createEEnum(PRIORITY);\n\t}", "void add(Member node, long now);", "public void MakeNode(String s, double x, double y) {\n Text nn = new Text(x + 18 - s.length(), y + 30, s); // Text of key value in the node\n nn.setFill(Color. rgb(20, 1, 0) );\n nn.setFont(Font.font(\"Times New Roman\", FontWeight.EXTRA_BOLD, 14));\n\n Rectangle nodeBox = new Rectangle(x, y, 50, 50); // node box configuration\n nodeBox.setFill(Color.rgb(140, 211, 255));\n nodeBox.setStroke(Color.rgb(35, 39, 42) );\n nodeBox.setArcHeight(15); nodeBox.setArcWidth(20);\n\n this.getChildren().addAll(nodeBox, nn);\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\n\t\taddAnnotation\n\t\t (controlEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"control\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Midi(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"midi\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Background(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"background\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Centered(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"centered\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Color(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"color\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_H(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"h\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Inverted(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_LocalOff(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"local_off\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Number(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_OscCs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"osc_cs\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Outline(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"outline\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Response(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"response\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalet(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalet\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Seconds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"seconds\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Size(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"size\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Text(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"text\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_W(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"w\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_X(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Y(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (layoutEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"layout\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Tabpage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"tabpage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Mode(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"mode\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Orientation(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"orientation\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Version(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"version\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (midiEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"midi\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Channel(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"channel\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data1(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data1\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2f(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2f\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2t(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2t\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Var(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"var\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (tabpageEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"tabpage\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Control(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"control\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (topEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"TOP\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTOP_Layout(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"layout\"\n\t\t });\n\t}", "@Test\n public void youCanCreateATimeSeriesFromPlatesFromACount() {\n\n VertexLabel xLabel = new VertexLabel(\"x\");\n VertexLabel xPreviousLabel = PlateBuilder.proxyFor(xLabel);\n VertexLabel yLabel = new VertexLabel(\"y\");\n\n Vertex<DoubleTensor> initialX = ConstantVertex.of(1.);\n List<Integer> ys = ImmutableList.of(0, 1, 2, 1, 3, 2);\n\n Plates plates = new PlateBuilder<Integer>()\n .withInitialState(xLabel, initialX)\n .count(10)\n .withFactory((plate) -> {\n DoubleVertex xPrevious = new DoubleProxyVertex(xPreviousLabel);\n DoubleVertex x = new ExponentialVertex(xPrevious);\n IntegerVertex y = new PoissonVertex(x);\n plate.add(xPrevious);\n plate.add(xLabel, x);\n plate.add(yLabel, y);\n })\n .build();\n\n\n Vertex<DoubleTensor> previousX = initialX;\n\n for (Plate plate : plates) {\n Vertex<DoubleTensor> xPreviousProxy = plate.get(xPreviousLabel);\n Vertex<DoubleTensor> x = plate.get(xLabel);\n Vertex<DoubleTensor> y = plate.get(yLabel);\n assertThat(xPreviousProxy.getParents(), contains(previousX));\n assertThat(x.getParents(), contains(xPreviousProxy));\n assertThat(y.getParents(), contains(x));\n previousX = x;\n }\n }", "protected abstract void createAttributes();", "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}", "public static GenericVolatilitySurfacePeriodParameterMetadata of(\n Period period,\n Strike strike,\n String label) {\n\n return new GenericVolatilitySurfacePeriodParameterMetadata(period, strike, label);\n }", "public void create(NetworkNode networkNode);", "public void create(Triple start, Triple end) {\n\t\t\n\t}", "EM createEM();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tliveScoreEClass = createEClass(LIVE_SCORE);\n\t\tcreateEReference(liveScoreEClass, LIVE_SCORE__PREFEREDPLAYER);\n\t\tcreateEAttribute(liveScoreEClass, LIVE_SCORE__SALONNAME);\n\n\t\tpreferedPlayerEClass = createEClass(PREFERED_PLAYER);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__NAME);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__WON);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__PLAYINGS);\n\t}", "protected void createCommandMetadata(SpaceSystemType spaceSystem) throws CCDDException\n {\n // Set the flag assuming the internal method is used\n boolean useInternal = true;\n\n // Check if an external method is to be used\n if (invocable != null)\n {\n try\n {\n // Execute the external method\n invocable.invokeFunction(\"createCommandMetadata\", factory, spaceSystem);\n\n // Set the flag to indicate the internal method is not used\n useInternal = false;\n }\n catch (NoSuchMethodException nsme)\n {\n // The script method couldn't be located in the script; use the internal method\n // instead\n }\n catch (Exception e)\n {\n throw new CCDDException(\"Error in script function '</b>createCommandMetadata<b>'; cause '</b>\"\n + e.getMessage() + \"<b>'\");\n }\n }\n\n // Check if the internal method is used\n if (useInternal)\n {\n spaceSystem.setCommandMetaData(factory.createCommandMetaDataType());\n spaceSystem.getCommandMetaData().setMetaCommandSet(factory.createCommandMetaDataTypeMetaCommandSet());\n }\n }", "public void createPeriodical(String[] bookInfo) {\n\t\tString isbn = bookInfo[0];\n\t\tString callNumber = bookInfo[1];\n\t\tint available = Integer.parseInt(bookInfo[2]);\n\t\tint total = Integer.parseInt(bookInfo[3]);\n\t\tString title = bookInfo[4];\n\t\tchar frequency = bookInfo[5].charAt(0);\n\n\t\tbookList.add(new Periodic(isbn, callNumber, available, total, title, frequency));\n\t}", "TimelineMeta insert(TimelineMeta meta);", "public static GraphNode createGraphNodeForSubsystem() {\n GraphNode nameNode = new GraphNode();\n\n for (int i = 0; i < 3; i++) {\n GraphNode childNode = new GraphNode();\n\n childNode.setPosition(AccuracyTestHelper.createPoint(0, 12 * i));\n childNode.setSize(AccuracyTestHelper.createDimension(100, 22));\n\n nameNode.addContained(childNode);\n }\n\n nameNode.setPosition(AccuracyTestHelper.createPoint(20, 20));\n nameNode.setSize(AccuracyTestHelper.createDimension(100, 100));\n\n GraphNode graphNode = new GraphNode();\n graphNode.addContained(nameNode);\n graphNode.addContained(new GraphNode());\n\n graphNode.setPosition(AccuracyTestHelper.createPoint(20, 20));\n graphNode.setSize(AccuracyTestHelper.createDimension(1000, 1000));\n\n // create a subsystem\n Subsystem subsystem = new SubsystemImpl();\n\n // set namespace\n Namespace namespace = new MockNamespaceImplAcucracy();\n subsystem.setNamespace(namespace);\n\n // create a semantic model\n Uml1SemanticModelBridge semanticModel = new Uml1SemanticModelBridge();\n semanticModel.setElement(subsystem);\n\n graphNode.setSemanticModel(semanticModel);\n\n return graphNode;\n }", "TD createTD();", "QuoteNote createQuoteNote();", "@Test\n public void testCreationTimestamp() {\n Product newProduct = TestUtil.createProduct();\n productCurator.create(newProduct);\n Pool pool = createPoolAndSub(owner, newProduct, 1L,\n TestUtil.createDate(2011, 3, 30),\n TestUtil.createDate(2022, 11, 29));\n poolCurator.create(pool);\n \n assertNotNull(pool.getCreated());\n }", "@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}", "@Override\n @NoProxy\n protected void toStringSegment(final ToString ts) {\n super.toStringSegment(ts);\n ts.newLine();\n ts.append(\"entityType\", getEntityType());\n ts.append(\"deleted\", getDeleted());\n ts.newLine();\n ts.append(\"dtstamp\", getDtstamp());\n ts.newLine();\n ts.append(\"dtstart\", getDtstart());\n ts.newLine();\n ts.append(\"dtend\", getDtend());\n\n ts.newLine();\n ts.append(\"status\", getStatus());\n ts.newLine();\n ts.append(\"lastmod\", getLastmod());\n ts.append(\"created\", getCreated());\n ts.append(\"stag\", getStag());\n ts.newLine();\n ts.append(\"priority\", getPriority());\n\n if (getPercentComplete() != null) {\n ts.append(\"percentComplete\", getPercentComplete());\n }\n\n if (getCompleted() != null) {\n ts.append(\"completed\", getCompleted());\n }\n\n ts.append(\"classification\", getClassification());\n if (getGeo() != null) {\n ts.append(\"geo\", getGeo());\n }\n\n ts.newLine();\n ts.append(\"uid\", getUid());\n ts.newLine();\n ts.append(\"name\", getName());\n\n ts.newLine();\n ts.append(\"ctoken\", getCtoken());\n\n /* ---------------- recurrence information */\n ts.newLine();\n ts.append(\"\\n, getRecurring\", getRecurring());\n\n if (getRecurrenceId() != null) {\n ts.append(\"recurrenceId\", getRecurrenceId());\n } else {\n if (hasRrules()) {\n ts.append(\"rrules\", getRrules());\n }\n\n if (hasExrules()) {\n ts.append(\"exrules\", getExrules());\n }\n\n if (hasExdates()) {\n ts.append(\"exdates\", getExdates());\n }\n\n if (hasRdates()) {\n ts.append(\"rdates\", getRdates());\n }\n }\n\n ts.newLine();\n ts.append(\"organizer\", getOrganizer());\n\n if (getNumRecipients() > 0) {\n ts.append(\"recipients\", getRecipients());\n }\n\n if (getNumCategories() > 0) {\n ts.newLine();\n ts.append(\"categories\", getCategories());\n }\n\n if (getNumComments() > 0) {\n ts.newLine();\n ts.append(\"comments\", getComments());\n }\n\n if (getNumContacts() > 0) {\n ts.newLine();\n ts.append(\"contacts\", getContacts());\n }\n\n if (getNumSummaries() > 0) {\n ts.newLine();\n ts.append(\"summary\", getSummaries());\n }\n\n if (getNumDescriptions() > 0) {\n ts.newLine();\n ts.append(\"description\", getDescriptions());\n }\n\n if (getNumResources() > 0) {\n ts.newLine();\n ts.append(\"resource\", getResources());\n }\n\n if (getNumAttendees() > 0) {\n ts.newLine();\n ts.append(\"attendee\", getAttendees(), true);\n }\n\n ts.newLine();\n ts.append(\"sequence\", getSequence());\n ts.append(\"scheduleMethod\", getScheduleMethod());\n ts.newLine();\n ts.append(\"originator\", getOriginator());\n ts.append(\"scheduleState\", getScheduleState());\n\n\n if (getNumRequestStatuses() > 0) {\n ts.append(\"requestStatuses\", getRequestStatuses());\n }\n\n if (getRelatedTo() != null) {\n ts.append(\"relatedTo\", getRelatedTo());\n }\n\n if (getNumAlarms() > 0) {\n ts.newLine();\n ts.append(\"alarms\", getAlarms(), true);\n }\n\n ts.append(\"pollItemId\", getPollItemId());\n ts.append(\"pollCandidate\", getPollCandidate());\n\n if (getEntityType() == IcalDefs.entityTypeVpoll) {\n ts.append(\"pollWinner\", getPollWinner());\n ts.append(\"pollMode\", getPollMode());\n ts.append(\"pollProperties\", getPollProperties());\n ts.append(\"pollAcceptResponse\", getPollAcceptResponse());\n ts.append(\"pollItems\", getPollItems());\n }\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tdataChannelEClass = createEClass(DATA_CHANNEL);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__CAPACITY);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SOURCE_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SINK_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SOURCE_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SINK_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__PARTITIONING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__TIME_GROUPING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__JOINS);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__OUTGOING_DISTRIBUTION);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__SCHEDULING);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__PUT_POLICY);\r\n\t}", "public void markFileCreationPeriodReplace() throws JNCException {\n markLeafReplace(\"fileCreationPeriod\");\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__TASK_ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEAttribute(taskEClass, TASK__DEADLINE);\n\n\t\tperiodicTaskEClass = createEClass(PERIODIC_TASK);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__PERIOD);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__OFFSET);\n\n\t\taperiodicTaskEClass = createEClass(APERIODIC_TASK);\n\t\tcreateEReference(aperiodicTaskEClass, APERIODIC_TASK__INTERARRIVAL_DISTRIBUTION);\n\n\t\tsubtaskEClass = createEClass(SUBTASK);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__NAME);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PRIORITY);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__RET_ANCHOR_USED);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__ACTIVATION_SYNCHRONOUS);\n\t\tcreateEReference(subtaskEClass, SUBTASK__EXEC_TIME_DISTRIBUTION);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__BYPASS);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__DOWNSAMPLING_FACTOR);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__CALLING_THREAD_PRIORITY);\n\t\tcreateEReference(subtaskEClass, SUBTASK__MUTEXES);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PIN_ID);\n\n\t\tdistributionEClass = createEClass(DISTRIBUTION);\n\n\t\tconstantEClass = createEClass(CONSTANT);\n\t\tcreateEAttribute(constantEClass, CONSTANT__VALUE);\n\n\t\texponentialEClass = createEClass(EXPONENTIAL);\n\t\tcreateEAttribute(exponentialEClass, EXPONENTIAL__MEAN);\n\n\t\tuniformEClass = createEClass(UNIFORM);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MAX);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MIN);\n\n\t\tunknownEClass = createEClass(UNKNOWN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MEAN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MIN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MAX);\n\n\t\tnormalEClass = createEClass(NORMAL);\n\t\tcreateEAttribute(normalEClass, NORMAL__MEAN);\n\t\tcreateEAttribute(normalEClass, NORMAL__STD_DEV);\n\n\t\tperformanceModelEClass = createEClass(PERFORMANCE_MODEL);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__TASKS);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__NAME);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__MUTEXES);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__SOURCE_FILE);\n\n\t\tssTaskEClass = createEClass(SS_TASK);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BUDGET);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__REPLENISHMENT_PERIOD);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BACKGROUND_PRIORITY);\n\n\t\tmutexEClass = createEClass(MUTEX);\n\t\tcreateEAttribute(mutexEClass, MUTEX__NAME);\n\t}", "private Node createAddNetwork(String name, double v1, double v2) {\n Node number1 = numberNode.extend()\n .withName(\"number1\")\n .withInputValue(\"number\", v1);\n Node number2 = numberNode.extend()\n .withName(\"number2\")\n .withInputValue(\"number\", v2);\n return Node.NETWORK\n .withName(name)\n .withChildAdded(number1)\n .withChildAdded(number2)\n .withChildAdded(addNode)\n .withRenderedChild(addNode)\n .connect(\"number1\", \"add\", \"v1\")\n .connect(\"number2\", \"add\", \"v2\");\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\toml2OTIProvenanceEClass = createEClass(OML2OTI_PROVENANCE);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_IRI);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_ID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_URL);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__EXPLANATION);\n\n\t\t// Create data types\n\t\tuuidEDataType = createEDataType(UUID);\n\t\tomL_IRIEDataType = createEDataType(OML_IRI);\n\t\totI_TOOL_SPECIFIC_IDEDataType = createEDataType(OTI_TOOL_SPECIFIC_ID);\n\t\totI_TOOL_SPECIFIC_UUIDEDataType = createEDataType(OTI_TOOL_SPECIFIC_UUID);\n\t\totI_TOOL_SPECIFIC_URLEDataType = createEDataType(OTI_TOOL_SPECIFIC_URL);\n\t}", "DomainElement createDomainElement();", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private void addOMEChild(String name, String value, OMElement parent, OMFactory factory, OMNamespace dsNs){\r\n\t\t OMElement child = factory.createOMElement(name, dsNs);\r\n\t\t child.addChild(factory.createOMText(value));\r\n\t\t parent.addChild(child);\r\n\t }", "public void constructJSONGraph(String name){\n \t IndexHits<Node> foundNodes = findTaxNodeByName(name);\n Node firstNode = null;\n if (foundNodes.size() < 1){\n System.out.println(\"name '\" + name + \"' not found. quitting.\");\n return;\n } else if (foundNodes.size() > 1) {\n System.out.println(\"more than one node found for name '\" + name + \"'not sure how to deal with this. quitting\");\n } else {\n for (Node n : foundNodes)\n firstNode = n;\n }\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tTraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t .relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tHashMap<Node,Integer> nodenumbers = new HashMap<Node,Integer>();\n \t\tHashMap<Integer,Node> numbernodes = new HashMap<Integer,Node>();\n \t\tint count = 0;\n \t\tfor(Node friendnode: CHILDOF_TRAVERSAL.traverse(firstNode).nodes()){\n \t\t\tif (friendnode.hasRelationship(Direction.INCOMING)){\n \t\t\t\tnodenumbers.put(friendnode, count);\n \t\t\t\tnumbernodes.put(count,friendnode);\n \t\t\t\tcount += 1;\n \t\t\t}\n \t\t}\n \t\tPrintWriter outFile;\n \t\ttry {\n \t\t\toutFile = new PrintWriter(new FileWriter(\"graph_data.js\"));\n \t\t\toutFile.write(\"{\\\"nodes\\\":[\");\n \t\t\tfor(int i=0; i<count;i++){\n \t\t\t\tNode tnode = numbernodes.get(i);\n \t\t\t\toutFile.write(\"{\\\"name\\\":\\\"\"+tnode.getProperty(\"name\")+\"\");\n \t\t\t\toutFile.write(\"\\\",\\\"group\\\":\"+nodenumbers.get(tnode)+\"\");\n \t\t\t\toutFile.write(\"},\");\n \t\t\t}\n \t\t\toutFile.write(\"],\\\"links\\\":[\");\n \t\t\tfor(Node tnode: nodenumbers.keySet()){\n \t\t\t\tfor(Relationship trel : tnode.getRelationships(Direction.OUTGOING)){\n \t\t\t\t\toutFile.write(\"{\\\"source\\\":\"+nodenumbers.get(trel.getStartNode())+\"\");\n \t\t\t\t\toutFile.write(\",\\\"target\\\":\"+nodenumbers.get(trel.getEndNode())+\"\");\n \t\t\t\t\toutFile.write(\",\\\"value\\\":\"+1+\"\");\n \t\t\t\t\toutFile.write(\"},\");\n \t\t\t\t}\n \t\t\t}\n \t\t\toutFile.write(\"]\");\n \t\t\toutFile.write(\"}\\n\");\n \t\t\toutFile.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "public void addChild(Node n) {\n\t\taddChild(n, (rand.nextDouble()*0.02 - 0.01));\n\t}", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public void testDomainCreate() {\n\t\tEPPDomainCreateCmd theCommand;\n\t\tEPPEncodeDecodeStats commandStats;\n\n\t\tEPPCodecTst.printStart(\"testDomainCreate\");\n\n\t\t// Create Command\n\t\ttheCommand = new EPPDomainCreateCmd(\"ABC-12345\", \"example.com\",\n\t\t\t\tnew EPPAuthInfo(\"2fooBAR\"));\n\n\t\tEPPFeeCreate theCreateExt = new EPPFeeCreate(new EPPFeeValue(\n\t\t\t\tnew BigDecimal(\"5.00\")));\n\t\ttheCreateExt.setCurrency(\"USD\");\n\n\t\ttheCommand.addExtension(theCreateExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theCommand);\n\t\tSystem.out.println(commandStats);\n\n\t\t// Create Response\n\t\tEPPDomainCreateResp theResponse;\n\n\t\tEPPTransId respTransId = new EPPTransId(theCommand.getTransId(),\n\t\t\t\t\"54321-XYZ\");\n\n\t\ttheResponse = new EPPDomainCreateResp(respTransId, \"example.com\",\n\t\t\t\tnew GregorianCalendar(1999, 4, 3).getTime(),\n\t\t\t\tnew GregorianCalendar(2001, 4, 3).getTime());\n\t\ttheResponse.setResult(EPPResult.SUCCESS);\n\n\t\tEPPFeeCreData theRespExt = new EPPFeeCreData(\"USD\", new EPPFeeValue(\n\t\t\t\tnew BigDecimal(\"5.00\")));\n\n\t\ttheCommand.addExtension(theRespExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theCommand);\n\t\tSystem.out.println(commandStats);\n\n\t\trespTransId = new EPPTransId(theCommand.getTransId(), \"54321-XYZ\");\n\n\t\ttheResponse = new EPPDomainCreateResp(respTransId, \"example.com\",\n\t\t\t\tnew GregorianCalendar(1999, 4, 3).getTime(),\n\t\t\t\tnew GregorianCalendar(2001, 4, 3).getTime());\n\t\ttheResponse.setResult(EPPResult.SUCCESS);\n\n\t\ttheRespExt = new EPPFeeCreData(\"USD\", new EPPFeeValue(new BigDecimal(\n\t\t\t\t\"5.00\")));\n\t\ttheRespExt.setBalance(new BigDecimal(\"-5.00\"));\n\t\ttheRespExt.setCreditLimit(new BigDecimal(\"1000.00\"));\n\n\t\ttheCommand.addExtension(theRespExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theCommand);\n\t\tSystem.out.println(commandStats);\n\n\t\tEPPCodecTst.printEnd(\"testDomainCreate\");\n\n\t}", "public Label create() {\n\t\t\tgeneratedValue += 1;\n\t\t\treturn new Label(Type.GENERATED, generatedValue);\n\t\t}", "Line createLine();", "private PieData generateDataPie() {\n\n ArrayList<PieEntry> entries = new ArrayList<>();\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n TransactionBeans transactionBeans = transactionDB.getTransactionRecordsYear(month1,year);\n if(transactionBeans!=null) {\n float income = 0;\n float expense = 0;\n try{\n income = (float) (Double.parseDouble(transactionBeans.getIncome()));\n }catch(Exception e){\n income = 0;\n }\n try{\n expense = (float) (Double.parseDouble(transactionBeans.getExpense()));\n }catch(Exception e){\n expense = 0;\n }\n entries.add(new PieEntry(income, \"Income \"));\n entries.add(new PieEntry(expense, \"Expense \"));\n }\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n return new PieData(d);\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\n\t\taddAnnotation\n\t\t (getJClass_Operations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"simple\"\n\t\t });\n\t}", "public abstract DataType<T> newInstance(String format);", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\trunnableEClass = createEClass(RUNNABLE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PORT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PERIOD);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__LABEL_ACCESSES);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__DEADLINE);\r\n\r\n\t\tlabelEClass = createEClass(LABEL);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_STATECHART);\r\n\t\tcreateEAttribute(labelEClass, LABEL__IS_CONSTANT);\r\n\r\n\t\tlabelAccessEClass = createEClass(LABEL_ACCESS);\r\n\t\tcreateEAttribute(labelAccessEClass, LABEL_ACCESS__ACCESS_KIND);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESS_LABEL);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESSING_RUNNABLE);\r\n\r\n\t\t// Create enums\r\n\t\tlabelAccessKindEEnum = createEEnum(LABEL_ACCESS_KIND);\r\n\t}", "abstract protected T createModuleNode(NodeDescriptor node);", "private void createSerie(ws.Serie entity) {\n ws.DrawdedeWebService port = service.getDrawdedeWebServicePort();\n port.createSerie(entity);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\taudioEClass = createEClass(AUDIO);\n\t\tcreateEAttribute(audioEClass, AUDIO__CONTENT);\n\t\tcreateEAttribute(audioEClass, AUDIO__NAME);\n\t\tcreateEAttribute(audioEClass, AUDIO__TEXT);\n\n\t\taudioManagerEClass = createEClass(AUDIO_MANAGER);\n\n\t\taudioRecorderEClass = createEClass(AUDIO_RECORDER);\n\n\t\taudioPlayerEClass = createEClass(AUDIO_PLAYER);\n\n\t\t// Create enums\n\t\taudioStyleEEnum = createEEnum(AUDIO_STYLE);\n\t}", "public Series () {\n super();\n this.price = RandomFill.generateNumber(5,15);\n this.listSeason = RandomFill.generateListSeason();\n }", "@Override\n \t\t\t\tpublic String getMetadataGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/metadata\";\n \t\t\t\t}", "public String getNewick() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String newick = new String();\n newick = newick + generateNewick();\n newick = newick + \";\";\n return newick;\n }", "private void createAttributes(String type, String unit, Dataset dataset) throws HDF5Exception\n\t{\n\t\t// One piece of information per attribute, e.g. one for\n\t\t// unit and one for metatype\n\t\tlong[] attrDims = { 1 };\n\t\t// create attribute holding metatype (parameternode or variablenode)\n\t\tif(type != null)\n\t\t{\n\t\t\tif(!type.equals(\"\"))\n\t\t\t{\n\t\t\t\tString[] classValue = { type };\n\t\t\t\tDatatype attrType = new H5Datatype(Datatype.CLASS_STRING, classValue[0].length() + 1, -1, -1);\n\t\t\t\tAttribute attr = new Attribute(\"metatype\", attrType, attrDims);\n\t\t\t\tattr.setValue(classValue);\n\t\t\t\trecordingsH5File.writeAttribute(dataset, attr, false);\n\t\t\t}\n\t\t}\n\n\t\t// create attribute holding unit of measurement\n\t\tif(unit != null)\n\t\t{\n\t\t\tif(!unit.equals(\"\"))\n\t\t\t{\n\t\t\t\tString[] classValue2 = { unit };\n\t\t\t\tDatatype attrType2 = new H5Datatype(Datatype.CLASS_STRING, classValue2[0].length() + 1, -1, -1);\n\t\t\t\tAttribute attr2 = new Attribute(\"unit\", attrType2, attrDims);\n\t\t\t\tattr2.setValue(classValue2);\n\t\t\t\trecordingsH5File.writeAttribute(dataset, attr2, false);\n\t\t\t}\n\t\t}\n\t}", "protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceMessage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_ReferenceNumber(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_InvoiceContentTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-precise\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"3\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_InvoiceItemAssocTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_InvoiceItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Percentage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceTermId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermDays(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TextValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_UomId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_InvoiceTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}", "private MockTopologyNode createMockNode(MockTopologyNode parent, String nodeName, String typeHint, long freq,\n long timestamp, Boolean isId, Boolean isReplace){\n final MockTopologyNode result = (MockTopologyNode) parent.createNode(nodeName);\n result.setTypeHint(typeHint);\n result.setReplace(isReplace);\n result.setIsIdentity(isId);\n result.setNodeFrequency(freq);\n result.setNodeTimestamp(timestamp);\n\n return result;\n}", "public static GraphNode createGeom( Node dataNode ) {\r\n\t\tString type = dataNode.getAttributes().getNamedItem(\"type\").getNodeValue();\r\n\t\tString name = dataNode.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n\t\tTuple3d t;\r\n\t\tString stacks; \r\n\t\tString slices;\r\n\t\t\r\n\t\tif(type.equals(\"wireCube\" ) || type.equals(\"wireSphere\") || type.equals( \"solidCube\" ) || type.equals(\"solidSphere\")\r\n\t\t\t\t|| type.equals(\"wireDodec\") || type.equals(\"solidDodec\") || type.equals(\"wireTetra\") || type.equals(\"solidTetra\")\r\n\t\t\t\t|| type.equals(\"solidCone\") || type.equals(\"wireCone\")){\r\n\t\t\t\r\n\t\t\tGeometry geom = new Geometry(name, type);\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"position\")) != null ) geom.setPosition( t );\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"scale\")) != null ) geom.setScale( t );\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"color\")) != null ) geom.setColor( t );\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"fixedRotation\")) != null ) geom.setFixedRotation( t );\r\n\t\t\t\r\n\t\t\tif(dataNode.getAttributes().getNamedItem(\"wink\") != null) geom.setWink();\r\n\t\t\t\r\n\t\t\tif ( type.equals(\"wireCube\" ) || type.equals(\"wireSphere\") || type.equals(\"solidCone\") || type.equals(\"wireCone\")) {\r\n\t\t\t\tif ( (dataNode.getAttributes().getNamedItem(\"stacks\")) != null) {\r\n\t\t\t\t\tgeom.setStacks( Integer.parseInt(dataNode.getAttributes().getNamedItem(\"stacks\").getNodeValue()) );\r\n\t\t\t\t}\r\n\t\t\t\tif ( (dataNode.getAttributes().getNamedItem(\"slices\")) != null) {\r\n\t\t\t\t\tgeom.setSlices( Integer.parseInt(dataNode.getAttributes().getNamedItem(\"slices\").getNodeValue()) );\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn geom;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\t\t\r\n\t\t\r\n\t}", "public void createChildNode(String root, String name, String contents, String[] keys, String[] values){\n\t\tNode rootNode = doc.getElementsByTagName(root).item(0);\n\t\n\t\tElement child = doc.createElement(name); \n\t\t\n\t\tfor(int i = 0; i < keys.length; i++){ //loops through the keys, and set a new attribute to the node with these keys and values\n\t\t\tchild.setAttribute(keys[i], values[i]);\n\t\t}\n\t\t\n\t\tchild.appendChild(doc.createTextNode(contents));\n\t\trootNode.appendChild(child);\n\t\twrite(); //write to the file\n\t}", "Exploitation createExploitation();", "public DefaultCurveMetadata build() {\n return new DefaultCurveMetadata(curveName, xValueType, yValueType, info, parameterMetadata);\n }", "DataPackage createDataPackage();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__IMPLEMENTATIONS);\n\n\t\timplementationEClass = createEClass(IMPLEMENTATION);\n\t\tcreateEAttribute(implementationEClass, IMPLEMENTATION__CODE);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__TECHNOLOGY);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__LANGUAGE);\n\n\t\tsemanticsEClass = createEClass(SEMANTICS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__ANNOTATIONS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__LANGUAGES);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__TECHNOLOGIES);\n\n\t\ttargetLanguageEClass = createEClass(TARGET_LANGUAGE);\n\n\t\ttechnologyEClass = createEClass(TECHNOLOGY);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\t}", "@Override\n public void toXML(Node node)\n {\n super.toXML(node);\n\n Document document = node.getOwnerDocument();\n\n Element e = document.createElement(\"lethal-range\");\n e.setTextContent(String.valueOf(this.getLethalRange()));\n node.appendChild(e);\n\n e = document.createElement(\"pk\");\n e.setTextContent(String.valueOf(this.getPk()));\n node.appendChild(e);\n\n e = document.createElement(\"max-gs\");\n e.setTextContent(String.valueOf(this.getMaxGs()));\n node.appendChild(e);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinvoiceEClass = createEClass(INVOICE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_ID);\n\t\tcreateEReference(invoiceEClass, INVOICE__BILLING_ACCOUNT);\n\t\tcreateEReference(invoiceEClass, INVOICE__CONTACT_MECH);\n\t\tcreateEReference(invoiceEClass, INVOICE__CURRENCY_UOM);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DUE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ITEMS);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_MESSAGE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_NOTES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_STATUSES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__PAID_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceEClass, INVOICE__RECURRENCE_INFO);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__REFERENCE_NUMBER);\n\t\tcreateEReference(invoiceEClass, INVOICE__ROLE_TYPE);\n\t\tcreateEReference(invoiceEClass, INVOICE__STATUS);\n\n\t\tinvoiceAttributeEClass = createEClass(INVOICE_ATTRIBUTE);\n\t\tcreateEReference(invoiceAttributeEClass, INVOICE_ATTRIBUTE__INVOICE);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceContactMechEClass = createEClass(INVOICE_CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__INVOICE);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH_PURPOSE_TYPE);\n\n\t\tinvoiceContentEClass = createEClass(INVOICE_CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__FROM_DATE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__THRU_DATE);\n\n\t\tinvoiceContentTypeEClass = createEClass(INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__INVOICE_CONTENT_TYPE_ID);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemEClass = createEClass(INVOICE_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__AMOUNT);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__DESCRIPTION);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVENTORY_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_ORG_PARTY);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT_FEATURE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__QUANTITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__SALES_OPPORTUNITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_GEO);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_PARTY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTHORITY_RATE_SEQ);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__TAXABLE_FLAG);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__UOM);\n\n\t\tinvoiceItemAssocEClass = createEClass(INVOICE_ITEM_ASSOC);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__FROM_DATE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__AMOUNT);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__QUANTITY);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__THRU_DATE);\n\n\t\tinvoiceItemAssocTypeEClass = createEClass(INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__INVOICE_ITEM_ASSOC_TYPE_ID);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemAttributeEClass = createEClass(INVOICE_ITEM_ATTRIBUTE);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceItemTypeEClass = createEClass(INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ID);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DEFAULT_GL_ACCOUNT);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ATTRS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_GL_ACCOUNTS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemTypeAttrEClass = createEClass(INVOICE_ITEM_TYPE_ATTR);\n\t\tcreateEReference(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__DESCRIPTION);\n\n\t\tinvoiceItemTypeGlAccountEClass = createEClass(INVOICE_ITEM_TYPE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__ORGANIZATION_PARTY);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__GL_ACCOUNT);\n\n\t\tinvoiceItemTypeMapEClass = createEClass(INVOICE_ITEM_TYPE_MAP);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_MAP_KEY);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_TYPE);\n\n\t\tinvoiceNoteEClass = createEClass(INVOICE_NOTE);\n\t\tcreateEReference(invoiceNoteEClass, INVOICE_NOTE__INVOICE);\n\n\t\tinvoiceRoleEClass = createEClass(INVOICE_ROLE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__INVOICE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__PARTY);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__ROLE_TYPE);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__DATETIME_PERFORMED);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__PERCENTAGE);\n\n\t\tinvoiceStatusEClass = createEClass(INVOICE_STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__INVOICE);\n\t\tcreateEAttribute(invoiceStatusEClass, INVOICE_STATUS__STATUS_DATE);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__CHANGE_BY_USER_LOGIN);\n\n\t\tinvoiceTermEClass = createEClass(INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ID);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__DESCRIPTION);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_DAYS);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__TERM_TYPE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TEXT_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__UOM_ID);\n\n\t\tinvoiceTermAttributeEClass = createEClass(INVOICE_TERM_ATTRIBUTE);\n\t\tcreateEReference(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceTypeEClass = createEClass(INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ID);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ATTRS);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__PARENT_TYPE);\n\n\t\tinvoiceTypeAttrEClass = createEClass(INVOICE_TYPE_ATTR);\n\t\tcreateEReference(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__DESCRIPTION);\n\t}" ]
[ "0.54564255", "0.5433199", "0.52579343", "0.5162612", "0.5066154", "0.5040265", "0.50076866", "0.4961291", "0.49522364", "0.48838326", "0.48326343", "0.48027578", "0.47747296", "0.477165", "0.47680223", "0.47578034", "0.47238442", "0.47183162", "0.47139043", "0.47107577", "0.46935624", "0.46871546", "0.46840048", "0.46831888", "0.4659023", "0.46541986", "0.46354502", "0.4634482", "0.46288887", "0.46236604", "0.46213257", "0.46208635", "0.46055418", "0.46003652", "0.4599428", "0.45972195", "0.45721918", "0.45676208", "0.45607743", "0.45361546", "0.45342562", "0.45306623", "0.45283246", "0.45176935", "0.4506875", "0.45009673", "0.44982463", "0.4495527", "0.4491452", "0.44828802", "0.44767022", "0.44765934", "0.4469733", "0.44510433", "0.44499594", "0.44489986", "0.44469222", "0.44466674", "0.44431433", "0.4427515", "0.44194275", "0.44174075", "0.44160676", "0.44138545", "0.44111598", "0.44046482", "0.43957093", "0.4386686", "0.43824717", "0.43823025", "0.4381344", "0.43802515", "0.43795255", "0.43786898", "0.43715498", "0.43693143", "0.4366406", "0.43632764", "0.43589675", "0.43559", "0.4349514", "0.43483898", "0.4344027", "0.43430886", "0.4338646", "0.43236375", "0.4323529", "0.43203723", "0.43192357", "0.4317789", "0.43169066", "0.4308305", "0.43042877", "0.43019694", "0.42960078", "0.42955327", "0.42908525", "0.42881617", "0.42872706", "0.42821744" ]
0.48014402
12
Creates node using period, strike and label.
public static GenericVolatilitySurfacePeriodParameterMetadata of( Period period, Strike strike, String label) { return new GenericVolatilitySurfacePeriodParameterMetadata(period, strike, label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addDotNode(DotNode dt) {\n dotNodes.add(dt);\n }", "public void createCustomNode() {\n final PNode n = new PNode() {\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n public void paint(final PPaintContext aPaintContext) {\n final double bx = getX();\n final double by = getY();\n final double rightBorder = bx + getWidth();\n final double bottomBorder = by + getHeight();\n\n final Line2D line = new Line2D.Double();\n final Graphics2D g2 = aPaintContext.getGraphics();\n\n g2.setStroke(new BasicStroke(0));\n g2.setPaint(getPaint());\n\n // draw vertical lines\n for (double x = bx; x < rightBorder; x += 5) {\n line.setLine(x, by, x, bottomBorder);\n g2.draw(line);\n }\n\n for (double y = by; y < bottomBorder; y += 5) {\n line.setLine(bx, y, rightBorder, y);\n g2.draw(line);\n }\n }\n };\n n.setBounds(0, 0, 100, 80);\n n.setPaint(Color.black);\n getCanvas().getLayer().addChild(n);\n }", "public Label create() {\n\t\t\tgeneratedValue += 1;\n\t\t\treturn new Label(Type.GENERATED, generatedValue);\n\t\t}", "private Label addNewLabel() {\n getElement().getChildren().forEach(e -> getElement().removeChild(e));\n // Create and add a new slotted label\n Label label = new Label();\n label.getElement().setAttribute(\"slot\", \"label\");\n this.getElement().appendChild(label.getElement());\n return label;\n }", "TNode createTNode();", "public SimpleNodeLabel() {\n super();\n }", "com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();", "private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // change canonicalName to Label\r\n//\t passThroughMapping.setControllingAttributeName\r\n//\t (\"canonicalName\", null, false);\r\n\t passThroughMapping.setControllingAttributeName\r\n// (Semantics.LABEL, null, false);\r\n\t (Semantics.CANONICAL_NAME, null, false);\r\n\t\r\n\t GenericNodeLabelCalculator nodeLabelCalculator =\r\n\t new GenericNodeLabelCalculator(\"SimpleBioMoleculeEditor ID Label\"\r\n\t , passThroughMapping);\r\n\t nac.setNodeLabelCalculator(nodeLabelCalculator);\r\n\t }", "void createNode(String path);", "private final void createAndAddNode(String name) {\n\t}", "public static LabelToNode createIncremental()\n { return new LabelToNode(new SingleScopePolicy(), nodeAllocatorDeterministic()); }", "public void MakeNode(String s, double x, double y) {\n Text nn = new Text(x + 18 - s.length(), y + 30, s); // Text of key value in the node\n nn.setFill(Color. rgb(20, 1, 0) );\n nn.setFont(Font.font(\"Times New Roman\", FontWeight.EXTRA_BOLD, 14));\n\n Rectangle nodeBox = new Rectangle(x, y, 50, 50); // node box configuration\n nodeBox.setFill(Color.rgb(140, 211, 255));\n nodeBox.setStroke(Color.rgb(35, 39, 42) );\n nodeBox.setArcHeight(15); nodeBox.setArcWidth(20);\n\n this.getChildren().addAll(nodeBox, nn);\n }", "public void addNode(String id, String label, double sna, double sz, HashMap<String,Integer> growthsPerYear){\n\t\tnodes.add(new CircosNode(id, label, sna, sz, growthsPerYear));\n\t\t\n\t\tString color = Math.round(Math.random() * 255) + \",\" + \n\t\t\t\tMath.round(Math.random() * 255) + \",\" + Math.round(Math.random() * 255); \n\t\tcolors.put(id, color);\n\t}", "Line createLine();", "void createLabelToken( String name, int id );", "private ParseTree parseNewDotSomething() {\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.NEW);\n eat(TokenType.PERIOD);\n eatPredefinedString(\"target\");\n return new NewTargetExpressionTree(getTreeLocation(start));\n }", "@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}", "Para createPara();", "private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }", "private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}", "@Override\n\tpublic String createNode(String type,String name,String time,String loca,String phone, String desc,String axisId ) {\n\t\tNode node = new Node(type, name, time, loca, phone, desc, axisId);\n\t\thibernatedao.insert(null, node);\n\t\treturn node.getId();\n\t}", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "POperand createPOperand();", "@Override\n \t\t\t\tpublic void doCreateLineParticle() {\n \n \t\t\t\t}", "private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }", "JFreeChart generateDot();", "Axis (Timeline timeline) {\n\n// assigns a Timeline to the Axis\n this.timeline = timeline;\n\n// creates a common y value for all Elements of the Axis\n// also used by all Markers on this Axis\n y = (axes.size() + 1) * 120;\n\n// places and styles the Axis\n this.setText(timeline.name.toUpperCase());\n this.setLayoutY(y - 12);\n this.setStyle(stylesheet.toString());\n this.getStyleClass().add(\"marker\");\n\n// places and styles the persistentLabel\n persistentLabel = new Label(timeline.name.toUpperCase());\n persistentLabel.setLayoutY(y - 13);\n persistentLabel.setStyle(stylesheet.toString());\n persistentLabel.getStyleClass().add(\"marker\");\n persistentLabel.setStyle(\"-fx-text-fill: #cccccc\");\n persistentLabel.setLayoutX(20);\n persistentLabel.setVisible(false);\n\n// sets start as the startDate of the first Event\n start = timeline.events.peekFirst().startDate[2];\n\n// sets right click on the Label and persistentLabel to expand Timeline\n this.setOnMouseClicked(mouseEvent -> {\n if (mouseEvent.getButton() == MouseButton.SECONDARY)\n expandElement(timeline);\n });\n persistentLabel.setOnMouseClicked(mouseEvent -> {\n if (mouseEvent.getButton() == MouseButton.SECONDARY)\n expandElement(timeline);\n });\n }", "private Label initVBoxLabel(VBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "void nodeCreate( long id );", "static String makeNode(String id,\n String function,\n String label) {\n label = label.replace(\"&\", \"&amp;\");\n label = label.replace(\"\\\"\", \"&quot;\");\n label = label.replace(\"'\", \"&apos;\");\n return format(NODE_FMT, id, function, label);\n }", "private Node createAddNetwork(String name, double v1, double v2) {\n Node number1 = numberNode.extend()\n .withName(\"number1\")\n .withInputValue(\"number\", v1);\n Node number2 = numberNode.extend()\n .withName(\"number2\")\n .withInputValue(\"number\", v2);\n return Node.NETWORK\n .withName(name)\n .withChildAdded(number1)\n .withChildAdded(number2)\n .withChildAdded(addNode)\n .withRenderedChild(addNode)\n .connect(\"number1\", \"add\", \"v1\")\n .connect(\"number2\", \"add\", \"v2\");\n }", "private String makeLabel(String label)\n {\n \treturn label + \"$\" + Integer.toString(labelCount++);\n }", "protected void createSimpleLabel(String name, String content, AlignmentLocation horz, AlignmentLocation vert, \n\t\t\tString parentZoneName) {\n\t\tnew Label(name, content, Color.WHITE, 30f, horz, vert, parentZoneName, this);\n\t}", "public void create(NetworkNode networkNode);", "public Node( String id, String label )\r\n {\r\n initialize(id);\r\n if ( label == null ) lbl = id;\r\n else lbl = label;\r\n }", "public abstract GraphNode<N, E> createNode(N value);", "public LabelFactory() {\n this(0);\n }", "void createNode(NodeKey key);", "@Action\n public void addLabeledPoint() {\n Point2D p1 = randomPoint();\n LabeledPointGraphic<Point2D, Graphics2D> lpg = new LabeledPointGraphic<>(p1, p1, new ObjectStyler());\n lpg.setRenderer(MarkerRenderer.getInstance());\n lpg.setLabelRenderer(new TextRenderer());\n lpg.getObjectStyler().setLabelDelegate(p -> String.format(\"(%.2f,%.2f)\", p.getX(), p.getY()));\n lpg.getObjectStyler().setLabelStyle(Styles.text(Color.red, 14f, Anchor.SOUTHWEST));\n lpg.setDefaultTooltip(\"<html><b>Labeled Point</b>: <i> \" + p1 + \"</i>\");\n lpg.setDragEnabled(true);\n root1.addGraphic(lpg); \n }", "public void createNodeUsingExistingClasses() {\n final PLayer layer = getCanvas().getLayer();\n layer.addChild(PPath.createEllipse(0, 0, 100, 100));\n layer.addChild(PPath.createRectangle(0, 100, 100, 100));\n layer.addChild(new PText(\"Hello World\"));\n\n // Here we create an image node that displays a thumbnail\n // image of the root node. Note that you can easily get a thumbnail\n // of any node by using PNode.toImage().\n final PImage image = new PImage(layer.toImage(300, 300, null));\n layer.addChild(image);\n }", "SPAN createSPAN();", "private Label initChildLabel(Pane container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "public Label newLabel(String labelStr, int options) {\r\n return newLabel(labelStr);\r\n }", "public XYItemLabelGenerator createItemLabelGenerator() {\n\n MyXYItemLabelGenerator gen = new MyXYItemLabelGenerator();\n\n return gen;\n }", "public static GraphNode createGraphNodeForSubsystem() {\n GraphNode nameNode = new GraphNode();\n\n for (int i = 0; i < 3; i++) {\n GraphNode childNode = new GraphNode();\n\n childNode.setPosition(AccuracyTestHelper.createPoint(0, 12 * i));\n childNode.setSize(AccuracyTestHelper.createDimension(100, 22));\n\n nameNode.addContained(childNode);\n }\n\n nameNode.setPosition(AccuracyTestHelper.createPoint(20, 20));\n nameNode.setSize(AccuracyTestHelper.createDimension(100, 100));\n\n GraphNode graphNode = new GraphNode();\n graphNode.addContained(nameNode);\n graphNode.addContained(new GraphNode());\n\n graphNode.setPosition(AccuracyTestHelper.createPoint(20, 20));\n graphNode.setSize(AccuracyTestHelper.createDimension(1000, 1000));\n\n // create a subsystem\n Subsystem subsystem = new SubsystemImpl();\n\n // set namespace\n Namespace namespace = new MockNamespaceImplAcucracy();\n subsystem.setNamespace(namespace);\n\n // create a semantic model\n Uml1SemanticModelBridge semanticModel = new Uml1SemanticModelBridge();\n semanticModel.setElement(subsystem);\n\n graphNode.setSemanticModel(semanticModel);\n\n return graphNode;\n }", "public void addFileCreationPeriod() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"file-creation-period\",\n null,\n childrenNames());\n }", "Paragraph createParagraph();", "public Node createNode(String p_name) {\n\t\tNode n = new Node(p_name, this);\n\t\taddNode(n);\n\t\treturn n;\n\t}", "public Node(int x,int y, int size, String colour, String n)\n\t{\n\t\tdrawnNode = new Ball(x,y,size,colour);\n\t\tname = n;\n\t\tdouble textChange = (double)size/4.0;\n\t\tlabel = new Text(n,x-textChange,y+textChange,size,\"WHITE\");\n\t\t\n\t\toutArcs = new Arc[0];\n\t}", "public LabelFactory(int start) {\n assert start >= 0;\n index = start;\n }", "private JLabel _createNewLabel(String sCaption_) \n{\n Util.panicIf( sCaption_ == null );\n\n JLabel lblNew = new JLabel(sCaption_);\n lblNew.setFont( _pFont );\n \n return lblNew;\n }", "public void\nsetNewLabel()\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(\n\t\tnew Font(\"Helvetica\", Font.PLAIN, 12),\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(),\n\t\tlineLength, Color.black, this.getID());\n}", "private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "public INode addOrGetNode(String label);", "private Label createLabel(String text, int offset) {\n\t\tLabel label = new Label(text);\n\t\t//label.setFont(Font.font(40));\n\t\tlabel.setTextFill(Color.YELLOW);\n\t\tlabel.getTransforms().add(new Rotate(-50, 300, 400, 20, Rotate.X_AXIS));\n\t\tlabel.setLayoutX(canvas.getWidth() / 2);\n\t\tlabel.setLayoutY(canvas.getHeight() / 2 + offset);\n\t\tlabel.setId(\"chooseFile\");\n\t\t\n\t\treturn label;\n\n\t}", "private void createInnerNodePanel() {\n\t\tcreateLabel(getHierarchy().getName(), null, null);\n\t\taddGeneralInnerImages();\n\t}", "void addLabel(Object newLabel);", "void addLabel(Object newLabel);", "public String toDotCode() {\n\t\treturn from.getName() + \" -> \" + to.getName() + \" [label=\\\"\"+ this.capacity + \"-\" + this.flow + \"\\\"]\" + (this.bold ? \"[style=bold];\" : \";\");\n\t}", "public StackPane createNode(double x, double y, double r, String text, \n Color fill, Color outline, Color textColor) {\n\n Circle c = new Circle();\n c.setRadius(r);\n c.setFill(fill);\n c.setStroke(outline);\n Text t = createText(text, textColor);\n Node [] nodes = new Node [] {c, t};\n StackPane s = createStackPane(nodes);\n s.setLayoutX(x);\n s.setLayoutY(y);\n return s;\n }", "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }", "protected NodeFigure createNodePlate() {\r\n\t\tDefaultSizeNodeFigure result = new DefaultSizeNodeFigure(12, 12);\r\n\t\treturn result;\r\n\t}", "Segment createSegment();", "String addLabel(String label);", "Notentyp createNotentyp();", "@Function Text createTextNode(String data);", "private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "private ILabeledElement createLabeled() throws RodinDBException {\n\t\treturn createEvent();\n\t}", "public void markFileCreationPeriodCreate() throws JNCException {\n markLeafCreate(\"fileCreationPeriod\");\n }", "public DotGraph createSubGraph(String label) {\n // file name is used as label of sub graph.\n DotGraph subgraph = new DotGraph(label);\n subgraph.isSubGraph = true;\n\n this.drawElements.add(subgraph);\n\n return subgraph;\n }", "private void createLabel(String title, int row, int col, int fontsize) {\n \tLabel label1 = new Label(title);\n \tlabel1.setFont(Font.font(myResources.getString(\"font\"), \n \t\t\tFontWeight.EXTRA_BOLD, FontPosture.ITALIC, fontsize));\n \tlabel1.setTextFill(Color.RED);\n \tstartScreen.add(label1, row, col);\n }", "public Label() {\n\t\tthis(\"L\");\n\t}", "private void buildNodeFigure(IFigure contents, Node node) {\n\t\tLabel label = new Label();\n\t\tlabel.setBackgroundColor(ColorConstants.orange);\n\t\tlabel.setOpaque(true);\n\t\tlabel.setBorder(new LineBorder());\n\t\tlabel.setText(node.data.toString());\n\t\tcontents.add(label);\n\n\t\t// Set Figure constraint based on Node location\n\t\tcontents.setConstraint(label, new Rectangle(node.x, node.y, node.width,\n\t\t\t\tnode.height));\n\t}", "DepartureBox(Label label)\n {\n label.getStyleClass().add(\"stopover-label\");\n getStyleClass().addAll(\"bordered-pane\", \"white-background\");\n getChildren().add(label);\n layoutControls();\n addEventHandlers();\n }", "public Label() {\n }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "private Label createTitle() {\n Label titleLbl = new Label(\"Tank Royale\");\n titleLbl.setFont(Font.loadFont(getClass().getResourceAsStream(\"/resources/fonts/ToetheLineless.ttf\"), 50));\n titleLbl.setPrefWidth(400);\n titleLbl.setLayoutX(545 - titleLbl.getWidth() - 157);\n titleLbl.setLayoutY(125);\n return titleLbl;\n }", "private void appendDotTransition(StringBuilder b, String label, int source,\n int dest) {\n b.append(\" \").append(source);\n b.append(\" -> \").append(dest).append(\" [label=\\\"\");\n b.append(label);\n b.append(\"\\\"]\\n\");\n }", "Node(double d, String s) {\r\n mobileNo = d;\r\n name = s;\r\n }", "public SimpleNodeLabel(String text, JGoArea parent) {\n super(text);\n mParent = parent;\n initialize(text, parent);\n }", "DomainElement createDomainElement();", "public TreeItem(String label, Style style) {\r\n\t\tsuper( false, style );\r\n\t\tsetLabel( label );\r\n\t}", "public void addChild(Node n) {\n\t\taddChild(n, (rand.nextDouble()*0.02 - 0.01));\n\t}", "public Node( String id, int type, Color color, String label )\r\n {\r\n initialize(id);\r\n typ = type;\r\n backColor = color;\r\n if ( label == null ) lbl = id;\r\n else lbl = label;\r\n }", "CodeBlock createCodeBlock();", "com.microsoft.schemas.xrm._2011.contracts.Label addNewDescription();", "protected Label newLabel(String id, IModel<String> model) {\n\t\tLabel label = new Label(id, model);\n\t\treturn label;\n\t}", "NodeChain createNodeChain();", "public Node getNode (){\n if (_node == null){\n Label label = new Label(_value);\n label.setFont(DEFAULT_FONT);\n _node = label;\n }\n return _node;\n }", "public abstract Code addLabel(String label);", "static String newLabel() {\n return \"_\" + (nextLabel++);\n }", "Node(String d) {\n data = d;\n }", "void btnAddDelivery(Node node, Node previousDeliveryNode, TimeSlot timeSlot);", "private EndPoint createDotEndPoint(EndPointAnchor anchor)\r\n {\r\n DotEndPoint endPoint = new DotEndPoint(anchor);\r\n endPoint.setScope(\"network\");\r\n endPoint.setTarget(true);\r\n endPoint.setStyle(\"{fillStyle:'#98AFC7'}\");\r\n endPoint.setHoverStyle(\"{fillStyle:'#5C738B'}\");\r\n\r\n return endPoint;\r\n }", "public DotChart(Lattice<Token> input, Grammar grammar, Chart chart) {\n\n this.dotChart = chart;\n this.pGrammar = grammar;\n this.input = input;\n this.sentLen = input.size();\n this.dotcells = new ChartSpan<DotCell>(sentLen, null);\n\n seed();\n }", "@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}", "private Shape drawNodeTypeDomain(Graphics2D g2d, Point2D point, String domain) {\n int x = (int) point.getX(), y = (int) point.getY(), sw = 8, h2 = 8; boolean four_plus = false;\n StringTokenizer st = new StringTokenizer(domain,\".\");\n while (st.countTokens() > 3) { st.nextToken(); four_plus = true; }\n if (st.countTokens() == 3) { g2d.setColor(RTColorManager.getColor(st.nextToken())); g2d.fillRect(x-sw,y-h2,sw, h2); }\n if (st.countTokens() == 2) { g2d.setColor(RTColorManager.getColor(st.nextToken())); g2d.fillRect(x, y-h2,sw, h2); }\n if (st.countTokens() == 1) { g2d.setColor(RTColorManager.getColor(st.nextToken())); g2d.fillRect(x-sw,y ,2*sw,h2); }\n if (four_plus) { g2d.setColor(RTColorManager.getColor(\"label\", \"minor\")); g2d.drawLine(x-sw,y-h2,x-sw-4,y-h2-4); g2d.drawLine(x-sw,y-h2-4,x-sw-4,y-h2); }\n\treturn new Rectangle2D.Double(x-sw,y-h2,2*sw,2*h2);\n }", "Span createSpan();", "Lab create();", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }" ]
[ "0.5850648", "0.58249176", "0.5811102", "0.57800186", "0.54905254", "0.5490521", "0.54663354", "0.5465441", "0.5446369", "0.53902245", "0.53897756", "0.53816754", "0.536302", "0.5337786", "0.5316432", "0.5307689", "0.52827674", "0.5255176", "0.5227898", "0.52185076", "0.52097535", "0.5184062", "0.5175519", "0.51668245", "0.5166237", "0.5155948", "0.5137255", "0.51332414", "0.51271284", "0.5108091", "0.5103589", "0.5102681", "0.50786537", "0.50598377", "0.5055171", "0.5052738", "0.50519806", "0.50445217", "0.5042758", "0.5014773", "0.5011876", "0.49851888", "0.4981333", "0.49704272", "0.49540788", "0.49499518", "0.49491397", "0.494279", "0.4939877", "0.49356", "0.49328732", "0.49198285", "0.49047008", "0.49007088", "0.489045", "0.48880675", "0.48873666", "0.48838848", "0.48838848", "0.48819116", "0.48790446", "0.48712587", "0.48678476", "0.4857161", "0.484807", "0.48345366", "0.48240495", "0.4822906", "0.48156804", "0.48143202", "0.48094165", "0.48088396", "0.48063615", "0.47975594", "0.4796826", "0.4794493", "0.4790269", "0.47873732", "0.4786319", "0.47812667", "0.47773919", "0.47771016", "0.47723147", "0.47616652", "0.47521287", "0.47472283", "0.47440785", "0.47426537", "0.47423404", "0.47389784", "0.47383282", "0.47299463", "0.47233146", "0.47183114", "0.4715985", "0.47115695", "0.47109246", "0.47085246", "0.46969232", "0.46870828", "0.46863627" ]
0.0
-1
Gets the period of the surface node. This is the period to expiry that the node on the surface is defined as. There is not necessarily a direct relationship with a date from an underlying instrument.
public Period getPeriod() { return period; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getPeriod();", "public org.hl7.fhir.Period getPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().find_element_user(PERIOD$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}", "public double getPeriod() {\n return period;\n }", "public Period getFixedLegPeriod() {\n return _index.getFixedLegPaymentTenor().getPeriod();\n }", "public int getPeriod() {\n return period;\n }", "public Number getPeriodNum() {\n return (Number) getAttributeInternal(PERIODNUM);\n }", "int getPeriod();", "BigInteger getPeriod();", "public Long getPeriod() {\n return this.Period;\n }", "public DR getBillingPeriod() { \r\n\t\tDR retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "public Integer getRenewalperiodbeforeexp() {\n return (Integer) getAttributeInternal(RENEWALPERIODBEFOREEXP);\n }", "public TimePeriod getPeriod();", "public long period() throws TimeWindowException {\n return div();\n }", "public int getHowManyInPeriod();", "public Period getTenor() {\n return _index.getSwapTenor().getPeriod();\n }", "public Number getPeriodId() {\n return (Number) getAttributeInternal(PERIODID);\n }", "public double period()\n\t{\n\t\tdouble n = meanMotion();\n\t\tdouble period = 2.0 * Constants.pi / n;\n\t\treturn period;\n\t}", "public String getPeriod() {\n return period;\n }", "double getCalibrationPeriod();", "public int getTimePeriod() {\n return timePeriod;\n }", "public int getTimePeriod()\n\t{\n\t\treturn timePeriod;\n\t}", "org.hl7.fhir.Period getValuePeriod();", "org.hl7.fhir.Period getAppliesPeriod();", "public Period bornPeriod() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_BORN_PERIOD);\n }", "public Period onsetPeriod() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_ONSET_PERIOD);\n }", "public Integer getPVTgracePeriod() {\n return (Integer) getAttributeInternal(PVTGRACEPERIOD);\n }", "public java.util.List<org.drip.analytics.cashflow.CompositePeriod> periods()\n\t{\n\t\treturn _lsPeriod;\n\t}", "public String getPeriod() {\n return this.period;\n }", "public java.lang.Integer getPeriodo() {\n return periodo;\n }", "@Override\n public int getRecurringPeriod() {\n if (recurringType.equals(RecurringType.NONE)) {\n return NO_RECURRING_PERIOD;\n }\n return recurringPeriod;\n }", "public java.util.List<org.drip.analytics.cashflow.CompositePeriod> cashFlowPeriod()\n\t{\n\t\treturn _lsPeriod;\n\t}", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "@Override\n\tpublic long getTimePeriod() {\n\t\treturn 0;\n\t}", "public int getChannelPeriod() {\n return channelPeriod;\n }", "public java.lang.String getChargePeriod() {\n\treturn chargePeriod;\n}", "public AdjustmentPeriodTypeId getPeriod() {\n return this.period;\n }", "public Integer getRetentionPeriod()\n {\n return retentionPeriod;\n }", "public double getRotationalPeriod() {\n return rotationalPeriod;\n }", "public List<String> getDistrictEntitlementPeriod() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"DIST_ENTL_CALC_PERIOD\");\n\t}", "public int getConfiguredPeriod() {\n return configuredPeriod;\n }", "public Period getFixedLegPeriod() {\n return _fixedLegPeriod;\n }", "public com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum xgetDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum target = null;\n target = (com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum)get_store().find_element_user(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n return target;\n }\n }", "public com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum getDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n if (target == null)\n {\n return null;\n }\n return (com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum)target.getEnumValue();\n }\n }", "@Updatable\n public Integer getPeriod() {\n return period;\n }", "public DR getPsl26_BillingPeriod() { \r\n\t\tDR retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "double getSignalPeriod();", "public Period getNextPeriod() throws PeriodNotFoundException;", "public int periodCount() {\n\t\treturn message.getPeriodCount();\n\t}", "public Double RevenuePeriod(Instant begin, Instant end) {\n\t\treturn null;\n\t}", "private Periodo getPeriodoCorte() {\n String valor = parametrosDao.obtenerTodosParametros().get(\"integrador.periodo.arranque\");\r\n\r\n return Periodo.parse(valor, \"yyyyMM\");\r\n }", "public long getPeriodId() {\n return periodId;\n }", "public Number getPeriodicalId() {\n return (Number)getAttributeInternal(PERIODICALID);\n }", "@Override\n\tpublic java.lang.String getNoticePeriod() {\n\t\treturn _candidate.getNoticePeriod();\n\t}", "org.apache.xmlbeans.XmlDouble xgetSignalPeriod();", "public org.drip.analytics.cashflow.CompositePeriod lastPeriod()\n\t{\n\t\tjava.util.List<org.drip.analytics.cashflow.CompositePeriod> lsCouponPeriod = periods();\n\n\t\treturn lsCouponPeriod.get (lsCouponPeriod.size() - 1);\n\t}", "public double basis()\n\t{\n\t\treturn _lsPeriod.get (0).basis();\n\t}", "public CHORE_INFO_PERIOD getPriod();", "public float getPeriodicRateChange() {\n return periodicRateChange;\n }", "public String getOpenPeriod() {\n return openPeriod;\n }", "public Integer getPeriodId() {\n\t\treturn periodId;\n\t}", "public Integer periodSeconds() {\n return this.periodSeconds;\n }", "long getSamplePeriod();", "public CmsPeriodicalTEOImpl getCmsPeriodicalTEO() {\n return (CmsPeriodicalTEOImpl)getEntity(ENTITY_CMSPERIODICALTEO);\n }", "@Generated\n @Selector(\"rollingPeriod\")\n public native int rollingPeriod();", "public String LastTimePeriod() {\n String finalTime = \"24:00-24:00\"; // Generate the same format to re-use the function.\n return CreateBlankPeroid(finalTime);\n }", "public List<Period> getPeriods() throws PeriodNotFoundException;", "public long getSamplingPeriod();", "public KualiDecimal getFinancialDocumentRevolvingFundAmount() {\r\n return financialDocumentRevolvingFundAmount;\r\n }", "public org.apache.axis.types.PositiveInteger getRingingDuration() {\r\n return ringingDuration;\r\n }", "public int getSubstanceExpirationDateReps() {\r\n \treturn this.getReps(16);\r\n }", "protected int getNumberOfPeriods()\n {\n return 2;\n }", "@Nullable String getCollectionPeriod();", "public YangUInt32 getFileRetentionPeriodValue() throws JNCException {\n return (YangUInt32)getValue(\"file-retention-period\");\n }", "public long getExpiry() {\n return this.contextSet.getExpiration();\n }", "public java.lang.Integer getHighestPeriodNum() {\n return highestPeriodNum;\n }", "public org.drip.analytics.cashflow.CompositePeriod firstPeriod()\n\t{\n\t\treturn periods().get (0);\n\t}", "Constant getCyclePeriodConstant();", "public org.apache.xmlbeans.XmlShort xgetDataRetentionPeriodLength()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlShort target = null;\n target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(DATARETENTIONPERIODLENGTH$26, 0);\n return target;\n }\n }", "public double darPeriodoOrbital( )\n {\n return periodoOrbitalSinodico;\n }", "@Updatable\n @Min(1)\n public Integer getEvaluationPeriods() {\n return evaluationPeriods;\n }", "public Integer getExpiry() {\n return expiry;\n }", "public Date getFinancialDocumentRevolvingFundDate() {\r\n return financialDocumentRevolvingFundDate;\r\n }", "public Period toPeriod() {\r\n return new Period(getStartMillis(), getEndMillis(), getChronology());\r\n }", "float getBlackoutPeriod();", "public TLifeTimeInSeconds getLifetimeLeft() {\n\n\t\treturn lifetimeLeft;\n\t}", "public double getRemainingMonthlyBudget() {\n\t\treturn 0;\n\t}", "public org.hl7.fhir.Period addNewPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().add_element_user(PERIOD$2);\n return target;\n }\n }", "public Number getDaysPerMonth()\r\n {\r\n return (m_daysPerMonth);\r\n }", "public int getC_Period_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Period_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public double get_NDL() {\n return algorithm.NDL(compartments, dt);\n }", "public SIPDateOrDeltaSeconds getExpiryDate() {\n return expiryDate ;\n }", "public static double genRandomRestPeriod() {\n return Simulator.randomGenerator.genRestPeriod();\n }", "PeriodCountCalculator<E> getPeriodCountCalculator();" ]
[ "0.63866985", "0.6308739", "0.6281406", "0.6281406", "0.6281406", "0.6281406", "0.62716484", "0.6243861", "0.622081", "0.6170681", "0.61387616", "0.6127275", "0.6094292", "0.6090366", "0.60859126", "0.591276", "0.59009963", "0.5894925", "0.5879301", "0.5774673", "0.5767295", "0.5764734", "0.5749684", "0.57487845", "0.573229", "0.5728955", "0.57153654", "0.5706564", "0.56586", "0.56554437", "0.5628654", "0.55969703", "0.55897045", "0.55850065", "0.5572762", "0.557179", "0.5542183", "0.55197835", "0.55197835", "0.54743147", "0.5449067", "0.5446576", "0.54458565", "0.5434698", "0.5422022", "0.54035544", "0.54012096", "0.5378604", "0.5372828", "0.5341206", "0.5329141", "0.5322671", "0.53031087", "0.5261868", "0.52424824", "0.5242419", "0.5234903", "0.523311", "0.52272034", "0.52265435", "0.5218468", "0.5215349", "0.5200631", "0.5187803", "0.5175187", "0.5109775", "0.5104363", "0.50952834", "0.50763977", "0.5058414", "0.5054992", "0.5053514", "0.5048256", "0.5027764", "0.49987665", "0.49883404", "0.4985176", "0.4976954", "0.4967513", "0.49661314", "0.49631664", "0.4947302", "0.4946894", "0.49426803", "0.49322778", "0.49263617", "0.49254063", "0.49179417", "0.4914934", "0.48910928", "0.48825178", "0.48678488", "0.48636508", "0.48455933", "0.4834718", "0.48124048", "0.48077685", "0.4804061", "0.48020634", "0.4796575" ]
0.59525657
15
Gets the strike of the surface node. This is the strike that the node on the surface is defined as.
public Strike getStrike() { return strike; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int getStrike() {\n\t\treturn 0;\r\n\t}", "public boolean getStrikeout() {\n\t\treturn this.strikeout;\n\t}", "IfcCompositeCurve getSpineCurve();", "public boolean getStrikeout()\n {\n return font.isStruckout();\n }", "@Override\n\t\tpublic double getAvgStrike() {\n\t\t\treturn 0;\n\t\t}", "StrikeMetrics getFontMetrics() {\n if (strikeMetrics == null) {\n if (pScalerContext != 0) {\n strikeMetrics = super.getFontMetrics();\n }\n if (strikeMetrics == null) {\n strikeMetrics = delegateStrike.getFontMetrics();\n }\n }\n return strikeMetrics;\n }", "public final LineStyle getStyle(){\n return LineStyleUtils.getLineStyle(stroke);\n }", "public byte getUnderline()\n {\n return font.getUnderline();\n }", "public Stroke getStroke()\r\n\t{\r\n\t\treturn _g2.getStroke();\r\n\t}", "public int getLineOfSight() {\n return (int)applyModifier((float)getType().getVisibleRadius(),\n \"model.modifier.lineOfSightBonus\");\n }", "public int getCurve() {\r\n return curve;\r\n }", "public Stroke<R> getStroke() {\n if (stroke == null) {\n stroke = factory.createStroke();\n }\n return stroke;\n }", "public final native Colour getStroke() /*-{\n\t\treturn @net.edzard.kinetic.Colour::new(Ljava/lang/String;)(this.getStroke());\n\t}-*/;", "public Stroke getInnerStroke() {\n return null;\n }", "public void setStrikeout(boolean strikeout) {\n\t\tthis.strikeout = strikeout;\n\t}", "public boolean isIsFontStrikeout() {\n return isFontStrikeout;\n }", "public Stroke getStroke() {\n\t\tStroke theStroke = stroke;\n\t\tif (theStroke == null) {\n\t\t\ttheStroke = new BasicStroke(strokeWidth);\n\t\t\tstroke = theStroke;\n\t\t}\n\t\treturn theStroke;\n\t}", "public RMStroke getStroke() { return _stroke; }", "public boolean isStrike(){\r\n\t\tif( this.firstThrow == 10 )\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public double getLineWidth(\n )\n {return lineWidth;}", "public double getInkAmount() {\n return this.inkAmount;\n }", "private double[] getLocalStrikeList(EvenlyGriddedSurface surface){\n int numCols = surface.getNumCols();\n double[] localStrike = null;\n //if it not a point surface, then get the Azimuth(strike) for 2 neighbouring\n //horizontal locations on the rupture surface.\n //if it is a point surface then it will be just having one location so\n //in that we take the Ave. Strike for the Surface.\n if(! (surface instanceof PointSurface)){\n localStrike = new double[numCols - 1];\n for (int i = 0; i < numCols - 1; ++i) {\n Location loc1 = surface.getLocation(0, i);\n Location loc2 = surface.getLocation(0, i + 1);\n double strike = LocationUtils.azimuth(loc1, loc2);\n localStrike[i] = strike;\n }\n }\n else if(surface instanceof PointSurface) {\n localStrike = new double[1];\n localStrike[0]= surface.getAveStrike();\n }\n\n return localStrike;\n }", "public float getPrice() {\n\t\treturn this._entree.getPriceWithAddons() + this._side.getPrice() + this._drink.getPrice() - 1f;\n\t}", "public String getUnderline() {\n return underline.getText(); /*FAULT:: return \"y\"; */\n }", "public int getLineStyle() {\r\n return LineStyle;\r\n }", "public byte getUnderline() {\n\t\treturn this.underline;\n\t}", "public int getLineWidth() {\n return (int) mPaintLine.getStrokeWidth();\n }", "private boolean strike(RobotInfo enemy) throws GameActionException {\n if (rc.getLocation().distanceTo(enemy.location) <= GameConstants.LUMBERJACK_STRIKE_RADIUS){\n rc.strike();\n return true;\n }\n return false;\n }", "public String getStitchingLine() {\n return (String)getAttributeInternal(STITCHINGLINE);\n }", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "public Line getDownerLine() {\n\n return new Line(this.getdownLeft(), this.getdownRigth());\n }", "public float getLineWidth()\r\n\t{\r\n\t\treturn g.getPenWidth();\r\n\t}", "public double tradeRate()\n\t{\n\t\treturn _dblTradeRate;\n\t}", "public static boolean getStrike(int xco, int yco, Speler strikeSpeler) {\n\t\tboolean strike = false;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tint numberOfCoordinates;\n\t\t\tif (strikeSpeler.fleet.get(i).horizontal) {\n\t\t\t\tnumberOfCoordinates = strikeSpeler.fleet.get(i).getBreedte();\n\t\t\t} else {\n\t\t\t\tnumberOfCoordinates = strikeSpeler.fleet.get(i).getLengte();\n\t\t\t}\n\t\t\tfor (int j = 0; j < numberOfCoordinates; j++) {\n\t\t\t\tif (strikeSpeler.fleet.get(i).coordinates[0][j] == xco\n\t\t\t\t\t\t&& strikeSpeler.fleet.get(i).coordinates[1][j] == yco) {\n\t\t\t\t\tstrike = true;\n\t\t\t\t\tstrikeSpeler.fleet.get(i).kapotCounter++;\n\t\t\t\t\tif(strikeSpeler.fleet.get(i).kapotCounter==numberOfCoordinates){\n\t\t\t\t\t\tstrikeSpeler.fleet.get(i).heleSchipKapot=true;\n\t\t\t\t\t\tif(strikeSpeler==Game.speler){\n\t\t\t\t\t\t\tmainPanel.melding2.setText(strikeSpeler.fleet.get(i).getNaam() + \" van speler is gezonken.\");\n\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\tmainPanel.melding2.setText(strikeSpeler.fleet.get(i).getNaam() + \" van computer is gezonken\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstrikeSpeler.schepenKapotCounter++;\n\t\t\t\t\t\tSystem.out.println(\"Schip \" + strikeSpeler.fleet.get(i).getNaam() + \" kapot\");\n\t\t\t\t\t}\n\t\t\t\t\tif(strikeSpeler.schepenKapotCounter==5){\n\t\t\t\t\t\tstrikeSpeler.heleVlootKapot=true;\n\t\t\t\t\t\tendGame();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn strike;\n\t}", "double setry(double ry) {\n return this.ry;\n }", "public double getRise(\n )\n {return rise;}", "public IfcPositiveLengthMeasure getLiningThickness()\n\t{\n\t\treturn this.LiningThickness;\n\t}", "public void setStrikeout(boolean strikeout)\n {\n font.setStrikeout(strikeout);\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineWidth() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineWidth());\n }", "public abstract float getLineWidth();", "public final Stroke getOutlineStroke() {\n return outlineStroke;\n }", "public mxStyleSheet getLineStyle()\n\t{\n\t\treturn lineStyle;\n\t}", "public int score(){\r\n\t\t\r\n\t\tint score = 0;\r\n\t\t\r\n\t\tif( this.isStrike() ) {\r\n\t\t\tif(this.getSubSequent() != null)\r\n\t\t\t\tscore += this.getSubSequent().score();\r\n\t\t}\r\n\t\t\r\n\t\tscore += this.firstThrow + this.secondThrow;\r\n\t\t\r\n\t\treturn score;\r\n\t\t\r\n\t}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SECELL$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public double getStockMarketPrice() {\n\t\treturn stockMarketPrice;\n\t}", "@Override\n public double getLineWidth() {\n return graphicsEnvironmentImpl.getLineWidth(canvas);\n }", "@Override\r\n\tpublic double getSpehreRadiusLeftHand() {\n\t\treturn linkSphereRadius;\r\n\t}", "public double getETH() \n\t{\n\t\treturn ether;\n\t}", "@Override\r\n\tpublic double getSphereRadiusRightHand() {\n\t\treturn rechtSphereRadius;\r\n\t}", "public int getLineWidth() {\r\n return LineWidth;\r\n }", "public int getLineWidth ( ) {\r\n\t\treturn line_width;\r\n\t}", "public ArmCurrency getPrice() {\n return (getPrice(true));\n }", "public RecodedReal getLineWidth(){\n return ps == null ? null :ps.getWidthLegend();\n }", "public final native double getStrokeWidth() /*-{\n\t\tif (this.getStrokeWidth() != null) return this.getStrokeWidth();\n\t\telse return 0;\n\t}-*/;", "public LineChart e() {\n return ((b.b) this.b).k();\n }", "public Stroke getStroke(Comparable key) {\n/* 95 */ ParamChecks.nullNotPermitted(key, \"key\");\n/* 96 */ return (Stroke)this.store.get(key);\n/* */ }", "public LineSymbolPainter getSymbolPainter() {\n return symbolPainter;\n }", "public int getNowLineStrokeWidth() {\n return config.nowLineStrokeWidth;\n }", "public com.cantor.drop.aggregator.model.CFTrade.Side getSide() {\n com.cantor.drop.aggregator.model.CFTrade.Side result = com.cantor.drop.aggregator.model.CFTrade.Side.valueOf(side_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.Side.BUY : result;\n }", "Price getTradePrice();", "public LineSymbolPainter getLinePainter() {\n return linePainter;\n }", "public int getNowLineDotRadius() {\n return config.nowLineDotRadius;\n }", "public StaveGlyph getStave()\n {\n if(parent != null) return parent.getStave();\n else return null;\n }", "public Stance getStance() {\n for (TradeItem ti : items) {\n if (ti instanceof StanceTradeItem) {\n return ((StanceTradeItem)ti).getStance();\n }\n }\n return null;\n }", "public com.cantor.drop.aggregator.model.CFTrade.Side getSide() {\n com.cantor.drop.aggregator.model.CFTrade.Side result = com.cantor.drop.aggregator.model.CFTrade.Side.valueOf(side_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.Side.BUY : result;\n }", "public String getSleeveRound() {\r\n\t\treturn sleeveRound;\r\n\t}", "public Line getRightLine() {\n\n return new Line(this.getupperRigth(), this.getdownRigth());\n\n }", "public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }", "public int getThickness ()\r\n {\r\n return glyph.getBounds().height;\r\n }", "public double getLeftRate() {\n return leftEnc.getRate();\n }", "public MagineerStrike() {\n super(ID, NAME, IMG, COST, DESCRIPTION, TYPE, COLOR, RARITY, TARGET);\n artistNames.add(\"Jake Berry\");\n flavorText = \"There is a reason that spears are one of the oldest weapons known to man. \" +\n \"You may not be a swordfighter, but at the very least you /will/ learn to use a spear.\";\n\n MagineerMod.logger.info(\"ID: \"+ID);\n MagineerMod.logger.info(\"cardStrings: \"+cardStrings);\n MagineerMod.logger.info(CardCrawlGame.languagePack);\n MagineerMod.logger.info(\"CardCrawlGame.languagePack: \"+CardCrawlGame.languagePack);\n\n\n // Aside from baseDamage/MagicNumber/Block there's also a few more.\n // Just type this.base and let intelliJ auto complete for you, or, go read up AbstractCard\n\n baseDamage = DAMAGE;\n\n this.tags.add(BaseModCardTags.BASIC_STRIKE); //Tag your strike, defend and form (Shadow form, demon form, echo form, etc.) cards so that they function correctly.\n this.tags.add(CardTags.STRIKE);\n\n cardArtLayers512.add(new RenderImageLayer(TextureLoader.getTexture(cardArt512+portraitFilename)));\n cardArtLayers1024.add(new RenderImageLayer(TextureLoader.getTexture(cardArt1024+portraitFilename)));\n\n actionList.add(new DamageDescAction(this));\n\n updateDescription();\n }", "@Override\r\n\tpublic double getThrustRightHand() {\n\t\treturn rechtThrust;\r\n\t}", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "public double getRadSpacing() {\n return radSpacing;\n }", "public final Stroke getGridStroke() {\n return gridStroke;\n }", "public double getNeck() {\n return neck;\n }", "public float getStrokeWidth() {\n return (float) this.getValue(STROKE_WIDTH_PROPERTY_KEY);\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SWCELL$20, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "@Override\n public double getRadius() {\n return this.getRenderable().getRadius();\n }", "public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}", "@Field(26) \n\tpublic double TradePrice() {\n\t\treturn this.io.getDoubleField(this, 26);\n\t}", "TickerPrice getPrice(String symbol);", "public int getLineWeight()\n {\n return lineaspessore;\n }", "public String getLineEndingStyle() {\n/* 412 */ return getCOSObject().getNameAsString(COSName.LE, \"None\");\n/* */ }", "public BigDecimal getStock_price() {\n return stock_price;\n }", "public BigDecimal getRecommendStopLoss() {\n return recommendStopLoss;\n }", "public float getThickness(){\n return thickness;\n }", "public StockSymbol getStockSymbol() {\n\t\treturn stockSymbol;\n\t}", "public Trade getTrade()\n\t{\n\t\treturn m_trade;\n\t}", "@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}", "public final String getStyleAttribute() {\n return getAttributeValue(\"style\");\n }", "public Long getLineCarriageprice() {\n return lineCarriageprice;\n }", "com.cantor.drop.aggregator.model.CFTrade.Side getSide();", "public RMTextStyle getStyle()\n {\n return new RMTextStyle(_style);\n }", "public String getSymbol()\n {\n return annot.getString(COSName.SY);\n }", "public IfcPositiveLengthMeasure getLiningDepth()\n\t{\n\t\treturn this.LiningDepth;\n\t}", "public boolean getUnderline() {\r\n return Underline;\r\n }", "public int getPrice() {\r\n\t\tif (this.base.equals(\"tower\")) {\r\n\t\t\treturn price;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}", "public String flys() {\n\t\t\n\t\treturn \"Flying High\";\n\t}" ]
[ "0.70595914", "0.6598411", "0.5916295", "0.58983177", "0.58302075", "0.57675856", "0.5758622", "0.5709879", "0.5654423", "0.5554628", "0.55452126", "0.5514276", "0.5471001", "0.5445969", "0.5409153", "0.53915524", "0.538266", "0.53126085", "0.5301262", "0.52662176", "0.5237364", "0.5228729", "0.5192554", "0.51857007", "0.51724374", "0.5167392", "0.51583695", "0.515507", "0.51416266", "0.5123994", "0.5120795", "0.51007074", "0.50630754", "0.5016659", "0.5012456", "0.5007671", "0.4992763", "0.49888456", "0.49826938", "0.498136", "0.4979624", "0.49644387", "0.4958781", "0.4946037", "0.49359035", "0.4927588", "0.49188262", "0.49110687", "0.49084622", "0.49084044", "0.4901238", "0.4880931", "0.48785108", "0.48563734", "0.48557702", "0.48236367", "0.48100808", "0.48078275", "0.48049676", "0.48030025", "0.48001748", "0.47763887", "0.4775231", "0.47745225", "0.47688267", "0.47672835", "0.47631544", "0.47619352", "0.47439152", "0.47427723", "0.47335392", "0.47303435", "0.4720862", "0.47207844", "0.4714897", "0.47105372", "0.4709392", "0.4706212", "0.47041312", "0.46964237", "0.4692148", "0.46893415", "0.46821493", "0.4680395", "0.46656355", "0.46565318", "0.4655115", "0.46520528", "0.46427116", "0.46425346", "0.4640679", "0.46405685", "0.46394128", "0.46384692", "0.46358904", "0.46268165", "0.4626006", "0.46247908", "0.46240303", "0.46120808" ]
0.7952445
0
Gets the label that describes the node.
@Override public String getLabel() { return label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNodeLabel ();", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\n {\n return label;\n }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel() {\r\n return lbl;\r\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public Object getLabel() \n {\n return label;\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel() {\n\t\treturn label;\n\t}", "public String getLabel()\n { \n return label;\n }", "private String getLabelNodeAvl(){\n return concatLabel(this.root);\n }", "public java.lang.String getLabel();", "java.lang.String getLabel();", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public final Label getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public Label getLabel() {\n return this.label;\n }", "public String getLabel()\n {\n return m_label;\n }", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel(){\n\t\treturn label;\n\t}", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getLabel() {\n\t\treturn label;\n\t}", "Label getLabel();", "Label getLabel();", "Label getLabel();", "String getLabel() {\n return label;\n }", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n }\n }", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel(){\n return label;\n }", "String getLabel();", "String getLabel();", "public Font getNodeLabelFont() {\n return nodeLabelfont;\n }", "private String getLabel() {\n return this.label;\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label getLabel() {\r\n return label;\r\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }", "public String label() {\n return this.label;\n }", "public String getLabel() {\r\n return layout.label;\r\n }", "String getLabel(Renderer renderer) {\n\t\treturn (renderer != null) ? renderer.getNodeLabel(this) : getLabel();\n\t}", "public double getLabel() {\n\t\treturn label;\n\t}", "public String toString() {\n return label;\n }", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getLabel() {\n\t\t// just return item text until we get the grade levels straighted out for\n\t\t// comm_core\n\t\treturn this.itemText;\n\t\t/*\n\t\t * if (this.label == null) { if (this.getLevel() == 1) { this.label =\n\t\t * this.itemText; } else if (this.getIsLeafNode()) { this.label = \"[\" +\n\t\t * this.getGradeRange() + \"] \" + this.itemText; } else { this.label =\n\t\t * this.itemText + \" [\" + this.getGradeRange() + \"]\"; } } return this.label;\n\t\t */\n\t}", "public String toString()\n {\n return label;\n }", "public String getLabelName() {\n return m_labelName;\n }", "public NodeChildColorizer getNodeLabelColorizer() {\n return nodeLabelColorizer;\n }", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "DatasetLabel getLabel();", "default String getLabel() { return ((TensorImpl<?>) this).find(NDFrame.class).map(NDFrame::getLabel).orElse(\"\"); }", "@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();", "@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public JLabel getLabel() {\n return label;\n }", "@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();", "public JLabel getLabel() {\n return this.label;\n }", "@Override\r\n\tpublic String getLabel() {\n\t\treturn SummaryGraphUtil.getLocalName(uri);\r\n\t}", "public String getLabelText();", "public\t\tMiPart\t\tgetLabel()\n\t\t{\n\t\treturn(label);\n\t\t}", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public Object getLabel(T instance) {\n if (labels.containsKey(instance)) {\n return labels.get(instance);\n } else {\n return \"\";\n }\n }", "public abstract String getLabel();", "@Nonnull\n\tGenericAttributeValue<String> getLabel();", "com.google.protobuf.ByteString\n getLabelBytes();", "@Nullable\n public CharSequence getLabel() {\n return mPrimaryLabel;\n }", "@JsonGetter(\"label\")\r\n public String getLabel ( ) { \r\n return this.label;\r\n }" ]
[ "0.81727475", "0.81420135", "0.8004183", "0.78756845", "0.785059", "0.7801004", "0.77928543", "0.7768803", "0.7768311", "0.7768311", "0.7768311", "0.7760357", "0.7760357", "0.7757545", "0.7757545", "0.7757545", "0.7752084", "0.7746733", "0.7728071", "0.7695204", "0.7695119", "0.76931846", "0.76931846", "0.76931846", "0.76931846", "0.76922697", "0.7691692", "0.76901543", "0.7685528", "0.767832", "0.76686305", "0.7667139", "0.76600504", "0.7655564", "0.76500964", "0.7649297", "0.7643619", "0.7643619", "0.76416624", "0.76416624", "0.76416624", "0.76416624", "0.76368207", "0.763494", "0.7627027", "0.7601893", "0.75952125", "0.75880873", "0.75730234", "0.75725955", "0.7571593", "0.7567103", "0.7567103", "0.7567103", "0.7567007", "0.75365114", "0.7533697", "0.7518414", "0.74967", "0.7471452", "0.7471452", "0.7458848", "0.7453279", "0.74333525", "0.74236685", "0.74236685", "0.74236685", "0.74236685", "0.7389095", "0.73833776", "0.73807335", "0.73050904", "0.730291", "0.7295749", "0.7274346", "0.72679293", "0.7236786", "0.72205895", "0.7126531", "0.7109049", "0.70969236", "0.7089718", "0.7075768", "0.706718", "0.7055176", "0.70306", "0.7023969", "0.70212305", "0.70056033", "0.7000744", "0.69208956", "0.6895407", "0.68953913", "0.68940556", "0.68553734", "0.68514925", "0.6851397", "0.68496096", "0.6823987", "0.68082845" ]
0.7065037
84
Use WordsReplace.newBuilder() to construct.
private WordsReplace(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void replaceOneWord(String from, String to) {\n Collections.replaceAll(wordsLinkedList, from, to);\n }", "@Override\n\tpublic void replaceWord(String s) {\n\t\tfinder.replace(s);\n\t}", "public String replaceWords(List<String> dict, String sentence) {\n TrieNode root = buildTrie(dict);\n \n // extract words from the given sentence\n String[] arr = sentence.split(\" \");\n StringBuilder sb = new StringBuilder();\n \n //search root for each word, if found repleace it otherwise keep it as it is.\n for(int i=0; i<arr.length; i++){\n String s = dfs(root,arr[i]);\n if(s != null){\n sb.append(s+\" \"); \n } \n else{\n sb.append(arr[i]+ \" \");\n } \n }\n return sb.toString().trim();\n }", "@Override\n public void replaceMoreWords(String[] fromWords, String[] toWords) {\n int randomNum;\n if (fromWords.length > 2) {\n randomNum = ThreadLocalRandom.current().nextInt(1, fromWords.length - 1);\n }\n else {\n randomNum = 0;\n }\n int index = 0;\n String[] result;\n result = new String[wordsArray.length+10000];\n if (fromWords.length>0) {\n for (int i = 0; i < wordsArray.length; i++) {\n if ((wordsArray[i].equals(fromWords[0]) && (i + fromWords.length - 1 < wordsArray.length))) {\n if (wordsArray[i + fromWords.length - 1].equals(fromWords[fromWords.length - 1]) && wordsArray[i + randomNum].equals(fromWords[randomNum])) {\n for (int j = 0; j < toWords.length; j++) {\n result[index] = toWords[j];\n index++;\n }\n i += fromWords.length - 1;\n } else {\n result[index] = wordsArray[i];\n index++;\n }\n } else {\n result[index] = wordsArray[i];\n index++;\n }\n }\n wordsArray = new String[index];\n for (int i = 0; i < result.length; i++) {\n if (result[i]!=null){\n wordsArray[i]=result[i];\n }else {\n break;\n }\n\n }\n }\n }", "@Override\n public void replaceOneWord(String from, String to) {\n for (int i = 0; i < wordsArray.length; i++) {\n if (wordsArray[i].equals(from)){\n wordsArray[i] = to;\n }\n }\n }", "public String replaceWords(List<String> dict, String sentence) {\n for(String s : dict){\n insert(s);\n }\n //builder to append strings\n StringBuilder sb = new StringBuilder();\n //to get word of the sentence, split it into words\n //and to distinguish, add spaces\n for(String word : sentence.split(\"\\\\s+\")){\n if(sb.length() > 0)\n sb.append(\" \");\n \n TrieNode curr = root;\n //now for each word till its length\n for(int i=0; i<word.length(); i++){\n //get character, compare character with children\n char c = word.charAt(i);\n //if no children found or curr.word is null\n if(curr.children[c-'a'] == null || curr.word != null){\n break;\n }\n //curr++\n curr = curr.children[c-'a'];\n }\n //replacement found or not?\n String replacement = curr.word;\n if(replacement == null){\n sb.append(word);\n }else{\n sb.append(replacement);\n }\n }\n return sb.toString();\n }", "public abstract void substitutedWords(long ms, int n);", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "public static String wordsReplace(String objString, String regex, String replace) {\n\t\tPattern pat = Pattern.compile(regex);\n\t\tMatcher match = pat.matcher(string);\n\t\treturn string = match.replaceAll(replace);\n\t}", "public WordImplementation(final ImmutableMap<Locale, Translation> translations) {\n this.translations = Preconditions.checkNotNull(translations);\n }", "public static void replaceWordVector(Map<String, SimpleMatrix> wordVectors, String source, String target) {\n if (!wordVectors.containsKey(source)) {\n return;\n }\n\n wordVectors.put(target, new SimpleMatrix(wordVectors.get(source)));\n }", "private void addCustomWords() {\r\n\r\n }", "private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }", "public void replaceWord(int index, List<IndexedWord> words, String text) {\n for (IndexedWord iw : words) {\n if (iw.index() == index) {\n iw.setWord(text);\n break;\n }\n }\n\n }", "private SpreedWord() {\n\n }", "public String replace(String word)\n {\n int flags = 0;\n if (ignoreCase)\n {\n flags = flags | Pattern.CASE_INSENSITIVE;\n }\n return Pattern.compile(pattern, flags).matcher(word).replaceAll(replacement);\n }", "void solution() {\n\t\t/* Write a RegEx matching repeated words here. */\n\t\tString regex = \"(?i)\\\\b([a-z]+)\\\\b(?:\\\\s+\\\\1\\\\b)+\";\n\t\t/* Insert the correct Pattern flag here. */\n\t\tPattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);\n\n\t\tString[] in = { \"I love Love to To tO code\", \"Goodbye bye bye world world world\",\n\t\t\t\t\"Sam went went to to to his business\", \"Reya is is the the best player in eye eye game\", \"in inthe\",\n\t\t\t\t\"Hello hello Ab aB\" };\n\t\tfor (String input : in) {\n\t\t\tMatcher m = p.matcher(input);\n\n\t\t\t// Check for subsequences of input that match the compiled pattern\n\t\t\twhile (m.find()) {\n\t\t\t\t// /* The regex to replace */, /* The replacement. */\n\t\t\t\tinput = input.replaceAll(m.group(), m.group(1));\n\t\t\t}\n\n\t\t\t// Prints the modified sentence.\n\t\t\tSystem.out.println(input);\n\t\t}\n\n\t}", "public void replaceWord(int index, List<Word> pre, List<Word> post, String text) {\n Word replacement;\n if (index > 0 && index <= post.size()) {\n replacement = new Word(text, post.get(index - 1).getPosTag());\n post.remove(index - 1);\n post.add(index - 1, replacement);\n }\n if (index < 0 && Math.abs(index) <= pre.size()) {\n int size = pre.size();\n replacement = new Word(text, pre.get(size + index).getPosTag());\n pre.remove(size + index);\n pre.add(size + index, replacement);\n }\n }", "@Test\n public void shouldReplaceNoWords() throws IOException {\n String searchStr = \"spinach\";\n\n // replace all occurrences of search word with replacement\n String expected = srcContent.replaceAll(searchStr, replacementStr);\n\n // call main()\n invoke(searchStr);\n\n // read destination file\n String destContent = Files.readString(destFile.toPath());\n\n // does the expected content of the destination file meet the expected.\n assertEquals(expected.trim(),destContent.trim());\n }", "private void update() {\n\t\twhile(words.size()<length) {\n\t\t\twords.add(new Word());\n\t\t}\n\t}", "public void replaceThesarusWordwithGoogleWord ( ) {\r\n\t \t\t \t\r\n\t \tfor (Map.Entry<String, List<String>> entry : GoogleToThesarus.entrySet()) {\r\n\t String key = entry.getKey();\r\n\t List<String> values = entry.getValue();\r\n\t //String wordIsReplaced=null;\r\n\t \r\n\t for (String temp: values) {\r\n\t \t//why is this null\r\n\t \t\r\n\t \tif (splitto.equals(temp)) {\r\n\t \t\tsplitto=key;\r\n\t \t\tif(!replacedWordList.contains(splitto))\r\n\t \t\t\treplacedWordList.add(splitto);\r\n \t\t\r\n\t \t \t\t \t\t}\r\n\t \telse {\r\n\t \t\t//wordIsReplaced=splitto;\r\n\t \t\t//System.out.println(\"failed\");\r\n\t \t}\r\n\t \t\t }\r\n\t \t}\r\n\t }", "void replace(int offset, int length, String text) throws BadLocationException;", "void setVersesWithWord(Word word);", "int replaceAll(SearchOptions searchOptions, String replacement);", "com.google.spanner.v1.Mutation.WriteOrBuilder getReplaceOrBuilder();", "public StopWordRemover( ) {\n\t\t// Load and store the stop words from the fileinputstream with appropriate data structure.\n\t\t// NT: address of stopword.txt is Path.StopwordDir\n\t}", "public Word(Position position, CharSequence word) {\n this.position = position;\n this.word = word;\n }", "public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod, UnicodeSet.SpanCondition spanCondition) {\n/* 182 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static void replaceAll0(){\n System.out.println(\">>>>>>>>>>>>\");\n String class0 = \"this is an example\";\n String ret0 = class0.replaceAll(\"is\", \"IS\");\n assert(ret0.equals(\"thIS IS an example\"));\n System.out.println(ret0);\n }", "public DATATYPE replace(DataReplace dataReplace) {\n\t\tif (size() > 0) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\t\n\t\t\tfor (int i=0; i < mLines.length; i++) {\n\t\t\t\tlist.add( dataReplace.replace(mLines[i]) );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn (DATATYPE) this;\n\t}", "void addWordsToDoc(int doc,List<VocabWord> words);", "private Suggestion buildSuggestion(String linearization,\n Interpretation interpretation,\n Map<String, WordType> originalWords, boolean matchAllWords) {\n String[] words = linearization.split(\"\\\\s+\");\n\n Map<String, Integer> namesMissing = new HashMap(\n interpretation.getNameTypeCounts().counts);\n\n int additionalNamesCount = 0;\n\n Set<String> wordsNotMatched = new HashSet<>(originalWords.keySet());\n for (Entry<String, WordType> entry : originalWords.entrySet()) {\n if (entry.getValue() == WordType.Name) {\n wordsNotMatched.remove(entry.getKey());\n }\n }\n int additionalGrammarWordsCount = 0;\n\n\n for (String word : words) {\n\n //name word\n if (defTempl.isVariable(word)) {\n String nameType = word.substring(2, word.length() - 2);\n if (namesMissing.containsKey(nameType)) {\n Integer missingCount = namesMissing.get(nameType);\n if (missingCount > 1) {\n namesMissing.put(nameType, missingCount - 1);\n }\n else {\n namesMissing.remove(nameType);\n }\n }\n else {\n additionalNamesCount++;\n }\n }\n //grammar word\n else {\n String lowerCaseWord = word.toLowerCase();\n\n if (wordsNotMatched.contains(lowerCaseWord)) {\n wordsNotMatched.remove(lowerCaseWord);\n }\n else {\n additionalGrammarWordsCount++;\n }\n }\n }\n\n //if removing words from query is not allowed\n if (matchAllWords && !wordsNotMatched.isEmpty()) {\n return null;\n }\n\n int grammarWordsAltered = wordsNotMatched.size();\n int grammarWordsAdded = additionalGrammarWordsCount - grammarWordsAltered;\n\n return new Suggestion(linearization, false,\n additionalNamesCount, grammarWordsAdded, grammarWordsAltered);\n }", "public interface SearchReplaceController {\n\n /**\n * <p>Finds next (or first) ocurrence for the given search options.</p>\n * <p>Returns a <code>SearchResult</code> instance with the details or null if the search was not successful.</p>\n * <p>Modifies the given search options in order to match the next result the next time <code>findNext</code> is called</p>\n * @param searchOptions Options of the search\n * @return SearchResult with details of the match or null\n */\n SearchResult findNext(SearchOptions searchOptions);\n\n /**\n * <p>Finds next ocurrence for the given search options contained in a SearchResult.</p>\n * <p>Returns a <code>SearchResult</code> instance with the details or null if the search was not successful.</p>\n * <p>Modifies the given search options in order to match the next result the next time <code>findNext</code> is called</p>\n * @param result Last result of the search\n * @return SearchResult with details of the match or null \n */\n SearchResult findNext(SearchResult result);\n\n /**\n * <p>Indicates if a <code>SearchResult</code> can be replaced or not.</p>\n * <p>Computed columns and id columns cannot be replaced.</p>\n * @param result SearchResult to check before replacing\n * @return True if it can be replaced, false otherwise\n */\n boolean canReplace(SearchResult result);\n\n /**\n * <p>Replaces a <code>SearchResult</code> with the given replacement String.</p>\n * <p>Also tries to find next search result and returns it.</p>\n * <p>If the data has changed and the replacement can't be done it will just return next <code>SearchResult</code> calling <code>findNext</code>.</p>\n * <p>If useRegexReplaceMode is enabled, IndexOutOfBoundsException can be thrown when the replacement is not correct for the regular expression.</p>\n * @param result SearchResult to replace\n * @param replacement Replacement String\n * @return Next SearchResult or null if not successful\n */\n SearchResult replace(SearchResult result, String replacement);\n\n /**\n * <p>Replaces all SearchResults that can be replaced with the given search options from the beginning to the end of the data.</p>\n * <p>If useRegexReplaceMode is enabled, IndexOutOfBoundsException can be thrown when the replacement is not correct for the regular expression.</p>\n * @param searchOptions Search options for the searches\n * @param replacement Replacement String\n * @return Count of made replacements\n */\n int replaceAll(SearchOptions searchOptions, String replacement);\n\n /**\n * Class that wraps the different possible options of search and provides various useful constructors.\n */\n class SearchOptions {\n\n private boolean searchNodes;\n private Node[] nodesToSearch;\n private Edge[] edgesToSearch;\n private Integer startingRow = null, startingColumn = null;\n private HashSet<Integer> columnsToSearch = new HashSet<>();\n private boolean loopToBeginning = true;\n private Pattern regexPattern;\n private boolean useRegexReplaceMode = false;\n private int regionStart = 0;\n private boolean onlyMatchWholeAttributeValue;\n\n public void resetStatus() {\n regionStart = 0;\n startingRow = null;\n startingColumn = null;\n }\n\n /**\n * Sets nodesToSearch as all nodes in the graph if they are null or empty array.\n * Also only search on visible view if data table is showing visible only.\n */\n private void checkNodesToSearch() {\n if (nodesToSearch == null || nodesToSearch.length == 0) {\n Graph graph;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n graph = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n graph = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n nodesToSearch = graph.getNodes().toArray();\n }\n }\n\n /**\n * Sets edgesToSearch as all edges in the graph if they are null or empty array.\n * Also only search on visible view if data table is showing visible only.\n */\n private void checkEdgesToSearch() {\n if (edgesToSearch == null || edgesToSearch.length == 0) {\n Graph hg;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n edgesToSearch = hg.getEdges().toArray();\n }\n }\n\n /**\n * Setup options to search on nodes with the given pattern.\n * If nodesToSearch is null, all nodes of the graph will be used.\n * @param nodesToSearch\n * @param regexPattern\n */\n public SearchOptions(Node[] nodesToSearch, Pattern regexPattern) {\n this.nodesToSearch = nodesToSearch;\n this.regexPattern = regexPattern;\n searchNodes = true;\n checkNodesToSearch();\n }\n\n /**\n * Setup options to search on edges with the given pattern.\n * If edgesToSearch is null, all edges of the graph will be used.\n * @param edgesToSearch\n * @param regexPattern\n */\n public SearchOptions(Edge[] edgesToSearch, Pattern regexPattern) {\n this.edgesToSearch = edgesToSearch;\n this.regexPattern = regexPattern;\n searchNodes = false;\n checkEdgesToSearch();\n }\n\n /**\n * Setup options to search on nodes with the given pattern.\n * If nodesToSearch is null, all nodes of the graph will be used.\n * @param nodesToSearch\n * @param regexPattern\n * @param onlyMatchWholeAttributeValue \n */\n public SearchOptions(Node[] nodesToSearch, Pattern regexPattern, boolean onlyMatchWholeAttributeValue) {\n this.nodesToSearch = nodesToSearch;\n this.regexPattern = regexPattern;\n this.onlyMatchWholeAttributeValue = onlyMatchWholeAttributeValue;\n searchNodes = true;\n }\n\n /**\n * Setup options to search on edges with the given pattern.\n * If edgesToSearch is null, all edges of the graph will be used.\n * @param edgesToSearch\n * @param regexPattern\n * @param onlyMatchWholeAttributeValue\n */\n public SearchOptions(Edge[] edgesToSearch, Pattern regexPattern, boolean onlyMatchWholeAttributeValue) {\n this.edgesToSearch = edgesToSearch;\n this.regexPattern = regexPattern;\n this.onlyMatchWholeAttributeValue = onlyMatchWholeAttributeValue;\n searchNodes = false;\n }\n\n /************Getters and setters***********/\n public Edge[] getEdgesToSearch() {\n return edgesToSearch;\n }\n\n public Node[] getNodesToSearch() {\n return nodesToSearch;\n }\n\n public boolean isOnlyMatchWholeAttributeValue() {\n return onlyMatchWholeAttributeValue;\n }\n\n public void setOnlyMatchWholeAttributeValue(boolean onlyMatchWholeAttributeValue) {\n this.onlyMatchWholeAttributeValue = onlyMatchWholeAttributeValue;\n }\n\n public Pattern getRegexPattern() {\n return regexPattern;\n }\n\n public void setRegexPattern(Pattern regexPattern) {\n this.regexPattern = regexPattern;\n }\n\n public Integer getStartingColumn() {\n return startingColumn;\n }\n\n public void setStartingColumn(Integer startingColumn) {\n this.startingColumn = startingColumn;\n }\n\n public Integer getStartingRow() {\n return startingRow;\n }\n\n public void setStartingRow(Integer startingRow) {\n this.startingRow = startingRow;\n }\n\n /**\n * Set column indexes that should be used to search with the current options.\n * If columnsToSearch is empty, all columns will be used to search.\n * @param columnsToSearch It is safe to specify invalid columns indexes, they will be ignored\n */\n public void setColumnsToSearch(int[] columnsToSearch) {\n this.columnsToSearch.clear();\n if (columnsToSearch != null) {\n for (Integer i : columnsToSearch) {\n this.columnsToSearch.add(i);\n }\n }\n }\n\n /**\n * Set column that should be used to search with the current options.\n * If columnsToSearch is empty, all columns will be used to search.\n * @param columnsToSearch It is safe to specify invalid columns, they will be ignored\n */\n public void setColumnsToSearch(Column[] columnsToSearch) {\n this.columnsToSearch.clear();\n if (columnsToSearch != null) {\n for (Column c : columnsToSearch) {\n this.columnsToSearch.add(c.getIndex());\n }\n }\n }\n\n /**\n * Returns columns indexes to search\n * @return Set with columns indexes to search\n */\n public Set<Integer> getColumnsToSearch() {\n return columnsToSearch;\n }\n\n public boolean isSearchNodes() {\n return searchNodes;\n }\n\n public int getRegionStart() {\n return regionStart;\n }\n\n public void setRegionStart(int regionStart) {\n this.regionStart = regionStart;\n }\n\n public boolean isUseRegexReplaceMode() {\n return useRegexReplaceMode;\n }\n\n public void setUseRegexReplaceMode(boolean useRegexReplaceMode) {\n this.useRegexReplaceMode = useRegexReplaceMode;\n }\n\n public boolean isLoopToBeginning() {\n return loopToBeginning;\n }\n\n public void setLoopToBeginning(boolean loopToBeginning) {\n this.loopToBeginning = loopToBeginning;\n }\n }\n\n /**\n * <p>Class that wraps the result of a search contaning the search options used for this result\n * and the node or edge, row, column and start-end index of the value where ocurrence was found.</p>\n */\n class SearchResult {\n\n /**\n * searchOptions for finding next match.\n */\n private SearchOptions searchOptions;\n private Node foundNode;\n private Edge foundEdge;\n private int foundRowIndex, foundColumnIndex;\n private int start, end;\n\n public SearchResult(SearchOptions searchOptions, Node foundNode, Edge foundEdge, int foundRowIndex, int foundColumnIndex, int start, int end) {\n this.searchOptions = searchOptions;\n this.foundNode = foundNode;\n this.foundEdge = foundEdge;\n this.foundRowIndex = foundRowIndex;\n this.foundColumnIndex = foundColumnIndex;\n this.start = start;\n this.end = end;\n }\n\n public int getEnd() {\n return end;\n }\n\n public void setEnd(int end) {\n this.end = end;\n }\n\n public int getFoundColumnIndex() {\n return foundColumnIndex;\n }\n\n public void setFoundColumnIndex(int foundColumnIndex) {\n this.foundColumnIndex = foundColumnIndex;\n }\n\n public Edge getFoundEdge() {\n return foundEdge;\n }\n\n public void setFoundEdge(Edge foundEdge) {\n this.foundEdge = foundEdge;\n }\n\n public Node getFoundNode() {\n return foundNode;\n }\n\n public void setFoundNode(Node foundNode) {\n this.foundNode = foundNode;\n }\n\n public int getFoundRowIndex() {\n return foundRowIndex;\n }\n\n public void setFoundRowIndex(int foundRowIndex) {\n this.foundRowIndex = foundRowIndex;\n }\n\n public SearchOptions getSearchOptions() {\n return searchOptions;\n }\n\n public void setSearchOptions(SearchOptions searchOptions) {\n this.searchOptions = searchOptions;\n }\n\n public int getStart() {\n return start;\n }\n\n public void setStart(int start) {\n this.start = start;\n }\n }\n}", "public void reset(Object o) {\n\t\tif (o instanceof Word) {\n\t\t\tWord word = (Word) o;\n\t\t\tint start = word.getStartPosition();\n\t\t\tint end = word.getEndPosition();\n\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\tVector fws = Model.getIllocutionUnitRoots().getFunctionWords(word);\n\t\t\tVector cws = Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\tword);\n\t\t\tmarkedElements.removeElement(word);\n\t\t\tif (fws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < fws.size(); j++) {\n\t\t\t\t\tFunctionWord fw = (FunctionWord) fws.get(j);\n\t\t\t\t\tdesignFW(fw);\n\t\t\t\t}\n\t\t\t} else if (cws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < cws.size(); j++) {\n\t\t\t\t\tConstitutiveWord cw = (ConstitutiveWord) cws.get(j);\n\t\t\t\t\tdesignCW(cw);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (o instanceof FunctionWord) {\n\t\t\tFunctionWord fword = (FunctionWord) o;\n\t\t\teditor.setCaretPosition(fword.getEndPosition() + 1);\n\t\t\tint start = fword.getStartPosition();\n\t\t\tint end = fword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(fword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getFunctionWords(\n\t\t\t\t\t\tfword.getWord()).size() > 0)\n\t\t\t\t\tdesignFW(fword);\n\t\t\t}\n\t\t} else if (o instanceof ConstitutiveWord) {\n\t\t\tConstitutiveWord cword = (ConstitutiveWord) o;\n\t\t\teditor.setCaretPosition(cword.getEndPosition() + 1);\n\t\t\tint start = cword.getStartPosition();\n\t\t\tint end = cword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(cword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\t\tcword.getWord()).size() > 0)\n\t\t\t\t\tdesignCW(cword);\n\t\t\t}\n\t\t} else if (o instanceof MeaningUnit) {\n\t\t\tMeaningUnit mu = (MeaningUnit) o;\n\t\t\tFunctionWord fw = mu.getFunctionWord();\n\t\t\tConstitutiveWord cw = mu.getConstitutiveWord();\n\t\t\tif (fw != null) {\n\t\t\t\tint start = fw.getStartPosition();\n\t\t\t\tint end = fw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(fw);\n\t\t\t}\n\t\t\tif (cw != null) {\n\t\t\t\tint start = cw.getStartPosition();\n\t\t\t\tint end = cw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(cw);\n\t\t\t}\n\t\t\tdesignMU(mu);\n\t\t} else if (o instanceof IllocutionUnit) {\n\t\t\tIllocutionUnit iu = (IllocutionUnit) o;\n\t\t\tmarkedElements.remove(iu);\n\t\t\tdesignIU(iu);\n\t\t}\n\t\tdesignText(Model.getIllocutionUnitRoots());\n\t}", "@Override\n\tpublic Expression replacedVar(Map<Variable, Variable> replacement) {\n\t\tList<Tuple<String, Variable>> newVars = new ArrayList<Tuple<String, Variable>>(this.variables);\n\t\tnewVars.replaceAll(itm -> {\n\t\t\tif (itm.second() != null && replacement.containsKey(itm.second())) {\n\t\t\t\treturn new Tuple<String, Variable>(itm.first(), replacement.get(itm.second()));\n\t\t\t}\n\t\t\treturn itm;\n\t\t});\n\t\treturn new Expression(this.desc, newVars);\n\t}", "public static String findReplacements(TreeSet<String> dictionary, \n\t\t\t\t\t String word)\n\t{\n\t String replacements = \"\";\n\t String leftHalf, rightHalf, newWord;\n\t int deleteAtThisIndex, insertBeforeThisIndex;\n\t char index;\n\t TreeSet<String> alreadyDoneNewWords = new TreeSet<String>();\n\t /* The above TreeSet<String> will hold words that the spell checker\n\t suggests as replacements. By keeping track of what has already\n\t been suggested, the method can make sure not to output the\n\t same recommended word twice. For instance, the word \n\t \"mispelled\" would ordinarily result in two of the same suggested\n\t replacements: \"misspelled\" (where the additional \"s\" is added to \n\t different locations.) */\n\t \n\t // First, we'll look for words to make by subtracting one letter\n\t // from the misspelled word.\n\t for(deleteAtThisIndex = 0; deleteAtThisIndex < word.length();\n\t\tdeleteAtThisIndex ++)\n\t\t{\n\t\t if(deleteAtThisIndex == 0)\n\t\t\t{\n\t\t\t leftHalf = \"\";\n\t\t\t rightHalf = word;\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t leftHalf = word.substring(0, deleteAtThisIndex);\n\t\t\t rightHalf = word.substring(deleteAtThisIndex+1,\n\t\t\t\t\t\t word.length());\n\t\t\t}\n\n\t\t newWord = \"\";\n\t\t newWord = newWord.concat(leftHalf);\n\t\t newWord = newWord.concat(rightHalf);\n\t\t if(dictionary.contains(newWord) &&\n\t\t !alreadyDoneNewWords.contains(newWord))\n\t\t\t{\n\t\t\t replacements = replacements.concat(newWord + \"\\n\");\n\t\t\t alreadyDoneNewWords.add(newWord);\n\t\t\t}\n\t\t}\n\n\t // The rest of this method looks for words to make by adding a \n\t // new letter to the misspelled word.\n\t for(insertBeforeThisIndex = 0; \n\t\tinsertBeforeThisIndex <= word.length();\n\t\tinsertBeforeThisIndex ++)\n\t\t{\n\t\t if(insertBeforeThisIndex == word.length())\n\t\t\t{\n\t\t\t leftHalf = word;\n\t\t\t rightHalf = \"\";\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t leftHalf = word.substring(0,insertBeforeThisIndex);\n\t\t\t rightHalf = word.substring(insertBeforeThisIndex,\n\t\t\t\t\t\t word.length());\n\t\t\t}\n\t\t \n\t\t for(index = 'a'; index <= 'z'; index ++)\n\t\t\t{\n\t\t\t newWord = \"\";\n\t\t\t newWord = newWord.concat(leftHalf);\n\t\t\t newWord = newWord.concat(\"\" + index + \"\");\n\t\t\t newWord = newWord.concat(rightHalf);\n\t\t\t \n\t\t\t if(dictionary.contains(newWord) &&\n\t\t\t !alreadyDoneNewWords.contains(newWord))\n\t\t\t\t{\n\t\t\t\t replacements \n\t\t\t\t\t= replacements.concat(newWord + \"\\n\");\n\t\t\t\t alreadyDoneNewWords.add(newWord);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t return replacements;\n\t}", "public void replace(String text) {\n\t\tlogger.info(\"REPLACE TODO\");\n\t}", "@Test\n public void shouldReplaceSingleWord() throws IOException {\n String searchStr = \"Bacon\";\n\n // replace all occurrences of search word with replacement\n String expected = srcContent.replaceAll(searchStr, replacementStr);\n\n // call main()\n invoke(searchStr);\n\n // read destination file\n String destContent = Files.readString(destFile.toPath());\n\n // does the expected content of the destination file meet the expected.\n assertEquals(expected.trim(),destContent.trim());\n }", "public Removalstops()\n {\n stopWords.add(\"am\");\n stopWords.add(\"my\");\nstopWords.add(\"at\");\nstopWords.add(\"a\");\nstopWords.add(\"i\");\nstopWords.add(\"is\");\nstopWords.add(\"of\");\nstopWords.add(\"have\");\nstopWords.add(\"--\");\nstopWords.add(\"do\");\nstopWords.add(\"the\");\nstopWords.add(\"was\");\nstopWords.add(\"iam\");\nstopWords.add(\"there\");\nstopWords.add(\"what\");\nstopWords.add(\"for\");\nstopWords.add(\"in\");\nstopWords.add(\"very\");\nstopWords.add(\"and\");\nstopWords.add(\"to\");\nstopWords.add(\"often\");\nstopWords.add(\"because\");\nstopWords.add(\"in\");\nstopWords.add(\"an\");\nstopWords.add(\"can\");\nstopWords.add(\"via\");\nstopWords.add(\"even\");\nstopWords.add(\"as\");\nstopWords.add(\"best\");\nstopWords.add(\"been\");\nstopWords.add(\"into\");\nstopWords.add(\"by\");\nstopWords.add(\"around\");\nstopWords.add(\"being\");\nstopWords.add(\"from\");\nstopWords.add(\"etc\");\nstopWords.add(\"his\");\nstopWords.add(\"do\");\nstopWords.add(\"have\");\nstopWords.add(\"had\"); \nstopWords.add(\"able\");\nstopWords.add(\"about\");\nstopWords.add(\"above\");\nstopWords.add(\"abroad\");\nstopWords.add(\"according\");\nstopWords.add(\"accordingly\");\nstopWords.add(\"across\");\nstopWords.add(\"actually\");\nstopWords.add(\"adj\");\nstopWords.add(\"after\");\nstopWords.add(\"afterwards\");\nstopWords.add(\"again\");\nstopWords.add(\"against\");\nstopWords.add(\"ago\");\nstopWords.add(\"ahead\");\nstopWords.add(\"ain't\");\nstopWords.add(\"all\");\nstopWords.add(\"allow\");\nstopWords.add(\"allows\");\nstopWords.add(\"almost\");\nstopWords.add(\"alone\");\nstopWords.add(\"along\");\nstopWords.add(\"alongside\");\nstopWords.add(\"already\");\nstopWords.add(\"also\");\nstopWords.add(\"although\");\nstopWords.add(\"always\");\nstopWords.add(\"am\");\nstopWords.add(\"amid\");\nstopWords.add(\"amidst\");\nstopWords.add(\"among\");\nstopWords.add(\"amongst\");\nstopWords.add(\"an\");\nstopWords.add(\"and\");\nstopWords.add(\"another\");\nstopWords.add(\"any\");\nstopWords.add(\"anybody\");\nstopWords.add(\"anyhow\");\nstopWords.add(\"anyone\");\nstopWords.add(\"anything\");\nstopWords.add(\"anyway\");\nstopWords.add(\"anyways\");\nstopWords.add(\"anywhere\");\nstopWords.add(\"apart\");\nstopWords.add(\"appear\");\nstopWords.add(\"appreciate\");\nstopWords.add(\"appropriate\");\nstopWords.add(\"are\");\nstopWords.add(\"aren't\");\nstopWords.add(\"around\");\nstopWords.add(\"as\");\nstopWords.add(\"a's\");\nstopWords.add(\"aside\");\nstopWords.add(\"ask\");\nstopWords.add(\"asking\");\nstopWords.add(\"associated\");\nstopWords.add(\"at\");\nstopWords.add(\"available\");\nstopWords.add(\"away\");\nstopWords.add(\"awfully\");\nstopWords.add(\"back\");\nstopWords.add(\"backward\");\nstopWords.add(\"backwards\");\nstopWords.add(\"be\");\nstopWords.add(\"became\");\nstopWords.add(\"beacause\");\nstopWords.add(\"become\");\nstopWords.add(\"becomes\");\nstopWords.add(\"becoming\");\nstopWords.add(\"been\");\nstopWords.add(\"before\");\nstopWords.add(\"beforehand\");\nstopWords.add(\"begin\");\nstopWords.add(\"behind\");\nstopWords.add(\"being\");\nstopWords.add(\"believe\");\nstopWords.add(\"below\");\nstopWords.add(\"beside\");\nstopWords.add(\"besides\");\nstopWords.add(\"best\");\nstopWords.add(\"better\");\nstopWords.add(\"between\");\nstopWords.add(\"beyond\");\nstopWords.add(\"both\");\nstopWords.add(\"brief\");\nstopWords.add(\"but\");\nstopWords.add(\"by\");\nstopWords.add(\"came\");\nstopWords.add(\"can\");\nstopWords.add(\"cannot\");\nstopWords.add(\"cant\");\nstopWords.add(\"can't\");\nstopWords.add(\"caption\");\nstopWords.add(\"cause\");\nstopWords.add(\"causes\");\nstopWords.add(\"certain\");\nstopWords.add(\"cetrainly\");\nstopWords.add(\"changes\");\nstopWords.add(\"clearly\");\nstopWords.add(\"c'mon\");\nstopWords.add(\"co\");\nstopWords.add(\"co.\");\nstopWords.add(\"com\");\nstopWords.add(\"come\");\nstopWords.add(\"comes\");\nstopWords.add(\"concerning\");\nstopWords.add(\"consequently\");\nstopWords.add(\"consider\");\nstopWords.add(\"considering\");\nstopWords.add(\"could\");\nstopWords.add(\"couldn't\");\nstopWords.add(\"c's\");\nstopWords.add(\"currently\");\nstopWords.add(\"dare\");\nstopWords.add(\"daren't\");\nstopWords.add(\"definitely\");\nstopWords.add(\"described\");\nstopWords.add(\"despite\");\nstopWords.add(\"did\");\nstopWords.add(\"didn't\");\nstopWords.add(\"different\");\nstopWords.add(\"directly\");\nstopWords.add(\"do\");\nstopWords.add(\"does\");\nstopWords.add(\"doesn't\");\nstopWords.add(\"doing\");\nstopWords.add(\"done\");\nstopWords.add(\"don't\");\nstopWords.add(\"down\");\nstopWords.add(\"downwards\");\nstopWords.add(\"during\");\nstopWords.add(\"each\");\nstopWords.add(\"edu\");\nstopWords.add(\"eg\");\nstopWords.add(\"eight\");\nstopWords.add(\"eighty\");\nstopWords.add(\"either\");\nstopWords.add(\"else\");\nstopWords.add(\"elsewhere\");\nstopWords.add(\"end\");\nstopWords.add(\"ending\");\nstopWords.add(\"enough\");\nstopWords.add(\"entirely\");\nstopWords.add(\"especially\");\nstopWords.add(\"et\");\nstopWords.add(\"etc\");\nstopWords.add(\"even\");\nstopWords.add(\"evenmore\");\nstopWords.add(\"every\");\nstopWords.add(\"everybody\");\nstopWords.add(\"everyone\");\nstopWords.add(\"everything\");\nstopWords.add(\"everywhere\");\nstopWords.add(\"ex\");\nstopWords.add(\"exactly\");\nstopWords.add(\"example\");\nstopWords.add(\"except\");\nstopWords.add(\"fairly\");\nstopWords.add(\"far\");\nstopWords.add(\"farhter\");\nstopWords.add(\"few\");\nstopWords.add(\"fewer\");\nstopWords.add(\"fifth\");\nstopWords.add(\"first\");\nstopWords.add(\"five\");\nstopWords.add(\"followed\");\nstopWords.add(\"following\");\nstopWords.add(\"follows\");\nstopWords.add(\"for\");\nstopWords.add(\"forever\");\nstopWords.add(\"former\");\nstopWords.add(\"formerly\");\nstopWords.add(\"forth\");\nstopWords.add(\"forward\");\nstopWords.add(\"found\");\nstopWords.add(\"four\");\nstopWords.add(\"from\");\nstopWords.add(\"further\");\nstopWords.add(\"furthermore\");\nstopWords.add(\"get\");\nstopWords.add(\"gets\");\nstopWords.add(\"getting\");\nstopWords.add(\"given\");\nstopWords.add(\"gives\");\nstopWords.add(\"go\");\nstopWords.add(\"goes\");\nstopWords.add(\"going\");\nstopWords.add(\"gone\");\nstopWords.add(\"got\");\nstopWords.add(\"gotten\");\nstopWords.add(\"greetings\");\nstopWords.add(\"had\");\nstopWords.add(\"hadn't\");\nstopWords.add(\"half\");\nstopWords.add(\"happens\");\nstopWords.add(\"hardly\");\nstopWords.add(\"has\");\nstopWords.add(\"hasn't\");\nstopWords.add(\"have\");\nstopWords.add(\"haven't\");\nstopWords.add(\"having\");\nstopWords.add(\"he\");\nstopWords.add(\"he'd\");\nstopWords.add(\"he'll\");\nstopWords.add(\"hello\");\nstopWords.add(\"help\");\nstopWords.add(\"hence\");\nstopWords.add(\"her\");\nstopWords.add(\"here\");\nstopWords.add(\"hereafter\");\nstopWords.add(\"hereby\");\nstopWords.add(\"herein\");\nstopWords.add(\"here's\");\nstopWords.add(\"hereupon\");\nstopWords.add(\"hers\");\nstopWords.add(\"herself\");\nstopWords.add(\"he's\");\nstopWords.add(\"hi\");\nstopWords.add(\"him\");\nstopWords.add(\"himself\");\nstopWords.add(\"his\");\nstopWords.add(\"hither\");\nstopWords.add(\"hopefully\");\nstopWords.add(\"how\");\nstopWords.add(\"howbeit\");\nstopWords.add(\"however\");\nstopWords.add(\"however\");\nstopWords.add(\"hundred\");\nstopWords.add(\"i'd\");\nstopWords.add(\"ie\");\nstopWords.add(\"if\");\nstopWords.add(\"ignored\");\nstopWords.add(\"i'll\");\nstopWords.add(\"i'm\");\nstopWords.add(\"immediate\");\nstopWords.add(\"in\");\nstopWords.add(\"iansmuch\");\nstopWords.add(\"inc\");\nstopWords.add(\"inc.\");\nstopWords.add(\"indeed\");\nstopWords.add(\"indicate\");\nstopWords.add(\"indicated\");\nstopWords.add(\"indicates\");\nstopWords.add(\"inner\");\nstopWords.add(\"inside\");\nstopWords.add(\"insofar\");\nstopWords.add(\"into\");\nstopWords.add(\"inward\");\nstopWords.add(\"is\");\nstopWords.add(\"isn't\");\nstopWords.add(\"it\");\nstopWords.add(\"it'd\");\nstopWords.add(\"it'll\");\nstopWords.add(\"its\");\nstopWords.add(\"it's\");\nstopWords.add(\"itself\");\nstopWords.add(\"i've\");\nstopWords.add(\"just\");\nstopWords.add(\"k\");\nstopWords.add(\"keep\");\nstopWords.add(\"keeps\");\nstopWords.add(\"kept\");\nstopWords.add(\"know\");\nstopWords.add(\"knows\");\nstopWords.add(\"known\");\nstopWords.add(\"last\");\nstopWords.add(\"lately\");\nstopWords.add(\"later\");\nstopWords.add(\"latter\");\nstopWords.add(\"latterly\");\nstopWords.add(\"least\");\nstopWords.add(\"less\");\nstopWords.add(\"let\");\nstopWords.add(\"let's\");\nstopWords.add(\"like\");\nstopWords.add(\"liked\");\nstopWords.add(\"likely\");\nstopWords.add(\"likewise\");\nstopWords.add(\"little\");\nstopWords.add(\"look\");\nstopWords.add(\"looks\");\nstopWords.add(\"low\");\nstopWords.add(\"lower\");\nstopWords.add(\"ltd\");\nstopWords.add(\"made\");\nstopWords.add(\"mainly\");\nstopWords.add(\"make\");\nstopWords.add(\"makes\");\nstopWords.add(\"many\");\nstopWords.add(\"may\");\nstopWords.add(\"maybe\");\nstopWords.add(\"mayn't\");\nstopWords.add(\"me\");\nstopWords.add(\"mean\");\nstopWords.add(\"meanwhile\");\nstopWords.add(\"merely\");\nstopWords.add(\"might\");\nstopWords.add(\"mightn't\");\nstopWords.add(\"mine\");\nstopWords.add(\"minus\");\nstopWords.add(\"miss\");\nstopWords.add(\"more\");\nstopWords.add(\"moreover\");\nstopWords.add(\"most\");\nstopWords.add(\"mostly\");\nstopWords.add(\"mr\");\nstopWords.add(\"mrs\");\nstopWords.add(\"much\");\nstopWords.add(\"must\");\nstopWords.add(\"mustn't\");\nstopWords.add(\"my\");\nstopWords.add(\"myself\");\nstopWords.add(\"name\");\nstopWords.add(\"namely\");\nstopWords.add(\"nd\");\nstopWords.add(\"near\");\nstopWords.add(\"nearly\");\nstopWords.add(\"necessary\");\nstopWords.add(\"need\");\nstopWords.add(\"needn't\");\nstopWords.add(\"needs\");\nstopWords.add(\"neither\");\nstopWords.add(\"never\");\nstopWords.add(\"neverf\");\nstopWords.add(\"neverless\");\nstopWords.add(\"nevertheless\");\nstopWords.add(\"new\");\nstopWords.add(\"next\");\nstopWords.add(\"nine\");\nstopWords.add(\"ninety\");\nstopWords.add(\"no\");\nstopWords.add(\"nobody\");\nstopWords.add(\"non\");\nstopWords.add(\"none\");\nstopWords.add(\"nonetheless\");\nstopWords.add(\"noone\");\nstopWords.add(\"no-one\");\nstopWords.add(\"nor\");\nstopWords.add(\"normally\");\nstopWords.add(\"not\");\nstopWords.add(\"nothing\");\nstopWords.add(\"notwithstanding\");\nstopWords.add(\"novel\");\nstopWords.add(\"now\");\nstopWords.add(\"nowwhere\");\nstopWords.add(\"obviously\");\nstopWords.add(\"of\");\nstopWords.add(\"off\");\nstopWords.add(\"often\");\nstopWords.add(\"oh\");\nstopWords.add(\"ok\");\nstopWords.add(\"okay\");\nstopWords.add(\"old\");\nstopWords.add(\"on\");\nstopWords.add(\"once\");\nstopWords.add(\"one\");\nstopWords.add(\"ones\");\nstopWords.add(\"one's\");\nstopWords.add(\"only\");\nstopWords.add(\"onto\");\nstopWords.add(\"opposite\");\nstopWords.add(\"or\");\nstopWords.add(\"other\");\nstopWords.add(\"others\");\nstopWords.add(\"otherwise\");\nstopWords.add(\"ought\");\nstopWords.add(\"oughtn't\");\nstopWords.add(\"our\");\nstopWords.add(\"ourselves\");\nstopWords.add(\"out\");\nstopWords.add(\"outside\");\nstopWords.add(\"over\");\nstopWords.add(\"overall\");\nstopWords.add(\"own\");\nstopWords.add(\"particular\");\nstopWords.add(\"particularly\");\nstopWords.add(\"past\");\nstopWords.add(\"per\");\nstopWords.add(\"perhaps\");\nstopWords.add(\"placed\");\nstopWords.add(\"please\");\nstopWords.add(\"plus\");\nstopWords.add(\"possible\");\nstopWords.add(\"presumably\");\nstopWords.add(\"probably\");\nstopWords.add(\"provided\");\nstopWords.add(\"provides\");\nstopWords.add(\"que\");\nstopWords.add(\"quite\");\nstopWords.add(\"qv\");\nstopWords.add(\"rather\");\nstopWords.add(\"rd\");\nstopWords.add(\"re\");\nstopWords.add(\"really\");\nstopWords.add(\"reasonably\");\nstopWords.add(\"recent\");\nstopWords.add(\"recently\");\nstopWords.add(\"regarding\");\nstopWords.add(\"regardless\");\nstopWords.add(\"regards\");\nstopWords.add(\"relatively\");\nstopWords.add(\"respectively\");\nstopWords.add(\"right\");\nstopWords.add(\"round\");\nstopWords.add(\"said\");\nstopWords.add(\"same\");\nstopWords.add(\"saw\");\nstopWords.add(\"say\");\nstopWords.add(\"saying\");\nstopWords.add(\"says\");\nstopWords.add(\"second\");\nstopWords.add(\"secondly\");\nstopWords.add(\"see\");\nstopWords.add(\"seeing\");\nstopWords.add(\"seem\");\nstopWords.add(\"seemed\");\nstopWords.add(\"seeming\");\nstopWords.add(\"seems\");\nstopWords.add(\"seen\");\nstopWords.add(\"self\");\nstopWords.add(\"selves\");\nstopWords.add(\"sensible\");\nstopWords.add(\"sent\");\nstopWords.add(\"serious\");\nstopWords.add(\"seriously\");\nstopWords.add(\"seven\");\nstopWords.add(\"several\");\nstopWords.add(\"shall\");\nstopWords.add(\"shan't\");\nstopWords.add(\"she\");\nstopWords.add(\"she'd\");\nstopWords.add(\"she'll\");\nstopWords.add(\"she's\");\nstopWords.add(\"should\");\nstopWords.add(\"shouldn't\");\nstopWords.add(\"since\");\nstopWords.add(\"six\");\nstopWords.add(\"so\");\nstopWords.add(\"some\");\nstopWords.add(\"somebody\");\nstopWords.add(\"someday\");\nstopWords.add(\"somehow\");\nstopWords.add(\"someone\");\nstopWords.add(\"something\");\nstopWords.add(\"sometime\");\nstopWords.add(\"sometimes\");\nstopWords.add(\"somewhat\");\nstopWords.add(\"somewhere\");\nstopWords.add(\"soon\");\nstopWords.add(\"sorry\");\nstopWords.add(\"specified\");\nstopWords.add(\"specify\");\nstopWords.add(\"specifying\");\nstopWords.add(\"still\");\nstopWords.add(\"sub\");\nstopWords.add(\"such\");\nstopWords.add(\"sup\");\nstopWords.add(\"sure\");\nstopWords.add(\"take\");\nstopWords.add(\"taken\");\nstopWords.add(\"taking\");\nstopWords.add(\"tell\");\nstopWords.add(\"tends\");\nstopWords.add(\"th\");\nstopWords.add(\"than\");\nstopWords.add(\"thank\");\nstopWords.add(\"thanks\");\nstopWords.add(\"thanx\");\nstopWords.add(\"that\");\nstopWords.add(\"that'll\");\nstopWords.add(\"thats\");\nstopWords.add(\"that've\");\nstopWords.add(\"the\");\nstopWords.add(\"their\");\nstopWords.add(\"theirs\");\nstopWords.add(\"them\");\nstopWords.add(\"themselves\");\nstopWords.add(\"then\");\nstopWords.add(\"thence\");\nstopWords.add(\"there\");\nstopWords.add(\"thereafter\");\nstopWords.add(\"thereby\");\nstopWords.add(\"there'd\");\nstopWords.add(\"therefore\");\nstopWords.add(\"therein\");\nstopWords.add(\"ther'll\");\nstopWords.add(\"there're\");\nstopWords.add(\"theres\");\nstopWords.add(\"there's\");\nstopWords.add(\"thereupon\");\nstopWords.add(\"there've\");\nstopWords.add(\"these\");\nstopWords.add(\"they\");\nstopWords.add(\"they'd\");\nstopWords.add(\"they'll\");\nstopWords.add(\"they're\");\nstopWords.add(\"they've\");\nstopWords.add(\"thing\");\nstopWords.add(\"things\");\nstopWords.add(\"think\");\nstopWords.add(\"third\");\nstopWords.add(\"thirty\");\nstopWords.add(\"this\");\nstopWords.add(\"thorough\");\nstopWords.add(\"thoroughly\");\nstopWords.add(\"those\");\nstopWords.add(\"though\");\nstopWords.add(\"throughout\");\nstopWords.add(\"thru\");\nstopWords.add(\"thus\");\nstopWords.add(\"till\");\nstopWords.add(\"to\");\nstopWords.add(\"together\");\nstopWords.add(\"too\");\nstopWords.add(\"took\");\nstopWords.add(\"toward\");\nstopWords.add(\"towards\");\nstopWords.add(\"tried\");\nstopWords.add(\"tries\");\nstopWords.add(\"truly\");\nstopWords.add(\"try\");\nstopWords.add(\"trying\");\nstopWords.add(\"t's\");\nstopWords.add(\"twice\");\nstopWords.add(\"two\");\nstopWords.add(\"un\");\nstopWords.add(\"under\");\nstopWords.add(\"underneath\");\nstopWords.add(\"undoing\");\nstopWords.add(\"unfortunately\");\nstopWords.add(\"unless\");\nstopWords.add(\"unlike\");\nstopWords.add(\"unlikely\");\nstopWords.add(\"untill\");\nstopWords.add(\"unto\");\nstopWords.add(\"up\");\nstopWords.add(\"upon\");\nstopWords.add(\"upwards\");\nstopWords.add(\"us\");\nstopWords.add(\"use\");\nstopWords.add(\"used\");\nstopWords.add(\"useful\");\nstopWords.add(\"uses\");\nstopWords.add(\"using\");\nstopWords.add(\"usually\");\nstopWords.add(\"v\");\nstopWords.add(\"value\");\nstopWords.add(\"various\");\nstopWords.add(\"versus\");\nstopWords.add(\"very\");\nstopWords.add(\"via\");\nstopWords.add(\"viz\");\nstopWords.add(\"vs\");\nstopWords.add(\"want\");\nstopWords.add(\"wants\");\nstopWords.add(\"was\");\nstopWords.add(\"wasn't\");\nstopWords.add(\"way\");\nstopWords.add(\"we\");\nstopWords.add(\"we'd\");\nstopWords.add(\"welcome\");\nstopWords.add(\"well\");\nstopWords.add(\"we'll\");\nstopWords.add(\"went\");\nstopWords.add(\"were\");\nstopWords.add(\"we're\");\nstopWords.add(\"weren't\");\nstopWords.add(\"we've\");\nstopWords.add(\"what\");\nstopWords.add(\"whatever\");\nstopWords.add(\"what'll\");\nstopWords.add(\"what's\");\nstopWords.add(\"what've\");\nstopWords.add(\"when\");\nstopWords.add(\"whence\");\nstopWords.add(\"whenever\");\nstopWords.add(\"where\");\nstopWords.add(\"whereafter\");\nstopWords.add(\"whereas\");\nstopWords.add(\"whereby\");\nstopWords.add(\"wherein\");\nstopWords.add(\"where's\");\nstopWords.add(\"whereupon\");\nstopWords.add(\"whereever\");\nstopWords.add(\"whether\");\nstopWords.add(\"which\");\nstopWords.add(\"whichever\");\nstopWords.add(\"while\");\nstopWords.add(\"whilst\");\nstopWords.add(\"whither\");\nstopWords.add(\"who\");\nstopWords.add(\"who'd\");\nstopWords.add(\"whoever\");\nstopWords.add(\"whole\");\nstopWords.add(\"who'll\");\nstopWords.add(\"whom\");\nstopWords.add(\"whomever\");\nstopWords.add(\"who's\");\nstopWords.add(\"whose\");\nstopWords.add(\"why\");\nstopWords.add(\"will\");\nstopWords.add(\"willing\");\nstopWords.add(\"wish\");\nstopWords.add(\"with\");\nstopWords.add(\"within\");\nstopWords.add(\"without\");\nstopWords.add(\"wonder\");\nstopWords.add(\"won't\");\nstopWords.add(\"would\");\nstopWords.add(\"wouldn't\");\nstopWords.add(\"yes\");\nstopWords.add(\"yet\");\nstopWords.add(\"you\");\nstopWords.add(\"you'd\");\nstopWords.add(\"you'll\");\nstopWords.add(\"your\");\nstopWords.add(\"you're\");\nstopWords.add(\"yours\");\nstopWords.add(\"yourself\");\nstopWords.add(\"you've\");\nstopWords.add(\"zero\");\n\n \n \n }", "@Test\n public void tweakingEnglishStopwordsAndStemming() throws IOException {\n\n LanguageComponents english = LanguageComponents.load(\"English\");\n\n // Pass-through of all suppliers to English defaults.\n LinkedHashMap<Class<?>, Supplier<?>> componentSuppliers = new LinkedHashMap<>();\n for (Class<?> clazz : english.components()) {\n componentSuppliers.put(clazz, () -> english.get(clazz));\n }\n\n // Now override the suppliers of Stemmer and LexicalData interfaces. These suppliers should be\n // thread-safe, but the instances of corresponding components will not be reused across threads.\n\n // Override the Stemmer supplier.\n componentSuppliers.put(\n Stemmer.class,\n (Supplier<Stemmer>) () -> (word) -> word.toString().toLowerCase(Locale.ROOT));\n\n // Override the default lexical data.\n LexicalData lexicalData =\n new LexicalData() {\n Set<String> ignored = new HashSet<>(Arrays.asList(\"from\", \"what\"));\n\n @Override\n public boolean ignoreLabel(CharSequence labelCandidate) {\n // Ignore any label that has a substring 'data' in it; example.\n return labelCandidate.toString().toLowerCase(Locale.ROOT).contains(\"data\");\n }\n\n @Override\n public boolean ignoreWord(CharSequence word) {\n return word.length() <= 3 || ignored.contains(word.toString());\n }\n };\n componentSuppliers.put(LexicalData.class, () -> lexicalData);\n\n // The custom set of language components can be reused for multiple clustering requests.\n LanguageComponents customLanguage =\n new LanguageComponents(\"English (customized)\", componentSuppliers);\n\n LingoClusteringAlgorithm algorithm = new LingoClusteringAlgorithm();\n algorithm.desiredClusterCount.set(10);\n List<Cluster<Document>> clusters =\n algorithm.cluster(ExamplesData.documentStream(), customLanguage);\n System.out.println(\"Clusters:\");\n ExamplesCommon.printClusters(clusters);\n }", "public static void main(String[] args) {\n\t\n\tString str=\"Hello Deannochka, How are you? How have you been?\";\n\tSystem.out.println(str.replace(\" y\", \" th\"));\n\tSystem.out.println(str.replace(\"Hello\", \"Hey\"));\n//\tSystem.out.println(str.replaceAll(regex, replacement));\n\t\n}", "void setWord(Word word);", "public void replaceCurrentInterpolationTerm(String replacement) {\n\t\tMessageInterpolationToken token = new MessageInterpolationToken( replacement );\n\t\ttoken.terminate();\n\t\ttokenList.set( currentPosition - 1, token );\n\t}", "public static void main(String[] args) {\n\t\tif (args.length != 3) {\n\t\t\tSystem.out.println(\"Usage: java PE2031_ReplaceWords dirName oldWord newWord\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tFile file = new File(args[0]);\n\t\tString oldWord = args[1];\n\t\tString newWord = args[2];\n\n\t\tfindFile(file, oldWord, newWord);\n\t}", "public void replaceAll(String oldWord, String newWord) {\n\t\tfor (int i = 0; i < wordList.size(); i++) {\n\t\t\tif (wordList.get(i).equals(oldWord)) {\n\t\t\t\twordList.set(i, newWord);\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\t// TODO Add your code here\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void design(Object o, boolean overwrite) {\n\t\t/*if (o instanceof Word) {\n\t\t\tWord word = (Word) o;\n\t\t\tif (!markedElements.contains(word)) {\n\t\t\t\tmarkedElements.add(word);\n\t\t\t\tint start = word.getStartPosition();\n\t\t\t\tint end = word.getEndPosition();\n\t\t\t\t\n\t\t\t\tString temp = \"\";\n\t\t\t\ttry {\n\t\t\t\t\ttemp = doc.getText(0, end);\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tint len = temp.split(\"\\n\\n\").length - 1;\n\t\t\t\tSystem.out.println(len);\n\t\t\t\t\n\t\t\t\tdoc.setCharacterAttributes(start - 1 , word.getContent().length() +1 , MARKEDSTYLE,\n\t\t\t\t\t\toverwrite);\n\t\t\t} else\n\t\t\t\treset(word);\n\t\t} else if (o instanceof ConstitutiveWord) {\n\t\t\tConstitutiveWord cword = (ConstitutiveWord) o;\n\t\t\tif (!markedElements.contains(cword.getWord())\n\t\t\t\t\t&& !markedElements.contains(cword)) {\n\t\t\t\tmarkedElements.add(cword);\n\t\t\t\tint start = cword.getStartPosition();\n\t\t\t\tint end = cword.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, MARKEDSTYLE,\n\t\t\t\t\t\toverwrite);\n\t\t\t} else\n\t\t\t\treset(cword);\n\t\t} else if (o instanceof FunctionWord) {\n\t\t\tFunctionWord fword = (FunctionWord) o;\n\t\t\tif (!markedElements.contains(fword.getWord())\n\t\t\t\t\t&& !markedElements.contains(fword)) {\n\t\t\t\tmarkedElements.add(fword);\n\t\t\t\tint start = fword.getStartPosition();\n\t\t\t\tint end = fword.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, MARKEDSTYLE,\n\t\t\t\t\t\toverwrite);\n\t\t\t} else\n\t\t\t\treset(fword);\n\t\t} else if (o instanceof MeaningUnit) {\n\t\t\ttry {\n\t\t\t\tMeaningUnit mu = (MeaningUnit) o;\n\t\t\t\tif (mu.getFunctionWord() != null) {\n\t\t\t\t\tFunctionWord fw = mu.getFunctionWord();\n\t\t\t\t\tif (!markedElements.contains(fw.getWord())) {\n\t\t\t\t\t\tmarkedElements.add(fw);\n\t\t\t\t\t\tint start = fw.getStartPosition();\n\t\t\t\t\t\tint end = fw.getEndPosition();\n\t\t\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1,\n\t\t\t\t\t\t\t\tMARKEDSTYLE, overwrite);\n\t\t\t\t\t} else\n\t\t\t\t\t\treset(fw);\n\t\t\t\t}\n\t\t\t\tConstitutiveWord cw = mu.getConstitutiveWord();\n\t\t\t\tif (!markedElements.contains(cw.getWord())) {\n\t\t\t\t\tmarkedElements.add(cw);\n\t\t\t\t\tint start = cw.getStartPosition();\n\t\t\t\t\tint end = cw.getEndPosition();\n\t\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1,\n\t\t\t\t\t\t\tMARKEDSTYLE, overwrite);\n\t\t\t\t} else\n\t\t\t\t\treset(cw);\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\t// e.printStackTrace();\n\t\t\t}\n\t\t} else if (o instanceof IllocutionUnit) {\n\t\t\tIllocutionUnit iu = (IllocutionUnit) o;\n\t\t\tif (!markedElements.contains(iu)) {\n\t\t\t\tmarkedElements.add(iu);\n\t\t\t\tfor (int i = 0; i < iu.getTokens().size(); i++) {\n\t\t\t\t\tToken token = (Token) iu.getTokens().get(i);\n\t\t\t\t\tint start = token.getStartPosition();\n\t\t\t\t\tint end = token.getEndPosition();\n\t\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1,\n\t\t\t\t\t\t\tMARKEDSTYLE, overwrite);\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\treset(iu);\n\t\t}*/\n\t}", "public static <T extends Object> void applySubstitutionToWeights(Map<String, HashMap<T, Double>> weightMap, PatriciaTrie<HashMap<String, Double>> substitutionMap) {\n\t\tHashMap<String, HashMap<T, Double>> mapChanges = new HashMap<>();\r\n\t\t\r\n\t\tfor(Entry<String, HashMap<T, Double>> entry : weightMap.entrySet()) {\r\n\t\t\tString word = entry.getKey();\r\n\t\t\tfor(int i = 0; i < word.length(); i++) {\r\n\t\t\t\t// Search for entries that apply to this sentence (use first letter in prefix map to speed up the search)\r\n\t\t\t\tMap<String, HashMap<String, Double>> potentialSubstitutionMap = substitutionMap.prefixMap(word.substring(i, i+1));\r\n\t\t\t\tfor(Entry<String, HashMap<String, Double>> subEntry : potentialSubstitutionMap.entrySet() ) {\r\n\t\t\t\t\tString from = subEntry.getKey();\r\n\t\t\t\t\tif(word.length() - i >= from.length()) {\r\n\t\t\t\t\t\tif(word.substring(i, i+from.length()).equals(from)) {\r\n\t\t\t\t\t\t\t// We have a confirmed substitution\r\n\t\t\t\t\t\t\tfor(Entry<String, Double> substitution : subEntry.getValue().entrySet()) {\r\n\t\t\t\t\t\t\t\tString newWord = word.substring(0, i) + substitution.getKey() + word.substring(i+from.length());\r\n\t\t\t\t\t\t\t\tmapChanges.put(newWord, returnScaledMap(weightMap.get(word), substitution.getValue()));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge substitutions\r\n\t\tfor(Entry<String, HashMap<T, Double>> entry : mapChanges.entrySet()) {\r\n\t\t\tString word = entry.getKey();\r\n\t\t\tHashMap<T, Double> map = entry.getValue();\r\n\t\t\t// If the weight map didn't already contain the modified word, add the word to it\r\n\t\t\tif(!weightMap.containsKey(word)) {\r\n\t\t\t\tweightMap.put(word, map);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tHashMap<T, Double> currentMap = weightMap.get(word);\r\n\t\t\t\tfor(Entry<T, Double> weightEntry : map.entrySet()) {\r\n\t\t\t\t\tT key = weightEntry.getKey();\r\n\t\t\t\t\tif(currentMap.containsKey(key)) {\r\n\t\t\t\t\t\t// Add the old weight and new weight together if already exists\r\n\t\t\t\t\t\tcurrentMap.put(key, currentMap.get(key) + weightEntry.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tcurrentMap.put(key, weightEntry.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}", "public Word (String word){\n this.word = word;\n count = 0;\n }", "WordConstant createWordConstant();", "private Set<String> replacementHelper(String word) {\n\t\tSet<String> replacementWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\treplacementWords.add(word.substring(0, i) + letter + word.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn replacementWords;\n\t}", "public void replace (String from, String to) {\n boolean found = (from.length() == 0);\n\n // Go through tags, checking individual words\n /*\n int e = 0;\n int s = indexOfNextWordStart (tags, e);\n while (s < tags.length() && (! found)) {\n e = indexOfNextSeparator (tags, s, true, true);\n if (from.equalsIgnoreCase (tags.substring (s, e))) {\n found = true;\n removeTag (s, e);\n }\n }\n */\n int e = 0;\n int s = indexOfNextWordStart (tags, e, slashToSeparate);\n\n // Go through tags, looking for complete tags\n while (s < tags.length() && (! found)) {\n e = indexOfNextSeparator (tags, s, false, true, slashToSeparate);\n if (from.equalsIgnoreCase (tags.substring (s, e))) {\n found = true;\n removeTag (s, e);\n } else {\n s = indexOfNextWordStart (tags, e, slashToSeparate);\n }\n }\n if (found && to.length() > 0) {\n merge (to);\n }\n }", "public Builder setWord(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n word_ = value;\n onChanged();\n return this;\n }", "private void replace( int ix, int len, short code, boolean deleted[] )\n {\n text[ix] = code;\n \n Arrays.fill( deleted, ix+1, ix+len, true );\n }", "Builder addKeywords(Text value);", "SearchResult replace(SearchResult result, String replacement);", "public ExtendedDocumentEvent(ITextDocument doc, int offset, int length, String text, String replacedText) {\r\n\t\tsuper(doc,offset,length,text);\r\n\t\tthis.replacedText = replacedText;\r\n\t}", "public static void replaceAll1(){\n System.out.println(\">>>>>>>>>>>>\");\n String class0 = \"this is an example\";\n String ret0 = class0.replaceAll(\"are\", \"ARE\");\n assert(ret0.equals(\"this is an example\"));\n System.out.println(ret0);\n }", "public static void main(String[] args) { String s = \"catsanddog\";\n// List<String> wordDict = new ArrayList<>(Arrays.asList(\"cat\", \"cats\", \"and\", \"sand\", \"dog\"));\n//\n String s = \"pineapplepenappl\";\n List<String> wordDict = new ArrayList<>(Arrays.asList(\"apple\", \"pen\", \"applepen\", \"pine\", \"pineapple\"));\n\n WordBreak140 tmp = new WordBreak140();\n tmp.wordBreak(s, wordDict);\n }", "public interface IDocumentVectorizer extends IComponent {\n \n public IRealVector vectorize(String text) throws Exception;\n public void setVectors(IWordToVectorMap wvmap);\n \n}", "private void populateDictionaryBySynonyms() {\n\n Enumeration e = dictionaryTerms.keys();\n while (e.hasMoreElements()) {\n String word = (String) e.nextElement();\n String tag = dictionaryTerms.get(word);\n\n ArrayList<String> synonyms = PyDictionary.findSynonyms(word);\n\n for (int i = 0; i < synonyms.size(); i++) {\n if (!dictionaryTerms.containsKey(synonyms.get(i))) {\n dictionaryTerms.put(synonyms.get(i), tag);\n }\n }\n }\n }", "private StopWords() {\r\n\t\tPath source = Paths.get(\"./dat/zaustavne_rijeci.txt\");\r\n\t\ttry {\r\n\t\t\tbody = new String(Files.readAllBytes(source),\r\n\t\t\t\t\tStandardCharsets.UTF_8);\r\n\t\t} catch (IOException ignorable) {\r\n\t\t}\r\n\t\twords = new LinkedHashSet<>();\r\n\t\tfillSet();\r\n\t}", "public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod) {\n/* 165 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public DocumentWordPosition() {}", "private void makeReplacementText() throws IOException {\n valueBuf.clear();\n Token t = new Token();\n int start = currentTokenStart + 1;\n final int end = bufStart - 1;\n try {\n for (;;) {\n\tint tok;\n\tint nextStart;\n\ttry {\n\t tok = Tokenizer.tokenizeEntityValue(buf, start, end, t);\n\t nextStart = t.getTokenEnd();\n\t}\n\tcatch (ExtensibleTokenException e) {\n\t tok = e.getTokenType();\n\t nextStart = end;\n\t}\n\thandleEntityValueToken(valueBuf, tok, start, nextStart, t);\n\tstart = nextStart;\n }\n }\n catch (PartialTokenException e) {\n currentTokenStart = end;\n fatal(\"NOT_WELL_FORMED\");\n }\n catch (InvalidTokenException e) {\n currentTokenStart = e.getOffset();\n reportInvalidToken(e);\n }\n catch (EmptyTokenException e) { }\n }", "public String replace(String input);", "public CaseInsensitiveDictionary() {\n words = new HashSet<>();\n }", "public Builder clearWord() {\n bitField0_ = (bitField0_ & ~0x00000004);\n word_ = getDefaultInstance().getWord();\n onChanged();\n return this;\n }", "@Override\n\tpublic String strreplace(String str, int start, int end, String with) {\n\t\treturn null;\n\t}", "public WordDictionary() {\n\n }", "public WordDictionary() {\n\n }", "public WordDictionary() {\n\n }", "private void doTextualTokenReplacement(final Issue issue, final IssueResolutionAcceptor acceptor, final String label, final String descn, final String replacement) {\n acceptor.accept(issue, label, descn, NO_IMAGE, new IModification() {\n public void apply(final IModificationContext context) throws BadLocationException {\n IXtextDocument xtextDocument = context.getXtextDocument();\n xtextDocument.replace(issue.getOffset(), issue.getLength() + 1, replacement);\n }\n });\n }", "public WordDictionary() {\n }", "public static String replaceEach(String text, String[] searchList,\n String[] replacementList, boolean repeat, int timeToLive) {\n\n if (text == null || text.length() == 0 || searchList == null\n || searchList.length == 0 || replacementList == null\n || replacementList.length == 0) {\n return text;\n }\n\n // if recursing, this shouldnt be less than 0\n if (timeToLive < 0) {\n throw new IllegalStateException(\"TimeToLive of \" + timeToLive\n + \" is less than 0: \" + text);\n }\n\n int searchLength = searchList.length;\n int replacementLength = replacementList.length;\n\n // make sure lengths are ok, these need to be equal\n if (searchLength != replacementLength) {\n throw new IllegalArgumentException(\n \"Search and Replace array lengths don't match: \" + searchLength\n + \" vs \" + replacementLength);\n }\n\n // keep track of which still have matches\n boolean[] noMoreMatchesForReplIndex = new boolean[searchLength];\n\n // index on index that the match was found\n int textIndex = -1;\n int replaceIndex = -1;\n int tempIndex = -1;\n\n // index of replace array that will replace the search string found\n // NOTE: logic duplicated below START\n for (int i = 0; i < searchLength; i++) {\n if (noMoreMatchesForReplIndex[i] || searchList[i] == null\n || searchList[i].length() == 0 || replacementList[i] == null) {\n continue;\n }\n tempIndex = text.indexOf(searchList[i]);\n\n // see if we need to keep searching for this\n if (tempIndex == -1) {\n noMoreMatchesForReplIndex[i] = true;\n } else {\n if (textIndex == -1 || tempIndex < textIndex) {\n textIndex = tempIndex;\n replaceIndex = i;\n }\n }\n }\n // NOTE: logic mostly below END\n\n // no search strings found, we are done\n if (textIndex == -1) {\n return text;\n }\n\n int start = 0;\n\n // get a good guess on the size of the result buffer so it doesnt have to\n // double if it goes over a bit\n int increase = 0;\n\n // count the replacement text elements that are larger than their\n // corresponding text being replaced\n for (int i = 0; i < searchList.length; i++) {\n if (searchList[i] == null || replacementList[i] == null) {\n continue;\n }\n int greater = replacementList[i].length() - searchList[i].length();\n if (greater > 0) {\n increase += 3 * greater; // assume 3 matches\n }\n }\n // have upper-bound at 20% increase, then let Java take over\n increase = Math.min(increase, text.length() / 5);\n\n StringBuffer buf = new StringBuffer(text.length() + increase);\n\n while (textIndex != -1) {\n\n for (int i = start; i < textIndex; i++) {\n buf.append(text.charAt(i));\n }\n buf.append(replacementList[replaceIndex]);\n\n start = textIndex + searchList[replaceIndex].length();\n\n textIndex = -1;\n replaceIndex = -1;\n tempIndex = -1;\n // find the next earliest match\n // NOTE: logic mostly duplicated above START\n for (int i = 0; i < searchLength; i++) {\n if (noMoreMatchesForReplIndex[i] || searchList[i] == null\n || searchList[i].length() == 0 || replacementList[i] == null) {\n continue;\n }\n tempIndex = text.indexOf(searchList[i], start);\n\n // see if we need to keep searching for this\n if (tempIndex == -1) {\n noMoreMatchesForReplIndex[i] = true;\n } else {\n if (textIndex == -1 || tempIndex < textIndex) {\n textIndex = tempIndex;\n replaceIndex = i;\n }\n }\n }\n // NOTE: logic duplicated above END\n\n }\n int textLength = text.length();\n for (int i = start; i < textLength; i++) {\n buf.append(text.charAt(i));\n }\n String result = buf.toString();\n if (!repeat) {\n return result;\n }\n\n return replaceEach(result, searchList, replacementList, repeat,\n timeToLive - 1);\n }", "public Builder setWordBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n word_ = value;\n onChanged();\n return this;\n }", "private void addSubstitution(Map<String, String> substitutionMap, String find, String replace)\n {\n if (find != null && replace != null)\n {\n substitutionMap.put(find.toUpperCase(), replace);\n } \n }", "public void configureWord() {\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtFile = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtReplace = new javax.swing.JTextField();\n btReplace = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setText(\"Find what\");\n\n jLabel2.setText(\"Replace with\");\n\n btReplace.setText(\"Replace\");\n btReplace.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btReplaceActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(68, 68, 68)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtReplace))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(31, 31, 31)\n .addComponent(txtFile, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(118, 118, 118)\n .addComponent(btReplace)))\n .addContainerGap(66, Short.MAX_VALUE))\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jLabel1, jLabel2});\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {txtFile, txtReplace});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(56, 56, 56)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtReplace, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addComponent(btReplace)\n .addGap(20, 20, 20))\n );\n\n pack();\n }", "void addWordToDoc(int doc,VocabWord word);", "public static String replaceWord(String word, String[][] wordMap) {\n\t\tif( word == null )\n\t\t\treturn null;\n\t\telse if( wordMap == null || wordMap.length == 0 )\n\t\t\treturn word;\n\t\telse\n\t\t{\n\t\t\tfor( int i = 0 ; i < wordMap.length ; i++ )\n\t\t\t\tif( word.equals( wordMap[i][0] ) )\n\t\t\t\t\treturn wordMap[i][1];\n\t\t\treturn word;\n\t\t}\n }", "private Runnable createRunnable(final int start, final int end, final String text, final Document document){\n return new Runnable() {\n @Override\n public void run() {\n document.replaceString(start, end, text);\n }\n };\n\n }", "public static void main(String[] args) {\n StringBuffer sb = new StringBuffer(\"Hello World\");\r\n System.out.println(\"Original Text : \" + sb);\r\n\r\n /*\r\n To replace the contents of Java StringBuffer use\r\n StringBuffer replace(int start, int end, String str) method.\r\n It replaces the content from StringBuffer string from start index\r\n to end - 1 index by the content of the String str.\r\n */\r\n \r\n sb.replace(0,5,\"Hi\");\r\n \r\n System.out.println(\"Replaced Text : \" + sb);\r\n\r\n\r\n\r\n}", "public void replaceAll(MConstText srcText) {\r\n replace(0, length(), srcText, 0, srcText.length());\r\n }", "public void replace(int start, int limit, MConstText text) {\r\n replace(start, limit, text, 0, text.length());\r\n }", "private static void replace(\r\n \t\tStringBuffer orig,\r\n \t\tString o,\r\n \t\tString n,\r\n \t\tboolean all) {\r\n \t\tif (orig == null || o == null || o.length() == 0 || n == null)\r\n \t\t\tthrow new IllegalArgumentException(\"Null or zero-length String\");\r\n \r\n \t\tint i = 0;\r\n \r\n \t\twhile (i + o.length() <= orig.length()) {\r\n \t\t\tif (orig.substring(i, i + o.length()).equals(o)) {\r\n \t\t\t\torig.replace(i, i + o.length(), n);\r\n \t\t\t\tif (!all)\r\n \t\t\t\t\tbreak;\r\n \t\t\t\telse\r\n \t\t\t\t\ti += n.length();\r\n \t\t\t} else\r\n \t\t\t\ti++;\r\n \t\t}\r\n \t}", "public void replaceFragment(int wordPosition){\n // access the fragment manager and begin transaction\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n\n // create word fragment and get the word from the recycler view fragment\n // word position is the list position of the word in the list of words\n WordFragment wordFragment = new WordFragment();\n Bundle args = new Bundle();\n args.putInt(WordFragment.WORD_INDEX, wordPosition);\n wordFragment.setArguments(args);\n // replace the word list with the word fragment\n ft.replace(R.id.fragment_container_top, wordFragment);\n ft.addToBackStack(null);\n\n ft.commit();\n }", "public PorterStopWords()\r\n\t{\r\n\t\tstopWordsSet.addAll( porterStopWordsSet );\r\n\t}", "public abstract void substitutedSentences(long ms, int n);", "public NormalSwear(String word) {\n this.word = word;\n }", "public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}", "public void repopulateWords()\r\n {\n blankSquares();\r\n\r\n //repopulate words\r\n ArrayList al = crossword.getWords();\r\n for (int i = 0; i < al.size(); i++)\r\n {\r\n Word w = (Word) al.get(i);\r\n ArrayList letters = w.getLetters();\r\n\r\n // Lay out the squares, letter by letter, setting the appropriate properties\r\n if (w.getWordDirection() == Word.ACROSS)\r\n {\r\n for (int j = 0; j < letters.size(); j++)\r\n {\r\n Square s = findSquare(w.getY(), w.getX() + j);\r\n if (s.getLetter() == \" \" || s.getLetter() == \"*\" ||\r\n s.getLetter() == \"\")\r\n {\r\n String let = (String) letters.get(j);\r\n if (let == \"*\")\r\n {\r\n let = \" \";\r\n }\r\n s.setLetter(let);\r\n }\r\n\r\n s.setBackground(Color.WHITE);\r\n s.setBorder(BorderFactory.createLineBorder(Color.BLACK,\r\n 1));\r\n\r\n if (s.isAnyWordSelected())\r\n {\r\n s.setBackground(Color.PINK);\r\n s.setResetColour(Color.PINK);\r\n }\r\n //place the clue number\r\n if (j == 0) //ie. first square of word\r\n {\r\n s.setClueNumber(w.getClueIndex());\r\n }\r\n if (s == selectedSquare)\r\n {\r\n s.setBackground(Color.RED);\r\n s.setResetColour(Color.RED);\r\n }\r\n\r\n }\r\n }\r\n else if (w.getWordDirection() == Word.DOWN)\r\n {\r\n\r\n for (int j = 0; j < letters.size(); j++)\r\n {\r\n Square s = findSquare(w.getY() + j, w.getX());\r\n if (s.getLetter() == \" \" || s.getLetter() == \"*\" ||\r\n s.getLetter() == \"\")\r\n {\r\n String let = (String) letters.get(j);\r\n\r\n if (let == \"*\")\r\n {\r\n let = \" \";\r\n }\r\n s.setLetter(let);\r\n }\r\n s.setBackground(Color.WHITE);\r\n s.setBorder(BorderFactory.createLineBorder(Color.BLACK,\r\n 1));\r\n\r\n if (s.isAnyWordSelected())\r\n {\r\n s.setBackground(Color.PINK);\r\n s.setResetColour(Color.PINK);\r\n }\r\n\r\n //place the clue number\r\n if (j == 0) //ie. first square of word\r\n {\r\n s.setClueNumber(w.getClueIndex());\r\n }\r\n if (s == selectedSquare)\r\n {\r\n s.setBackground(Color.RED);\r\n s.setResetColour(Color.RED);\r\n }\r\n }\r\n }\r\n }\r\n //dissociate any blank squares from legacy word relationships\r\n dissociateSquares();\r\n validate();\r\n }", "public StringWordTokenizer(WordFinder wf) {\n\t\tsuper(wf);\n\t}", "private void createDocWords() {\n\t\tArrayList<DocWords> docList=new ArrayList<>();\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\docWords.txt\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\" \");\n\t\t\t\tDocWords docWords=new DocWords();\n\t\t\t\tdocWords.setDocName(parts[0].replace(\".txt\", \"\"));\n\t\t\t\tdocWords.setCount(Float.parseFloat(parts[1]));\n\t\t\t\tdocList.add(docWords);\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertDocWords(docList);\n\t}", "public void addWord(Word word);", "@Override\n public Builder stopWords(@NonNull Collection<VocabWord> stopList) {\n super.stopWords(stopList);\n return this;\n }", "public String translate(String words) {\n String[] sentence = words.split(\" \");\n //go through each element\n for (int i = 0; i < sentence.length; i++) {\n //if the dictionary contains the word\n if (hm.containsKey(sentence[i])) {\n //change it out with the new translated one\n sentence[i] = hm.get(sentence[i]) + \" (\" + sentence[i] + \")\";\n }\n }\n\n //Build the sentence back together\n String text = \"\";\n\n for (int i = 0; i < sentence.length; i++) {\n text += sentence[i] + \" \";\n }\n\n return text;\n\n /*if(amITranslating) {\n return text;\n } else {\n return words;\n }*/\n\n\n }", "private void upgradeDictionary() throws IOException {\n File fileAnnotation = new File(filePathAnnSource);\n FileReader fr = new FileReader(fileAnnotation);\n BufferedReader br = new BufferedReader(fr);\n String line;\n\n if (fileAnnotation.exists()) {\n while ((line = br.readLine()) != null) {\n String[] annotations = line.split(\"[ \\t]\");\n String word = line.substring(line.lastIndexOf(\"\\t\") + 1);\n\n if (!nonDictionaryTerms.contains(word.toLowerCase())) {\n if (dictionaryTerms.containsKey(word.toLowerCase())) {\n if (!dictionaryTerms.get(word.toLowerCase()).equalsIgnoreCase(annotations[1])) {\n System.out.println(\"Conflict: word:: \" + word + \" Dictionary Tag: \" + dictionaryTerms.get(word.toLowerCase()) + \" New Tag: \" + annotations[1]);\n nonDictionaryTerms.add(word.toLowerCase());\n// removeLineFile(dictionaryTerms.get(word.toLowerCase())+\" \"+word.toLowerCase(),filePathDictionaryAuto);\n dictionaryTerms.remove(word.toLowerCase());\n writePrintStream(word, filePathNonDictionaryAuto);\n }\n } else {\n System.out.println(\"Updating Dictionary:: Word: \" + word + \"\\tTag: \" + annotations[1]);\n dictionaryTerms.put(word.toLowerCase(), annotations[1]);\n writePrintStream(annotations[1] + \" \" + word.toLowerCase(), filePathDictionaryAuto);\n }\n }\n\n// if (dictionaryTerms.containsKey(word.toLowerCase())) {\n// if (!dictionaryTerms.get(word.toLowerCase()).equalsIgnoreCase(annotations[1])) {\n// System.out.println(\"Conflict: word: \" + word + \" Dictionary Tag: \" + dictionaryTerms.get(word.toLowerCase()) + \" New Tag: \" + annotations[1]);\n// nonDictionaryTerms.add(word.toLowerCase());\n//\n// }\n// } else {\n// dictionary.add(word.toLowerCase());\n// dictionaryTerms.put(word.toLowerCase(), annotations[1]);\n// System.out.println(\"Updating Dictionary: Word: \" + word + \"\\tTag: \" + annotations[1]);\n// }\n }\n }\n\n\n br.close();\n fr.close();\n }", "public WordDictionary() {\n \n \n }", "public void setWord(String newWord)\n\t{\n\t\tword = newWord;\n\t}" ]
[ "0.5757101", "0.5747235", "0.54810023", "0.5405783", "0.5385159", "0.537559", "0.535074", "0.5323547", "0.5249008", "0.51471", "0.514698", "0.511891", "0.5081926", "0.50342506", "0.5022895", "0.50019735", "0.49926865", "0.49804714", "0.49515676", "0.49359623", "0.49122775", "0.48936343", "0.48509267", "0.48406976", "0.48312265", "0.48097506", "0.4804411", "0.47997582", "0.4794182", "0.4773737", "0.47605878", "0.4737239", "0.47291094", "0.47047293", "0.46967638", "0.4693144", "0.46925154", "0.4682871", "0.46754256", "0.46687979", "0.46676454", "0.46642634", "0.46507522", "0.463163", "0.4626347", "0.46180248", "0.461382", "0.46065912", "0.45952475", "0.4581392", "0.45712993", "0.45706558", "0.45669892", "0.4556535", "0.45522967", "0.45513982", "0.45371994", "0.4525828", "0.4522547", "0.45177028", "0.45154142", "0.44950533", "0.44905636", "0.44869965", "0.44860524", "0.44851556", "0.44792727", "0.44750768", "0.44727197", "0.44721332", "0.44721332", "0.44721332", "0.4467275", "0.44638738", "0.44526184", "0.44525716", "0.4450219", "0.4442657", "0.44376147", "0.44340146", "0.4433331", "0.44310305", "0.44285533", "0.4426588", "0.44261596", "0.4425239", "0.4405334", "0.4403553", "0.4401848", "0.440027", "0.43948907", "0.43929678", "0.4391692", "0.43913916", "0.43913242", "0.4387307", "0.43831104", "0.437593", "0.4373627", "0.4367925" ]
0.8127624
0
The second method dp [i] [j] that the first i pieces of goods can fill the capacity of j backpack. In the case of the first case, the dp [i] [J] = dp [i1] [j A [j]], but this condition requires j A [j]> 0. Take two cases inside the larger value as dp [i] [j].+
public int backpack(int m , int []array){ if(m ==0 || array == null || array.length == 0){ return 0; } int n = array.length; int [][] fillpack = new int[n+1][m+1]; for( int i=0;i<=n;i++){ fillpack[i][0] = 1; // one way to not to selecct any item } for(int j=0;j<=n;j++){ fillpack[0][j] = 0; // with o items we can fill up } fillpack[0][0] = 1; for ( int i=1;i<=n;i++){ // all items for (int j=1;j<=m;j++) // all size of backpack if(array[i-1]<=j){ // if we can fill backup with i-1 elementts fillpack[i][j] = fillpack[i-1][j] | fillpack[i-1][j-array[i-1]]; } else{ fillpack[i][j] = fillpack[i-1][j]; } } for(int i=m;i>=0;i--){ if(fillpack[n][i] == 1){ // mmax amout we can fill return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }", "public static int zeroOneKnapsack(int[] weight, int[] value, int capacity) {\n\t\tint[][] dp = new int[weight.length + 1][capacity + 1];\n\n\t\tfor (int i = 0; i < weight.length + 1 ; i++) {\n\t\t\t for (int j = 0; j < capacity + 1; j++) {\n\t\t\t\t\n\t\t\t\t // base condition for memoization\n\t\t\t\t // first row and first column for 2d matrix is initialised to 0\n\t\t\t\t // profit = 0 when number of items = 0 or bag capacity = 0 \n\t\t\t\t if (i == 0 || j == 0) { \n\t\t\t\t\t dp[i][j] = 0;\n\t\t\t\t } \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is less than capacity of bag\n\t\t\t\t // value of i in 2d matrix corresponds to (i-1)th element in weight and value arrays\n\t\t\t\t // hence, weight(i-1) is compared with the corresponding matrix cell capacity(i.e.column)\n\t\t\t\t \n\t\t\t\t else if (weight[i-1] <= j){\n\t\t\t\t\t \n\t\t\t\t\t // possibility 1: when item having weight(i-1) is added to bag\n\t\t\t\t\t // item having weight(i-1) has value(i-1)\n\t\t\t\t\t // this value added to array value for (i-1)th row and (j-weight[i-1])th column\n\t\t\t\t\t // because :\n\t\t\t\t\t // 1) the total capacity reduced by weight(i-1) after deciding item inclusion\n\t\t\t\t\t // 2) total no.of elements reduced by 1 after deciding item inclusion\n\t\t\t\t\t \n\t\t\t\t\t int a = value[i-1] + dp[i-1][j-weight[i-1]];\n\t\t\t\t\t \n\t\t\t\t\t// possibility 1: when item having weight(i-1) is not added to bag\n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t int b = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t\t // max of a and b taken to find maximum profit value \n\t\t\t\t\t dp[i][j] = Math.max(a, b);\t \n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is more than capacity of bag\n\t\t\t\t // hence item having weight(i-1) is not added to bag\n\t\t\t\t else {\n\t\t\t\t\t \n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t dp[i][j] = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[weight.length][capacity];\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }", "private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint v = 1 + m[i - a];\n\t\t\t\tif (v < min) {\n\t\t\t\t\tmin = v;\n\t\t\t\t\tsel = a;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sel == -1)\n\t\t\t\tthrow new NullPointerException(\"sel != -1\");\n\t\t\tm[i] = min;\n\t\t\tk[i] = sel;\n\t\t}\n\t}", "public static int dynamic_p(int objects,int capacity){\r\n // Array to accommodate dynamic programming solutions\r\n int dp_array[][] = new int[objects+1][capacity+1];\r\n // filling the 2D array\r\n for(int i=0; i<= objects;i++){\r\n for(int j=0; j<= capacity;j++){\r\n if(i == 0)\r\n dp_array[i][j]=0; // base case(number of objects are zero)\r\n else if(j == 0)\r\n dp_array[i][j]=0; // base case(capacity is zero)\r\n else if(randvariables[i-1] <= j){ // checking if the wight of object is less than the current knapsack capacity\r\n int included = randvalues[i-1]+dp_array[i-1][j-randvariables[i-1]]; // object is included\r\n int not_included = dp_array[i-1][j]; // object is not included\r\n\r\n //taking the max of these two\r\n if(included > not_included)\r\n dp_array[i][j] = included;\r\n else\r\n dp_array[i][j]= not_included;\r\n }\r\n else // weight is more than capacity .. not including the object\r\n dp_array[i][j] = dp_array[i-1][j];\r\n }\r\n }\r\n\r\n //System.out.println(Arrays.deepToString(dp_array));\r\n int solution = dp_array[objects][capacity];\r\n boolean[] optimalset = solution_used(dp_array,objects,capacity);\r\n System.out.println(Arrays.toString(optimalset));\r\n dp_array = null;\r\n return solution; // return the final solution\r\n\r\n }", "private static Integer packDPRec(Integer capacity, List<Integer> weights, List<ItemDTO> items, Integer n, Integer[][] mem, List<Integer> optimalChoice) {\n // Base condition\n if (n == 0 || capacity <= 0)\n return 0;\n\n if (mem[n][capacity] != -1) {\n return mem[n][capacity];\n }\n\n if (weights.get(n - 1) > capacity) {\n // Store the value of function call\n // stack in table before return\n List<Integer> subOptimalChoice = new ArrayList<>();\n mem[n][capacity] = packDPRec(capacity, weights, items, n - 1, mem, subOptimalChoice);\n optimalChoice.addAll(subOptimalChoice);\n return mem[n][capacity];\n } else {\n // Return value of table after storing\n List<Integer> optimalChoiceIncluded = new ArrayList<>();\n List<Integer> optimalChoiceExcluded = new ArrayList<>();\n Integer valueIncluded = items.get(n - 1).getValue() + packDPRec(capacity - weights.get(n - 1), weights, items, n - 1, mem, optimalChoiceIncluded);\n Integer valueExcluded = packDPRec(capacity, weights, items, n - 1, mem, optimalChoiceExcluded);\n if (valueIncluded > valueExcluded) {\n optimalChoice.addAll(optimalChoiceIncluded);\n optimalChoice.add(items.get(n - 1).getId());\n mem[n][capacity] = valueIncluded;\n }else{\n optimalChoice.addAll(optimalChoiceExcluded);\n mem[n][capacity] = valueExcluded;\n }\n return mem[n][capacity];\n }\n }", "public static void main(String[] args) {\n\t\tint width=35;\n\t\tint length=31;\n\t\tlong[][] dp = new long[width+1][length+1];\n\t\tdp[0][0]=0;\n\t\tfor(int i=1;i<length+1;i++){\n\t\t\tif(badCheck(0,i,0,i-1)){\n\t\t\t\tdp[0][i]=0;\n\t\t\t\tfor(int k=i+1;k<length+1;k++){\n\t\t\t\t\tdp[0][k]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[0][i]=1;\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<width+1;i++){\n\t\t\tif(badCheck(i,0,i-1,0)){\n\t\t\t\tdp[i][0]=0;\n\t\t\t\tfor(int k=i+1;k<width+1;k++){\n\t\t\t\t\tdp[k][0]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[i][0]=1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=1;i<=width;i++){\n\t\t\tfor(int j=1;j<=length;j++){\n\t\t\t\tif(!badCheck(i-1,j,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i-1][j];\n\t\t\t\t}\n\t\t\t\tif(!badCheck(i,j-1,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i][j-1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(dp[6][6]);\n\t\t//System.out.println(dp[2][2]);\n\t\t//System.out.println(dp[1][1]);\n\t\tSystem.out.println(dp[35][31]);\n\t}", "static int zeroOneKnapsack(int []val,int [] wt,int W){\n// initialize\n int[][] dp = new int[val.length+1][W+1];\n\n int n = val.length;\n for (int i = 0;i<=n;i++){\n dp[i][0] = 0;\n }\n for (int j = 0;j<=W;j++){\n dp[0][j] = 0;\n }\n\n for (int i = 1;i<=n;i++){\n for(int j = 1;j<=W;j++){\n if (wt[i-1] <= j){\n dp[i][j] = Math.max(val[i-1] + dp[i-1][j - wt[i-1]], dp[i-1][j]);\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][W];\n }", "static int knapsackDP(int weights[],int values[],int noOFitems,int capacityOfKnapsack){\n int dp[][] = new int[noOFitems+1][capacityOfKnapsack+1];\n\n for(int i=1;i<noOFitems+1;i++){\n for(int w=1;w<capacityOfKnapsack+1;w++){\n\n int inc = 0;\t\n if(weights[i] <= w){\n inc = values[i] + dp[i-1][w-weights[i]];\n }\n int exc = dp[i-1][w];\n dp[i][w] = Math.max(inc,exc);\n\n }\n }\n \n for (int i = 0; i < noOFitems+1; i++) {\n\t\t\tfor (int j = 0; j < capacityOfKnapsack+1; j++) {\n\t\t\t\tSystem.out.print(dp[i][j]+ \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n \n return dp[noOFitems][capacityOfKnapsack];\n\t}", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint t = s.nextInt();\n\t\twhile(t-->0)\n\t\t{\n\t\t\tint n = s.nextInt();\n\t\t\tint k = s.nextInt();\n\t\t\tint[] arr = new int[n];\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\tarr[i] = s.nextInt();\n\t\t\tArrays.sort(arr);\n\t\t\tint[][] dp = new int[k+1][n+1];\n\t\t\tfor(int i=0;i<=k;i++)\n\t\t\t\tfor(int j=0;j<=n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0)\n\t\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\telse if(j==0)\n\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\telse if(i-arr[j-1]>=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint val1 = dp[i-arr[j-1]][j-1];\n\t\t\t\t\t\tint val2 = dp[i][j-1];\n\t\t\t\t\t\tif(val1!=-1 && val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = Math.min(1+val1,val2);\n\t\t\t\t\t\telse if(val1!=-1)\n\t\t\t\t\t\t\tdp[i][j] = 1+val1;\n\t\t\t\t\t\telse if(val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = val2;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dp[i][j-1]==-1)\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(dp[k][n]!=-1)\n\t\t\t\tSystem.out.println(dp[k][n]);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"impossible\");\n\t\t}\n\t}", "static int dynamicProgramming(int problem) {\r\n\t\tint items = problems.get(problem).size();\r\n\t\tint cap = capacities.get(problem);\r\n\r\n\t\tint x = 0;\r\n\t\tfor(int i = 1; i < items + 1; i++, x++) {\r\n\t\t\tweights[i] = problems.get(problem).get(x).weight;\r\n\t\t\tprofits[i] = problems.get(problem).get(x).profit;\r\n\t\t}\r\n\r\n\t\tint[][] P = new int[items + 1][cap + 1];\r\n\r\n\t\tfor(int i = 0; i < items + 1; i++) {\r\n\t\t\tfor(int j = 0; j < cap + 1; j++) {\r\n\t\t\t\tP[i][j] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int c = 0; c < cap + 1; c++) {\r\n\t\t\tP[0][c] = 0;\r\n\t\t}\r\n\r\n\t\tfor(int i = 1; i < items + 1; i++) {\r\n\t\t\tP[i][0] = 0;\r\n\t\t\tfor(int c = 1; c < cap + 1; c++) {\r\n\t\t\t\tif(i >= 2 && c >= 2) {\r\n\t\t\t\t\tP[i-2][c-2] = -1;\r\n\t\t\t\t}\r\n\t\t\t\tif(weights[i] <= c && P[i-1][c-weights[i]] + profits[i] > P[i-1][c]) {\r\n\t\t\t\t\tP[i][c] = P[i-1][c-weights[i]] + profits[i];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tP[i][c] = P[i-1][c];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn P[items][cap];\r\n\t}", "public static int MatrixChainMultDP(){\n int dp[][] = new int[n][n];\n\n // cost is zero when multiplying one matrix. \n for(int i=0;i<n;i++)\n dp[i][i] = 0;\n\n for(int L = 2;L < n;L++){\n for(int i=1;i<n;i++){\n int j = i + L - 1;\n if(j >= n)\n continue;\n dp[i][j] = Integer.MAX_VALUE;\n for(int k = i;k<j;k++){\n dp[i][j] = Math.min(dp[i][j] , dp[i][k] + dp[k+1][j] + (ar[i-1] * ar[k] * ar[j]));\n }\n }\n }\n return dp[1][n-1];\n\n }", "private static long calculateBestPickWithoutRepetition(int weight, Item[] items, long[][] DP) {\n\n for(int w = 1; w <= weight; w++) {\n for(int i = 1; i <= items.length; i++) {\n DP[w][i] = DP[w][i-1];\n Item item = items[i-1];\n\n if (item.getWeight() <= w) {\n DP[w][i] = Math.max(DP[w][i], DP[w - item.getWeight() ][i-1] + item.getValue());\n }\n }\n }\n\n return DP[DP.length -1][DP[0].length - 1];\n }", "public static void knapsackDynamicProgramming(objects[] items, int capacity, int n) \r\n { \r\n\t\t//use bubble sort to sort item by their weight\t\t\t\t\r\n\t\tfor (int i = 0; i < n-1; i++) \t\t\t\t\r\n\t\t{ \t\t \r\n\t\t\tfor (int j = 0; j < (n-i-1); j++) \t\t \r\n\t\t\t{\t\t \r\n\t\t\t\tif (items[j].weight < items[j+1].weight) \t\t \r\n\t\t\t\t{ \t\t \t\r\n\t\t\t\t\tobjects temp = items[j]; \t\t \r\n\t\t\t\t\titems[j] = items[j+1]; \t\t \r\n\t\t\t\t\titems[j+1] = temp; \t\t \t\t\t\t\t\r\n\t\t\t\t}\t\t \r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n \tif(n <= 0 || capacity <= 0)\r\n \t{\r\n \t\tSystem.out.print(\"Error capacity and object numbers can't be 0\");\r\n \t}\r\n \r\n \tint matrixTable[][] = new int[n+1][capacity+1]; \r\n \r\n \tfor (int i = 0; i <= n; i++) \r\n \t{ \r\n \t\tfor (int j = 0; j <= capacity; j++) \r\n \t\t{ \r\n \t\t\t//Preset row 0 value and column value to 0\r\n \t\t\tif (i==0 || j==0) \r\n \t {\r\n \t\t\t\tmatrixTable[i][j] = 0; \r\n \t }\r\n \r\n \t\t\t//If current row number is greater than current weight number\r\n \t\t\telse if (items[i-1].weight <= j) \r\n \t\t\t{\r\n \t\t\t\t//Compare the top value with top value plus value(use weight as the value to go left)result\r\n \t\t\t\t//and use the greatest value for the current one.\r\n \t\t\t\tmatrixTable[i][j] = Math.max(items[i-1].profit + matrixTable[i-1][j-items[i-1].weight], matrixTable[i-1][j]); \r\n \t\t\t}\r\n \t\t\t//If row number is less than current weight number just use the top value\r\n \t\t\telse \r\n \t\t\t{ \t \r\n \t\t\t\tmatrixTable[i][j] = matrixTable[i-1][j];\r\n \t\t\t}\r\n \t\t} \t\r\n \t} \r\n \t\r\n\t\tint totalProfit = matrixTable[n][capacity]; \t\t\r\n\t\tint temp = matrixTable[n][capacity];\r\n\t\tint [] itemInKnapsack = new int [n];\r\n\t\t\r\n\t\t//solving which item is in the knapsack\r\n for (int i = n; i > 0 && temp > 0; i--) { \r\n \r\n \r\n \tif (temp == matrixTable[i - 1][capacity]) \r\n \t{\r\n continue;\r\n \t}\r\n \t//if the top value is different than it is include in the knapsack\r\n else \r\n { \r\n itemInKnapsack[i-1] = items[i-1].index; //Save item number\r\n temp = temp - items[i - 1].profit; \r\n capacity = capacity - items[i - 1].weight; \r\n } \r\n } \r\n \r\n printResult(itemInKnapsack, totalProfit, 2); //Call print result\r\n }", "public int calculateMinimumHP(ArrayList<ArrayList<Integer>> grid) {\n\t\t\t\t int m =grid.size(), n = grid.get(0).size();\n\t\t\t\t int[][][] dp = new int[m+1][n+1][2];\n\t\t\t\t \n\t\t\t\t dp[0][0][0] = 0;\n\t\t\t\t dp[0][0][1] = 0;\n\t\t\t\t dp[0][1][0] = 1; // start with life\n\t\t\t\t dp[0][1][1] = 0; // balance life\n\t\t\t\t dp[1][0][0] = 1;\n\t\t\t\t dp[1][0][1] = 0;\n\t\t\t\t for(int i=2;i<dp[0].length;i++){\n\t\t\t\t\t dp[0][i][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[0][i][1] = 0;\n\t\t\t\t }\n\t\t\t\t for(int i=2;i<dp.length;i++){\n\t\t\t\t\t dp[i][0][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[i][0][1] = 0;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for(int i=1;i<dp.length;i++){\n\t\t\t\t\t for(int j=1;j<dp[0].length;j++){\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(grid.get(i-1).get(j-1) < 0){\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0] - grid.get(i-1).get(j-1) - fromCell[1];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+ grid.get(i-1).get(j-1)>0?fromCell[1]+ grid.get(i-1).get(j-1):0;\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+grid.get(i-1).get(j-1);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return dp[m][n][0];\n\t\t\t\t \n\t\t\t }", "static long dp(int a, int b, int c, int d, int e, int k) {\n if(f[a][b][c][d][e] > 0) {\n return f[a][b][c][d][e];\n }\n if(!v[k]) {\n return dp(a, b, c, d, e, k + 1);\n }\n if(a < 5 && k > maxr[0] && k > maxc[a]) {\n f[a][b][c][d][e] += dp(a + 1, b, c, d, e, k + 1);\n }\n if(b < a && k > maxr[1] && k > maxc[b]) {\n f[a][b][c][d][e] += dp(a, b + 1, c, d, e, k + 1);\n }\n if(c < b && k > maxr[2] && k > maxc[c]) {\n f[a][b][c][d][e] += dp(a, b, c + 1, d, e, k + 1);\n }\n if(d < c && k > maxr[3] && k > maxc[d]) {\n f[a][b][c][d][e] += dp(a, b, c, d + 1, e, k + 1);\n }\n if(e < d && k > maxr[4] && k > maxc[e]) {\n f[a][b][c][d][e] += dp(a, b, c, d, e + 1, k + 1);\n }\n return f[a][b][c][d][e];\n }", "int solve(int p, int current) {\n int id = getId(p, current);\n if (p >= 0 && memo.containsKey(id)) {\n return memo.get(id);\n }\n List<Integer> adjList = adj.get(current);\n int n = adjList.size();\n if (n == 0) {\n throw new RuntimeException();\n }\n if ((n == 2 && p >= 0) || (n == 1 && p < 0)) {\n // should cut the nodes under current\n int ans = getDepth(p, current) - 1;\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n memo.put(id, ans);\n return ans;\n }\n if (n == 1) {\n // System.out.println(\"ans(\" + p + \",\" + current + \")=nochild\");\n return 0;\n }\n int ans = Integer.MAX_VALUE;\n\n for (int i = 0; i < n; i++) {\n int a = adjList.get(i);\n if (a == p) {\n continue;\n }\n for (int j = i + 1; j < n; j++) {\n int b = adjList.get(j);\n if (b == p) {\n continue;\n }\n // try a & b combo\n int tmp = solve(current, a);\n tmp += solve(current, b);\n for (int k = 0; k < n; k++) {\n int c = adjList.get(k);\n if (c != a && c != b && c != p) {\n tmp += getDepth(current, c);\n }\n }\n ans = Math.min(ans, tmp);\n }\n }\n memo.put(id, ans);\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n return ans;\n }", "private int houseRobberWithMaxAmountHousesFromItoJInConstantSpace(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tint incl = a[i];\n\t\tint excl = 0, temp;\n\n\t\tfor (int k = i + 1; k <= j; k++) {\n\t\t\ttemp = incl;\n\t\t\tincl = Math.max(excl + a[k], incl);\n\t\t\texcl = temp;\n\t\t}\n\t\treturn incl;\n\t}", "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }", "private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}", "int DFS(int i, int j) {\n if (dp[i][j] != 0)\n return dp[i][j];\n\n int steps = 0;\n int trial = 0;\n if (i < dp.length - 1 && matrix[i][j] < matrix[i+1][j]) {\n trial = DFS(i + 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (i > 0 && matrix[i][j] < matrix[i-1][j]) {\n trial = DFS(i - 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (j < dp[0].length - 1 && matrix[i][j] < matrix[i][j+1]) {\n trial = DFS(i, j + 1);\n if (trial > steps)\n steps = trial;\n }\n if (j > 0 && matrix[i][j] < matrix[i][j-1]) {\n trial = DFS(i, j - 1);\n if (trial > steps)\n steps = trial;\n }\n\n dp[i][j] = steps + 1;\n return dp[i][j];\n }", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int sum = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n int [][] arr = new int[N][2];\n for(int i = 0;i<N;i++)\n {\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n sc.nextLine();\n }\n //Arrays.sort(arr, new Comparator<int[]>() {\n // @Override\n // public int compare(int[] o1, int[] o2) {\n // return o1[1]-o2[1]; //按第二列价值排个序。\n // }\n //});\n int [][] dp = new int[N+1][sum+1];\n int [][] path = new int[N+1][sum+1];\n for(int i = 1;i<=N;i++)\n {\n for(int j = 1;j<=sum;j++)\n {\n if(j<arr[i-1][0])\n dp[i][j] = dp[i-1][j];\n else\n {\n if(dp[i-1][j]<dp[i-1][j-arr[i-1][0]]+arr[i-1][1])\n path[i][j] = 1;\n dp[i][j] = Math.max(dp[i-1][j],dp[i-1][j-arr[i-1][0]]+arr[i-1][1]);\n }\n }\n }\n System.out.println(dp[N][sum]);\n\n int i = N;\n int j = sum;\n while (i>0&&j>0)\n {\n if(path[i][j]==1)\n {\n System.out.print(1+\" \");\n j -=arr[i-1][0];\n }\n else\n {\n i--;\n System.out.print(0+\" \");\n }\n }\n\n\n // 改进版。只使用一维数组。\n // int [] f = new int[sum+1];\n // for(int i = 0;i<N;i++)\n // {\n // for (int j = sum;j>=0;j--)\n // {\n // if(j>=arr[i][0])\n // f[j] = Math.max(f[j], f[j-arr[i][0]]+arr[i][1]);\n // }\n // }\n // System.out.println(f[sum]);\n\n }", "static int unboundedKnapsack(int [] val,int[] wt, int W){\n int n = val.length;\n int[][] dp = new int[n+1][W+1];\n for (int i =0;i<=n;i++){\n dp[i][0] = 0;\n }\n for (int j = 0;j<=W;j++){\n dp[0][j] = 0;\n }\n\n for (int i=1;i<=n;i++){\n for (int j = 1;j<=W;j++){\n if (wt[i-1] <= j){\n dp[i][j] = Math.max(dp[i-1][j], val[i-1] + dp[i][j - wt[i-1]]);\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][W];\n }", "private static int partition3(int[] A) {\n \tint sum = 0;\r\n \tfor (int i = 0; i < A.length; i++) \r\n sum += A[i]; \r\n \r\n if (sum%3 != 0) \r\n return 0; \r\n \r\n int weight[][] = new int[sum/3+1][A.length+1];\r\n \r\n // initialize top row as true \r\n for (int i = 0; i <= A.length; i++) \r\n \tweight[0][i] = 0; \r\n \r\n // initialize leftmost column, except part[0][0], as 0 \r\n for (int i = 1; i <= sum/3; i++) \r\n \tweight[i][0] = 0; \r\n //The logic of Discrete Knapsack with no repetitions\r\n int count = 0;\r\n for(int i=1; i<=sum/3; i++){\r\n \tfor(int j=1;j<=A.length;j++){\r\n \t\tweight[i][j] = weight[i][j-1];\r\n \t\tint weight1 = 0;\r\n \t\tif(A[j-1]<=i)\r\n \t\t\tweight1 = weight[i-A[j-1]][j] + A[j-1];\r\n \t\tweight[i][j] = Math.max(weight1, weight[i][j]);\r\n \t\tif(weight[i][j] == sum/3)\r\n \t\t\tcount++;\r\n \t\t\r\n \t}\r\n }\r\n if(count < 3)\r\n \treturn 0;\r\n else\r\n \treturn 1;\r\n }", "private static int DP(String[] arr, int[] len, int i) {\n int min = Integer.MAX_VALUE;\n int minPointer = Integer.MAX_VALUE;\n for (int k = i + 1; k < arr.length; k++) {\n int badness = badness(len, i, k, PAGE_WIDTH);\n if (badness == Integer.MAX_VALUE) {\n break;\n } else if (badness < min) {\n min = badness;\n minPointer = k;\n } // TODO: if badness max value then k is already +1\n }\n\n if (minPointer == arr.length - 1) {\n minPointer = arr.length;\n }\n return minPointer;\n }", "private int houseRobberWithMaxAmountHousesFromItoJ(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tif (j - i == 1)\n\t\t\treturn Math.max(a[i], a[j]);\n\n\t\tint n = j - i + 1;\n\t\tSystem.out.println(n);\n\t\tint t[] = new int[n + 1];\n\t\tt[0] = 0;\n\t\tt[1] = a[i];\n\n\t\tfor (int k = i + 2; k <= n; k++) {\n\t\t\tt[k] = Math.max(t[k - 1], t[k - 2] + a[k - 1]);\n\t\t}\n\t\tCommonUtil.printArray(t);\n\t\treturn t[n];\n\t}", "int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}", "public Knapsack bruteForceCalc (ArrayList <Item> items,int capacity, int num_items) {\n\t\tif (num_items <= 0) {\n\t\t\tKnapsack knapsack = new Knapsack(0);\n\t\t\treturn knapsack;\n\t\t} \n\t\telse if (items.get(num_items -1).getWeight() > capacity) {\n\t\t\treturn bruteForceCalc(items, capacity, num_items - 1);\n\t\t} else {\n\n\t\t\tKnapsack ignore = bruteForceCalc(items,capacity, num_items - 1);\n\t\t\tKnapsack take = bruteForceCalc(items,capacity - items.get(num_items -1).getWeight(), num_items - 1);\n\t\t\t\n\t\t\tint ignoreVal = ignore.getValue();\n\t\t\tint takeVal = items.get(num_items - 1).getValue() + take.getValue();\n\t\t\t \n\t\t\tif( Math.max(ignoreVal, takeVal) == ignoreVal ) \n\t\t\t\treturn ignore;\n\t\t\telse {\n\t\t\t\ttake.addItem(items.get(num_items - 1));\n\t\t\t\treturn take;\n\t\t\t}\n\t\t}\n\t}", "public void solveUsingLeastCostMethod() {\n\n this.solution = new Solution();\n\n Source[] proxySources = Arrays.copyOf(sources, sources.length);\n Destination[] proxyDestinations = Arrays.copyOf(destinations, destinations.length);\n int[][] matrix = new int[costs.length][costs[0].length];\n\n List<Integer> rows = new ArrayList<Integer>();\n List<Integer> columns = new ArrayList<Integer>();\n while ( rows.size() != proxySources.length && columns.size() != proxyDestinations.length ) {\n //getting minimum cell (if there is a tie, we choose where is the maximum quantity)\n int indexI,indexJ, value;\n indexI = 0;\n indexJ = 0;\n value = 0;\n boolean firstElement = true;\n for(int i=0;i<proxySources.length;i++) {\n if( !rows.contains(i) ) {\n for(int j=0;j<proxyDestinations.length;j++) {\n if( !columns.contains(j) ) {\n if ( firstElement ) {\n indexI = i;\n indexJ = j;\n value = costs[i][j];\n firstElement = false;\n }\n if( costs[i][j] < value ) {\n indexI = i;\n indexJ = j;\n value = costs[i][j];\n }\n else if( costs[i][j] == value ) {\n if( Math.min(proxySources[i].getSupply(),proxyDestinations[j].getDemand()) > Math.min(proxySources[indexI].getSupply(),proxyDestinations[indexJ].getDemand()) ) {\n indexI = i;\n indexJ = j;\n value = costs[i][j];\n }\n }\n }\n }\n }\n }\n int supply = proxySources[indexI].getSupply();\n int demand = proxyDestinations[indexJ].getDemand();\n\n\n this.solution.add(sources[indexI], destinations[indexJ], Math.min(supply,demand), costs[indexI][indexJ]);\n\n if ( supply < demand ) {\n proxySources[indexI].setSupply(0);\n proxyDestinations[indexJ].setDemand(demand - supply);\n rows.add(indexI);\n }\n else if( supply > demand ) {\n proxySources[indexI].setSupply(supply-demand);\n proxyDestinations[indexJ].setDemand(0);\n columns.add(indexJ);\n }\n else {\n proxySources[indexI].setSupply(0);\n proxyDestinations[indexJ].setDemand(0);\n rows.add(indexI);\n columns.add(indexJ);\n }\n }\n this.solution.showSolution();\n\n\n }", "private static void buildSolution(int weight, int currentItem, Item[] items, long[][] DP, boolean[] used) {\n\n if (currentItem == 0) {\n return;\n }\n\n int itemIndex = currentItem - 1;\n\n if (DP[weight][currentItem] == DP[weight][currentItem - 1]) {\n used[itemIndex] = false;\n buildSolution(weight, currentItem - 1, items, DP, used);\n return;\n }\n\n used[currentItem - 1] = true;\n buildSolution(weight - items[itemIndex].getWeight(), currentItem - 1, items, DP, used);\n }", "static int recursion(int steps, int arrLen, int index, int[][] dp) {\n\n if (steps == 0 && index == 0) {\n return 1;\n }\n\n // extra base condition is index> steps , because we cannot return from there at all.\n if (steps == 0 || index < 0 || index >= arrLen || index > steps) return 0;\n\n if (dp[steps][index] != -1) return dp[steps][index];\n\n int ans = 0;\n\n // we can go either left , right or stay there itself.\n ans = (ans + recursion(steps - 1, arrLen, index, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index + 1, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index - 1, dp)) % MOD;\n dp[steps][index] = ans % MOD;\n return dp[steps][index];\n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "public static int knapSackWithDP(int expectedWeight) {\n\t\tint N = values.length;\n\t\tint[][] dP = new int[N + 1][expectedWeight + 1];\n\t\tboolean[][] takeSoln = new boolean[N + 1][expectedWeight + 1];\n\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tfor (int j = 1; j <= expectedWeight; j++) {\n\t\t\t\tif (weights[i - 1] > j) {\n\t\t\t\t\tdP[i][j] = dP[i - 1][j];\n\t\t\t\t} else {\n\t\t\t\t\tint option1 = dP[i - 1][j], option2 = values[i - 1] + dP[i - 1][j - weights[i - 1]];\n\t\t\t\t\tdP[i][j] = Math.max(option2, option1);\n\t\t\t\t\ttakeSoln[i][j] = (option2 > option1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Selected items are: \");\n\t\tint totalWt = 0, totalValue = 0;\n\t\tfor (int k = N, wt = expectedWeight; k > 0; k--) {\n\t\t\tif (takeSoln[k][wt]) {\n\t\t\t\ttotalWt += weights[k - 1];\n\t\t\t\ttotalValue += values[k - 1];\n\t\t\t\tSystem.out.printf(\"\tItem %d with weight %d and value %d\\n\", k, weights[k - 1], values[k - 1]);\n\t\t\t\twt -= weights[k - 1];\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"Calculated total weight= %d and total value= %d\\n\", totalWt, totalValue);\n\t\treturn dP[N][expectedWeight];\n\t}", "private static int findMax(int[] A, int len, int[] dp) {\r\n\t\t\r\n\t\tif(len < 0)\r\n\t\t\treturn 0;\r\n\t\t\t\r\n\t\tif(len == 0)\r\n\t\t\treturn A[0];\r\n\t\t\r\n\t\tif(len == 1)\r\n\t\t\treturn Math.max(A[0], A[1]);\r\n\t\t\r\n\t\tif(dp[len] != 0)\r\n\t\t\treturn dp[len];\r\n\t\t\r\n\t\tdp[len] = Math.max((A[len] + findMax(A, len-2, dp)), findMax(A, len-1, dp));\r\n\t\treturn dp[len];\r\n\t\t\r\n\t}", "public Solution solve(KnapsackData data);", "private int dfs(int[][] matrix, int i, int j, int d) {\n if (i < 0 || j < 0 || i == matrix.length || j == matrix[0].length || matrix[i][j] != 0)\n return 0;\n if (dp[i][j][d] > 0) return dp[i][j][d];\n timeComplexityCount++;\n maxI = Math.max(maxI, i);\n int res;\n if (d == 1)\n res = Math.max(dfs(matrix, i, j + 1, 1), dfs(matrix, i, j + 1, 2));\n else if (d == 0)\n res = Math.max(dfs(matrix, i, j - 1, 0), dfs(matrix, i, j - 1, 2));\n else\n res = Math.max(dfs(matrix, i + 1, j, 0), Math.max(dfs(matrix, i + 1, j, 1), dfs(matrix, i + 1, j, 2)));\n dp[i][j][d] = res + 1;\n return res + 1;\n }", "private static List<Integer> packDPInit(PackageDTO packageDTO) {\n // Declare the table dynamically\n Integer itemsSize = packageDTO.getItems().size();\n Integer capacityGrams = packageDTO.getCapacity() * GRAMS_IN_KILO;\n Integer mem[][] = new Integer[itemsSize + 1][capacityGrams + 1];\n\n //I need to re-instance my list as an Integer List to use The values on my memoization structure\n List<Integer> weights = new ArrayList<>();\n for(ItemDTO item : packageDTO.getItems()){\n Double weightGrams = item.getWeight() * GRAMS_IN_KILO;\n weights.add(weightGrams.intValue());\n }\n\n // Loop to initially filled the\n // table with -1\n for(int i = 0; i < itemsSize + 1; i++)\n for(int j = 0; j < capacityGrams + 1; j++)\n mem[i][j] = -1;\n\n List<Integer> optimalChoice = new ArrayList<>();\n packDPRec(capacityGrams, weights, packageDTO.getItems(), weights.size(), mem, optimalChoice);\n return optimalChoice;\n }", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a=scan.nextInt();\n\t\tint b=scan.nextInt();\n\t\tint[] nums=new int[N];\n\t\tint[][] weight=new int[N][N];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tnums[i]=scan.nextInt();\n\t\t\tweight[i][i]=nums[i];\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=i+1;j<N;j++){\n\t\t\t\tweight[i][j]=weight[i][j-1]+nums[j];\n\t\t\t}\n\t\t}\n\t\tlong[][] dp=new long[N][N];\n\t\tfor(int i=2;i<=N;i++){//dis\n\t\t\tfor(int j=0;j<=N-i;j++){//start\n\t\t\t\tint end=j+i-1;\n\t\t\t\tlong min=Integer.MAX_VALUE;\n\t\t\t\tfor(int k=j;k<end;k++){\n\t\t\t\t\tmin=Math.min(min, dp[j][k]+dp[k+1][end]+weight[j][k]*a+weight[k+1][end]*b);\n\t\t\t\t}\n\t\t\t\tdp[j][end]=min;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[0][N-1]);\n\t\tscan.close();\n\t}", "public int knapsack01(int[] w, int[] v, int C) {\n //dp[i] = Math.max(v[i] + dp[i - 1, c - w[i]], dp[i - 1, c])\n int[][] dp = new int[w.length][C];\n for (int i = 0; i <= C; i++) {\n if (i >= w[0])\n dp[0][i] = v[0];\n }\n for (int i = 1; i < w.length; i++) {\n for (int j = 0; j <= C; j++) {\n if (j >= w[i]) {\n dp[i][j] = Math.max(v[i] + dp[i - 1][C - w[i]], dp[i - 1][C]);\n } else {\n dp[i][j] = dp[i - 1][C];\n }\n }\n }\n return dp[w.length - 1][C];\n }", "private static int[] greedyAssign(double[][] array, int[] assignment, int chunk_size) {\n\n\t\tint[] jToi = new int[chunk_size];\n\t\tArrays.fill(assignment, -1);\n\t\tArrays.fill(jToi, -1);\n\t\tfor (int i=0; i<edge_size; i++){\n\t\t\tHeapNode node = (HeapNode) edges[i];\n\t\t\tif (assignment[node.getI()]==-1 && jToi[node.getJ()]==-1){\n\t\t\t\tassignment[node.getI()]=node.getJ();\n\t\t\t\tjToi[node.getJ()]=node.getI();\n\t\t\t}\n\t\t}\n\t\t//long backtrace_start = System.currentTimeMillis();\n\t\tfor (int index = 0; index<chunk_size; index++){\n\t\t\tboolean swap_done = false;\n\t\t\tif (assignment[index]==-1){\n\t\t\t\tSystem.out.println(index);\n\t\t\t\tfor (int step=1; step<chunk_size/2; step++){\n\t\t\t\t\tint possible_i = (chunk_size+index-step)%chunk_size;\n\t\t\t\t\tint possible_j = assignment[possible_i];\n\t\t\t\t\tif (possible_j != -1){\n\t\t\t\t\t\tif (array[index][possible_j]!=BIG){\n\t\t\t\t\t\t\tfor (int l=0; l<chunk_size; l++){\n\t\t\t\t\t\t\t\tif (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t\tassignment[index]=possible_j;\n\t\t\t\t\t\t\t\t\tassignment[possible_i]=l;\n\t\t\t\t\t\t\t\t\tjToi[l]=possible_i;\n\t\t\t\t\t\t\t\t\tjToi[possible_j]=index;\n\t\t\t\t\t\t\t\t\tswap_done = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/*for (int step2 = 1; step2<chunk_size/2; step2++){\n\t\t\t\t\t\t\t int l = (chunk_size+possible_j-step2)%chunk_size;\n\n\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t l=(possible_j+step2)%chunk_size;\n\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\t*/\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (swap_done)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tpossible_i = (index+step)%chunk_size;\n\t\t\t\t\t\tpossible_j = assignment[possible_i];\n\t\t\t\t\t\tif (possible_j != -1){\n\t\t\t\t\t\t\tif (array[index][possible_j]!=BIG){\n\t\t\t\t\t\t\t\tfor (int l=0; l<chunk_size; l++){\n\t\t\t\t\t\t\t\t\tif (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t\t\tassignment[index]=possible_j;\n\t\t\t\t\t\t\t\t\t\tassignment[possible_i]=l;\n\t\t\t\t\t\t\t\t\t\tjToi[l]=possible_i;\n\t\t\t\t\t\t\t\t\t\tjToi[possible_j]=index;\n\t\t\t\t\t\t\t\t\t\tswap_done = true;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*for (int step2 = 1; step2<chunk_size/2; step2++){\n\t\t\t\t\t\t\t\t int l = (chunk_size+possible_j-step2)%chunk_size;\n\n\t\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t l=(possible_j+step2)%chunk_size;\n\t\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t }*/\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (swap_done)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn assignment;\n\t}", "public double knapsack(double[] valuePass, double[] weightPass, double capacity) {\n\n if (valuePass.length == 0) { return 0; }\n value = valuePass;\n weight = weightPass;\n double[] subsets = new double[value.length];\n double takenValue = 0;\n double takenWeight = 0;\n double selection = 0;\n\n // look at each subset of the entire set\n for (int i = 0; i < Math.pow(2, value.length); i++) {\n\n /* INVARIANT: the value/weight values are greater than 0 */\n if (KnapsackMain.debug)\n assert assertionValueWeightGreaterThanZero(takenValue, takenWeight);\n\n // variables for the inner loop\n int itemToTake = value.length - 1;\n double temporaryValue = 0;\n double temporaryWeight = 0;\n\n // wh\n while (subsets[itemToTake] != 0 && itemToTake > 0) {\n subsets[itemToTake] = 0;\n itemToTake = itemToTake - 1;\n }\n\n subsets[itemToTake] = 1;\n\n for (int j = 0; j < value.length; j++) {\n\n // if the item is marked in the subset, then add it to the takenValue\n if (subsets[j] == 1 ) {\n temporaryValue = temporaryValue + value[j];\n temporaryWeight = temporaryWeight + weight[j];\n }\n }\n\n if (temporaryValue > takenValue && temporaryWeight <= capacity) {\n takenValue = temporaryValue;\n takenWeight = temporaryWeight;\n }\n }\n return takenValue;\n }", "public static int recursiveKnapsack2(int[] weights, int[] values, int capacity) {\n return recursiveKnapsackHelper2(weights, values, capacity, 0);\n }", "private boolean canPartitionDP(int[] array, int sum) {\n int len = array.length;\n boolean[][] dp = new boolean[len + 1][sum + 1];\n\n for (int i = 0; i < len + 1; i++) dp[i][0] = true;\n\n for (int i = 1; i < len + 1; i++) {\n for (int j = 1; j < sum + 1; j++) {\n if (array[i - 1] <= j) dp[i][j] = dp[i - 1][j] || dp[i - 1][j - array[i - 1]];\n else dp[i][j] = dp[i - 1][j];\n }\n }\n\n return dp[len][sum];\n }", "protected abstract void solve(Items items,Knapsack knapsack);", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "public int wiggleMaxLength4(int[] nums) {\n if(nums == null || nums.length == 0){\n return 0;\n } else if(nums.length == 1){\n \treturn 1;\n }\n \n int len = nums.length;\n int[] tempNums = new int[len - 1];\n int[] dp = new int[len - 1];\n int maxLen = 0;\n \n for(int i = 0; i < len - 1; i++){\n if(nums[i] - nums[i + 1] > 0){\n tempNums[i] = 1;\n } else if(nums[i] - nums[i + 1] < 0){\n tempNums[i] = -1;\n } else {\n tempNums[i] = 0;\n }\n }\n \n for(int i = 0; i < len - 1; i++){\n \tif(tempNums[i] != 0){\n \t\tdp[i] = 1;\n \t}\n }\n \n maxLen = dp[0];\n \n for(int i = 0; i < len - 1; i++){\n for(int j = 0; j < i; j++){\n if(tempNums[i] * tempNums[j] == -1){\n dp[i] = Math.max(dp[i], dp[j] + 1);\n maxLen = Math.max(maxLen, dp[i]);\n }\n }\n }\n \n return maxLen + 1;\n }", "private static boolean canPack(int bigCount, int smallCount, int goal) {\n\n//Check if all parameters are in valid range\n if (bigCount < 0 || smallCount < 0 || goal < 0)\n return false;\n\n int pack = 0;\n\n //While we haven't created a pack\n while (pack < goal) {\n //see if a big flour bag can fit in the package\n if (bigCount > 0 && (pack + 5) <= goal) {\n bigCount--;\n pack += 5;\n\n }\n //see there is a small flour bag left, to add to the package\n else if (smallCount > 0) {\n smallCount--;\n pack += 1;\n }\n //if a big bag won't fit (or doesnt exist) and we dont have enough small bags\n else\n return false;\n }\n return (pack == goal);\n }", "public static boolean[] solution_used(int[][] dp_array,int objects,int capacity){\r\n\r\n boolean[] opt_set = new boolean[objects+1]; // to store solutions\r\n int Items = 0;\r\n int i = dp_array.length-1;\r\n for (int j = dp_array[0].length - 1; j >= 0 && i > 0;i--) {\r\n if (dp_array[i][j] != dp_array[i-1][j]) { // trace back algorithm\r\n opt_set[i-1] = true ; // set the array value true if the values are used\r\n j -= randvariables[i-1];\r\n Items++;\r\n }\r\n }\r\n return Arrays.copyOfRange(opt_set, 0, objects); //return the items\r\n }", "int knapsack01(int[] v, int[] w, int capacity) {\n return knapsack01(v, w, capacity, 0, 0);\n }", "public static int cache_solution(int[][] cache_array,int objects,int capacity){\r\n\r\n //base cases\r\n if(capacity <= 0)\r\n return 0;\r\n if(objects < 0)\r\n return 0;\r\n\r\n if(cache_array[objects][capacity] != -1)\r\n return cache_array[objects][capacity];\r\n else{\r\n if(randvariables[objects] > capacity) // check if the weight is more than capacity\r\n return cache_solution(cache_array,objects-1,capacity);\r\n else{\r\n // recursive calls 1. to take the item(add the value,subtract the weight) 2. Dont take the value(subtract the weight)\r\n int do_take = randvalues[objects] + cache_solution(cache_array,objects-1, capacity-randvariables[objects]);\r\n int dont_take = cache_solution(cache_array,objects - 1, capacity);\r\n\r\n // Returning the highest value\r\n if(do_take > dont_take){\r\n cache_array[objects][capacity] = do_take;\r\n return do_take;\r\n }\r\n else{\r\n cache_array[objects][capacity] = dont_take;\r\n return dont_take;\r\n }\r\n }\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint [][][] dp = new int[n+1][m+1][m+1];\n\t\tint [][] arr = new int[n+1][m+1];\n\t\tint max = 1;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (arr[i][j] == 1) {\n\t\t\t\t\tfor (int z = j; z <= m && arr[i][z] == 1; z++) {\n\t\t\t\t\t\tdp[i][j][z] = dp[i-1][j][z] + 1;\n\t\t\t\t\t\tmax = Math.max(max, Math.min(dp[i][j][z], z-j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "public static int jumpII(int[] A) {\n\t\tint n = A.length;\n int[] dp = new int[n];\n Arrays.fill(dp, Integer.MAX_VALUE);\n dp[0] = 0;\n for (int i = 1; i < n; ++i) {\n \tfor (int j = 0; j < i; ++j) {\n \t\tif (A[j] >= i-j)\n \t\t\tdp[i] = Math.min(dp[i], dp[j]+1);\n \t}\n }\n return dp[n-1];\n }", "public int fill(MessagePassingQueue.Supplier<E> s, int batchSize)\r\n/* 296: */ {\r\n/* 297: */ long pIndex;\r\n/* 298: */ long mask;\r\n/* 299: */ E[] buffer;\r\n/* 300: */ for (;;)\r\n/* 301: */ {\r\n/* 302:569 */ long producerLimit = lvProducerLimit();\r\n/* 303:570 */ pIndex = lvProducerIndex();\r\n/* 304:572 */ if ((pIndex & 1L) != 1L)\r\n/* 305: */ {\r\n/* 306:581 */ mask = this.producerMask;\r\n/* 307:582 */ buffer = this.producerBuffer;\r\n/* 308: */ \r\n/* 309: */ \r\n/* 310: */ \r\n/* 311:586 */ long batchIndex = Math.min(producerLimit, pIndex + 2 * batchSize);\r\n/* 312:588 */ if ((pIndex >= producerLimit) || (producerLimit < batchIndex))\r\n/* 313: */ {\r\n/* 314:590 */ int result = offerSlowPath(mask, pIndex, producerLimit);\r\n/* 315:591 */ switch (result)\r\n/* 316: */ {\r\n/* 317: */ case 0: \r\n/* 318: */ case 1: \r\n/* 319: */ break;\r\n/* 320: */ case 2: \r\n/* 321:598 */ return 0;\r\n/* 322: */ case 3: \r\n/* 323:600 */ resize(mask, buffer, pIndex, s.get());\r\n/* 324:601 */ return 1;\r\n/* 325: */ }\r\n/* 326: */ }\r\n/* 327:606 */ else if (casProducerIndex(pIndex, batchIndex))\r\n/* 328: */ {\r\n/* 329:608 */ int claimedSlots = (int)((batchIndex - pIndex) / 2L);\r\n/* 330:609 */ break;\r\n/* 331: */ }\r\n/* 332: */ }\r\n/* 333: */ }\r\n/* 334: */ int claimedSlots;\r\n/* 335:613 */ for (int i = 0; i < claimedSlots; i++)\r\n/* 336: */ {\r\n/* 337:615 */ long offset = LinkedArrayQueueUtil.modifiedCalcElementOffset(pIndex + 2 * i, mask);\r\n/* 338:616 */ UnsafeRefArrayAccess.soElement(buffer, offset, s.get());\r\n/* 339: */ }\r\n/* 340:618 */ return claimedSlots;\r\n/* 341: */ }", "private Signal buildBDD(ArrayList<Literal> ps, int r, int size, int sum, int materialLeft,\n HashMap</* Pair */Integer, Signal> memo) {\n if (sum >= r) {\n Constant constant = new Constant(false);\n return constant;\n } else if (sum + materialLeft < r) {\n Constant constant = new Constant(true);\n return constant;\n }\n /* Pair */Integer key = pack(size, sum);// new PairInteger(size, sum);\n if (memo.get(key) == null) {\n size--;\n materialLeft -= 1;// cs[size];\n int hiSum;\n if (ps.get(size).isPositive()) {\n hiSum = sum;\n } else {\n hiSum = sum + 1; // cs[size];\n }\n int loSum;\n if (ps.get(size).isPositive()) {\n loSum = sum + 1; // cs[size];\n } else {\n loSum = sum;\n }\n Signal hiResult = buildBDD(ps, r, size, hiSum, materialLeft, memo);\n Signal loResult = buildBDD(ps, r, size, loSum, materialLeft, memo);\n Literal lit = ps.get(size);\n if (!lit.isPositive()) {\n lit = new Literal(lit.getIndex(), true);\n }\n ITEGate ite = new ITEGate(lit, loResult, hiResult);\n memo.put(key, ite);\n }\n return memo.get(key);\n }", "@Test\n public void partitionCorrectness() {\n List<Integer> ns = new Node<>(5, new Node<>(3,\n new Node<>(7, new Node<>(1, new Empty<>()))));\n List<Integer> empty = new Empty<>();\n assertFalse(DP.bupartition(ns, 2));\n assertTrue(DP.bupartition(ns, 8));\n assertTrue(DP.bupartition(ns, 6));\n assertTrue(DP.bupartition(ns,4));\n assertTrue(DP.bupartition(ns,11));\n assertFalse(DP.bupartition(empty, 6));\n }", "public int jump(int[] A) {\n if (A==null || A.length==0) return 0;\n int N = A.length;\n int[] dp = new int[N+1];\n dp[0] = 0;\n dp[1] = 0;\n for (int i=1; i<N; i++){\n int range = A[i];\n for (int j=1; j<=range && ((i+j)<N); j++){ \n if (dp[i+j] == 0) dp[i+j] = dp[i] + 1;\n else dp[i+j] = Math.min(dp[i+j], dp[i]+1);\n }\n }\n return dp[N];\n }", "private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }", "public int knapSackDP(int wt[], int val[], int mw) {\n // init DP\n int[][] dp = new int[wt.length + 1][mw + 1];\n\n // base conditions\n // set all rows for n=0 and w=0 to 0\n\n // Loop\n for (int n = 1; n < dp.length; n++) {\n for (int w = 1; w < dp[0].length; w++) {\n if (wt[n - 1] > w)\n dp[n][w] = dp[n - 1][w];\n else\n dp[n][w] = Math.max(val[n - 1] + dp[n - 1][w - wt[n - 1]], dp[n - 1][w]);\n }\n }\n return dp[dp.length - 1][dp[0].length - 1];\n }", "public void initial()\n\t{ \n\t\tint i,j; \n\t\tint tempValue=0;\n\t\tfor(i=0; i<n; i++) \n\t\t{ \n\t\t\tfor(j=0; j<n; j++)\n\t\t\t {\n\t\t\t\tif(j==0)\n\t\t\t\t{\n\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(tempValue> cost[i][j])\n\t\t\t\t\t{\n\t\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t\t}\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tfor (j=0; j<n;j++)\n\t\t\t{\n\t\t\t\tcost[i][j] = cost[i][j]- tempValue;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tfor(j=0;j<n;j++)\n\t\t{\n\t\t\tfor (i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tif(i==0)\n\t\t\t\t{\n\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t if(tempValue> cost[i][j])\n\t\t\t\t {\n\t\t\t\t \ttempValue = cost[i][j];\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tcost[i][j] = cost[i][j] - tempValue;\n\t\t\t}\n\t\t}\t\n\t}", "public double evalOverCapacity(int[] assig)\r\n {\r\n BOFLP BFLProblem = BOFLP.instance();\r\n\r\n int nClients = BFLProblem.nClients;\r\n int nDepots = BFLProblem.nDepots;\r\n\r\n double overCapacity;\r\n\r\n int[] requiredCapacity;\r\n requiredCapacity = new int[nDepots + 1];\r\n\r\n for (int i = 1; i <= nClients; i++)\r\n {\r\n int depot = assig[i - 1];\r\n requiredCapacity[depot] = requiredCapacity[depot] + BFLProblem.demand[i];\r\n }\r\n overCapacity = 0;\r\n for (int j = 1; j <= nDepots; j++)\r\n {\r\n overCapacity = overCapacity + Math.max(0, requiredCapacity[j] - BFLProblem.capacity[j]);\r\n }\r\n overCapacity = overCapacity / BFLProblem.sumCapacity;\r\n return overCapacity;\r\n }", "public int[] solver(int startPlayerId, int curplayer, int[][] oneP, int[][][] memory, int count) {\n\r\n int[][] one = oneP.clone(); // OnePlay Input\r\n int[] k; // onePlay points\r\n int j = curplayer;\r\n int[][][] m = memory.clone();\r\n int[] minCard = new int[3];\r\n int[] t;\r\n ArrayList<int[]> store = new ArrayList<>();\r\n minCard[2] = 100000;\r\n t = new int[3];\r\n for (int i = 0; i < 4; i++) { // 4 types of cards\r\n for (int l = 2; l < cardPerPlayer + 2; l++) {\r\n if (m[j][i][l] == 1 || m[j][i][l] == 2) {\r\n one[j][0] = i;\r\n one[j][1] = l;\r\n remove(new int[] { i, l }, m);\r\n if ((j + 1) % players != startPlayerId) {\r\n t = solver(startPlayerId, (j + 1) % players, one, m, count);\r\n one[(j + 1) % players][0] = t[0];\r\n one[(j + 1) % players][1] = t[1];\r\n }\r\n // } else if ((j + 2) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 2) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // } else if ((j + 3) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 3) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // }\r\n\r\n k = onePlay(one, startPlayerId);\r\n int curpoint = 0;\r\n if (count != cardPerPlayer - 1) { // cardPerPlayer - 1 = 12\r\n t = solver(k[0], k[0], new int[4][2], m, count++);\r\n curpoint = t[2];\r\n }\r\n\r\n if (k[0] == myID) {\r\n curpoint += k[1] + k[2] * 12;\r\n }\r\n store.add(new int[] { i, l, curpoint });\r\n if (curpoint < minCard[2]) {\r\n minCard[2] = curpoint;\r\n minCard[0] = i;\r\n minCard[1] = l;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return minCard;\r\n }", "int removeObstacle(int numRows, int numColumns, List<List<Integer>> lot)\r\n {\r\n \tint m = 0;\r\n \tint n = 0;\r\n \tfor(List<Integer> rowList: lot) {\r\n \t\tfor(Integer num: rowList) {\r\n \t\t\tif(num == 9 ) {\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t\tn++;\r\n \t\t}\r\n \t\tm++;\r\n \t}\r\n \t// to store min cells required to be \r\n // covered to reach a particular cell \r\n int dp[][] = new int[numRows][numColumns]; \r\n \r\n // initially no cells can be reached \r\n for (int i = 0; i < numRows; i++) \r\n for (int j = 0; j < numColumns; j++) \r\n dp[i][j] = Integer.MAX_VALUE; \r\n \r\n // base case \r\n dp[0][0] = 1; \r\n \r\n for (int i = 0; i < lot.size(); i++) {\r\n \tList<Integer> columnList = lot.get(i);\r\n for (int j = 0; j < columnList.size(); j++) { \r\n \r\n // dp[i][j] != INT_MAX denotes that cell \r\n // (i, j) can be reached from cell (0, 0) \r\n // and the other half of the condition \r\n // finds the cell on the right that can \r\n // be reached from (i, j) \r\n if (dp[i][j] != Integer.MAX_VALUE && \r\n (j + columnList.get(j)) < numColumns && (dp[i][j] + 1) \r\n < dp[i][j + columnList.get(j)]\r\n \t\t && columnList.get(j) != 0) \r\n dp[i][j + columnList.get(j)] = dp[i][j] + 1; \r\n \r\n if (dp[i][j] != Integer.MAX_VALUE && \r\n (i + columnList.get(j)) < numRows && (dp[i][j] + 1) \r\n < dp[i + columnList.get(j)][j] && columnList.get(j) != 0) \r\n dp[i + columnList.get(j)][j] = dp[i][j] + 1; \r\n } \r\n } \r\n \r\n if (dp[m - 1][n - 1] != Integer.MAX_VALUE) \r\n return dp[m - 1][n - 1]; \r\n \r\n return -1; \r\n }", "public double permut(int[] seen, int nbSeen, Integer[] notSeen, int nbNotSeen, double length, double sp){\n Integer[] order = new Integer[nbNotSeen];\n if(nbNotSeen == 0){\n double finalCost = length + cost[seen[nbSeen-1]][0];\n if(sp>finalCost){\n sp=finalCost;\n for(int i = 1; i< nbSeen; i++){\n optimalOrder[i] = seen[i];\n }\n }\n }\n else{\n for(int i=0;i<nbNotSeen;i++){\n \t\torder[i]=notSeen[i];\n }\n Arrays.sort(order, comparator);\n \n double dmin = cheapestInsert(notSeen);\n \n if(!(sp<length+dmin)){\n for(int j=0;j<nbNotSeen;j++){\n seen[nbSeen]=order[j];\n lastSeen=seen[nbSeen];\n order[j]=order[nbNotSeen-1];\n sp=permut(seen, nbSeen+1, order, nbNotSeen-1,length+cost[seen[nbSeen-1]][seen[nbSeen]],sp);\n order[j]=seen[nbSeen];\n }\n }\n }\n return sp;\n }", "public static int MatrixChainMult(int i, int j){ //\n\n if(i == j)\n return 0;\n if(mem[i][j] != 0)\n return mem[i][j];\n int min_ans = Integer.MAX_VALUE;\n\n for(int k=i;k<j;k++){\n int count = MatrixChainMult(i , k)\n + MatrixChainMult(k+1 , j)\n + ar[i-1] * ar[k] * ar[j];\n \n min_ans = Math.min(min_ans, count);\n\n }\n //memoization\n mem[i][j] = min_ans;\n return min_ans;\n }", "static long dp(int posicion, int letra, boolean cambio)\n\t{\n\t\tif(dp[posicion][letra][cambio ? 1 : 0] != -1) return dp[posicion][letra][cambio ? 1 : 0];\n\t\tif(posicion == dp.length - 1) return dp[posicion][letra][cambio ? 1 : 0] = cambio ? 1 : 0;\n\t\tif(posicion == 6) \n\t\t{\n\t\t\tSystem.out.println();\n\t\t}\n\t\tint letraS = palabra[posicion + 1];\n\t\tint adelanteReal = letra < 25 - letraS ? letra : 25 - letraS;\n\t\tint atrasReal = 25 - letra < letraS ? 25 - letra : letraS;\n\t\tint atrasTest = testAtras(letra, letraS);\n\t\tif(atrasReal != atrasTest)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tatrasReal = atrasTest;\n\t\t}\n\t\tint adelanteTest = testAdelante(letra, letraS);\n\t\tif(adelanteReal != adelanteTest)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tadelanteReal = adelanteTest;\n\t\t\t testAdelante(letra, letraS);\n\t\t}\n\t\tlong respuesta = 0;\n\t\trespuesta += dp(posicion + 1, letraS, cambio);\n\t\tlong[] siguiente = dp2(posicion);\n\t\tif(letraS - 1 >= 0 && atrasReal != 0)\n\t\t{\n\t\t\trespuesta += siguiente[letraS - 1];\n//\t\t\tif(respuesta >= mod) respuesta -= mod;\n\t\t\tif(letraS - 1 - atrasReal >= 0)\n\t\t\t{\n\t\t\t\trespuesta -= siguiente[letraS - 1 - atrasReal];\n//\t\t\t\tif(respuesta < 0) respuesta += mod;\n\t\t\t}\n\t\t}\n\t\tif(letraS + adelanteReal <= 25 && adelanteReal != 0)\n\t\t{\n\t\t\trespuesta += siguiente[letraS + adelanteReal];\n//\t\t\tif(respuesta >= mod) respuesta -= mod;\n\t\t\trespuesta -= siguiente[letraS];\n//\t\t\tif(respuesta < 0) respuesta += mod;\n\t\t}\n\t\treturn dp[posicion][letra][cambio ? 1 : 0] = respuesta;\n\t}", "public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\tint[][] dp = new int[n][n];\n\t\tint[][] c = new int[n][n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tint count=0,max=0;\n\t\t\tfor(int j=i;j<n;j++)\n\t\t\t{\n\t\t\t\tif(j==i){\n\t\t\t\t\tdp[i][j]=array[j];\n\t\t\t\t\tcount++;\n\t\t\t\t\tc[i][j]=count;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tif(array[j]==array[j-1]){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tif(max<count) {\n\t\t\t\t\t\t\tmax =count;\n\t\t\t\t\t\t\tdp[i][j]=array[j];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\tdp[i][j]=dp[i][j-1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tc[i][j]=count;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tcount =1;\n\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t\tc[i][j]=count;\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//System.out.print(dp[i][j]+\" \");\n\t\t\t}\n\t\t\t//System.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tint l = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tint k = sc.nextInt();\n\t\t\tif(c[l][r]>k)\n\t\t\t{\n\t\t\t\tSystem.out.println(dp[l][r]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(-1);\n\t\t\t}\n\t\t}\n\t}", "public boolean carPooling(int[][] trips, int capacity) {\n Arrays.sort(trips, (o1,o2)->(o1[1]-o2[1]));\n \n PriorityQueue<int[]>pq = new PriorityQueue<>((o1,o2)->(o1[2]-o2[2]));\n \n int current = 0;\n int max = 0;\n for(int i=0; i<trips.length; i++){\n // remove the passed trip from the pq\n while(!pq.isEmpty() && pq.peek()[2]<=trips[i][1]){\n int[] temp = pq.poll();\n current-=temp[0]; \n }\n \n pq.offer(trips[i]);\n current+=trips[i][0];\n max = Math.max(max, current);\n if(max>capacity){\n return false;\n }\n \n }\n \n return true;\n }", "static void updatePossible(int[][] G, int[][][] P){\n //only makes changes to possibility array\n \n int k;\n \n for(int i=1; i<G.length; i++){\n for (int j=1; j<G[i].length; j++){\n if (G[i][j]>0) {\n int m = G[i][j]; //this is the candidate # being removed from P[][][]\n \n //remove m as candidate, from P[i][j][m] for rows\n for(int ii=1; ii<G.length; ii++){\n if (ii!=i){ //skip the current box\n if (P[ii][j][0]>1 && P[ii][j][m]>0){ //only change candidate values if it's not filled\n P[ii][j][m] = 0; //set candidate value to 0\n P[ii][j][0] -= 1; //subtract 1 from total candidates for this cell\n }\n }\n }\n \n //remove m from P[i][j][m] for columns\n for(int jj=1; jj<G.length; jj++){\n if (jj!=j){ //skip the current box\n if (P[i][jj][0]>1 && P[i][jj][m]>0){ //only change candidate values if it's not filled\n P[i][jj][m] = 0; //set candidate value to 0\n P[i][jj][0] -= 1; //subtract 1 from total candidates for this cell\n }\n }\n }\n \n //remove m from P[i][j][m] for box!\n int I = getAnchor(i);\n int J = getAnchor(j);\n for(int s=I; s<=I+2; s++){\n for(int t=J; t<=J+2; t++){\n if((s!=i)||(t!=j)){\n if (P[s][t][0]>1 && P[s][t][m]>0){ //only change candidate values if it's not filled\n P[s][t][m] = 0; //set candidate value to 0\n P[s][t][0] -= 1; //subtract 1 from total candidates for this cell\n }\n }\n }\n }\n \n }\n }\n }\n }", "static int knapSack(int totalWeight, int wt[], int val[], int n) {\n\t\t// Base Case\n\t\tif (n == 0 || totalWeight == 0)\n\t\t\treturn 0;\n\n\t\t// If weight of the nth item is more than Knapsack capacity W, then\n\t\t// this item cannot be included in the optimal solution\n\t\tif (wt[n - 1] > totalWeight)\n\t\t\treturn knapSack(totalWeight, wt, val, n - 1);\n\n\t\t// Return the maximum of two cases:\n\t\t// (1) nth item included\n\t\t// (2) not included\n\t\telse\n\t\t\treturn max(\n\t\t\t\t\tval[n - 1]\n\t\t\t\t\t\t\t+ knapSack(totalWeight - wt[n - 1], wt, val, n - 1),\n\t\t\t\t\tknapSack(totalWeight, wt, val, n - 1));\n\t}", "static int[][] packD(int n, int[] from, int[] to, int max) {\n /* This part of code is picked up from \"uwi\" previous submission */\n int[][] g = new int[n][];\n int[] p = new int[n];\n for (int i = 0; i < max; i++) p[from[i]]++;\n for (int i = 0; i < n; i++)\n g[i] = new int[p[i]];\n for (int i = 0; i < max; i++) {\n g[from[i]][--p[from[i]]] = to[i];\n }\n return g;\n }", "public static boolean checkPath(int[][] bs, int i) {\n\t\tArrayList<Integer> temp_cP = new ArrayList<Integer>();\n\t\tSet<Integer> temp_setcP = new HashSet<Integer>();\n\t\tboolean denoter = true;\n\t\twhile (i == 3) {\n\t\t\tfor (int k = 0; k < i; k++) {\n\t\t\t\tfor (int e = 0; e < 3; e++) {\n\t\t\t\t\ttemp_cP.add(e, bs[k][e]);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\tdenoter = false;\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\t\t\t\ttemp_cP.clear();\n\t\t\t\ttemp_setcP.clear();\n\n\t\t\t\tfor (int k = 0; k < i; k++) {\n\t\t\t\t\tfor (int e = 3; e < 6; e++) {\n\t\t\t\t\t\ttemp_cP.add(bs[k][e]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\t\tdenoter = false;\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile (i == 6) {\n\n\t\t\tfor (int k = 3; k < i; k++) {\n\t\t\t\tfor (int e = 0; e < 3; e++) {\n\t\t\t\t\ttemp_cP.add(e, bs[k][e]);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\tdenoter = false;\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\t\t\t\ttemp_cP.clear();\n\t\t\t\ttemp_setcP.clear();\n\n\t\t\t\tfor (int k = 3; k < i; k++) {\n\t\t\t\t\tfor (int e = 3; e < 6; e++) {\n\t\t\t\t\t\ttemp_cP.add(bs[k][e]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\t\tdenoter = false;\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn denoter;\n\t}", "public int solution(int[] A) {\n int sum = 0;\n int max = 0;\n Map<Integer, Integer> countMap = new HashMap<>();\n for (int i = 0; i < A.length; i++) {\n int val = Math.abs(A[i]);\n sum += val;\n A[i] = val;\n max = Math.max(val, max);\n countMap.put(val, countMap.getOrDefault(val, 0) + 1);\n }\n int[] dp = new int[sum + 1];\n for (int i = 1; i < dp.length; i++) {\n dp[i] = -1;\n }\n int[] count = new int[max + 1];\n for (Map.Entry<Integer, Integer> countMapEntry : countMap.entrySet()) {\n count[countMapEntry.getKey()] = countMapEntry.getValue();\n }\n for (int i = 1; i < max + 1; i++) {\n if (count[i] > 0) {\n for (int j = 0; j < dp.length; j++) {\n if (dp[j] >= 0) {\n dp[j] = count[i];\n } else if (j >= i && dp[j - i] > 0) {\n dp[j] = dp[j - i] - 1;\n }\n }\n }\n }\n int half = sum / 2;\n for (int i = half; i >= 0; i--) {\n if (dp[i] >= 0) {\n return Math.abs((sum - i) - i);\n }\n }\n return -1;\n }", "static int webknapSackDyna(int W, int wt[], int val[], int n) {\n int i, w;\n int K[][] = new int[n + 1][W + 1];\n //K[i][w] represents the max value for weight w by using i elements\n // row i represents using i values\n // col w represents the current weight\n // Build table K[][] in bottom up manner\n // n is the number of values available to use\n // for each available value\n for (i = 0; i <= n; i++) {\n // for each weight until target weight is achieved\n for (w = 0; w <= W; w++) {\n\n if (i == 0 || w == 0)\n K[i][w] = 0;\n // if the previous weight is still less than the target weight it can potentially be included\n // to calculate the max val for current weight\n else if (wt[i - 1] <= w)\n // val[i-1]: value for the i th weight\n // K[i-1][w-wt[i-1]]: max value using i-1 values to achieve weight target weight - wt of i-1 element\n // val[i-1] + K[i-1][w-wt[i-1]] -> used ith weight add val[i-] and use the remaining i-1 weights to\n // get to the target weight w-wt of ith element -> wt-wt[i-1]\n // K[i-1][w] => max value using i-1 elements to achieve weight w i.e. not using ith element\n K[i][w] = max(val[i - 1] + K[i - 1][w - wt[i - 1]], K[i - 1][w]);\n // wt[i-1] > w\n else\n K[i][w] = K[i - 1][w];\n }\n }\n\n return K[n][W];\n }", "public static void main(String[] args) {\n\t\tint cost[][] = { {1, 2, 3},\n {4, 8, 2},\n {1, 5, 3} };\n\t\tint len=3;\n\t\tdp=new int[len+1][len+1];\n\t\tfor(int i=0;i<len;++i)\n\t\t\tArrays.fill(dp[i], Integer.MAX_VALUE);\n\t\n\tSystem.out.println(getMinCost(cost, 2, 2, len));\n\tprintPath(cost, 2, 2);\n\t}", "public boolean canPartition(int[] nums) {\n\t\tint sum = 0;\n\t\tfor (int num : nums) {\n\t\t\tsum += num;\n\t\t}\n\n\t\tif ((sum & 1) == 1) {\n\t\t\treturn false;\n\t\t}\n\t\tsum /= 2;\n\n\t\tint n = nums.length;\n\t\tboolean[][] dp = new boolean[n + 1][sum + 1];\n\t\tfor (int i = 0; i < dp.length; i++) {\n\t\t\tArrays.fill(dp[i], false);\n\t\t}\n\n\t\tdp[0][0] = true;\n\n\t\tfor (int i = 1; i < n + 1; i++) {\n\t\t\tdp[i][0] = true;\n\t\t}\n\t\tfor (int j = 1; j < sum + 1; j++) {\n\t\t\tdp[0][j] = false;\n\t\t}\n\n\t\tfor (int i = 1; i < n + 1; i++) {\n\t\t\tfor (int j = 1; j < sum + 1; j++) {\n\t\t\t\tif (j >= nums[i - 1]) {\n\t\t\t\t\tdp[i][j] = (dp[i - 1][j] || dp[i - 1][j - nums[i - 1]]);\n\t\t\t\t} else {\n\t\t\t\t\tdp[i][j] = dp[i - 1][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn dp[n][sum];\n\t}", "private int DP(int dp)\n\t{\n\t\tint result = DP(DENSITY, dp);\n\t\treturn result;\n\t}", "public static int countUniqueCombinationsDP(int score) {\r\n /*\r\n * Return Type of DP array is same as return type of the recursive function\r\n * Dimensions of DP array is the number of non constant parameters to the recursive function\r\n */\r\n \t\r\n \t/*\r\n \t * Fn(s) = Fn(s-7) [if(s>=7)] + Fn(s-3) [if(s>=3)] + Fn(s-2) [if(s>=2)]\r\n\t\t * Fn(0) = 1\r\n\t\t * \r\n * F(11) = F(4) + F(8) + F(9)\r\n */\r\n \tint[][] comb = new int[score + 1][3];\r\n // int[] points = {2,3,7};\r\n \r\n // Halting Conditions\r\n comb[0][0] = 1;\r\n comb[0][1] = 1;\r\n comb[0][2] = 1;\r\n \r\n /*\r\n * Loop goes in the direction opposite to that of the recursion \r\n */\r\n for (int s = 1; s <= score; ++s) {\t\t// s is the score of the recursion\r\n \tfor (int p = 0; p < 3; ++p) {\r\n\t \tint total = 0;\r\n\t if (s >= 2 && p == 0)\r\n\t \ttotal = total + comb[s - 2][0];\r\n\t if (s >= 3 && p <= 1)\r\n\t \ttotal = total + comb[s - 3][1];\r\n\t if (s >= 7)\t\t\t// No need of condition p<=2; as it will always be true\r\n\t \ttotal = total + comb[s - 7][2];\r\n\t comb[s][p] = total;\r\n \t}\r\n }\r\n\r\n return comb[score][0];\r\n }", "private long solveHelper(BitSet S){\n if(dp.containsKey(S))\n return dp.get(S);\n\n boolean allset = true;\n for(int i=0; i<SLen; ++i)\n allset = allset && S.get(i);\n\n if(allset)\n return 0;\n\n long minflip = INF;\n\n int idx = 0;\n for(; idx<=SLen-K; ++idx)\n if(!S.get(idx))\n break;\n\n if(idx <= SLen-K){\n track.add(S);\n S.flip(idx, idx+K);\n minflip = Math.min(minflip, solveHelper(S) + 1);\n }\n\n /*for(; idx<=SLen-K; ++idx){\n S.flip(idx, idx+K);\n if(!track.contains(S)) {\n\n track.remove(S);\n }\n S.flip(idx, idx+K);\n }*/\n\n dp.put(S, minflip);\n return minflip;\n }", "public double getelement(int j, int i) {\r\n \r\n if (i < 0 || j < 0) //i and C must be greater than zero \r\n return 0;\r\n Obj o; \r\n o = objects.get(i);// returns element Number from the list\r\n double add,dontadd,element = storage[j][i];\r\n if (element == -1) { //not stored yet \r\n if (o.weight > j) \r\n add = -1; //if the weight is greater than the capacity, we can't add it\r\n else \r\n add = o.price + getelement(j - (int) o.weight, i - 1); //remove the weight of the added object, and recurse to add the rest and calculate the price after addition\r\n dontadd = getelement(j, i - 1); //we don't choose the element\r\n element = Math.max(add, dontadd);//compare what is the best move, taking the element or leaving it \r\n storage[j][i] = element; // Memoize the element\r\n }\r\n \r\n return element;\r\n }", "public static int calculate()\n {\n final List<Integer> oneToNine = IntStream.iterate(1, n -> n + 1)\n .limit(9)\n .boxed()\n .collect(toList());\n final List<List<Integer>> permutations = HeapPermutations.of(oneToNine);\n\n // System.out.println(permutations.size());\n //2- for each permutation\n // a. find all breaking 2 points to break\n // b. check first two sections' third is equal to the last section\n // c. if yes, add combintion to result, otherwise skip\n\n return permutations.stream()\n .flatMap(toTriples()) //find all combinations xx X yy = zz\n .filter(isPandigital()) // allow pandigital tripes through\n .map(Triple::getThird) // get the product\n .distinct() // get distinct products only given the problem statement does not allow repetition (see hint)\n .mapToInt(i -> i) // convert to primitive\n .sum(); // and finally get the sum\n }", "public void\tgetData() throws IOException{\n\t\tint i,j, val;\n\t\tint profitOfItems[], weight[];\n\t\t\n\t\tSystem.out.println(\"Enter the weight of the Knapsack ( must be positive):\");\n\t\tknapsackWeight = KnapsackAlgorithmImplementation.getNumber();\n\t\t\n\t\tSystem.out.println(\"\\nEnter the number of items to put in knapsack ( must be positive):\");\n\t\tnumberOfItems = KnapsackAlgorithmImplementation.getNumber();\n\t\t\n\t\tprofitOfItems = new int[numberOfItems + 1];\n\t\tfor ( i = 1 ; i <= numberOfItems ; i++) {\n\t\t\tSystem.out.println(\"Enter profit of item \" + String.valueOf(i));\n\t\t\tprofitOfItems[i] = KnapsackAlgorithmImplementation.getNumber();\n\t\t}\t\n\t\t\n\t\tweight = new int[numberOfItems + 1];\n\t\tfor ( i = 1 ; i <= numberOfItems ; i++) {\n\t\t\tSystem.out.println(\"Enter weight of item \" + String.valueOf(i));\n\t\t\tweight[i] = KnapsackAlgorithmImplementation.getNumber();\n\t\t}\t\n\t\t\n\t\tProfit = new int[numberOfItems + 1][knapsackWeight + 1];\n\t\tDir\t = new int[numberOfItems + 1][knapsackWeight + 1];\n\t\t\n\t\tfor ( j = 0 ; j <= knapsackWeight; j++) {\n\t\t\tProfit[0][j] = 0;\t\n\t\t}\t\n\t\tfor ( i = 0 ; i <= numberOfItems; i++) {\n\t\t\tProfit[i][0] = 0;\t\n\t\t}\n\t\tfor ( i = 1 ; i <= numberOfItems; i++) { \n\t\t\tfor ( j = 1 ; j <= knapsackWeight; j++) {\n\t\t\t\tif ( weight[i] > j) {\n\t\t\t\t\tProfit[i][j] = Profit[i-1][j];\n\t\t\t\t\tDir[i][j] = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tval = profitOfItems[i] + Profit[i-1][j - weight[i]];\n\t\t\t\t\tProfit[i][j] = Find_Max( Profit[i-1][j] , val); \n\t\t\t\t\tif ( Profit[i][j] == val)\n\t\t\t\t\t\tDir[i][j] = 2;\n\t\t\t\t\telse\n\t\t\t\t\t\tDir[i][j] = 1;\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Maximum profit that can fit in the knapsack is :\" + Profit[numberOfItems][knapsackWeight]);\n\t\tPrint_KnapsackItems(Dir,weight);\t\t\n\t}", "public static void main(String[] args){ w = the total weight\n\t\t// i = item i\n\t\t// m[i, w] = maximum value attained with weight <= w using items up to i\n\t\t//\n\t\t// recurrence relation:\n\t\t// m[0, w] = 0, if there's zero items, the sum is zero\n\t\t// m[i, w] = m[i-1, w], if w(i) > w, the new item's weight > current weight limit\n\t\t// m[i, w] = max(m[i-1, w],\n\t\t// \t\t\t\t m[i-1, w-w(i)] + v(i), if w(i) <= w\n\t\t//\n\t\t//\n\t\tArrayList<Item> items = new ArrayList<Item>();\n\n\t\titems.add(new Item(10, 60));\n\t\titems.add(new Item(20, 100));\n\t\titems.add(new Item(30, 120));\n\n\t\tSystem.out.println(knapsack(items.size()-1, 50, items));\n\t}", "public int solution2(int[] nums, int k) {\n PriorityQueue<Integer> pq = new PriorityQueue<Integer>();\n \n for (int i : nums) {\n pq.offer(i);\n \n if (pq.size() > k) {\n pq.poll();\n }\n }\n \n \n return pq.peek();\n }", "private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }", "static int recurseMaxStolenValue(int[] values,int i){\r\n\t if(i >= values.length) return 0;\r\n\t if(i == values.length -1) return values[values.length-1];\r\n\t \r\n\t return Math.max( values[i] + recurseMaxStolenValue(values,i+2)\r\n\t ,values[i+1] + recurseMaxStolenValue(values,i+3)\r\n\t );\r\n\t /*\r\n\t *Approach #2 for Recursion --> This approach won't work to convert to DP,but recursion yields right result\r\n\t */\r\n\t \r\n\t /*\r\n\t if(i >= values.length) return 0; \r\n\t int result1 = values[i]+recurseMaxStolenValue(values,i+2);\r\n\t int result2 = recurseMaxStolenValue(values,i+1);\r\n\t return (Math.max(result1,result2));\r\n\t */\r\n\t \r\n\t }", "public static int mergeStones(int[] stones, int K) {\n int N = stones.length;\n if ((N-1)%(K-1)!=0) return -1;\n\n // dp[i][j] stores from i to j if can merge, what is the min cost, if (Len(j, i)-1)%(K-1) == 0 that means it can merge to 1 pile, otherwise, we only calculate\n // (from i(start point) to the farest point which can finally merge to 1 pile)'s merge cost\n int[][] dp = new int[N][N];\n\n int[] sum = new int[N+1];\n for (int i=0; i<N; i++) sum[i+1] = sum[i]+stones[i];\n\n for (int L=K; L<=N; L++) { // L is the length of small range\n // i is the subPiles is start point\n for (int i=0; i<=N-L; i++) {\n // j is the end point, L 不一定是K的倍数\n int j=i+L-1;\n dp[i][j]=Integer.MAX_VALUE;\n\n // each time we need keep from i to m is a \"can-merge-to-one-pile\" piles set, so m step is K-1; because each time besides i, we add(K-1) to the piles\n // [i, i+K-1] length is K\n // 把区间[i, j] split to [i, m] and [m+1,j], the left range must be merged to one pile, the right one maybe can or can not\n for (int m=i; m<j; m+=K-1) {\n dp[i][j]=Math.min(dp[i][j], dp[i][m] + dp[m+1][j]);\n }\n if ((j-i)%(K-1)==0) {\n dp[i][j]+=sum[j+1] - sum[i]; // if [i, j] can merge to 1 pile, we need finally add each elem from i to j\n System.out.println(dp[i][j]);\n }\n }\n }\n\n return dp[0][N-1];\n }", "public void compressPairsGreedy(final List<GPairRecord<S, S>> pairApperances, final List<GPairRecord<S, S>> crossingPairs, final int largestTerminal) {\n\n BitSet bitSet = new BitSet(largestTerminal);\n BitSet leftSigma = new BitSet(largestTerminal);\n BitSet rightSigma = new BitSet(largestTerminal);\n\n List<List<Pair<S, Long>>> right = new ArrayList<>(largestTerminal);\n List<List<Pair<S, Long>>> left = new ArrayList<>(largestTerminal);\n\n // initial tables left and right\n for(int i = 0; i < largestTerminal; i++) {\n right.add(new ArrayList<Pair<S, Long>>());\n left.add(new ArrayList<Pair<S, Long>>());\n }\n\n // fill tables with k_{ab} and k_{ba}\n for(GPairRecord<S, S> record : pairApperances) {\n right.get(record.pair.a.getId()).add(new Pair<S, Long>(record.pair.b, record.getAppearences()));\n left.get(record.pair.b.getId()).add(new Pair<S, Long>(record.pair.a, record.getAppearences()));\n }\n\n for(GPairRecord<S, S> record : crossingPairs) {\n bitSet.set(record.pair.a.getId());\n bitSet.set(record.pair.b.getId());\n }\n\n int[] countR = new int[largestTerminal];\n int[] countL = new int[largestTerminal];\n\n for(int a = 0; a < bitSet.size(); a++) {\n if(bitSet.get(a)) {\n int[] count = null;\n if(countR[a] >= countL[a]) {\n leftSigma.set(a);\n count = countL;\n }\n else {\n rightSigma.set(a);\n count = countR;\n }\n\n Iterator<Pair<S, Long>> rightIterator = right.get(a).iterator();\n while (rightIterator.hasNext()) {\n Pair<S, Long> entry = rightIterator.next();\n count[entry.a.getId()] += entry.b;\n rightIterator.remove();\n }\n\n Iterator<Pair<S, Long>> leftIterator = left.get(a).iterator();\n while (leftIterator.hasNext()) {\n Pair<S, Long> entry = leftIterator.next();\n count[entry.a.getId()] += entry.b;\n leftIterator.remove();\n }\n }\n }\n\n long sumL = 0;\n long sumR = 0;\n\n // Sum up appearances: O(|G|)\n for(GPairRecord<S, S> record : pairApperances) {\n Pair<S,S> pair = record.pair;\n if(leftSigma.get(pair.a.getId()) && rightSigma.get(pair.b.getId())) {\n sumL += record.getAppearences();\n }\n\n if(rightSigma.get(pair.a.getId()) && leftSigma.get(pair.b.getId())) {\n sumR += record.getAppearences();\n }\n }\n\n // swap\n if(sumL < sumR) {\n BitSet tmp = rightSigma;\n rightSigma = leftSigma;\n leftSigma = tmp;\n }\n\n Iterator<GPairRecord<S, S>> pairRecordIterator = crossingPairs.iterator();\n while (pairRecordIterator.hasNext()) {\n Pair<S, S> pair = pairRecordIterator.next().pair;\n if(!leftSigma.get(pair.a.getId()) || !rightSigma.get(pair.b.getId())) {\n pairRecordIterator.remove();\n }\n }\n final BitSet fixedRightSigma = rightSigma;\n final BitSet fixedLeftSigma = leftSigma;\n\n // remove pairs we don't wanna compress: O(|G|)\n final List<GPairRecord<S,S>> uncrossedPairs = crossingPairs.stream()\n .filter(rec -> !rec.isCrossingPair())\n .filter(rec -> wordProperties.isPairAt(rec.node, rec.pair))\n .filter(rec -> fixedLeftSigma.get(rec.pair.a.getId()) && fixedRightSigma.get(rec.pair.b.getId()))\n .collect(Collectors.toList());\n\n // gather the uncrossed ones: O(|G|)\n if(!uncrossedPairs.isEmpty()) {\n final List<GPairRecord<S,S>> trash = new LinkedList<>();\n final Function<Pair<S, S>, Consumer<GPairRecord<S, S>>> consumerFunction = p ->\n {\n if(fixedLeftSigma.get(p.a.getId()) && fixedRightSigma.get(p.b.getId())) {\n return uncrossedPairs::add;\n }\n else {\n return trash::add;\n }\n };\n\n BiFunction<S, Integer, Boolean> doGreedyLeftPop = (nonTerminal, j) -> doLeftPop(nonTerminal, head -> head.isTerminal() && fixedRightSigma.get(head.getId()));\n\n BiFunction<S, Integer, Boolean> doGreedyRightPop = (nonTerminal, j) -> doRightPop(nonTerminal, tail -> tail.isTerminal() && fixedLeftSigma.get(tail.getId()));\n\n //pop: O(n+m)\n pop(phase, nonTerminal -> doGreedyLeftPop.apply(nonTerminal, 0), nonTerminal -> doGreedyRightPop.apply(nonTerminal, 0), consumerFunction);\n\n // O(|G|)\n sortPairs(uncrossedPairs);\n\n // O(|G|)\n compressUncrossedPairs(uncrossedPairs);\n }\n }", "public static int solve() {\n FactorizationSieve sieve = new FactorizationSieve(LIMIT + 1);\n int[] abundants = new int[LIMIT + 1];\n int k = 0;\n\n for (int n = 1; n <= LIMIT; n++)\n if (sieve.sigma(1, n) > n + n)\n abundants[k++] = n;\n\n // Sum pair of abundant numbers\n BitSet absums = new BitSet(LIMIT + 1);\n for (int i = 0; i < k; i++) {\n for (int j = i; j < k; j++) {\n int n = abundants[i] + abundants[j];\n if (n > LIMIT)\n break;\n absums.set(n);\n }\n }\n\n // Find all numbers that cannot be written as the sum of two abundant numbers\n int res = 0;\n for (int n = 1; n <= LIMIT; n++)\n if (!absums.get(n))\n res += n;\n return res;\n }", "public int minCostClimbingStairs(int[] cost) {\n // We initialize an array of size = cost, and it means the minimun cost of reaching n^th stair\n int[] dp = new int[cost.length];\n // We assign values to the first 2 numbers in the array because it can´t be smaller than 3\n dp[0] = cost[0];\n dp[1] = cost[1];\n // We iterate from n=2 to n-1, and in each position we save the min\n // value to reach the stair, the MIN is (dp[i-1] + cost[i] , dp[i-2] + cost[i]\n // that is so that the min way of reaching that stair is either using the n-1 or n-2\n for (int i = 2; i < cost.length; i++) {\n dp[i] = Math.min(dp[i - 1] + cost[i], dp[i - 2] + cost[i]);\n }\n\n // We return the min value of the last 2 stairs because both can reach the end\n return Math.min(dp[cost.length - 1], dp[cost.length - 2]);\n\n\t\t /*\n\t\t\t cost[1,100,1,1,1,100,1,1,100,1]\n\t\t 1.- Imagine this is the array\n\t\t\t dp[]\n\t\t 2.- We add the first two values\n\t\t\t dp[1,100]\n\t\t 3.- Iterate form 2 to n\n\t\t\t This is a representation of the first one\n\t\t dp[2] = Math.min(1+1, 100+1)\n\t\t dp[2] = Math.min(2,101)\n\t\t dp[2] = 2\n\t\t dp[1,100,2]\n\t\t\t After the for, this is how it should look\n\t\t dp[1,100,2,3,3,103,4,5,105,6]\n\t\t 4.- Select the min between last 2 because both can reach last step\n\t\t\treturn min (105,6)\n\t\t\treturn 6\n\n\t\t\tIt should have a space complexity of O(n) becuase we´re using an array of n size\n\t\t\tThe time complexity should also be O(n) because we have to iterate through all the array once\n\n\t\t */\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"dp:\");\n\t\tDP dp=new DP();\n\t\tint[] nums={4,2,5,6,2,1,1};\n\t\tSystem.out.println(\"rob:\"+dp.rob(nums));\n\t\tSystem.out.println(\"maxSubArray:\"+dp.maxSubArray(nums));\n\t\tint[] nums1={7,1,5,3,6,4};\n\t\tint[] nums2={7,6,4,3,1};\n\t\tSystem.out.println(\"maxProfit:\"+dp.maxProfit(nums1));\n\t\tSystem.out.println(\"maxProfit:\"+dp.maxProfit(nums2));\n\t\tSystem.out.println(\"maxProfit_2:\"+dp.maxProfit_2(nums1));\n\t\tSystem.out.println(\"maxProfit_2:\"+dp.maxProfit_2(nums2));\n\t\tSystem.out.println(\"climbStairs:\"+dp.climbStairs(4));\n\t\tDP obj=new DP(nums2);\n\t\tSystem.out.println(\"sumRange:\"+dp.sumRange(0,2));\n\t\tint[] nums3={1,2,3};\n\t\tSystem.out.println(\"combinationSum4:\"+dp.combinationSum4(nums3,4));\n\t\tint[] nums4={1,2,3,0,2,8};\n\t\t\n\t\tSystem.out.println(\"maxProfit1:\"+dp.maxProfit1(nums4));\n\t\tSystem.out.println(\"maxProfit2:\"+dp.maxProfit2(nums4));\n\t\tint[] nums5={23, 2, 6, 4, 7};\n\t\tSystem.out.println(\"checkSubarraySum:\"+dp.checkSubarraySum(nums5,6));\n\t\tSystem.out.println(\"checkSubarraySum_2:\"+dp.checkSubarraySum_2(nums5,6));\n\t\tSystem.out.println(\"numDecodings:\"+dp.numDecodings(\"10\"));\n\t}", "public static void main(String[] args) {\n \tlong[] fact = new long[MAXDOMINOES+1];\r\n \tfact[0] = 1;\r\n \tfor (int i=1; i<=MAXDOMINOES; i++)\r\n \t\tfact[i] = (fact[i-1]*i)%MOD;\r\n\r\n Scanner stdin = new Scanner(System.in);\r\n int numCases = stdin.nextInt();\r\n\r\n // Process each case.\r\n for (int loop=0; loop<numCases; loop++) {\r\n\r\n // Read in this case.\r\n n = stdin.nextInt();\r\n list = new int[n][2];\r\n for (int i=0; i<n; i++)\r\n for (int j=0; j<2; j++)\r\n list[i][j] = stdin.nextInt();\r\n\r\n // Special case - if all the dominoes are the same, all orderings work.\r\n if (same(list)) {\r\n \tSystem.out.println(fact[n]);\r\n \tcontinue;\r\n }\r\n\r\n // dp[mask][last][orientation] will store the number of permutations using the dominoes indicated by\r\n // mask, with the last domino last facing in the direction dictated by orientation. If orientation is 0,\r\n // this is the original input orientation, if it is 1, it's flipped.\r\n long[][][] dp = new long[1<<n][n][2];\r\n\r\n // Always 1 way to place one domino in a fixed orientation.\r\n for (int i=0; i<n; i++) {\r\n dp[1<<i][i][0] = 1;\r\n dp[1<<i][i][1] = 1;\r\n }\r\n\r\n // Outer DP loop, solve all problem instances for each subset of dominoes.\r\n for (int mask=3; mask<(1<<n); mask++) {\r\n\r\n // Now, try each domino as the last domino in mask.\r\n for (int last=0; last<n; last++) {\r\n\r\n // Not a valid state.\r\n if ((mask&(1<<last)) == 0) continue;\r\n\r\n int prevmask = mask - (1<<last);\r\n\r\n for (int i=0; i<n; i++) {\r\n\r\n if ((prevmask&(1<<i)) == 0) continue;\r\n\r\n // Both i and last are in regular orientation.\r\n if (list[i][1] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][0])%MOD;\r\n\r\n // Here i is flipped and last is regular.\r\n else if (list[i][0] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][1])%MOD;\r\n\r\n // i is regular but last is flipped.\r\n if (list[i][1] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][0])%MOD;\r\n\r\n // Both i and last are flipped.\r\n else if (list[i][0] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][1])%MOD;\r\n }\r\n } // end last loop\r\n } // end mask loop\r\n\r\n // Sum up result - all ways to place all dominoes over all possible last dominoes in either orientation.\r\n // Since we screened out our special case, no over-counting will occur here.\r\n long res = 0L;\r\n for (int last=0; last<n; last++) {\r\n \tres = (res + dp[(1<<n)-1][last][0])%MOD;\r\n \tif (list[last][0] != list[last][1])\r\n \t\tres = (res + dp[(1<<n)-1][last][1])%MOD;\r\n }\r\n System.out.println(res);\r\n }\r\n }", "public int numSolutions(int N, int M) {\n HashMap<Integer, Integer> dp = new HashMap<Integer, Integer>();\n dp.put(0, 1);\n for (int i = 0; i < N; ++i) {\n for (int j = 0; j < M; ++j) {\n HashMap<Integer, Integer> nDp = new HashMap<Integer, Integer>();\n for (Integer key : dp.keySet()) {\n int leftCell = getCell(key, j - 1);\n int upCell = getCell(key, j);\n int count = dp.get(key);\n if (upCell != 0) {\n // This is the last chance to fulfill upCell.\n if (upCell == 1 || upCell == 3) {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n } else {\n // Paint this cell.\n int current = 2 + (leftCell == 0 ? 0 : 1);\n int newKey = setCell(key, j, current);\n if (leftCell != 0) {\n newKey = setCell(newKey, j - 1, leftCell + 1);\n }\n addValue(nDp, newKey, count);\n }\n } else {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n // Paint this cell.\n if (leftCell == 0) {\n newKey = setCell(key, j, 1);\n } else {\n newKey = setCell(key, j - 1, leftCell + 1);\n newKey = setCell(newKey, j, 2);\n }\n addValue(nDp, newKey, count);\n }\n }\n dp = nDp;\n }\n }\n int result = 0;\n for (Integer key : dp.keySet()) {\n boolean valid = true;\n for (int i = 0; i < M; ++i) {\n int current = getCell(key, i);\n if (current == 2 || current == 4) {\n valid = false;\n break;\n }\n }\n if (valid) {\n result = (result + dp.get(key)) % MOD;\n }\n }\n return result;\n }", "public boolean isFull(int i, int j){\n\t\t\n\t\tif (i <= 0 || i > N) throw new java.lang.IndexOutOfBoundsException(\"row index i out of bounds\");\n\t\tif (j <= 0 || j > N) throw new java.lang.IndexOutOfBoundsException(\"row index j out of bounds\");\n\t\t\n\t\tif(isPathological)\n\t\t\treturn isOpen(i, j);\n\t\t\n\t\treturn (quickUnion.find((i-1)*N+j) == quickUnion.find(0) && (quickUnionBackwash.find((i-1)*N+j) == quickUnionBackwash.find(0))); \t\n\t}", "public int jump(int[] nums) {\n int[] dp = new int[nums.length];\n for(int i=1;i<nums.length;i++) {\n dp[i] = Integer.MAX_VALUE;\n }\n for(int start =0 ; start < nums.length-1 ;start++){\n for(int end=start+1; end<=start+nums[start] && end<nums.length; end++){\n dp[end] = Math.min(dp[end], dp[start]+1);\n }\n }\n return dp[nums.length-1];\n }", "public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int[] arr = new int[n];\n \n for(int i = 0; i< n; i++){\n arr[i] = scn.nextInt();\n }\n \n int[] dp = new int[n];\n dp[0] = 1;\n int maxLen = 1;\n // traversing from 1 to jth position starting from 0\n for(int i = 1; i<n; i++){\n for(int j = 0; j<i; j++){\n \n if(arr[i] > arr[j]){\n dp[i] = Math.max(dp[i],dp[j]);\n }\n }\n dp[i] += 1;\n \n if(maxLen < dp[i]){\n maxLen = dp[i];\n }\n }\n System.out.println(maxLen);\n //System.out.println(Arrays.toString(dp));\n\n }", "public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {\n int[][] g = new int[n][n];\n \n for(int[] f : flights){\n int start = f[0];\n int end = f[1];\n int price = f[2];\n g[start][end] = price;\n }\n \n PriorityQueue<int[]> pq = new PriorityQueue<>((a,b)->a[0]-b[0]);\n pq.offer(new int[]{0,src,K+1});\n while(!pq.isEmpty()){\n int[] curr = pq.poll();\n int currPrice = curr[0];\n int currPoint = curr[1];\n int stepsRemain = curr[2];\n \n // if this point is destination, finish\n if(currPoint == dst) return currPrice;\n \n if(stepsRemain >0){\n // Add all reachable neighbors\n for(int i=0; i<n; i++){\n if(g[currPoint][i] != 0){\n int nextPrice = g[currPoint][i];\n pq.offer(new int[]{currPrice+nextPrice, i, stepsRemain-1});\n }\n } \n } \n }\n return -1;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n+1];\n\t\tint[] dp = new int[n+1];\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tdp[i] = Math.max(dp[i], dp[i-j] + arr[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[arr.length-1]);\n\t}", "static int knapsack(int W, int wt[], int val[], int n)\n\t{\n\t\t// base case\n\t\tif (n==0 || W==0)\n\t\t\treturn 0;\n\t\t\n\t\t// If weight of nth item is more than knapsack capacity W, then\n\t\t// this item cannot be included in optimal solution\n\t\tif (wt[n-1] > W)\n\t\t\treturn knapsack(W, wt, val, n-1);\n\t\t\n\t\t// return maximum of two cases\n\t\t// nth item included\n\t\t// not included\n\t\telse return max(val[n-1] + knapsack(W-wt[n-1],wt,val,n-1),\n\t\t\t\tknapsack(W,wt,val,n-1)\n\t\t\t\t);\n\t}", "public void solve_base(Items items,Knapsack knapsack) {\n iteration=0;\n best_value=-1;\n System.out.println(\"iteration:\"+iteration+\" solve_begin_time:\"+System.currentTimeMillis());\n this.solve(items,knapsack);\n System.out.println(\"iteration:\"+iteration+\" solve_end_time:\"+System.currentTimeMillis());\n }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }" ]
[ "0.693935", "0.67657965", "0.64821845", "0.613769", "0.61069", "0.6104213", "0.60090226", "0.5987277", "0.5981698", "0.58664995", "0.58373785", "0.5801762", "0.57742274", "0.57737064", "0.5765083", "0.57595974", "0.5701496", "0.5693168", "0.56875426", "0.5672296", "0.56466293", "0.562421", "0.5615876", "0.55949306", "0.5545479", "0.5542589", "0.5501122", "0.54947823", "0.5486262", "0.5457257", "0.54305166", "0.5427387", "0.54137087", "0.5408164", "0.54040873", "0.5394777", "0.5389797", "0.5367872", "0.53479606", "0.5344488", "0.53008705", "0.528723", "0.5261693", "0.52569336", "0.5245609", "0.52347517", "0.52334994", "0.5222199", "0.5213688", "0.5208662", "0.52042466", "0.5203707", "0.52023804", "0.5190415", "0.51871276", "0.51837826", "0.5182337", "0.5178052", "0.5176422", "0.51672953", "0.5163702", "0.516311", "0.51610404", "0.5155831", "0.5142987", "0.5139542", "0.5129304", "0.5121392", "0.51153225", "0.5112465", "0.51067084", "0.50914097", "0.50829786", "0.5078502", "0.50766516", "0.5075211", "0.50745124", "0.50731266", "0.50696", "0.5068203", "0.5057855", "0.505565", "0.5050886", "0.50497174", "0.5049582", "0.50472873", "0.50415605", "0.5035279", "0.50322956", "0.5027613", "0.5025721", "0.50198364", "0.501654", "0.5008063", "0.5005625", "0.50028384", "0.50015587", "0.5000344", "0.49943408", "0.49882293" ]
0.5250029
44
Adds the expected reading to all devices.
public void addExpectedReadingToAllDevices() throws SmartPvException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addReading(Reading newReading) {\n\t\tint i = 0;\n\t\t\n\t\twhile (_readings[i] != null) {\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t_readings[i] = newReading;\n\t}", "public void addReading(Reading r) {\n readingList.add(r);\n }", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public void enableReading(){\n active = true;\n registerBroadcastReceiver();\n }", "private void ensureRead() throws IOException, BadDescriptorException {\n if (reading) return;\n flushWrite();\n buffer.clear();\n buffer.flip();\n reading = true;\n }", "private void ackRead() throws SIMException\n\t\t{\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\t// Read a byte from memory\n\t\t\t\tif ((mode & MODE_TRANSFER_MASK) == MODE_TRANSFER_READ)\n\t\t\t\t{\n\t\t\t\t\tint v = transferFromMemory(this,base.getValue());\n\t\t\t\t\trequestRead.setDmaValue(v);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Increment / decrement address if requested\n\t\t\t\tif (hold == false)\n\t\t\t\t{\n\t\t\t\t\tif ((mode & MODE_DECREMENT) != 0)\n\t\t\t\t\t\tbase.decrement();\n\t\t\t\t\telse\n\t\t\t\t\t\tbase.increment();\n\n\t\t\t\t}\n\n\t\t\t\tif (isTerminate(requestRead))\n\t\t\t\t{\n\t\t\t\t\tterminateDma();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// In single transfer wait another dreq\n\t\t\t\tif ((mode & MODE_DMA_MASK) == MODE_DMA_SINGLE)\n\t\t\t\t{\n\t\t\t\t\tif (requestRead.getDmaDREQ() == false)\n\t\t\t\t\t{\n\t\t\t\t\t\trequest = false;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}", "public void lastReaderAdded(){\r\n\t\tdoneAddingReaders = true;\r\n\t}", "QualityYieldMetrics addRead(final GATKRead read){\n TOTAL_READS++;\n final int length = read.getLength();\n\n final boolean isPfRead = !read.failsVendorQualityCheck();\n if (isPfRead) {\n PF_READS++;\n PF_BASES += length;\n }\n\n TOTAL_BASES += length;\n\n final byte[] quals;\n if (useOriginalQualities) {\n byte[] tmp = ReadUtils.getOriginalBaseQualities(read);\n if (tmp == null) {\n tmp = read.getBaseQualities();\n }\n quals = tmp;\n } else {\n quals = read.getBaseQualities();\n }\n\n // add up quals, and quals >= 20\n for (final byte qual : quals) {\n Q20_EQUIVALENT_YIELD += qual;\n if (qual >= 20) {\n Q20_BASES++;\n }\n if (qual >= 30) {\n Q30_BASES++;\n }\n\n if (isPfRead) {\n PF_Q20_EQUIVALENT_YIELD += qual;\n if (qual >= 20) {\n PF_Q20_BASES++;\n }\n if (qual >= 30) {\n PF_Q30_BASES++;\n }\n }\n }\n return this;\n }", "@Override\r\n\tpublic void reading() {\n\t\tSystem.out.println(\"reading\");\r\n\t}", "public void recieve(String reading) {\n\t\tif(zeroValues == null) {\n\t\t\tsetZeroValues(reading);\n\t\t\treturn;\n\t\t}\n\t\tSensorReading s = extractReading(reading);\n\t\tif(s != null) {\n\t\t\tsensorData.add(s);\n\t\t\tnotifyListeners(s);\n\t\t}\n\t}", "private void doRecoveryRead() {\n if (!promise.isDone()) {\n startEntryToRead = endEntryToRead + 1;\n endEntryToRead = endEntryToRead + clientCtx.getConf().recoveryReadBatchSize;\n new RecoveryReadOp(lh, clientCtx, startEntryToRead, endEntryToRead, this, null)\n .initiate();\n }\n }", "public void setRead(){\n \tthis.isRead = true;\n }", "public final void incrementRowsReadEvent() {\n rowsRead_++;\n }", "public void internalRead() {\r\n\t\tbusInt.put(data);\r\n\t}", "void addDeviceComplete(boolean hasOtherDevices);", "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }", "public void setNextToRead(int nextToRead) {\n\t\t// Overrides\n\t}", "protected void doBeginRead() throws Exception {}", "public void incrHedgedReadOps() {\n hedgedReadOps.inc();\n }", "@Override\n\tvoid performReading() {\n\t\tthis.humiditySensorMeasurements.setAbsHumidity(this.varibles.get(\"absHumidity\"));\n\t\tthis.humiditySensorMeasurements.setRelHumidity(this.varibles.get(\"relHumidity\"));\n\t\tSensorResults hum = this.humiditySensorMeasurements.measurements();\n\t\n\t/*if (hum == SensorResults.HIGH && temp == SensorResults.HIGH) {\n\t\t\t// System.out.println(\"abnormal temp\");\n\t\t\tthis.creatMessage(\"abnormal hight Humidity\");\n\t\t}\n\t\tif (hum == SensorResults.LOW) {\n\t\t\t// System.out.println(\"abnormal Light\");\n\t\t\tthis.creatMessage(\"abnormal low Humidity\");\n\t\t}/**/\n\t\tmap.put(\"Light\", hum);\n\t\tthis.observer.update();\n\t}", "private void appendDevice(final IDevice device) {\n if (-1 == getDeviceIndex(device)) {\n TestDevice td = new TestDevice(device);\n mDevices.add(td);\n }\n }", "private void checkReadings(final List<? extends ReadingLocated<P>> readings) {\n mNumRangingReadings = mNumRssiReadings = 0;\n\n if (readings == null) {\n return;\n }\n\n for (final ReadingLocated<P> reading : readings) {\n if (reading instanceof RangingReadingLocated) {\n mNumRangingReadings++;\n\n } else if (reading instanceof RssiReadingLocated) {\n mNumRssiReadings++;\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n mNumRangingReadings++;\n mNumRssiReadings++;\n }\n }\n\n mRssiPositionEnabled = mNumRangingReadings < getMinRangingReadings();\n }", "private void ensureWrite() throws IOException {\n if (!reading) return;\n resetForWrite();\n }", "@Override\n\tpublic void read() {\n\n\t}", "public void read() {\r\n\t\tbusExt.put(data);\r\n\t}", "protected final boolean didRead (boolean value) { return didRead = value;}", "private void startReading() {\r\n\r\n isReading = true;\r\n Thread readingThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n while (isReading) {\r\n synchronized (this) {\r\n int ret;\r\n\r\n // Fetch the data here\r\n if(mUsbDeviceConnection != null && mUsbEndpointIn != null){\r\n byte[] bytes = new byte[mUsbEndpointIn.getMaxPacketSize()];\r\n ret = mUsbDeviceConnection.bulkTransfer(mUsbEndpointIn, bytes, bytes.length, 1000);\r\n\r\n if (ret >= 64) {\r\n if(bytes[1] == (byte)0xc8){\r\n // USB_COMMAND_ACK\r\n }\r\n else{\r\n // DATA Frame, bytes[1] should be 0x65\r\n float[] accSensorData = new float[3];\r\n float[] gyroSensorData = new float[3];\r\n float[] magSensorData = new float[3];\r\n\r\n // ACC\r\n accSensorData[0] = byte2float(bytes, 4);\r\n accSensorData[1] = byte2float(bytes, 8);\r\n accSensorData[2] = byte2float(bytes, 12);\r\n\r\n // Gyro\r\n gyroSensorData[0] = byte2float(bytes, 16) * (float)Math.PI / 180.0f;\r\n gyroSensorData[1] = byte2float(bytes, 20) * (float)Math.PI / 180.0f;\r\n gyroSensorData[2] = byte2float(bytes, 24) * (float)Math.PI / 180.0f;\r\n\r\n // Mag, not used so far\r\n magSensorData[0] = (float) (byte2float(bytes, 28) * Math.PI / 180.0f);\r\n magSensorData[1] = (float) (byte2float(bytes, 32) * Math.PI / 180.0f);\r\n magSensorData[2] = (float) (byte2float(bytes, 36) * Math.PI / 180.0f);\r\n\r\n String[] msgData = new String[3];\r\n msgData[0] = String.format(\"%.2f\", accSensorData[0]) + \", \" + String.format(\"%.2f\", accSensorData[1]) + \", \" + String.format(\"%.2f\", accSensorData[2]);\r\n msgData[1] = String.format(\"%.2f\", gyroSensorData[0]) + \", \" + String.format(\"%.2f\", gyroSensorData[1]) + \", \" + String.format(\"%.2f\", gyroSensorData[2]);\r\n msgData[2] = String.format(\"%.2f\", magSensorData[0]) + \", \" + String.format(\"%.2f\", magSensorData[1]) + \", \" + String.format(\"%.2f\", magSensorData[2]);\r\n\r\n Message msg = new Message();\r\n msg.obj = msgData;\r\n msg.what = 0;\r\n mHandler.sendMessage(msg);\r\n }\r\n }\r\n else{\r\n Log.d(TAG, \"No data from USB device.\");\r\n }\r\n }\r\n else{\r\n isReading = false;\r\n Log.d(TAG, \"USB connection is not available.\");\r\n }\r\n }\r\n }\r\n }\r\n });\r\n\r\n Log.d(TAG, \"Start the reading thread here to retrieve sensors(acc, gyro, mag)\");\r\n readingThread.start();\r\n }", "public void doReads(Reader reader) throws IOException;", "protected final void lockRead() {\n m_lock.readLock().lock();\n }", "@Test\n public void writeWaitForReadTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 5;\n int writeThreadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(10);\n final Set<Integer> readResult = new HashSet<Integer>();\n readResult.add(1000);\n for (int i = 0; i < readThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n readResult.add(testUse.getCountAndSleepInReadLock(500));\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }\n Thread.sleep(2000);\n for (int i = 0; i < writeThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountInWriteLock();\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(1, readResult.size());\n Assert.assertEquals(995, testUse.count);\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public void read(IORequest request) throws MemoryFault {\n setBaseLimit();\n // sets what we need to be able to read\n int deviceNumber = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc);\n int platter = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 1);\n int platStart = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 2);\n int datasize = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 3);\n int memLoc = machine.memory.load(Process_Table[request.prognum].base + Process_Table[request.prognum].acc + 4) + Process_Table[request.prognum].base;\n// System.out.println(deviceNumber+\"device\");\n// System.out.println(platter+\"plat\");\n// System.out.println(platStart+\"Start\");\n// System.out.println(datasize+\"data\");\n// System.out.println(memLoc+\"mem\");\n\n Process_Table[currentProcess].status = ProcessState.waiting;\n\n machine.devices[deviceNumber].controlRegister.register[0] = DeviceControllerOperations.READ;\n machine.devices[deviceNumber].controlRegister.register[1] = platter;\n machine.devices[deviceNumber].controlRegister.register[2] = platStart;\n machine.devices[deviceNumber].controlRegister.register[3] = datasize;\n machine.devices[deviceNumber].controlRegister.latch();\n for (int i = 0; i < datasize; i++) {\n machine.memory.store(i + memLoc, machine.devices[deviceNumber].buffer[i]);\n\n }\n //System.out.println(waitQ[Machine.DISK1].size() + \" READ\");\n // initiate the latch\n\n }", "@Override\r\n\tpublic void read() {\n\r\n\t}", "public void testIO(){\r\n // Don't do this every iteration because it's too expensive\r\n if(testIOTimer.get() < 0.5) {\r\n return;\r\n }\r\n testIOTimer.reset();\r\n NetworkTable table = NetworkTable.getTable(\"Status\");\r\n table.putNumber(\"dioData\", digitalModule.getAllDIO());\r\n for(int i = 1; i <= 10; i++) {\r\n table.putNumber(\"pwm\" + i, digitalModule.getPWM(i));\r\n }\r\n \r\n for(int i = 1; i <= 8; i++) {\r\n table.putNumber(\"analog\" + i, ((int)(analogModule.getVoltage(i) * 1000) / 1000.0));\r\n }\r\n }", "public void addReceived() {\n this.indexExpected++;\n }", "@Override\n public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {\n readNextSensor(gatt);\n }", "public void fireBeforeRead(State state, int data_addr) {\n rcount++;\n }", "public void setRead(boolean read)\n\t{\n\t\tthis.read = read;\n\t}", "public void resetRead() {\r\n\t\t// don't do anything if heartbeats are not expected\r\n\t\tif (this.readDelay == null) return;\r\n\r\n\t\tif (this.read != null)\r\n\t\t\tthis.read.cancel(false);\r\n\t\tthis.read = this.scheduler.schedule(new ReadHeartBeatTimeOut(), this.readDelay, TimeUnit.MILLISECONDS);\r\n\t}", "@Test\n public void readWaiteForWriteTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(6);\n final Set<Integer> readResult = new HashSet<Integer>();\n readResult.add(999);\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountInWriteLock();\n countDownLatch.countDown();\n }\n }).start();\n Thread.sleep(2000);\n for (int i = 0; i < readThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n readResult.add(testUse.getCountInReadLock());\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(1, readResult.size());\n }", "public void endRead() throws ThingsException;", "public void sensorReader() {\n try {\n Log.i(TAG, \"wants to read from Arduino\");\n this.inputStream = socket.getInputStream();\n this.inputStreamReader = new InputStreamReader(inputStream);\n Log.i(TAG, \"inputstream ready\");\n this.bufferedReader = new BufferedReader(inputStreamReader);\n Log.i(TAG, \"buffered reader ready\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void requestAllSensors() {\n mSensorManager.registerListener(this, mRotationSensor, SENSOR_DELAY_MICROS);\n }", "private void add(GyroReading gyroReading) {\n m_gyroData.addFirst(gyroReading);\n\n try {\n while (gyroReading.timeStamp - (m_gyroData.get(m_gyroData.size() - 2).timeStamp) >= m_minimumRecordTime) {\n m_gyroData.removeLast();\n }\n } catch (Exception NoSuchElementException) {\n\n }\n }", "private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "void incrementLinesRead();", "boolean hasRead();", "public void ownRead();", "@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }", "public void checkReadLock() {\r\n return;\r\n }", "public NV readNext() throws ThingsException;", "void updateStateOnReading(StepStateful stepStateful, AggregatedReading aggregatedReading) throws TooBusyException {\n double accMagn = aggregatedReading.getAccelerationMagnitude();\n Timestamp timestamp = aggregatedReading.getTimestamp();\n\n if (accMagn > POS_PEEK_THR) onEvent(stepStateful, htPosPeekThr, timestamp);\n\n if (accMagn > THR) onEvent(stepStateful, htThr, timestamp);\n else if (accMagn <= THR) onEvent(stepStateful, ltThr, timestamp);\n\n if (accMagn <= NEG_PEEK_THR) onEvent(stepStateful, ltNegPeekThr, timestamp);\n else onEvent(stepStateful, htNegPeekThr, timestamp);\n\n if (accMagn > NEG_THR) onEvent(stepStateful, htNegThr, timestamp);\n }", "public synchronized void finishReading() {\n readerNumber--;\n if (readerNumber == 0) {\n this.notifyAll(); // notify possible waiting writers \n }\n }", "@Override\n public int read(byte[] bytes, int offset, int count) throws IOException {\n return updateBytesRead(super.read(bytes, offset, count));\n }", "private void startSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.startListening();\n }\n }", "@Override\n protected boolean usesNoRefReads() {\n return true;\n }", "public void checkReadLock() {\n checkNotDeleted();\n super.checkReadLock();\n }", "private void readNextSensor(BluetoothGatt gatt) {\n BluetoothGattCharacteristic characteristic;\n switch (mState) {\n case 0:\n Log.d(TAG, \"Reading pressure cal\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_CAL_CHAR);\n break;\n case 1:\n Log.d(TAG, \"Reading pressure\");\n characteristic = gatt.getService(PRESSURE_SERVICE)\n .getCharacteristic(PRESSURE_DATA_CHAR);\n break;\n case 2:\n Log.d(TAG, \"Reading humidity\");\n characteristic = gatt.getService(HUMIDITY_SERVICE)\n .getCharacteristic(HUMIDITY_DATA_CHAR);\n break;\n default:\n mHandler.sendEmptyMessage(MSG_DISMISS);\n Log.i(TAG, \"All Sensors Enabled\");\n return;\n }\n\n gatt.readCharacteristic(characteristic);\n }", "public synchronized void beginRead() {\n\t\tSystem.out.println(\"READER BEGIN: \" + Thread.currentThread().getId());\t\n\t\tint readTurn = currentTurn;\n\t\tcurrentTurn++;\n\t\t\n\t\twhile(readTurn!=nextTurn || numWriters > 0 ){\n\t\t\ttry {\n//\t\t\t\tSystem.out.println(\"READER BLOCKED: \" + Thread.currentThread().getId());\t\n\t\t\t\twait();\n//\t\t\t\tSystem.out.println(\"READER UNBLOCKED: \" + Thread.currentThread().getId());\t\n\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//number of readers at front of the queue\n\t\t//(unblocked reader)\n\t\tnumReaders ++;\n\n\t}", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "boolean hasForRead();", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public void acquireReadLock() {\r\n return;\r\n }", "void addVersionedItemRead( AbstractVersionedItem versionedItem ) {\n\n // Sanity check the input.\n Objects.requireNonNull( versionedItem );\n\n // Track versioned items read by this transaction.\n this.versionedItemsRead.add( versionedItem );\n\n }", "boolean hasSendReading();", "@Override\n public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {\n if (HUMIDITY_DATA_CHAR.equals(characteristic.getUuid())) {\n mHandler.sendMessage(Message.obtain(null, MSG_HUMIDITY, characteristic));\n }\n if (PRESSURE_DATA_CHAR.equals(characteristic.getUuid())) {\n mHandler.sendMessage(Message.obtain(null, MSG_PRESSURE, characteristic));\n }\n if (PRESSURE_CAL_CHAR.equals(characteristic.getUuid())) {\n mHandler.sendMessage(Message.obtain(null, MSG_PRESSURE_CAL, characteristic));\n }\n\n //After reading the initial value, next we enable notifications\n setNotifyNextSensor(gatt);\n }", "@Override\n public void onRead() {\n /*\n * It should be an error that the remote send something before we\n * pre-write.\n */\n throw new IllegalStateException();\n }", "void record(int actualReadBytes);", "protected void notifyRead(){\n indexList.clear();\n int rows = bank.getRows();\n for(int i = 0; i < rows; i++){\n int value = bank.getInt(filterVar, i);\n if (filterList.contains(value)) indexList.add(i);\n }\n }", "private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }", "public void update(int currentReading) {\n load01 = updateLoad(currentReading, EXP_1, load01);\n load05 = updateLoad(currentReading, EXP_5, load05);\n load15 = updateLoad(currentReading, EXP_15, load15);\n }", "public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "boolean isUsedForReading();", "public void setSingleReads(boolean singleReads) {\n\t\tthis.singleReads = singleReads;\n\t}", "@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}", "public void setTicks(int readSoFar) {\n\t\t\n\t}", "private void readItems() {\n }", "public void validateReading() {\r\n\t\tint i = 0;\r\n\t\tfor (Integer reading : readingList) {\r\n\t\t\tif (reading != null) {\r\n\t\t\t\tif (reading < 0 || reading > Constantes.PLUVIOMETER_MAX_RANGE) {\r\n\t\t\t\t\tControladorContexto\r\n\t\t\t\t\t\t\t.mensajeErrorArg1(\r\n\t\t\t\t\t\t\t\t\t\"formDetalles:repeat:\" + i + \":message\",\r\n\t\t\t\t\t\t\t\t\t\"javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE\",\r\n\t\t\t\t\t\t\t\t\t\"mensaje\", 0,\r\n\t\t\t\t\t\t\t\t\tConstantes.PLUVIOMETER_MAX_RANGE);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tControladorContexto.mensajeErrorEspecifico(\r\n\t\t\t\t\t\t\"formDetalles:repeat:\" + i + \":message\",\r\n\t\t\t\t\t\t\"message_campo_requerido\", \"mensaje\");\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "@Override\n\tpublic Number filteredReading() {\t\n\t// Check we have any readings.\n\tif (buffer.size() == 0) return new Double(0.0);\n\n\tSensorReading reading = null;\n\tdouble sum = 0.0;\n\tdouble avge = 0.0;\n\tint index = 0;\n\n\t// Loop over buffered samples.\n\tIterator it = buffer.iterator();\n\twhile (it.hasNext()) {\n\t reading = (SensorReading)it.next();\n\t avge = avge + reading.getContinuousReading();\n\t index++;\n\t}\n\tlogger.log(2, \"Av-Filter\", name, \"filteredReading\",\"Returned: \"+\n\t\t (avge/index)+\" using \"+index+\" samples.\");\n\treturn new Double(avge / index);\n }", "@Override\n protected int readDataBlock(byte[] readData) throws IOException {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if(serialDriver == null)\n throw new IOException(\"Device is unavailable.\");\n\n int iavailable = 0;\n try {\n iavailable = serialDriver.read(readData, 200);\n } catch (NullPointerException e) {\n final String errorMsg = \"Error Reading: \" + e.getMessage()\n + \"\\nAssuming inaccessible USB device. Closing connection.\";\n Log.e(TAG, errorMsg, e);\n throw new IOException(errorMsg, e);\n }\n\n if (iavailable == 0)\n iavailable = -1;\n return iavailable;\n }", "@Override public int read() throws IOException {\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tint r = -1;\r\n\t\twhile (r == -1){\r\n\t\t\tReader in = getCurrentReader();\r\n\t\t\tif (in == null){\r\n\t\t\t\tif (doneAddingReaders) return -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (InterruptedException iox){\r\n\t\t\t\t\tthrow new IOException(\"Interrupted\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tr = in.read();\r\n\t\t\t\tif (r == -1) advanceToNextReader();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public void setPairedReads(boolean pairedReads) {\n\t\tthis.pairedReads = pairedReads;\n\t}", "abstract void read();", "private void consumeResources(){\n\n Main.gang.setFood(Main.gang.getFood() - (Main.gang.getGangMembers().size() * Main.gang.getFoodIntake()));\n Main.gang.setWater(Main.gang.getWater() - (Main.gang.getGangMembers().size() * Main.gang.getFoodIntake()));\n }", "public boolean getForRead() {\n return forRead_;\n }", "public boolean hasNext() {\n\t\tif(nextIndex < numOfSensorReading()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean isRead(int index)\n {\n if (index == 3)\n {\n return m_Unit != 0;\n }\n return super.isRead(index);\n }", "public List<GATKRead> makeReads() {\n if ( createdReads == null ) {\n final String baseName = \"read\";\n final LinkedList<SAMReadGroupRecord> readGroups = new LinkedList<>();\n for ( final SAMReadGroupRecord rg : header.getReadGroups()) {\n readGroups.add(rg);\n }\n\n final List<GATKRead> reads = new ArrayList<>(nReadsPerLocus*nLoci);\n for ( int locusI = 0; locusI < nLoci; locusI++) {\n final int locus = locusI * (skipNLoci + 1);\n for ( int readI = 0; readI < nReadsPerLocus; readI++ ) {\n for ( final SAMReadGroupRecord rg : readGroups ) {\n final String readName = String.format(\"%s.%d.%d.%s\", baseName, locus, readI, rg.getId());\n final GATKRead read = ArtificialReadUtils.createArtificialRead(header, readName, 0, alignmentStart + locus, readLength);\n read.setReadGroup(rg.getId());\n reads.add(read);\n }\n }\n }\n\n if ( ! additionalReads.isEmpty() ) {\n reads.addAll(additionalReads);\n Collections.sort(reads, new ReadCoordinateComparator(header));\n }\n\n createdReads = new ArrayList<>(reads);\n }\n\n return createdReads;\n }", "abstract void onReadable();", "@Override\n public boolean hasRemaining() throws IOException\n {\n return randomAccessRead.available() > 0;\n }", "private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}", "public void setReadingList(ArrayList<Reading> theReadingList) {\n theReadingList = readingList;\n }", "@Override\n\tpublic void setupSensors() {\n\t\t\n\t}", "private boolean readingHasStarted()\n {\n return readingHasStarted;\n }", "private void setListener2(BluetoothReader reader) {\n mBluetoothReader2\n .setOnAuthenticationCompleteListener(new OnAuthenticationCompleteListener() {\n\n @Override\n public void onAuthenticationComplete(\n BluetoothReader bluetoothReader, final int errorCode) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode == BluetoothReader.ERROR_SUCCESS) {\n mTxtAuthentication\n .setText(\"Authentication Success!\");\n mEditApdu.setText(\"FF CA 00 00 00\");\n mAuthentication.setEnabled(false);\n } else {\n mTxtAuthentication\n .setText(\"Authentication Failed!\");\n }\n }\n });\n }\n\n });\n\n /* Wait for receiving ATR string. */\n mBluetoothReader2\n .setOnAtrAvailableListener(new OnAtrAvailableListener() {\n\n @Override\n public void onAtrAvailable(BluetoothReader bluetoothReader,\n final byte[] atr, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (atr == null) {\n mTxtATR.setText(getErrorString(errorCode));\n } else {\n mTxtATR.setText(Utils.toHexString(atr));\n }\n }\n });\n }\n\n });\n\n /* Wait for power off response. */\n mBluetoothReader2\n .setOnCardPowerOffCompleteListener(new OnCardPowerOffCompleteListener() {\n\n @Override\n public void onCardPowerOffComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtATR.setText(getErrorString(result));\n }\n });\n }\n\n });\n\n /* Wait for response APDU. */\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtResponseApdu.setText(getResponseString(\n apdu, errorCode));\n // InnerTes(\"tes\");\n }\n });\n }\n\n });\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtScan.setText(getResponseString(\n apdu, errorCode));\n String uid = mTxtScan.getText().toString();\n uid_final= uid;\n final String uid2=mTxtScan.getText().toString();\n /*** Kirim Variabel String uid ke ChildviewHolder **/\n /** code start here **/\n Tes tes = new Tes() {\n\n\n @Override\n public String onClickTes(String uid) {\n return null;\n }\n\n @Override\n public String getUid() {\n return mTxtScan.getText().toString();\n\n }\n };\n tes.onClickTes(uid);\n uid_final = tes.getUid();\n Log.d(\"uidFinal_listener\",\" \"+uid_final);\n requestUid(tes);\n\n\n //uid_final=\"tes\";\n // InnerTes(\"tes\");\n// rvTxtScan.setText(getResponseString(\n// apdu, errorCode));\n getInfoCard(uid);\n }\n\n\n });\n\n\n\n }\n\n });\n\n\n /* Wait for escape command response. */\n mBluetoothReader2\n .setOnEscapeResponseAvailableListener(new OnEscapeResponseAvailableListener() {\n\n @Override\n public void onEscapeResponseAvailable(\n BluetoothReader bluetoothReader,\n final byte[] response, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtEscapeResponse.setText(getResponseString(\n response, errorCode));\n }\n });\n }\n\n });\n\n /* Wait for device info available. */\n mBluetoothReader2\n .setOnDeviceInfoAvailableListener(new OnDeviceInfoAvailableListener() {\n\n @Override\n public void onDeviceInfoAvailable(\n BluetoothReader bluetoothReader, final int infoId,\n final Object o, final int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (status != BluetoothGatt.GATT_SUCCESS) {\n Toast.makeText(ReaderActivity.this,\n \"Failed to read device info!\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n switch (infoId) {\n case BluetoothReader.DEVICE_INFO_SYSTEM_ID: {\n // mTxtSystemId.setText(Utils.toHexString((byte[]) o));\n }\n break;\n case BluetoothReader.DEVICE_INFO_MODEL_NUMBER_STRING:\n // mTxtModelNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_SERIAL_NUMBER_STRING:\n // mTxtSerialNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_FIRMWARE_REVISION_STRING:\n // mTxtFirmwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_HARDWARE_REVISION_STRING:\n // mTxtHardwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_MANUFACTURER_NAME_STRING:\n //mTxtManufacturerName.setText((String) o);\n break;\n default:\n break;\n }\n }\n });\n }\n\n });\n\n /* Wait for battery level available. */\n if (mBluetoothReader2 instanceof Acr1255uj1Reader) {\n ((Acr1255uj1Reader) mBluetoothReader2)\n .setOnBatteryLevelAvailableListener(new OnBatteryLevelAvailableListener() {\n\n @Override\n public void onBatteryLevelAvailable(\n BluetoothReader bluetoothReader,\n final int batteryLevel, int status) {\n Log.i(TAG, \"mBatteryLevelListener data: \" + batteryLevel);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryLevel2.setText(getBatteryLevelString(batteryLevel));\n }\n });\n\n }\n\n });\n }\n\n /* Handle on battery status available. */\n if (mBluetoothReader2 instanceof Acr3901us1Reader) {\n ((Acr3901us1Reader) mBluetoothReader2)\n .setOnBatteryStatusAvailableListener(new OnBatteryStatusAvailableListener() {\n\n @Override\n public void onBatteryStatusAvailable(\n BluetoothReader bluetoothReader,\n final int batteryStatus, int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryStatus2.setText(getBatteryStatusString(batteryStatus));\n }\n });\n }\n\n });\n }\n\n /* Handle on slot status available. */\n mBluetoothReader2\n .setOnCardStatusAvailableListener(new OnCardStatusAvailableListener() {\n\n @Override\n public void onCardStatusAvailable(\n BluetoothReader bluetoothReader,\n final int cardStatus, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode != BluetoothReader.ERROR_SUCCESS) {\n mTxtSlotStatus\n .setText(getErrorString(errorCode));\n } else {\n mTxtSlotStatus\n .setText(getCardStatusString(cardStatus));\n }\n }\n });\n }\n\n });\n\n mBluetoothReader2\n .setOnEnableNotificationCompleteListener(new OnEnableNotificationCompleteListener() {\n\n @Override\n public void onEnableNotificationComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (result != BluetoothGatt.GATT_SUCCESS) {\n /* Fail */\n Toast.makeText(\n ReaderActivity.this,\n \"The device is unable to set notification!\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(ReaderActivity.this,\n \"The device is ready to use!\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n\n });\n }", "protected BiFunction<SelectionKey, Integer, Runnable> onReading() {\n return readable;\n }", "@Override\r\n\tpublic int registerIOReceiver() {\n\t\treturn 0;\r\n\t}", "public boolean isRead(){\n \treturn isRead;\n }", "protected synchronized void populateQueue() throws IOException {\n\t\twhile (m_queueLength < m_queue.length) {\n\t\t\tint off = (m_queuePosition + m_queueLength) % m_queue.length;\n\t\t\tint len = Math.min(m_queue.length - m_queueLength, m_queue.length\n\t\t\t\t\t- off);\n\n\t\t\tint i = m_reader.read(m_queue, off, len);\n\t\t\tif (i == -1) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tm_queueLength += i;\n\t\t}\n\t}" ]
[ "0.63019943", "0.6194218", "0.5758252", "0.5728684", "0.5658342", "0.55472416", "0.53976464", "0.539387", "0.5328455", "0.53077495", "0.5239977", "0.5208776", "0.5200852", "0.5172592", "0.5135476", "0.5115057", "0.5113083", "0.5102123", "0.5050124", "0.5035064", "0.503497", "0.50333995", "0.50202435", "0.501294", "0.4988806", "0.49838242", "0.49820828", "0.49695295", "0.49573323", "0.4955485", "0.494199", "0.493179", "0.4929411", "0.49238062", "0.49049848", "0.49032676", "0.49026942", "0.49017823", "0.4898662", "0.48949355", "0.489192", "0.4887584", "0.48783058", "0.48636618", "0.48578426", "0.48525763", "0.48380268", "0.48301333", "0.48244008", "0.48110726", "0.4805714", "0.47972038", "0.47946608", "0.4775758", "0.47708377", "0.47682604", "0.4763994", "0.4760376", "0.4758227", "0.47553742", "0.4749567", "0.47483617", "0.47303393", "0.47261482", "0.47127366", "0.47075233", "0.46892267", "0.46849054", "0.4681049", "0.46784633", "0.46670341", "0.46576774", "0.46423456", "0.4637785", "0.46329504", "0.4629769", "0.46259543", "0.46246123", "0.46227401", "0.46085536", "0.46079457", "0.4606134", "0.4603349", "0.46027958", "0.4596957", "0.45912823", "0.45878062", "0.45863554", "0.4582627", "0.4571399", "0.45706466", "0.456842", "0.4567477", "0.4561193", "0.4554483", "0.4553169", "0.45510644", "0.45503658", "0.4548037", "0.4546572" ]
0.83670473
0
TODO Autogenerated method stub
@Override public void run() { if(Thread.currentThread().isDaemon()){ System.out.println("daemon thread work"); } else { System.out.println("user thread work"); } }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by mike0 on 12/5/2017.
public interface DetailsPresenter { void init(); void getEvents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\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}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void m50366E() {\n }", "private void poetries() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "protected boolean func_70814_o() { return true; }", "private Rekenhulp()\n\t{\n\t}", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private void init() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "public void mo6081a() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo21877s() {\n }", "public void mo12930a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void m23075a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected void mo6255a() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo21779D() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private TMCourse() {\n\t}" ]
[ "0.5921149", "0.5876898", "0.58129096", "0.5691649", "0.5631061", "0.5618027", "0.56112546", "0.55843925", "0.55843925", "0.5544087", "0.55311596", "0.55102533", "0.55054104", "0.5499883", "0.54915506", "0.54716736", "0.54614854", "0.5456991", "0.5456839", "0.5447762", "0.53998566", "0.53998566", "0.53998566", "0.53998566", "0.53998566", "0.53998566", "0.53794247", "0.53770685", "0.5373036", "0.536969", "0.53590536", "0.53589517", "0.5351293", "0.5348949", "0.5348949", "0.534067", "0.534067", "0.534067", "0.534067", "0.534067", "0.5340378", "0.5340086", "0.5330527", "0.53292596", "0.53275573", "0.5324403", "0.53224057", "0.53201896", "0.5319562", "0.5319562", "0.5319562", "0.5319562", "0.5319562", "0.5319562", "0.5319562", "0.53152496", "0.53007114", "0.5298479", "0.52954316", "0.52879953", "0.5287169", "0.52851814", "0.52851814", "0.52824163", "0.5278546", "0.52779114", "0.5265116", "0.526453", "0.526332", "0.52564406", "0.5239149", "0.5232233", "0.52321464", "0.5227088", "0.5224229", "0.522278", "0.5220823", "0.5220823", "0.5220823", "0.52121127", "0.5204612", "0.5204612", "0.5204612", "0.5204364", "0.5203162", "0.5201445", "0.5197191", "0.5197191", "0.51923984", "0.5183684", "0.51784533", "0.51784533", "0.5175772", "0.5174674", "0.5174261", "0.51736784", "0.51736784", "0.51736784", "0.5173037", "0.5166458", "0.5165679" ]
0.0
-1
retrieves bugs from database
public List<Bug> fetchAllBugs() { List<Bug> bugs = (List<Bug>) bugRespository.findAll(); if(bugs.isEmpty()){ throw new NotFoundException(Constant.NO_BUGS); }else{ return bugs; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bug> getAllBugsByProject(int projectId);", "@GetMapping\n\tpublic ResponseEntity<List<Bug>> getAllBugs () {\n\n\t\tHttpStatus status = HttpStatus.OK;\n\t\tHttpHeaders httpHeaders = new HttpHeaders();\n\t\thttpHeaders.setContentType(MediaType.APPLICATION_JSON);\n\t\t\n\t\tList<Bug> providerDetails = bugService.fetchAllBugs();\n\t\t\n\t\treturn new ResponseEntity<>(providerDetails, httpHeaders, status);\n\t}", "public Map<String, JiraBug> getBugs() throws IOException, ParseException {\n\t\tif (this.bugs != null) {\n\t\t\treturn new HashMap<>(this.bugs);\n\t\t}\n\t\t\n\t\tthis.bugs = new HashMap<>();\n\t\t\n\t\tInteger j = 0;\n\t\tInteger i = 0;\n\t\tInteger total = 1;\n\t //Get JSON API for closed bugs w/ AV in the project\n\t\tdo {\n\t\t\t//Only gets a max of 1000 at a time, so must do this multiple times if bugs >1000\n\t\t\tj = i + 1000;\n\t String url = basicUrl + \"search?jql=project%20%3D%20\"\n\t + this.projectName + \"%20AND%20issueType%20\" + IssueType.BUGS.getType() + \"%20AND(%20status%20=%20closed%20OR\"\n\t + \"%20status%20=%20resolved%20)AND%20resolution%20=%20fixed%20&fields=key,fixVersions,versions,created&startAt=\"\n\t + i.toString() + \"&maxResults=\" + j.toString();\n\t JSONObject json = JSONTools.readJsonFromUrl(url);\n\t JSONArray issues = json.getJSONArray(\"issues\");\n\t total = json.getInt(\"total\");\n\t for (; i < total && i < j; i++) {\n\t //Iterate through each bug\n\t \t \t\n\t \tJSONObject issue = issues.getJSONObject(i%1000);\n\t \tString name = issue.getString(\"key\");\n\t \tJSONObject fields = issue.getJSONObject(\"fields\");\n\t \tDate created = new SimpleDateFormat(\"yyyy-MM-dd\").parse(fields.getString(\"created\"));\n\t \tList<String> fixVersions = this.parseVersions(fields.getJSONArray(\"fixVersions\"));\n\t \tList<String> versions = this.parseVersions(fields.getJSONArray(\"versions\"));\n\t \t\n\t \tthis.bugs.put(name, new JiraBug(name, created, fixVersions, versions));\n\t } \n\t \n\t\t} while (i < total);\n\t\t\n\t\treturn new HashMap<>(this.bugs);\n\t\t\n\t}", "@GetMapping(value=\"/{id}\",produces = \"application/json\")\n\tpublic Bug getBug(@PathVariable(\"id\") Long bugId) {\n\t\treturn bugService.getBugDetails(bugId);\t\t\n\t}", "List<Bug> getOpenedBugsByProject(int projectId, int start, int limit);", "public List<SonarIssues> getAllIssues() throws SQLException, IOException, ParseException, java.text.ParseException, org.json.simple.parser.ParseException, JSONException;", "List<Bug> getBugsByStatusByProject(int projectId, int status);", "Bug getBugByIdWithCommentAndSubscriable(int id);", "public List<Issue> getAllIssues() {\r\n List<IssueSystem> issueSystem = datastore.createQuery(IssueSystem.class).field(\"project_id\").equal(project.getId()).asList();\r\n List<ObjectId> systemIDs = Lists.newArrayList();\r\n issueSystem.forEach(x -> systemIDs.add(x.getId()));\r\n\r\n Query<Issue> queryIssues = datastore.createQuery(Issue.class);\r\n queryIssues.and(\r\n queryIssues.criteria(\"issue_system_id\").in(systemIDs),\r\n queryIssues.criteria(\"title\").notEqual(\"\"),\r\n queryIssues.criteria(\"title\").exists()\r\n );\r\n return queryIssues.asList();\r\n }", "TreeMap<Integer, List<Bug>> getOpenBugsByUser(Integer userId, List<Integer> projectList);", "public double getBugs() {\r\n return bugs;\r\n }", "public String displayAllTickets(){\n String p = \" \";\n try {\n \n rs = stmt.executeQuery \n (\"SELECT * FROM JEREMY.TICKET ORDER BY ID\");\n p = loopDBInfo(rs);\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n } \n return p;\n \n }", "public List<Ticket> getAllTickets(){\n List<Ticket> tickets=ticketRepository.findAll();\n return tickets;\n }", "List<Comment> findCommentsToLifeHack(long id) throws DaoException;", "List<Bug> getFinishedBugsByProject(int projectId, int start, int limit);", "@RequestMapping(path = \"/last24hDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getLast24hDeliveryIssues() {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tSystem.out.println(\"queryResult : \" + queryResult);\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\tLocalDateTime stop = LocalDateTime.now().minusHours(0);\n\t\tLocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n\t\treturn deliveryIssueList.stream().filter(deliveryIssue -> instantIsBetweenDates(deliveryIssue.getTime(), start, stop)).collect(Collectors.toList());\n\t}", "@Override\n\tpublic List<Problem> getProblems() {\n\t\treturn problemDAO.getProblems();\n\t}", "public JSONObject getProblem (String title){\n JSONObject problem = new JSONObject();\n String query=\"select p.id, p.title,p.statement,p.category,p.difficulty,t.test_in,t.test_out from problem p inner join problem_test t on p.id = t.id_problem where p.title=? limit 1\";\n\n try {\n Connection myConn = Database.getConnection();\n PreparedStatement statement = myConn.prepareStatement(query);\n statement.setString(1, title);\n\n ResultSet resultSet = statement.executeQuery();\n while (resultSet.next()) {\n problem.put(\"id\",resultSet.getInt(\"id\"));\n problem.put(\"title\",resultSet.getString(\"title\"));\n problem.put(\"statement\",resultSet.getString(\"statement\"));\n problem.put(\"category\",resultSet.getInt(\"category\"));\n problem.put(\"difficulty\",resultSet.getString(\"difficulty\"));\n problem.put(\"test_in\",resultSet.getString(\"test_in\"));\n problem.put(\"test_out\",resultSet.getString(\"test_out\"));\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return problem;\n }", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void Found_project_from_DATABASE(int id){\n print_pro();\n// return project;\n }", "public List<Issue> getUserIssues(User user);", "public Map<String,Ticket> retriveTickets(IssueType issueType) throws IOException {\n\t\tMap<String,Ticket> tickets = new HashMap<>();\n\t\t\n\t\tInteger j = 0;\n\t\tInteger i = 0;\n\t\tInteger total = 1;\n\t //Get JSON API for closed bugs w/ AV in the project\n\t\tdo {\n\t\t\t//https://issues.apache.org/jira/rest/api/2/search?jql=project%20%3D%20OPENJPA%20AND%20issueType%20%3D%20Bug%20AND(%20status%20=%20closed%20OR%20status%20=%20resolved%20)AND%20resolution%20=%20fixed%20&fields=key,resolutiondate,versions,created&startAt=0&maxResults=1000\n\t\t\t//Only gets a max of 1000 at a time, so must do this multiple times if bugs >1000\n\t\t\tj = i + 1000;\n\t String url = basicUrl + \"search?jql=project%20%3D%20\"\n\t + this.projectName + \"%20AND%20issueType%20\" + issueType.getType() + \"%20AND(%20status%20=%20closed%20OR\"\n\t + \"%20status%20=%20resolved%20)AND%20resolution%20=%20fixed%20&fields=key,resolutiondate,versions,created&startAt=\"\n\t + i.toString() + \"&maxResults=\" + j.toString();\n\t JSONObject json = JSONTools.readJsonFromUrl(url);\n\t JSONArray issues = json.getJSONArray(\"issues\");\n\t total = json.getInt(\"total\");\n\t for (; i < total && i < j; i++) {\n\t //Iterate through each bug\n\t \t \n\t \tJSONObject issue = issues.getJSONObject(i%1000);\n\t \ttickets.put(issue.get(\"key\").toString(), new Ticket(this.projectName, issue.get(\"key\").toString(), issueType));\n\t \t\n\t } \n\t \n\t\t} while (i < total);\n\t\t\n\t\treturn tickets;\n\t \n\t}", "BugFactory getBugFactory();", "List<Comment> getCommentsOfProject(int projectId) throws SQLException;", "public int createDBEntry() {\n\t\tint i = 0;\n\t\ttry {\n\t\t\tConnection con;\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tStatement statement = con.createStatement();\n\n\t\t\tStringBuffer strBuf = new StringBuffer();\n\t\t\tstrBuf.append(\"insert into Ticket(ticketID,\");\n\t\t\tstrBuf.append(\"ticketDate, \");\n\t\t\tstrBuf.append(\"bugTitle, \");\n\t\t\tstrBuf.append(\"bugDescription, \");\n\t\t\tstrBuf.append(\"bugCategory, \");\n\t\t\tstrBuf.append(\"projectName, \");\n\t\t\tstrBuf.append(\"projectVersion, \");\n\t\t\tstrBuf.append(\"assignedToDev, \");\n\t\t\tstrBuf.append(\"priority, \");\n\t\t\tstrBuf.append(\"status, \");\n\t\t\tstrBuf.append(\"comments, \");\n\t\t\tstrBuf.append(\"targetDueDate, \");\n\t\t\tstrBuf.append(\"ticketCreatedBy \");\t\n\t\t\tstrBuf.append(\") values (last_insert_id(), \");\n\t\t\tstrBuf.append(\"'\" + this.ticketDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugTitle + \"', \");\t\t\t\t\n\t\t\tstrBuf.append(\"'\" + this.bugDescription + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugCategory + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectVersion + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.assignedToDevName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketPriority + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketStatus + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.comments + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.targetDueDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.TicketCreatedBy + \"'\");\n\t\t\tstrBuf.append(\")\");\n\n\t\t\ti = statement.executeUpdate(strBuf.toString());\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn i;\n\t}", "public List<Bugcomment> getComments(int userId) {\n\t\t\t\t\treturn null;\n\t\t\t\t}", "public void setBugs(double bugs) {\r\n this.bugs = bugs;\r\n }", "private String getIssueData(Integer issue) {\r\n String data = \"{}\";\r\n if (issue != null) {\r\n String issuesTable = env.getProperty(\"postgres.local.issuesTable\");\r\n if (issuesTable != null && !issuesTable.isEmpty()) {\r\n /* Other systems will use the issues Postgres table */\r\n Map<String, Object> issueRec = magicDataTpl.queryForMap(\"SELECT * FROM \" + env.getProperty(\"postgres.local.issuesTable\") + \" WHERE id=?\", issue);\r\n data = jsonMapper.toJsonTree(issueRec).toString();\r\n }\r\n if (data == null || data.isEmpty()) {\r\n data = \"{}\";\r\n } \r\n }\r\n System.out.println(\"Issue data \" + data);\r\n return(data);\r\n }", "public Discussion[] getDiscussions() throws DAOException;", "public find() {\n initComponents();\n loadTBL(\"select * from before_production order by date\");\n loadSupp();\n }", "public static RepositoryTaskData getBug(String repositoryUrl, String userName, String password,\n \t\t\tProxy proxySettings, String characterEncoding, int id) throws IOException, MalformedURLException,\n \t\t\tLoginException, GeneralSecurityException, BugzillaException {\n \n \t\tRepositoryTaskData bugReport = new RepositoryTaskData(new BugzillaAttributeFactory(),\n \t\t\t\tBugzillaCorePlugin.REPOSITORY_KIND, repositoryUrl, \"\" + id);\n \t\tsetupExistingBugAttributes(repositoryUrl, bugReport);\n \n \t\tRepositoryReportFactory reportFactory = new RepositoryReportFactory();\n \t\treportFactory.populateReport(bugReport, repositoryUrl, proxySettings, userName, password, characterEncoding);\n \t\tupdateBugAttributeOptions(repositoryUrl, proxySettings, userName, password, bugReport, characterEncoding);\n \t\taddValidOperations(bugReport, userName);\n \n \t\treturn bugReport;\n \t}", "public List<IncomingReport> list(boolean discrepancy) throws DAOException;", "List findall_board_info(Integer board_id);", "@Transactional\r\n\tpublic List<Room> getPosti(Integer posti){\r\n\t\treturn this.roomRepository.findByPosti(posti);\r\n\t}", "public NSArray hoursWorked() {\n\t\tNSArray hoursWorked;\n\t\tNSDictionary resolutionBindings = new NSDictionary(new Object[] {bugId()}, new Object[] { \"bugId\",});\n\n\t\tEOFetchSpecification fs = EOFetchSpecification.fetchSpecificationNamed( \"hoursWorked\", \"BugsActivity\").fetchSpecificationWithQualifierBindings( resolutionBindings );\n\t\tfs.setRefreshesRefetchedObjects(true);\n\t\thoursWorked = (NSArray)editingContext().objectsWithFetchSpecification(fs);\n\t\t//System.out.println(\"\\tItem.hoursWorked() count - \" + hoursWorked.count());\n\n\t\treturn hoursWorked;\n\n }", "public JSONArray getProblemsByGrade(int grade) {\n JSONArray jsonArray = new JSONArray();\n String query = \"select id,title,created_at,difficulty,category from problem where category=? \";\n try {\n Connection myConn = Database.getConnection();\n PreparedStatement statement = myConn.prepareStatement(query);\n statement.setInt(1, grade);\n\n ResultSet resultSet = statement.executeQuery();\n while (resultSet.next()) {\n int total_rows = resultSet.getMetaData().getColumnCount();\n\n JSONObject mainObj = new JSONObject();\n JSONObject obj = new JSONObject();\n for (int i = 0; i < total_rows; i++) {\n obj.put(resultSet.getMetaData().getColumnLabel(i + 1).toLowerCase(), resultSet.getObject(i + 1));\n }\n mainObj.put(\"problem\", obj);\n jsonArray.put(mainObj);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return jsonArray;\n }", "@Test\n @Transactional\n public void testFindByCategory() {\n\n List<ForumThread> forumThreads = new ArrayList<>();\n forumThreads = forumThreadDAO.findByCategory(\"NEWS\");\n\n logger.info(\"Forum Threads: -> {}\", forumThreads.toString());\n }", "List<UserIssue> findAllUserIssues( Identifiable identifiable );", "@GetMapping(\"/employees/problems\")\n Flux<Employee> problems() {\n return this.repository.findAll()\n .filter(this::isProblemData);\n }", "private List<String> getList(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - getList\");\r\n\t\tcreateInstance();\r\n\t\tList<String> lstResult = new ArrayList<String>();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to get list, request information is missing\");\r\n\t\t}\r\n\t\t\r\n try {\r\n\r\n log.info(\"Querying for top highest priority unfixed defects...\");\r\n System.out.println(\"Query Request Info \" + requestInfo.getQueryFilter());\r\n QueryResponse qryResponse = getQueryResponse(requestInfo);\r\n \r\n \r\n if (qryResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"\\nTotal results: %d\", qryResponse.getTotalResultCount()));\r\n for (JsonElement result : qryResponse.getResults()) {\r\n JsonObject qryObject = result.getAsJsonObject();\r\n String strFetch[] = requestInfo.getFetch();\r\n String strPrintInfo = \"\";\r\n if(strFetch != null && strFetch.length != 0){\r\n \tfor(int i=0; i < strFetch.length; i++){\r\n \t\tstrPrintInfo = strPrintInfo + strFetch[i] + \" : \" + qryObject.get(strFetch[i]).getAsString() + \" \";\r\n \t}\r\n }\r\n log.info(strPrintInfo);\r\n lstResult.add(strPrintInfo);\r\n }\r\n } else {\r\n for (String err : qryResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in getting list : \" + lstResult);\r\n throw new DefectException(\"Error in getting list\" + lstResult);\r\n }\r\n } catch (Exception e){\r\n log.error(\"Error in getting list, message : \" + e.toString());\r\n throw new DefectException(\"Error in getting list, message : \" + e.toString());\r\n } finally {\r\n \tcloseDefect();\r\n \t\tlog.info(\"End - getList\");\r\n }\r\n\t\treturn lstResult;\r\n }", "@Test\r\n\tpublic void first() throws DendrytDAOException {\n//\t\tProblemSubmitingService p = new ProblemSubmitingServlet();\r\n//\t\tassertEquals(5, p.getAllProducts().length);\r\n//\t\t\r\n//\t\tIProblemDAO i = new ProblemDAO();\r\n//\t\tassertEquals(0, i.readAll().length);\r\n//\t\t\r\n//\t\tp.submitProblem(new Problem());\r\n//\t\tassertEquals(1 , i.readAll().length);\r\n//\r\n\t}", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "private void loadTickets() {\n\t\topenTickets.clear();\n\t\tclosedTickets.clear();\n\t\tArrayList<Ticket> tickets = jdbc.getTickets();\n\t\t\n\t\tfor (Ticket t : tickets) {\n\t\t\tUser u = jdbc.get_user(t.submittedBy);\n\t\t\tString submittedBy = \"Submitted By: \"+u.get_lastname()+\", \"+u.get_firstname();\n\t\t\tString id = \"Ticket ID: \"+t.ticketID;\n\t\t\tString title = \"Title: \"+t.title;\n\t\t\tif (t.isDone) {\n\t\t\t\tString status = \"Status: Closed\";\n\t\t\t\tString s = String.format(\"%-40s%-40s%-40s%-40s\", id, title, submittedBy, status);\n\t\t\t\tclosedTickets.addElement(s);\n\t\t\t} else {\n\t\t\t\tString status = \"Status: Open\";\n\t\t\t\tString s = String.format(\"%-30s%-30s%-30s%-30s\", id, title, submittedBy, status);\n\t\t\t\topenTickets.addElement(s);\n\t\t\t}\n\t\t}\n\t}", "@Override\n @GET\n @Path(\"/{id}\")\n public Author get (@PathParam(\"id\") int id) {\n EntityManager em = PersistenceUtil.getEntityManagerFactory().createEntityManager();\n AuthorDao authorDao = new AuthorDao(em);\n Author a = authorDao.get(Author.class, id);\n a.getWorks().size();//it's needed to initialize session\n em.close();\n return a;\n }", "public List<DatabaseRow> accessDebugLogTableByName(String name) \r\n throws ServiceFailureException, SQLException;", "public ArrayList<Ticket> readTickets(String command) {\r\n try{\r\n ResultSet results = Connect.readSp(command);\r\n \r\n while (results.next()) {\r\n Ticket tkt = new Ticket();\r\n tkt.setTktNo(results.getInt(\"tktNo\"));\r\n tkt.setPersonellNo(results.getInt(\"staffNo\"));\r\n tkt.setProcessLeadNo(results.getInt(\"processLeadNo\"));\r\n tkt.setTktName(results.getString(\"name\"));\r\n tkt.setStatus(results.getString(\"status\"));\r\n tkt.setCategory(results.getString(\"category\"));\r\n System.out.println(\"this effin ticket \" + tkt.getTktNo());\r\n tkt.readComments();\r\n tkt.readTasks();\r\n tickets.add(tkt);\r\n }\r\n results.close();\r\n }\r\n catch (SQLException e) {\r\n System.out.println(\"Failure\"+e.getMessage( ));\r\n }\r\n return tickets;\r\n }", "public ProjectIdea getProjectIdea(int id){\n //String sql = \"SELECT * FROM project_idea WHERE idea_id = ?\";\n try{\n ProjectIdea result = super.queryForId(id);\n return result;\n } catch(SQLException e){\n System.out.println(e.getMessage());\n }\n return null;\n }", "public OrderList findOrders(){\n sql=\"SELECT * FROM Order\";\n Order order;\n try{\n ResultSet resultSet = db.SelectDB(sql);\n \n while(resultSet.next()){\n order = new Order();\n order.setOrderID(resultSet.getString(\"OrderID\"));\n order.setCustomerID(resultSet.getString(\"CustomerID\"));\n order.setStatus(resultSet.getString(\"Status\"));\n ordersList.addItem(order);\n }\n }\n catch(SQLException e){\n System.out.println(\"Crash finding all orders\" + e);\n }\n return ordersList;\n }", "public List<PostEntry> findList(String username){\n Connection c = null;\n PreparedStatement ps = null;\n ResultSet rs = null; \n\n List<PostEntry> data = new ArrayList<PostEntry>();\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n\n //Prepare statement\n ps = c.prepareStatement(\"SELECT * FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n\n //set in data if exists: ASSUMES there is only one response\n while(rs.next()){\n String title = rs.getString(\"title\");\n Timestamp created = rs.getTimestamp(\"created\");\n Timestamp modified = rs.getTimestamp(\"modified\");\n int postid = rs.getInt(\"postid\"); //conversion to string, need to convert back\n \n PostEntry pe = new PostEntry(title, created, modified, postid);\n\n data.add(pe);\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n return data;\n }", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@Test\n void getAllNotesSuccess() {\n List<Note> notes = noteDao.getAll();\n assertEquals(2, notes.size());\n }", "@Override\n\tpublic String fetchProblemStatement() {\n\t\tDocument doc;\n\n\t\ttry {\n\t\t\tString u = getUrl();\n\t\t\tdoc = Jsoup.connect(u).timeout(10000).get();\n\n\t\t\tElements problems = doc\n\t\t\t\t\t.getElementsByClass(\"primary-colum-width-left\");\n\n\t\t\tthis.setProblemStatement(problems.html());\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"codechef: Error fetching Problem Statement \"\n\t\t\t\t\t+ problemId + \" -> \" + e.getMessage());\n\t\t\t// e.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(\"codechef: fetched problem \" + problemId);\n\n\t\treturn this.problemStatement;\n\t}", "public BugStatus getStatus(){return status;}", "@Override\n\tpublic Problem selectById(Integer id) {\n\t\treturn problemMapper.selectByPrimaryKey(id);\n\t}", "public Problem getProblem(int index){\n return problems.getProblem(index);\n }", "public void inspectBugPopUp() {\n\t\tJPanel bugPanel = new JPanel();\n\t\tif (buglist.isSelectionEmpty())\n\t\t\treturn;\n\n\t\t// Separate bug id from the rest of the string\n\t\tint bugID = Integer.parseInt(buglist.getSelectedValue().split(\" \")[0]);\n\n\t\tArrayList<Bug> bugs = uiController_.BrowseBugs();\n\t\tfor (Bug b : bugs) {\n\t\t\tif (b.getBugId_() == bugID) {\n\t\t\t\tJLabel title = new JLabel(\"<HTML><U>Bug</U></HTML>\");\n\t\t\t\tJLabel bugTitle = new JLabel(\"Name: \" + b.getBugTitle_());\n\t\t\t\tJLabel bugid = new JLabel(\"ID: \" + b.getBugId_());\n\t\t\t\tJLabel bugDescription = new JLabel(\"Description: \" + b.getDescription_());\n\t\t\t\tJLabel bugState = new JLabel(\"Status: \" + b.getState_().toString());\n\t\t\t\tArrayList<Product> productlist = uiController_.BrowseProducts();\n\n\t\t\t\tfor (Product p : productlist) {\n\t\t\t\t\tif (p.getProductId_() == b.getProductId_()) {\n\t\t\t\t\t\tJLabel productTitle = new JLabel(\"<HTML><U>Product Information</U></HTML>\");\n\t\t\t\t\t\tJLabel productID = new JLabel(\"ID: \" + p.getProductId_());\n\t\t\t\t\t\tJLabel productName = new JLabel(\"Name: \" + p.getProductName_());\n\t\t\t\t\t\tJLabel productDescription = new JLabel(\"Description: \" + p.getProductDescription());\n\n\t\t\t\t\t\t// Set Font\n\t\t\t\t\t\tFont font = new Font(\"Calibri\", Font.PLAIN, 20);\n\t\t\t\t\t\tFont big_underline_font = new Font(\"Calibri\", Font.PLAIN, 30);\n\t\t\t\t\t\ttitle.setFont(big_underline_font);\n\t\t\t\t\t\tbugid.setFont(font);\n\t\t\t\t\t\tbugTitle.setFont(font);\n\t\t\t\t\t\tproductTitle.setFont(big_underline_font);\n\t\t\t\t\t\tproductID.setFont(font);\n\t\t\t\t\t\tproductName.setFont(font);\n\t\t\t\t\t\tbugDescription.setFont(font);\n\t\t\t\t\t\tproductDescription.setFont(font);\n\t\t\t\t\t\tbugState.setFont(font);\n\n\t\t\t\t\t\t// Add textfields to parent component\n\t\t\t\t\t\tBox vBox = Box.createVerticalBox();\n\t\t\t\t\t\tvBox.add(title);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugTitle);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugid);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugDescription);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugState);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productTitle);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productID);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productName);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productDescription);\n\t\t\t\t\t\tbugPanel.add(vBox);\n\n\t\t\t\t\t\tObject options[] = { \"OK\" };\n\t\t\t\t\t\tJOptionPane.showOptionDialog(null, bugPanel, \"Inspect Bug\", JOptionPane.OK_OPTION,\n\t\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected SearchResult getJiraIssues() throws JiraAccessException {\r\n\tAsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();\r\n\ttry {\r\n\t URI jiraServerUri = new URI(getJiraUrl());\r\n\t JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, getJiraUsername(),\r\n\t\t getJiraPassword());\r\n\t return restClient.getSearchClient().searchJql(\"project = SITEWHERE\", 1000, 0, null).get();\r\n\t} catch (URISyntaxException e) {\r\n\t throw new JiraAccessException(e);\r\n\t} catch (InterruptedException e) {\r\n\t throw new JiraAccessException(e);\r\n\t} catch (ExecutionException e) {\r\n\t throw new JiraAccessException(e);\r\n\t}\r\n }", "private static void showsNamedQuery() {\n\n\t\tQuery<BugReport> queryAssigned = Ebean.createQuery(BugReport.class, \"withAssigned\");\n\t\tqueryAssigned.where().eq(\"assigned.id\", 1);\n\n\t\tList<BugReport> assigned = queryAssigned.findList();\n\t\tSystem.out.println(\"\" + assigned);\n\n\t\tfor (BugReport bugReport : assigned) {\n\t\t\t// this will invoke lazy loading of the user name\n\t\t\tString name = bugReport.getAssigned().getName();\n\t\t\t// this will invoke lazy loading of the status title\n\t\t\tString status = bugReport.getStatus().getTitle();\n\t\t\tint count = bugReport.getCount();\n\n\t\t\tSystem.out.println(\" assigned: \" + count + \" to \" + name + \" as \" + status);\n\t\t}\n\t}", "@Test\n\tpublic void findQCIndividualNotesTest(){\n//\t\tlog.trace(\"GETTING individual notes by Trainee\");\n\t\tfinal short weekNum = 2;\n\t\t\n\t\t// get notes\n\t\tList<Note> notes = noteDao.findQCIndividualNotes(TEST_TRAINEE_ID, weekNum);\n\t\t\n\t\t// compare with expected\n\t\tassertEquals(notes.size(),1);\n\t\tassertEquals(notes.get(0).getContent(),\"technically weak on SQL.\");\n\t}", "private void collectBugReport() {\n connectToCarServiceSync();\n\n if (Build.IS_USERDEBUG || Build.IS_ENG) {\n mSingleThreadExecutor.schedule(\n this::grabBtSnoopLog, ACTIVITY_FINISH_DELAY_MILLIS, TimeUnit.MILLISECONDS);\n }\n mSingleThreadExecutor.schedule(\n this::saveBugReport, ACTIVITY_FINISH_DELAY_MILLIS, TimeUnit.MILLISECONDS);\n }", "public objData getQuestion(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TBD_REFID, TSDB_REFID, TDB_QNO, TDB_QUEST FROM TEST_DB WHERE TDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "public List<Revista> getRevistas(){\n List<Revista> revistas = new ArrayList<>();\n Revista r = null;\n String id, nome, categoria, nrConsultas, editorID, empresaID;\n LocalDate edicao;\n\n\n try {\n connection = con.connect();\n PreparedStatement stm = connection.prepareStatement(\"SELECT * FROM Revista\");\n ResultSet rs = stm.executeQuery();\n\n while(rs.next()){\n id = rs.getString(\"ID\");\n nome = rs.getString(\"Nome\");\n edicao = rs.getDate(\"Edicao\").toLocalDate();\n categoria = rs.getString(\"Categoria\");\n nrConsultas = rs.getString(\"NrConsultas\");\n editorID = rs.getString(\"Editor_ID\");\n empresaID = rs.getString(\"Empresa_ID\");\n r = new Revista(id,nome,edicao,categoria,nrConsultas,editorID,empresaID);\n revistas.add(r);\n }\n } catch (SQLException e1) {\n e1.printStackTrace();\n }\n finally{\n con.close(connection);\n }\n return revistas;\n }", "public List<Issue> getIssues (E block);", "public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }", "void getInfoFromDatabase(int categoryId, int questionId){\n\n\t\t\tDataBaseHelper myDbHelper = new DataBaseHelper(this\n\t\t\t\t\t.getApplicationContext());\n\t\t\tmyDbHelper = new DataBaseHelper(this);\n\n\t\t\ttry {\n\n\t\t\t\tmyDbHelper.createDataBase();\n\n\t\t\t} catch (IOException ioe) {\n\n\t\t\t\tthrow new Error(\"Unable to create database\");\n\n\t\t\t}\n\n\t\t\ttry {\n\n\t\t\t\tmyDbHelper.openDataBase();\n\t\t\t\tquestionFromDatabase = myDbHelper.getQuestion(categoryId, questionId);\n\t\t\t \n\t\t\t\tdisplayedQuestionFromDatabase = questionFromDatabase;\n\t\t\t\tSystem.out.println(\"questionFromDatabase = \" + questionFromDatabase);\n\t\t\t\tanswer1FromDatabase = myDbHelper.getCorrectAnswer(categoryId, questionId); //correct answer from database\n\t\t\t\tSystem.out.println(\"correct answer from db = \" + answer1FromDatabase );\n\t\t\t\tanswer2FromDatabase = myDbHelper.getWrongAnswer1(categoryId, questionId);\n\t\t\t\tanswer3FromDatabase = myDbHelper.getWrongAnswer2(categoryId, questionId);\n\t\t\t\tanswer4FromDatabase = myDbHelper.getWrongAnswer3(categoryId, questionId);\n\t\t\t\n\t\t\t\tmyDbHelper.close();\n\t\t\t\n\t\t\t} catch (SQLException sqle) {\n\t\t\t\tSystem.out.println(\"Errored out\");\n\t\t\t\ttry {\n\t\t\t\t\tthrow sqle;\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t \n\t }", "@Test\n public void test2(){\n String sql = \"select order_id orderID, order_name orderName, order_date orderDate from order_table where order_id = ?\";\n Order order = getOrder(sql, 4);\n System.out.println(order);\n }", "@Test\n public void testGetForumByID() {\n try {\n ForumDTO forumDTO = forumService.getForumWithID(FORUM_ID);\n assertEquals(FORUM_ID, forumDTO.getId());\n assertEquals(USER_NAME, forumDTO.getAuthor().getUsername());\n assertEquals(FORUM_TITLE, forumDTO.getTitle());\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "public String[] findPost(String username, int postid){\n Connection c = null;\n PreparedStatement ps = null;\n ResultSet rs = null; \n\n String[] data = null;\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n\n //Prepare statement\n ps = c.prepareStatement(\"SELECT * FROM Posts WHERE username=? AND postid=?\");\n ps.setString(1, username);\n ps.setInt(2, postid);\n\n rs = ps.executeQuery();\n\n //set in data if exists: ASSUMES there is only one response\n if(rs.next()){\n data = new String[2];\n data[0] = rs.getString(\"title\");\n data[1] = rs.getString(\"body\");\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n return data;\n }", "Problem readGeneralProblem(ElementId elementId) throws DatabaseException;", "public int getProblemId(String title) {\n int problemId = -1;\n String query = \"select id from problem where title=? \";\n try (Connection myConn = Database.getConnection();\n PreparedStatement statement = myConn.prepareStatement(query);) {\n statement.setString(1, title);\n try (ResultSet rs = statement.executeQuery();) {\n if (rs.next()) problemId = rs.getInt(\"id\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return problemId;\n }", "public List <reclamation> findall(){\n\t\tList<reclamation> a = reclamationRepository.findAll();\n\t\t\n\t\tfor(reclamation reclamations : a)\n\t\t{\n\t\t\tL.info(\"reclamations :\"+ reclamations);\n\t\t\t\n\t\t}\n\t\treturn a;\n\t\t}", "@Override\r\n\tpublic List<Fault> listToDoFaults() {\r\n\t\tString sql = \"SELECT * FROM \" + Constants.FAULT_TABLE_NAME + \" WHERE \" + Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \" = '\"+ Constants.FAULT_TABLE_TO_DO_STATUS +\"'\";\r\n\t List<Fault> faultsToDo = jdbcTemplate.query(sql, new RowMapper<Fault>() {\r\n\t \r\n\t @Override\r\n\t public Fault mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t Fault faults = new Fault();\r\n\t \r\n\t faults.setIdFault(rs.getInt(Constants.FAULT_TABLE_ID_COLUMN));\r\n\t faults.setDateTime(rs.getDate(Constants.FAULT_TABLE_DATE_TIME_COLUMN));\r\n\t faults.setProductId(rs.getString(Constants.FAULT_TABLE_PRODUCT_ID_COLUMN));\r\n\t faults.setProductType(rs.getString(Constants.FAULT_TABLE_PRODUCT_TYPE_COLUMN));\r\n\t faults.setClientName(rs.getString(Constants.FAULT_TABLE_CLIENT_NAME_COLUMN));\r\n\t faults.setClientStreet(rs.getString(Constants.FAULT_TABLE_CLIENT_STREET_COLUMN));\r\n\t faults.setClientPostalCode(rs.getString(Constants.FAULT_TABLE_CLIENT_POSTAL_CODE));\r\n\t faults.setClientPlace(rs.getString(Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN));\r\n\t faults.setClientPhoneOne(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN));\r\n\t faults.setClientPhoneTwo(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN));\r\n\t faults.setFaultDescription(rs.getString(Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN));\r\n\t faults.setFaultNote(rs.getString(Constants.FAULT_TABLE_FAULT_NOTE_COLUMN));\r\n\t faults.setFaultIssuedTo(rs.getString(Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN));\r\n\t faults.setFaultType(rs.getString(Constants.FAULT_TABLE_FAULT_TYPE_COLUMN));\r\n\t faults.setFaultPriority(rs.getString(Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN));\r\n\t faults.setFaultLat(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LAT));\r\n\t faults.setFaultLng(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LNG));\r\n\t \r\n\t return faults;\r\n\t }\r\n\t \r\n\t });\r\n\t \r\n\t return faultsToDo;\r\n\t\t\r\n\t}", "public void testgetCommentHistoryForOfficerTitles() {\n \n Collection CommentData = affOfficerBean.getCommentHistoryForOfficerTitles(AFF_PK);\n if (CommentData == null) {\n fail(\"No comments found\");\n }\n else { \n System.out.println(CommentData);\n }\n \n }", "public void fetch(){ \n for(int i = 0; i < this.queries.size(); i++){\n fetch(i);\n }\n }", "public static List<Question> fetch(int id) throws ApplicationException {\n List<Question> result = null;\n\n Connection connection = null;\n try {\n connection = ConnectionPool.getConnection();\n result = QuestionDatabaseAccess.fetch(connection, id);\n } finally {\n ConnectionPool.releaseConnection(connection);\n }\n\n return result;\n }", "@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }", "protected static List<Question> fetch(Connection connection, int id)\n throws ApplicationException {\n // LOGGER.fine(\"Perform 'SELECT' on table \" +\n // QuestionDatabaseAccess.TABLE);\n\n List<Question> result = new LinkedList<>();\n\n StringBuilder sqlQuery = new StringBuilder(\"\");\n sqlQuery.append(\"SELECT * FROM \" + TABLE);\n sqlQuery.append(\" WHERE \" + COL_USER_ID);\n sqlQuery.append(\" <> ? AND \" + COL_QUESTION_ID);\n sqlQuery.append(\" NOT IN (SELECT \" + COL_QUESTION_ID);\n sqlQuery.append(\" FROM \" + RoundsDatabaseAccess.TABLE);\n sqlQuery.append(\" WHERE \" + COL_USER_ID);\n sqlQuery.append(\" = ?)\");\n // and not deleted, reported or followUps\n sqlQuery.append(\" AND \" + COL_QUESTION_ID);\n sqlQuery.append(\" NOT IN (SELECT \" + COL_QUESTION_ID);\n sqlQuery.append(\" FROM \" + QuestionDatabaseAccess.TABLE);\n sqlQuery.append(\" WHERE \" + QuestionDatabaseAccess.COL_REPORTED);\n sqlQuery.append(\" >= 3 OR \" + QuestionDatabaseAccess.COL_PREVIOUS_ID);\n sqlQuery.append(\" != 0);\");\n\n PreparedStatement statement = null;\n try {\n try {\n statement = connection.prepareStatement(sqlQuery.toString());\n statement.setInt(1, id);\n statement.setInt(2, id);\n ResultSet resultSet = statement.executeQuery();\n result = convertToInstances(resultSet);\n } finally {\n if (statement != null) {\n statement.close();\n }\n }\n } catch (SQLException e) {\n throw new ApplicationException(\"Failed to fetch\", e);\n }\n\n return result;\n }", "public Collection getPosts() throws DatabaseException;", "@Test(expected = IndexOutOfBoundsException.class)\r\n public void fetchAllPosts(){\r\n \r\n List<Post> listOfPosts = entityManager.createNamedQuery(\"Post.fetchAllRecords\").getResultList();\r\n \r\n assertTrue(\"Size is always greater than 0.\", listOfPosts.size() > 0);\r\n assertNotNull(\"List object is not null\", listOfPosts);\r\n assertEquals(\"Size should be 3\", listOfPosts.size(),3);\r\n \r\n assertEquals(\"PEOPLE ARE BAD AT TAKING OVER FROM AUTONOMOUS CARS.\", listOfPosts.get(5));\r\n \r\n }", "public List<Questions> getAllQuestionsHard() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 1 AND 10\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "public static List<SqlRow> findAll() {\n\n try{\n List<SqlRow> queryFindAll = Ebean.createSqlQuery(\"SELECT * FROM pub_infoapi;\")\n .findList();\n return queryFindAll;\n }catch(Exception e){\n e.printStackTrace();\n return null;\n }\n }", "public void saveBug(Bugs theBug) {\n\t\tthis.bugId = theBug.getId();\n\t\tthis.category = theBug.getCategory();\n\t\tthis.date = theBug.getDate();\n\t\tthis.description = theBug.getDescription();\n\t\tthis.addedBy = theBug.getAddedBy();\n\t\tthis.status = theBug.getStatus();\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Find Fixture\");\n String team = request.getParameter(\"team\");\n String connectionUrl = \"jdbc:mysql://localhost:3306/fantasy?zeroDateTimeBehavior=convertToNull\";\n String dbName = \"fantasy\";\n String userId = \"root\";\n String password = \"\";\n list = new ArrayList<>();\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n\n try {\n\n // Load the database driver\n Class.forName(\"com.mysql.jdbc.Driver\");\n String sql = \"\";\n // Get a Connection to the database\n connection = DriverManager.getConnection(connectionUrl, userId, password);\n sql = \"SELECT * FROM fixture where home='\" + team + \"' || away='\" + team + \"'\";\n int i = 1;\n //Select the data from the database\n\n System.out.println(sql);\n Statement s = connection.createStatement();\n s.executeQuery(sql);\n\n resultSet = s.getResultSet();\n while (resultSet.next()) {\n String gw = resultSet.getString(\"fixture\");\n list.add(\"GW\" + gw.split(\" \")[1]);\n String date = resultSet.getString(\"date\");\n if (date.equals(\"-\")) {\n list.add(\"-\");\n } else {\n list.add(convertDate(date));\n }\n\n if (resultSet.getString(\"home\").equals(team)) {\n String awayTeam = resultSet.getString(\"away\");\n if (awayTeam.equals(\"Houston Dash\")) {\n list.add(\"vs HOU\");\n\n } else if (awayTeam.equals(\"Chicago Red Stars\")) {\n list.add(\"vs CHI\");\n } else if (awayTeam.equals(\"Portland Thorns FC\")) {\n list.add(\"vs POR\");\n } else if (awayTeam.equals(\"Orlando Pride\")) {\n list.add(\"vs ORL\");\n } else if (awayTeam.equals(\"Washington Spirit\")) {\n list.add(\"vs WAS\");\n } else if (awayTeam.equals(\"North Carolina Courage\")) {\n list.add(\"vs NC\");\n } else if (awayTeam.equals(\"Seattle Reign FC\")) {\n list.add(\"vs SEA\");\n } else if (awayTeam.equals(\"Sky Blue FC\")) {\n list.add(\"vs NJ\");\n } else if (awayTeam.equals(\"Utah Royals FC\")) {\n list.add(\"vs UTA\");\n } else if (awayTeam.equals(\"Boston Breakers\")) {\n\n } else {\n list.add(\"-\");\n }\n } else {\n\n String homeTeam = resultSet.getString(\"home\");\n if (homeTeam.equals(\"Houston Dash\")) {\n list.add(\"@ HOU\");\n\n } else if (homeTeam.equals(\"Chicago Red Stars\")) {\n list.add(\"@ CHI\");\n } else if (homeTeam.equals(\"Portland Thorns FC\")) {\n list.add(\"@ POR\");\n } else if (homeTeam.equals(\"Orlando Pride\")) {\n list.add(\"@ ORL\");\n } else if (homeTeam.equals(\"Washington Spirit\")) {\n list.add(\"@ WAS\");\n } else if (homeTeam.equals(\"North Carolina Courage\")) {\n list.add(\"@ NC\");\n } else if (homeTeam.equals(\"Seattle Reign FC\")) {\n list.add(\"@ SEA\");\n } else if (homeTeam.equals(\"Sky Blue FC\")) {\n list.add(\"@ NJ\");\n } else if (homeTeam.equals(\"Utah Royals FC\")) {\n list.add(\"@ UTA\");\n } else if (homeTeam.equals(\"Boston Breakers\")) {\n list.add(\"@ BOS\");\n }\n }\n list.add(resultSet.getString(\"time\"));\n\n }\n\n resultSet.close();\n\n s.close();\n connection.close();\n\n } catch (Exception e) {\n\n System.out.println(\"Exception is ;\" + e);\n\n }\n\n String json = new Gson().toJson(list);\n response.setContentType(\"application/json\"); // Set content type of the response so that jQuery knows what it can expect.\n response.setCharacterEncoding(\"UTF-8\"); // You want world domination, huh?\n response.getWriter().write(json);\n\n }", "@Override\n\tpublic List<Problem> selectAll() {\n\t\treturn problemMapper.selectAll();\n\t}", "private void loadNotesFromDB(){\n AppDB appDB = Room.databaseBuilder(getApplicationContext(), AppDB.class, \"app-database\").build();\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n List<Note> notes = appDB.notesDao().getAllNotes();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // TODO: setup My RecyclerView\n setupNotesRecyclerView(notes);\n Log.d(\"MainActivity\", \"Notes Count: \" + notes.size());\n }\n });\n }\n }).start();\n }", "public void loadQuestions() \n {\n try{\n ArrayList<QuestionPojo> questionList=QuestionDao.getQuestionByExamId(editExam.getExamId());\n for(QuestionPojo obj:questionList)\n {\n qstore.addQuestion(obj);\n }\n }\n catch(SQLException ex)\n {\n JOptionPane.showMessageDialog(null, \"Error while connecting to DB!\",\"Exception!\",JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n\n }\n }", "public void createBug(Bug bug) {\n\t\tbugRespository.save(bug);\n\t}", "public BugPriority getPriority(){return priority;}", "String getIssueDetail();", "public List<Issue> getUserActiveIssues(User user);", "public SortedSet<ReleaseJira> retriveReleases() throws IOException, ParseException{\n\t\t\n\t\tString url = basicUrl + \"project/\" + this.projectName + \"/version\";\n\t\tTreeSet<ReleaseJira> releases = new TreeSet<>((o1,o2) -> o1.getReleaseDate().compareTo(o2.getReleaseDate()));\n\t\t\n\t\tJSONObject json = JSONTools.readJsonFromUrl(url);\n JSONArray versions = json.getJSONArray(\"values\");\n \n for (Integer i = 0; i < versions.length(); i++ ) {\n JSONObject version = versions.getJSONObject(i);\n \t\n if (version.has(\"releaseDate\") && version.has(\"name\") && version.has(\"id\")) {\n \treleases.add(new ReleaseJira(version.getInt(\"id\"), version.getString(\"name\"), new SimpleDateFormat(\"yyyy-MM-dd\").parse(version.getString(\"releaseDate\"))));\t\n }\n }\n return releases;\n\t}", "@Override\n public Collection<FasciaOrariaBean> doRetrieveAll() throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria\";\n ArrayList<FasciaOrariaBean> collection = new ArrayList<>();\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n System.out.println(\"DoRetriveAll\" + statement);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n collection.add(bean);\n }\n return collection;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return collection;\n }", "@Test\n public void whenGetTickets_thenTickets()\n throws Exception {\n\n \tCollection<Ticket> ticket = new ArrayList<Ticket>();\n \tticket.add(new Ticket((long) 1, 4, 360, Constants.STATUS_WAITING, null, null));\n\n \tgiven(ticketService.findAllTickets()).willReturn(ticket);\n\n mvc.perform(MockMvcRequestBuilders.get(\"/api/tickets\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(MockMvcResultMatchers.status().isOk())\n .andExpect(MockMvcResultMatchers.content().json(\"[\\r\\n\" + \n \" {\\r\\n\" + \n \" \\\"id\\\": 1,\\r\\n\" + \n \" \\\"totalodd\\\": 4.0,\\r\\n\" + \n \" \\\"possiblegain\\\": 360.0,\\r\\n\" + \n \" \\\"status\\\": 0\\r\\n\" + \n \" }\\r\\n\" + \n \"]\"));\n }", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "@Test\n public void testSelectSpecificRowThatDoesNotExist() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n String commitID = commit.getCommitID() + \"A\";\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n CommitStructure commits = mysqlDatabase.selectSpecificRow(commitID);\n // Assert\n assertNull(commits);\n }", "private void populateTicketDBData(Map<String, ExtTicketVO> tickets) {\n\t\tif (tickets == null || tickets.isEmpty()) return;\n\t\tString sql = StringUtil.join(\"select distinct t.ticket_id, t.ticket_no\",\n\t\t\t\tDBUtil.FROM_CLAUSE, schema, \"wsla_ticket t\",\n\t\t\t\tDBUtil.WHERE_CLAUSE, \"t.ticket_no in (\", DBUtil.preparedStatmentQuestion(tickets.size()), \")\");\n\t\tlog.debug(sql);\n\n\t\tint x = 0;\n\t\ttry (PreparedStatement ps = dbConn.prepareStatement(sql)) {\n\t\t\tfor (String ticketId : tickets.keySet())\n\t\t\t\tps.setString(++x, ticketId);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tExtTicketVO tkt = tickets.get(rs.getString(2));\n\t\t\t\tif (tkt == null) {\n\t\t\t\t\tlog.error(\"could not find ticket for \" + rs.getString(2));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ttkt.setTicketId(rs.getString(1)); //these should be the same as ticketNo, but just in case\n\t\t\t\ttkt.setTicketIdText(rs.getString(2));\n\t\t\t}\n\n\t\t} catch (SQLException sqle) {\n\t\t\tlog.error(\"could not populate tickets from DB\", sqle);\n\t\t}\n\t}", "public void getDataFromDatabase(){\r\n\t \tArrayList<Object> row = HomeActivity.dbPrograms.getDetail(SelectedID);\r\n\t \t\r\n\t\t\t// store data to variables\r\n\t \tProgramID = Integer.parseInt(row.get(0).toString());\r\n\t \tWorkoutID = Integer.parseInt(row.get(1).toString());\r\n\t \tName = row.get(2).toString();\r\n\t \tSelectedDayID = Integer.parseInt(row.get(3).toString());\r\n\t \tImage = row.get(4).toString();\r\n\t \tTime = row.get(5).toString().trim();\r\n\t \tSteps = row.get(6).toString();\r\n\t \t\r\n\t }", "@Override\n public List<Seq> getAll() {\n Connection conn = null;\n Statement stmt = null;\n List<Seq> listSeqs = new ArrayList<>();\n\n try {\n String url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n conn = DriverManager.getConnection(url);\n stmt = conn.createStatement();\n ProcessesDAO pdao = new ProcessesDAO();\n String sql = \"select * from seq;\";\n ResultSet rs = stmt.executeQuery(sql);\n\n while (rs.next()) {\n\n Seq seq = new Seq(rs.getInt(\"id\"), pdao.getbyidentifier(rs.getString(\"identifier\")), rs.getInt(\"seq_number\"));\n listSeqs.add(seq);\n }\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n try {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n return listSeqs;\n }", "@ActionKey(\"db\")\n\tpublic void testDB() {\n\t\tUser user = User.dao.findById(1, \"qword_id\");\n\t\trenderText(\"data in database:\" + user.getStr(\"qword_id\"));\n\t\t\n\t}" ]
[ "0.6877148", "0.63195586", "0.6216345", "0.605009", "0.58003044", "0.5786973", "0.57462704", "0.5737467", "0.56559956", "0.56397635", "0.55253917", "0.5398804", "0.5397104", "0.5347801", "0.5320471", "0.5306543", "0.5305292", "0.52964544", "0.5236103", "0.52138585", "0.5211415", "0.513104", "0.51121205", "0.51060253", "0.51058567", "0.51048285", "0.5080794", "0.50803334", "0.5065279", "0.50504255", "0.50236577", "0.5021233", "0.50166404", "0.50115526", "0.5010366", "0.50099266", "0.4982596", "0.49821386", "0.497662", "0.4969253", "0.4964709", "0.4952828", "0.49517477", "0.49431658", "0.49392864", "0.49367395", "0.49358737", "0.49330807", "0.49260798", "0.49186134", "0.49161994", "0.49139684", "0.49021426", "0.49011993", "0.48960447", "0.489386", "0.48928055", "0.4887109", "0.48834985", "0.48757875", "0.48750654", "0.4873651", "0.48730263", "0.48721948", "0.48698357", "0.48642448", "0.48614788", "0.48581478", "0.48548266", "0.48472443", "0.48468816", "0.4837159", "0.48322493", "0.48216322", "0.48167425", "0.48148713", "0.48119152", "0.48113355", "0.4805276", "0.48050046", "0.48040012", "0.48019633", "0.47998694", "0.47922546", "0.47909015", "0.47901425", "0.4787935", "0.47871915", "0.47804013", "0.47618523", "0.47582573", "0.47492692", "0.4748333", "0.47451735", "0.47439742", "0.47437596", "0.47379577", "0.4736261", "0.47346342", "0.4733035" ]
0.75965756
0
Inserts a bug into database
public void createBug(Bug bug) { bugRespository.save(bug); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert() throws SQLException;", "org.landxml.schema.landXML11.CrashDataDocument.CrashData insertNewCrashData(int i);", "@Insert//(onConflict = OnConflictStrategy.IGNORE)\n void insert(Issue issue);", "public int createDBEntry() {\n\t\tint i = 0;\n\t\ttry {\n\t\t\tConnection con;\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tStatement statement = con.createStatement();\n\n\t\t\tStringBuffer strBuf = new StringBuffer();\n\t\t\tstrBuf.append(\"insert into Ticket(ticketID,\");\n\t\t\tstrBuf.append(\"ticketDate, \");\n\t\t\tstrBuf.append(\"bugTitle, \");\n\t\t\tstrBuf.append(\"bugDescription, \");\n\t\t\tstrBuf.append(\"bugCategory, \");\n\t\t\tstrBuf.append(\"projectName, \");\n\t\t\tstrBuf.append(\"projectVersion, \");\n\t\t\tstrBuf.append(\"assignedToDev, \");\n\t\t\tstrBuf.append(\"priority, \");\n\t\t\tstrBuf.append(\"status, \");\n\t\t\tstrBuf.append(\"comments, \");\n\t\t\tstrBuf.append(\"targetDueDate, \");\n\t\t\tstrBuf.append(\"ticketCreatedBy \");\t\n\t\t\tstrBuf.append(\") values (last_insert_id(), \");\n\t\t\tstrBuf.append(\"'\" + this.ticketDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugTitle + \"', \");\t\t\t\t\n\t\t\tstrBuf.append(\"'\" + this.bugDescription + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugCategory + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectVersion + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.assignedToDevName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketPriority + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketStatus + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.comments + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.targetDueDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.TicketCreatedBy + \"'\");\n\t\t\tstrBuf.append(\")\");\n\n\t\t\ti = statement.executeUpdate(strBuf.toString());\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn i;\n\t}", "@Test\n public void testInsert() throws Exception {\n TestConnection conn = methodWatcher.getOrCreateConnection();\n conn.setAutoCommit(false);\n\n // insert good data\n PreparedStatement ps = methodWatcher.prepareStatement(\n String.format(\"insert into %s.%s (taskId, empId, startedAt, finishedAt) values (?,?,?,?)\",\n tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, \"1011\");\n ps.setInt(2, 101);\n ps.setInt(3, 0600);\n ps.setInt(4, 0700);\n int rows = ps.executeUpdate();\n\n Assert.assertEquals(1, rows);\n }", "@Test\n public void testInsertingValidValues() throws SQLException {\n CommitStructure commit = getSampleCommit();\n MysqlDatabase mysqlDatabase = new MysqlDatabase(connection);\n assertTrue(mysqlDatabase.insertCommitToDatabase(commit));\n }", "void insert(BnesBrowsingHis record) throws SQLException;", "public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}", "public static void createTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO bs_tickets (username, admin, status, question, server, date_created, date_accepted, date_resolved) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}", "public void createBug(Vector2 tilePosition)\n {\n BoardTile tile = getTile(tilePosition);\n if(tile != null)\n {\n BoardBug bug = new BoardBug(bugsId);\n ++bugsId;\n\n bug.setTilePosition(tilePosition);\n tile.setBug(bug);\n board.addChild(bug);\n }\n }", "public void saveBug(Bugs theBug) {\n\t\tthis.bugId = theBug.getId();\n\t\tthis.category = theBug.getCategory();\n\t\tthis.date = theBug.getDate();\n\t\tthis.description = theBug.getDescription();\n\t\tthis.addedBy = theBug.getAddedBy();\n\t\tthis.status = theBug.getStatus();\n\t}", "@Override\n\tpublic void insertQA(QA qa) {\n\t\tqaDao.insertQAPost(qa);\n\t}", "void insert(OrderPreferential record) throws SQLException;", "int insert(FeiWenComment record);", "protected abstract void insertQuestionTx(QuestionImpl question);", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "public void insert(Connection db) throws SQLException {\n this.insert(db, this.questionId);\n }", "@PostMapping(consumes = \"application/json\")\n\tpublic void create (@Valid @RequestBody Bug bug) {\n\t\tbugService.createBug(bug);\n\t}", "public void dyrepinsert(DYRepBoardDTO dto) {\n\t\t\n\t\tDBConn dbconn = DBConn.getDB();\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=dbconn.getConn();\n\t\t\tconn.setAutoCommit(false);\n\t\t\t\n\t\t\tDYBoardDAO dao = DYBoardDAO.getdao();\n\t\t\tdao.dyrepinsert(conn,dto);\n\t\t\t\n\t\t\tconn.commit();\n\t\t}catch(NamingException | SQLException e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t\ttry {conn.rollback();}catch(SQLException e2) {}\n\t\t}finally {\n\t\t\tif(conn!=null)try {conn.close();}catch(SQLException e) {}\n\t\t}\n\t\t\n\t}", "void insert(GfanCodeBanner record) throws SQLException;", "@Test\n public void test1Insert() {\n\n System.out.println(\"Prueba de SpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.insert(spec), 1);\n \n }", "public void insert() throws SQLException {\n String sql = \"INSERT INTO course (courseDept, courseNum, courseName, credit, info) \"\n + \" values ('\"\n + this.courseDept + \"', '\"\n + this.courseNum + \"', '\"\n + this.courseName + \"', \"\n + this.credit + \", '\"\n + this.info + \"')\";\n\n DatabaseConnector.updateQuery(sql);\n }", "public void insertBoard(NoticeBoardVO vo){\r\n\t\tString sql=\"insert into board_notice(userid,pass,title,content,writedate,fileurl) \"+\r\n\t\t\t\t\t\t\t\"values(?,?,?,?,?,?)\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, vo.getUserid());\t\t\t\r\n\t\t\tpstmt.setString(2, vo.getPass());\r\n\t\t\tpstmt.setString(3, vo.getTitle());\r\n\t\t\tpstmt.setString(4, vo.getContent());\r\n\t\t\tTimestamp time=new Timestamp(System.currentTimeMillis());\r\n\t\t\tpstmt.setTimestamp(5,time);\r\n\t\t\tpstmt.setString(6, vo.getFileurl());\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, pstmt);\r\n\t\t}\r\n\t}", "int insert(FactRoomLog record);", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "int insert(UserTips record);", "int insert(trackcomment record);", "private static void testInsert() {\n\t\tSkemp skemp = new Skemp();\n\t\tskemp.setId(99);\n\t\tskemp.setName(\"王2\");\n\t\tskemp.setSex(\"男\");\n\t\tSkempDao skempDao = new SkempDaoImpl();\n\t\tskempDao.insertSkemp(skemp);\n\t}", "void insert(IrpSignInfo record) throws SQLException;", "int insert(PmPost record);", "public void addTicket(phonecallTicket ticket){\n try {\n \n System.out.println(\"Number of tickets? \" + (total()+1));\n String insert =\"INSERT INTO JEREMY.TICKET \"\n + \"(ID,NAME,PHONE,TAG,DATE,PROBLEM,NOTES,STATUS) \"\n + \"VALUES \"\n \n + \"(\" + (total() +1) +\",'\"\n +ticket.who+\"','\"\n +ticket.phone+\"','\"\n +ticket.tag+\"',' \"\n +ticket.date+\"',' \"\n +ticket.problem+\"',' \"\n +ticket.notes+\"','\"\n +\"NEW\"+\"')\";\n \n System.out.println(insert);\n \n stmt.executeUpdate(insert);\n \n rs = stmt.executeQuery(\"SELECT * FROM JEREMY.TICKET\");\n total();\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n }\n tickets.add(ticket);\n }", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "public void insert() {\n String sqlquery = \"insert into SCORE (NICKNAME, LEVELS,HIGHSCORE, NUMBERKILL) values(?, ?, ?,?)\";\n try {\n ps = connect.prepareStatement(sqlquery);\n ps.setString(1, this.nickname);\n ps.setInt(2, this.level);\n ps.setInt(3, this.highscore);\n ps.setInt(4, this.numofKill);\n ps.executeUpdate();\n //JOptionPane.showMessageDialog(null, \"Saved\", \"Insert Successfully\", JOptionPane.INFORMATION_MESSAGE);\n System.out.println(\"Insert Successfully!\");\n ps.close();\n connect.close();\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "public void insert(Job job) throws DatabaseException, IllegalArgumentException;", "int insert(SysNotice record);", "int insert(Storydetail record);", "int insert(Assist_table record);", "int insert(InspectionAgency record);", "public void insert()\n\t{\n\t}", "@Override\n\tpublic boolean insert(String sql) {\n\t\treturn false;\n\t}", "public abstract boolean insert(Log log) throws DataException;", "int insert(Comment record);", "public void insert(){\r\n\t\tString query = \"INSERT INTO liveStock(name, eyeColor, sex, type, breed, \"\r\n\t\t\t\t+ \"height, weight, age, furColor, vetNumber) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement prepareStatement = conn.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tprepareStatement.setString(1, liveStock.getName());\r\n\t\t\tprepareStatement.setString(2, liveStock.getEyeColor());\r\n\t\t\tprepareStatement.setString(3, liveStock.getSex());\r\n\t\t\tprepareStatement.setString(4, liveStock.getAnimalType());\r\n\t\t\tprepareStatement.setString(5, liveStock.getAnimalBreed());\r\n\t\t\tprepareStatement.setString(6, liveStock.getHeight());\r\n\t\t\tprepareStatement.setString(7, liveStock.getWeight());\r\n\t\t\tprepareStatement.setInt(8, liveStock.getAge());\r\n\t\t\tprepareStatement.setString(9, liveStock.getFurColor());\r\n\t\t\tprepareStatement.setInt(10, liveStock.getVetNumber());\r\n\t\t\t\r\n\t\t\tprepareStatement.execute();\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void insert(BibliographicDetails bibDetails) {\n\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n session.save(bibDetails);\n tx.commit();\n } catch (RuntimeException e) {\n \n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "Integer insert(ChronicCheck record);", "@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}", "@Test\n public void testInsertarNota() {\n System.out.println(\"insertarNota\");\n String tipoNota = \"\";\n Double nota = null;\n Alumno instance = null;\n instance.insertarNota(tipoNota, nota);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void insertBooking(Booking booking) throws SQLException, Exception;", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "int insert(Question record);", "int insert(Question record);", "int insert(Question record);", "int insert(Question record);", "public boolean addNotification(Notification notification) throws SQLException{\n// connection = Db.instance().getConnection();\n try{\n ps = connection.prepareStatement(\"INSERT INTO notification(user_email, text) VALUES (?,?)\");\n ps.setString(1,notification.getUserEmail());\n ps.setString(2,notification.getText());\n int res = ps.executeUpdate();\n return res==1;\n }\n finally {\n Db.close(ps);\n }\n }", "public void insertLog (int logId,\r\n String clientName,\r\n String initialCallDate,\r\n String letterMailDate,\r\n String firstCallDate,\r\n String secCallDate,\r\n boolean madeContact,\r\n String numOfAttempt,\r\n String notes )\r\n {\n\r\n Connection con = null;\r\n PreparedStatement pstmt = null;\r\n try{\r\n con = ds.getConnection();\r\n pstmt = con.prepareStatement(QueryString.insertLog);\r\n setInt(pstmt, 1, logId);\r\n setString(pstmt, 2, clientName);\r\n setString(pstmt, 3, initialCallDate);\r\n setString(pstmt, 4, letterMailDate);\r\n setString(pstmt, 5, firstCallDate);\r\n setString(pstmt, 6, secCallDate);\r\n setBoolean(pstmt, 7, madeContact);\r\n setString(pstmt, 8, numOfAttempt);\r\n setString(pstmt, 9, notes);\r\n executeUpdate(pstmt);\r\n\r\n }catch(SQLException e){\r\n logger.log(Level.ERROR, \"Error: Problem executing query\", e); \t\r\n throw new RuntimeException(e.getMessage(), e);\r\n }finally{\r\n close(pstmt);\r\n releaseConnection(con);\r\n }\r\n }", "@Test\n void insertNoteSuccess() {\n Note newNote = new Note();\n\n newNote.setProspect(\"Graham Mertz\");\n newNote.setCollege(\"University of Wisconsin - Madison\");\n newNote.setUserId(1);\n newNote.setAge(19);\n newNote.setHeightFeet(6);\n newNote.setHeightInches(3);\n newNote.setWeight(225);\n newNote.setPosition(\"QB\");\n newNote.setRating(\"7/10\");\n newNote.setReport(\"He was redshirted his freshman season, and his first full season as a starter was derailed from covid. He showed a lot of good and also some bad plays, but we'll have to wait and see how he does with a real season.\");\n\n int id = noteDao.insert(newNote);\n assertNotEquals(0, id);\n Note insertedNote = (Note) noteDao.getById(id);\n\n assertEquals(\"Graham Mertz\", insertedNote.getProspect());\n assertEquals(\"University of Wisconsin - Madison\", insertedNote.getCollege());\n assertEquals(1, insertedNote.getUserId());\n assertEquals(19, insertedNote.getAge());\n assertEquals(6, insertedNote.getHeightFeet());\n assertEquals(3, insertedNote.getHeightInches());\n assertEquals(225, insertedNote.getWeight());\n assertEquals(\"QB\", insertedNote.getPosition());\n assertEquals(\"7/10\", insertedNote.getRating());\n }", "int insert(OpeningRequirement record);", "public static void insert(int codigo, String descripcion, double precioCompra, double precioVenta, int stock) {\n String sql = \"INSERT INTO articulo(Codigo, Nombre, PrecioC, PrecioV, Stock) \"\n + \"VALUES(\"\n +codigo\n +\",'\"+descripcion+\n \"',\"+precioCompra+\n \",\"+precioVenta+\n \",\"+stock+\")\";\n try(Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)){\n pstmt.executeUpdate();\n }\n catch(SQLException e) {\n System.out.println(\"Error. No se ha podido insertar el articulo \"+codigo + \" en la base de datos.\");\n //Descomentar la siguiente linea para mostrar el mensaje de error.\n //System.out.println(e.getMessage());\n }\n }", "int insert(GirlInfo record);", "public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}", "int insert(Miss_control_log record);", "int insert(WizardValuationHistoryEntity record);", "int insert(Comments record);", "void insert(CTipoComprobante record) throws SQLException;", "public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }", "public void dyinsert(DYBoardDTO dto) {\n\t\t\n\t\tDBConn dbconn= DBConn.getDB();\n\t\tConnection conn= null;\n\t\ttry {\n\t\t\tconn=dbconn.getConn();\n\t\t\tconn.setAutoCommit(false);\n\t\t\t\n\t\t\tDYBoardDAO dao = DYBoardDAO.getdao();\n\t\t\tdao.dyinsert(conn,dto);\n\t\t\t\n\t\t\tconn.commit();\n\t\t}catch(NamingException | SQLException e) {\n\t\t\tSystem.out.println(e);\n\t\t\ttry {conn.rollback();}catch(SQLException e2) {}\n\t\t}finally {\n\t\t\tif(conn!=null)try {conn.close();}catch(SQLException e) {}\n\t\t}\n\t\t\n\t}", "public void insert(Field field){\n\t\tPreparedStatement stmt = null;\n\t\tResultSet keyRS = null;\n\n\t\tString query = \"insert into fields (title, xcoord, width, helphtml,knowndata,foreignProjectKey,fieldnumber) \"+\n\t\t\t\t\"values (?,?,?,?,?,?,?)\";\n\t\ttry {\n\t\t\tstmt = db.getConnection().prepareStatement(query);\n\t\t\tstmt.setString(1, field.getTitle());\n\t\t\tstmt.setInt(2, field.getXcoord());\n\t\t\tstmt.setInt(3, field.getWidth());\n\t\t\tstmt.setString(4, field.getHelpHTML());\n\t\t\tstmt.setString(5,field.getKnownData());\n\t\t\tstmt.setInt(6,field.getForeignProjectKey());\n\t\t\tstmt.setInt(7, field.getFieldNumber());\n\n\t\t\tif (stmt.executeUpdate() == 1) {\n\t\t\t\tStatement keyStmt = db.getConnection().createStatement();\n\t\t\t\tkeyRS = keyStmt.executeQuery(\"select last_insert_rowid()\");\n\t\t\t\tkeyRS.next();\n\t\t\t\tint id = keyRS.getInt(1);\n\t\t\t\tfield.setPrimaryID(id);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new DatabaseException(\"Could not insert contact\");\n\t\t\t\t} catch (DatabaseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tthrow new DatabaseException(\"Could not insert contact\", e);\n\t\t\t} catch (DatabaseException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}finally {\n\t\t\tDatabase.safeClose(stmt);\n\t\t\tDatabase.safeClose(keyRS);\n\t\t}\n\n\t}", "public void insert(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "int insert(BehaveLog record);", "int insert(HotspotLog record);", "public Question saveQuestion(Question question) throws UserException {\n\t\tOnlineTest onlineTest=new OnlineTest();\r\n\t\tString sql=\"insert into Question(question_title, question_option_a, question_option_b, question_option_c, question_option_d, question_chosen_answer, question_correct_answer, question_marks, question_marks_scored, test_id) values(?,?,?,?,?,?,?,?,?,?)\";\r\n\t\ttry {\r\n\t\t\tpreparedStatement=connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tpreparedStatement.setString(1, question.getQuestionTitle());\r\n\t\t\tpreparedStatement.setString(2, question.getQusetionOptions()[0]);\r\n\t\t\tpreparedStatement.setString(3, question.getQusetionOptions()[1]);\r\n\t\t\tpreparedStatement.setString(4, question.getQusetionOptions()[2]);\r\n\t\t\tpreparedStatement.setString(5, question.getQusetionOptions()[3]);\r\n\t\t\tpreparedStatement.setInt(6, question.getChosenAnswer());\r\n\t\t\tpreparedStatement.setInt(7, question.getQuestionAnswer());\r\n\t\t\tpreparedStatement.setDouble(8, question.getQuestionMarks());\r\n\t\t\tpreparedStatement.setDouble(9, question.getMarksScored());\r\n\t\t\tpreparedStatement.setLong(10, onlineTest.getTestId().longValue());\r\n\t\t\tint result = preparedStatement.executeUpdate();\r\n\t\t\tif(result == 0) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tBigInteger generatedId = BigInteger.valueOf(0L);\r\n\t\t\tresultSet = preparedStatement.getGeneratedKeys();\r\n\t\t\tif (resultSet.next()) {\r\n\t\t\t\tgeneratedId = BigInteger.valueOf(resultSet.getLong(1));\r\n\t\t\t\tSystem.out.println(\"Auto generated id : \" + generatedId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tquestion.setQuestionId(generatedId);\r\n\t\t\tSystem.out.println(\"Added Question to the database with id as : \" + generatedId);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Error at add Question Dao method: \" + e);\r\n\t\t} finally {\r\n\t\t\tif (preparedStatement != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpreparedStatement.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tSystem.out.println(\"Error at add Question Dao method: \" + e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn question;\r\n\t}", "int insert(KnowledgeComment record);", "int insert(FinMonthlySnapModel record);", "@Override\n\tpublic int boardJudgeInsert(Map param) {\n\t\treturn dao.boardJudgeInsert(session, param);\n\t}", "@Test\n public void testInsert() {\n int resultInt = disciplineDao.insert(disciplineTest);\n // Je pense à le suppr si l'insert à fonctionné\n if(resultInt > 0){\n disciplineTest.setId(resultInt);\n disciplineDao.delete(disciplineTest);\n }\n assertTrue(resultInt > 0);\n }", "int insert(ReleaseSystem record);", "int insert(QuestionOne record);", "public void complainAdd(String uName,String cm_type, String uCom,String userEmail,String UserTp){\n\n conn = con.connectTODB();\n\n try {\n String insert = \"INSERT INTO complain(u_name,c_type,u_complain,u_email,u_tp) VALUES('\"+uName+\"','\"+cm_type+\"','\"+uCom+\"','\"+userEmail+\"','\"+UserTp+\"')\";\n Statement RegisterUser = conn.createStatement();\n RegisterUser.execute(insert);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n\n }", "int insert(Alert record);", "public void insert(){\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n \n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\n \"jdbc:mysql://localhost:3306/process_checkout\",\"root\",\"\"\n );\n \n String query = \"INSERT INTO area (name) VALUES (?)\";\n \n PreparedStatement preparedStmt = conn.prepareStatement(query);\n preparedStmt.setString(1, name);\n preparedStmt.execute();\n \n }catch(SQLException e){\n \n } catch (ClassNotFoundException ex) {\n \n }finally{\n try {\n if(rs != null)rs.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(ps != null)ps.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(conn != null)conn.close();\n } catch (SQLException e) {\n /* ignored */ }\n }\n \n }", "int insert(Notice record);", "public void testInsertNoticeTest()\n {\n String time = \"2015-12-09 11:22:33\";\n\n double lat = 57.02;\n float latFloat = (float) lat;\n\n double lon = 9.54;\n float lonFloat = (float) lon;\n\n //Notice notice = new Notice(\"insertTest\", \"description\", \"testAddress\", time, latFloat, lonFloat);\n\n // Assert.assertEquals(1, dbNotice.insertNotice(notice));\n }", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "int insert(Question27 record);", "@Override\r\n\tpublic int qaBoardInsert(QaBoardVO qavo) {\r\n\t\tSystem.out.println(\"QaBoardServiceImpl.qaBoardInsert SUCCESS >>> : \");\r\n\t\t\r\n\t\treturn qaBoardDao.qaBoardInsert(qavo);\r\n\t}", "int insert(SysTeam record);", "int insert(Tourst record);", "public void insertDB() {\n sql = \"Insert into Order (OrderID, CustomerID, Status) VALUES ('\"+getCustomerID()+\"','\"+getCustomerID()+\"', '\"+getStatus()+\"')\";\n db.insertDB(sql);\n \n }", "int insert(Powers record);", "public void insertTeam(Team team) {\n\t\ttry {\n\t\t\tStatement statement = null;\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tjava.sql.Date tDate = new java.sql.Date(team.getDateFoundation().getTime());\n\t\t\tString insertTeam_sql = \"INSERT INTO \" + team_table + \" (id, name, coach, city, dateFoundation)\"\n\t\t\t\t\t+ \"VALUES (NULL, '\" + team.getName() + \"' , '\" + team.getCoach() + \"' , '\" + team.getCity()\n\t\t\t\t\t+ \"' , '\" + tDate + \"')\";\n\t\t\tstatement.executeUpdate(insertTeam_sql);\n\t\t} catch (SQLException e) {\n\t\t\tif (e.getErrorCode() == MYSQL_DUPLICATE_PK) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\t\t\t\talert.setHeaderText(\"Duplicity Error\");\n\t\t\t\talert.setContentText(\"This team is already in our database\");\n\t\t\t\talert.showAndWait();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public void insertFact(Fact fact);", "public void insertBillFood(Bill billFood) {\nString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n \ntry {\n\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t \n\t\n\t\tps.setInt(1, billFood.getIdF());\n\t\tps.setString(2,null);\n\t ps.setInt(3, billFood.getIdE());\n\t\tps.setDouble(4, billFood.getPrice());\n\t\tps.setString(5, billFood.getSerialNumber());\n\t\tps.setDouble(6, billFood.getTotal());\n\t\tps.execute();\n\t\t\n\t\n\t \n} catch (SQLException e) {\n\t// TODO Auto-generated catch block\n\te.printStackTrace();\n}\n\n\t\n\t\n}", "int insert(CraftAdvReq record);", "@Override\n\tpublic int insert(Sptasts sptasts) {\n\t\tConnection conn = this.connectionManager.openConnection();\n\t\t//锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷\n\t\tTransactionManager.conn = conn;\n\t\tTransactionManager.beginTransaction();\n\t\t\n\t\t//锟斤拷锟斤拷锟斤拷锟�\n\n\t\t//Date posttime=sptasts.getPosttime();\n\t\tString saname =sptasts.getSaname();\n\t\tString satype =sptasts.getSatype();\n\t\tint sastate =sptasts.getSastate();\n\t\tString samark = sptasts.getSamark();\n\t\tString saresource =sptasts.getSaresource();\n\t\tint uid=sptasts.getUid();\n\t\t\n\t\t\n\t\t\n\t\n\t\t//锟斤拷锟斤拷锟接Qo拷锟斤拷锟斤拷模锟斤拷\n\t\tString strSQL = \"insert into sptasts values(null,now(),?,?,?,?,?,?)\";\n\t\tObject[] params = new Object[]{saname,satype,sastate,samark,saresource,uid};\n\t\t// 锟斤拷锟斤拷dbutils锟斤拷锟襟,诧拷锟斤拷锟斤拷execothers锟斤拷锟斤拷实锟斤拷锟斤拷菘锟斤拷锟斤拷硬锟斤拷锟斤拷锟�\n\t\tint affectedRows = this.dbUtils.execOthers(conn, strSQL, params);\n\t\t//锟斤拷锟斤拷锟揭伙拷锟斤拷慕锟斤拷锟斤拷锟斤拷锟接︼拷锟斤拷锟斤拷锟斤拷锟�\n\t\tif(affectedRows > 0){\n\t\t\t// 锟结交锟斤拷锟斤拷\n\t\t\tTransactionManager.commit();\n\t\t}else{\n\t\t\t// 锟截癸拷锟斤拷锟斤拷\n\t\t\tTransactionManager.rollback();\n\t\t}\n\t\treturn affectedRows;\n\t}", "int insert(EquipmentOrder record);", "public void insert(taxi ta)throws ClassNotFoundException,SQLException\r\n {\n String taxino=ta.getTaxino();\r\n String drivername=ta.getDrivername();\r\n String driverno=ta.getDriverno();\r\n String taxitype=ta.getTaxitype();\r\n String state=ta.getState();\r\n String priority=ta.getPriority();\r\n connection= dbconnection.createConnection();\r\nString sqlString=\"INSERT INTO taxi (taxino,drivername,driverno,taxitype,state,priority) VALUES ('\"+taxino+\"','\"+drivername+\"','\"+driverno+\"','\"+taxitype+\"','\"+state+\"','\"+priority+\"')\";\r\n PreparedStatement preparedStmt = connection.prepareStatement(sqlString); \r\n preparedStmt.execute(); \r\n connection.close();\r\n \r\n }", "public void storeValuesDump() throws SQLException{ //store DUMP values into the database\n \tString sqlDump = \"INSERT INTO dump VALUES ('\" + massSelection + \"', '\" + smokeSelection + \"', '\" + framesText.getText() + \"', '\" + dtDevcText.getText() + \"');\";\n \tConnectionClass connectionClass = new ConnectionClass();\n\t\tConnection connection = connectionClass.getConnection();\n\t\tStatement statement = connection.createStatement();\n\t\tstatement.executeUpdate(sqlDump);\n }", "private void insertIntoIncidentTicketTables(Connection conn) {\n\n\tPreparedStatement pst = null;\n\tString insertIntoIncidentTicketQuery = \"INSERT INTO Incidentticket VALUES \" + \"(?, ?, ?, ?, ?, ?, ?);\";\n\n\ttry {\n\n\t\tfor (IncidentTicket IncidentTicket : this.getIncidentTicketObjects()) {\n\t\t\tpst = conn.prepareStatement(insertIntoIncidentTicketQuery);\n\t\t\tpst.setInt(1, IncidentTicket.getId());\n\t\t\tpst.setInt(2, IncidentTicket.getInapuserid());\n\t\t\tpst.setInt(3, IncidentTicket.getInappostid());\n\t\t\tpst.setInt(4, IncidentTicket.getAssignedTechnicianid());\n\t\t\tpst.setString(5, IncidentTicket.getDate());\n\t\t\tpst.setString(6, IncidentTicket.getTime());\n\t\t\tpst.setNString(7, IncidentTicket.getIssue());\n\n\t\t\tpst.executeUpdate();\n\t\t\tSystem.out.println(\"\\n\\nRecords Inserted into IncidentTicket Table Successfully\\n\");\n\n\t\t}\n\t\t//System.out.println(\"Abhinav\");\n\t} catch (SQLException e) {\n\t\tSystem.out.println(\"\\n---------Please Check Error Below for inserting values into Incident Ticket Table---------\\n\");\n\t\te.printStackTrace();\n\t}\n\n}", "@Test\n public void testInsert() throws Exception {\n\n }" ]
[ "0.6543285", "0.6386681", "0.6367328", "0.63418573", "0.6262101", "0.61997664", "0.6092603", "0.607368", "0.5982441", "0.59630114", "0.5939225", "0.59122765", "0.5907765", "0.5907386", "0.58845335", "0.58682436", "0.58649325", "0.58577657", "0.58158195", "0.57926273", "0.5792564", "0.57879955", "0.57790875", "0.57778513", "0.5754336", "0.5737391", "0.5735537", "0.57332176", "0.57301784", "0.57111585", "0.5704655", "0.5698595", "0.5689737", "0.5687989", "0.5686343", "0.5680439", "0.5661072", "0.5659305", "0.56588554", "0.5649194", "0.5648064", "0.5645037", "0.5644041", "0.5643057", "0.56303906", "0.5620161", "0.5616003", "0.5615954", "0.5612517", "0.56107104", "0.5609512", "0.5609512", "0.5609512", "0.5609512", "0.56082284", "0.5602013", "0.56011957", "0.559804", "0.5595234", "0.55919886", "0.55917615", "0.55857694", "0.55804765", "0.5579827", "0.55778027", "0.55739075", "0.5569306", "0.5564838", "0.5563052", "0.55613375", "0.5553588", "0.5546935", "0.55384135", "0.55361366", "0.5518402", "0.5517893", "0.55175287", "0.5512477", "0.5510064", "0.55087334", "0.55046576", "0.5504374", "0.5503867", "0.54984117", "0.54981315", "0.54975814", "0.5495271", "0.5482039", "0.5476103", "0.5475076", "0.5473896", "0.5472455", "0.54709756", "0.54685354", "0.54620993", "0.54616547", "0.5458459", "0.54553884", "0.54550993", "0.5451164" ]
0.730514
0
Updates a bug in database.
public void updateBugDetails(Bug updatedBug) { Optional<Bug> existingBug = Optional.ofNullable(bugRespository.findOne(updatedBug.getBugId())); if(existingBug.isPresent()) { Bug bug = existingBug.get(); BeanUtils.copyProperties(updatedBug, bug, BeanUtil.getIgnoredPropertyNames(updatedBug)); bugRespository.save(bug); }else{ throw new NotFoundException("Bug to be updated not found with id:" + updatedBug.getBugId()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n @DataSet(\"BugBeforeUpdateDataSet.xml\")\r\n @ExpectedDataSet(\"BugAfterUpdateDataSet.xml\")\r\n public void testUpdateBug() throws Exception {\n Bug result = (Bug)entityManager.find(Bug.class, BugTestUtils.getDefaultIdentity());\r\n\r\n // Set simple properties\r\n result.setDescription(\"t\");\r\n result.setOpen(Boolean.FALSE);\r\n result.setTitle(\"t\");\r\n\r\n // Update\r\n entityManager.merge(result);\r\n\r\n }", "@PutMapping(consumes = \"application/json\")\n\tpublic void updateBug(@RequestBody Bug bug) {\t\t\n\t\tbugService.updateBugDetails(bug);\t\t\n\t}", "private void updateDB() {\n }", "public void createBug(Bug bug) {\n\t\tbugRespository.save(bug);\n\t}", "public void saveBug(Bugs theBug) {\n\t\tthis.bugId = theBug.getId();\n\t\tthis.category = theBug.getCategory();\n\t\tthis.date = theBug.getDate();\n\t\tthis.description = theBug.getDescription();\n\t\tthis.addedBy = theBug.getAddedBy();\n\t\tthis.status = theBug.getStatus();\n\t}", "@Override\n\tpublic void update(Problem problem) {\n\t\tproblemMapper.updateByPrimaryKey(problem);\n\t}", "@Override\n public void updateDatabase() {\n }", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "void updateQuestion(String questionId, Question question) throws SQLException;", "@Test\n\tpublic void testUpdateNote() {\n//\t\tlog.trace(\"Testing updating note\");\n\t\tfinal short week = 2;\n\n\t\t// get the list of individual notes for week 2\n\t\tList<Note> notes = noteDao.findIndividualNotes(TEST_QCBATCH_ID, week);\n\n\t\tassertTrue(!notes.isEmpty());\n\n\t\tNote note = notes.get(1);\n\n\t\t// Old Content = Superstar. Great communication skill and good solid knowledge.\n\t\tString oldContent = note.getContent();\n\n\t\tnote.setContent(\"Hello\");\n\n\t\t// update note\n\t\tnoteDao.save(note);\n\n\t\t// Old Content should not equal new Content if updated\n\t\tnotes = noteDao.findIndividualNotes(TEST_QCBATCH_ID, week);\n\t\tString newContentSet = notes.get(1).getContent();\n\t\tassertNotEquals(oldContent, newContentSet);\n\t}", "void update(EmployeeDetail detail) throws DBException;", "public void setBugs(double bugs) {\r\n this.bugs = bugs;\r\n }", "@Override\n\tpublic void update(DatabaseHandler db) {\n\t\tdb.updateWork(this);\n\t}", "public static void updateTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"UPDATE bs_tickets SET username = ?, admin = ?, status = ?, question = ?, server = ?, date_created = ?, date_accepted = ?, date_resolved = ? WHERE id = ?\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n statement.setInt(9, ticket.id);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public static void editDatabase(String sql){\n Connection connection = dbConnection();\n\n try{\n PreparedStatement pst = connection.prepareStatement(sql);\n pst.executeUpdate();\n pst.close();\n connection.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "public abstract void updateDatabase();", "public void update() {\n\t\tPreparedStatement stmt;\n\t\ttry {\n\t\t\tstmt = cn.prepareStatement(\n\t\t\t\t\t\"UPDATE Metal SET metalDissolvedBy = ?, molesOfAcidToDissolve = ? WHERE metalID = ?\");\n\t\t\tstmt.setInt(1, dissolvedBy);\n\t\t\tstmt.setDouble(2, molesOfAcidToDissolve);\n\t\t\tstmt.setInt(3, ID);\n\t\t\tstmt.execute();\n\t\t} catch (Exception e) {\n\t\t\tDatabaseException.detectError(e);\n\t\t}\n\t}", "public void updateDB() {\n \n sql = \"UPDATE Order set \" + \"CustomerID='\"+getCustomerID()+\"',\" + \" Status='\"+getStatus()+\"'\" + \" WHERE OrderID= '\" + getOrderID()+\"'\";\n db.updateDB(sql);\n \n }", "@Test\n public void testUpdateForum() {\n String newTitle = \"New title!\";\n try {\n ForumDTO forumDTO = forumService.updateForum(FORUM_ID, newTitle);\n assertEquals(newTitle, forumDTO.getTitle());\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\r\n }", "@Override\n\tpublic void updateQA(QA qa) {\n\t\tqaDao.updateQAPost(qa);\n\t}", "private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }", "public static void UpdateFlight(Flight flight){\n \n //java.sql.Date sqlDate = new java.sql.Date(flight.getDatetime());\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight WHERE FlightNumber = '\" + flight.getFlightNumber() + \"'\")){\n \n resultSet.absolute(1);\n resultSet.updateString(\"FlightNumber\", flight.getFlightNumber());\n resultSet.updateString(\"DepartureAirport\", flight.getDepartureAirport());\n resultSet.updateString(\"DestinationAirport\", flight.getDestinationAirport());\n resultSet.updateDouble(\"Price\", flight.getPrice());\n\n //Ask Andrew\n// java.sql.Date sqlDate = new java.sql.Date();\n// resultSet.updateDate(\"datetime\", flight.getDatetime());\n resultSet.updateString(\"Plane\", flight.getPlane());\n resultSet.updateInt(\"SeatsTaken\", flight.getSeatsTaken());\n \n resultSet.updateRow();\n \n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n }", "@Override\n public UpdateProblemResult updateProblem(UpdateProblemRequest request) {\n request = beforeClientExecution(request);\n return executeUpdateProblem(request);\n }", "public void update(Job job) throws DatabaseException, IllegalArgumentException;", "public void dbUpdate(String query) {\n try {\n tryDbUpdate(query);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void update() throws SQLException {\n DatabaseConnector.updateQuery(\"UPDATE course SET \"\n + \"courseDept='\" + this.courseDept + \"', \"\n + \"courseNum='\" + this.courseNum + \"', \"\n + \"courseName='\" + this.courseName + \"', \"\n + \"info='\" + this.info + \"', \"\n + \"credit=\" + this.credit);\n }", "void updateEntry(BlogEntry entry) throws DAOException;", "public void setBugTitle(String bugTitle) {\n\t\tthis.bugTitle = bugTitle;\n\t}", "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 수정을 하다.\");\n\t}", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "void update(Comment comment);", "public void updateQuestion(DatabaseStore store) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\t// create Question Table\n\t\tString update_sql = \"UPDATE questions SET \" + QUES_KEY_VALUE + \"='\"\n\t\t\t\t+ store.value + \"' WHERE \" + QUES_KEY_VAR + \"='\"\n\t\t\t\t+ store.variable + \"' AND \" + QUES_KEY_MONTH + \"=\"\n\t\t\t\t+ store.month + \" AND \" + QUES_KEY_YEAR + \"=\" + store.year\n\t\t\t\t+ \" AND \" + QUES_KEY_DAY + \"=\" + store.day + \" AND \"\n\t\t\t\t+ QUES_KEY_TYPE + \"='\" + store.type + \"';\";\n\n\t\t// create the question table\n\t\tdb.execSQL(update_sql);\n\t\t// close the database\n\t\tdb.close();\n\t}", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Festivity object = new Festivity();\r\n object.setStart(Calendar.getInstance().getTime());\r\n object.setEnd(Calendar.getInstance().getTime());\r\n object.setName(\"Test Fest 2\");\r\n object.setPlace(\"Howards\");\r\n boolean expResult = true;\r\n boolean result = Database.update(object);\r\n assertEquals(expResult, result);\r\n \r\n }", "public void updateDB(int orderID, String prodID, String quantity) {\r\n try {\r\n String sql = \"UPDATE EmpOrders SET EmpOrderID = '\" + orderID + \"', ProductID = '\"\r\n + prodID + \"', QuanitityNeeded = '\" + quantity + \"'\";\r\n Statement stmt = Customer.connectDB();\r\n stmt.execute(sql);\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n }", "public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Test\n public void testUpdate() throws Exception {\n String theTaskId = \"999\";\n String query = String.format(\"select empId from %s.%s where taskId = '%s'\",\n tableSchema.schemaName, TASK_TABLE_NAME, theTaskId);\n\n TestConnection connection = methodWatcher.getOrCreateConnection();\n connection.setAutoCommit(false);\n\n // insert good data\n PreparedStatement ps = methodWatcher.prepareStatement(\n String.format(\"insert into %s.%s (taskId, empId, startedAt, finishedAt) values (?,?,?,?)\",\n tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, theTaskId);\n ps.setInt(2, 101);\n ps.setInt(3, 0600);\n ps.setInt(4, 0700);\n int rows = ps.executeUpdate();\n Assert.assertEquals(1, rows);\n\n ResultSet rs = connection.createStatement().executeQuery(query);\n rs.next();\n Assert.assertEquals(101, rs.getInt(1));\n Assert.assertFalse(\"Only one row expected.\", rs.next());\n\n ps = methodWatcher.prepareStatement(\n String.format(\"update %s.%s set empId = ? where taskId = ?\", tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setInt(1, 102);\n ps.setString(2, theTaskId);\n rows = ps.executeUpdate();\n Assert.assertEquals(1, rows);\n\n rs = connection.createStatement().executeQuery(query);\n rs.next();\n Assert.assertEquals(102, rs.getInt(1));\n Assert.assertFalse(\"Only one row expected.\", rs.next());\n }", "public void updateForum(Forum forum);", "public void setBugDescription(String bugDescription) {\n\t\tthis.bugDescription = bugDescription;\n\t}", "@Test\r\n public void testUpdate() throws Exception {\r\n System.out.println(\"update\");\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj = instance.create(obj);\r\n obj.setSigle(\"Test2\");\r\n //etc\r\n obj.setTel(\"000000001\");\r\n //etc\r\n Bureau expResult=obj;\r\n Bureau result = instance.update(obj);\r\n assertEquals(expResult.getSigle(), result.getSigle());\r\n //etc\r\n assertEquals(expResult.getTel(), result.getTel());\r\n //etc\r\n instance.delete(obj);\r\n //TODO verifier que si met à jour vers un doublé sigle-tel déjà existant, on a une exception\r\n }", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "@Test\n public void testUpdateOrder() {\n Order addedOrder = new Order();\n\n addedOrder.setOrderNumber(1);\n addedOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n addedOrder.setCustomer(\"Update Test\");\n addedOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n addedOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n addedOrder.setArea(new BigDecimal(\"100.00\"));\n addedOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n addedOrder.setLaborCost(new BigDecimal(\"475.00\"));\n addedOrder.setTaxCost(new BigDecimal(\"61.88\"));\n addedOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(addedOrder);\n\n addedOrder.setCustomer(\"Updated Order\");\n\n dao.updateOrder(addedOrder);\n\n Order daoOrder = dao.getAllOrders().get(0);\n\n assertEquals(addedOrder, daoOrder);\n }", "public static void update() {\n String sql = \"UPDATE dateGame SET level = ? , \"\n + \"score = ?,\"\n + \"hearts = ?, \"\n + \"sound = ?, \"\n + \"speed = ?, \"\n + \"path = ? \"\n + \"WHERE id = ?\";\n\n try (Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // set the corresponding param\n pstmt.setInt(1, level);\n pstmt.setInt(2, score);\n pstmt.setInt(3, hearts);\n pstmt.setInt(4, sound);\n pstmt.setInt(5, speed);\n pstmt.setString(6, path);\n //id-ul este hardcoded setat pe 1\n pstmt.setInt(7, 1);\n\n // update\n pstmt.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public static void updateDb(GameDto game) throws PictionnaryDbException {\n try {\n java.sql.Connection connexion = DBManager.getConnection();\n\n java.sql.PreparedStatement update;\n update = connexion.prepareStatement(\"Update Game set \"\n + \" gdrawer = ?,\"\n + \" gpartner = ?,\"\n + \" gstarttime = ?,\"\n + \" gendtime = ?,\"\n + \" gstopplayer = ?\"\n + \" where gid= ?\");\n update.setInt(1, game.getDrawer());\n update.setInt(2, game.getPartner());\n\n if (game.getStartTime() == null) {\n update.setNull(3, Types.TIMESTAMP);\n } else {\n update.setTimestamp(3, game.getStartTime());\n }\n\n if (game.getEndTime() == null) {\n update.setNull(4, Types.TIMESTAMP);\n } else {\n update.setTimestamp(4, game.getEndTime());\n }\n\n update.setInt(5, game.getStopPlayer());\n update.setInt(6, game.getId());\n int a = update.executeUpdate();\n } catch (Exception ex) {\n throw new PictionnaryDbException(\"Game, modification impossible:\\n\" + ex.getMessage());\n }\n }", "int update(Purchase purchase) throws SQLException, DAOException;", "public void update(Expence expence)\r\n/* 169: */ {\r\n/* 170:174 */ this.expenceDao.update(expence);\r\n/* 171: */ }", "@Test\n\tpublic void updateTestPaperQuestion() throws Exception {\n\t}", "public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}", "public boolean updateDB(String qryExp, RequestBox rBox) throws Exception {\n\t\treturn false;\n\t}", "public int createDBEntry() {\n\t\tint i = 0;\n\t\ttry {\n\t\t\tConnection con;\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tStatement statement = con.createStatement();\n\n\t\t\tStringBuffer strBuf = new StringBuffer();\n\t\t\tstrBuf.append(\"insert into Ticket(ticketID,\");\n\t\t\tstrBuf.append(\"ticketDate, \");\n\t\t\tstrBuf.append(\"bugTitle, \");\n\t\t\tstrBuf.append(\"bugDescription, \");\n\t\t\tstrBuf.append(\"bugCategory, \");\n\t\t\tstrBuf.append(\"projectName, \");\n\t\t\tstrBuf.append(\"projectVersion, \");\n\t\t\tstrBuf.append(\"assignedToDev, \");\n\t\t\tstrBuf.append(\"priority, \");\n\t\t\tstrBuf.append(\"status, \");\n\t\t\tstrBuf.append(\"comments, \");\n\t\t\tstrBuf.append(\"targetDueDate, \");\n\t\t\tstrBuf.append(\"ticketCreatedBy \");\t\n\t\t\tstrBuf.append(\") values (last_insert_id(), \");\n\t\t\tstrBuf.append(\"'\" + this.ticketDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugTitle + \"', \");\t\t\t\t\n\t\t\tstrBuf.append(\"'\" + this.bugDescription + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugCategory + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectVersion + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.assignedToDevName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketPriority + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketStatus + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.comments + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.targetDueDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.TicketCreatedBy + \"'\");\n\t\t\tstrBuf.append(\")\");\n\n\t\t\ti = statement.executeUpdate(strBuf.toString());\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn i;\n\t}", "@Test\n public void testUpdate() throws MainException, SQLException {\n System.out.println(\"update\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n PreparedStatement stmt = instance.prepareStatement(\n \"insert into infermieri (nome, cognome) values ('luca', 'massa')\");\n boolean expResult = true;\n boolean result = instance.update(stmt);\n assertEquals(expResult, result);\n }", "public void attemptToUpdate();", "public static int update(int name, int phone, String dob, String problem)\n {\n int row_update = 0;\n try\n {\n Connection con = MyConnection.connect();//get connection\n Statement stmt = con.createStatement();\n \n String qry = \"update patient set name=\"+name+\" dob=\"+dob+\" problem=\"+problem+\" where phone=\"+phone;;\n \n row_update = stmt.executeUpdate(qry);\n }\n catch(Exception ex)\n {\n System.out.println(\"Update Error :\"+ex);\n }\n \n return row_update;\n }", "@Override\n\tpublic void update_in_DB() throws CouponSiteMsg \n\t{\n\t\t\n\t}", "@Override\n\tpublic void update(String query) {\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tst.executeUpdate(query);\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}", "int updateByExample(BnesBrowsingHis record, BnesBrowsingHisExample example) throws SQLException;", "@Test\r\n\t public void updateAnExistingRouteFather(){\r\n\t\t this.routeFather.setDescription(\"yolo\");\r\n\t\t routeFatherDAO.update(this.routeFather);\r\n\t\t Assert.assertNotNull(\"it should returns not null\", this.routeFather);\r\n\t\t Assert.assertEquals(\"email should be yolo\", this.routeFather.getDescription(), \"yolo\");\r\n\t\t routeFatherDAO.delete(routeFather);\r\n\t\t \r\n\t }", "int updateByPrimaryKey(OpeningRequirement record);", "@Override\n\tpublic void update(Feedback feedback) throws SQLException {\n\n\t\tPreparedStatement ps=conn.prepareStatement(\"UPDATE feedback\"\n\t\t\t\t+ \" SET descrizione=?, voto=? where id_feedback=?\");\n\t\tps.setString(1, feedback.getDescrizione());\n\t\tps.setInt(2, feedback.getVoto());\n\t\tps.setInt(3, feedback.getIdFeedback());\n\t\tint n = ps.executeUpdate();\n\t\tif(n==0)\n\t\t\tthrow new SQLException(\"feedback: \" + feedback.getIdFeedback()+ \" non presente\");\n\n\t}", "public void update(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public void dyupdate(DYBoardDTO dto) {\n\t\tDBConn dbconn = DBConn.getDB();\n\t\tConnection conn=null;\n\t\t\n\t\ttry {\n\t\t\tconn=dbconn.getConn();\n\t\t\tconn.setAutoCommit(false);\n\t\t\t\n\t\t\tDYBoardDAO dao = DYBoardDAO.getdao();\n\t\t\tdao.dyupdate(conn, dto);\n\t\t\t\n\t\t\tconn.commit();\n\t\t}catch(NamingException | SQLException e) {\n\t\t\tSystem.out.println(e);\n\t\t\ttry {conn.rollback();}catch(SQLException e2) {}\n\t\t}finally {\n\t\t\tif(conn!=null)try {conn.close();}catch(SQLException e) {}\n\t\t}\n\t\t\n\t}", "@Test \n\tpublic void testUpdateSetting() throws Exception\n\t{\n\t}", "public void setBugCategory(String bugCategory) {\n\t\tthis.bugCategory = bugCategory;\n\t}", "int updateByPrimaryKey(FeiWenComment record);", "@Test\r\n public void testUpdateValid() throws PAException {\r\n Ii studyDiseaseIi = IiConverter.convertToStudyDiseaseIi(TestSchema.studyDiseaseIds.get(0));\r\n StudyDiseaseDTO studyDiseaseDTO = bean.get(studyDiseaseIi);\r\n Ii diseaseIi = IiConverter.convertToIi(TestSchema.pdqDiseaseIds.get(3));\r\n studyDiseaseDTO.setDiseaseIdentifier(diseaseIi);\r\n StudyDiseaseDTO result = bean.update(studyDiseaseDTO);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, result);\r\n StudyDiseaseDTO saved = bean.get(studyDiseaseIi);\r\n assertNotNull(\"No result returned\", saved);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, saved);\r\n }", "public void updateIncident(Incidente incident, int table) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\t// 3. updating row\n\t\tdb.update(INCIDENT_TABLES[table], // table\n\t\t\t\tmakeValues(incident), // column/value\n\t\t\t\tIncidentKey.ID.getColumnName() + \" = ?\", // selections\n\t\t\t\tnew String[] { String.valueOf(incident.getId()) }); // selection\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// args\n\t\t// 4. close\n\t\tdb.close();\n\t\tLog.d(\"updateIncident()\", incident.getId().toString());\n\t}", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "@Test\n public void testUpdate() {\n int resultInt = disciplineDao.insert(disciplineTest);\n \n boolean result = false;\n \n if(resultInt > 0){\n disciplineTest.setId(resultInt);\n \n disciplineTest.setName(\"matiere_test2\");\n \n result = disciplineDao.update(disciplineTest);\n \n disciplineDao.delete(disciplineTest);\n }\n \n assertTrue(result);\n }", "@Test\n public void testUpdateDoesNotThrowError() throws Exception{\n try(PreparedStatement ps=conn.prepareStatement(\"insert into \"+charDelete+\" (c) values (?)\")){\n ps.setString(1,\"1\");\n ps.execute();\n }\n\n conn.collectStats(schema.schemaName,charDelete.tableName);\n try(Statement s = conn.createStatement()){\n assertExpectedCount(s,1);\n\n //the bug is that this throws an error, so we just want to make sure that it doesn't blow up here\n int changed = s.executeUpdate(\"update \"+charDelete+\" set c='2' where c = '1'\");\n Assert.assertEquals(\"did not properly delete values!\", 1, changed);\n }\n }", "int updateByPrimaryKey(UserTips record);", "@Query(\"UPDATE wellbeing_questions SET question = :question, positive_message = :positiveMessage , negative_message = :negativeMessage WHERE wellbeing_questions.wellbeing_question_id = :id\")\n void updateQuestion(long id, String question, String positiveMessage, String negativeMessage);", "public synchronized void update(String expression) throws SQLException {\n\n Statement st = null;\n\n st = conn.createStatement(); // statements\n\n int i = st.executeUpdate(expression); // run the query\n\n if (i == -1) {\n System.out.println(\"db error : \" + expression);\n }\n\n st.close();\n }", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "public void update(long id, String name, String discipline, String grade) {\n SQLiteDatabase db = _openHelper.getWritableDatabase();\n if (db == null) {\n return;\n }\n ContentValues row = new ContentValues();\n row.put(\"name\", name);\n row.put(\"discipline\", discipline);\n row.put(\"grade\", grade);\n db.update(\"Exams\", row, \"_id = ?\", new String[] { String.valueOf(id) } );\n db.close();\n }", "public void update() throws SQLException {\r\n\t\t//SQL-Statment\r\n\r\n\t\tString sql = \" UPDATE \" +table+ \" SET \" + col_genre + \" = ?\"\r\n\t\t\t\t+ \"WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setString(1, this.getGenre());\r\n\t\tstmt.setInt(2, this.getGenreID());\r\n\r\n\r\n\t\t//Update\r\n\t\tint rowsUpdated = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsUpdated+ \"Zeilen hinzugefügt\");\r\n\t\tstmt.close();\r\n\r\n\t}", "@Test\n\tpublic void testUpdateTicketOk() {\n\t}", "public void update(Jiaqishenqing j) throws SQLException {\n JiaqishenqingDao dao = new JiaqishenqingDao();\n dao.update(j);\n }", "@Test\n public void test2Update() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.update(spec2,\"teleinformatica\"),1); \n }", "public void update(IEntity entity) throws SQLException;", "public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}", "public void update(BibliographicDetails bibDetails) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n session.update(bibDetails);\n tx.commit();\n } catch (RuntimeException e) {\n \n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }", "int updateByPrimaryKey(KnowledgeComment record);", "@Override\r\n\tpublic void update(GameContainer gc, int detla) throws SlickException\r\n\t{\n\t\t\r\n\t}", "E update(E entiry);", "@Override\n\tpublic void updateLog(boardDTO board) throws Exception {\n\t\tsqlSession.update(namespace+\".update_board\", board);\n\t}", "public void updateCheque(Cheque cheque) {\r\n\t\tSession session = getSessionFactory().openSession();\r\n\t\tTransaction tx = null;\r\n\t\ttry{\r\n\t\ttx=session.beginTransaction();\r\n\t\tCheque cq = (Cheque) session.load(Cheque.class, cheque.getChequeId());\r\n\t\t\r\n\t\tcq.setdate(cheque.getdate());\r\n\t\tcq.setbankbranch(cheque.getbankbranch());\r\n\t\tcq.setifsccode(cheque.getifsccode());\r\n\t\tcq.setbank(cheque.getbank());\r\n\t\tcq.settoname(cheque.gettoname());\r\n\t\tcq.setchequeno(cheque.getchequeno());\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch(HibernateException e)\r\n\t\t{\r\n\t\t\tif (tx!=null) tx.rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\tsession.close();\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Successfully updated \" + cheque.toString());\r\n\r\n\t}", "public void update(Pessoa p) {\n\t\tdb.save(p);\t\t\n\t}", "public void update(Triplet t) throws DAOException;", "@Override\r\n public void update(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement =\r\n \"UPDATE appointments SET \" +\r\n \"Title='\" + a.getTitle() +\r\n \"', Description ='\" + a.getDescription() +\r\n \"', Location ='\" + a.getLocation() +\r\n \"', Type='\" + a.getType() +\r\n \"', Start='\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', End= '\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', Customer_ID =\" + a.getCustomer().getCustomerId() +\r\n \", User_ID=\" + a.getUser().getId() +\r\n \", Contact_ID=\" + a.getContact().getId() +\r\n \" WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public void updateBoard(NoticeBoardVO vo){\r\n\t\tString sql=\"update board_notice set userid=?, pass=?,title=?,content=?, fileurl=? where num=?\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1,vo.getUserid());\r\n\t\t\tpstmt.setString(2,vo.getPass());\r\n\t\t\tpstmt.setString(3, vo.getTitle());\r\n\t\t\tpstmt.setString(4, vo.getContent());\r\n\t\t\tif(vo.getFileurl()!=null){\r\n\t\t\t\tpstmt.setString(5, vo.getFileurl());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpstmt.setInt(6, vo.getNum());\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn,pstmt);\r\n\t\t}\r\n\t}", "org.landxml.schema.landXML11.CrashDataDocument.CrashData insertNewCrashData(int i);", "public abstract boolean update(Log log) throws DataException;", "public void update() throws ModelException {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = DataSource.getConnection();\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(\n \" UPDATE carrera nombre = ? WHERE codigo = ?\");\n\t\t\tpstmt.setString(2, this.nombre);\n\t\t\tpstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new ModelException(\"Error de acceso a datos\", e);\n\t\t} finally {\n \t\t\tDataSource.closeConnection(conn);\n\t\t}\n\t}", "int updateByPrimaryKey(FactRoomLog record);", "@Override\n\tpublic boolean update(String sql) {\n\t\treturn false;\n\t}" ]
[ "0.7045333", "0.6554427", "0.633439", "0.6249589", "0.61700773", "0.59703296", "0.58508736", "0.58157223", "0.56731445", "0.5590472", "0.55903155", "0.55823547", "0.5559826", "0.5555099", "0.55299157", "0.5523284", "0.54873276", "0.5434173", "0.5427029", "0.5417753", "0.53960854", "0.53918105", "0.53820306", "0.5371157", "0.5367254", "0.5343216", "0.5335742", "0.5333594", "0.5323051", "0.5316574", "0.5312066", "0.5309163", "0.52990973", "0.5298024", "0.5277003", "0.5273086", "0.5266826", "0.5252504", "0.5249592", "0.5248621", "0.52468866", "0.52237743", "0.5222954", "0.52186817", "0.521614", "0.520697", "0.52069455", "0.5204544", "0.5199165", "0.51941717", "0.519291", "0.51857346", "0.5162593", "0.5159928", "0.51398253", "0.5135588", "0.51311564", "0.5128723", "0.51278186", "0.5126626", "0.5110913", "0.5100417", "0.5088372", "0.50842077", "0.50742364", "0.5057756", "0.5056895", "0.5056895", "0.5056895", "0.5056895", "0.5056895", "0.5049796", "0.5046848", "0.50427836", "0.5039382", "0.50364643", "0.5035748", "0.50285447", "0.50244933", "0.5014252", "0.50094575", "0.5006654", "0.500489", "0.5004641", "0.5002056", "0.49947193", "0.49919483", "0.49896157", "0.49890926", "0.4984785", "0.49805903", "0.4978539", "0.4977704", "0.49753174", "0.49725735", "0.4970748", "0.4961784", "0.49593738", "0.49579686", "0.4954673" ]
0.62090313
4
TODO Does this crap even need to be here?
public void getDevices(final Subscriber<List<Device>> devicesSubscriber) { if (smartThingsService==null) { devicesSubscriber.onError(new Throwable("Please login to SmartThings before trying to get devices")); return; } Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() { @Override public List<Device> call(List<Device> switches, List<Device> locks) { List<Device> devices = new ArrayList<>(); devices.addAll(switches); devices.addAll(locks); return devices; } }).doOnError(new Action1<Throwable>() { @Override public void call(Throwable throwable) { devicesSubscriber.onError(throwable); } }).doOnCompleted(new Action0() { @Override public void call() { // } }).subscribe(new Action1<List<Device>>() { @Override public void call(List<Device> devices) { devicesSubscriber.onNext(devices); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "private stendhal() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void perish() {\n \n }", "private void strin() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public abstract void mo70713b();", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "zzafe mo29840Y() throws RemoteException;", "private static void cajas() {\n\t\t\n\t}", "public abstract String mo13682d();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "private Util() { }", "public void mo38117a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract String mo41079d();", "public abstract void mo6549b();", "public void mo21877s() {\n }", "private void level7() {\n }", "private Rekenhulp()\n\t{\n\t}", "public abstract void mo27385c();", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo27386d();", "private void init() {\n\n\t}", "@Override\n protected void init() {\n }", "abstract int pregnancy();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "private void test() {\n\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void jugar() {}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public abstract String mo118046b();", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void anular() {\n\n\t}", "private ProcessorUtils() { }", "public abstract Object mo26777y();", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "public abstract String mo9239aw();", "@Override\n\tprotected void initialize() {\n\n\t}", "private JacobUtils() {}", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private test5() {\r\n\t\r\n\t}", "Compatibility compatibility();", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private FlyWithWings(){\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "public final void mo91715d() {\n }", "private CanonizeSource() {}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected void h() {}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }" ]
[ "0.5683711", "0.5642525", "0.5581114", "0.5480957", "0.544404", "0.5432457", "0.53859615", "0.53256226", "0.53094393", "0.5301536", "0.5269928", "0.5240946", "0.52403295", "0.5207676", "0.51824874", "0.51435345", "0.5142219", "0.5133556", "0.5103018", "0.50912917", "0.50861424", "0.50653905", "0.5055268", "0.5042842", "0.50418305", "0.5038388", "0.5035919", "0.5034308", "0.5032644", "0.50236136", "0.50221854", "0.50192636", "0.5018234", "0.5018234", "0.50151026", "0.50151026", "0.50151026", "0.50151026", "0.50151026", "0.50151026", "0.4999858", "0.49963483", "0.4994353", "0.49915", "0.49891827", "0.49879897", "0.49858877", "0.49850684", "0.49814543", "0.49596184", "0.495792", "0.49539822", "0.49509382", "0.49445793", "0.49365667", "0.49334887", "0.49307314", "0.49285865", "0.49285355", "0.49253073", "0.49185708", "0.49139333", "0.49091715", "0.49080276", "0.49080276", "0.49056208", "0.4897949", "0.4896511", "0.48945698", "0.48932332", "0.48918775", "0.48859364", "0.48836324", "0.488354", "0.4883119", "0.48819578", "0.48747122", "0.48718345", "0.48693696", "0.486352", "0.48606518", "0.4857367", "0.48526633", "0.48480132", "0.48480132", "0.48480132", "0.48480132", "0.48480132", "0.48448876", "0.48448876", "0.48439243", "0.48414892", "0.48412323", "0.48357424", "0.48345283", "0.48341748", "0.48314407", "0.48265952", "0.48253202", "0.4824674", "0.4824674" ]
0.0
-1
TODO phrase was successful
@Override public void success(Object o, Response response) { Log.d(TAG, "Phrase: " + phrase + " was executed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void process(String s)//check if the phrase guess equals the actual phrase\n {\n String phraseGuess = s.toUpperCase();\n String phraseUp = phrase.toUpperCase();\n //comparing guess and actual\n if (phraseGuess.equals(phraseUp))\n {\n System.out.println(\"You Guessed correctly!\");\n screen = phraseUp.toCharArray();\n GamePlay.letterInPhrase = true;\n showPhrase();\n// System.out.println(\"The phrase is: \"+phrase);\n }\n else\n {System.out.println(\"Incorrect Guess Next Player's turn\");\n GamePlay.letterInPhrase = false;\n }\n }", "public void setPhrase(String phrase) {\n this.phrase = phrase;\n }", "@Test\n public void testPhrase() {\n assertQ(req(\"q\",\"text:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='1']\"\n );\n // should generate a query of (now OR cow) and match both docs\n assertQ(req(\"q\",\"text_np:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='2']\"\n );\n }", "public String getPhrase()\n {\n return this.phrase;\n }", "private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}", "public String getPhrase() {\n return phrase;\n }", "private static String handlePhrases(String PubmedQuery) {\r\n //Find phrases \"between double quotes\"\r\n String[] phrases = PubmedQuery.split(\"\\\"\");\r\n for(int i = 0 ; i < phrases.length ; i++){\r\n phrases[i] = phrases[i].trim();\r\n if(!phrases[i].equals(\"\")){ // String not Empty\r\n if(i%2 != 0){ // String surrounded by quotes, i.e. a phrase\r\n phrases[i] = \"\\\"\" + phrases[i] + \"\\\"\";\r\n } else { // not a phrase, i.e. a bag of terms, operator or [field of index] (inside brackets)\r\n if(phrases[i].startsWith(\"[\")){ //index field of previus component contained (i.e. case: \"...\"[...])\r\n boolean perviusPhraseFound = false; // True if index field was added to previus phrase element\r\n // Get index field of previus component and handle proprietly\r\n String [] tokens = phrases[i].split(\"]\");\r\n String indexField = tokens[0].replace(\"[\", \"\");\r\n String luceneField = supportedIndexFields.get(indexField);\r\n if(luceneField != null){ \r\n //add \"indexField:\" as a prefix in previus (not empty) phrase\r\n int tmp = i-1;\r\n while(!perviusPhraseFound & tmp >= 0){\r\n if(!phrases[tmp].equals(\"\")){\r\n perviusPhraseFound = true;\r\n //TO DO : handle wrong syntax (e.g. ... AND [ArticleTitle])\r\n phrases[tmp] = luceneField + \":\" + phrases[tmp] + \"\";\r\n } else {\r\n tmp--;\r\n }\r\n }\r\n } // else : Lucene counterpart not found, unsupported field - do nothing\r\n // Remove from current phrase this index field (prefix)\r\n phrases[i] = phrases[i].substring(indexField.length()+2 );\r\n } \r\n // Further handling...\r\n phrases[i] = handleNonPhraseToken(phrases[i]);\r\n }\r\n } //else { /* Empty token, do nothing with this */ System.out.println(\"\\t\\t\\t empty\"); }\r\n }\r\n \r\n String luceneQuery = \"\";\r\n boolean fisrtPhrase = true;\r\n for(int i = 0 ; i < phrases.length ; i ++){\r\n if(phrases[i].length() > 0){\r\n if(!phrases[i].startsWith(\" OR \") & !phrases[i].startsWith(\" -\") & !phrases[i].startsWith(\" +\") ){\r\n if(fisrtPhrase){\r\n luceneQuery += \" +\";\r\n fisrtPhrase = false;\r\n } else {\r\n if(!phrases[i-1].endsWith(\" OR \") & !phrases[i-1].endsWith(\" -\") & !phrases[i-1].endsWith(\" +\")){\r\n luceneQuery += \" +\";\r\n }\r\n } \r\n } // add default operator + when required (no OR or - is present for that term)\r\n luceneQuery += phrases[i];\r\n }// else empty phrase : skip\r\n }\r\n return luceneQuery;\r\n }", "@Test\n\tpublic void phraseGrepTest1() throws Exception {\n\t\t// phrase is \"I am forced\"\n\t\tHashSet<String> grepFound = loadGrepResults(\"i+am+forced\");\n\t\tCollection<Page> index = queryTest.query(\"\\\"I am Forced\\\"\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\t\n\t\t// tests set equality \n\t\tassertEquals(indexFound, grepFound);\n\t}", "@Test\n\tpublic void testP2(){\n\t\tList<Token> list = pa.getTokens(str);\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n\t\tfor(Token t : list){\n\t\t\tSystem.out.println(t.toString());\n\t\t}\n\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n\t\tboolean a = false;\n\t\ttry {\n\t\t\ta = pa.runSentence(str,null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"end res : \"+a);\n\t}", "private String encodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 1); \n }", "public void transcribe (String utterance, float confidence) \n{\n //println(utterance);\n if (!utterance.equals(\"\"))\n {\n result = utterance;\n ListenForKeywords(result);\n println(result);\n inputResult = result;\n result = \"\";\n \n //CheckCommandValidity(result);\n \n }\n}", "public void reagir(String frase) {\n\t\tif (frase.equals(\"toma comida\") || frase.equals(\"ola\")) {\n\t\t\tSystem.out.println(\"Abanar e latir\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Rosnar\");\n\t\t}\n\t\t\n\t}", "public String catchPhrase() {\n @SuppressWarnings(\"unchecked\") List<List<String>> catchPhraseLists = (List<List<String>>) faker.fakeValuesService().fetchObject(\"company.buzzwords\");\n return joinSampleOfEachList(catchPhraseLists, \" \");\n }", "public void reagir(String frase) {\n if (frase.equals(\"toma comida\") || frase.equals(\"olá\")) {\n System.out.println(\"abanar e latir\");\n } else {\n System.out.println(\"rosnar\");\n }\n }", "private String getPhrase(String key) {\r\n if (\"pl\".equals(System.getProperty(\"user.language\")) && phrasesPL.containsKey(key)) {\r\n return phrasesPL.get(key);\r\n } else if (phrasesEN.containsKey(key)) {\r\n return phrasesEN.get(key);\r\n }\r\n return \"Translation not found!\";\r\n }", "protected boolean processSayTell(String username, String titles, int gameNumber, String message){return false;}", "boolean hasHadithText();", "public String getSpeechResult(String hypothesis){\n\n\n String[] arrayOfStrings = hypothesis.split(\"text\\\" :\");\n String textPredicted = arrayOfStrings[1];\n\n arrayOfStrings = textPredicted.split(\"\\\"\");\n textPredicted = arrayOfStrings[1];\n\n return textPredicted;\n }", "PhrasesIdentification() {\n }", "@Test\n\tpublic void notPhraseGrepTest() throws Exception {\n\t\t// phrase is \"I am forced\"\n\t\tHashSet<String> grepFound = loadGrepResults(\"!i+am+forced\");\n\t\tCollection<Page> index = queryTest.query(\"! \\\"I am Forced\\\"\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\tassertEquals(grepFound, indexFound);\n\t}", "public String getPhrase(String sentencePhraseID){\n\t\t// implement me!\n\t\treturn \" \";\n\t}", "public static String execute(String phrase) throws IllegalArgumentException {\n\t\treturn execute(Language.Pt, phrase);\n\t}", "public void SaveWord(String phrase) {\n\tOrdBok.SaveWord(phrase, 30);\r\n }", "public void showListPhrases() {\r\n\t\tint i = 0;\r\n\t\tString[] array = new String[100];\r\n\t\ttry {\r\n\t\t\tstatement = SqlCon.getConnection().createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(SqlCon.PHRASE_TO_CHECK);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString phrase = rs.getString(\"word\");\r\n\t\t\t\tarray[i] = phrase;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ti= i+1;\r\n\t\tarrPhrase = new String[i];\r\n\t\tarrPhrase[0] = \"None\";\r\n\t\tfor (int j = 1; j < i; j++) {\r\n\t\t\tarrPhrase[j] = array[j-1];\r\n\t\t}\r\n\t\tfor(int k= 0; k<arrPhrase.length;k++)\r\n\t\t\tSystem.out.println(arrPhrase[k]);\r\n\t}", "public abstract String guessedWord();", "void translate(Sentence sentence);", "java.lang.String getNewSentence();", "public boolean pass(String word);", "public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n else\n {\n Speech speech = new Speech(messageContents);\n SpeechProcessor speechProcessor = new SpeechProcessor(joeBot, speech);\n speechProcessor.processSpeech();\n }\n }", "@Override\n\tpublic String getStemming(String phrase) {\n\t\treturn null;\n\t}", "static String question(String sentence) {\r\n\t\tString result = null;\r\n\t\tif (sentence.contains(\"can you tell me\")) {\r\n\t\t\tint index = sentence.indexOf(\"can you tell me\");\r\n\t\t\tString search = sentence.substring(index + 15);\r\n\t\t\tresult = googleFind(search);\r\n\t\t} else if (sentence.contains(\"do you know\")) {\r\n\t\t\tint index = sentence.indexOf(\"do you know\");\r\n\t\t\tString search = sentence.substring(index + \"do you know\".length());\r\n\t\t\tresult = googleFind(search);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public String speak(){\n speechOutput.clear();\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Just speak normally into your phone\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n try {\n startActivityForResult(intent, VOICE_RECOGNITION);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n\n\n return speechResult;\n }", "private String decodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 2);\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\r\n {\r\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\r\n // go through the results, dump them all to a TextView\r\n ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\r\n String res = matches.get(0);\r\n if (res.contains(\"dance\")) {\r\n speak(\"Did you say dance? That robot over there likes to dance... should I play some music for it?\");\r\n }\r\n else if (res.contains(\"your name\")) {\r\n speak(\"My name is \" + prefs.getString(PREFS_NAME, \"Mrs. Robot\"));\r\n }\r\n else if (res.contains(\"do you like first grade\")) {\r\n speak(\"I love first grade. Reading and Writing and Math are some of my favorites!\");\r\n }\r\n else if (res.contains(\"do you like kindergarten\")) {\r\n speak(\"I think kindergarten is great. I especially love kid writing!\");\r\n }\r\n else if (res.contains(\"what do you know\")) {\r\n speak(\"I don't know very much. Robots aren't as smart as kids.\");\r\n }\r\n else {\r\n speak(\"It sounded like you said \" + res + \". I don't know what that means\");\r\n }\r\n }\r\n else if (requestCode == VOICE_RECOGNITION_REQUEST_CODE) {\r\n speak(\"I didn't understand that... please try again\");\r\n }\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }", "public String generateSentence(Hashtable<String, Vector<String>> aHashTable) {\n\t\t\n\t\t// Vector to hold the phrase\n\t\tVector<String> newPhrase = new Vector<String>();\n\t\t\n\t\t// String for the next word\n\t\tString nextWord = \"\";\n\t\t\t\t\n\t\t// Select the first word\n\t\tVector<String> startWords = aHashTable.get(\"_start\");\n\t\tint startWordsLen = startWords.size();\n\t\tnextWord = startWords.get(rnd.nextInt(startWordsLen));\n\t\tnewPhrase.add(nextWord);\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// Keep looping through the words until we've reached the end\n\t\t\twhile (nextWord.charAt(nextWord.length()-1) != '^') \n\t\t\t{\n\t\t\t\tVector<String> wordSelection = aHashTable.get(nextWord);\n\t\t\t\tint wordSelectionLen = wordSelection.size();\n\t\t\t\tnextWord = wordSelection.get(rnd.nextInt(wordSelectionLen)).trim();\n\t\t\t\tnewPhrase.add(nextWord);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tString _tryAgain = generateSentence(aHashTable); \n\t\t\tnewPhrase.add(_tryAgain);\n\t\t}\n\t\t\n\t\tString _returnString = newPhrase.toString();\n\t\t_returnString = _returnString.substring(1, _returnString.length() -2); // remove [ and ^]\n\t\t\n\t\tString _finalString = \"\";\n String[] _splitBySpace = _returnString.split(\"[,\\\\,\\\\(\\\\)]\");\n\t\tfor(int i = 0 ; i < _splitBySpace.length ; i++)\n\t\t{\n\t\t\tif(_splitBySpace[i].trim() != \"\")\n\t\t\t\t_finalString += _splitBySpace[i].replace(\"\\\"\", \"\").trim() + \" \";\n\t\t}\n\t\t\n\t\treturn _finalString.trim();//_returnString.substring(1, _returnString.length() -2); // remove [ and ^]\t\n\t}", "@Override\n\t\tpublic void onResults(ArrayList<RecognizerResult> arg0, boolean arg1) {\n\t\t\ttext+=arg0.get(0).text.toString();\n\t\t}", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\");\n assertEquals(\"nam(s) of edit(s), typ as ind in th lat book. if ther is al an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\", string0);\n }", "private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }", "public Slogan(final String str) {\n phrase = str;\n count++;\n }", "@Test(timeout = 4000)\n public void test57() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"us for alphabes, cros refer, and creat a label when th ``author'' inform is mis. th field should not be confus with th key that appear in th cit command and at th begin of th databas entr.\");\n assertEquals(\"us for alphab, cro refer, and creat a label when th ``author'' inform is mi. th field should not be confus with th key that appear in th cit command and at th begin of th datab entr.\", string0);\n }", "String processing();", "@Override\n public String toString() {\n\n return \"Slogan{\" + \"phrase='\" + phrase + '\\'' + '}';\n }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "@Override\r\n\tpublic void frases() {\n\t\t\r\n\t\tthis.frase.add(\"Não há que ser forte. Há que ser flexível.\");\r\n this.frase.add(\"Gente todo dia arruma os cabelos, por que não o coração?\");\r\n this.frase.add(\"Há três coisas que jamais voltam; a flecha lançada, a palavra dita e a oportunidade perdida.\");\r\n this.frase.add(\"Melhor pensar alto do que não pensar nada.\");\r\n this.frase.add(\"A juventude não é uma época da vida, é um estado de espírito.\");\r\n this.frase.add(\" Podemos escolher o que semear, mas somos obrigados a colher o que plantamos.\");\r\n this.frase.add(\"Dê toda a atenção para a formação dos teus filhos, sobretudo por exemplos de tua própria vida.\");\r\n \r\n\t\t\r\n\t}", "public String phraseWords(String input) {\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n String pos = document.get(CoreAnnotations.PhraseWordsTagAnnotation.class);\n\n return pos;\n }", "public static String addPuctuation(String input) {\n // Sentence Openers \n input = input.replace(\"hello\", \"hello,\");\n input = input.replace(\"hi\", \"hi!\");\n input = input.replace(\"heya\", \"heya!\");\n input = input.replace(\"hey\", \"hey,\");\n input = input.replace(\"greetings\", \"greetings,\");\n input = input.replace(\"good morning\", \"good morning,\");\n input = input.replace(\"good evening\", \"good evening,\");\n input = input.replace(\"good afternoon\", \"good afternoon!\");\n \n\n // Words ending in nt \n input = input.replace(\"isnt\", \"isn't\");\n input = input.replace(\"cant\", \"can't\");\n input = input.replace(\"wont\" , \"won't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"would\", \"wouldn't\");\n input = input.replace(\"hadnt\", \"hadn't\");\n input = input.replace(\"aint\", \"ain't\");\n input = input.replace(\"arent\", \"aren't\");\n input = input.replace(\"didnt\", \"didn't\");\n input = input.replace(\"doesnt\" , \"doesn't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"dont\", \"don't\");\n input = input.replace(\"hasnt\", \"hasn't\");\n input = input.replace(\"shoudlnt\", \"shouldn't\");\n input = input.replace(\"couldnt\", \"couldn't\");\n input = input.replace(\"wasnt\", \"wasn't\");\n input = input.replace(\"werent\" , \"were't\");\n input = input.replace(\"wouldnt\" , \"wouldn't\");\n\n //Questions\n String q1 = \"what\";\n String q2 = \"when\";\n String q3 = \"where\";\n String q4 = \"which\";\n String q5 = \"who\";\n String q6 = \"whom\";\n String q7 = \"whose\";\n String q8 = \"why\";\n String q9 = \"how\";\n\n if (input.contains(q1) || input.contains(q2) || input.contains(q3) \n || input.contains(q4) || input.contains(q5) || input.contains(q6) \n || input.contains(q7) || input.contains(q8) || input.contains(q9)) \n {\n input = input + \"?\";\n }\n\n else\n {\n input = input + \".\";\n }\n\n\n //Other\n input = input.replace(\"however\", \"however,\");\n input = input.replace(\"ill\" , \"i'll\");\n input = input.replace(\"im\", \"i'm\");\n return input;\n }", "void errorPhraseRemoved(Object from, Term thru, Term unexpectedToken);", "public void SearchPhrase(Object_Ord temp) {\n\tif (!Doneloading) {\r\n\t return;\r\n\t}\r\n\tif (temp == null) {\r\n\t return;\r\n\t} else if (temp.Ordet.equals(\"\")) {\r\n\t return;\r\n\t}\r\n\ttemp.Set_Searched();\r\n\t//PrintAction( this.getClass().toString() + \" Searching for phrase \" + temp.Ordet );\r\n\tThread thread = new Thread_PhraseSearcher(this, temp);\r\n\tThreadsRunning++;\r\n\tThreadsStarted++;\r\n }", "public void parseInput(String s){\n\t\tif((sentence[counter]+\" \").contains(s)){\n\t\t\tString setTextStringAfterColor=\"\";\n\t\t\t\n\t\t\t//Logic for user that fixed mistake\n\t\t\tfor(int i=counter;i<sentence.length;i++){\n\t\t\t\tsetTextString+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tfor(int i=counter+1;i<sentence.length;i++){\n\t\t\t\tsetTextStringAfterColor+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tif(sentence.length-counter==1){\n\t\t\t\tprompt.getText().clear();\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t}\n\t\t\telse if((sentence.length-counter>1)){\n\t\t\t\tprompt.getText().clear();\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterColor));\n\t\t\t}\n\t\t\t\n\t\t\t//User submits correct word\n\t\t\tif(s.contains(\" \")&&!(s.equals(null)||s.equals(\" \"))){\n\t\t\t\tcounter++;\n\t\t\t\tfloat now = ((float)counter/(float)sentence.length);\n\t\t\t\tfloat before = (((float)counter-1)/(float)sentence.length);\n\t\t\t\tif (before<0){\n\t\t\t\t\tbefore=0;\n\t\t\t\t}\n\t\t\t\tif (now<0){\n\t\t\t\t\tnow=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Character animation\n\t\t\t\tTranslateAnimation moveLefttoRight = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, before, Animation.RELATIVE_TO_PARENT, now, Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 0);\n\t\t\t moveLefttoRight.setDuration(1000);\n\t\t\t moveLefttoRight.setFillAfter(true);\t\n\t\t\t movingimage.startAnimation(moveLefttoRight);\n\t\t\t\t\n\t\t\t\tcorrectWords++;\n\t\t\t\tuser.increment(\"tokenCount\");\n\t\t\t\tsetTextString=\"\";\n\t\t\t\tsetTextStringAfterColor=\"\";\n\t\t\t\twords.setText((int)correctWords+\" Words\");\n\t\t\t\t//Toast.makeText(Race.this, (user.getInt(\"tokenCount\"))+\"\", Toast.LENGTH_SHORT).show();\n\t\t\t\ttokens.setText(user.getInt(\"tokenCount\")+\"\");\n\t\t\t\tdouble wps = (correctWords/elapsedseconds);\n\t\t\t\twpmcount = (int)(wps*60);\n\t\t\t\tif (wpmcount<150){\n\t\t\t\t\twpm.setText(wpmcount+\" WPM\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twpm.setText(\"Max WPM\");\n\t\t\t\t}\n\t\t\t\tfor(int i=counter;i<sentence.length;i++){\n\t\t\t\t\tsetTextString+=sentence[i]+\" \";\n\t\t\t\t}\n\t\t\t\tfor(int i=counter+1;i<sentence.length;i++){\n\t\t\t\t\tsetTextStringAfterColor+=sentence[i]+\" \";\n\t\t\t\t}\n\t\t\t\tif(sentence.length-counter==1){\n\t\t\t\t\tprompt.getText().clear();\n\t\t\t\t\tinput.getText().clear();\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t\t}\n\t\t\t\telse if((sentence.length-counter>1)){\n\t\t\t\t\tprompt.getText().clear();\n\t\t\t\t\tinput.getText().clear();\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterColor));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttimerHandler.removeCallbacks(timerRunnable);\n\t\t\t\t\tIntent results = new Intent(Race.this, Results.class);\n\t\t\t\t\t\tresults.putExtra(\"level\",level);\n\t\t \t\tresults.putExtra(\"words\", (int)correctWords);\n\t\t \t\tresults.putExtra(\"wpm\", wpmcount);\n\t \tstartActivity(results);\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t//If word user typing is wrong\n\t\telse{\n\t\t\tString setTextStringAfterError=\"\";\n\t\t\tfor(int i=counter;i<sentence.length;i++){\n\t\t\t\tsetTextString+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tfor(int i=counter+1;i<sentence.length;i++){\n\t\t\t\tsetTextStringAfterError+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tif(sentence.length-counter==1){\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#ff0000'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#ff0000'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterError));\n\t\t\t}\n\t\t//If user submits, vibrate and refresh input box\n\t\t\tif(s.contains(\" \")){\n\t\t\t\tVibrator v = (Vibrator) this.getSystemService(Context.VIBRATOR_SERVICE);\n\t\t\t\t v.vibrate(500);\n\t\t\t\tif(sentence.length-counter==1){\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterError));\n\t\t\t\t}\n\t\t\t\tinput.getText().clear();\n\t\t\t}\n\t\t}\n\t}", "private String getSentence(Context context) {\n HttpRequest httpRequest = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(ALBUM_SERVICE_URL + RANDOM.nextInt(100)))\n .setHeader(\"User-Agent\", \"Java 11 HttpClient Bot\")\n .timeout(Duration.ofMillis(1200))\n .build();\n\n try {\n HttpResponse<String> response = HTTP_CLIENT.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n if (response.statusCode() == HTTP_OK) {\n\n AlbumJson albumJson = ALBUM_JSON_PARSER.parse(response.body());\n return \", your sentence of the day: \" + albumJson.getTitle();\n }\n } catch (IOException | InterruptedException e) {\n final LambdaLogger logger = context.getLogger();\n logger.log(\"Error: \" + Arrays.toString(e.getStackTrace()));\n }\n return \"\";\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Welcome to the store, Hello, I am Eliza, How may I help you Today ?\");\n System.out.println(\" ================================== \");\n System.out.println(\"Enter your Response here or Enter 'Q' to End the chat?\");\n String s1 = sc.nextLine();\n String message = \"\";\n\n while (!s1.toLowerCase().equals(\"q\")) {\n String[] input = (s1.split(\" \"));\n\n message=\"\";\n\n\n for (int i = 0; i < input.length; i++) {\n String replace = getReplace(input[i]);\n if (input[i].equalsIgnoreCase(\"I\")) {\n input[i] = input[i].replace(\"I\", replace);\n } else if (input[i].equalsIgnoreCase(\"me\")) {\n input[i] = input[i].replace(\"me\", replace);\n } else if (input[i].equalsIgnoreCase(\"my\")) {\n input[i] = input[i].replace(\"my\", replace);\n } else if (input[i].equalsIgnoreCase(\"am\")) {\n input[i] = input[i].replace(\"am\", replace);\n } else if (input[i].equalsIgnoreCase(\"you\")) {\n input[i] = input[i].replace(\"you\", replace);\n } else {\n input[i] = input[i];\n }\n message += (input[i] + \" \");\n }\n //checking if the input contain key words\n if ((s1.contains(\"I\")) || (s1.contains(\"my\")) || (s1.contains(\"me\"))\n || (s1.contains(\"am\")) || (s1.contains(\"you\"))){\n //calling method to get qualifier\n String qu = getQualif();\n //Printing the Qualifier message\n System.out.print(qu + \" \" + message);\n s1 = sc.nextLine();\n }\n else {\n //calling method to get a hedge\n String hed = getHedge();\n //Printing the hedge\n System.out.println(hed);\n s1 = sc.nextLine();\n }\n\n\n }\n System.out.println(\"Thank You\");\n }", "private boolean handleSayTell(String line){\n if (line.indexOf(\"says: \") == -1)\n return false;\n \n Matcher matcher = SAY_REGEX.matcher(line);\n if (!matcher.matches())\n return false;\n\n String username = matcher.group(1);\n String titles = matcher.group(2);\n String gameNumberString = matcher.group(4);\n String message = matcher.group(5);\n\n int gameNumber = gameNumberString == null ? -1 : Integer.parseInt(gameNumberString);\n\n if (!processSayTell(username, titles, gameNumber, message))\n processLine(line);\n\n return true;\n }", "public void test_extractKeyphrase_A$String() throws Exception {\n\t\tYahooAuctionService target = new YahooAuctionService();\r\n\t\tString text = \"せどり初心者は中古と新品ではどちらが向いているか?\";\r\n\t\tList<String> actual = target.extractKeyphrase(text);\r\n\t\tList<String> expected = null;\r\n\t\tassertEquals(expected, actual);\r\n\t}", "void onTranslation(Sentence sentence);", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"th nam of a ser or ses of book. when cit an entir book, th th titl field giv it titl and an opt ser field giv th nam of a ser or mult-volum ses in which th book is publ.\");\n assertEquals(\"th nam of a ser or se of book. when cit an entir book, th th titl field giv it titl and an opt ser field giv th nam of a ser or mult-vol se in which th book is publ.\", string0);\n }", "@Override\n public void onPartialResult(Hypothesis hypothesis) {\n if (hypothesis == null)\n return;\n\n String text = hypothesis.getHypstr();\n //\n if (text.equals(KEYPHRASE))\n switchSearch(MENU_SEARCH);\n else if (text.equals(DIGITS_SEARCH))\n switchSearch(DIGITS_SEARCH);\n else if (text.equals(ANIMAL_SEARCH))\n switchSearch(ANIMAL_SEARCH);\n else\n ((TextView) findViewById(R.id.result_text)).setText(text);\n }", "private void readPhrases() {\n\t\tphrases = new HashMap<String, String>();\n\t\tcounter = new HashMap<String, Integer>();\n\n\t\tBufferedReader br = null;\n\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(input));\n\t\t\tfor (String line; (line = br.readLine()) != null;) {\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(line, \"|\");\n\n\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\t\t\tString phrase = tokenizer.nextToken();\n\t\t\t\t\tString key = StringUtils.getMd5Hash(phrase);\n\n\t\t\t\t\tif (phrases.containsKey(key)) {\n\t\t\t\t\t\tint count = counter.get(key);\n\t\t\t\t\t\tcounter.put(key, ++count);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphrases.put(key, phrase);\n\t\t\t\t\t\tcounter.put(key, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalAccessError(\"Error reading input [\"\n\t\t\t\t\t+ input.getName() + \"]\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == REQ_CODE_SPEECH_INPUT && resultCode == RESULT_OK) {\n List<String> results = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String spokenText = results.get(0);\n // Do something with spokenText\n convert.setText(spokenText);\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "private void find(char[] m, String message, Trie cur, Trie root, int index, List<String> results) {\n // Base case 1. No match with any dictionary word. if cur == null -> no match ; return\n if (cur == null) {\n return;\n }\n // Base case 2. if out of bounds, check previously collected word and return\n if (index == message.length()) {\n // result only in case matches word\n if (cur.word != null) {\n results.add(new String(m));\n }\n return;\n }\n char c = message.charAt(index);\n if (c == SPACE) {\n // matches word or character 'e'\n // check if matches word from dictionary\n if (cur.word != null) {\n m[index] = SPACE;\n // if space - start collecting new word from beginning of Trie\n find(m, message, root, root, index + 1, results);\n }\n // otherwise ' ' -> 'e'\n c = 'e';\n }\n // considered non-space character (backtracking)\n m[index] = c;\n // get next element from try\n Trie next = cur.get(c);\n find(m, message, next, root, index + 1, results);\n }", "@Test\n void step() {\n Fb2ConverterStateMachine state = new Fb2ConverterStateMachine();\n StringBuilder sb = new StringBuilder();\n WordsTokenizer wt = new WordsTokenizer(getOriginalText());\n while (wt.hasMoreTokens()) {\n String word = wt.nextToken();\n if (state.step(word)) {\n sb.append(word).append(\" \");\n }\n }\n assertEquals(\"test 1 . text- 2 text 0 text 6111 222 \", sb.toString());\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n //Log.v(\"test\", Boolean.toString(data.getStringExtra(EXTRA_NUMBER) != null));\n\n if (requestCode == 1 && resultCode == RESULT_OK && data != null) {\n \tresult = null;\n ArrayList<String> text = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n result = text.get(0);\n Log.v(\"CASE1\", result);\n \t//String number = data.getExtras().getString(EXTRA_NUMBER);\n \n \tLog.v(\"CASE1\", \"number is \" + num);\n\n \twhile(tts.isSpeaking()) {\n \ttry {\n\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n }\n tts.speak(\"Did you say, \" + result + \"?\", TextToSpeech.QUEUE_FLUSH, null);\n while(tts.isSpeaking()) {\n \ttry {\n\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n }\n recordMessage2(result, num);\n\n }\n if (requestCode == 2 && resultCode == RESULT_OK && data != null) {\n ArrayList<String> text = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n String confirmation = text.get(0);\n Log.v(\"CASE2\", \"confirmation in case 2 is \" + confirmation);\n if (confirmation.toLowerCase().equals(\"yes\")) {\n \tLog.v(\"CASE2\", \"message in case 2 is \" + result);\n if (result != null) {\n \tString body = result;\n \n \tString number = num;\n \t\tSmsManager sms = SmsManager.getDefault();\n \t\tsms.sendTextMessage(number, null, body, null, null);\n \t\twhile(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\n \t\t\t\t\t} catch (InterruptedException e) {\n \t\t\t\t\t\t// TODO Auto-generated catch block\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n }\n \t\ttts.speak(\"Message sent\", TextToSpeech.QUEUE_FLUSH, null);\n \t\twhile(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\n \t\t\t\t\t} catch (InterruptedException e) {\n \t\t\t\t\t\t// TODO Auto-generated catch block\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n }\n \t// send message\n }\n } else {\n \twhile(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\n \t\t\t\t\t} catch (InterruptedException e) {\n \t\t\t\t\t\t// TODO Auto-generated catch block\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n }\n tts.speak(\"Please try again.\", TextToSpeech.QUEUE_FLUSH, null);\n while(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\n \t\t\t\t\t} catch (InterruptedException e) {\n \t\t\t\t\t\t// TODO Auto-generated catch block\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n }\n recordMessage(num);\n }\n \n\n \t\n }\n }", "private void speak() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM) ;\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Speak the Item\");\n\n startActivityForResult(intent, SPEECH_REQUEST_CODE);\n\n }", "private static String analyzeTerm(String term) {\n String ret = term.toLowerCase();\n if (stopWords.contains(ret) || ret.isEmpty())\n return \"\";\n return stemmer.stem(ret);\n }", "@Test(timeout = 4000)\n public void test51() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"us for alphabes, cros refer, and creat a label when th ``author'' inform is mis. th field should not be confus with th key that appear in th cit command and at th begin of th databas entr.\");\n assertEquals(\"us for alphab, cro refer, and creat a label when th ``author'' inform is mi. th field should not be confus with th key that appear in th cit command and at th begin of th datab entr.\", string0);\n }", "public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"usually the address of the publisher or other type of institution. for major publishing houses, van leunen recommends omitting the information entirely. for small publishers, on the other hand, you &an help the reader by giving the complete address.\");\n assertEquals(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you &an help th reader by giv th comples addres.\", string0);\n }", "@Test(timeout = 4000)\n public void test59() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.\");\n assertEquals(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th book or collect in which th refer appear.\", string0);\n }", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "@Test\n public void shouldTranslateWithRegionalVariant() {\n List<String> sentence = Arrays.asList(\"it\", \"is\", \"cold\");\n String result = \"\";\n for (String token : sentence) {\n result += manager.message(Locale.CANADA_FRENCH, token, token) + \" \";\n }\n assertEquals(\"Il fait frette \", result);\n }", "public String requestResponce(String conventional_Grammar);", "void playSpeech(String rawText);", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the bok or cllection in which the reference appears.\");\n assertEquals(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\", string0);\n }", "private void translate(String input)\r\n/* 270: */ {\r\n/* 271:229 */ if (input.trim().isEmpty())\r\n/* 272: */ {\r\n/* 273:230 */ Mark.err(new Object[] {\"IMPACT produced nothing to translate\" });\r\n/* 274:231 */ return;\r\n/* 275: */ }\r\n/* 276:233 */ this.things.clear();\r\n/* 277:234 */ this.triples.clear();\r\n/* 278:235 */ this.previousTriple = null;\r\n/* 279:236 */ this.previousTriples.clear();\r\n/* 280: */ \r\n/* 281:238 */ String[] sentences = input.trim().split(\"\\\\)\\\\.\");\r\n/* 282:240 */ for (String s : sentences)\r\n/* 283: */ {\r\n/* 284:241 */ s = s.trim();\r\n/* 285:242 */ Mark.say(new Object[] {\"Sentence:\", s });\r\n/* 286: */ try\r\n/* 287: */ {\r\n/* 288:244 */ String[] parts = s.split(\"\\\\(\");\r\n/* 289:245 */ ThingTimeTriple triple = constructGenesisAction(parts[0].trim(), parts[1].trim());\r\n/* 290:246 */ this.triples.add(triple);\r\n/* 291:247 */ this.tripleList.clear();\r\n/* 292:248 */ this.tripleList.addAll(this.triples);\r\n/* 293: */ }\r\n/* 294: */ catch (Exception e)\r\n/* 295: */ {\r\n/* 296:252 */ Mark.say(new Object[] {\"Blew out trying to process IMPACT result,\", s });\r\n/* 297: */ \r\n/* 298:254 */ e.printStackTrace();\r\n/* 299: */ }\r\n/* 300: */ }\r\n/* 301: */ }", "public String getGrammarText();", "public String acronym(String phrase) {\n /*StringBuilder acronymFeed = new StringBuilder(\"\");\n String wordHolder = \"\";\n int spaceIndex;\n char firstLetter;\n do{\n spaceIndex = phrase.indexOf(\" \");\n wordHolder = phrase.substring(0,spaceIndex);\n acronymFeed.append(wordHolder.charAt(0));\n phrase = phrase.replaceFirst(wordHolder, \"\");\n } while (spaceIndex != -1 && wordHolder != \"\" && phrase != \"\");\n \n \n \n \n \n String acronymResult = acronymFeed.toString().toUpperCase();\n return acronymResult;\n */\n \n char[] letters = phrase.toCharArray();\n String firstLetters = \"\";\n firstLetters += String.valueOf(letters[0]);\n for (int i = 1; i < phrase.length();i++){\n if (letters[i-1] == ' '){\n firstLetters += String.valueOf(letters[i]);\n }\n }\n firstLetters = firstLetters.toUpperCase();\n return firstLetters;\n }", "public void recordMessage2(String result, String number) {\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-US\");\n\n startActivityForResult(intent, 2);\n }", "void prosegui(String messaggio);", "public void makeDecision(String speech , List<WordResult> speechWords) {\r\n\t\tVoiceManager vm =VoiceManager.getInstance();\r\n\t\tVoice voice;\r\n\t\tvoice=vm.getVoice(\"mbrola_us3\");\r\n\t\tvoice.allocate();\r\n\t\tSystem.out.println(speech);\r\n\t\t//System.out.println(speech+\"fdsf\");\r\n\t\t if(speech.equalsIgnoreCase(\"shutdown computer\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\" Shuting down the computer\");\r\n\t\t \tRuntime rm=Runtime.getRuntime();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tProcess proc=rm.exec(\"shutdown -s -t 0\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{}\r\n\t\t\t\t\r\n\r\n\t\t \t}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"restart computer\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"restarting the computer\");\r\n\t\t \tRuntime rm=Runtime.getRuntime();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tProcess proc=rm.exec(\"shutdown -r -t 0\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{}\r\n\t\t\t\t\r\n\t\t \t}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t }\r\n\t\t \r\n\t\t else if(speech.equalsIgnoreCase(\"who is smart\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"Abhay bhadouriya is smartest person alive in this world\");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"who is ugly\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"your sister and friends are the most ugliest persons in the world \");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"what is time\"))\r\n\t\t {\r\n\t\t \tDate dm=new Date();\r\n\t\t \tint h=dm.getHours();\r\n\t\t \tint m=dm.getMinutes();\r\n\t\t \tif(h>12)\r\n\t\t \t{\r\n\t\t \t\th=h-12;\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \ttry {voice.speak(\"TIME is\"+h+\"Hour\"+m+\"Minutes\" );}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"say hello \"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"Hello this is your computer\");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"please sleep\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"no i don't wont to sleep\");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open facebook\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"facebook\");\r\n\t\t \t FUNC.facebook();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open google\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"google\");\r\n\t\t \t FUNC.google();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open youtube\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"youtube\");\r\n\t\t \t FUNC.youtube();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open gmail\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"gmail\");\r\n\t\t \t FUNC.gmail();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"play music\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"music\");\r\n\t\t \t FUNC.pmusic();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"volume up\"))\r\n\t\t {\r\n\t\t \tvoice.speak(\"volume increasing by 10\");\r\n\t\t \t\tvolume.up();\r\n\t\t \t\t\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"volume down\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t\t voice.speak(\"volume decreasing by 10\");\r\n\t \t\tvolume.down();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"show desktop\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"Showing desktop\");\r\n\t\t\t FUNC.desktop();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"how are you\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"i'm fine and you \");\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"what day is today\"))\r\n\t\t {\r\n\t\t\t Date dd=new Date();\r\n\t\t\t int i=dd.getDay();\r\n\t\t\t\tif(i==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is sunday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==1)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is monday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==2)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is tuesday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==3)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is wednesday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==4)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is thursday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==5)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is friday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==6)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is saturday\");\r\n\t\t\t\t}\r\n\t\t\t \r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to right\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.right();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to left\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.left();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to up\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t emotion.up();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to down\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.down();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"select this item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.select();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"view its property\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.property();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"view item menu\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.viewmenu();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn on mouse by keyboard\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.turnon();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close this window tab\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.close();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"switch window tab\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.switcht();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"ok dude take some rest\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t voice.speak(\"have a nice day\");\r\n\t\t\t voice.speak(\"i'm very lucky to have a master like you sir \");\r\n\t\t\t voice.speak(\"good night my suprier great master\");\r\n\t\t\t System.exit(0);\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn on wifi\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t volume.wifi();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn off wifi\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t volume.wifi();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn on bluetooth\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t try{\r\n\t \t\t Process p ;\t//resultText=\"\";\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c fsquirt\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the notepad\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\t//resultText=\"\";\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start notepad\");\r\n\t \t\t // System.out.println(\"inside\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t } else if(speech.equalsIgnoreCase(\"close the notepad\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\t//resultText=\"\";\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im notepad.exe /f\");\r\n\t \t\t // System.out.println(\"inside\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the command\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t\t\tProcess p;\r\n\t \t\t\t\tp = Runtime.getRuntime().exec(\"cmd /c start cmd\");\t\t\t\t\r\n\t \t\t\t\t}catch(Exception er)\r\n\t \t\t\t\t{}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the command\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\t\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im cmd.exe /f\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the browser\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start chrome.exe\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the browser\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im chrome.exe /f\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the control panel\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c control\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the control panel\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c control taskkill /im control /f\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the paint\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c start mspaint\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the paint\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im mspaint.exe /f\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the task manager\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c start taskmgr.exe\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the task manager\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t \tp = Runtime.getRuntime().exec(\"cmd /c start taskkill /im taskmgr.exe /f\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open power option\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c powercfg.cpl\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open windows security center\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c wscui.cpl\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"copy this item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok item is copied\");\r\n\t\t\t basiccontrolls.copy();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"paste here selected item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"item is pasted\");\r\n\t\t\t basiccontrolls.paste();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"cut this item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok item is cut\");\r\n\t\t\t basiccontrolls.cut();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"go back\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok going to previous page\");\r\n\t\t\t basiccontrolls.back();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"show me my beautiful face\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"you look like a donkey\");\r\n\t\t\t basiccontrolls.camera();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"who the hell are you\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"hello\");\r\n\t\t\t voice.speak(\"i am computer \");\r\n\t\t\t voice.speak(\"here i'm assist by you \");\r\n\t\t\t voice.speak(\"i will do anything what ever you told me todo and \"+\" \"+\" what instruction are feeded in my dictionary\");\r\n\t\t\t voice.speak(\"Thank you for asking \");\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"who loves you\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"no one loves me \");\r\n\t\t\t voice.speak(\"except my charger \");\r\n\t\t\t voice.speak(\"but more impoertantly i looks far handsome than you \");\r\n\t\t\t voice.speak(\"you peace of shit \");\r\n\t\t\t voice.speak(\"your face is look like a monkey\");\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"do you like engineering\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"no\");\r\n\t\t\t voice.speak(\"I hate engineering\");\r\n\t\t\t voice.speak(\"you ruined my life \");\r\n\t\t }\r\n\t\t/* else if(speech.equalsIgnoreCase(\"turn off wifi\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t volume.wifi();\r\n\t\t }*/\r\n\r\n\t}", "public boolean isAccepted1(String word) {\r\n\t return (tranzition_extended(word)==3) ;\r\n\r\n }", "@Test(timeout = 4000)\n public void test58() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The WWW Universal Resource Locator that points to the item being referenced. This often is used for technical reports to point to the ftp site where the postscript source of the report is located.\");\n assertEquals(\"th www univers resourc loc that point to th item being refer. th oft is us for techn report to point to th ftp sit whes th postscript sourc of th report is loc.\", string0);\n }", "@Override\n public void onResults(Bundle results) {\n recognizedSpeech = (TextView) findViewById(R.id.recognizedSpeech);\n Log.i(\"SRL\", \"onResults\");\n ArrayList<String> matches = results\n .getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);\n String text = \"\";\n for (String result : matches)\n text += result + \"\\n\";\n recognizedSpeech.setText(text);\n\n if(!(recognizedSpeech.getText().toString().contains(\"yes\")) &&\n !(recognizedSpeech.getText().toString().contains(\"no\"))){\n convertTextToSpeech(\"A valid response was not detected, please try again.\");\n\n while (m_tts.isSpeaking()) {\n speech = null;\n }\n\n speech = SpeechRecognizer.createSpeechRecognizer(this);\n speech.setRecognitionListener(this);\n speech.startListening(getIntent());\n\n } else if(recognizedSpeech.getText().toString().contains(\"yes\") &&\n recognizedSpeech.getText().toString().contains(\"no\")){\n convertTextToSpeech(\"Both yes and no were detected, please only specify one decision\");\n\n while (m_tts.isSpeaking()) {\n speech = null;\n }\n\n speech = SpeechRecognizer.createSpeechRecognizer(this);\n speech.setRecognitionListener(this);\n speech.startListening(getIntent());\n\n } else if (recognizedSpeech.getText().toString().contains(\"yes\")) {\n PropertySquare square = (PropertySquare) (m_board.getSquare(\n players.get(m_currentTurn).getCurrentPosition()));\n square.setOwnedBy(players.get(m_currentTurn).getName());\n convertTextToSpeech(\"You now own\" + square.getName());\n Log.d(\"buyProperty yes\", square.getOwnedBy());\n\n if (m_manageFunds) {\n players.get(m_currentTurn).subtractMoney(square.getPrice());\n Log.d(\"buyProperty yes\", players.get(m_currentTurn).getName() +\n String.valueOf(players.get(m_currentTurn).getMoney()));\n funds.setText(String.valueOf(players.get(m_currentTurn).getMoney()));\n }\n nextTurnRoll();\n } else if (recognizedSpeech.getText().toString().contains(\"no\")) {\n nextTurnRoll();\n }\n }", "boolean hasText();", "boolean hasText();", "boolean hasText();", "boolean hasText();", "private String keywordFound(){\r\n\t\tString rtn = \"\";\r\n\t\tString tmp = \"\";\r\n\t\tint carr_pos = getCaretPosition();\r\n\t\t//estract part of text for keyword search\r\n\t\ttry { \r\n\t\tif(carr_pos>50)\r\n\t\t\ttmp = doc.getText(carr_pos-50,50);\r\n\t\telse\r\n\t\t\ttmp = doc.getText(0,carr_pos);\r\n\t\t}catch(BadLocationException a){\r\n\t\t\tSystem.out.println(\"exception\");\r\n\t\t\treturn rtn;\r\n\t\t};\r\n\t\t//Start check\r\n\t\tint i = 0;\r\n\t\tif(tmp.length() >= 2)i = tmp.length()-2;\t\r\n\t\twhile(checkOperator(tmp.charAt(i)) && i > 0){\r\n\t\t\trtn += tmp.charAt(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t\tif(i == 0)rtn += tmp.charAt(i);\t\t\r\n\t\treturn mirrorString(rtn);\r\n\t}", "public void addPhrase(String phrase) {\n this.phrases.add(phrase);\n }", "public void firstSem10a(){\n chapter = \"firstSem10a\";\n String firstSem10a = \"There's a commotion outside your room - your door looks like it's been smashed down, and your RA is standing outside, looking \" +\n \"distressed. You can hear a shout from inside - your roommate - and sounds of a struggle. \\\"Get in there and help!\\\" you shout to the RA, \" +\n \"but he just shakes his head. \\\"Sorry, I can't. I'm anti-violence. You can't fight hate with hate, you know.\\\"\\tPushing past him, you \" +\n \"run into your room to see your roommate grappling with a large beast. THE beast. It is real. What do you want to do?\";\n getTextIn(firstSem10a);\n }", "@Test(timeout = 4000)\n public void test61() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Usually the address of the publisher or other type of institution. For major publishing houses, van Leunen recommends omitting the information entirely. For small publishers, on the other hand, you can help the reader by giving the complete address.\");\n assertEquals(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you can help th reader by giv th comples addres.\", string0);\n }", "public int amountPhrase(boolean split) throws IOException {\n if (StringUtils.isBlank(currentPath)) return 0;\n String sCurrentLine;\n int counter = 0;\n String[] temp_phrase = getSearchPhrase(split);\n while ((sCurrentLine = bufferReader.readLine()) != null) {\n for (String s : temp_phrase) {\n if (StringUtils.containsIgnoreCase(sCurrentLine, s)) {\n counter++;\n break;\n }\n }\n }\n return counter;\n }", "public void makeWord(String inputText,String pageId,createIndex createindex,String contentType)\n {\n int length,i;\n char c;\n boolean linkFound=false;\n int count1,count2,count3,count4,count5,count6,count7,count8,count9;\n\n\n\n StringBuilder word=new StringBuilder();\n // String finalWord=null,stemmedWord=null;\n docId=Integer.parseInt(pageId.trim());\n\n ci=createindex;\n // Stemmer st=new Stemmer();\n //createIndex createindex=new createIndex();\n\n length=inputText.length();\n\n for(i=0;i<length;i++)\n {\n c=inputText.charAt(i);\n if(c<123 && c>96)\n {\n word.append(c);\n }\n\n else if(c=='{')\n {\n if ( i+9 < length && inputText.substring(i+1,i+9).equals(\"{infobox\") )\n {\n\n StringBuilder infoboxString = new StringBuilder();\n\n count1 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n infoboxString.append(c);\n if ( c == '{') {\n count1++;\n }\n else if ( c == '}') {\n count1--;\n }\n if ( count1 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {infoboxString.deleteCharAt(infoboxString.length()-1);}\n break;\n }\n }\n\n processInfobox(infoboxString);\n\n }\n\n else if ( i+8 < length && inputText.substring(i+1,i+8).equals(\"{geobox\") )\n {\n\n StringBuilder geoboxString = new StringBuilder();\n\n count2 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n geoboxString.append(c);\n if ( c == '{') {\n count2++;\n }\n else if ( c == '}') {\n count2--;\n }\n if ( count2 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {geoboxString.deleteCharAt(geoboxString.length()-1);}\n break;\n }\n }\n\n // processGeobox(geoboxString);\n }\n\n else if ( i+6 < length && inputText.substring(i+1,i+6).equals(\"{cite\") )\n {\n\n /*\n * Citations are to be removed.\n */\n\n count3 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count3++;\n }\n else if ( c == '}') {\n count3--;\n }\n if ( count3 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n else if ( i+4 < length && inputText.substring(i+1,i+4).equals(\"{gr\") )\n {\n\n /*\n * {{GR .. to be removed\n */\n\n count4 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count4++;\n }\n else if ( c == '}') {\n count4--;\n }\n if ( count4 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equals(\"{coord\") )\n {\n\n /**\n * Coords to be removed\n */\n\n count5 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '{') {\n count5++;\n }\n else if ( c == '}') {\n count5--;\n }\n if ( count5 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n //System.out.println(\"process infobox\");\n }\n else if(c=='[')\n {\n // System.out.println(\"process square brace\");\n\n if ( i+11 < length && inputText.substring(i+1,i+11).equalsIgnoreCase(\"[category:\"))\n {\n\n StringBuilder categoryString = new StringBuilder();\n\n count6 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n categoryString.append(c);\n if ( c == '[') {\n count6++;\n }\n else if ( c == ']') {\n count6--;\n }\n if ( count6 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {categoryString.deleteCharAt(categoryString.length()-1);}\n break;\n }\n }\n\n // System.out.println(\"category string=\"+categoryString.toString());\n processCategories(categoryString);\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"[image:\") ) {\n\n /**\n * Images to be removed\n */\n\n count7 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '[') {\n count7++;\n }\n else if ( c == ']') {\n count7--;\n }\n if ( count7 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equalsIgnoreCase(\"[file:\") ) {\n\n /**\n * File to be removed\n */\n\n count8 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '[') {\n count8++;\n }\n else if ( c == ']') {\n count8--;\n }\n if ( count8 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n }\n else if(c=='<')\n {\n //System.out.println(\"Process < >\");\n\n if ( i+4 < length && inputText.substring(i+1,i+4).equalsIgnoreCase(\"!--\") ) {\n\n /**\n * Comments to be removed\n */\n\n int locationClose = inputText.indexOf(\"-->\" , i+1);\n if ( locationClose == -1 || locationClose+2 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+2;\n }\n\n }\n else if ( i+5 < length && inputText.substring(i+1,i+5).equalsIgnoreCase(\"ref>\") ) {\n\n /**\n * References to be removed\n */\n int locationClose = inputText.indexOf(\"</ref>\" , i+1);\n if ( locationClose == -1 || locationClose+5 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+5;\n }\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"gallery\") ) {\n\n /**\n * Gallery to be removed\n */\n int locationClose = inputText.indexOf(\"</gallery>\" , i+1);\n if ( locationClose == -1 || locationClose+9 > length) {\n i = length-1;\n }\n else {\n i = locationClose+9;\n }\n }\n\n }\n else if ( c == '=' && i+1 < length && inputText.charAt(i+1) == '=')\n {\n\n linkFound = false;\n i+=2;\n while ( i < length && ((c = inputText.charAt(i)) == ' ' || (c = inputText.charAt(i)) == '\\t') )\n {\n i++;\n }\n\n if ( i+14 < length && inputText.substring(i , i+14 ).equals(\"external links\") )\n {\n //System.out.println(\"External link found\");\n linkFound = true;\n i+= 14;\n }\n\n }\n else if ( c == '*' && linkFound == true )\n {\n\n //System.out.println(\"Link found\");\n count9 = 0;\n boolean spaceParsed = false;\n StringBuilder link = new StringBuilder();\n while ( count9 != 2 && i < length )\n {\n c = inputText.charAt(i);\n if ( c == '[' || c == ']' )\n {\n count9++;\n }\n if ( count9 == 1 && spaceParsed == true)\n {\n link.append(c);\n }\n else if ( count9 != 0 && spaceParsed == false && c == ' ')\n {\n spaceParsed = true;\n }\n i++;\n }\n\n StringBuilder linkWord = new StringBuilder();\n for ( int j = 0 ; j < link.length() ; j++ )\n {\n char currentCharTemp = link.charAt(j);\n if ( (int)currentCharTemp >= 'a' && (int)currentCharTemp <= 'z' )\n {\n linkWord.append(currentCharTemp);\n }\n else\n {\n\n // System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n }\n if ( linkWord.length() > 1 )\n {\n //System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n\n }\n else\n {\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n }\n }\n\n\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n /*\n if(word.length()>0)\n {\n finalWord=new String(word);\n if(!(checkStopword(finalWord)))\n {\n st.add(finalWord.toCharArray(),finalWord.length());\n stemmedWord=st.stem();\n\n createindex.addToTreeSet(stemmedWord,docId);\n\n }\n\n word.delete(0, word.length());\n } */\n\n }", "public String seletor(String frase) {\n\n\t\ttry {\n\n\t\t\tif (frase.contains(\"valem\")) {\n\t\t\t\tmap.mapeamentoProduto(frase, valores, produtos);\n\t\t\t\treturn null;\n\t\t\t} else if (frase.contains(\"quanto vale \")) {\n\t\t\t\tString[] array = frase.replace(\"quanto vale \", \"\").replace(\" ?\", \"\").split(\" \");\n\t\t\t\tDouble valor = calc.calculaValor(array, valores);\n\t\t\t\tString mensagem = \"\";\n\t\t\t\tfor (String s : array) {\n\t\t\t\t\tmensagem = mensagem.concat(s + \" \");\n\t\t\t\t}\n\t\t\t\treturn mensagem + \"vale \" + valor.toString();\n\n\t\t\t} else if (frase.contains(\"quantos créditos\"))\n\n\t\t\t{\n\t\t\t\tString[] array = frase.replace(\"quantos créditos são \", \"\").replace(\" ?\", \"\").split(\" \");\n\t\t\t\tDouble valor = calc.calculaCreditos(array, valores , produtos);\n\t\t\t\tString mensagem = \"\";\n\t\t\t\tfor (String s : array) {\n\t\t\t\t\tmensagem = mensagem.concat(s + \" \");\n\t\t\t\t}\n\t\t\t\treturn mensagem + \"custa \" + valor.toString() + \" créditos\";\n\t\t\t} else if ((frase.split(\" \").length == 3) && frase.contains(\" representa \")) {\n\t\t\t\tmap.mapeamentoValor(frase,valores);\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn \"Nem ideia do que isto significa!\";\n\t\t\t}\n\t\t} catch (RuntimeException e) { // numero invalidos por qualquer motivo (XXXX , XIC, etc) são tratados como entrada invalida\n\t\t\treturn \"Nem ideia do que isto significa!\";\n\t\t}\n\t}", "public void firstSem2a5(){\n chapter = \"firstSem2a5\";\n String firstSem2a5 = \"What about your friend here?\\\" he asks, nodding to \"+student.getRmName()+\". \\\"Oh, I'm good,\\\"\" +\n student.getRmName()+\"says quickly. I already have a job, through the underground Communist...uh, through\" +\n \" the school paper.\\\" You chat with the man a little longer before he excuses himself to go back to the \" +\n \"kitchen.\\tYou and \"+student.getRmName()+\" finish up your dinner and head back. About halfway there, your roommate \" +\n \"stops and peers at you intensely. \\\"Well?\\\" they say.\";\n getTextIn(firstSem2a5);\n }", "@Test(timeout = 4000)\n public void test47() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"th sponsor institut of a techn report.uas\");\n assertEquals(\"th spons institut of a techn report.ua\", string0);\n }", "public String recognizeAuthorSentence(String sentence) \n\t{\n\t\tLanguageModelInterface langM;\n\t\tCollection<LanguageModelInterface> authbis;\n\t\tIterator<LanguageModelInterface> it;\n\t\tDouble prob = 0.0;\n\t\tString author_recognized = UNKNOWN_AUTHOR;\n\n\t\tfor(int i = 0; i < this.authorLangModelsMap.size(); i++)\n\t\t{\n\t\t\tauthbis = this.authorLangModelsMap.get(authors.get(i)).values();\n\t\t\tit = authbis.iterator();\n\t\t\t//System.out.println(authors.get(i));\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tlangM = (NaiveLanguageModel) it.next();\n\t\t\t\t//System.out.println(langM.getSentenceProb(sentence));\n\t\t\t\t//System.out.println(authors.get(i));\n\t\t\t\t\n\t\t\t\tif(prob < langM.getSentenceProb(sentence))\n\t\t\t\t{\n\t\t\t\t\tprob = langM.getSentenceProb(sentence);\n\t\t\t\t\tauthor_recognized = authors.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn author_recognized;\n\t}", "@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }", "public void processNastupTerm2Hotovy(MessageForm message)\n\t{\n\t\tassistantFinished(message);\n\t}", "public void process() {\n int secondSpace = songLine.indexOf(' ', (songLine.indexOf(' ') + 1));\n \n if(secondSpace != -1) {\n String firstTwoWords = songLine.substring(0, secondSpace);\n String rest = songLine.substring(secondSpace);\n System.out.printf(\"First two words: %s%n\",firstTwoWords);\n System.out.printf(\"Rest of the words: %s%n\",rest.substring(1));\n }\n \n int thirdSpace = songLine.indexOf(' ', (songLine.indexOf(' ') + 2));\n char firstLetterThirdWord = songLine.charAt(thirdSpace + 1);\n \n int firstOccurance = songLine.indexOf('b');\n \n System.out.printf(\"Length is: %d%n\", songLine.length());\n \n System.out.printf(\"Last character is: %c%n\", songLine.charAt(songLine.length() - 1) );\n \n System.out.printf(\"First letter of the third word: %c%n\",firstLetterThirdWord);\n \n System.out.printf(\"Replaced spaces with x's: %s%n\", songLine.replace(\" \", \"x\"));\n \n System.out.printf(\"Uppercase: %s%n\", songLine.toUpperCase());\n \n System.out.printf(\"Index of first occurence of 'b': %d%n%n\", firstOccurance);\n \n }", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you can help th reader by giv th comples addres.\");\n assertEquals(\"usu th addr of th publish or other typ of institut. for major publ hous, van leun recommen om th inform entir. for smal publish, on th other hand, you can help th reader by giv th compl addr.\", string0);\n }", "protected abstract String answer();" ]
[ "0.659394", "0.6491914", "0.6484938", "0.6408288", "0.633758", "0.63010556", "0.6209421", "0.60593826", "0.5987435", "0.5941014", "0.5885373", "0.5846718", "0.5834259", "0.58047026", "0.5784847", "0.5778968", "0.57751894", "0.57727784", "0.5741605", "0.5702141", "0.5688164", "0.56775945", "0.5673331", "0.566255", "0.5654957", "0.5637435", "0.563392", "0.56184167", "0.559639", "0.55955607", "0.5578469", "0.5577162", "0.55621433", "0.55469245", "0.5545317", "0.5540057", "0.55299234", "0.5523739", "0.5518985", "0.5517909", "0.5503142", "0.5501934", "0.5485548", "0.5485289", "0.5466064", "0.5465345", "0.54550874", "0.54483324", "0.54446334", "0.54445297", "0.5430439", "0.54273117", "0.5426114", "0.5418738", "0.5406314", "0.5389067", "0.5385134", "0.5383281", "0.53828925", "0.53781116", "0.53762805", "0.5365173", "0.5363747", "0.5363711", "0.53630996", "0.536006", "0.5342122", "0.53416353", "0.5339566", "0.5336019", "0.5331924", "0.53299284", "0.53205377", "0.5319542", "0.53169215", "0.5314914", "0.53110325", "0.5306977", "0.5303311", "0.5299446", "0.52880144", "0.52857673", "0.52857673", "0.52857673", "0.52857673", "0.5282986", "0.52798605", "0.5273372", "0.5270634", "0.5266622", "0.5264758", "0.5258669", "0.5249243", "0.52489895", "0.52406615", "0.5234124", "0.5230994", "0.52293223", "0.52138525", "0.5213571" ]
0.70996916
0
TODO phrase was not successful
@Override public void failure(RetrofitError error) { Log.d(TAG, String.valueOf(error)); WearSocket.getInstance().sendMessage(Values.MESSAGE_PATH, "Error: " + phrase + " didn't work"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}", "@Test\n public void testPhrase() {\n assertQ(req(\"q\",\"text:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='1']\"\n );\n // should generate a query of (now OR cow) and match both docs\n assertQ(req(\"q\",\"text_np:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='2']\"\n );\n }", "private static String handlePhrases(String PubmedQuery) {\r\n //Find phrases \"between double quotes\"\r\n String[] phrases = PubmedQuery.split(\"\\\"\");\r\n for(int i = 0 ; i < phrases.length ; i++){\r\n phrases[i] = phrases[i].trim();\r\n if(!phrases[i].equals(\"\")){ // String not Empty\r\n if(i%2 != 0){ // String surrounded by quotes, i.e. a phrase\r\n phrases[i] = \"\\\"\" + phrases[i] + \"\\\"\";\r\n } else { // not a phrase, i.e. a bag of terms, operator or [field of index] (inside brackets)\r\n if(phrases[i].startsWith(\"[\")){ //index field of previus component contained (i.e. case: \"...\"[...])\r\n boolean perviusPhraseFound = false; // True if index field was added to previus phrase element\r\n // Get index field of previus component and handle proprietly\r\n String [] tokens = phrases[i].split(\"]\");\r\n String indexField = tokens[0].replace(\"[\", \"\");\r\n String luceneField = supportedIndexFields.get(indexField);\r\n if(luceneField != null){ \r\n //add \"indexField:\" as a prefix in previus (not empty) phrase\r\n int tmp = i-1;\r\n while(!perviusPhraseFound & tmp >= 0){\r\n if(!phrases[tmp].equals(\"\")){\r\n perviusPhraseFound = true;\r\n //TO DO : handle wrong syntax (e.g. ... AND [ArticleTitle])\r\n phrases[tmp] = luceneField + \":\" + phrases[tmp] + \"\";\r\n } else {\r\n tmp--;\r\n }\r\n }\r\n } // else : Lucene counterpart not found, unsupported field - do nothing\r\n // Remove from current phrase this index field (prefix)\r\n phrases[i] = phrases[i].substring(indexField.length()+2 );\r\n } \r\n // Further handling...\r\n phrases[i] = handleNonPhraseToken(phrases[i]);\r\n }\r\n } //else { /* Empty token, do nothing with this */ System.out.println(\"\\t\\t\\t empty\"); }\r\n }\r\n \r\n String luceneQuery = \"\";\r\n boolean fisrtPhrase = true;\r\n for(int i = 0 ; i < phrases.length ; i ++){\r\n if(phrases[i].length() > 0){\r\n if(!phrases[i].startsWith(\" OR \") & !phrases[i].startsWith(\" -\") & !phrases[i].startsWith(\" +\") ){\r\n if(fisrtPhrase){\r\n luceneQuery += \" +\";\r\n fisrtPhrase = false;\r\n } else {\r\n if(!phrases[i-1].endsWith(\" OR \") & !phrases[i-1].endsWith(\" -\") & !phrases[i-1].endsWith(\" +\")){\r\n luceneQuery += \" +\";\r\n }\r\n } \r\n } // add default operator + when required (no OR or - is present for that term)\r\n luceneQuery += phrases[i];\r\n }// else empty phrase : skip\r\n }\r\n return luceneQuery;\r\n }", "@Override\n public void success(Object o, Response response) {\n Log.d(TAG, \"Phrase: \" + phrase + \" was executed\");\n }", "public void setPhrase(String phrase) {\n this.phrase = phrase;\n }", "public String getPhrase()\n {\n return this.phrase;\n }", "public void process(String s)//check if the phrase guess equals the actual phrase\n {\n String phraseGuess = s.toUpperCase();\n String phraseUp = phrase.toUpperCase();\n //comparing guess and actual\n if (phraseGuess.equals(phraseUp))\n {\n System.out.println(\"You Guessed correctly!\");\n screen = phraseUp.toCharArray();\n GamePlay.letterInPhrase = true;\n showPhrase();\n// System.out.println(\"The phrase is: \"+phrase);\n }\n else\n {System.out.println(\"Incorrect Guess Next Player's turn\");\n GamePlay.letterInPhrase = false;\n }\n }", "public String getPhrase() {\n return phrase;\n }", "@Test\n\tpublic void phraseGrepTest1() throws Exception {\n\t\t// phrase is \"I am forced\"\n\t\tHashSet<String> grepFound = loadGrepResults(\"i+am+forced\");\n\t\tCollection<Page> index = queryTest.query(\"\\\"I am Forced\\\"\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\t\n\t\t// tests set equality \n\t\tassertEquals(indexFound, grepFound);\n\t}", "public String catchPhrase() {\n @SuppressWarnings(\"unchecked\") List<List<String>> catchPhraseLists = (List<List<String>>) faker.fakeValuesService().fetchObject(\"company.buzzwords\");\n return joinSampleOfEachList(catchPhraseLists, \" \");\n }", "PhrasesIdentification() {\n }", "@Override\n\tpublic String getStemming(String phrase) {\n\t\treturn null;\n\t}", "@Test\n\tpublic void notPhraseGrepTest() throws Exception {\n\t\t// phrase is \"I am forced\"\n\t\tHashSet<String> grepFound = loadGrepResults(\"!i+am+forced\");\n\t\tCollection<Page> index = queryTest.query(\"! \\\"I am Forced\\\"\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\tassertEquals(grepFound, indexFound);\n\t}", "private String encodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 1); \n }", "private String getPhrase(String key) {\r\n if (\"pl\".equals(System.getProperty(\"user.language\")) && phrasesPL.containsKey(key)) {\r\n return phrasesPL.get(key);\r\n } else if (phrasesEN.containsKey(key)) {\r\n return phrasesEN.get(key);\r\n }\r\n return \"Translation not found!\";\r\n }", "public void showListPhrases() {\r\n\t\tint i = 0;\r\n\t\tString[] array = new String[100];\r\n\t\ttry {\r\n\t\t\tstatement = SqlCon.getConnection().createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(SqlCon.PHRASE_TO_CHECK);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString phrase = rs.getString(\"word\");\r\n\t\t\t\tarray[i] = phrase;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ti= i+1;\r\n\t\tarrPhrase = new String[i];\r\n\t\tarrPhrase[0] = \"None\";\r\n\t\tfor (int j = 1; j < i; j++) {\r\n\t\t\tarrPhrase[j] = array[j-1];\r\n\t\t}\r\n\t\tfor(int k= 0; k<arrPhrase.length;k++)\r\n\t\t\tSystem.out.println(arrPhrase[k]);\r\n\t}", "public String getSpeechResult(String hypothesis){\n\n\n String[] arrayOfStrings = hypothesis.split(\"text\\\" :\");\n String textPredicted = arrayOfStrings[1];\n\n arrayOfStrings = textPredicted.split(\"\\\"\");\n textPredicted = arrayOfStrings[1];\n\n return textPredicted;\n }", "public String getPhrase(String sentencePhraseID){\n\t\t// implement me!\n\t\treturn \" \";\n\t}", "public String phraseWords(String input) {\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n String pos = document.get(CoreAnnotations.PhraseWordsTagAnnotation.class);\n\n return pos;\n }", "public String generateSentence(Hashtable<String, Vector<String>> aHashTable) {\n\t\t\n\t\t// Vector to hold the phrase\n\t\tVector<String> newPhrase = new Vector<String>();\n\t\t\n\t\t// String for the next word\n\t\tString nextWord = \"\";\n\t\t\t\t\n\t\t// Select the first word\n\t\tVector<String> startWords = aHashTable.get(\"_start\");\n\t\tint startWordsLen = startWords.size();\n\t\tnextWord = startWords.get(rnd.nextInt(startWordsLen));\n\t\tnewPhrase.add(nextWord);\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// Keep looping through the words until we've reached the end\n\t\t\twhile (nextWord.charAt(nextWord.length()-1) != '^') \n\t\t\t{\n\t\t\t\tVector<String> wordSelection = aHashTable.get(nextWord);\n\t\t\t\tint wordSelectionLen = wordSelection.size();\n\t\t\t\tnextWord = wordSelection.get(rnd.nextInt(wordSelectionLen)).trim();\n\t\t\t\tnewPhrase.add(nextWord);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tString _tryAgain = generateSentence(aHashTable); \n\t\t\tnewPhrase.add(_tryAgain);\n\t\t}\n\t\t\n\t\tString _returnString = newPhrase.toString();\n\t\t_returnString = _returnString.substring(1, _returnString.length() -2); // remove [ and ^]\n\t\t\n\t\tString _finalString = \"\";\n String[] _splitBySpace = _returnString.split(\"[,\\\\,\\\\(\\\\)]\");\n\t\tfor(int i = 0 ; i < _splitBySpace.length ; i++)\n\t\t{\n\t\t\tif(_splitBySpace[i].trim() != \"\")\n\t\t\t\t_finalString += _splitBySpace[i].replace(\"\\\"\", \"\").trim() + \" \";\n\t\t}\n\t\t\n\t\treturn _finalString.trim();//_returnString.substring(1, _returnString.length() -2); // remove [ and ^]\t\n\t}", "private void readPhrases() {\n\t\tphrases = new HashMap<String, String>();\n\t\tcounter = new HashMap<String, Integer>();\n\n\t\tBufferedReader br = null;\n\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(input));\n\t\t\tfor (String line; (line = br.readLine()) != null;) {\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(line, \"|\");\n\n\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\t\t\tString phrase = tokenizer.nextToken();\n\t\t\t\t\tString key = StringUtils.getMd5Hash(phrase);\n\n\t\t\t\t\tif (phrases.containsKey(key)) {\n\t\t\t\t\t\tint count = counter.get(key);\n\t\t\t\t\t\tcounter.put(key, ++count);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphrases.put(key, phrase);\n\t\t\t\t\t\tcounter.put(key, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalAccessError(\"Error reading input [\"\n\t\t\t\t\t+ input.getName() + \"]\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t}", "public void reagir(String frase) {\n if (frase.equals(\"toma comida\") || frase.equals(\"olá\")) {\n System.out.println(\"abanar e latir\");\n } else {\n System.out.println(\"rosnar\");\n }\n }", "static String question(String sentence) {\r\n\t\tString result = null;\r\n\t\tif (sentence.contains(\"can you tell me\")) {\r\n\t\t\tint index = sentence.indexOf(\"can you tell me\");\r\n\t\t\tString search = sentence.substring(index + 15);\r\n\t\t\tresult = googleFind(search);\r\n\t\t} else if (sentence.contains(\"do you know\")) {\r\n\t\t\tint index = sentence.indexOf(\"do you know\");\r\n\t\t\tString search = sentence.substring(index + \"do you know\".length());\r\n\t\t\tresult = googleFind(search);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static String addPuctuation(String input) {\n // Sentence Openers \n input = input.replace(\"hello\", \"hello,\");\n input = input.replace(\"hi\", \"hi!\");\n input = input.replace(\"heya\", \"heya!\");\n input = input.replace(\"hey\", \"hey,\");\n input = input.replace(\"greetings\", \"greetings,\");\n input = input.replace(\"good morning\", \"good morning,\");\n input = input.replace(\"good evening\", \"good evening,\");\n input = input.replace(\"good afternoon\", \"good afternoon!\");\n \n\n // Words ending in nt \n input = input.replace(\"isnt\", \"isn't\");\n input = input.replace(\"cant\", \"can't\");\n input = input.replace(\"wont\" , \"won't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"would\", \"wouldn't\");\n input = input.replace(\"hadnt\", \"hadn't\");\n input = input.replace(\"aint\", \"ain't\");\n input = input.replace(\"arent\", \"aren't\");\n input = input.replace(\"didnt\", \"didn't\");\n input = input.replace(\"doesnt\" , \"doesn't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"dont\", \"don't\");\n input = input.replace(\"hasnt\", \"hasn't\");\n input = input.replace(\"shoudlnt\", \"shouldn't\");\n input = input.replace(\"couldnt\", \"couldn't\");\n input = input.replace(\"wasnt\", \"wasn't\");\n input = input.replace(\"werent\" , \"were't\");\n input = input.replace(\"wouldnt\" , \"wouldn't\");\n\n //Questions\n String q1 = \"what\";\n String q2 = \"when\";\n String q3 = \"where\";\n String q4 = \"which\";\n String q5 = \"who\";\n String q6 = \"whom\";\n String q7 = \"whose\";\n String q8 = \"why\";\n String q9 = \"how\";\n\n if (input.contains(q1) || input.contains(q2) || input.contains(q3) \n || input.contains(q4) || input.contains(q5) || input.contains(q6) \n || input.contains(q7) || input.contains(q8) || input.contains(q9)) \n {\n input = input + \"?\";\n }\n\n else\n {\n input = input + \".\";\n }\n\n\n //Other\n input = input.replace(\"however\", \"however,\");\n input = input.replace(\"ill\" , \"i'll\");\n input = input.replace(\"im\", \"i'm\");\n return input;\n }", "public void reagir(String frase) {\n\t\tif (frase.equals(\"toma comida\") || frase.equals(\"ola\")) {\n\t\t\tSystem.out.println(\"Abanar e latir\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Rosnar\");\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void testP2(){\n\t\tList<Token> list = pa.getTokens(str);\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n\t\tfor(Token t : list){\n\t\t\tSystem.out.println(t.toString());\n\t\t}\n\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n\t\tboolean a = false;\n\t\ttry {\n\t\t\ta = pa.runSentence(str,null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"end res : \"+a);\n\t}", "public abstract String guessedWord();", "java.lang.String getNewSentence();", "public void transcribe (String utterance, float confidence) \n{\n //println(utterance);\n if (!utterance.equals(\"\"))\n {\n result = utterance;\n ListenForKeywords(result);\n println(result);\n inputResult = result;\n result = \"\";\n \n //CheckCommandValidity(result);\n \n }\n}", "public String acronym(String phrase) {\n /*StringBuilder acronymFeed = new StringBuilder(\"\");\n String wordHolder = \"\";\n int spaceIndex;\n char firstLetter;\n do{\n spaceIndex = phrase.indexOf(\" \");\n wordHolder = phrase.substring(0,spaceIndex);\n acronymFeed.append(wordHolder.charAt(0));\n phrase = phrase.replaceFirst(wordHolder, \"\");\n } while (spaceIndex != -1 && wordHolder != \"\" && phrase != \"\");\n \n \n \n \n \n String acronymResult = acronymFeed.toString().toUpperCase();\n return acronymResult;\n */\n \n char[] letters = phrase.toCharArray();\n String firstLetters = \"\";\n firstLetters += String.valueOf(letters[0]);\n for (int i = 1; i < phrase.length();i++){\n if (letters[i-1] == ' '){\n firstLetters += String.valueOf(letters[i]);\n }\n }\n firstLetters = firstLetters.toUpperCase();\n return firstLetters;\n }", "String processing();", "public static String execute(String phrase) throws IllegalArgumentException {\n\t\treturn execute(Language.Pt, phrase);\n\t}", "private void find(char[] m, String message, Trie cur, Trie root, int index, List<String> results) {\n // Base case 1. No match with any dictionary word. if cur == null -> no match ; return\n if (cur == null) {\n return;\n }\n // Base case 2. if out of bounds, check previously collected word and return\n if (index == message.length()) {\n // result only in case matches word\n if (cur.word != null) {\n results.add(new String(m));\n }\n return;\n }\n char c = message.charAt(index);\n if (c == SPACE) {\n // matches word or character 'e'\n // check if matches word from dictionary\n if (cur.word != null) {\n m[index] = SPACE;\n // if space - start collecting new word from beginning of Trie\n find(m, message, root, root, index + 1, results);\n }\n // otherwise ' ' -> 'e'\n c = 'e';\n }\n // considered non-space character (backtracking)\n m[index] = c;\n // get next element from try\n Trie next = cur.get(c);\n find(m, message, next, root, index + 1, results);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\");\n assertEquals(\"nam(s) of edit(s), typ as ind in th lat book. if ther is al an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\", string0);\n }", "public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}", "public void makeWord(String inputText,String pageId,createIndex createindex,String contentType)\n {\n int length,i;\n char c;\n boolean linkFound=false;\n int count1,count2,count3,count4,count5,count6,count7,count8,count9;\n\n\n\n StringBuilder word=new StringBuilder();\n // String finalWord=null,stemmedWord=null;\n docId=Integer.parseInt(pageId.trim());\n\n ci=createindex;\n // Stemmer st=new Stemmer();\n //createIndex createindex=new createIndex();\n\n length=inputText.length();\n\n for(i=0;i<length;i++)\n {\n c=inputText.charAt(i);\n if(c<123 && c>96)\n {\n word.append(c);\n }\n\n else if(c=='{')\n {\n if ( i+9 < length && inputText.substring(i+1,i+9).equals(\"{infobox\") )\n {\n\n StringBuilder infoboxString = new StringBuilder();\n\n count1 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n infoboxString.append(c);\n if ( c == '{') {\n count1++;\n }\n else if ( c == '}') {\n count1--;\n }\n if ( count1 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {infoboxString.deleteCharAt(infoboxString.length()-1);}\n break;\n }\n }\n\n processInfobox(infoboxString);\n\n }\n\n else if ( i+8 < length && inputText.substring(i+1,i+8).equals(\"{geobox\") )\n {\n\n StringBuilder geoboxString = new StringBuilder();\n\n count2 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n geoboxString.append(c);\n if ( c == '{') {\n count2++;\n }\n else if ( c == '}') {\n count2--;\n }\n if ( count2 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {geoboxString.deleteCharAt(geoboxString.length()-1);}\n break;\n }\n }\n\n // processGeobox(geoboxString);\n }\n\n else if ( i+6 < length && inputText.substring(i+1,i+6).equals(\"{cite\") )\n {\n\n /*\n * Citations are to be removed.\n */\n\n count3 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count3++;\n }\n else if ( c == '}') {\n count3--;\n }\n if ( count3 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n else if ( i+4 < length && inputText.substring(i+1,i+4).equals(\"{gr\") )\n {\n\n /*\n * {{GR .. to be removed\n */\n\n count4 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count4++;\n }\n else if ( c == '}') {\n count4--;\n }\n if ( count4 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equals(\"{coord\") )\n {\n\n /**\n * Coords to be removed\n */\n\n count5 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '{') {\n count5++;\n }\n else if ( c == '}') {\n count5--;\n }\n if ( count5 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n //System.out.println(\"process infobox\");\n }\n else if(c=='[')\n {\n // System.out.println(\"process square brace\");\n\n if ( i+11 < length && inputText.substring(i+1,i+11).equalsIgnoreCase(\"[category:\"))\n {\n\n StringBuilder categoryString = new StringBuilder();\n\n count6 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n categoryString.append(c);\n if ( c == '[') {\n count6++;\n }\n else if ( c == ']') {\n count6--;\n }\n if ( count6 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {categoryString.deleteCharAt(categoryString.length()-1);}\n break;\n }\n }\n\n // System.out.println(\"category string=\"+categoryString.toString());\n processCategories(categoryString);\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"[image:\") ) {\n\n /**\n * Images to be removed\n */\n\n count7 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '[') {\n count7++;\n }\n else if ( c == ']') {\n count7--;\n }\n if ( count7 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equalsIgnoreCase(\"[file:\") ) {\n\n /**\n * File to be removed\n */\n\n count8 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '[') {\n count8++;\n }\n else if ( c == ']') {\n count8--;\n }\n if ( count8 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n }\n else if(c=='<')\n {\n //System.out.println(\"Process < >\");\n\n if ( i+4 < length && inputText.substring(i+1,i+4).equalsIgnoreCase(\"!--\") ) {\n\n /**\n * Comments to be removed\n */\n\n int locationClose = inputText.indexOf(\"-->\" , i+1);\n if ( locationClose == -1 || locationClose+2 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+2;\n }\n\n }\n else if ( i+5 < length && inputText.substring(i+1,i+5).equalsIgnoreCase(\"ref>\") ) {\n\n /**\n * References to be removed\n */\n int locationClose = inputText.indexOf(\"</ref>\" , i+1);\n if ( locationClose == -1 || locationClose+5 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+5;\n }\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"gallery\") ) {\n\n /**\n * Gallery to be removed\n */\n int locationClose = inputText.indexOf(\"</gallery>\" , i+1);\n if ( locationClose == -1 || locationClose+9 > length) {\n i = length-1;\n }\n else {\n i = locationClose+9;\n }\n }\n\n }\n else if ( c == '=' && i+1 < length && inputText.charAt(i+1) == '=')\n {\n\n linkFound = false;\n i+=2;\n while ( i < length && ((c = inputText.charAt(i)) == ' ' || (c = inputText.charAt(i)) == '\\t') )\n {\n i++;\n }\n\n if ( i+14 < length && inputText.substring(i , i+14 ).equals(\"external links\") )\n {\n //System.out.println(\"External link found\");\n linkFound = true;\n i+= 14;\n }\n\n }\n else if ( c == '*' && linkFound == true )\n {\n\n //System.out.println(\"Link found\");\n count9 = 0;\n boolean spaceParsed = false;\n StringBuilder link = new StringBuilder();\n while ( count9 != 2 && i < length )\n {\n c = inputText.charAt(i);\n if ( c == '[' || c == ']' )\n {\n count9++;\n }\n if ( count9 == 1 && spaceParsed == true)\n {\n link.append(c);\n }\n else if ( count9 != 0 && spaceParsed == false && c == ' ')\n {\n spaceParsed = true;\n }\n i++;\n }\n\n StringBuilder linkWord = new StringBuilder();\n for ( int j = 0 ; j < link.length() ; j++ )\n {\n char currentCharTemp = link.charAt(j);\n if ( (int)currentCharTemp >= 'a' && (int)currentCharTemp <= 'z' )\n {\n linkWord.append(currentCharTemp);\n }\n else\n {\n\n // System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n }\n if ( linkWord.length() > 1 )\n {\n //System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n\n }\n else\n {\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n }\n }\n\n\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n /*\n if(word.length()>0)\n {\n finalWord=new String(word);\n if(!(checkStopword(finalWord)))\n {\n st.add(finalWord.toCharArray(),finalWord.length());\n stemmedWord=st.stem();\n\n createindex.addToTreeSet(stemmedWord,docId);\n\n }\n\n word.delete(0, word.length());\n } */\n\n }", "public Slogan(final String str) {\n phrase = str;\n count++;\n }", "private String decodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 2);\n }", "@Test(timeout = 4000)\n public void test57() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"us for alphabes, cros refer, and creat a label when th ``author'' inform is mis. th field should not be confus with th key that appear in th cit command and at th begin of th databas entr.\");\n assertEquals(\"us for alphab, cro refer, and creat a label when th ``author'' inform is mi. th field should not be confus with th key that appear in th cit command and at th begin of th datab entr.\", string0);\n }", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "void translate(Sentence sentence);", "public void SearchPhrase(Object_Ord temp) {\n\tif (!Doneloading) {\r\n\t return;\r\n\t}\r\n\tif (temp == null) {\r\n\t return;\r\n\t} else if (temp.Ordet.equals(\"\")) {\r\n\t return;\r\n\t}\r\n\ttemp.Set_Searched();\r\n\t//PrintAction( this.getClass().toString() + \" Searching for phrase \" + temp.Ordet );\r\n\tThread thread = new Thread_PhraseSearcher(this, temp);\r\n\tThreadsRunning++;\r\n\tThreadsStarted++;\r\n }", "private static String analyzeTerm(String term) {\n String ret = term.toLowerCase();\n if (stopWords.contains(ret) || ret.isEmpty())\n return \"\";\n return stemmer.stem(ret);\n }", "public void SaveWord(String phrase) {\n\tOrdBok.SaveWord(phrase, 30);\r\n }", "public String getSearchString() {\r\n return super.getSearchString();\r\n \r\n// String searchStr = \"\";\r\n// //put exact phrase at the very beginning\r\n// if(exactphrase != null && exactphrase.length() > 0)\r\n// {\r\n// searchStr += \"\\\"\" + exactphrase + \"\\\"\";\r\n// }\r\n//\r\n// String allwordsSearchStr = \"\";\r\n// if(allwords != null && allwords.length() > 0)\r\n// {\r\n// String [] words = allwords.split(\" \");\r\n// if(words.length > 0)\r\n// {\r\n// for(int i=0; i<words.length; i++)\r\n// {\r\n// allwordsSearchStr += \"+\" + words[i];\r\n// }\r\n// }\r\n// }\r\n//\r\n// String withoutwordsSearchStr = \"\";\r\n// if(withoutwords != null && withoutwords.length() > 0)\r\n// {\r\n// String [] words = withoutwords.split(\" \");\r\n// if(words.length > 0)\r\n// {\r\n// for(int i=0; i<words.length; i++)\r\n// {\r\n// withoutwordsSearchStr += \"+-\" + words[i];\r\n// }\r\n// }\r\n// }\r\n//\r\n// searchStr += allwordsSearchStr + withoutwordsSearchStr; //need to add other string\r\n// \r\n// String oneofwordsSearchStr = \"\";\r\n// if(oneofwords != null && oneofwords.length() > 0)\r\n// {\r\n// String [] words = oneofwords.split(\" \");\r\n// if(words.length > 0)\r\n// {\r\n// oneofwordsSearchStr = \"(\";\r\n// for(int i=0; i<words.length; i++)\r\n// {\r\n// oneofwordsSearchStr += words[i] + \" \";\r\n// }\r\n// oneofwordsSearchStr = oneofwordsSearchStr.trim();\r\n// oneofwordsSearchStr += \")\";\r\n// }\r\n// }\r\n// if(oneofwordsSearchStr.length() > 0)\r\n// {\r\n// searchStr += \"+\" + oneofwordsSearchStr;\r\n// }\r\n//\r\n// return searchStr;\r\n }", "boolean hasHadithText();", "private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Welcome to the store, Hello, I am Eliza, How may I help you Today ?\");\n System.out.println(\" ================================== \");\n System.out.println(\"Enter your Response here or Enter 'Q' to End the chat?\");\n String s1 = sc.nextLine();\n String message = \"\";\n\n while (!s1.toLowerCase().equals(\"q\")) {\n String[] input = (s1.split(\" \"));\n\n message=\"\";\n\n\n for (int i = 0; i < input.length; i++) {\n String replace = getReplace(input[i]);\n if (input[i].equalsIgnoreCase(\"I\")) {\n input[i] = input[i].replace(\"I\", replace);\n } else if (input[i].equalsIgnoreCase(\"me\")) {\n input[i] = input[i].replace(\"me\", replace);\n } else if (input[i].equalsIgnoreCase(\"my\")) {\n input[i] = input[i].replace(\"my\", replace);\n } else if (input[i].equalsIgnoreCase(\"am\")) {\n input[i] = input[i].replace(\"am\", replace);\n } else if (input[i].equalsIgnoreCase(\"you\")) {\n input[i] = input[i].replace(\"you\", replace);\n } else {\n input[i] = input[i];\n }\n message += (input[i] + \" \");\n }\n //checking if the input contain key words\n if ((s1.contains(\"I\")) || (s1.contains(\"my\")) || (s1.contains(\"me\"))\n || (s1.contains(\"am\")) || (s1.contains(\"you\"))){\n //calling method to get qualifier\n String qu = getQualif();\n //Printing the Qualifier message\n System.out.print(qu + \" \" + message);\n s1 = sc.nextLine();\n }\n else {\n //calling method to get a hedge\n String hed = getHedge();\n //Printing the hedge\n System.out.println(hed);\n s1 = sc.nextLine();\n }\n\n\n }\n System.out.println(\"Thank You\");\n }", "@Override\n public String toString() {\n\n return \"Slogan{\" + \"phrase='\" + phrase + '\\'' + '}';\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner info = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the phrase:\");\r\n\t\tString sentence = info.nextLine();\r\n\t\t\r\n\t\tsentence = sentence.trim().toUpperCase();\r\n\t\t\r\n\t\tfor (int i = 0; i < sentence.length(); i++) {\r\n\t\t\tif (sentence.charAt(i) <'A' || sentence.charAt(i) > 'Z' ) {\r\n\t\t\t\tsentence = sentence.replace(\"\"+sentence.charAt(i), \"/\");\r\n//\t\t\t\tSystem.out.println(sentence);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString[] word = sentence.split(\"/\") ;\r\n\t\t\r\n\t\tint total = 0;\r\n\t\tif (word.length < 1) {\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\tHashMap hMap = new HashMap();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (word[0].length() > 0) {\r\n\t\t\t\thMap.put(word[0].length(), 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < word.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\tif (word[i].length() == word[j].length()) {\r\n\t\t\t\t\t\tint cnt = (int) hMap.get(word[i].length());\r\n\t//\t\t\t\t\tSystem.out.println(\"cnt==>\"+cnt);\r\n\t\t\t\t\t\thMap.put(word[i].length(),++cnt);\r\n\t\t\t\t\t\t\t\r\n\t//\t\t\t\t\tSystem.out.println(word[i].length()+\"==>\"+hMap.get(word[i].length()));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (j == (i-1)){\r\n\t\t\t\t\t\t\thMap.put(word[i].length(), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSet<Integer> keys1 = hMap.keySet();\r\n\t\r\n\t\t\tfor(int key:keys1) {\r\n\t\t\t\tif (key !=0) {\r\n\t\t\t\t\tSystem.out.println(hMap.get(key)+\" \"+key +\" letter words\");\r\n\t\t\t\t\ttotal += (int)hMap.get(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(total+\" total words\");\r\n\t\t\r\n\t}", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"th nam of a ser or ses of book. when cit an entir book, th th titl field giv it titl and an opt ser field giv th nam of a ser or mult-volum ses in which th book is publ.\");\n assertEquals(\"th nam of a ser or se of book. when cit an entir book, th th titl field giv it titl and an opt ser field giv th nam of a ser or mult-vol se in which th book is publ.\", string0);\n }", "public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n else\n {\n Speech speech = new Speech(messageContents);\n SpeechProcessor speechProcessor = new SpeechProcessor(joeBot, speech);\n speechProcessor.processSpeech();\n }\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"usually the address of the publisher or other type of institution. for major publishing houses, van leunen recommends omitting the information entirely. for small publishers, on the other hand, you &an help the reader by giving the complete address.\");\n assertEquals(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you &an help th reader by giv th comples addres.\", string0);\n }", "private String searchString(String inWord)\n {\n String line = null;\n StringBuffer rtn = new StringBuffer();\n int len = inWord.length();\n boolean found = false;\n\n if(len == 1)\n {\n if(Character.isDigit(inWord.charAt(0)))\n {\n rtn.append(inWord).append(\"I\");\n found = true;\n } // fi\n\n else if(Character.isLetter(inWord.charAt(0)))\n {\n rtn.append(inWord.toLowerCase()).append(\"S\");\n found = true;\n } // else fi\n } // fi\n\n if(!found)\n {\n int\tnum_A = 0; // Upper case\n int\tnum_L = 0; // Lower case\n int\tnum_N = 0; // Numbers\n int\tnum_P = 0; // Punctuation (numeric)\n int\tnum_Q = 0; // Quotes\n int\tnum_O = 0; // Other\n char last_ch = ' ';\n\n for(int i = 0; i < len; i++)\n {\n if((i == 0) && (inWord.charAt(i) == '-'))\n num_L++;\n\n else if(Character.isLowerCase(inWord.charAt(i)))\n num_L++;\n\n else if(Character.isUpperCase(inWord.charAt(i)))\n num_A++;\n\n else if(Character.isDigit(inWord.charAt(i)))\n num_N++;\n\n else if((inWord.charAt(i) == '=')||(inWord.charAt(i) == ':') ||\n (inWord.charAt(i) == '+')||(inWord.charAt(i) == '.') ||\n (inWord.charAt(i) == ','))\n num_P++;\n\n else if((inWord.charAt(i) == '\\'') ||\n (inWord.charAt(i) == '`') || (inWord.charAt(i) == '\"'))\n num_Q++;\n\n else\n num_O++;\n\n last_ch = inWord.charAt(i);\n } // for\n\n int pos = 0;\n if((len - ntail) > 0)\n pos = len - ntail;\n\n rtn.append(inWord.substring(pos).toLowerCase());\n\n if((num_L + num_Q) == len)\n rtn.append(\"\");\n\n else if((num_A + num_Q) == len)\n rtn.append(\"A\");\n\n else if((num_N + num_P + num_Q) == len)\n rtn.append(\"N\");\n\n else if((num_L + num_A + num_Q) == len)\n rtn.append(\"B\");\n\n else if((num_A + num_N + num_P + num_Q) == len)\n rtn.append(\"C\");\n\n else if((num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"E\");\n\n else if((num_A + num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"D\");\n\n else if((num_O == 0) && (last_ch == '+'))\n rtn.append(\"F\");\n\n else\n rtn.append(\"O\");\n } // else\n\n rtn.append(\"_\");\n\n return(rtn.toString());\n }", "private static String handleNonPhraseToken(String stringPart) {\r\n // Set of final terms to be used (no empty elements, right syntax of index fields)\r\n ArrayList <String> terms = new ArrayList <String> ();\r\n \r\n /** Case Index field **/\r\n if(stringPart.contains(\"[\") | stringPart.contains(\"[\")){ // at least an Index field contained here\r\n //separate brackets for term with one space (extra spaces dont matter, trim() is used later)\r\n stringPart = stringPart.replace(\"[\", \" [\");\r\n stringPart = stringPart.replace(\"]\", \"] \");\r\n }\r\n\r\n /** Case Bag of terms **/\r\n //replace space with AND (change default operator to match pubMed's)\r\n // No need for this if setDefaultOperator(QueryParser.Operator.AND) is used\r\n \r\n String[] tokens = stringPart.split(\"\\\\s\");\r\n if(tokens.length > 0){ \r\n for(int i = 1 ; i < tokens.length ; i++){\r\n tokens[i] = tokens[i].trim();\r\n /* Case index field [fieldName] */\r\n if(tokens[i].startsWith(\"[\") & tokens[i].endsWith(\"]\")){\r\n tokens[i] = tokens[i].replace(\"[\",\"\");// clean field name from brackets\r\n tokens[i] = tokens[i].replace(\"]\",\"\");// clean field name from brackets\r\n //Add index field as prefix to previus (not empty) term (as opening index fields handled separately, this index field should not be the first term of string part)\r\n int tmp = i-1;\r\n boolean perviusTermFound = false;\r\n while(!perviusTermFound & tmp >= 0){\r\n if(!tokens[tmp].equals(\"\")){\r\n perviusTermFound = true;\r\n //TO DO : handle wrong syntax (e.g. ... AND [ArticleTitle])\r\n String luceneField = supportedIndexFields.get(tokens[i]);\r\n if(luceneField != null){\r\n tokens[tmp] = luceneField + \":\" + tokens[tmp];\r\n } // else : Lucene counterpart not found, unsupported field - do nothing\r\n } else {\r\n tmp--;\r\n }\r\n }\r\n //Empty field to not be added as a search term in query\r\n tokens[i] = \"\";\r\n } \r\n \r\n /*\r\n \r\n else if(!tokens[i].equals(\"AND\") & !tokens[i].equals(\"\")) {\r\n terms.add(tokens[i]);\r\n }\r\n */\r\n }\r\n }\r\n \r\n String luceneQueryPart = \"\";\r\n boolean notWaiting = false;\r\n boolean orWaiting = false;\r\n for(int i = 0 ; i < tokens.length ; i++){\r\n\r\n if(!tokens[i].equals(\"AND\") & !tokens[i].equals(\"\")){\r\n //in case of AND nothing should happen, it is the default operator\r\n //empty elements are also ignored as useless\r\n \r\n if(!tokens[i].equals(\"NOT\") & !tokens[i].equals(\"OR\") ){ // it's not an operator, it's a term\r\n \r\n if(!luceneQueryPart.endsWith(\" OR \") & !luceneQueryPart.endsWith(\" -\") ) { \r\n luceneQueryPart += \" +\"; \r\n } \r\n luceneQueryPart += tokens[i];\r\n } else {\r\n if(tokens[i].equals(\"NOT\")) {\r\n luceneQueryPart += \" -\";\r\n }\r\n if(tokens[i].equals(\"OR\")){\r\n luceneQueryPart += \" OR \";\r\n }\r\n \r\n } \r\n } \r\n }\r\n \r\n return luceneQueryPart;\r\n }", "private String getSearchString(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString phrase = null;\n\t\t\n\t\tSystem.out.print(\"Please enter the search phrase: \");\n\t\tphrase = scanner.nextLine();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\treturn phrase;\n\t}", "public void test_extractKeyphrase_A$String() throws Exception {\n\t\tYahooAuctionService target = new YahooAuctionService();\r\n\t\tString text = \"せどり初心者は中古と新品ではどちらが向いているか?\";\r\n\t\tList<String> actual = target.extractKeyphrase(text);\r\n\t\tList<String> expected = null;\r\n\t\tassertEquals(expected, actual);\r\n\t}", "private String keywordFound(){\r\n\t\tString rtn = \"\";\r\n\t\tString tmp = \"\";\r\n\t\tint carr_pos = getCaretPosition();\r\n\t\t//estract part of text for keyword search\r\n\t\ttry { \r\n\t\tif(carr_pos>50)\r\n\t\t\ttmp = doc.getText(carr_pos-50,50);\r\n\t\telse\r\n\t\t\ttmp = doc.getText(0,carr_pos);\r\n\t\t}catch(BadLocationException a){\r\n\t\t\tSystem.out.println(\"exception\");\r\n\t\t\treturn rtn;\r\n\t\t};\r\n\t\t//Start check\r\n\t\tint i = 0;\r\n\t\tif(tmp.length() >= 2)i = tmp.length()-2;\t\r\n\t\twhile(checkOperator(tmp.charAt(i)) && i > 0){\r\n\t\t\trtn += tmp.charAt(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t\tif(i == 0)rtn += tmp.charAt(i);\t\t\r\n\t\treturn mirrorString(rtn);\r\n\t}", "public static void main(String arg[]) {\n String frase1 = \"Había vez circo alegraba el\";\n String frase2 = \"una un que siempre carazón sin temer jamás\";\n String frase3 = \"\";\n\n int inicio1 = 0;\n int fin1 = frase1.indexOf(\" \");\n int inicio2 = 0;\n int fin2 = frase2.indexOf(\" \");\n\n while ((fin1 != -1) || (fin2 != -1)) {\n if (fin1 != -1) {\n frase3 = frase3.concat(frase1.substring(inicio1, fin1 + 1));\n inicio1 = fin1 + 1;\n fin1 = frase1.indexOf(\" \", inicio1);\n }\n if (fin2 != -1) {\n frase3 = frase3.concat(frase2.substring(inicio2, fin2 + 1));\n inicio2 = fin2 + 1;\n fin2 = frase2.indexOf(\" \", inicio2);\n }\n }\n System.out.println(frase3);\n }", "public String getGrammarText();", "@Test(timeout = 4000)\n public void test59() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.\");\n assertEquals(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th book or collect in which th refer appear.\", string0);\n }", "@Test(timeout = 4000)\n public void test58() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The WWW Universal Resource Locator that points to the item being referenced. This often is used for technical reports to point to the ftp site where the postscript source of the report is located.\");\n assertEquals(\"th www univers resourc loc that point to th item being refer. th oft is us for techn report to point to th ftp sit whes th postscript sourc of th report is loc.\", string0);\n }", "private String getSentence(Context context) {\n HttpRequest httpRequest = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(ALBUM_SERVICE_URL + RANDOM.nextInt(100)))\n .setHeader(\"User-Agent\", \"Java 11 HttpClient Bot\")\n .timeout(Duration.ofMillis(1200))\n .build();\n\n try {\n HttpResponse<String> response = HTTP_CLIENT.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n if (response.statusCode() == HTTP_OK) {\n\n AlbumJson albumJson = ALBUM_JSON_PARSER.parse(response.body());\n return \", your sentence of the day: \" + albumJson.getTitle();\n }\n } catch (IOException | InterruptedException e) {\n final LambdaLogger logger = context.getLogger();\n logger.log(\"Error: \" + Arrays.toString(e.getStackTrace()));\n }\n return \"\";\n }", "public void getNounPhrases(Parse p) {\n if (p.getType().equals(\"NN\") || p.getType().equals(\"NNS\") || p.getType().equals(\"NNP\") \n || p.getType().equals(\"NNPS\")) {\n nounPhrases.add(p.getCoveredText()); //extracting the noun parse\n }\n \n if (p.getType().equals(\"VB\") || p.getType().equals(\"VBP\") || p.getType().equals(\"VBG\")|| \n p.getType().equals(\"VBD\") || p.getType().equals(\"VBN\")) {\n \n verbPhrases.add(p.getCoveredText()); //extracting the verb parse\n }\n \n for (Parse child : p.getChildren()) {\n getNounPhrases(child);\n }\n}", "@Override\r\n\tpublic void frases() {\n\t\t\r\n\t\tthis.frase.add(\"Não há que ser forte. Há que ser flexível.\");\r\n this.frase.add(\"Gente todo dia arruma os cabelos, por que não o coração?\");\r\n this.frase.add(\"Há três coisas que jamais voltam; a flecha lançada, a palavra dita e a oportunidade perdida.\");\r\n this.frase.add(\"Melhor pensar alto do que não pensar nada.\");\r\n this.frase.add(\"A juventude não é uma época da vida, é um estado de espírito.\");\r\n this.frase.add(\" Podemos escolher o que semear, mas somos obrigados a colher o que plantamos.\");\r\n this.frase.add(\"Dê toda a atenção para a formação dos teus filhos, sobretudo por exemplos de tua própria vida.\");\r\n \r\n\t\t\r\n\t}", "public void getTerm()\n\t\t{\n\t\t\t//Open SciencePhrases.txt\n\t\t\tFile f1 = new File(\"SciencePhrases.txt\");\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tspIn = new Scanner(f1);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Cannot create SciencePhrases.txt to be written \"\n\t\t\t\t\t\t+ \"to.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\t//Storing term at curTerm in the variables term and picTerm\n\t\t\tString cur = new String(\"\");\n\t\t\tfor(int i = 0; i<curTerm; i++)\n\t\t\t{\n\t\t\t\tterm = \"\";\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tpicTerm = cur;\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\tterm += cur;\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}", "public static void textQueries(List<String> sentences, List<String> queries) {\n // Write your code here\n for(String q: queries){\n boolean a = false;\n int i=0;\n for(String s: sentences){\n if(Arrays.asList(s.split(\" \")).containsAll(Arrays.asList(q.split(\" \")))){\n System.out.print(i+\" \");\n a = true;\n }\n i++;\n }\n if(!a)\n System.out.println(-1);\n else\n System.out.println(\"\");\n }\n \n }", "public void firstSem2a5(){\n chapter = \"firstSem2a5\";\n String firstSem2a5 = \"What about your friend here?\\\" he asks, nodding to \"+student.getRmName()+\". \\\"Oh, I'm good,\\\"\" +\n student.getRmName()+\"says quickly. I already have a job, through the underground Communist...uh, through\" +\n \" the school paper.\\\" You chat with the man a little longer before he excuses himself to go back to the \" +\n \"kitchen.\\tYou and \"+student.getRmName()+\" finish up your dinner and head back. About halfway there, your roommate \" +\n \"stops and peers at you intensely. \\\"Well?\\\" they say.\";\n getTextIn(firstSem2a5);\n }", "private String[] getSearchPhrase(boolean split) {\n return split ? getPhrase().split(\" \") : new String[]{getPhrase()};\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the bok or cllection in which the reference appears.\");\n assertEquals(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\", string0);\n }", "@Test(timeout = 4000)\n public void test51() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"us for alphabes, cros refer, and creat a label when th ``author'' inform is mis. th field should not be confus with th key that appear in th cit command and at th begin of th databas entr.\");\n assertEquals(\"us for alphab, cro refer, and creat a label when th ``author'' inform is mi. th field should not be confus with th key that appear in th cit command and at th begin of th datab entr.\", string0);\n }", "public void process() {\n int secondSpace = songLine.indexOf(' ', (songLine.indexOf(' ') + 1));\n \n if(secondSpace != -1) {\n String firstTwoWords = songLine.substring(0, secondSpace);\n String rest = songLine.substring(secondSpace);\n System.out.printf(\"First two words: %s%n\",firstTwoWords);\n System.out.printf(\"Rest of the words: %s%n\",rest.substring(1));\n }\n \n int thirdSpace = songLine.indexOf(' ', (songLine.indexOf(' ') + 2));\n char firstLetterThirdWord = songLine.charAt(thirdSpace + 1);\n \n int firstOccurance = songLine.indexOf('b');\n \n System.out.printf(\"Length is: %d%n\", songLine.length());\n \n System.out.printf(\"Last character is: %c%n\", songLine.charAt(songLine.length() - 1) );\n \n System.out.printf(\"First letter of the third word: %c%n\",firstLetterThirdWord);\n \n System.out.printf(\"Replaced spaces with x's: %s%n\", songLine.replace(\" \", \"x\"));\n \n System.out.printf(\"Uppercase: %s%n\", songLine.toUpperCase());\n \n System.out.printf(\"Index of first occurence of 'b': %d%n%n\", firstOccurance);\n \n }", "speech.multilang.Params.MultiRecognizerGrammarMatchList.MultiRecognizerGrammarMatch getGrammarMatch(int index);", "public void firstSem10a(){\n chapter = \"firstSem10a\";\n String firstSem10a = \"There's a commotion outside your room - your door looks like it's been smashed down, and your RA is standing outside, looking \" +\n \"distressed. You can hear a shout from inside - your roommate - and sounds of a struggle. \\\"Get in there and help!\\\" you shout to the RA, \" +\n \"but he just shakes his head. \\\"Sorry, I can't. I'm anti-violence. You can't fight hate with hate, you know.\\\"\\tPushing past him, you \" +\n \"run into your room to see your roommate grappling with a large beast. THE beast. It is real. What do you want to do?\";\n getTextIn(firstSem10a);\n }", "public String getKeyword(String word) {\n\t\t/** COMPLETE THIS METHOD **/\n\t\t//strip trailing punctuation\n\t\tint n = 1;\n\t\tString output = \"\";\n\t\tword = word.toLowerCase();\n\t\tint j = 0;\n\t\twhile(j<word.length())\n\t\t{\n\t\t\tif(Character.isLetter(word.charAt(j)))\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//return null;\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t\t\n\t\twhile(n<word.length())\n\t\t{\n\t\t\t\n\t\t\tif( word.charAt(word.length()-n) == '.' ||\n\t\t\t\t\tword.charAt(word.length()-n) == ',' ||\n\t\t\t\t\tword.charAt(word.length()-n) == '?' || \n\t\t\t\t\tword.charAt(word.length()-n) == ':' ||\n\t\t\t\t\tword.charAt(word.length()-n) == ';' ||\n\t\t\t\t\tword.charAt(word.length()-n) == '!' )\n\t\t\t{\n\t\t\t\toutput = word.substring(0, word.length()-n);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn++;\n\t\t}\n\t\tif( !(word.charAt(word.length()-1) == '.' ||\n\t\t\t\tword.charAt(word.length()-1) == ',' ||\n\t\t\t\tword.charAt(word.length()-1) == '?' || \n\t\t\t\tword.charAt(word.length()-1) == ':' ||\n\t\t\t\tword.charAt(word.length()-1) == ';' ||\n\t\t\t\tword.charAt(word.length()-1) == '!' )\n\t\t\t\t)\n\t\t{\n\t\t\toutput = word.substring(0, word.length());\n\t\t}\n\t\t// check if there are only alphanumeric characters\n\t\t\n\t\tArrayList<String> items = new ArrayList<>();\n\t\t\n\t\t\n\t try {\n\t \t\n\t Scanner scanner = new Scanner(new File(\"noisewords.txt\"));\n\t while (scanner.hasNextLine()) {\n\t String line = scanner.nextLine();\n\t items.add(line);\n\t \n\t }\n\t scanner.close();\n\t } catch (FileNotFoundException e) {\n\t e.printStackTrace();\n\t }\n\t int i = 0;\n\t boolean ans = false;\n\t while(i<items.size()) {\n\t\t if(output.equals(items.get(i))) \n\t\t {\n\t\t \tans = true;\n\t\t \tbreak;\n\t\t }\n\t\t else\n\t\t {\n\t\t \t ans = false;\n\t\t }\n\t\t i++;\n\t }\n\t //System.out.println(ans);\n\t if(ans == true)\n\t {\n\t \t return null;\n\t }\n\t /* int a = 0;\n\t\twhile(a<items.size())\n\t\t{\n\t\t\tSystem.out.println(items.get(a));\n\t\t\ta++;\n\t\t}*/\n\t\t// following line is a placeholder to make the program compile\n\t\t// you should modify it as needed when you write your code\n\t\tif(output != null)\n\t\t{\n\t\t\treturn output;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test61() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Usually the address of the publisher or other type of institution. For major publishing houses, van Leunen recommends omitting the information entirely. For small publishers, on the other hand, you can help the reader by giving the complete address.\");\n assertEquals(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you can help th reader by giv th comples addres.\", string0);\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tSystem.out.println(\"Veillez saisir une phrase :\");\n\t\tString phrase = sc.nextLine();\n\t\tSystem.out.println(phrase);\n\t\tSystem.out.println(\"M : \" + phrase.toUpperCase());\n\t\tfor(int i = 0; i < phrase.length(); i++)\n\t\t{\n\t\t\tif(phrase.charAt(i) == 'e')\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(\"C : \" + phrase.length());\n\t\tSystem.out.println(\"Le nombre de 'e' dans la phrase : \" + count);\n\t\tif(count > 0)\n\t\t\tSystem.out.println(\"R : \" + phrase.replace('e', '*'));\n\t}", "void errorPhraseRemoved(Object from, Term thru, Term unexpectedToken);", "@Override\n public void onPartialResult(Hypothesis hypothesis) {\n if (hypothesis == null)\n return;\n\n String text = hypothesis.getHypstr();\n //\n if (text.equals(KEYPHRASE))\n switchSearch(MENU_SEARCH);\n else if (text.equals(DIGITS_SEARCH))\n switchSearch(DIGITS_SEARCH);\n else if (text.equals(ANIMAL_SEARCH))\n switchSearch(ANIMAL_SEARCH);\n else\n ((TextView) findViewById(R.id.result_text)).setText(text);\n }", "public String speak(){\n speechOutput.clear();\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Just speak normally into your phone\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n try {\n startActivityForResult(intent, VOICE_RECOGNITION);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n\n\n return speechResult;\n }", "public void firstSem2a6(){\n chapter = \"firstSem2a6\";\n String firstSem2a6 = \"\\\"Well? Are we friends, like that guy said?\\\"\";\n getTextIn(firstSem2a6);\n }", "@Override\r\n\tprotected void getIntentWord() {\n\t\tsuper.getIntentWord();\r\n\t}", "public String[] ProcessLine(int phraseId, int\tsentenceId, String[] parts,int\tsentimentS){\n int sentiment=sentimentS;\n //phraseStat=new StringStat(phraseS);\n\n\n\n //Count words (uni-grams)\n HashMap<String,Integer> wordcounts=new HashMap<String,Integer>();\n for (int i = 0; i < parts.length; i++) {\n Integer count=wordcounts.get(parts[i]);\n if(count==null){\n wordcounts.put(parts[i],1);\n }\n else{\n count++;\n wordcounts.put(parts[i],count);\n }\n }\n\n /* //Count words (bi-grams)\n for (int i = 0; i < parts.length-1; i++) {\n String bigram=parts[i]+\" \"+parts[i+1];\n Integer count=wordcounts.get(bigram);\n if(count==null){\n wordcounts.put(bigram,1);\n }\n else{\n count++;\n wordcounts.put(bigram,count);\n }\n }*/\n\n //Calculate the frequency for each word\n HashMap<String,Double> wordfequncies=new HashMap<String,Double>();\n Double maxFrequncy=0.0;\n Iterator<String> itr=wordcounts.keySet().iterator();\n while(itr.hasNext()){\n String word=itr.next();\n Double fr=((double)(wordcounts.get(word))/(double)parts.length);\n maxFrequncy=Math.max(maxFrequncy,fr);\n wordfequncies.put(word,fr);\n }\n\n //Add to the word frequency\n itr=wordfequncies.keySet().iterator();\n while(itr.hasNext()) {\n String word = itr.next();\n WordStat ws=wordStats.get(word);\n if(ws==null){\n ws=new WordStat(word);\n }\n else{\n wordStats.remove(word);\n }\n ws.updateStat(sentiment,(0.5*wordfequncies.get(word))/maxFrequncy);\n wordStats.put(word,ws);\n }\n return parts;\n\n }", "public void parseInput(String s){\n\t\tif((sentence[counter]+\" \").contains(s)){\n\t\t\tString setTextStringAfterColor=\"\";\n\t\t\t\n\t\t\t//Logic for user that fixed mistake\n\t\t\tfor(int i=counter;i<sentence.length;i++){\n\t\t\t\tsetTextString+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tfor(int i=counter+1;i<sentence.length;i++){\n\t\t\t\tsetTextStringAfterColor+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tif(sentence.length-counter==1){\n\t\t\t\tprompt.getText().clear();\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t}\n\t\t\telse if((sentence.length-counter>1)){\n\t\t\t\tprompt.getText().clear();\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterColor));\n\t\t\t}\n\t\t\t\n\t\t\t//User submits correct word\n\t\t\tif(s.contains(\" \")&&!(s.equals(null)||s.equals(\" \"))){\n\t\t\t\tcounter++;\n\t\t\t\tfloat now = ((float)counter/(float)sentence.length);\n\t\t\t\tfloat before = (((float)counter-1)/(float)sentence.length);\n\t\t\t\tif (before<0){\n\t\t\t\t\tbefore=0;\n\t\t\t\t}\n\t\t\t\tif (now<0){\n\t\t\t\t\tnow=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Character animation\n\t\t\t\tTranslateAnimation moveLefttoRight = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, before, Animation.RELATIVE_TO_PARENT, now, Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 0);\n\t\t\t moveLefttoRight.setDuration(1000);\n\t\t\t moveLefttoRight.setFillAfter(true);\t\n\t\t\t movingimage.startAnimation(moveLefttoRight);\n\t\t\t\t\n\t\t\t\tcorrectWords++;\n\t\t\t\tuser.increment(\"tokenCount\");\n\t\t\t\tsetTextString=\"\";\n\t\t\t\tsetTextStringAfterColor=\"\";\n\t\t\t\twords.setText((int)correctWords+\" Words\");\n\t\t\t\t//Toast.makeText(Race.this, (user.getInt(\"tokenCount\"))+\"\", Toast.LENGTH_SHORT).show();\n\t\t\t\ttokens.setText(user.getInt(\"tokenCount\")+\"\");\n\t\t\t\tdouble wps = (correctWords/elapsedseconds);\n\t\t\t\twpmcount = (int)(wps*60);\n\t\t\t\tif (wpmcount<150){\n\t\t\t\t\twpm.setText(wpmcount+\" WPM\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twpm.setText(\"Max WPM\");\n\t\t\t\t}\n\t\t\t\tfor(int i=counter;i<sentence.length;i++){\n\t\t\t\t\tsetTextString+=sentence[i]+\" \";\n\t\t\t\t}\n\t\t\t\tfor(int i=counter+1;i<sentence.length;i++){\n\t\t\t\t\tsetTextStringAfterColor+=sentence[i]+\" \";\n\t\t\t\t}\n\t\t\t\tif(sentence.length-counter==1){\n\t\t\t\t\tprompt.getText().clear();\n\t\t\t\t\tinput.getText().clear();\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t\t}\n\t\t\t\telse if((sentence.length-counter>1)){\n\t\t\t\t\tprompt.getText().clear();\n\t\t\t\t\tinput.getText().clear();\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterColor));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttimerHandler.removeCallbacks(timerRunnable);\n\t\t\t\t\tIntent results = new Intent(Race.this, Results.class);\n\t\t\t\t\t\tresults.putExtra(\"level\",level);\n\t\t \t\tresults.putExtra(\"words\", (int)correctWords);\n\t\t \t\tresults.putExtra(\"wpm\", wpmcount);\n\t \tstartActivity(results);\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t//If word user typing is wrong\n\t\telse{\n\t\t\tString setTextStringAfterError=\"\";\n\t\t\tfor(int i=counter;i<sentence.length;i++){\n\t\t\t\tsetTextString+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tfor(int i=counter+1;i<sentence.length;i++){\n\t\t\t\tsetTextStringAfterError+=sentence[i]+\" \";\n\t\t\t}\n\t\t\tif(sentence.length-counter==1){\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#ff0000'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#ff0000'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterError));\n\t\t\t}\n\t\t//If user submits, vibrate and refresh input box\n\t\t\tif(s.contains(\" \")){\n\t\t\t\tVibrator v = (Vibrator) this.getSystemService(Context.VIBRATOR_SERVICE);\n\t\t\t\t v.vibrate(500);\n\t\t\t\tif(sentence.length-counter==1){\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\" -- Press Space to Submit</font>\"));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tprompt.setText(Html.fromHtml(\"<font color='#0000ff'> \"+setTextString.split(\" \")[0].trim()+\"</font> \"+setTextStringAfterError));\n\t\t\t\t}\n\t\t\t\tinput.getText().clear();\n\t\t\t}\n\t\t}\n\t}", "private String processWord(String word){\r\n\t\tString lword = word.toLowerCase();\r\n\t\tfor (int i = 0;i<word.length();++i){\r\n\t\t\tstemmer.add(lword.charAt(i));\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}", "@Override\n\t\tpublic void onResults(ArrayList<RecognizerResult> arg0, boolean arg1) {\n\t\t\ttext+=arg0.get(0).text.toString();\n\t\t}", "public int amountPhrase(boolean split) throws IOException {\n if (StringUtils.isBlank(currentPath)) return 0;\n String sCurrentLine;\n int counter = 0;\n String[] temp_phrase = getSearchPhrase(split);\n while ((sCurrentLine = bufferReader.readLine()) != null) {\n for (String s : temp_phrase) {\n if (StringUtils.containsIgnoreCase(sCurrentLine, s)) {\n counter++;\n break;\n }\n }\n }\n return counter;\n }", "protected boolean processSayTell(String username, String titles, int gameNumber, String message){return false;}", "@Test(timeout = 4000)\n public void test47() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"th sponsor institut of a techn report.uas\");\n assertEquals(\"th spons institut of a techn report.ua\", string0);\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\r\n {\r\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\r\n // go through the results, dump them all to a TextView\r\n ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\r\n String res = matches.get(0);\r\n if (res.contains(\"dance\")) {\r\n speak(\"Did you say dance? That robot over there likes to dance... should I play some music for it?\");\r\n }\r\n else if (res.contains(\"your name\")) {\r\n speak(\"My name is \" + prefs.getString(PREFS_NAME, \"Mrs. Robot\"));\r\n }\r\n else if (res.contains(\"do you like first grade\")) {\r\n speak(\"I love first grade. Reading and Writing and Math are some of my favorites!\");\r\n }\r\n else if (res.contains(\"do you like kindergarten\")) {\r\n speak(\"I think kindergarten is great. I especially love kid writing!\");\r\n }\r\n else if (res.contains(\"what do you know\")) {\r\n speak(\"I don't know very much. Robots aren't as smart as kids.\");\r\n }\r\n else {\r\n speak(\"It sounded like you said \" + res + \". I don't know what that means\");\r\n }\r\n }\r\n else if (requestCode == VOICE_RECOGNITION_REQUEST_CODE) {\r\n speak(\"I didn't understand that... please try again\");\r\n }\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you &an help th reader by giv th comples addres.\");\n assertEquals(\"usu th addr of th publish or other typ of institut. for major publ hous, van leun recommen om th inform entir. for smal publish, on th other hand, you &an help th reader by giv th compl addr.\", string0);\n }", "public String recognizeAuthorSentence(String sentence) \n\t{\n\t\tLanguageModelInterface langM;\n\t\tCollection<LanguageModelInterface> authbis;\n\t\tIterator<LanguageModelInterface> it;\n\t\tDouble prob = 0.0;\n\t\tString author_recognized = UNKNOWN_AUTHOR;\n\n\t\tfor(int i = 0; i < this.authorLangModelsMap.size(); i++)\n\t\t{\n\t\t\tauthbis = this.authorLangModelsMap.get(authors.get(i)).values();\n\t\t\tit = authbis.iterator();\n\t\t\t//System.out.println(authors.get(i));\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tlangM = (NaiveLanguageModel) it.next();\n\t\t\t\t//System.out.println(langM.getSentenceProb(sentence));\n\t\t\t\t//System.out.println(authors.get(i));\n\t\t\t\t\n\t\t\t\tif(prob < langM.getSentenceProb(sentence))\n\t\t\t\t{\n\t\t\t\t\tprob = langM.getSentenceProb(sentence);\n\t\t\t\t\tauthor_recognized = authors.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn author_recognized;\n\t}", "public void computeParagraph(){\r\n\r\n\t\tstrBuff = new StringBuffer();\r\n\r\n\t\t//For else for ER2 rule of inserting the first letter of my last name twice before each consonant\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\r\n\t\t\tif(paragraph.charAt(i) == 'a' || paragraph.charAt(i) == 'e' || paragraph.charAt(i) == 'i'\r\n\t\t\t\t|| paragraph.charAt(i) == 'o' || paragraph.charAt(i) == 'u' || paragraph.charAt(i) == 'A'\r\n\t\t\t\t|| paragraph.charAt(i) == 'E' || paragraph.charAt(i) == 'I' || paragraph.charAt(i) == 'O'\r\n\t\t\t\t|| paragraph.charAt(i) == 'U' || paragraph.charAt(i) == ' ' || paragraph.charAt(i) == '.'\r\n\t\t\t\t|| paragraph.charAt(i) == '!' || paragraph.charAt(i) == '?'){\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\r\n\t\t\telse{\r\n\t\t\t\tstrBuff.append(\"OO\");\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tnewParagraph = strBuff.toString();\r\n\r\n\t\tcount = 0;\r\n\r\n\t\t//For for ER2 rule of counting the number of characters in the initial text excluding the number of vowels\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\t\t\tif(paragraph.charAt(i) != 'a' && paragraph.charAt(i) != 'e' && paragraph.charAt(i) != 'i'\r\n\t\t\t\t&& paragraph.charAt(i) != 'o' && paragraph.charAt(i) != 'u' && paragraph.charAt(i) != 'A'\r\n\t\t\t\t&& paragraph.charAt(i) != 'E' && paragraph.charAt(i) != 'I' && paragraph.charAt(i) != 'O'\r\n\t\t\t\t&& paragraph.charAt(i) != 'U'){\r\n\t\t\t\t\tcount++;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"usu th addres of th publishes or other typ of institut. for major publish hous, van leun recommens omis th inform entir. for smal publishes, on th other hand, you can help th reader by giv th comples addres.\");\n assertEquals(\"usu th addr of th publish or other typ of institut. for major publ hous, van leun recommen om th inform entir. for smal publish, on th other hand, you can help th reader by giv th compl addr.\", string0);\n }", "public void addPhrase(String phrase) {\n this.phrases.add(phrase);\n }", "private int getResult(HashMap<Integer, String> probSuffix, Prefix prefix, LinkedList<String> text, int count) {\n\n\t\tif (probSuffix.isEmpty()) {\n\t\t\tif (debug) {\n\t\t\t\tSystem.out.println(\"DEBUG: successors: <END OF FILE>\");\n\t\t\t}\n\t\t\tcurrPrefix = prefix.findRandomPrefix();\n\t\t\tprefixArr = currPrefix.split(\"\\\\s\");\n\t\t\ttext.clear();\n\t\t\tfor (int k = 0; k < prefixArr.length; k++) {\n\t\t\t\ttext.add(prefixArr[k]);\n\t\t\t}\n\t\t} else {\n\t\t\tif (debug) {\n\t\t\t\tSystem.out.println(\"DEBUG: successors: \" + probSuffix.toString());\n\t\t\t}\n\t\t\tint pick = random.nextInt(probSuffix.size());\n\t\t\tresult += probSuffix.get(pick) + \" \";\n\t\t\tif (debug) {\n\t\t\t\tSystem.out.println(\"DEBUG: word generated: \" + probSuffix.get(pick));\n\t\t\t}\n\t\t\ttext.add(probSuffix.get(pick));\n\t\t\ttext.removeFirst();\n\t\t\tcurrPrefix = \"\";\n\t\t\tint k = 0;\n\t\t\tfor (String p : text) {\n\t\t\t\tif (k == text.size() - 1) {\n\t\t\t\t\tcurrPrefix += p;\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tcurrPrefix += p + \" \";\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (debug) {\n\t\t\t\tSystem.out.println(\"prefix: \" + currPrefix);\n\t\t\t}\n\t\t\tprefixArr = currPrefix.split(\"\\\\s\");\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The name of a series or set of books. When citing an entire book, the the title field gives its title and an optional series field gives the name of a series or multi-volume set in which the book is published.\");\n assertEquals(\"th nam of a ser or ses of book. when cit an entir book, th th titl field giv it titl and an opt ser field giv th nam of a ser or mult-volum ses in which th book is publ.\", string0);\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"/{Q_hANGGS[za*\");\n assertEquals(\"/{q_hang[za*\", string0);\n }", "private void checkTextAnnotation(MGraph g, UriRef textAnnotation, String content) {\n Iterator<Triple> selectedTextIterator = g.filter(textAnnotation,\n Properties.ENHANCER_SELECTED_TEXT, null);\n // check if the selected text is added\n assertTrue(selectedTextIterator.hasNext());\n // test if the selected text is part of the TEXT_TO_TEST\n Resource object = selectedTextIterator.next().getObject();\n assertTrue(object instanceof Literal);\n Literal selectedText = (Literal)object;\n object = null;\n assertTrue(content.indexOf(selectedText.getLexicalForm()) >= 0);\n // test if context is added\n //context not present for Zemanta\n// Iterator<Triple> selectionContextIterator = g.filter(textAnnotation,\n// Properties.ENHANCER_SELECTION_CONTEXT, null);\n// assertTrue(selectionContextIterator.hasNext());\n// // test if the selected text is part of the TEXT_TO_TEST\n// object = selectionContextIterator.next().getObject();\n// assertTrue(object instanceof Literal);\n// assertTrue(content.indexOf(((Literal)object).getLexicalForm()) >= 0);\n// object = null;\n //test start/end if present\n Iterator<Triple> startPosIterator = g.filter(textAnnotation,\n ENHANCER_START, null);\n Iterator<Triple> endPosIterator = g.filter(textAnnotation,\n ENHANCER_END, null);\n //start end is optional, but if start is present, that also end needs to be set\n if(startPosIterator.hasNext()){\n Resource resource = startPosIterator.next().getObject();\n //only a single start position is supported\n assertTrue(!startPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral startPosLiteral = (TypedLiteral) resource;\n resource = null;\n int start = LiteralFactory.getInstance().createObject(Integer.class, startPosLiteral);\n startPosLiteral = null;\n //now get the end\n //end must be defined if start is present\n assertTrue(endPosIterator.hasNext());\n resource = endPosIterator.next().getObject();\n //only a single end position is supported\n assertTrue(!endPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral endPosLiteral = (TypedLiteral) resource;\n resource = null;\n int end = LiteralFactory.getInstance().createObject(Integer.class, endPosLiteral);\n endPosLiteral = null;\n //check for equality of the selected text and the text on the selected position in the content\n //System.out.println(\"TA [\"+start+\"|\"+end+\"]\"+selectedText.getLexicalForm()+\"<->\"+content.substring(start,end));\n assertTrue(content.substring(start, end).equals(selectedText.getLexicalForm()));\n } else {\n //if no start position is present, there must also be no end position defined\n assertTrue(!endPosIterator.hasNext());\n }\n }", "private void translate(String input)\r\n/* 270: */ {\r\n/* 271:229 */ if (input.trim().isEmpty())\r\n/* 272: */ {\r\n/* 273:230 */ Mark.err(new Object[] {\"IMPACT produced nothing to translate\" });\r\n/* 274:231 */ return;\r\n/* 275: */ }\r\n/* 276:233 */ this.things.clear();\r\n/* 277:234 */ this.triples.clear();\r\n/* 278:235 */ this.previousTriple = null;\r\n/* 279:236 */ this.previousTriples.clear();\r\n/* 280: */ \r\n/* 281:238 */ String[] sentences = input.trim().split(\"\\\\)\\\\.\");\r\n/* 282:240 */ for (String s : sentences)\r\n/* 283: */ {\r\n/* 284:241 */ s = s.trim();\r\n/* 285:242 */ Mark.say(new Object[] {\"Sentence:\", s });\r\n/* 286: */ try\r\n/* 287: */ {\r\n/* 288:244 */ String[] parts = s.split(\"\\\\(\");\r\n/* 289:245 */ ThingTimeTriple triple = constructGenesisAction(parts[0].trim(), parts[1].trim());\r\n/* 290:246 */ this.triples.add(triple);\r\n/* 291:247 */ this.tripleList.clear();\r\n/* 292:248 */ this.tripleList.addAll(this.triples);\r\n/* 293: */ }\r\n/* 294: */ catch (Exception e)\r\n/* 295: */ {\r\n/* 296:252 */ Mark.say(new Object[] {\"Blew out trying to process IMPACT result,\", s });\r\n/* 297: */ \r\n/* 298:254 */ e.printStackTrace();\r\n/* 299: */ }\r\n/* 300: */ }\r\n/* 301: */ }" ]
[ "0.6667965", "0.66552764", "0.6628858", "0.6556502", "0.6485168", "0.64203656", "0.6357364", "0.6329103", "0.62890387", "0.6083328", "0.6000949", "0.5999782", "0.5988895", "0.59172994", "0.5881068", "0.5866819", "0.5831224", "0.58128166", "0.5806798", "0.57923853", "0.57801235", "0.5775546", "0.5754778", "0.57541335", "0.57516664", "0.5742576", "0.57192457", "0.5696109", "0.5695516", "0.5671741", "0.5660019", "0.5655484", "0.56489414", "0.5646845", "0.5636818", "0.5635066", "0.5630699", "0.56245244", "0.56227154", "0.56105506", "0.5603392", "0.5600504", "0.55966747", "0.5593233", "0.55903405", "0.55861944", "0.5561942", "0.5558157", "0.55316967", "0.5525882", "0.5519976", "0.5497094", "0.5492503", "0.5486785", "0.5477505", "0.5476263", "0.5473792", "0.5470451", "0.5469837", "0.54666066", "0.5465085", "0.54641366", "0.5462368", "0.54562926", "0.54516697", "0.54488325", "0.5442179", "0.54246", "0.5424368", "0.5422608", "0.5422342", "0.54189587", "0.5417382", "0.5415364", "0.5415125", "0.54079014", "0.5405481", "0.54003406", "0.5394457", "0.5391241", "0.53896874", "0.53837025", "0.53808135", "0.537411", "0.5372912", "0.5366819", "0.53544796", "0.5353818", "0.5352742", "0.5345652", "0.5345169", "0.5340029", "0.5333386", "0.5331515", "0.53111386", "0.53106815", "0.5301286", "0.52935386", "0.5282365", "0.52726966", "0.5271007" ]
0.0
-1
TODO Autogenerated method stub
@Override public Category getCategoryById(String id) { Session session = sessionFactory.openSession(); session.beginTransaction(); int catId = Integer.parseInt(id); Query query = session.getNamedQuery(Category.GET); query.setInteger("id", catId); Category category = (Category) query.uniqueResult(); session.getTransaction().commit(); session.close(); return category; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This method is needed to add the necessary values when drawing the threshold graphs TODO: Refactor this away as soon as possible.
private void addThreshold(AbstractThreshold threshold, HashMap<StatusCategory, Number> tholds) { if (threshold instanceof ProjectComplianceThreshold) { tholds.put(StatusCategory.ProjectCompliance, ((ProjectComplianceThreshold) threshold).value); } else if (threshold instanceof FileComplianceThreshold) { tholds.put(StatusCategory.FileCompliance, ((FileComplianceThreshold) threshold).value); } else { tholds.put(StatusCategory.Messages, ((MessageComplianceThreshold) threshold).value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\tif (threshold < 1.5f)\n\t\t\tthreshold = 1.5f;\n\t}", "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "void doThreshDisplay(){\n\t /// init colors\n\t int greenFill = color(125,125,0, 65);\n\t int redFill = color(255,0,0,65);\n\t int blueFill = color(0,0,255, 85);\n\t //\n\t float spacing = 15;\n\t // \n\t textFont(SanSerif);\n\t /// hint(ENABLE_NATIVE_FONTS) ;\n\t \n\t /// position\n\t float dPosY3 = 0-height/2;\n\t float dPosY2 = 0-height/2 + spacing;\n\t float dPosY1 = 0-height/2 + spacing + spacing;\n\t \n\t /// make the text flush with the display bar\n\t float dPosX3 = 0-width/2 + (threshold3 * .5f) + 10f;\n\t float dPosX2 = 0-width/2 + (threshold2 * .5f) + 10f;\n\t float dPosX1 = 0-width/2 + (threshold1 * .5f) + 10f;\n\t \n\t // thresh 3 -- green squares\n\t strokeWeight(1);\n\t \n\t fill(greenFill);\n\t stroke(64,208,0);\n\t rect(0-width/2, dPosY3, threshold3 * .5f, 10f);\n\t fill(255,255,0);\n\t text(\"BACKGROUND: \" + threshold3 * .5, dPosX3, dPosY3 + 10);\n\t \n\t \n\t /// thresh 2 -- red circles\n\t fill(redFill);\n\t stroke(204,0,0);\n\t /// rotate(-15);\n\t rect(0-width/2,dPosY2, threshold2 * .5f, 10f);\n\t fill(204,0,0);\n\t text(\"MIDDLEGROUND: \" + threshold2 * .5f, dPosX2, dPosY2 + 10f);\n\t \n\t //// thresh 1 -- blue triangles\n\t fill(blueFill);\n\t stroke(0,24,255);\n\t /// rotate(-15);\n\t rect(0-width/2, dPosY1, threshold1 * .5f, 10f);\n\t fill(0,24,255);\n\t text(\"FOREGROUND: \" + threshold1 * .5, dPosX1, dPosY1 + 10);\n\t \n\t \n\n\n\t}", "public void analyzeData(){\n\t\tlinewidth = rt.getValue(\"Mean\", 1) - rt.getValue(\"Mean\", 0);\n\t\tRMS_edge_roughness = Math.sqrt((Math.pow(rt.getValue(\"StdDev\", 1), 2) + Math.pow(rt.getValue(\"StdDev\", 0), 2))/2); // this is the correct form\n\t\tif(rt.getValue(\"Max\",1) - rt.getValue(\"Min\", 1) > rt.getValue(\"Max\", 0) - rt.getValue(\"Min\", 0)){\n\t\t\tpkpk_edge_roughness = rt.getValue(\"Max\", 1) – rt.getValue(\"Min\", 1);\n\t\t}\n\t\telse{\n\t\t\tpkpk_edge_roughness = (rt.getValue(\"Max\", 0) – rt.getValue(\"Min\", 0));\n\t\t}\n\t\treturn;\n\t}", "void setThreshold(float value);", "private void drawBackground(Canvas canvas) {\n if (resourceHelper == null || settingsHelper == null) return;\n \n paint.setStrokeWidth(0);\n paint.setStyle(Paint.Style.FILL);\n \n int lastThreshold = top;\n \n for (MeasurementLevel measurementLevel : new MeasurementLevel[]{MeasurementLevel.HIGH, MeasurementLevel.MID, MeasurementLevel.LOW}) {\n paint.setColor(resourceHelper.getGraphColor(measurementLevel));\n int threshold = settingsHelper.getThreshold(sensor, measurementLevel);\n \n canvas.drawRect(0, project(lastThreshold), getWidth(), project(threshold), paint);\n lastThreshold = threshold;\n }\n \n paint.setColor(resourceHelper.getGraphColor(MeasurementLevel.VERY_LOW));\n canvas.drawRect(0, project(lastThreshold), getWidth(), getHeight(), paint);\n }", "void setParameters(){\n highT = 192;\n lowT = 64;\n histImage = null;\n parameters = new JFrame(name);\n panel = new JPanel();\n panelLayout = new GridBagLayout();\n panelCon = new GridBagConstraints();\n histPanel = new JPanel();\n topPanel = new JPanel();\n midPanel = new JPanel();\n bottomPanel = new JPanel();\n\n //Create and add the components to the panels\n lowLabel = new JLabel(\"Low Threshold\");\n lowBox = new JTextField(5);\n lowBox. setText(\"64\");\n lowBox. addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent evt){\n\ttry{\n\t int val = Integer. valueOf (lowBox. getText()). intValue();\n\t if(val >= 0 && val <= 255){\n\t lowSlider. setValue(val);\n\t }\n\t else{\n\t JOptionPane.showMessageDialog(null,(\"Threshold must lie between 0 and 255\"),\n\t\t\t\t\t (\"Error!\"), JOptionPane.WARNING_MESSAGE); \n\t lowSlider. setValue(64);\n\t lowBox. setText(\"64\");\n\t }\n\t updateThreshold(lowSlider. getValue(), highSlider. getValue()); \n\t}\n\tcatch(NumberFormatException e){\n\t JOptionPane.showMessageDialog(null,(\"Invalid threshold specified\"),\n\t\t\t\t\t(\"Error!\"), JOptionPane.WARNING_MESSAGE); \n\t} \n }\n });\n lowSlider = new JSlider(JSlider.HORIZONTAL, 0, 255, 64);\n lowSlider. setMajorTickSpacing(50);\n lowSlider. setMinorTickSpacing(5);\n lowSlider. setPaintTicks(true);\n lowSlider. setPaintLabels(true);\n lowSlider. addChangeListener(new ChangeListener(){\n public void stateChanged(ChangeEvent evt) {\n //Do the slider change operations\n lowBox. setText(String. valueOf(lowSlider. getValue()));\n updateThreshold(lowSlider. getValue(), highSlider. getValue()); \n }\n });\n topPanel. add(lowLabel);\n topPanel. add(lowBox);\n topPanel. add(lowSlider);\n\n highLabel = new JLabel(\"High Threshold\");\n highBox = new JTextField(5);\n highBox. setText(\"192\");\n highBox. addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent evt){\n\ttry{\n\t try {\n\t val = Integer. valueOf (highBox. getText()). intValue();\n\t }\n\t \tcatch(NumberFormatException e){\n\t JOptionPane.showMessageDialog(null,(\"Invalid threshold specified\"),(\"Error!\"), JOptionPane.WARNING_MESSAGE);\n\t\t} \n\t if(val >= 0 && val <= 255){\n\t highSlider. setValue(val);\n\t }\n\t else{\n\t JOptionPane.showMessageDialog(null,(\"Threshold must lie between 0 and 255\"),\n\t\t\t\t\t (\"Error!\"), JOptionPane.WARNING_MESSAGE); \n\t highSlider. setValue(192);\n\t highBox. setText(\"192\");\n\t }\n\t updateThreshold(lowSlider. getValue(), highSlider. getValue()); \n\t}\n\tcatch(NumberFormatException e){\n\t JOptionPane.showMessageDialog(null,(\"Invalid threshold specified\"),\n\t\t\t\t\t(\"Error!\"), JOptionPane.WARNING_MESSAGE); \n\t} \n }\n });\n highSlider = new JSlider(JSlider.HORIZONTAL, 0, 255, 192);\n highSlider. setMajorTickSpacing(50);\n highSlider. setMinorTickSpacing(5);\n highSlider. setPaintTicks(true);\n highSlider. setPaintLabels(true);\n highSlider. addChangeListener(new ChangeListener(){\n public void stateChanged(ChangeEvent evt) {\n //Do the slider change operations\n highBox. setText(String. valueOf(highSlider. getValue()));\n updateThreshold(lowSlider. getValue(), highSlider. getValue());\n }\n });\n midPanel. add(highLabel);\n midPanel. add(highBox);\n midPanel. add(highSlider);\n\n applyButton = new JButton(\"Apply\");\n applyButton. addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n\tdothresh();\n }\n });\n bottomPanel. add(applyButton);\n\n //Add the panels to the main panel\n panel. setLayout(panelLayout);\n\n panelCon. gridx = 0;\n panelCon. gridy = 0;\n panelLayout. setConstraints(topPanel, panelCon);\n panel. add(topPanel);\n \n panelCon. gridx = 0;\n panelCon. gridy = 1;\n panelLayout. setConstraints(midPanel, panelCon);\n panel. add(midPanel);\n \n panelCon. gridx = 0;\n panelCon. gridy = 2;\n panelLayout. setConstraints(bottomPanel, panelCon);\n panel. add(bottomPanel);\n \n rescaleLabel = new JLabel(\"New maximum for histogram scaling:\");\n rescaleText = new JTextField(6);\n rescaleText. setText(\"-1\");\n rescalePanel = new JPanel();\n //rescalePanel.setLayout(new BorderLayout());\n rescalePanel.add(rescaleLabel);\n rescalePanel.add(rescaleText);\n JButton rescaleButton = new JButton(\"Scale\");\n rescalePanel.add(rescaleButton);\n rescaleButton. addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n\tscale();\n }\n });\n\n //Add the main panel\n parameters.getContentPane().add(panel);\n parameters.pack();\n parameters.setVisible(false);\n }", "private void createGlobalStatsTable(int threshold) \r\n\t{\r\n\t\tTableData statsTable = new TableData(9);\r\n\r\n\t\tMap<Integer,IGlobalStats> globalStatsMap = model.getGlobalStats();\r\n\r\n\t\tfor (int key:globalStatsMap.keySet()) \r\n\t\t{\r\n\t\t\t// La global de todos los nodos tiene que heredar de SimpleGlobalStats para que se muestre\r\n\t\t\tIGlobalStats aux = globalStatsMap.get(key);\r\n\r\n\t\t\tif (!(aux instanceof SimpleGlobalStats)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSimpleGlobalStats stats = (SimpleGlobalStats)aux;\r\n\r\n\t\t\tString obj = stats.getName(model.getMethodNames());\r\n\t\t\tif (obj==null) {\r\n\t\t\t\tint h=1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString nodeName = Names.getDigestedName(stats.getName(model.getMethodNames()), true);\r\n\t\t\tString nodeType = stats.getTypeName();\r\n\r\n\t\t\tfloat referenceTime = stats.getAvgTotTime();\r\n\r\n\t\t\tif (referenceTime>=threshold) {\r\n\t\t\t\t// \"Name\", \"Type\", \"Count\", \"Avg. Total Time\", \"Min. Total Time\", \"Max. Total Time\", \"Avg. Ex. Time\", \"Min. Ex. Time\", \"Max. Ex. Time\" \r\n\t\t\t\tDecimalFormat dec = new DecimalFormat();\r\n\t\t\t\tdec.setMinimumFractionDigits(2);\r\n\t\t\t\tdec.setMaximumFractionDigits(2);\r\n\r\n\t\t\t\tstatsTable.addRow(stats.getId(), nodeName, nodeType, stats.getInvCount(),stats.getAvgTotTime(), stats.getMinTotTime(), stats.getMaxTotTime(), stats.getAvgExTime(),stats.getMinExTime(), stats.getMaxExTime());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tresultsTabbedPanel.setStatisticsData(statsTable);\r\n\t}", "public void setThreshold(float threshold){\n this.threshold = threshold;\n }", "float getThreshold();", "public void findEdgesAndThreshold() {\n\t\tActiveImageConverter.convertToGray16();\n\t\tContrastEnhancer enhancer = new ContrastEnhancer();\n\t\tenhancer.equalize(ActiveImage);\n\t\tActiveImageProcessor = ActiveImage.getProcessor();\n\t\tActiveImageProcessor.findEdges();\n\t\tActiveImageProcessor.sqr(); // turns the gradient into gradient squared\n\t\tActiveImageProcessor.sqr(); // further enhances the good edges\n\t\tenhancer.equalize(ActiveImage);\n\t\tdouble mean = ActiveImage.getStatistics().mean;\n\t\tdouble max = ActiveImage.getStatistics().max;\n\t\tActiveImageProcessor.setThreshold(mean*8,max,ActiveImageProcessor.OVER_UNDER_LUT);\n\t\tif(userInput)\n\t\t{\n\t\t\tIJ.run(ActiveImage,\"Threshold...\",\"\");\n\t\t\tnew WaitForUserDialog(\"OK\").show();\n\t\t\tif (WindowManager.getWindow(\"Threshold\")!= null){\n\t\t\t\tIJ.selectWindow(\"Threshold\");\n\t\t\t\tIJ.run(\"Close\"); \n\t\t\t}\n\t\t}\n\t\tIJ.run(ActiveImage,\"Convert to Mask\",\"\");\n\t\tIJ.run(ActiveImage,\"Skeletonize\",\"\");\n\t\treturn;\n\t}", "public void paint(Graphics graphics) {\n setBackground(Color. gray);\n super. paint(graphics);\n graphics. setColor(Color.red);\n graphics. drawLine(highthresh, 1, highthresh, 256);\n graphics. setColor(Color. green);\n graphics. drawLine(lowthresh, 1, lowthresh , 256);\n graphics.setColor(Color.white);\n\n // Vertical line\n graphics.setColor(Color.red);\n graphics.drawLine(0,0,0,255);\n graphics.drawLine(0,0,10,0);\n graphics.drawLine(0,64,5,64);\n graphics.drawLine(0,128,10,128);\n graphics.drawLine(0,192,5,192);\n graphics.drawLine(0,256,10,256);\n int a = 0;\n int b = hvalue/4;\n int c = b+b;\n int d = b+c;\n int e = hvalue;\n graphics.drawString(Integer.toString(e),0,15);\n //graphics.drawString(Integer.toString(d),0,74);\n graphics.drawString(Integer.toString(c),10,140);\n //graphics.drawString(Integer.toString(b),0,202);\n graphics.drawString(Integer.toString(a),5,250);\n\n // Horizontal line \n graphics.setColor(Color.red);\n graphics.drawLine(0,255,255,255);\n graphics.drawLine(0,255,0,245);\n graphics.drawLine(64,255,64,250);\n graphics.drawLine(128,255,128,245);\n graphics.drawLine(192,255,192,250);\n graphics.drawLine(256,255,256,245);\n int aa = 0;\n int bb = wvalue/4;\n int cc = bb+bb;\n int dd = bb+cc;\n int ee = wvalue;\n graphics.drawString(Integer.toString(aa),5,240);\n //graphics.drawString(Integer.toString(bb),58,240);\n graphics.drawString(Integer.toString(cc),123,240);\n //graphics.drawString(Integer.toString(dd),180,240);\n graphics.drawString(Integer.toString(ee),230,240);\n }", "protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }", "public void checkThreshold() {\n List<Metric> metrics = getMetrics();\n boolean isFail = false;\n for (Iterator<Metric> mit = metrics.iterator(); mit.hasNext();) {\n Metric m = (Metric) mit.next();\n logMetric(m);\n if (m.getResult() == MetricResult.METRIC_FAIL\n || m.getResult() == MetricResult.METRIC_NOTRUN) {\n isFail = true;\n }\n // Update the threshold when the metrics is success. or the metrics\n // is no need to check\n if (m.getResult() == MetricResult.METRIC_SUCCESS\n || m.getResult() == MetricResult.METRIC_NOCHECK\n || m.getResult() == MetricResult.METRIC_NULL) {\n try {\n updateThreshold(m.getName(), m.getNewValue());\n } catch (Exception e) {\n // TODO: should we throw other exception when failed to\n // update threshold?\n isFail = true;\n }\n }\n }\n if (isFailOnError() && isFail) {\n throw new BuildException(\"Metics check failed\");\n }\n }", "public void refresh() {\r\n numberThreshold = hasNumberThreshold();\r\n dateThreshold = hasDateThreshold();\r\n }", "public void updateChart() {\n\t\tdouble val_min = Double.MAX_VALUE;\n\t\tdouble val_max = -Double.MAX_VALUE;\n\t\tVector<CurveData> cdV = new Vector<CurveData>();\n\n\t\tint maxMarkLength = 1;\n\t\tint nClmns = barColumns.size();\n\t\tint nMaxLines = 0;\n\t\tfor ( final BarColumn bc : barColumns ) {\n\t\t\tif (bc.show()) {\n\t\t\t\tfor (int j = 0; j < bc.size(); j++) {\n\t\t\t\t\tif (val_min > bc.value(j)) {\n\t\t\t\t\t\tval_min = bc.value(j);\n\t\t\t\t\t}\n\t\t\t\t\tif (val_max < bc.value(j)) {\n\t\t\t\t\t\tval_max = bc.value(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (nMaxLines < bc.size()) {\n\t\t\t\tnMaxLines = bc.size();\n\t\t\t}\n\t\t\tif (maxMarkLength < bc.marker().length()) {\n\t\t\t\tmaxMarkLength = bc.marker().length();\n\t\t\t}\n\t\t}\n\n\t\tString tmp_str = \"\";\n\t\tfor (int i = 0; i < maxMarkLength; i++) {\n\t\t\ttmp_str = tmp_str + \" \";\n\t\t}\n\t\temptyStr = tmp_str;\n\n\t\t//System.out.println(\"debug =========== val_min=\" + val_min + \" val_max=\" + val_max);\n\n\t\tif (val_min * val_max > 0.) {\n\t\t\tif (val_min > 0.) {\n\t\t\t\tval_min = 0.;\n\t\t\t} else {\n\t\t\t\tval_max = 0.;\n\t\t\t}\n\t\t}\n\n\t\tint iMin = GP.getScreenX(GP.getCurrentMinX());\n\t\tint iMax = GP.getScreenX(GP.getCurrentMaxX());\n\t\t//System.out.println(\"debug iMin=\" + iMin + \" iMax=\" + iMax);\n\t\twidth = (int) ((iMax - iMin) / (1.9 * nMaxLines * nClmns));\n\t\t//System.out.println(\"debug width=\" + width);\n\t\tif (width < 1) {\n\t\t\twidth = 1;\n\t\t}\n\n\t\t//make line from\n\t\tCurveData cd = cvV.get(0);\n\t\tif (nClmns > 0) {\n\t\t\tcd.clear();\n\t\t\tcd.addPoint(0., 0.);\n\t\t\tcd.addPoint(1.0 * (nClmns + 1), 0.);\n\t\t\tcd.setColor(Color.black);\n\t\t\tcd.setLineWidth(1);\n\t\t\tcd.findMinMax();\n\t\t\tcdV.add(cd);\n\t\t}\n\n\t\tint cvCount = 1;\n\t\tfor (int i = 1; i <= nClmns; i++) {\n\t\t\tBarColumn bc = barColumns.get(i - 1);\n\t\t\tif (bc.show()) {\n\t\t\t\tdouble d_min = i - 0.35;\n\t\t\t\tdouble d_max = i + 0.35;\n\t\t\t\tint nL = bc.size();\n\t\t\t\tdouble st = (d_max - d_min) / nL;\n\t\t\t\tfor (int j = 0; j < nL; j++) {\n\t\t\t\t\tif (bc.show(j)) {\n\t\t\t\t\t\tif(cvCount < cvV.size()){\n\t\t\t\t\t\t\tcd = cvV.get(cvCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcd = new CurveData();\n\t\t\t\t\t\t\tcvV.add(cd);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcd.clear();\n\t\t\t\t\t\tcd.addPoint(d_min + (j + 0.5) * st, 0.);\n\t\t\t\t\t\tcd.addPoint(d_min + (j + 0.5) * st, bc.value(j));\n\t\t\t\t\t\tcd.setLineWidth(width);\n\t\t\t\t\t\tif (bc.getColor(j) == null) {\n\t\t\t\t\t\t\tcd.setColor(bcColor.getColor(j));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcd.setColor(bc.getColor(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcd.findMinMax();\n\t\t\t\t\t\tcdV.add(cd);\n\t\t\t\t\t\tcvCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//System.out.println(\"debug ===========start plotting=============== nClmns= \" + nClmns);\n\t\tif (val_min < val_max) {\n\t\t\tformatter.makeAnalysis(val_min, val_max);\n\t\t\tGP.setNumberFormatY(formatter.getFormat());\n\t\t\tGP.setLimitsAndTicksY(formatter.getMin(), formatter.getMax(), formatter.getStep());\n\t\t}\n\n\t\tif (barColumns.size() >= 10) {\n\t\t\tGP.getCurrentGL().setXminOn(false);\n\t\t\tGP.getCurrentGL().setXmaxOn(false);\n\t\t}\n\n\t\tif (cdV.size() > 0) {\n\t\t\tGP.setCurveData(cdV);\n\t\t} else {\n\t\t\tGP.removeAllCurveData();\n\t\t}\n\t}", "@AbstractCustomGlobal.GlobalMethod(menuText=\"Set Threshold Probability\")\n public void setThreshold() {\n if(Tools.getGlobalTime()!=0){\n JOptionPane.showMessageDialog(null, \"You can change this probability only when the simulation start\",\"Alert\", JOptionPane.INFORMATION_MESSAGE);\n return;\n }\n String answer = JOptionPane.showInputDialog(null, \"Set the probability that a node can be selected to run.\");\n // Show an information message\n try{\n double k = Double.parseDouble(answer);\n Iterator<Node> it = Tools.getNodeList().iterator();\n while(it.hasNext()){\n Node n = it.next();\n if(n.getClass() == MSNode.class){\n MSNode n1 = (MSNode)n;\n n1.setThresholdProbability(k);\n }\n if(n.getClass() == MS2Node.class){\n MS2Node n1 = (MS2Node)n;\n n1.setThresholdProbability(k);\n }\n }\n JOptionPane.showMessageDialog(null, \"Well done you have set this value:\"+k,\"Notice\", JOptionPane.INFORMATION_MESSAGE);\n }catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null, \"You must insert a valid double \", \"Alert\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "public void setThreshold(double t)\n {\n this.threshold = t;\n }", "@Test\n public void test82() throws Throwable {\n WaterfallBarRenderer waterfallBarRenderer0 = new WaterfallBarRenderer();\n SystemColor systemColor0 = SystemColor.textInactiveText;\n Line2D.Double line2D_Double0 = new Line2D.Double();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.setAnchorValue(0.0, false);\n }", "private void drawLowPrices(Graphics g , int contentHeight) {\n // declare local variables:\n int buffer;\n int actualBars;\n int dataMinimum;\n int heightDifference;\n int lowPrices[];\n int dataArray[];\n double scale;\n // end of local variables declaration\n\n\n // check fro logical error\n if(data == null) {\n // exit from method\n return;\n } // end of if statement\n\n // check for logical error\n if(data.getLowPrices() == null || data.getLowPrices().length < 2) {\n // exit from method\n return;\n } // end of if statement\n\n // find the data minimum\n dataMinimum = ChartData.getMinimum(data.getLowPrices(bars));\n\n // resolve the data array\n lowPrices = data.getLowPrices(bars);\n dataArray = new int[lowPrices.length];\n System.arraycopy(lowPrices, 0, dataArray, 0, lowPrices.length);\n\n // resolve the actual bars\n actualBars = dataArray.length;\n\n // find the heightDifference\n heightDifference = ChartData.getMaximum(data.getLowPrices(bars)) - dataMinimum;\n\n // check if the heightDifference is too big and reduce it\n buffer = heightDifference / 50;\n if( buffer > 0) {\n heightDifference = heightDifference / buffer;\n } // end of if statement\n\n //\n for(int c = 0; c < actualBars; c++) {\n //\n dataArray[c] = dataArray[c] - dataMinimum;\n } // end of for loop;\n\n //\n if(buffer > 0) {\n //\n for(int c=0; c < actualBars; c++) {\n //\n dataArray[c] = dataArray[c] / buffer;\n } // end of for loop\n\n } // end of if statement\n\n\n // resolve the scale\n scale = contentHeight / heightDifference;\n\n // select color\n g.setColor(format.getLowPricesColor());\n\n // main drawing loop\n for(int c = 0; c < actualBars -1 ; c++) {\n //\n g.drawLine(getWidth()-textAreaLenght-c*barLenght,\n getHeight()- 30 - (int) Math.round(dataArray[c]*scale),\n getWidth()-textAreaLenght- ( (c+1)*barLenght ),\n getHeight()- 30 - (int) Math.round(dataArray[c+1]*scale));\n } // end of for loop\n\n }", "public int getThreshold() {\n return threshold; \n }", "private void setBarValues() {\n\t\t// Get highest value\n\t\tint iMax = 0;\n\t\tdouble dMax = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (dMax < a[i]) {\n\t\t\t\tiMax = i;\n\t\t\t\tdMax = a[i];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t// Highlight leading alternative\n\t\t\tif (i == iMax)\n\t\t\t\talternativeBarComponents[i].doUpdate(a[i], SWT.NORMAL);\n\t\t\telse\n\t\t\t\talternativeBarComponents[i].doUpdate(a[i], SWT.PAUSED);\n\t\t}\n\t}", "protected void calcMinMax() {\n }", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\treturn \"Threshold:\"+t+\"\\tMat:[\"+src.rows()+\",\"+src.cols()+\":\"+src.channels()+\"]\";\r\n\t\t}", "double getLowerThreshold();", "@Test\n public void test35() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(67.227245, 67.227245, 67.227245, 0.18);\n line2D_Double0.setLine((-1200.58567454322), (-329.479065), (-238.92597), 90.0);\n line2D_Double0.x1 = 50.0;\n double double0 = line2D_Double0.getY1();\n NumberAxis numberAxis0 = new NumberAxis(\"\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n StackedAreaRenderer stackedAreaRenderer0 = new StackedAreaRenderer();\n combinedRangeCategoryPlot0.setRenderer((CategoryItemRenderer) stackedAreaRenderer0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(50.0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n PlotOrientation plotOrientation0 = thermometerPlot0.getOrientation();\n RectangleEdge rectangleEdge0 = Plot.resolveRangeAxisLocation(axisLocation0, plotOrientation0);\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"GT-wuOa\");\n List list0 = combinedRangeCategoryPlot0.getCategoriesForAxis(subCategoryAxis0);\n combinedRangeCategoryPlot0.setRangeAxis(0, (ValueAxis) numberAxis0, true);\n SystemColor systemColor0 = SystemColor.windowText;\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n BasicStroke basicStroke0 = (BasicStroke)statisticalBarRenderer0.getErrorIndicatorStroke();\n CategoryMarker categoryMarker0 = null;\n try {\n categoryMarker0 = new CategoryMarker((Comparable) 90.0, (Paint) systemColor0, (Stroke) basicStroke0, (Paint) systemColor0, (Stroke) basicStroke0, (-2471.265F));\n } catch(IllegalArgumentException e) {\n //\n // The 'alpha' value must be in the range 0.0f to 1.0f\n //\n assertThrownBy(\"org.jfree.chart.plot.Marker\", e);\n }\n }", "@Test\n public void test41() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(407.99, (-371.62), (-371.62), 0.0);\n line2D_Double0.x1 = 0.0;\n line2D_Double0.setLine((-371.62), 3820.38477815176, 0.0, 3820.38477815176);\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(0.0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n combinedRangeCategoryPlot0.setRangeCrosshairValue((-371.62));\n CategoryPointerAnnotation categoryPointerAnnotation0 = new CategoryPointerAnnotation(\"K(Jj1`SZJ!y81S;n?%Y\", (Comparable) (-371.62), 1834.808976, (-371.62));\n combinedRangeCategoryPlot0.addAnnotation(categoryPointerAnnotation0);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n float[][] floatArray0 = new float[9][0];\n float[] floatArray1 = new float[0];\n floatArray0[0] = floatArray1;\n float[] floatArray2 = new float[6];\n floatArray2[0] = Float.NEGATIVE_INFINITY;\n floatArray2[1] = 8.0F;\n floatArray2[2] = (-970.0398F);\n floatArray2[3] = (-2174.3F);\n floatArray2[4] = 0.0F;\n floatArray2[5] = 2953.279F;\n floatArray0[1] = floatArray2;\n float[] floatArray3 = new float[9];\n floatArray3[0] = 2953.279F;\n floatArray3[1] = (-970.0398F);\n floatArray3[2] = (-2174.3F);\n floatArray3[3] = (-970.0398F);\n floatArray3[4] = (-970.0398F);\n floatArray3[5] = 0.0F;\n floatArray3[6] = (-2174.3F);\n floatArray3[7] = 0.0F;\n floatArray3[8] = Float.NEGATIVE_INFINITY;\n floatArray0[2] = floatArray3;\n float[] floatArray4 = new float[0];\n floatArray0[3] = floatArray4;\n float[] floatArray5 = new float[7];\n floatArray5[0] = 8.0F;\n floatArray5[1] = 2953.279F;\n floatArray5[2] = (-966.2956F);\n floatArray5[3] = 8.0F;\n floatArray5[4] = 8.0F;\n floatArray5[5] = (-2174.3F);\n floatArray5[6] = (-2174.3F);\n floatArray0[4] = floatArray5;\n float[] floatArray6 = new float[6];\n floatArray6[0] = 0.0F;\n floatArray6[1] = Float.NEGATIVE_INFINITY;\n floatArray6[2] = (-966.2956F);\n floatArray6[3] = (-1797.876F);\n floatArray6[4] = (-966.2956F);\n floatArray6[5] = (-2174.3F);\n floatArray0[5] = floatArray6;\n float[] floatArray7 = new float[8];\n floatArray7[0] = 0.0F;\n floatArray7[1] = (-966.2956F);\n floatArray7[2] = 0.0F;\n floatArray7[3] = Float.NEGATIVE_INFINITY;\n floatArray7[4] = (-970.0398F);\n floatArray7[5] = (-970.0398F);\n floatArray7[6] = 0.0F;\n floatArray7[7] = (-970.0398F);\n floatArray0[6] = floatArray7;\n float[] floatArray8 = new float[3];\n floatArray8[0] = Float.NEGATIVE_INFINITY;\n floatArray8[1] = Float.NEGATIVE_INFINITY;\n floatArray8[2] = (-1797.876F);\n floatArray0[7] = floatArray8;\n float[] floatArray9 = new float[8];\n floatArray9[0] = 8.0F;\n floatArray9[1] = (-2209.7039F);\n floatArray9[2] = 0.0F;\n floatArray9[3] = (-2174.3F);\n floatArray9[4] = (-2174.3F);\n floatArray9[5] = Float.NEGATIVE_INFINITY;\n floatArray9[6] = 0.0F;\n floatArray9[7] = 2953.279F;\n floatArray0[8] = floatArray9;\n FastScatterPlot fastScatterPlot0 = new FastScatterPlot(floatArray0, (ValueAxis) numberAxis0, (ValueAxis) numberAxis0);\n BasicStroke basicStroke0 = (BasicStroke)fastScatterPlot0.getDomainGridlineStroke();\n combinedRangeCategoryPlot0.setRangeCrosshairStroke(basicStroke0);\n }", "public double getThreshold() {\r\n return threshold;\r\n }", "public void traitsValues(){\n\t\tsetTracksThatCover(Math.round((ADN.getTracksThatCover() +127)/85)+1);\n\t\tsetAmountOfPixels(Math.round((ADN.getAmountOfPixels() +127)/25)+5);\n\t\tsetAmountOfPoints(Math.round((ADN.getAmountOfPoints() +127)/85)+3);\n\n\t\tthis.getColorTrait();\n\t}", "public float getThreshold() {\n return threshold;\n }", "Color(double lowThreshold, double highThreshold){\n this.lowThreshold = lowThreshold;\n this.highThreshold = highThreshold;\n }", "public double getThreshold() {\n return threshold;\n }", "public Thresholding(ThresholdsState ts) { // Sets the constants for thresholding for each pitch \n\t\tredBallThresh[0][0] = 130;\n\t\tredBallThresh[0][1] = 90;\n\t\tredBallThresh[0][2] = 90;\n\t\tredBallThresh[1][0] = 170;\n\t\tredBallThresh[1][1] = 170;\n\t\tredBallThresh[1][2] = 170;\n\t\tyellowRobotThresh[0][0] = 140;\n\t\tyellowRobotThresh[0][1] = 140;\n\t\tyellowRobotThresh[0][2] = 170;\n\t\tyellowRobotThresh[1][0] = 150;\n\t\tyellowRobotThresh[1][1] = 190;\n\t\tyellowRobotThresh[1][2] = 140;\n\t\tblueRobotThresh[0][0] = 120;\n\t\tblueRobotThresh[0][1] = 170;\n\t\tblueRobotThresh[0][2] = 90;\n\t\tblueRobotThresh[1][0] = 160;\n\t\tblueRobotThresh[1][1] = 230;\n\t\tblueRobotThresh[1][2] = 215;\n\n\n\t\tgreenPlatesThresh[0][0] = 120;\n\t\tgreenPlatesThresh[1][0] = 205;\n\n\n\t\tthis.ts = ts;\n\n\t}", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public void draw(short[] samples, int threshold, int width, int height, Graphics2D g) {\n // Fill the background.\n g.setColor(MISSING_COLOR);\n g.fillRect(0, 0, width, height);\n\n // Find the bounds of the samples to draw.\n int minFrame = Integer.MAX_VALUE;\n int maxFrame = Integer.MIN_VALUE;\n for (BitData bitData : mHistory) {\n minFrame = Math.min(Math.min(bitData.getStartFrame(), bitData.getEndFrame()), minFrame);\n maxFrame = Math.max(Math.max(bitData.getStartFrame(), bitData.getEndFrame()), maxFrame);\n }\n // Show a bit past the error point.\n maxFrame = Math.min(maxFrame + 100, samples.length - 1);\n int frameWidth = maxFrame - minFrame + 1;\n\n // Draw all backgrounds.\n for (BitData bitData : mHistory) {\n // Compute the background color for this bit.\n Color backgroundColor;\n switch (bitData.getBitType()) {\n case ZERO:\n backgroundColor = ZERO_BIT_COLOR;\n break;\n\n case ONE:\n backgroundColor = ONE_BIT_COLOR;\n break;\n\n case START:\n backgroundColor = START_BIT_COLOR;\n break;\n\n default:\n case BAD:\n backgroundColor = BAD_BIT_COLOR;\n break;\n }\n\n // Map to image.\n int startX = (bitData.getStartFrame() - minFrame)*width/frameWidth;\n startX = clamp(startX, 0, width - 1);\n int endX = (bitData.getEndFrame() - minFrame)*width/frameWidth;\n endX = clamp(endX, 0, width - 1);\n\n // Draw background.\n g.setColor(backgroundColor);\n g.fillRect(startX, 0, endX - startX, height);\n }\n\n // Draw signal.\n int lastX = -1;\n int lastY = -1;\n g.setColor(LINE_COLOR);\n for (int frame = minFrame; frame < maxFrame; frame++) {\n // Draw line.\n int x = (frame - minFrame)*width/frameWidth;\n x = clamp(x, 0, width - 1);\n\n // *Must* cast to int first or -32768 won't negate properly.\n int y = -(int)samples[frame]*(height/2)/32768 + height/2;\n y = clamp(y, 0, height - 1);\n\n if (lastX != -1) {\n g.drawLine(lastX, lastY, x, y);\n }\n\n lastX = x;\n lastY = y;\n }\n\n // Draw grid.\n g.setColor(Color.GRAY);\n int y = height/2;\n g.drawLine(0, y, width - 1, y);\n if (threshold != 0) {\n y = threshold*(height/2)/32768 + height/2;\n g.drawLine(0, y, width - 1, y);\n y = -threshold*(height/2)/32768 + height/2;\n g.drawLine(0, y, width - 1, y);\n }\n }", "public Precision() {\n\t\tthis.threshold = 1.0;\n\t}", "@Test\n public void test08() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.clearDomainMarkers(44);\n BasicStroke basicStroke0 = (BasicStroke)categoryPlot0.getRangeGridlineStroke();\n ValueAxis[] valueAxisArray0 = new ValueAxis[6];\n ThermometerPlot thermometerPlot0 = new ThermometerPlot();\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[0] = (ValueAxis) numberAxis0;\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"Null 'marker' not permitted.\");\n valueAxisArray0[1] = (ValueAxis) logarithmicAxis0;\n LogAxis logAxis0 = new LogAxis();\n valueAxisArray0[2] = (ValueAxis) logAxis0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, \"o>v!{PNMe{\");\n valueAxisArray0[3] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"Null 'marker' not permitted.\");\n valueAxisArray0[4] = (ValueAxis) numberAxis3D0;\n NumberAxis numberAxis1 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[5] = (ValueAxis) numberAxis1;\n XYPlot xYPlot0 = new XYPlot();\n RectangleInsets rectangleInsets0 = xYPlot0.getAxisOffset();\n cyclicNumberAxis0.setTickLabelInsets(rectangleInsets0);\n categoryPlot0.setRangeAxes(valueAxisArray0);\n categoryPlot0.setRangeCrosshairValue(3583.22971, false);\n LegendItemCollection legendItemCollection0 = categoryPlot0.getFixedLegendItems();\n float[] floatArray0 = new float[2];\n floatArray0[0] = (float) 44;\n floatArray0[1] = (float) 44;\n Font font0 = AbstractRenderer.DEFAULT_VALUE_LABEL_FONT;\n }", "@Override\n protected synchronized void onDraw(@NonNull Canvas canvas) {\n super.onDraw(canvas);\n\n paint.setTextSize(mTextSize);\n paint.setStyle(Style.FILL);\n paint.setColor(mNormalColor);\n paint.setAntiAlias(true);\n float minMaxLabelSize = 0;\n\n// if (mShowLabels) {\n// // draw min and max labels\n// String minLabel = getContext().getString(R.string.warningbar_lbl);\n// String maxLabel = getContext().getString(R.string.criticalbar_lbl);\n// minMaxLabelSize = Math.max(paint.measureText(minLabel), paint.measureText(maxLabel));\n// float minMaxHeight = mTextOffset + mThumbHalfHeight + mTextSize / 3;\n// canvas.drawText(minLabel, 0, minMaxHeight, paint);\n// canvas.drawText(maxLabel, getWidth() - minMaxLabelSize, minMaxHeight, paint);\n// }\n\n padding = mInternalPad + minMaxLabelSize + mThumbHalfWidth;\n\n // draw seek bar background line\n mRect.left = padding;\n mRect.right = getWidth() - padding;\n canvas.drawRect(mRect, paint);\n\n boolean selectedValuesAreDefault = (getSelectedWarningValue().equals(getAbsoluteWarningValue()) &&\n getSelectedCriticalValue().equals(getAbsoluteCriticalValue()));\n\n int colorToUseForButtonsAndHighlightedLine = !mAlwaysActive && selectedValuesAreDefault ?\n mDefaultColor : // default values\n mActiveColor; // non default, filter is active\n\n // draw seek bar active range line\n mRect.left = normalizedToScreen(normalizedWarningValue);\n paint.setColor(mCriticalColor);\n canvas.drawRect(mRect, paint);\n mRect.right = normalizedToScreen(normalizedCriticalValue);\n paint.setColor(mWarningColor);\n canvas.drawRect(mRect, paint);\n\n\n\n // draw warning thumb (& shadow if requested) if not a single thumb control\n if (!mSingleThumb) {\n if (mThumbShadow) {\n drawThumbShadow(normalizedToScreen(normalizedWarningValue), canvas);\n }\n drawThumb(normalizedToScreen(normalizedWarningValue), Thumb.WARN.equals(pressedThumb), canvas,\n selectedValuesAreDefault);\n }\n\n // draw critical thumb & shadow (if necessary)\n if (mThumbShadow) {\n drawThumbShadow(normalizedToScreen(normalizedCriticalValue), canvas);\n }\n drawThumb(normalizedToScreen(normalizedCriticalValue), Thumb.CRIT.equals(pressedThumb), canvas,\n selectedValuesAreDefault);\n\n // draw the text if sliders have moved from default edges\n if (mShowTextAboveThumbs && !selectedValuesAreDefault) {\n paint.setTextSize(mTextSize);\n paint.setColor(mTextAboveThumbsColor);\n // give text a bit more space here so it doesn't get cut off\n int offset = PixelUtil.dpToPx(getContext(), TEXT_LATERAL_PADDING_IN_DP);\n\n String warnText = \"[W] \" + String.valueOf(getSelectedWarningValue());\n String critText = \"[C] \" + String.valueOf(getSelectedCriticalValue());\n float warnTextWidth = paint.measureText(warnText) + offset;\n float critTextWidth = paint.measureText(critText) + offset;\n\n if (!mSingleThumb) {\n canvas.drawText(warnText,\n normalizedToScreen(normalizedWarningValue) - warnTextWidth * 0.5f,\n mDistanceToTop + mTextSize,\n paint);\n\n }\n\n canvas.drawText(critText,\n normalizedToScreen(normalizedCriticalValue) - critTextWidth * 0.5f,\n mDistanceToTop + mTextSize,\n paint);\n }\n\n }", "private void initializeChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n// int SPLINEPRECISION = chartPrefJSlider2.getValue(); // 1 is highest precision; default = 40\n int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n }\n\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), (double) convertYCoordToFreq(row));\n }\n }\n }\n }\n\n dataset.removeAllSeries();\n dataset.addSeries(xy);\n\n //XYSeriesCollection splineDataset = new XYSeriesCollection();\n dataset.addSeries(xySpline);\n\n JFreeChart chart = ChartFactory.createXYLineChart(\n //JFreeChart chart = ChartFactory.createScatterPlot(\n clip.getFileName(), \"Time (ms)\", \"Frequency (Hz)\", dataset, PlotOrientation.VERTICAL, true, true, false);\n XYPlot xyplot = (XYPlot) chart.getPlot();\n xyplot.setRenderer(new XYSplineRenderer());\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShape(0, new java.awt.Rectangle(1, 1, 1, 1));\n xylineandshaperenderer.setSeriesLinesVisible(0, false);\n xylineandshaperenderer.setSeriesShapesVisible(0, true);\n xylineandshaperenderer.setSeriesLinesVisible(1, false);\n xylineandshaperenderer.setSeriesShapesVisible(1, false);\n\n// ChartFrame frame = new ChartFrame(\"First\", chart);\n// frame.pack();\n// frame.setVisible(true);\n\n\n jCheckBox1.setEnabled(true);\n jCheckBox1.setSelected(true);\n\n jCheckBox2.setEnabled(true);\n jCheckBox2.setSelected(false);\n\n jSlider1.setEnabled(true);\n jSlider2.setEnabled(true);\n\n jTextField9.setText(clip.getFileName());\n\n chartPanel = new ChartPanel(chart);\n }", "@Updatable\n public Double getThreshold() {\n return threshold;\n }", "@Test\n public void test81() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(228.0, 0.0, 228.0, 0.0);\n LogAxis logAxis0 = new LogAxis(\"8dVi7isYx7'@IN\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logAxis0);\n combinedRangeCategoryPlot0.setAnchorValue((-725.5571138));\n }", "public int getThreshold()\n {\n return threshold;\n }", "@Override\n\tpublic void createParametersBounds() {\n\t\tMap<String, List<Double>> parametersBounds = new HashMap<String, List<Double>>();\n\t\tparametersBounds.put(PROBCATCH_PARAMETER_LABEL_GUI, probCatchBounds);\n\t\tsetParametersBounds(parametersBounds);\n\t}", "public void setupLevelAndPoints(){\r\n \t\tint[] levelAndPoints = new int[]{0, 0, 0};\r\n \t\tlevelAndPoints = DashboardActivity.getLevelAndPoints();\r\n \t\tLog.i(\"levelAndPoints content\", levelAndPoints.toString());\r\n\t\t\r\n \t\t//Setting up level\r\n \t\tlevelImage = (ImageView) findViewById(R.id.levelImageView);\r\n \t\tif(levelAndPoints[0] == 1){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_one));\r\n \t\t}else if(levelAndPoints[0] == 2){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_two));\r\n \t\t}else if(levelAndPoints[0] == 3){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_three));\r\n \t\t}else if(levelAndPoints[0] == 4){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_four));\r\n \t\t}else if(levelAndPoints[0] == 5){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_five));\r\n \t\t}else if(levelAndPoints[0] == 6){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_six));\r\n \t\t}\r\n \t\t\r\n \t\t//Setting up progressbar and points above bar\r\n \t\tlevelProgressBar = (ProgressBar) findViewById(R.id.levelProgressBar);\r\n \t\tlevelProgressBar.setVisibility(ProgressBar.VISIBLE);\r\n \t\tlevelProgressBar.setMax(levelAndPoints[2]);\r\n \t\tlevelProgressBar.setProgress(levelAndPoints[1]);\r\n \r\n \t\tshowPointsAboveProgressBar = (TextView) findViewById(R.id.pointsInProgressBar);\r\n \t\tshowPointsAboveProgressBar.setText(levelAndPoints[1] + \"/\" + levelAndPoints[2]);\r\n \t}", "@Test\n public void test52() throws Throwable {\n ThermometerPlot thermometerPlot0 = new ThermometerPlot();\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"Null 'thresholdType' argument.\");\n AxisChangeEvent axisChangeEvent0 = new AxisChangeEvent((Axis) categoryAxis3D0);\n ChartChangeEventType chartChangeEventType0 = axisChangeEvent0.getType();\n axisChangeEvent0.setType(chartChangeEventType0);\n thermometerPlot0.axisChanged(axisChangeEvent0);\n CategoryAxis3D categoryAxis3D1 = new CategoryAxis3D(\"\");\n int int0 = combinedRangeCategoryPlot0.getDomainAxisIndex(categoryAxis3D1);\n LegendItemCollection legendItemCollection0 = combinedRangeCategoryPlot0.getFixedLegendItems();\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n // Undeclared exception!\n try { \n combinedRangeCategoryPlot0.setRangeAxisLocation((-1), axisLocation0, false);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }", "public HybridSumOfDifferences(Image img1, Image img2, float expoentParameter, double threshold){\r\n\t\tsuper(img1, img2);\r\n\t\tthis.g = expoentParameter;\r\n\t\tthis.threshold = threshold;\r\n\t}", "void makeAnalysis(double v_min, double v_max) {\n\t\t\tfmt_result = universalFormat;\n\t\t\tdouble range = v_max - v_min;\n\t\t\tscale = 0.;\n\t\t\tif (range > 0.) {\n\t\t\t\tscale = Math.pow(10., Math.floor(1.000001 * Math.log(range) / Math.log(10.0)));\n\t\t\t}\n\t\t\tif (scale == 0.) {\n\t\t\t\tscale = 1.;\n\t\t\t\tvalue_min = -1.0;\n\t\t\t\tvalue_max = +1.0;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\tif (value_min * value_max == 0. && (scale == Math.abs(value_max) || scale == Math.abs(value_min))) {\n\t\t\t\tscale = scale / 5.0;\n\t\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\t}\n\n\t\t\tdouble[] arr = new double[3];\n\t\t\tarr[0] = scale;\n\t\t\tarr[1] = value_min;\n\t\t\tarr[2] = value_max;\n\n\t\t\tdouble zz_max = Math.max(Math.abs(arr[1]), Math.abs(arr[2]));\n\t\t\tint nV = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nV >= 0) {\n\t\t\t\tnV += 1;\n\t\t\t} else {\n\t\t\t\tnV -= 1;\n\t\t\t}\n\n\t\t\tzz_max = zz_max / Math.abs(arr[0]);\n\t\t\tint nD = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nD >= 0) {\n\t\t\t\tnD += 1;\n\t\t\t}\n\n\t\t\t//This is for zoom, so we want to increase number of significant digits\n\t\t\tnD = nD + 1;\n\n\t\t\tif (nV >= 4) {\n\t\t\t\tint n = Math.min(4, Math.abs(nD));\n\t\t\t\tfmt_result = scientificFormats[n];\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (nV > 0 && nV < 4) {\n\t\t\t\tif (nV >= nD) {\n\t\t\t\t\tfmt_result = simpleFormats[0];\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tint n = Math.min(4, Math.abs(nV - nD));\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (nV < 0 && nV > -4) {\n\t\t\t\tint n = Math.abs(nV) + Math.abs(nD) - 2;\n\t\t\t\tif (n <= 4) {\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public final void updateThreshold(double newThreshold){\n\t\t\n\t\tif(newThreshold != SignalSmoother.NO_RECOMMENDED_THRESHOLD){\n\t\t\t\n\t\t\tif(newThreshold == Double.valueOf(0)){\n\t\t\t\tthis.isThresholdUsingEnabled = THRESHOLD_STATE_DISABLED;\n\t\t\t}else\n\t\t\t\tthis.threshold = Math.abs(newThreshold);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public HybridSumOfDifferences(float expoentParameter, double threshold){\r\n\t\tthis.g = expoentParameter;\r\n\t\tthis.threshold = threshold;\r\n\t}", "private void drawHighPrices(Graphics g , int contentHeight) {\n // declare local variables:\n int buffer;\n int actualBars;\n int dataMinimum;\n int heightDifference;\n int highPrices[];\n int dataArray[];\n double scale;\n // end of local variables declaration\n\n\n // check fro logical error\n if(data == null) {\n // exit from method\n return;\n } // end of if statement\n\n // check for logical error\n if(data.getHighPrices() == null || data.getHighPrices().length < 2) {\n // exit from method\n return;\n } // end of if statement\n\n\n // find the data minimum\n dataMinimum = ChartData.getMinimum(data.getHighPrices(bars));\n\n // resolve the data array\n highPrices = data.getHighPrices(bars);\n dataArray = new int[highPrices.length];\n System.arraycopy(highPrices, 0, dataArray, 0, highPrices.length);\n\n // resolve the actual bars\n actualBars = dataArray.length;\n\n // find the heightDifference\n heightDifference = ChartData.getMaximum(data.getHighPrices(bars)) - dataMinimum;\n\n // check if the heightDifference is too big and reduce it\n buffer = heightDifference / 50;\n if( buffer > 0) {\n heightDifference = heightDifference / buffer;\n } // end of if statement\n\n //\n for(int c = 0; c < actualBars; c++) {\n //\n dataArray[c] = dataArray[c] - dataMinimum;\n } // end of for loop;\n\n //\n if(buffer > 0) {\n //\n for(int c=0; c < actualBars; c++) {\n //\n dataArray[c] = dataArray[c] / buffer;\n } // end of for loop\n\n } // end of if statement\n\n\n // resolve the scale\n scale = contentHeight / heightDifference;\n\n // select color\n g.setColor(format.getHighPricesColor());\n\n // main drawing loop\n for(int c = 0; c < actualBars -1 ; c++) {\n //\n g.drawLine(getWidth()-textAreaLenght-c*barLenght,\n getHeight()- 30 - (int) Math.round(dataArray[c]*scale),\n getWidth()-textAreaLenght- ( (c+1)*barLenght ),\n getHeight()- 30 - (int) Math.round(dataArray[c+1]*scale));\n } // end of for loop\n\n }", "private void initializeStatisticVariables(){\r\n\t\taverageFront9Score = 0;\r\n\t\taverageFront9PlusMinus = 0;\r\n\t\taverageBack9Score = 0;\r\n\t\taverageBack9PlusMinus = 0;\r\n fairways = 0;\r\n girs = 0;\r\n putts = 0;\r\n chips = 0;\r\n penalties = 0;\r\n\t\tnumberOfHoles = 0;\r\n\t\tnumberOfPar3Holes = 0;\r\n\t\tnumberOfPar4Holes = 0;\r\n\t\tnumberOfPar5Holes = 0;\r\n\t\talbatrossCount = 0;\r\n\t\teagleCount = 0;\r\n\t\tbirdieCount = 0;\r\n\t\tparCount = 0;\r\n\t\tbogeyCount = 0;\r\n\t\tdoubleBogeyCount = 0;\r\n\t\ttripleBogeyCount = 0;\r\n\t\tquadBogeyPlusCount = 0;\r\n par3Fairways = 0;\r\n par3Girs = 0;\r\n par3Putts = 0;\r\n par3Chips = 0;\r\n par3Penalties = 0;\r\n\t\tpar3EagleCount = 0;\r\n\t\tpar3BirdieCount = 0;\r\n\t\tpar3ParCount = 0;\r\n\t\tpar3BogeyCount = 0;\r\n\t\tpar3DoubleBogeyCount = 0;\r\n\t\tpar3TripleBogeyCount = 0;\r\n\t\tpar3QuadBogeyPlusCount = 0;\r\n par4Fairways = 0;\r\n par4Girs = 0;\r\n par4Putts = 0;\r\n par4Chips = 0;\r\n par4Penalties = 0;\r\n\t\tpar4AlbatrossCount = 0;\r\n\t\tpar4EagleCount = 0;\r\n\t\tpar4BirdieCount = 0;\r\n\t\tpar4ParCount = 0;\r\n\t\tpar4BogeyCount = 0;\r\n\t\tpar4DoubleBogeyCount = 0;\r\n\t\tpar4TripleBogeyCount = 0;\r\n\t\tpar4QuadBogeyPlusCount = 0;\r\n par5Fairways = 0;\r\n par5Girs = 0;\r\n par5Putts = 0;\r\n par5Chips = 0;\r\n par5Penalties = 0;\r\n\t\tpar5AlbatrossCount = 0;\r\n\t\tpar5EagleCount = 0;\r\n\t\tpar5BirdieCount = 0;\r\n\t\tpar5ParCount = 0;\r\n\t\tpar5BogeyCount = 0;\r\n\t\tpar5DoubleBogeyCount = 0;\r\n\t\tpar5TripleBogeyCount = 0;\r\n\t\tpar5QuadBogeyPlusCount = 0;\r\n clubs.clear();\r\n\t}", "private void updateChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n int SPLINEPRECISION = jSlider2.getValue(); // 1 is highest precision; default = 40\n// int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n //System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, calibrate((double) convertYCoordToFreq(row)));\n System.out.println(\"adding data point (\" + col + \",\" + calibrate((double) convertYCoordToFreq(row)) + \")\");\n }\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), calibrate((double) convertYCoordToFreq(row)));\n }\n }\n }\n }\n //replace Data with new series\n dataset.removeSeries(1);\n dataset.removeSeries(0);\n dataset.addSeries(xy);\n dataset.addSeries(xySpline);\n\n XYPlot xyplot = (XYPlot) chartPanel.getChart().getPlot();\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShapesVisible(0, jCheckBox1.isSelected());\n xylineandshaperenderer.setSeriesLinesVisible(1, jCheckBox2.isSelected());\n\n if (jCheckBox3.isSelected()) {\n xyplot.getRangeAxis().setLabel(jTextField8.getText() + \" (\" + jTextField3.getText() + \")\");\n } else {\n xyplot.getRangeAxis().setLabel(\"Frequency (Hz)\");\n }\n\n // Show Crosshairs\n chartPanel.setVerticalAxisTrace(true);\n\n chartPanel.repaint();\n }", "@Test\n public void test49() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double((-236.194544120453), (-4884.7440404), (-4059.512268957), (-236.194544120453));\n line2D_Double0.setLine((-4884.7440404), 0.0, (double) 0.0F, (-4884.7440404));\n Line2D.Float line2D_Float0 = new Line2D.Float(0.0F, 0.0F, 0.0F, 0.0F);\n line2D_Double0.setLine((Line2D) line2D_Float0);\n double double0 = line2D_Double0.getX1();\n CategoryPlot categoryPlot0 = new CategoryPlot();\n Line2D.Float line2D_Float1 = (Line2D.Float)line2D_Float0.clone();\n LegendItemCollection legendItemCollection0 = categoryPlot0.getLegendItems();\n line2D_Float0.setLine(0.0F, 0.0F, 0.0F, 0.0F);\n Point2D.Double point2D_Double0 = new Point2D.Double((double) 0.0F, (-4884.7440404));\n double double1 = point2D_Double0.getX();\n BasicStroke basicStroke0 = (BasicStroke)categoryPlot0.getRangeCrosshairStroke();\n CategoryItemRenderer[] categoryItemRendererArray0 = new CategoryItemRenderer[3];\n IntervalBarRenderer intervalBarRenderer0 = new IntervalBarRenderer();\n categoryItemRendererArray0[0] = (CategoryItemRenderer) intervalBarRenderer0;\n StatisticalLineAndShapeRenderer statisticalLineAndShapeRenderer0 = new StatisticalLineAndShapeRenderer();\n categoryItemRendererArray0[1] = (CategoryItemRenderer) statisticalLineAndShapeRenderer0;\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer(true, false);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n RendererChangeEvent rendererChangeEvent0 = new RendererChangeEvent((Object) combinedRangeCategoryPlot0);\n lineAndShapeRenderer0.notifyListeners(rendererChangeEvent0);\n categoryItemRendererArray0[2] = (CategoryItemRenderer) lineAndShapeRenderer0;\n categoryPlot0.setRenderers(categoryItemRendererArray0);\n Line2D.Double line2D_Double1 = new Line2D.Double();\n double double2 = line2D_Double1.getY2();\n ValueAxis valueAxis0 = categoryPlot0.getRangeAxis(1808);\n }", "private void updateViewStatistics(int[] averagePace, int[] gap){\n totalDistanceView.setText(String.format(\"%.2f\", totalDistanceMeters / 1000) + \"Km\");\n\n if(isRequiredMetersComplete()){\n String avgMinute = String.valueOf(averagePace[0]);\n String avgSecond = String.valueOf(averagePace[1]);\n String gapMinute = String.valueOf(gap[0]);\n String gapSecond = String.valueOf(gap[1]);\n\n if(gap[2] < 0){\n gapToPaceView.setTextColor(getResources().getColor(R.color.goodGreen));\n isOverPace = true;\n }else if(gap[2] == 0){\n gapToPaceView.setTextColor(getResources().getColor(R.color.textPrimary));\n isOverPace = true;\n }else{\n gapToPaceView.setTextColor(getResources().getColor(R.color.badRed));\n isOverPace= false;\n }\n\n if(averagePace[0] < 10){\n avgMinute = \"0\" + avgMinute;\n }\n if(averagePace[1] < 10){\n avgSecond = \"0\" + avgSecond;\n }\n if(gap[0] >= 0 && gap[0] < 10){\n gapMinute = \"0\" + gapMinute;\n }\n if(gap[1] >= 0 && gap[1] < 10 ){\n gapSecond = \"0\" + gapSecond;\n }\n if(gap[0] < 0 || gap[1] < 0){\n gapMinute = String.valueOf(Math.abs(gap[0]));\n gapSecond = String.valueOf(Math.abs(gap[1]));\n\n gapToPaceView.setText(\"-\"+gapMinute+\":\"+gapSecond);\n }else{\n gapToPaceView.setText(\"+\"+gapMinute+\":\"+gapSecond);\n }\n averagePaceView.setText(avgMinute + \":\" + avgSecond);\n\n }else {\n averagePaceView.setText(\"Calculating...\");\n gapToPaceView.setText(\"Calculating...\");\n }\n\n\n }", "private Exemplar (NNge nnge, Instances inst, int size, double classV){\n\n super(inst, size);\n m_NNge = nnge;\n m_ClassValue = classV;\n m_MinBorder = new double[numAttributes()];\n m_MaxBorder = new double[numAttributes()];\n m_Range = new boolean[numAttributes()][];\n for(int i = 0; i < numAttributes(); i++){\n\tif(attribute(i).isNumeric()){\n\t m_MinBorder[i] = Double.POSITIVE_INFINITY;\n\t m_MaxBorder[i] = Double.NEGATIVE_INFINITY;\n\t m_Range[i] = null;\n\t} else {\n\t m_MinBorder[i] = Double.NaN;\n\t m_MaxBorder[i] = Double.NaN;\n\t m_Range[i] = new boolean[attribute(i).numValues() + 1];\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t m_Range[i][j] = false;\n\t }\n\t}\n }\n }", "public ThresholdEventRule(String name, String name_lt, String name_gt, String d_lt, String d_gt, String sensorName, int val, boolean hideFromFeed, int timeout){\n super(name, hideFromFeed, timeout);\n this.name_lt = name_lt;\n this.name_gt = name_gt;\n this.description_lt = d_lt;\n this.description_gt = d_gt;\n this.sensorName = sensorName;\n this.threshold = val;\n this.currentState = getInitialState();\n }", "@Override\r\n\tpublic void setThresholds(int itemthreshold, int timethreshold) {\n\t\t\r\n\t}", "@Test\n public void test70() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n ValueMarker valueMarker0 = new ValueMarker(349.98275646987);\n MarkerChangeEvent markerChangeEvent0 = new MarkerChangeEvent((Marker) valueMarker0);\n XYBlockRenderer xYBlockRenderer0 = new XYBlockRenderer();\n RectangleAnchor rectangleAnchor0 = xYBlockRenderer0.getBlockAnchor();\n Line2D.Float line2D_Float0 = new Line2D.Float((-216.01F), 4682.902F, (-216.01F), (-216.01F));\n Rectangle2D.Float rectangle2D_Float0 = (Rectangle2D.Float)line2D_Float0.getBounds2D();\n Point2D.Double point2D_Double0 = (Point2D.Double)RectangleAnchor.coordinates(rectangle2D_Float0, (RectangleAnchor) null);\n valueMarker0.setLabelAnchor(rectangleAnchor0);\n combinedRangeCategoryPlot0.markerChanged(markerChangeEvent0);\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n RectangleInsets rectangleInsets0 = combinedRangeCategoryPlot0.getAxisOffset();\n combinedRangeCategoryPlot0.setAnchorValue(Double.NEGATIVE_INFINITY);\n Line2D.Double line2D_Double0 = new Line2D.Double((Point2D) point2D_Double0, (Point2D) point2D_Double0);\n double double0 = line2D_Double0.getY2();\n double double1 = line2D_Double0.getX1();\n boolean boolean1 = combinedRangeCategoryPlot0.isRangeZoomable();\n int int0 = combinedRangeCategoryPlot0.getDatasetCount();\n boolean boolean2 = combinedRangeCategoryPlot0.isRangeCrosshairVisible();\n combinedRangeCategoryPlot0.clearDomainAxes();\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeCategoryPlot0.getRangeCrosshairStroke();\n List list0 = combinedRangeCategoryPlot0.getAnnotations();\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getDomainMarkers(layer0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n combinedRangeCategoryPlot0.zoomDomainAxes(0.0, plotRenderingInfo0, (Point2D) point2D_Double0);\n LogAxis logAxis0 = new LogAxis();\n CombinedDomainXYPlot combinedDomainXYPlot0 = new CombinedDomainXYPlot((ValueAxis) logAxis0);\n AxisLocation axisLocation0 = combinedDomainXYPlot0.getDomainAxisLocation(1308);\n combinedRangeCategoryPlot0.setRangeAxisLocation(axisLocation0, false);\n }", "@Test\n public void test18() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n boolean boolean0 = combinedRangeCategoryPlot0.equals(combinedRangeCategoryPlot0);\n CategoryDataset categoryDataset0 = combinedRangeCategoryPlot0.getDataset();\n TextBox textBox0 = new TextBox();\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"\");\n combinedRangeCategoryPlot0.setRangeAxis((ValueAxis) numberAxis3D0);\n RectangleInsets rectangleInsets0 = textBox0.getInteriorGap();\n combinedRangeCategoryPlot0.setAxisOffset(rectangleInsets0);\n Color color0 = (Color)combinedRangeCategoryPlot0.getRangeCrosshairPaint();\n Line2D.Double line2D_Double0 = new Line2D.Double();\n double double0 = line2D_Double0.getY1();\n }", "private void updateChart() {\n //Declare needed variables\n final DateFormat dateFormat = new SimpleDateFormat(\"dd-MM\", Locale.getDefault());\n final LineChart chart = findViewById(R.id.chartWeight);\n List<Entry> weightEntries = new ArrayList<>();\n mUser.weight.sortListByDate();\n ArrayList<WeightValue> weightHistory = mUser.weight.getWeightHistory();\n\n //Set entries to entry list from weight history list\n for (int i = 0; i < weightHistory.size(); i++) {\n //Get the current weight weight value and intialize the current variables\n WeightValue weightValue = weightHistory.get(i);\n Date date = weightValue.getDate();\n float weight = (float) weightValue.getWeight();\n\n //Add the entries to the entries list\n weightEntries.add(new Entry(date.getTime(), weight));\n }\n\n //Setup XAxis\n XAxis xAxis = chart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setDrawGridLines(false);\n xAxis.setGranularity(1f);\n xAxis.setGranularityEnabled(true);\n xAxis.setLabelCount(weightHistory.size(), false);\n xAxis.setValueFormatter(new IndexAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value) {\n return dateFormat.format(value);\n }\n });\n\n //Setups YAxis\n YAxis rightYAxis = chart.getAxisRight();\n rightYAxis.setEnabled(false);\n\n //Create linedata from the entries list\n final LineDataSet weightDataSet = new LineDataSet(weightEntries, \"Paino\");\n\n //Customize chart\n Description desc = new Description();\n desc.setEnabled(false);\n chart.setDescription(desc);\n chart.setMaxHighlightDistance(20);\n\n weightDataSet.setValueTextSize(10);\n weightDataSet.setColor(Color.BLUE);\n weightDataSet.setFillAlpha(10);\n weightDataSet.setLineWidth(3f);\n weightDataSet.setCircleRadius(4);\n\n\n\n //Shows the values as integers rather than floats\n weightDataSet.setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value) {\n return String.format(Locale.getDefault(), \"%.1f\", value);\n }\n });\n\n chart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {\n @Override\n public void onValueSelected(final Entry e, Highlight h) {\n AlertDialog.Builder builder = new AlertDialog.Builder(WeightActivity.this);\n builder.setTitle(\"Poista arvo\")\n .setMessage(\"Oletko varma?\")\n .setNegativeButton(\"Peruuta\", null)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n weightDataSet.removeEntry(e);\n chart.invalidate();\n\n mUser.weight.removeWeightByDate(e.getX());\n updateText();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }\n\n @Override\n public void onNothingSelected() {\n\n }\n });\n\n //Add the values to the chart and intialize it\n LineData weightLineData = new LineData(weightDataSet);\n chart.setData(weightLineData);\n chart.invalidate();\n }", "public void setVariablesFromValue() {\n\t\tif (this.value < .05) {\n\t\t\tthis.diameter = 10;\n\t\t\t// White\n\t\t\tthis.r = 255;\n\t\t\tthis.g= 255;\n\t\t\tthis.b = 255;\n\t\t} else if (this.value < .2) {\n\t\t\tthis.diameter = 20;\n\t\t\t// Gold\n\t\t\tthis.r = 245;\n\t\t\tthis.g = 171;\n\t\t\tthis.b = 53;\n\t\t} else if (this.value < 1) {\n\t\t\tthis.diameter = 40;\n\t\t\t// Turquoise\n\t\t\tthis.r = 3;\n\t\t\tthis.g= 201;\n\t\t\tthis.b = 169;\n\t\t} else if (this.value < 2) {\n\t\t\tthis.diameter = 80;\n\t\t\t// Burgundy\n\t\t\tthis.r = 192;\n\t\t\tthis.g= 57;\n\t\t\tthis.b = 43;\n\t\t}else if (this.value < 5) {\n\t\t\tthis.diameter = 100;\n\t\t\t// Purple\n\t\t\tthis.r = 155;\n\t\t\tthis.g= 89;\n\t\t\tthis.b = 182;\n\t\t}else if (this.value < 20) {\n\t\t\tthis.diameter = 150;\n\t\t\t// Steel Blue\n\t\t\tthis.r = 75;\n\t\t\tthis.g= 119;\n\t\t\tthis.b = 190;\n\t\t}else {\n\t\t\tthis.diameter = 200;\n\t\t\t// Pink\n\t\t\tthis.r = 210;\n\t\t\tthis.g= 82;\n\t\t\tthis.b = 127;\n\t\t}\n\t}", "private void sample() {\n gaugeSet.values().forEach((key, value) ->\n this.inner.labels(key).set(value != null ? value.doubleValue() : 0));\n }", "@Test\n public void test21() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\" twtGuHO\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n Polygon polygon0 = new Polygon();\n Rectangle rectangle0 = polygon0.getBounds();\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n List list0 = defaultKeyedValuesDataset0.getKeys();\n combinedDomainCategoryPlot0.drawRangeGridlines((Graphics2D) null, rectangle0, list0);\n rectangle0.height = (-2538);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) list0, (Dataset) defaultKeyedValuesDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n RectangleInsets rectangleInsets0 = new RectangleInsets();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }", "public void setPercentThreshold(double d)\n {\n percentThreshold = d;\n }", "@Test\n public void test85() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n RectangleEdge rectangleEdge0 = combinedRangeCategoryPlot0.getDomainAxisEdge(1248);\n List list0 = combinedRangeCategoryPlot0.getSubplots();\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_LEFT;\n combinedRangeCategoryPlot0.setDomainAxisLocation(0, axisLocation0, false);\n combinedRangeCategoryPlot0.setRangeCrosshairValue(0.18, false);\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n MultiplePiePlot multiplePiePlot0 = new MultiplePiePlot();\n JFreeChart jFreeChart0 = multiplePiePlot0.getPieChart();\n TextBlockAnchor textBlockAnchor0 = TextBlockAnchor.TOP_CENTER;\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getRangeMarkers(layer0);\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer();\n combinedRangeCategoryPlot0.setRenderer((CategoryItemRenderer) lineAndShapeRenderer0);\n combinedRangeCategoryPlot0.setAnchorValue(0.0, true);\n }", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "public void chart() {\r\n setLayout(new FlowLayout());\r\n String[] testNumbers = {\"LINEAR SEARCH\", \"TEST 1\", \"TEST 2\", \"TEST 3\", \"TEST 4\", \"TEST 5\", \"TEST 6\", \"TEST 7\", \"TEST 8\", \"TEST 9\", \"TEST 10\", \"AVERAGE\", \"STANDARD DEV.\"};\r\n Object[][] testResult = {{\"500\", lin[0][0], lin[0][1], lin[0][2], lin[0][3], lin[0][4], lin[0][5], lin[0][6], lin[0][7], lin[0][8], lin[0][0], linAvAndDev[0][0], linAvAndDev[0][1]},\r\n {\"10,000\", lin[1][0], lin[1][1], lin[1][2], lin[1][3], lin[1][4], lin[1][5], lin[1][6], lin[1][7], lin[1][8], lin[1][9], linAvAndDev[1][0], linAvAndDev[1][1]},\r\n {\"100,000\", lin[2][0], lin[2][1], lin[2][2], lin[2][3], lin[2][4], lin[2][5], lin[2][6], lin[2][7], lin[2][8], lin[2][9], linAvAndDev[2][0], linAvAndDev[2][1]},\r\n {\"1,000,000\", lin[3][0], lin[3][1], lin[3][2], lin[3][3], lin[3][4], lin[3][5], lin[3][6], lin[3][7], lin[3][8], lin[3][9], linAvAndDev[3][0], linAvAndDev[3][1]},\r\n {\"5,000,000\", lin[4][0], lin[4][1], lin[4][2], lin[4][3], lin[4][4], lin[4][5], lin[4][6], lin[4][7], lin[4][8], lin[4][9], linAvAndDev[4][0], linAvAndDev[4][1]},\r\n {\"7,000,000\", lin[5][0], lin[5][1], lin[5][2], lin[5][3], lin[5][4], lin[5][5], lin[5][6], lin[5][7], lin[5][8], lin[5][9], linAvAndDev[5][0], linAvAndDev[5][1]},\r\n {\"10,000,000\", lin[6][0], lin[6][1], lin[6][2], lin[6][3], lin[6][4], lin[6][5], lin[6][6], lin[6][7], lin[6][8], lin[6][9], linAvAndDev[6][0], linAvAndDev[6][1]},\r\n {\"BINARY SEARCH\", \"TEST 1\", \"TEST 2\", \"TEST 3\", \"TEST 4\", \"TEST 5\", \"TEST 6\", \"TEST 7\", \"TEST 8\", \"TEST 9\", \"TEST 10\", \"AVERAGE\", \"STANDARD DEV.\"},\r\n {\"500\", bin[0][0], bin[0][1], bin[0][2], bin[0][3], bin[0][4], bin[0][5], bin[0][6], bin[0][7], bin[0][8], bin[0][9], linAvAndDev[7][0], linAvAndDev[7][1]},\r\n {\"10,000\", bin[1][0], bin[1][1], bin[1][2], bin[1][3], bin[1][4], bin[1][5], bin[1][6], bin[1][7], bin[1][8], bin[1][9], linAvAndDev[8][0], linAvAndDev[8][1]},\r\n {\"100,000\", bin[2][0], bin[2][1], bin[2][2], bin[2][3], bin[2][4], bin[2][5], bin[2][6], bin[2][7], bin[2][8], bin[2][9], linAvAndDev[9][0], linAvAndDev[9][1]},\r\n {\"1,000,000\", bin[3][0], bin[3][1], bin[3][2], bin[3][3], bin[3][4], bin[3][5], bin[3][6], bin[3][7], bin[3][8], bin[3][9], linAvAndDev[10][0], linAvAndDev[10][1]},\r\n {\"5,000,000\", bin[4][0], bin[4][1], bin[4][2], bin[4][3], bin[4][4], bin[4][5], bin[4][6], bin[4][7], bin[4][8], bin[4][9], linAvAndDev[11][0], linAvAndDev[11][1]},\r\n {\"7,000,000\", bin[5][0], bin[5][1], bin[5][2], bin[5][3], bin[5][4], bin[5][5], bin[5][6], bin[5][7], bin[5][8], bin[5][9], linAvAndDev[12][0], linAvAndDev[12][1]},\r\n {\"10,000,000\", bin[6][0], bin[6][1], bin[6][2], bin[6][3], bin[6][4], bin[6][5], bin[6][6], bin[6][7], bin[6][8], bin[6][9], linAvAndDev[13][0], linAvAndDev[13][1]}};\r\n chart = new JTable(testResult, testNumbers);\r\n chart.setPreferredScrollableViewportSize(new Dimension(1500, 500)); // SETS SIZE OF CHART.\r\n chart.setFillsViewportHeight(true);\r\n JScrollPane scrollPane = new JScrollPane(chart);\r\n add(scrollPane);\r\n }", "public final void borderHysteresisThreshold(\r\n\t\t\tfinal int _lower,\r\n\t\t\tfinal int _upper) {\r\n\t\t\r\n\t\tBufferedImage bi_result = new BufferedImage(bi_image.getWidth(),\r\n\t\t\t\tbi_image.getHeight(), BufferedImage.TYPE_INT_RGB);\r\n\t\t\r\n\t\tdouble[][][] borderInfo1 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\t\t\r\n\t\t/*\r\n\t\t * Step 1: Detection of border pixel.\r\n\t\t */\r\n\t\t\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t\r\n\t\t\t\t//fold with \r\n\t\t\t\t//\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\t//\t-2/4\t0\t2/4\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\tint magnX = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\tint magnY = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//direction\r\n\t\t\t\tdouble direction;\r\n\t\t\t\tif (magnY != 0 && magnX != 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / magnY);\r\n\t\t\t\t} else if (magnY == 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / 0.01);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdirection = Math.atan(0);\r\n\t\t\t\t}\r\n\t\t\t\tdouble magnitude = Math.sqrt(magnX * magnX + magnY * magnY);\r\n\t\t\t\t\r\n\t\t\t\tmagnY = Math.abs(magnY);\r\n\t\t\t\tmagnX = Math.abs(magnX);\r\n\r\n\t\t\t\tborderInfo1[x][y][0] = magnitude;\r\n\t\t\t\tborderInfo1[x][y][1] = direction;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//non-maximum-suppression\r\n\r\n\t\tdouble[][][] borderInfo2 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t//nY\r\n\t\t\t\t// \r\n\t\t\t\t// |alpha\r\n\t\t\t\t// |\r\n\t\t\t\t// --------->nX\r\n\t\t\t\t// arctan(nX / ny) = Winkel(alpha). gegenkathete / ankathete\r\n\t\t\t\t//find neighbors of the pixel (x, y) by direction:\r\n\t\t\t\tdouble direction = borderInfo1[x][y][1];\r\n\r\n\t\t\t\tint nX = 1;\r\n\t\t\t\tint nY = 1;\r\n\t\t\t\tif (direction < 0)\r\n\t\t\t\t\tnX = -1;\r\n\t\t\t\telse if (direction > 0)\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (direction >= 0 && direction <= Math.PI / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 0;\r\n\t\t\t\t} else if (direction >= Math.PI / 4 && direction <= Math.PI * 2 / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else if (direction >= -Math.PI / 4 && direction <= 0) {\r\n\t\t\t\t\tnX = 0; \r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t// - pi / 2 ; + pi / 2\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t\t\tif (Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])\r\n\t\t\t\t\t\t&& Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])) {\r\n\t\t\t\t\tborderInfo2[x][y][0] = borderInfo1[x][y][0];\r\n\t\t\t\t\tborderInfo2[x][y][1] = borderInfo1[x][y][1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//hysteresis-threshold\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _lower){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_potential);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _upper){\r\n\t\t\t\t\tfollowEdge(x, y, bi_result);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (bi_result.getRGB(x, y) == rgb_potential){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t} else if (bi_result.getRGB(x, y) == rgb_border) {\r\n\t\t\t\t\tbi_result.setRGB(x, y, bi_image.getContent().getRGB(x, y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tBufferedViewer.show(bi_result);\r\n\t\tBufferedViewer.getInstance().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t}", "public double getLowThreshold(){\n return lowThreshold;\n }", "@Test\n public void test47() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n MeterPlot meterPlot0 = new MeterPlot();\n Color color0 = (Color)meterPlot0.getTickPaint();\n meterPlot0.setTickSize(2047.01004);\n combinedRangeCategoryPlot0.setRangeCrosshairPaint(color0);\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getDomainAxisLocation();\n combinedRangeCategoryPlot0.setRangeAxisLocation(axisLocation0, true);\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer(false, true);\n lineAndShapeRenderer0.setUseSeriesOffset(true);\n int int0 = combinedRangeCategoryPlot0.getIndexOf(lineAndShapeRenderer0);\n RectangleInsets rectangleInsets0 = combinedRangeCategoryPlot0.getAxisOffset();\n BasicStroke basicStroke0 = (BasicStroke)AbstractRenderer.DEFAULT_OUTLINE_STROKE;\n combinedRangeCategoryPlot0.setRangeGridlineStroke(basicStroke0);\n }", "public void setThreshold(int t) {\r\n\t\t\tthis.t = t;\r\n\t\t}", "private static void reportStatistics() {\n SmartDashboard.putNumber(\"Speed value\", speed);\n SmartDashboard.putNumber(\"Desired RPM\", kVelocitySetpoint);\n SmartDashboard.putNumber(\"Error\", error);\n SmartDashboard.putNumber(\"ErrorSum\", errorSum);\n SmartDashboard.putNumber(\"Flywheel Velocity (Master)\", -flywheelMaster.getSelectedSensorVelocity());\n\n if(d >= kMinThreePoint && d <= kMaxThreePoint) { //If we are in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we are not in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(false); //Alert operator\n }\n\n if(d >= kMinViableRange && d <= kMaxViableRange) { //If we are in the viable range for any power port shot\n viableDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we cannot make a shot into the power port\n viableDistanceEntry.setBoolean(false); //Alert operator\n }\n }", "double getUpperThreshold();", "private double getMinThreshold() {\n return minThreshold;\n }", "public Binarization(int threshold) {\n this.threshold = threshold;\n }", "private void histogramScore() {\r\n View.histogram(score, 0, this.getSize().width + 15, 0);\r\n }", "public List<Output<TInt32>> thresholdsList() {\n return thresholdsList;\n }", "public double getPercentThreshold()\n {\n return percentThreshold;\n }", "public void showBarChart() {\r\n\r\n // Count classes\r\n int neutralCountPred = 0;\r\n int negativeCountPred = 0;\r\n int positiveCountPred = 0;\r\n\r\n int neutralCountAnsw = 0;\r\n int negativeCountAnsw = 0;\r\n int positiveCountAnsw = 0;\r\n\r\n for(Integer pred : predictions.values()) {\r\n switch (pred.intValue()) {\r\n case 0:\r\n negativeCountPred++;\r\n break;\r\n case 1:\r\n neutralCountPred++;\r\n break;\r\n case 2:\r\n positiveCountPred++;\r\n break;\r\n default:\r\n System.err.println(\"Illegal class index\");\r\n break;\r\n }\r\n }\r\n System.out.printf(\"PREDICTED \\nnegativeCountPred = %d, neutralCountPred = %d, positiveCountPred = %d\", negativeCountPred,\r\n neutralCountPred, positiveCountPred);\r\n\r\n for(Integer answer : rightAnswers.values()) {\r\n switch (answer.intValue()) {\r\n case 0:\r\n negativeCountAnsw++;\r\n break;\r\n case 1:\r\n neutralCountAnsw++;\r\n break;\r\n case 2:\r\n positiveCountAnsw++;\r\n break;\r\n default:\r\n System.err.println(\"Illegal class index\");\r\n break;\r\n }\r\n }\r\n System.out.printf(\"\\nRIGHT ANSWERS \\nnegativeCountAnsw = %d, neutralCountAnsw = %d, positiveCountAnsw = %d\", negativeCountAnsw,\r\n neutralCountAnsw, positiveCountAnsw);\r\n\r\n // Predicted classes\r\n XYChart.Series<String, Number> dataSeries1 = new XYChart.Series();\r\n dataSeries1.setName(\"Predicted\");\r\n dataSeries1.getData().add(new XYChart.Data(\"Neutral\", neutralCountPred));\r\n dataSeries1.getData().add(new XYChart.Data(\"Positive\", positiveCountPred));\r\n dataSeries1.getData().add(new XYChart.Data(\"Negative\", negativeCountPred));\r\n resultChart.getData().add(dataSeries1);\r\n\r\n // Predicted classes\r\n XYChart.Series<String, Number> dataSeries2 = new XYChart.Series();\r\n dataSeries2.setName(\"Right answers\");\r\n dataSeries2.getData().add(new XYChart.Data(\"Neutral\", neutralCountAnsw));\r\n dataSeries2.getData().add(new XYChart.Data(\"Positive\", positiveCountAnsw));\r\n dataSeries2.getData().add(new XYChart.Data(\"Negative\", negativeCountAnsw));\r\n resultChart.getData().add(dataSeries2);\r\n\r\n }", "@Test\n\tpublic void missingBoundaryValuesAreFilledWithBadQualityValues() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 10, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tt1.addValue(new SampledValue(new FloatValue(234F), 60, Quality.BAD));\n\t\tt0.setInterpolationMode(InterpolationMode.STEPS);\n\t\tt1.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 14, avg.size());\n\t\tAssert.assertEquals(InterpolationMode.STEPS, avg.getInterpolationMode());\n\t\t// now we calculate it again, this time demanding boundary markers\n\t\tfinal ReadOnlyTimeSeries avg2 = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130, true, null, true);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 15, avg2.size());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(0).getQuality());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(9).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(10).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(11).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(130).getQuality());\n\t}", "private void initialize() {\n // Create a panel with the labels for the colorbar.\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.LINE_AXIS));\n labelPanel.add(minLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(medLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(maxLabel);\n\n // Add the color panel\n gradientPanel = new LinearGradientTools.ColorGradientPanel();\n\n // Add the panel indicating the error value color.\n errorPanel = new JPanel();\n //errorPanel.setBackground(heatMapModel.getColorScheme().getErrorReadoutColor());\n\n // Create a label for the panel indicating the missing value color.\n errorLabel = new JLabel(\" Err \");\n errorLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Add the panel indicating the missing value color.\n JPanel emptyPanel = new JPanel();\n emptyPanel.setBackground(ColorScheme.EMPTY_READOUT);\n\n // Create a label for the panel indicating the missing value color.\n emptyLabel = new JLabel(\" Empty \");\n emptyLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Set the font of the labels\n setLabelFont(labelFontSize);\n\n // Add the component to the main panel\n setLayout(new GridBagLayout());\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 0.9;\n constraints.fill = GridBagConstraints.BOTH;\n add(gradientPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(labelPanel, constraints);\n\n constraints.gridx = 1;\n constraints.weightx = -1;\n add(errorLabel, constraints);\n constraints.gridy = 0;\n constraints.weighty = 0.9;\n add(errorPanel, constraints);\n\n constraints.gridx = 2;\n add(emptyPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(emptyLabel, constraints);\n }", "public void setX_ValuesForHazardCurve(){\n useCustomX_Values = false;\n }", "@Override\r\n\tprotected void afterStep() {\r\n\t\tif (pr_disappearing_potential > 0) {\r\n\t\t\tfor (V v : graph.getVertices()) {\r\n\t\t\t\tif (v instanceof TopicVertex) {\r\n\t\t\t\t\tsetOutputValue(v, getOutputValue(v) + (1 - alpha)\r\n\t\t\t\t\t\t\t* (pr_disappearing_potential * getVertexPrior(v)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpr_disappearing_potential = 0;\r\n\t\t}\r\n\t\t// not necessary for hits-hub\r\n\t\t// if (disappearing_potential.hub > 0) {\r\n\t\t// for (V v : graph.getVertices()) {\r\n\t\t// if (v instanceof TopicVertex) {\r\n\t\t// double new_hub = getOutputValue(v)\r\n\t\t// + (1 - alpha)\r\n\t\t// * (hitsCoeff * disappearing_potential.hub * getVertexPrior(v));\r\n\t\t// setOutputValue(v, new_hub);\r\n\t\t// } else if (v instanceof TopicCategoryVertex) {\r\n\t\t// // auth and hub of topic category\r\n\t\t// }\r\n\t\t// }\r\n\t\t// disappearing_potential.hub = 0;\r\n\t\t// }\r\n\t\t// if (disappearing_potential.authority > 0) {\r\n\t\t// for (V v : graph.getVertices()) {\r\n\t\t// if (v instanceof TopicCategoryVertex) {\r\n\t\t// double new_auth = getOutputValue(v)\r\n\t\t// + (1 - alpha)\r\n\t\t// * (hitsCoeff * disappearing_potential.authority * getVertexPrior(v));\r\n\t\t// setOutputValue(v, new_auth);\r\n\t\t// }\r\n\t\t// }\r\n\t\t// disappearing_potential.authority = 0;\r\n\t\t// }\r\n\r\n\t\tsuper.afterStep();\r\n\t}", "public void prune(double belowThreshold) {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n if(get(first, second)<belowThreshold) {\n set(first, second, 0.0);\n }\n \n }\n \n }\n \n }", "public void setGainResults(){\n TextView editTextGainFactor = (TextView ) findViewById(R.id.EditTextGainFactor);\n TextView editTextGainValue = (TextView ) findViewById(R.id.EditTextGainValue);\n\n // Tedius but robust rounding steps\n double tempGF = Globals.f.getGF() * 1000.0;\n tempGF = Math.round(tempGF);\n tempGF = tempGF / 1000.0;\n double tempPP = Globals.f.getPP() * 1000.0;\n tempPP = Math.round(tempPP);\n tempPP = tempPP / 1000.0;\n\n\n //gFactorString.format(\"%.2f\", Globals.f.getGF());\n\n // The Gain Value is only displayed if it was calculated\n editTextGainFactor.setText(Double.toString(tempGF), TextView.BufferType.NORMAL);\n if (!Double.isNaN(Globals.f.getPP())) {\n editTextGainValue.setText(Double.toString(tempPP), TextView.BufferType.NORMAL);\n }\n else\n editTextGainValue.setText(\"-\", TextView.BufferType.NORMAL);\n\n //Get handles to the text boxes\n TextView gainDescriptor = (TextView ) findViewById(R.id.EditTextDesrip1);\n TextView valueDescriptor = (TextView ) findViewById(R.id.EditTextDesrip2);\n\n // Set the descriptors based on research\n if (tempGF < 0.5)\n gainDescriptor.setText(\"(Low Gains)\", TextView.BufferType.NORMAL);\n else if (tempGF < 1.5)\n gainDescriptor.setText(\"(Moderate Gains)\", TextView.BufferType.NORMAL);\n else if (tempGF < 2.0)\n gainDescriptor.setText(\"(High Gains)\", TextView.BufferType.NORMAL);\n else if (tempGF >= 2.0)\n gainDescriptor.setText(\"(Extreme Gains)\", TextView.BufferType.NORMAL);\n\n\n if (tempPP < 50)\n valueDescriptor.setText(\"(Poor Value)\", TextView.BufferType.NORMAL);\n else if (tempPP < 200)\n valueDescriptor.setText(\"(Moderate Value)\", TextView.BufferType.NORMAL);\n else if (tempPP >= 200)\n valueDescriptor.setText(\"(Great Value)\", TextView.BufferType.NORMAL);\n else\n valueDescriptor.setText(\"(-)\", TextView.BufferType.NORMAL);\n\n }", "public void setThreshold(int inputThreshold) {\r\n\t\tthis.threshold = inputThreshold;\r\n\t}", "@Test\n public void test20() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\" twtGuHO\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n Polygon polygon0 = new Polygon();\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n List list0 = defaultKeyedValuesDataset0.getKeys();\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) list0, (Dataset) defaultKeyedValuesDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n RectangleInsets rectangleInsets0 = new RectangleInsets();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }", "public Threshold ( Behavior behavior, Target target, float threshold,\n\t int c ) {\n\t\tsuper(c);\n\t\tbehavior_ = behavior;\n\t\ttarget_ = target;\n\t\tthreshold_ = threshold;\n\t}", "@Test\n public void test63() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double();\n line2D_Double0.setLine(0.0, 0.0, 0.0, 1771.47);\n Line2D.Double line2D_Double1 = (Line2D.Double)line2D_Double0.clone();\n line2D_Double0.x1 = (-2132.1281977718654);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(2000.0);\n boolean boolean0 = combinedRangeCategoryPlot0.equals(defaultValueDataset0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot();\n PlotOrientation plotOrientation0 = thermometerPlot0.getOrientation();\n combinedRangeCategoryPlot0.setOrientation(plotOrientation0);\n }", "public interface CustomThresholdProvider {\n\t/**\n\t * Returns threshold status.\n\t * @return current status.\n\t */\n\tThresholdStatus getStatus();\n\n\t/**\n\t * Returns current threshold value.\n\t * @return current value.\n\t */\n\tString getCurrentValue();\n}", "public AdjustPeaksForPixelSensitivity_2(){\n super(\"AdjustPeaksForPixelSensitivity_2\");\n }", "private void tooHigh() {\n if (this.hitPoints > 255) {\n System.out.println(\"You set the value too high! Setting it to 255\");\n this.hitPoints = 255;\n }\n }", "@Override\n public void onValueSelected(Entry e, int dataSetIndex, Highlight h) {\n if (e == null)\n return;\n\n dataset_line.setDrawValues(true);\n dataset_line2.setDrawValues(true);\n PlaceholderFragment.toastLineChart(getContext(),arrayListKonsum.get(e.getXIndex()));\n //Toast.makeText(getActivity(), arrayListKonsum.get(e.getXIndex()), Toast.LENGTH_SHORT).show();\n }", "@Test\n public void test75() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n Line2D.Double line2D_Double0 = new Line2D.Double(5.0E9, 5.0E9, 5.0E9, 5.0E9);\n combinedRangeCategoryPlot0.clearRangeAxes();\n boolean boolean1 = combinedRangeCategoryPlot0.isDomainGridlinesVisible();\n combinedRangeCategoryPlot0.setDomainAxis(1, (CategoryAxis) null, false);\n PlotOrientation plotOrientation0 = PlotOrientation.VERTICAL;\n combinedRangeCategoryPlot0.setOrientation(plotOrientation0);\n CategoryItemRenderer categoryItemRenderer0 = combinedRangeCategoryPlot0.getRenderer();\n combinedRangeCategoryPlot0.clearAnnotations();\n StyleConstants styleConstants0 = (StyleConstants)AttributeSet.NameAttribute;\n HistogramDataset histogramDataset0 = new HistogramDataset();\n int[] intArray0 = new int[7];\n intArray0[0] = 1;\n intArray0[1] = 1;\n intArray0[2] = 1;\n intArray0[3] = 1;\n intArray0[4] = 1;\n intArray0[5] = 1;\n intArray0[6] = 1;\n SubSeriesDataset subSeriesDataset0 = new SubSeriesDataset((SeriesDataset) histogramDataset0, intArray0);\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) styleConstants0, (Dataset) subSeriesDataset0);\n combinedRangeCategoryPlot0.datasetChanged(datasetChangeEvent0);\n }", "@Test\n public void test28() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n CategoryAnchor categoryAnchor0 = combinedRangeCategoryPlot0.getDomainGridlinePosition();\n RectangleEdge rectangleEdge0 = combinedRangeCategoryPlot0.getRangeAxisEdge((-119));\n }", "public void addGTTotalToretObj(PbReturnObject newCrossPb) {\r\n //\r\n // for(int iloop=0;iloop<GTCol.length;iloop++)//Amit Commented to correct GT Order 16May2011\r\n HashMap<String, ArrayList> tempGt = new HashMap<String, ArrayList>();\r\n// //added by Nazneen\r\n// for(int i=0;i<Qrycolumns.size();i++){\r\n// int getTheMeasurePosInOldRetObj =oColumnList.indexOf(\"A_\"+Qrycolumns.get(i));\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n// }\r\n zerocntretobj = newCrossPb;//bhargavi\r\n this.forzerocount(); //bhargavi\r\n for (int i = 0; i < Qrycolumns.size(); i++) {\r\n int getTheMeasurePosInOldRetObj = oColumnList.indexOf(\"A_\" + Qrycolumns.get(i));\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n boolean flag = checkforChangepercentMsr((String) Qrycolumns.get(i));\r\n ArrayList<String> list = new ArrayList<String>();\r\n if (flag) {\r\n list = getCuurentAndPriorElementIDs((String) Qrycolumns.get(i));\r\n if (list != null && !list.isEmpty()) {\r\n // \r\n // if(list.containsAll(Qrycolumns)){\r\n if (Qrycolumns.containsAll(list)) {\r\n // \r\n ArrayList list1 = tempGt.get((String) list.get(0));\r\n ArrayList list2 = tempGt.get((String) list.get(1));\r\n // \r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n BigDecimal curr = BigDecimal.ZERO;\r\n BigDecimal prior = BigDecimal.ZERO;\r\n BigDecimal crctVal = BigDecimal.ZERO;\r\n BigDecimal sub = BigDecimal.ZERO;\r\n curr = (BigDecimal) list1.get(k);\r\n prior = (BigDecimal) list2.get(k);\r\n // \r\n if (prior.intValue() != 0) {\r\n sub = curr.subtract(prior);\r\n crctVal = (sub.divide(prior, MathContext.DECIMAL32)).multiply(new BigDecimal(100));\r\n }\r\n // \r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, crctVal);\r\n }\r\n }\r\n }\r\n }\r\n if (colViewCount < 2) {\r\n String eleId = Qrycolumns.get(i).toString();\r\n String gtCTAvgTypeStr = \"\";\r\n if (gtCTAvgType != null && gtCTAvgType.containsKey(\"A_\" + eleId)) {\r\n gtCTAvgTypeStr = gtCTAvgType.get(\"A_\" + eleId);\r\n }\r\n if (MsrAggregationMap != null && MsrAggregationMap.containsKey(Qrycolumns.get(i).toString())) {\r\n if (MsrAggregationMap.get(Qrycolumns.get(i).toString()).toString().equalsIgnoreCase(\"avg\") || gtCTAvgTypeStr.equalsIgnoreCase(\"AVG\")) {\r\n int cnt = colViewSortedValues[0].size();\r\n //commmented by Nazneen\r\n// ArrayList list1=tempGt.get((String)Qrycolumns.get(i));\r\n//// \r\n// BigDecimal count = new BigDecimal(cnt);\r\n// for(int k=0;k<GTCol[0].size();k++){\r\n// BigDecimal gtValue = BigDecimal.ZERO;\r\n// BigDecimal finalVal = BigDecimal.ZERO;\r\n// gtValue=(BigDecimal)list1.get(k);\r\n// finalVal=gtValue.divide(count,MathContext.DECIMAL32);\r\n// GTCol[getTheMeasurePosInOldRetObj-totalColBefore].set(k, finalVal);\r\n// }\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n// //added by Nazneen for Avg cols created by formula's\r\n String qry = \"select ACTUAL_COL_FORMULA,REFFERED_ELEMENTS,USER_COL_TYPE,REF_ELEMENT_TYPE,AGGREGATION_TYPE from PRG_USER_ALL_INFO_DETAILS where ELEMENT_ID =\" + eleId;\r\n PbDb pbdb = new PbDb();\r\n try {\r\n PbReturnObject retobj = pbdb.execSelectSQL(qry);\r\n if (retobj.getRowCount() > 0) {\r\n String tempFormula = retobj.getFieldValueString(0, 0);\r\n String refferedElements = retobj.getFieldValueString(0, 1);\r\n String userColType = retobj.getFieldValueString(0, 2);\r\n String refElementType = retobj.getFieldValueString(0, 3);\r\n String aggType = retobj.getFieldValueString(0, 4);\r\n tempFormula = tempFormula.replace(\"SUM\", \"\").replace(\"AVG\", \"\").replace(\"MIN\", \"\").replace(\"MAX\", \"\").replace(\"COUNT\", \"\").replace(\"COUNTDISTINCT\", \"\");\r\n if (!userColType.equalsIgnoreCase(\"summarized\") && !userColType.equalsIgnoreCase(\"calculated\") && aggType.equalsIgnoreCase(\"avg\") || gtCTAvgTypeStr.equalsIgnoreCase(\"AVG\")) {\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(k);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n } else if (userColType.equalsIgnoreCase(\"SUMMARIZED\")) {\r\n String refEleArray[] = refferedElements.split(\",\");\r\n int len = refEleArray.length;\r\n int flag1 = 1;\r\n for (int j = 0; j < len; j++) {\r\n String elementId = refEleArray[j];\r\n String getBussColName = \"select USER_COL_NAME from PRG_USER_ALL_INFO_DETAILS where ELEMENT_ID =\" + elementId;\r\n PbReturnObject retobj1 = pbdb.execSelectSQL(getBussColName);\r\n if (retobj1.getRowCount() > 0) {\r\n String bussColName = retobj1.getFieldValueString(0, 0);\r\n if (tempFormula.contains(bussColName)) {\r\n tempFormula = tempFormula.replace(bussColName, elementId);\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n }\r\n ScriptEngineManager mgr = new ScriptEngineManager();\r\n ScriptEngine engine = mgr.getEngineByName(\"JavaScript\");\r\n String formula = \"\";\r\n int flagVal = 1;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n String newFormula = tempFormula;\r\n for (int j = 0; j < len; j++) {\r\n String elementId = refEleArray[j];\r\n flagVal = 1;\r\n if (Qrycolumns.contains(elementId)) {\r\n if (tempGt.get(elementId) != null) {\r\n if (tempGt.get(elementId).get(k) != null) {\r\n BigDecimal val = (BigDecimal) tempGt.get(elementId).get(k);\r\n newFormula = newFormula.replace(elementId, tempGt.get(elementId).get(k).toString());\r\n } else {\r\n if (newFormula.contains(elementId)) {\r\n flagVal = 0;\r\n }\r\n }\r\n } else {\r\n if (newFormula.contains(elementId)) {\r\n flagVal = 0;\r\n }\r\n }\r\n } else {\r\n flagVal = 0;\r\n }\r\n if (flagVal == 0) {\r\n break;\r\n }\r\n }\r\n if (flagVal == 1) {\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER)) {\r\n newFormula = \"SELECT \" + newFormula;\r\n } else if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n } else {\r\n newFormula = \"SELECT \" + newFormula + \" FROM DUAL\";\r\n }\r\n if (!ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n PbReturnObject retobj2 = pbdb.execSelectSQL(newFormula);\r\n if (retobj2.getRowCount() > 0) {\r\n formula = retobj2.getFieldValueString(0, 0);\r\n if (formula.equalsIgnoreCase(\"\")) { //Condition added By Govardhan\r\n formula = \"0.00\";\r\n }\r\n BigDecimal finalValue = new BigDecimal(formula);\r\n finalValue = finalValue.setScale(2, RoundingMode.CEILING);\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalValue);\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n //code modified by bhargavi\r\n int z = i;\r\n for (int o = 0; o < GTCol[0].size(); o++) {\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(o);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(o, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n }\r\n } catch (SQLException ex) {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n //code modified by bhargavi\r\n int z = i;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(k);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n logger.error(\"Exception:\", ex);\r\n }\r\n } else {\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n }\r\n //end of code by Nazneen\r\n }\r\n }\r\n }\r\n for (int iloop = 0; iloop < Qrycolumns.size(); iloop++) {\r\n boolean addGTTest = true;\r\n colGenerator++;\r\n String newColadd = \"A_\" + colGenerator;\r\n// \r\n int getTheMeasurePosInOldRetObj = oColumnList.indexOf(\"A_\" + Qrycolumns.get(iloop));\r\n //getTheMeasurePosInOldRetObj\r\n //newCrossPb.addColumn(newCrossPb.getColumnCount()-1, newColadd, finalColumnTypesInt.get(coli));\r\n int currPos = totalColFilled;//\r\n newCrossPb.cols[currPos] = newColadd;\r\n// newCrossPb.columnTypes[currPos]=this.columnTypes[iloop+totalColBefore];\r\n// newCrossPb.columnTypesInt[currPos]=this.columnTypesInt[iloop+totalColBefore] ;\r\n// newCrossPb.columnSizes[currPos]=this.columnSizes[iloop+totalColBefore] ;\r\n newCrossPb.columnTypes[currPos] = this.columnTypes[getTheMeasurePosInOldRetObj];\r\n newCrossPb.columnTypesInt[currPos] = this.columnTypesInt[getTheMeasurePosInOldRetObj];\r\n newCrossPb.columnSizes[currPos] = this.columnSizes[getTheMeasurePosInOldRetObj];\r\n ArrayList a = GTCol[getTheMeasurePosInOldRetObj - totalColBefore];\r\n newCrossPb.hMap.put(newColadd, a);\r\n totalColFilled++;\r\n// String mName1 =this.cols[totalColBefore+iloop];\r\n// mName1= mName1.replace(\"A_\", \"\");\r\n// int newPos=iloop;\r\n// if(mName1!=null && mName1.length()>0)\r\n// newPos = Qrycolumns.indexOf(mName1);\r\n\r\n ArrayList b = new ArrayList();\r\n for (int cloop = 0; cloop <= colViewCount; cloop++) {\r\n if (cloop == MeasurePos) {\r\n if (crosstabMsrMap != null && crosstabMsrMap.containsKey(queryMeasureName.get(iloop).toString())) {\r\n b.add(crosstabMsrMap.get(queryMeasureName.get(iloop)));\r\n } else {\r\n b.add(nonViewInput.get(queryMeasureName.get(iloop)));//Code change for GT order\r\n } //written by swati\r\n finalCrossTabReportDrillMap.put(newColadd, reportDrillMap.get(queryMeasureName.get(iloop)));\r\n crosstabMeasureId.put(newColadd, queryMeasureName.get(iloop));\r\n// if(!crosstablist.isEmpty()){\r\n// if(lLoop1<crosstablist.size()){\r\n// crosstabmeasureIdsmap.put(crosstablist.get(lLoop1), \"A\"+colGenerator);\r\n// lLoop1++;\r\n// }\r\n// }\r\n// crosstabmeasureIdsmap.put(queryMeasureName.get(iloop), newColadd);\r\n } else {\r\n if (addGTTest == true) {\r\n b.add(GTDisplayName);\r\n addGTTest = false;\r\n } else {\r\n b.add(\"\");\r\n }\r\n }\r\n }\r\n nonViewByMapNew.put(newColadd, b);\r\n nonViewByMapNew1.put(newColadd, b);\r\n GTColName.add(newColadd);\r\n }\r\n\r\n //return(newColadd);\r\n }", "@Test\n\tpublic void gapsLeadToBadQuality() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 0, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tt1.addValue(new SampledValue(new FloatValue(234F), 60, Quality.BAD));\n\t\tt0.setInterpolationMode(InterpolationMode.STEPS);\n\t\tt1.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 110);\n\t\tAssert.assertEquals(\"Unexpected quality\",Quality.GOOD, avg.getValue(59).getQuality());\n\t\tAssert.assertEquals(\"Unexpected quality\",Quality.BAD, avg.getValue(60).getQuality());\n\t\tAssert.assertEquals(\"Unexpected quality\",Quality.BAD, avg.getValue(63).getQuality());\n\t\tAssert.assertEquals(\"Unexpected quality\",Quality.GOOD, avg.getValue(70).getQuality());\n\t}", "public BarChart() {\n\n\t\t//set the initial size of the store for curve data\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tcvV.add(new CurveData());\n\t\t}\n\n\t\tbarChartPanel.add(GP, BorderLayout.CENTER);\n\n\t\tBorder etchedBorder = BorderFactory.createEtchedBorder();\n\t\tborder = BorderFactory.createTitledBorder(etchedBorder, \"Title\");\n\t\tborder.setTitleColor(Color.blue);\n\t\tbarChartPanel.setBorder(border);\n\n\t\tMarkerFormat = new MarkerFormat(barColumns);\n\n\t\tGP.setSmartGL(false);\n\t\tGP.setNumberFormatX(MarkerFormat);\n\n\t\tGP.addHorLimitsListener(\n\t\t\t\t\t\t\t\tnew ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tint nClmns = barColumns.size();\n\t\t\t\tint nMaxLines = 0;\n\t\t\t\tjava.util.Iterator<BarColumn> itr = barColumns.iterator();\n\t\t\t\twhile (itr.hasNext()) {\n\t\t\t\t\tBarColumn bc = itr.next();\n\t\t\t\t\tif (nMaxLines < bc.size()) {\n\t\t\t\t\t\tnMaxLines = bc.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (nClmns > 0 && nMaxLines > 0) {\n\t\t\t\t\t//int iMin = GP.getScreenX(GP.getCurrentMinX());\n\t\t\t\t\t//int iMax = GP.getScreenX(GP.getCurrentMaxX());\n\t\t\t\t\tint iMin = GP.getScreenX(GP.getInnerMinX());\n\t\t\t\t\tint iMax = GP.getScreenX(GP.getInnerMaxX());\n\n\t\t\t\t\twidth = (int) ((iMax - iMin) / (1.9 * nMaxLines * nClmns));\n\t\t\t\t\tif (width < 1) {\n\t\t\t\t\t\twidth = 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int i = 1, n = Math.min(nClmns * nMaxLines + 1, cvV.size()); i < n; i++) {\n\t\t\t\t\t\tCurveData cd = cvV.get(i);\n\t\t\t\t\t\tcd.setLineWidth(width);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tRunnable runRefresh =\n\t\t\t\tnew Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tGP.refreshGraphJPanel();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread mThread = new Thread(runRefresh);\n\t\t\t\tmThread.start();\n\t\t\t}\n\t\t});\n\n\t\t//operations with clicked point object\n\t\tJLabel infoLabel = new JLabel(\" Clicked Point Info: \", JLabel.CENTER);\n\n\t\tFunctionGraphsJPanel.ClickedPoint cpObj = GP.getClickedPointObject();\n\t\tcpObj.xValueLabel = new JLabel(\"X-Marker=\", JLabel.RIGHT);\n\t\tcpObj.xValueFormat = MarkerFormat;\n\t\tcpObj.xValueText = new JTextField(10);\n\t\tcpObj.xValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.xValueText.setForeground(Color.blue);\n\n\t\tcpObj.yValueLabel = new JLabel(\" Value=\", JLabel.RIGHT);\n\t\tcpObj.yValueFormat = fortranFrmt;\n\t\tcpObj.yValueText = new JTextField(12);\n\t\tcpObj.yValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.yValueText.setForeground(Color.blue);\n\n\t\tJPanel infoPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 0));\n\t\tinfoPanel.add(infoLabel);\n\t\tinfoPanel.add(cpObj.xValueLabel);\n\t\tinfoPanel.add(cpObj.xValueText);\n\t\tinfoPanel.add(cpObj.yValueLabel);\n\t\tinfoPanel.add(cpObj.yValueText);\n\n\t\tbarChartPanel.add(infoPanel, BorderLayout.SOUTH);\n\t}", "@Test\n public void test76() throws Throwable {\n Number[][] numberArray0 = new Number[0][4];\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"Category_Plot\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, (CategoryAxis) categoryAxis3D0, (ValueAxis) numberAxis3D0, (CategoryItemRenderer) null);\n Color color0 = (Color)SpiderWebPlot.DEFAULT_LABEL_OUTLINE_PAINT;\n LookupPaintScale lookupPaintScale0 = null;\n try {\n lookupPaintScale0 = new LookupPaintScale(10.0, (-1.0), (Paint) color0);\n } catch(IllegalArgumentException e) {\n //\n // Requires lowerBound < upperBound.\n //\n assertThrownBy(\"org.jfree.chart.renderer.LookupPaintScale\", e);\n }\n }", "private void drawTextArea(Graphics g) {\n // declare local variables:\n int buffer;\n int horizontalBars;\n int greatestMinimum;\n int greatestMaximum;\n int dataMinimums[];\n int dataMaximums[];\n int heightDifference;\n double verticalDifference;\n DisplayData displayData[];\n BigDecimal horizontalLevels[];\n // end of local variables declaration\n\n\n // set the drawing colour\n g.setColor(Color.WHITE);\n\n // determine what data is displayed\n displayData = format.getDisplayData();\n\n // check for null pointer\n if(displayData == null || data == null) {\n // exit\n return;\n } // end of if statement\n \n // initialize the minimums and maximums\n dataMinimums = new int[displayData.length];\n dataMaximums = new int[displayData.length];\n\n // get the minimums and maximums\n for(int c = 0; c < displayData.length; c++) {\n //\n switch(displayData[c]) {\n case CLOSE_PRICES:\n dataMinimums[c] = data.getMinimum(data.getClosePrices(bars) );\n dataMaximums[c] = data.getMaximum(data.getClosePrices(bars) );\n break;\n\n case HIGH_PRICES:\n dataMinimums[c] = data.getMinimum(data.getHighPrices(bars) );\n dataMaximums[c] = data.getMaximum(data.getHighPrices(bars) );\n break;\n\n case LOW_PRICES:\n dataMinimums[c] = data.getMinimum(data.getLowPrices(bars) );\n dataMaximums[c] = data.getMinimum(data.getLowPrices(bars) );\n break;\n\n case VOLUMES:\n dataMinimums[c] = data.getMinimum(data.getVolumes(bars) );\n dataMaximums[c] = data.getMinimum(data.getVolumes(bars) );\n break;\n } // end of switch statement\n\n } // end of for loop\n\n // find the greatest minimums and greatest maximum\n greatestMinimum = data.getMinimum(dataMinimums);\n greatestMaximum = data.getMaximum(dataMaximums);\n\n // find the heightDifference\n heightDifference = greatestMaximum - greatestMinimum;\n\n // check for logical error\n if(heightDifference == 0 || heightDifference < 0 ) {\n // exit from method\n return;\n } // end of if statement\n\n // find the horizontal bars\n horizontalBars = (getHeight() - 50 ) / 35 ;\n\n // find the verticalDifference\n verticalDifference = heightDifference / horizontalBars ;\n\n // initialize the horizontal levels array\n horizontalLevels = new BigDecimal[horizontalBars+1];\n\n // resolve the horizontal levels array\n for(int c = 0; c < horizontalLevels.length ; c++) {\n buffer = (int ) greatestMinimum + c* ( (int ) Math.round(verticalDifference) );\n horizontalLevels[c] = new BigDecimal(Integer.toString( buffer ) );\n horizontalLevels[c] = horizontalLevels[c].movePointLeft(digitsAfterDot);\n } // end of for loop\n\n // add the maximum\n horizontalLevels[horizontalLevels.length-1] = new BigDecimal(Integer.toString(greatestMaximum) );\n horizontalLevels[horizontalLevels.length-1] = horizontalLevels[horizontalLevels.length-1].movePointLeft(digitsAfterDot);\n\n // draw the horizontal bars\n for(int c = 0; c < horizontalLevels.length; c++) {\n g.drawLine(getWidth()-textAreaLenght,\n getHeight() - 30 - c* ( 35 + ( Math.round ( (( getHeight() - 50 ) % 35) / horizontalBars ) ) ),\n getWidth()-textAreaLenght+5,\n getHeight() - 30 - c* ( 35 + ( Math.round ( (( getHeight() - 50 ) % 35) / horizontalBars ) ) ) );\n } // end of for loop\n\n // draw the horizontalLevel prices\n for(int c = 0 ; c < horizontalLevels.length; c++) {\n // draw the current horizontal level \n g.drawString(horizontalLevels[c].toString() , getWidth()-textAreaLenght+10,\n getHeight() + 5 - 30 - c* ( 35 + ( Math.round ( (( getHeight() - 50 ) % 35) / horizontalBars ) ) ) );\n } // end of if statement\n\n }" ]
[ "0.6521635", "0.6019187", "0.60070306", "0.5969623", "0.59208995", "0.581077", "0.57336044", "0.57099485", "0.5682734", "0.5677832", "0.5656968", "0.56069475", "0.55565816", "0.5552601", "0.55276674", "0.5510931", "0.54805636", "0.5464538", "0.5450206", "0.5436101", "0.54346406", "0.5422405", "0.54175323", "0.54072297", "0.53862303", "0.5348103", "0.53455764", "0.53314155", "0.529738", "0.5274643", "0.5271467", "0.5265525", "0.5248516", "0.5243875", "0.5243799", "0.52353185", "0.52316916", "0.5229467", "0.5207852", "0.52048224", "0.519524", "0.51744777", "0.51738995", "0.51697624", "0.51559615", "0.5148327", "0.5144399", "0.5122472", "0.51179194", "0.5117266", "0.5106975", "0.5099187", "0.5093842", "0.50901824", "0.50896424", "0.5087368", "0.5085507", "0.50802845", "0.50800836", "0.50777584", "0.50580233", "0.5050022", "0.5048238", "0.5047662", "0.50430673", "0.5040503", "0.5040116", "0.50164276", "0.5015254", "0.50131285", "0.5009561", "0.4998487", "0.49918094", "0.49758357", "0.49749988", "0.4973446", "0.49723616", "0.49719065", "0.49498725", "0.49462056", "0.49430817", "0.49409935", "0.49357712", "0.49294397", "0.49264684", "0.49139673", "0.4912679", "0.490607", "0.4893775", "0.48896036", "0.48877126", "0.48831972", "0.48769367", "0.4876151", "0.48723298", "0.48715696", "0.48660782", "0.4865148", "0.4864648", "0.486339" ]
0.5522771
15
COPY only last generated reports
private void copyReportsFromWorkspaceToArtifactsDir(AbstractBuild<?, ?> build, BuildListener listener) throws IOException, InterruptedException { FilePath buildWorkspace = build.getWorkspace(); if (buildWorkspace == null) { throw new IOException("Invalid workspace"); } List<FilePath> workspaceFiles = buildWorkspace.list(); if (workspaceFiles.isEmpty()) { return; } Collections.sort(workspaceFiles, new Comparator<FilePath>() { @Override public int compare(FilePath o1, FilePath o2) { try { return Long.compare(o2.lastModified(), o1.lastModified()); } catch (IOException | InterruptedException e) { return 0; } } }); Map<String, String> artifacts = new HashMap<>(); for (FilePath file : workspaceFiles) { if (file.lastModified() < build.getTimeInMillis()) { break; } if (containsReportName(file.getName())) { artifacts.put(file.getName(), file.getName()); } } if (artifacts.isEmpty()) { return; } BuildListenerAdapter adapter = new BuildListenerAdapter(listener); Launcher launcher = buildWorkspace.createLauncher(adapter); ArtifactManager artifactManager = build.pickArtifactManager(); artifactManager.archive(buildWorkspace, launcher, adapter, artifacts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "WorkoutBatch copy();", "private void main_flow_manual_export(String dateFrom, String dateTo) throws SQLException {\n start_operation_complete_monitoring(this);\r\n BuffDBWriterTrell.total_nr_recorded_entries = 0;\r\n //======================\r\n NEW_RECORDS_FOUND = false;\r\n// String last_export_date = dateFrom;\r\n// last_export_date = HelpM.get_date_time_minus_some_time_in_ms(last_export_date, \"yyyy-MM-dd HH:mm:ss\", 600000);// 10 min\r\n //======================\r\n export_procedure_2(dateFrom, dateTo);\r\n //======================\r\n //\r\n if (NEW_RECORDS_FOUND) {\r\n wait_();\r\n String msg = \" (nr rec.= \" + (BufferedDBWriterSuper.total_nr_recorded_entries - 1) + \" )\";\r\n SimpleLoggerLight.logg(\"main_flow.log\", msg);\r\n// write_to_update_table(\"main_flow\", \"\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n } else {\r\n SimpleLoggerLight.logg_no_append(\"last_check.log\", \"-> LAST CHECK\");\r\n// write_to_update_table(\r\n// \"main_flow\", \"last_check\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n }\r\n }", "private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "public abstract boolean copyStatistics(DatabaseLoginConfiguration emptyDB, String localPath);", "private void expungeAllHistoricFiles()\r\n {\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files\");\r\n\r\n java.io.File fileList = new java.io.File(\"./\");\r\n String rootName = getString(\"WatchListTableModule.edit.historic_details_basic_name\");\r\n String[] list = fileList.list(new MyFilter(rootName));\r\n for (int i = 0; i < list.length; i++)\r\n {\r\n StockMarketUtils.expungeListsFile(list[i]);\r\n }\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files - complete\");\r\n\r\n }", "@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }", "@SuppressFBWarnings(\"DLS_DEAD_LOCAL_STORE\")\n @Override\n protected Collection<CopyEntity> generateCopyEntities()\n throws IOException {\n MultiTimingEvent multiTimer = new MultiTimingEvent(this.helper.getEventSubmitter(), \"TableCopy\", true);\n\n int stepPriority = 0;\n String fileSet = getTable().getTableName();\n List<CopyEntity> copyEntities = Lists.newArrayList();\n\n Optional<Table> existingTargetTable = this.helper.getExistingTargetTable();\n if (existingTargetTable.isPresent()) {\n // Use update policy if user defined table path for their copy location does not match pre-existing table path\n if (!HiveUtils.areTablePathsEquivalent(this.helper.getTargetFs(), this.helper.getTargetTable().getDataLocation(),\n existingTargetTable.get().getDataLocation())) {\n switch (this.helper.getExistingEntityPolicy()){\n case UPDATE_TABLE:\n // Update the location of files while keep the existing table entity.\n log.warn(\"Source table will not be deregistered while file location has been changed, update source table's\"\n + \" file location to\" + this.helper.getTargetTable().getDataLocation());\n existingTargetTable = Optional.absent();\n break ;\n case REPLACE_TABLE:\n case REPLACE_TABLE_AND_PARTITIONS:\n // Required to de-register the original table.\n log.warn(\"Source and target table are not compatible. Will override target table \" + existingTargetTable.get()\n .getDataLocation());\n stepPriority = this.helper.addTableDeregisterSteps(copyEntities, fileSet, stepPriority, this.helper.getTargetTable());\n existingTargetTable = Optional.absent();\n break ;\n default:\n log.error(\"Source and target table are not compatible. Aborting copy of table \" + this.helper.getTargetTable());\n multiTimer.close();\n throw new HiveTableLocationNotMatchException(this.helper.getTargetTable().getDataLocation(),\n existingTargetTable.get().getDataLocation());\n }\n }\n }\n\n stepPriority = this.helper.addSharedSteps(copyEntities, fileSet, stepPriority);\n\n HiveLocationDescriptor sourceLocation =\n HiveLocationDescriptor.forTable(getTable(), getHiveDataset().getFs(), getHiveDataset().getProperties());\n HiveLocationDescriptor desiredTargetLocation =\n HiveLocationDescriptor.forTable(this.helper.getTargetTable(), this.helper.getTargetFs(), getHiveDataset().getProperties());\n\n Optional<HiveLocationDescriptor> existingTargetLocation = existingTargetTable.isPresent() ? Optional.of(\n HiveLocationDescriptor.forTable(existingTargetTable.get(), this.helper.getTargetFs(), getHiveDataset().getProperties()))\n : Optional.<HiveLocationDescriptor> absent();\n\n if (this.helper.getFastTableSkip().isPresent() && this.helper.getFastTableSkip().get().apply(this.helper)) {\n log.info(String.format(\"Skipping copy of table %s due to fast table skip predicate.\", getTable().getDbName()+\".\" + getTable().getTableName()));\n multiTimer.close();\n return Lists.newArrayList();\n }\n\n HiveCopyEntityHelper.DiffPathSet\n diffPathSet = HiveCopyEntityHelper.fullPathDiff(sourceLocation, desiredTargetLocation, existingTargetLocation,\n Optional.<Partition> absent(), multiTimer, this.helper);\n\n multiTimer.nextStage(HiveCopyEntityHelper.Stages.FULL_PATH_DIFF);\n\n // Could used to delete files for the existing snapshot\n DeleteFileCommitStep deleteStep =\n DeleteFileCommitStep.fromPaths(this.helper.getTargetFs(), diffPathSet.pathsToDelete, getHiveDataset().getProperties());\n copyEntities.add(new PrePublishStep(fileSet, Maps.<String, String> newHashMap(), deleteStep, stepPriority++));\n\n for (CopyableFile.Builder builder : this.helper.getCopyableFilesFromPaths(diffPathSet.filesToCopy, this.helper.getConfiguration(),\n Optional.<Partition> absent())) {\n CopyableFile fileEntity =\n builder.fileSet(fileSet).datasetOutputPath(desiredTargetLocation.location.toString()).build();\n fileEntity.setSourceData(this.helper.getSourceDataset());\n fileEntity.setDestinationData(this.helper.getDestinationDataset());\n copyEntities.add(fileEntity);\n }\n\n multiTimer.close();\n return copyEntities;\n }", "Report createReport();", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "private void main_flow() throws SQLException {\n start_operation_complete_monitoring(this);\r\n BuffDBWriterTrell.total_nr_recorded_entries = 0;\r\n //======================\r\n NEW_RECORDS_FOUND = false;\r\n String last_export_date = get_last_export_date(SqlQ.get_latest_export_date());\r\n last_export_date = HelpM.get_date_time_minus_some_time_in_ms(last_export_date, \"yyyy-MM-dd HH:mm:ss\", 600000);// 10 min\r\n //======================\r\n export_procedure_1(last_export_date);\r\n //======================\r\n\r\n if (NEW_RECORDS_FOUND) {\r\n wait_();\r\n String msg = \" (nr rec.= \" + (BufferedDBWriterSuper.total_nr_recorded_entries - 1) + \" )\";\r\n SimpleLoggerLight.logg(\"main_flow.log\", msg);\r\n// write_to_update_table(\"main_flow\", \"\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n } else {\r\n SimpleLoggerLight.logg_no_append(\"last_check.log\", \"-> LAST CHECK\");\r\n// write_to_update_table(\r\n// \"main_flow\", \"last_check\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n }\r\n }", "private void copyAndSaveFileStats(final String sourceTenant, final String targetTenant, final List<String> pageIds)\n {\n // copy file state meta information from source...\n final List<FileStatsDO> soureFileStats = wikiContext.runInTenantContext(sourceTenant, getWikiSelector(),\n new CallableX<List<FileStatsDO>, RuntimeException>()\n {\n @Override\n public List<FileStatsDO> call() throws RuntimeException\n {\n BranchFileStats pageStats = PlcUtils.getBranchFileStats(wikiContext);\n List<FileStatsDO> fileStatsForPage = pageStats.getFileStatsForIds(pageIds);\n return fileStatsForPage;\n }\n });\n if (soureFileStats == null || soureFileStats.isEmpty() == true) {\n return;\n }\n\n // ...to destination\n wikiContext.runInTenantContext(targetTenant, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n final GWikiElement fileStats = wikiContext.getWikiWeb().findElement(PlcConstants.FILE_STATS_LOCATION);\n if (fileStats == null || fileStats.getMainPart() == null) {\n return null;\n }\n GWikiArtefakt<?> artefakt = fileStats.getMainPart();\n if (artefakt instanceof GWikiBranchFileStatsArtefakt == false) {\n return null;\n }\n\n GWikiBranchFileStatsArtefakt branchFilestatsArtefakt = (GWikiBranchFileStatsArtefakt) artefakt;\n BranchFileStats pageStats = branchFilestatsArtefakt.getCompiledObject();\n for (FileStatsDO source : soureFileStats) {\n pageStats.addFileStats(source);\n }\n branchFilestatsArtefakt.setStorageData(pageStats.toString());\n\n // because filestats is located in /admin folder you need to be su to store/update that file\n wikiContext.getWikiWeb().getAuthorization().runAsSu(wikiContext, new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n wikiContext.getWikiWeb().saveElement(wikiContext, fileStats, true);\n return null;\n }\n });\n\n GLog.note(GWikiLogCategory.Wiki,\n \"Copied BranchFileStats information from \" + sourceTenant + \" to \" + targetTenant,\n new LogAttribute(GWikiLogAttributeType.PageIds, StringUtils.join(pageIds, \",\")));\n return null;\n }\n });\n }", "public void getReportData(WalkInReport report) {\n\t\tnewReport2 = report;\n\t\tnewReport2.clearConclusions();\n\t\tfor(int i=0;i<newReport2.table.size();i++) {\n\t\t\tSample newBacteroidesSample = newReport2.table.get(i);\n\t\t\ttable.getItems().add(newBacteroidesSample);\n\t\t\taddConclusionNumber(newBacteroidesSample);\n\t\t}\n\t}", "void createReport(Report report);", "@Scheduled(cron = \"0 59 23 * * SAT\")\n\tpublic void auditLogExportBatchJob() {\n\n\t\ttry {\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tint currentMonth = calendar.get(Calendar.MONTH);\n\t\t\tcalendar.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n\n\t\t\tif (calendar.get(Calendar.MONTH) != currentMonth) {\n\t\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, 1);\n\t\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\n\t\t\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\t\t\tcalendar.set(Calendar.SECOND, 0);\n\n\t\t\t\tCalendar toCalendar = Calendar.getInstance();\n\t\t\t\ttoCalendar.set(Calendar.MONTH, currentMonth - 1);\n\t\t\t\ttoCalendar.set(Calendar.DAY_OF_MONTH, toCalendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n\t\t\t\ttoCalendar.set(Calendar.HOUR_OF_DAY, 23);\n\t\t\t\ttoCalendar.set(Calendar.MINUTE, 59);\n\t\t\t\ttoCalendar.set(Calendar.SECOND, 59);\n\n\t\t\t\textractAuditLogByDates(calendar.getTime(), toCalendar.getTime());\n\t\t\t}\n\n\t\t\tCalendar currntMonthCalendar = Calendar.getInstance();\n\t\t\tcurrntMonthCalendar.set(Calendar.DAY_OF_MONTH, 1);\n\t\t\tcurrntMonthCalendar.set(Calendar.HOUR_OF_DAY, 0);\n\t\t\tcurrntMonthCalendar.set(Calendar.MINUTE, 0);\n\t\t\tcurrntMonthCalendar.set(Calendar.SECOND, 0);\n\n\t\t\textractAuditLogByDates(currntMonthCalendar.getTime(), new Date());\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Error while extracting Audit data from prive DB...\");\n\t\t\tLOGGER.error(e);\n\t\t}\n\t}", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "private void writeFinalReports() {\n\t\tSystem.out.println(\"Printing data to output files ...\");\n\t\twritePropertyData();\n\t\twriteClassData();\n\t\tSystem.out.println(\"Finished printing data.\");\n\t}", "public abstract void getReport(java.io.Writer writer);", "@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void writeResultData() {\n\n// DatabaseLoader databaseLoader = new DatabaseLoader();\n TestResultDeployer testResultDeployer = new TestResultDeployer();\n MySqlDatabaseManager mySqlDatabaseManager;\n try {\n EnvironmentBuilder environmentBuilder = new EnvironmentBuilder();\n DashboardVariables dashboardVariables = environmentBuilder.getFrameworkSettings().getDashboardVariables();\n if (dashboardVariables.getEnableDashboard().equalsIgnoreCase(\"true\")) {\n String databaseName = dashboardVariables.getDbName();\n\n mySqlDatabaseManager = new MySqlDatabaseManager(dashboardVariables.getJdbcUrl(), dashboardVariables.\n getDbUserName(), dashboardVariables.getDbPassword());\n// databaseLoader.createDatabase();\n mySqlDatabaseManager.execute(\"INSERT INTO \" + databaseName + \".WA_BUILD_HISTORY VALUES()\");\n DirectoryScanner scan = new DirectoryScanner();\n scan.setBasedir(ProductConstant.REPORT_LOCATION + File.separator + \"reports\" + File.separator);\n String[] fileList = new String[]{\"*/testng-results.xml\"};\n scan.setIncludes(fileList);\n scan.scan();\n String[] fileset = scan.getIncludedFiles();\n for (int i = 0; i <= fileset.length - 1; i++) {\n testResultDeployer.writeResult(ProductConstant.REPORT_LOCATION + \"reports\" +\n File.separator + fileset[i]);\n log.info(fileset[i] + \" write to database\");\n }\n }\n } catch (ClassNotFoundException e) {\n log.error(e);\n } catch (SQLException e) {\n log.error(e);\n } /*catch (IOException e) {\n log.error(e);\n }*/\n }", "private void failureRecovery() throws IOException {\n //no requirement to check if current page version is the newest\n// HashMap<Integer, Integer> map = getLastPageVersions();\n\n //just overwrite pages with versions from log files\n List<UserData> lastCommittedPageVersions = getLastCommittedPageVersions();\n\n for (UserData lastCommittedPageVersion : lastCommittedPageVersions) {\n persistData(lastCommittedPageVersion);\n }\n }", "private void copyData(CopyTable table) throws Exception\n\t{\n\t\tLOG.info(\"Starting with copy of data from '\" + table.getDescription() + \"' to disk...\");\n\t\t\n\t\t// select data from source database\n\t\tStatement selectStmt =\n\t\t\tCopyToolConnectionManager.getInstance().getSourceConnection(table.getSource()).createStatement();\n\n\t\t// get number of rows in table\n\t\tResultSet resultSet =\n\t\t\tselectStmt.executeQuery(table.generateCountQuery());\n\t\tresultSet.next();\n\t\t\n\t\tlong rowCount = resultSet.getLong(1);\n\t\tLOG.info(\"Found \" + rowCount + \" rows in '\" + table.getDescription() + \"'\");\n\t\t\n\t\tresultSet.close();\n\t\t\n\t\t// get all data from table\n\t\tresultSet = selectStmt.executeQuery(table.generateSelectQuery());\n\n\t\t// get meta data (column info and such)\n\t\tResultSetMetaData metaData = resultSet.getMetaData();\n\t\t\n\t\tString tmpDir = config.getTempDirectory();\n\t\t\n\t\tString tmpFilePrefix = table.getTempFilePrefix();\n\t\t\n\t\t// serialize meta data to disk\n\t\tFile metaDataFile = new File(tmpDir, tmpFilePrefix + \"_metadata.ser\");\n\t\tFileOutputStream fileOut = new FileOutputStream(metaDataFile);\n\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\tout.writeObject(new SerializableResultSetMetaData(metaData));\n\t\tout.close();\n\t\tfileOut.close();\n\t\tLOG.info(\"Serialized metadata to temp file: \" + metaDataFile.getAbsolutePath());\n\t\n\t\t\n\t\tif (rowCount == 0)\n\t\t{\n\t\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, 0L);\n\t\t\tLOG.info(\"Finished copying data of '{}' to disk (no data to copy)\", table.getDescription());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// write data to disk\n\t\tFile temp = new File(tmpDir, tmpFilePrefix + \"_data.csv\");\t\t\n\t\tLOG.info(\"Writing data to temp file: \" + temp.getAbsolutePath());\n\t\t\n\t\tBufferedWriter bw = new BufferedWriter\n\t\t\t (new OutputStreamWriter(new FileOutputStream(temp), \"UTF-8\"));\n\n\t\tlong startTime = System.currentTimeMillis();\n\t\tlong insertCount = 0;\n\t\tint columnCount = metaData.getColumnCount();\n\t\t\n\t\twhile (resultSet.next())\n\t\t{\n\t\t\tfor (int i = 1; i <= columnCount; i++)\n\t\t\t{\n\t\t\t\tObject value = resultSet.getObject(i);\n\n\t\t\t\tif (value == null)\n\t\t\t\t{\n\t\t\t\t\tbw.write(NULL_VALUE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString valueStr;\n\t\t\t\t\tif (value instanceof BigDecimal)\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = ((BigDecimal)value).toPlainString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = value.toString();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (table.isAutoTrim())\n\t\t\t\t\t\tvalueStr = valueStr.trim();\n\n\t\t\t\t\t// escape \\ with \\\\\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\n\n\t\t\t\t\t// escape \" with \\\"\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\"\", \"\\\\\\\\\\\"\");\n\t\t\t\t\t\n\t\t\t\t\tbw.write(\"\\\"\" + valueStr + \"\\\"\");\n\t\t\t\t}\t\t\t\n\n\t\t\t\t// column separator (not for last column)\n\t\t\t\tif (i < columnCount)\n\t\t\t\t{\n\t\t\t\t\tbw.write(\",\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// record separator\n\t\t\tbw.newLine();\n\n\t\t\tinsertCount++;\n\n\t\t\tif (insertCount % 100000 == 0)\n\t\t\t{\n\t\t\t\tbw.flush();\n\t\t\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\t}\n\t\t}\n\t\tbw.flush();\n\t\tbw.close();\n\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\n\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, insertCount);\n\t\t\n\t\tLOG.info(\"Finished copying data of '\" + table.getDescription() + \"' to disk!\");\n\t}", "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "private void backup(SubscriptionDto sDto) throws IOException {\n\t\tSystem.out.println(\"Gaurav\");\n\t\tString routePath = this.getClass().getClassLoader()\n\t\t\t\t.getResource(File.separator).getPath();\n\t\tSystem.out.println(routePath);\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(routePath+File.separator+\"..\"+File.separator+\"backup.txt\"), true));\n\t\tbw.write(\"Suscription Details\" + newLine);\n\t\tbw.write(\"**************************************\" + newLine);\n\t\tbw.write(\"SUBSCRIPTION ID \" + sDto.getSubscriptionId() + newLine);\n\t\tbw.write(\"CUSTOMER NAME \" + sDto.getCustomerName() + newLine);\n\t\tbw.write(\"Total Cost :\" + sDto.getTotalCost() + newLine);\n\t\tbw.write(\"-----------------------------------------------------------------------\"\n\t\t\t\t+ newLine);\n\n\t\tbw.write(\"Channel Suscribed Details\" + newLine);\n\t\tbw.write(\"**************************************\\n\" + newLine);\n\t\tbw.write(\" CHANNEL NAME | COST_PER MONTH \"\n\t\t\t\t+ newLine);\n\t\tbw.write(\"+--------------------------------------------------------------+\"\n\t\t\t\t+ newLine);\n\t\tfor (Channel c : sDto.getSubscribedChannel()) {\n\t\t\tbw.write(\"|\" + c.getChannelName() + \"\\t\\t\\t\\t | \\t\\t\\t \"\n\t\t\t\t\t+ c.getCostPerMonth() + \"\\t\\t\\t\\t\\t | \" + newLine);\n\t\t}\n\n\t\tbw.write(newLine);\n\t\tbw.write(\"-------------End---------------------\" + newLine);\n\t\tbw.close();\n\n\t}", "public void generateReport(ReportGenerationData data)throws ChangeApplicationException;", "void outputReport(RandomAccessFile reportFile, boolean last) {\n\n String line1 = \"----+---------+----------+----------+---+----------+\" +\n \"----------+----------+----------+\" +\n \"---------------------------------------------+\";\n String line2 = \"----+---------+------------+----------+---------------------+\" +\n \"---------+----------+----------+--------------------+--------+\" +\n \"-----+-----+-----+\";\n\n if (dbg3) System.out.println(\"outputReport: station.getStationId() = *\" +\n station.getStationId(\"\") + \"*\");\n if (\"\".equals(station.getStationId(\"\"))) { // only done formats 01/02 -> survey data only\n\n //display the survey data }\n //ec.writeFileLine(reportFile, \"----+---------+----------+----------\" +\n // \"+---+----------+----------+----------+----------+----------\" +\n // \"------------------------------+\");\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \"dup.|Survey |Platform | \" +\n \"| | | | | | \" +\n \" |\");\n ec.writeFileLine(reportFile, \"code|Id |Name |Expedition\" +\n \"|Ins|Proj Name |Area Name |Domain |Platform |Notes \" +\n \" |\");\n ec.writeFileLine(reportFile, line1);\n\n ec.writeFileLine(reportFile, surveyStatus + \" |\" + //j24\n ec.frm(survey.getSurveyId(\"\"),9) + \"|\" +\n ec.frm(survey.getPlanam(\"\"),10) + \"|\" +\n ec.frm(survey.getExpnam(\"\"),10) + \"|\" +\n ec.frm(survey.getInstitute(\"\"),03) + \"|\" +\n ec.frm(survey.getPrjnam(\"\"),10) + \"|\" +\n ec.frm(inventory.getAreaname(\"\"),10)+ \"|\" +\n ec.frm(inventory.getDomain(\"\"),10) + \"|\" +\n ec.frm(\" \",10) + \"|\" +\n //survey.getPlatfm() + \"|\" +\n ec.frm(survey.getNotes1(\"\"),45) + \"|\");\n\n // write to station file - keep place for actual output\n if (loadFlag) {\n try {\n stnFile.writeBytes(\"\");\n headerPos1 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos2 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos3 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n } catch (Exception e) {\n ec.processError(e, thisClass, \"outputReport\", \"Header Pos Error\");\n } // try-catch\n } // if (loadFlag)\n\n\n if (surveyLoaded) { // display details of loaded survey //j24\n // get the old inventory record\n MrnInventory tInventory[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n ec.writeFileLine(reportFile, \"lod |\" +\n ec.frm(tSurvey[0].getSurveyId(\"\"),9) + \"|\" +\n ec.frm(tSurvey[0].getPlanam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getExpnam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getInstitute(\"\"),03) + \"|\" + //j24\n ec.frm(tSurvey[0].getPrjnam(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getAreaname(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getDomain(\"\"),10) + \"|\" + //j24\n ec.frm(\" \",10) + \"|\" +\n //tSurvey[0].getPlatfm() + \"|\" + //j24\n ec.frm(tSurvey[0].getNotes1(\"\"),45) + \"|\"); //j24\n } // if (survey_loaded)\n\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \" \");\n\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \"dup.| | | |\" +\n \" | | | |\" +\n \" | | Records |\");\n ec.writeFileLine(reportFile, \"code| Surv Id | Station Id | StnNam |\" +\n \" Date Time GMT | Latitude| Longitude| Subdes(s)|\" +\n \" Sample depth range | StnDep | Tot.| O.K.| Rej |\");\n ec.writeFileLine(reportFile, line2);\n } else { // if (\"\".equals(station.getStationId(\"\")))\n\n\n if (dbg) System.out.println(\"<br>outputReport: tStation.length = \" +\n tStation.length);\n\n int stationSampleOKCount = stationSampleCount - stationSampleRejectCount;\n ec.writeFileLine(reportFile, stationStatusLD + \" |\" + //j24\n ec.frm(\" \",9) + \"|\" +\n ec.frm(station.getStationId(),12) + \"|\" +\n ec.frm(station.getStnnam(),10) + \"| \" +\n //station.getDatum + \"| \" +\n ec.frm(startDateTime,20) + \"|\" +\n ec.frm(station.getLatitude(),9,5) + \"|\" +\n ec.frm(station.getLongitude(),10,5) + \"|\" +\n ec.frm(subdes,10) + \"|\" +\n ec.frm(depthMin + \" to \" + depthMax,20) + \"|\" +\n ec.frm(station.getStndep(),8,2) + \"|\" +\n ec.frm(stationSampleCount,5) + \"|\" +\n ec.frm(stationSampleOKCount,5) + \"|\" +\n ec.frm(stationSampleRejectCount,5) + \"|\");\n if (!loadFlag) {\n ec.writeFileLine(workFile, ec.frm(station.getStationId(),12) +\n ec.frm(stationSampleCount,5));\n } // if (!loadFlag)\n\n if (stationExists) { // || (!\"new\".equals(stationStatusLD))) {\n for (int i = 0; i < tStation.length; i++) {\n int tmpRecordCount = 0;\n if (dataType == CURRENTS) {\n tmpRecordCount = currentsRecordCountArray[i];\n } else if (dataType == SEDIMENT) {\n tmpRecordCount = sedphyRecordCountArray[i];\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpRecordCount = watphyRecordCountArray[i];\n } // if (dataType == CURRENTS)\n\n String subdesLocal = subdesArray[i][0];\n for (int j = 1; j < MAX_SUBDES; j++) {\n subdesLocal += (!\"\".equals(subdesArray[i][j]) ?\n \"/\"+subdesArray[i][j] : \"\");\n } // for int (j = 1; j < MAX_SUBDES; j++)\n if (stationExistsArray[i]) {\n ec.writeFileLine(reportFile, stationStatusDB[i] + \" |\" +\n ec.frm(tStation[i].getSurveyId(),9) + \"|\" +\n ec.frm(tStation[i].getStationId(),12) + \"|\" +\n ec.frm(tStation[i].getStnnam(\"\"),10) + \"| \" +\n //tStation[i].getDateStart(\"\"), \"| \",\n ec.frm(spldattimArray[i],20) + \"|\" +\n ec.frm(tStation[i].getLatitude(),9,5) + \"|\" +\n ec.frm(tStation[i].getLongitude(),10,5) + \"|\" +\n //ec.frm(subdesArray[i],5) + \"|\" +\n ec.frm(subdesLocal,10) + \"|\" +\n ec.frm(loadedDepthMin[i] + \" to \" + loadedDepthMax[i],20) + \"|\" +\n ec.frm(tStation[i].getStndep(),8,2) + \"|\" +\n ec.frm(tmpRecordCount,5) + \"| | |\");\n } // if (stationExistsArray[i])\n } // for (int i = 0; i < tStation.length; i++)\n } // if (stationExists || (!\"new\".equals(stationStatusDB))\n ec.writeFileLine(reportFile, \"\");\n\n // write to station file\n if (loadFlag) {\n ec.writeFileLine(stnFile, \"'\" +\n ec.frm(station.getStationId(\"\"),12) + \"' '\" +\n station.getDateStart(\"\").substring(0,10) + \"' \" +\n ec.frm(station.getLatitude(),11,5) + \" \" +\n ec.frm(station.getLongitude(),11,5) + \" \" +\n ec.frm(ec.nullToNines(station.getStndep(),9999.0f),10,2) + \" '\" +\n ec.frm(station.getStnnam(\"\"),10) + \"'\");\n } // if (loadFlag)\n\n\n if (last) {\n //ec.writeFileLine(reportFile, \"last\");\n\n int sampleOKCount = sampleCount - sampleRejectCount;\n //ec.writeFileLine(reportFile, \"----+------------+----------\" +\n // \"+---------------------+---------+----------+-----+---\" +\n // \"-----------------+--------+-----------------+\");\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \" ^\"); //j24//\n ec.writeFileLine(reportFile, \" |\"); //j24//\n ec.writeFileLine(reportFile, \" +--new = new record\"); //j24//\n ec.writeFileLine(reportFile, \" dup = new record is a duplicate record\"); //j24//\n //ec.writeFileLine(reportFile, \" lod = existing record\"); //j24//\n ec.writeFileLine(reportFile, \" did = duplicate station-id - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dis = duplicate station-id - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dia = duplicate station-id - different SUBDES: data added\");//u02//\n ec.writeFileLine(reportFile, \" dij = ignored station - matched existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dip = data records replaced for existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dsd = duplicate station record - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dss = duplicate station record - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dsa = duplicate station record - different SUBDES: data added\");\n ec.writeFileLine(reportFile, \" dsj = ignored station - matched existing station record - dsd\"); //k46//\n ec.writeFileLine(reportFile, \" dsp = data records replaced for existing station record - dsd\"); //k46//\n\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"This data was \" +\n (loadFlag ? \"loaded\" : \"checked\") + \" with the following ranges:\");\n ec.writeFileLine(reportFile, \" Area: \" + areaRangeVal + \" (decimal degrees)\");\n ec.writeFileLine(reportFile, \" Time: \" + timeRangeVal + \" (minutes)\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \"Closing statistics - survey_id: \" +\n survey.getSurveyId());\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of lines - \" +\n ec.frm(lineCount,6));\n ec.writeFileLine(reportFile, \" Fatal Errors - \" +\n ec.frm(fatalCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of stations - \" +\n ec.frm(stationCount,6));\n ec.writeFileLine(reportFile, \" New - \" +\n ec.frm(newStationCount,6));\n ec.writeFileLine(reportFile, \" Dup - \" +\n ec.frm((stationCount-newStationCount),6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station-id (DI)\");\n ec.writeFileLine(reportFile, \" DI: diff SUBDES (DID) - \" +\n ec.frm(didCount,6));\n ec.writeFileLine(reportFile, \" DI: same SUBDES (DIS) - \" +\n ec.frm(disCount,6));\n ec.writeFileLine(reportFile, \" DI: diff SUBDES added (DIA) - \" +\n ec.frm(diaCount,6));\n ec.writeFileLine(reportFile, \" DI's Rejected (DIJ) - \" +\n ec.frm(dijCount,6));\n ec.writeFileLine(reportFile, \" DI's Replaced (DIP) - \" +\n ec.frm(dipCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station (DS)\");\n ec.writeFileLine(reportFile, \" DS: diff SUBDES (DSD) - \" +\n ec.frm(dsdCount,6));\n ec.writeFileLine(reportFile, \" DS: same SUBDES (DSS) - \" +\n ec.frm(dssCount,6));\n ec.writeFileLine(reportFile, \" DS: diff SUBDES added (DSA) - \" +\n ec.frm(dsaCount,6));\n ec.writeFileLine(reportFile, \" DS's Rejected (DSJ) - \" +\n ec.frm(dsjCount,6));\n ec.writeFileLine(reportFile, \" DS's Replaced (DSP) - \" +\n ec.frm(dspCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of Samples - \" +\n ec.frm(sampleCount,6));\n ec.writeFileLine(reportFile, \" OK - \" +\n ec.frm(sampleOKCount,6));\n ec.writeFileLine(reportFile, \" Rejected - \" +\n ec.frm(sampleRejectCount,6));\n ec.writeFileLine(reportFile, \" \");\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n ec.writeFileLine(reportFile, \" date range - \" +\n formatter.format(dateMin) + \" to \" + formatter.format(dateMax));\n ec.writeFileLine(reportFile, \" latitude range - \" +\n ec.frm(latitudeMin,10,5) + \" to \" + ec.frm(latitudeMax,10,5));\n ec.writeFileLine(reportFile, \" longitude range - \" +\n ec.frm(longitudeMin,10,5) + \" to \" + ec.frm(longitudeMax,10,5));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n\n if (loadFlag) {\n ec.writeFileLine(reportFile, \" \");\n\n if (fatalCount > 0) {\n ec.writeFileLine(reportFile,\n \" THERE ARE FATAL ERRORS - THIS LOAD IS UNSUCCESSFUL \");\n ec.writeFileLine(reportFile,\n \" ================================================== \");\n ec.writeFileLine(reportFile,\n \" As some data has been loaded, it is necessary to remove it\\n\" +\n \" by running the 'Delete a survey' option on the SADCO website\\n\" +\n \" located in the 'Marine Database: Admin / Load Data' menu options\");\n } else { // if (fatalCount > 0)\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n ec.writeFileLine(reportFile, \" LOAD SUCCESSFUL \");\n ec.writeFileLine(reportFile, \" =============== \");\n ec.writeFileLine(reportFile, \" date loaded: \" +\n formatter.format(loadDate));\n\n if (dataType != CURRENTS) {\n ec.writeFileLine(reportFile, \" \" + DATA_TYPE[dataType] +\n \" code range - \" + dataCodeStart + \" to \" + dataCodeEnd);\n } // if (dataType != CURRENTS)\n\n ec.writeFileLine(reportFile, \" \");\n if (\"\".equals(passkey)) {\n ec.writeFileLine(reportFile, \" This data is NOT flagged \");\n } else {\n ec.writeFileLine(reportFile, \" This data is FLAGGED \");\n } // if (p_station.passkey is NULL)\n } // if (fatalCount > 0)\n\n // write header to station file\n String lineA =\n \"'MARINE' \" +\n ec.frm((int) latitudeMin,4) +\n ec.frm((int) (latitudeMax+1f),4) +\n ec.frm((int) longitudeMin,4) +\n ec.frm((int) (longitudeMax+1f),4) + \" '\" +\n dateMin.toString().substring(0,10) + \"' '\" +\n dateMax.toString().substring(0,10) + \"' 'STATIONS'\";\n String lineB = \"'\" + survey.getSurveyId(\"\") +\n \"' \" + stationCount + \" '\" +\n platformName + \"' '\" +\n projectName + \"' '\" +\n expeditionName + \"'\";\n String lineC = \"'\" + instituteName + \"'\";\n try {\n stnFile.seek(headerPos1);\n stnFile.writeBytes(lineA);\n stnFile.seek(headerPos2);\n stnFile.writeBytes(lineB);\n stnFile.seek(headerPos3);\n stnFile.writeBytes(lineC);\n } catch (Exception e) {\n System.out.println(\"<br>\" + thisClass +\n \".printHeader: Write Error: \" + e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n } // if (loadflag)\n\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n String text = (loadFlag ? \"loaded\" : \"checked\");\n ec.writeFileLine(reportFile, \" date \" + text + \": \" +\n formatter.format(loadDate));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n } // if (last)\n\n } // if (\"\".equals(station.getStationId(\"\")))\n\n\n //ec.writeFileLine(reportFile, message);\n //if (dbg) System.out.println(\"outputReport: message = \" + message);\n // output to screen or file\n }", "public void listenReportGenerateStatus() {\n KOOM.getInstance().setHeapReportUploader(file -> {\n //Upload the report or do something else.\n //File is deleted automatically when callback is done by default.\n });\n }", "public String getLastReport()\n {\n return null;\n }", "private void generateBackUpMysql() {\n Calendar c = Calendar.getInstance();//creamos una instancia de la clase calendar de java\n //java.util.Date fecha = new Date();\n String DiaHoy = Integer.toString(c.get(Calendar.DATE));\n String MesHoy = Integer.toString(c.get(Calendar.MONTH)+1);\n String AnioHoy = Integer.toString(c.get(Calendar.YEAR)); \n \n \n JFileChooser RealizarBackupMySQL = new JFileChooser();\n int resp;\n resp=RealizarBackupMySQL.showSaveDialog(this);//JFileChooser de nombre RealizarBackupMySQL\n if (resp==JFileChooser.APPROVE_OPTION) {//Si el usuario presiona aceptar; se genera el Backup\n try{\n Runtime runtime = Runtime.getRuntime();\n File backupFile = new File(String.valueOf(RealizarBackupMySQL.getSelectedFile().toString())+\" \"+DiaHoy +\"-\"+MesHoy+\"-\"+AnioHoy+\".sql\");\n FileWriter fw = new FileWriter(backupFile);\n \n Process child = runtime.exec(\"C:\\\\xampp\\\\mysql\\\\bin\\\\mysqldump --routines --opt --password= --user=root --databases utp2020-dental-system-dev\"); \n\n // Process child = runtime.exec(\"C:\\\\wamp\\\\bin\\\\mariadb\\\\mariadb10.4.10\\\\bin\\\\mysqldump --routines --opt --password= --user=root --databases utp2020-dental-system-dev\"); \n InputStreamReader irs = new InputStreamReader(child.getInputStream());\n BufferedReader br = new BufferedReader(irs);\n String line;\n while( (line=br.readLine()) != null ) {\n fw.write(line + \"\\n\");\n }\n fw.close();\n irs.close();\n br.close();\n JOptionPane.showMessageDialog(null, \"Archivo generado\",\"Verificar\",JOptionPane. INFORMATION_MESSAGE);\n }catch(Exception e){\n JOptionPane.showMessageDialog(null, \"Error no se genero el archivo por el siguiente motivo:\"+e.getMessage(), \"Verificar\",JOptionPane.ERROR_MESSAGE);\n } \n } else if (resp==JFileChooser.CANCEL_OPTION) {\n JOptionPane.showMessageDialog(null,\"Ha sido cancelada la generacion del Backup\");\n }\n }", "static void setNotAutoCopy(){isAutoCopying=false;}", "public void dumpPageHistory(\n @NotNull PageHistoryDiagnoster.DiagnosticPageBuilder builder\n ) throws IgniteCheckedException {\n if (walFolders == null) {\n log.info(\"Skipping dump page history due to WAL not configured\");\n\n return;\n }\n\n ScannerHandler action = null;\n\n for (DiagnosticProcessor.DiagnosticAction act : builder.actions) {\n if (action == null)\n action = toHandler(act, builder.dumpFolder);\n else\n action = action.andThen(toHandler(act, builder.dumpFolder));\n }\n\n requireNonNull(action, \"Should be configured at least one action\");\n\n IteratorParametersBuilder params = withIteratorParameters()\n .log(log)\n .filesOrDirs(walFolders);\n\n // Resolve available WAL segment files.\n List<FileDescriptor> descs = iteratorFactory.resolveWalFiles(params);\n\n int descIdx = -1;\n FileWALPointer reserved = null;\n\n for (int i = 0; i < descs.size(); i++) {\n // Try resever minimal available segment.\n if (wal.reserve(reserved = new FileWALPointer(descs.get(i).idx(), 0, 0))) {\n descIdx = i;\n\n break;\n }\n }\n\n if (descIdx == -1) {\n log.info(\"Skipping dump page history due to can not reserve WAL segments: \" + descToString(descs));\n\n return;\n }\n\n if (log.isDebugEnabled())\n log.debug(\"Reserverd WAL segment idx: \" + reserved.index());\n\n // Check gaps in the reserved interval.\n List<T2<Long, Long>> gaps = iteratorFactory.hasGaps(descs.subList(descIdx, descs.size()));\n\n if (!gaps.isEmpty())\n log.warning(\"Potentialy missed record because WAL has gaps: \" + gapsToString(gaps));\n\n try {\n scan(builder, params, action, reserved);\n }\n finally {\n assert reserved != null;\n\n wal.release(reserved);\n\n if (log.isDebugEnabled())\n log.debug(\"Release WAL segment idx:\" + reserved.index());\n }\n }", "public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }", "private static void dataFiltering() {\n\t\tDataGenerationMngr dtgen = new DataGenerationMngr();\n\t\tdtgen.genenrateData();\n\n\t\t// Perform Java and Gradle code diff in between commit and save the diff\n\t\t// information in database\n\n\t}", "private void copyAndSave()\n {\n // create new branch\n if (NEW_BRANCH.equals(selectedBranch)) {\n createAndSetNewBranch();\n }\n List<String> updatePages = getAllPageIdsForUpdate();\n\n // copy current filestats entry to source target branch\n copyAndSaveFileStats(branch, selectedBranch, updatePages);\n\n // add new page information to filestats of new branch\n updateFileStats(FileState.valueOf(newPageState), selectedAssignee, selectedBranch, updatePages);\n\n // save page(s) in new branch\n wikiContext.runInTenantContext(selectedBranch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n for (GWikiElement pageToUpdate : getAllPagesForUpdate()) {\n wikiContext.getWikiWeb().saveElement(wikiContext, pageToUpdate, true);\n }\n return null;\n }\n });\n\n // remove page(s) in old branch\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n for (GWikiElement pageToUpdate : getAllPagesForUpdate()) {\n wikiContext.getWikiWeb().removeWikiPage(wikiContext, pageToUpdate);\n }\n return null;\n }\n });\n }", "public boolean writePlicSnapshotToFile(File f, String dbSchema, String dataSource){\n try{\n //Obtener la conexion JDBC del proyecto\n InitialContext ctx = new InitialContext();\n DataSource ds = (DataSource) ctx.lookup(dataSource);\n Connection connection = ds.getConnection();\n\n\t String query = \"SELECT '\\\"'||REPLACE(COALESCE(globaluniqueidentifier,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(scientificname,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(institutioncode,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||COALESCE(to_char(datelastmodified,'YYYY-MM-DD HH24:MI:SS'),'')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(taxonrecordid,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(language,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(creators,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(distribution,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(abstract,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(kingdomtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(phylumtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(classtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(ordertaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(familytaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(genustaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(synonyms,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(authoryearofscientificname,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(speciespublicationreference,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(commonnames,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(typification,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(contributors,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||COALESCE(to_char(datecreated,'YYYY-MM-DD'),'')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(habit,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(lifecycle,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(reproduction,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(annualcycle,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(scientificdescription,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(briefdescription,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(feeding,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(behavior,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(interactions,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(chromosomicnumbern,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(moleculardata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(populationbiology,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(threatstatus,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(legislation,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(habitat,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(territory,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(endemicity,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(theuses,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(themanagement,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(folklore,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(thereferences,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(unstructureddocumentation,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(otherinformationsources,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(papers,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(identificationkeys,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(migratorydata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(ecologicalsignificance,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(unstructurednaturalhistory,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(invasivenessdata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(targetaudiences,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(version,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage1,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage1,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage2,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage2,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage3,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage3,''),'\\r\\n', ' ')||'\\\"'\"+\n\t\t\t \" AS aux \"+\n\t\t\t \"FROM \"+dbSchema+\".plic_snapshot;\";\n\n System.out.println(query);\n\n\t\t\tStatement st = connection.createStatement();\n\t\t\tResultSet rs = st.executeQuery(query); \n\n //Imprimir los datos en el archivo\n BufferedWriter out = new BufferedWriter(new FileWriter(f));\n\t\t\twhile (rs.next()) {\n\t\t\t\tout.write(rs.getString(\"aux\")+\"\\n\");\n\t\t\t}\n out.close();\n\n //Cerrar el resultset y el statement\n rs.close();\n\t\t\tst.close();\n\n //Resultado\n return true;\n }\n catch(Exception e){\n e.printStackTrace();\n return false;}\n }", "public void backupAll() throws Exception {\n // create DataSet from database.\n IDataSet ds = conn.createDataSet();\n\n // write the content of database to temp file\n FlatXmlDataSet.write(ds, new FileWriter(backupFile), \"UTF-8\");\n }", "public static void takeScreenshotAtEndOfTest() throws IOException {\n\t\t//Take screenshot.\n\t\t\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);//output type is file type//coverting driver to take a screen shot TakesScreenshot(I) and then getScreenshotAs this method will execute \n\t\t//Copy to a file\t\t\n\t\t\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\t\t\tFileUtils.copyFile(scrFile, new File(currentDir + \"/screenshots/\" + System.currentTimeMillis() + \".png\"));\n\t\t\t\t\n\t\t\t\t}", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "synchronized static public Report getReport() {\n return new Report(\n collectedEntrys,\n collectables.stream().sorted((a, b) -> a.collectableSince.compareTo(b.collectableSince))\n .collect(Collectors.toList()));\n }", "public void clearReports()\n {\n reports.clear();\n }", "public static String getScreenshot() {\n TakesScreenshot screenshot = (TakesScreenshot) WebDriverBase.driver;\n File src = screenshot.getScreenshotAs(OutputType.FILE);\n String path = System.getProperty(\"user.dir\") + File.separator + \"target\" + File.separator + \"report\" + File.separator + System.currentTimeMillis() + \".png\";\n System.out.println(path);\n File dest = new File(path);\n try {\n FileUtils.copyFile(src, dest);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return path;\n }", "private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }", "public void takeScreenshot( ) throws IOException {\n File source = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n String path = \"./reports/target/screenshots/\" + source.getName();\n FileUtils.copyFile(source, new File(path));\n }", "private int processFile(File reportFile, Calendar minRange, Calendar maxRange, boolean ignoreHour, boolean doInsert, List<Document> returnList) {\r\n\t\tint count = 0;\r\n\t\tboolean isV9 = false; // ReportingService uses v9, report loaded fom UI has different columns, this helps distinguish the origin of file \r\n\t\ttry {\r\n\t\t\tcsvReader = new CSVReader(new FileReader(reportFile));\r\n\t\t\tboolean isHeaderFooter = true;\r\n\t\t\tString[] row = null;\r\n\t\t\tint rows = 0;\r\n\t\t\tString[] headers = null;\r\n\t\t\twhile ((row = csvReader.readNext()) != null) {\r\n\t\t\t\t// skip prologue / footer (both separated from data by empty row)\r\n\t\t\t\tif (row.length == 0 || (row.length == 1 && \"\".equals(row[0]))) {\r\n\t\t\t\t\tisHeaderFooter = !isHeaderFooter;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (!isHeaderFooter) {\r\n\t\t\t\t\tif (headers == null) {\r\n\t\t\t\t\t\theaders = row;\r\n\t\t\t\t\t\tbuildHeaderIndexes(headers);\r\n\t\t\t\t\t\tStringBuilder dbgPrint = new StringBuilder(reportFile.getName()+\": Available report columns: \");\r\n\t\t\t\t\t\tfor (String h : headers) {\r\n\t\t\t\t\t\t\tif (\"AdGroupName\".equals(h)) { // UI downloaded file will contain \"Ad Group name\" instead\r\n\t\t\t\t\t\t\t\tisV9 = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tdbgPrint.append(h).append(\", \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tLOG(dbgPrint.toString());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\trows++;\r\n\t\t\t\t\tDocument document = isV9 ? buildDocumentBingReport(row, minRange, maxRange) : _buildDocumentBingReport(row, minRange, maxRange);\r\n\t\t\t\t\tif (!doInsert) {\r\n\t\t\t\t\t\tsetIdsIfRequired(document);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfillIdsIfRequired(document);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (doInsert && isDocumentInTimeRange(document, minRange, maxRange, ignoreHour)) {\r\n\t\t\t\t\t\tif (returnList != null) {\r\n\t\t\t\t\t\t\treturnList.add(document);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!checkDuplicate(document)) {\r\n\t\t\t\t\t\t\t\tinsertDocument(document);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tLOG(reportFile.getName()+\" downloaded rows: \"+rows+\", unique, in obsWindow rows: \"+count);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public CurrentDocumentCopyCommand() {\n\tsuper(\"Save current document as new copy.\");\n }", "public byte[] getReportFile(){\n \tbyte[] result = new byte[this.reportFile.length];\n System.arraycopy(this.reportFile, 0, result, 0, this.reportFile.length);\n return result;\n }", "@Override\n\tpublic void postExecution() throws CommandListenerException {\n\t\tString extraContents = \"0xbeef\";\n\t\tByteArrayInputStream inputStream = new ByteArrayInputStream(extraContents.getBytes());\n\t\tSourcesFile sources = fedoraProjectRoot.getSourcesFile();\n\t\tfor (String filename: sources.getAllSources()) {\n\t\t\tIFile sourceFile;\n\t\t\t\tsourceFile = (IFile)fedoraProjectRoot.getContainer().findMember(new Path(filename));\n\t\t\tif (sourceFile != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsourceFile.appendContents(inputStream, IResource.FORCE, new NullProgressMonitor());\n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tfedoraProjectRoot.getContainer().refreshLocal(IResource.DEPTH_ONE, null);\n\t\t} catch (CoreException e) {\n\t\t\t// ignore\n\t\t}\n\n\t}", "public static byte[] getDashboardPDFAsByteArray() {\n\n\t\tString localProviderURL = \"t3://localhost:7001\";\n\t\tSystem.setProperty(Context.INITIAL_CONTEXT_FACTORY, \"weblogic.jndi.WLInitialContextFactory\");\n\t\tSystem.setProperty(Context.PROVIDER_URL, localProviderURL);\n\t\t\n\t\t\n\t\tSystem.out.println(\"Generating VINSight DashBoard Reports\");\n\n\t\t\n\t\t\n\t\t\n\t\t// step 1: creation of a document-object\n\t\tDocument document = new Document();\n\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream(100000);\n\n \ttry {\n \t\t// step 2\n \t\tPdfWriter writer;\n\t\t\twriter = PdfWriter.getInstance(document, baos);\n\t\t\t// step 3\n \t\tdocument.open();\n\t\t\t// step 4: we add a paragraph to the document\n\t\t\tdocument.add(new Paragraph(\"VINSight Health Check\"));\n\t\t\tdocument.add(new Paragraph(\"Report 1\"));\n\n\t\t\t//create the chart1 image\n\t\t\tJFreeChart chart1 = VINSightDashboardReport.createVINSightDashBoardChart1();\n\t\t\tBufferedImage image1 = chart1.createBufferedImage(350, 350);\n\t\t\timage1.flush();\n\n\t\t\tdocument.add(com.lowagie.text.Image.getInstance(image1, null) );\n\t\t\tdocument.add(new Paragraph(\"Report 2\"));\n\t\t\tJFreeChart chart2 = VINSightDashboardReport.createVINSightDashBoardChart2();\n\t\t\tBufferedImage image2 = chart2.createBufferedImage(350, 350);\n\t\t\timage2.flush();\n\n\t\t\tdocument.add(com.lowagie.text.Image.getInstance(image2, null) );\n \t\t\n\t\t\n \t}\n \tcatch(DocumentException de) {\n \t\tde.printStackTrace();\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t}finally{\n \t// step 5\n \t\tdocument.close();\n \t\t\ttry{ baos.close();}catch(IOException ioe){/*ignore*/}\n \t}\n \t\n \treturn baos.toByteArray();\n\t\t\n\t}", "List<OperationDTO> scheduleCopyOperations();", "boolean addHistoricVisitsToUsageReportsBuffer();", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "public static void backup() throws FileNotFoundException, SQLException {\n\n // Laver en dato til vores End Of Days filer i filnavnet\n Date date = new Date();\n String dagensDato = date.toString();\n dagensDato = dagensDato.replaceAll(\" \", \"_\");\n dagensDato = dagensDato.replaceAll(\":\", \"_\");\n\n File file = new File(\"End_Of_Days/End_Of_Day_\" + dagensDato + \".txt\");\n\n try (\n // Laver filen\n PrintWriter output = new PrintWriter(file);\n ) {\n // Initialiserer varibler der skal bruges\n String sql, hentetFnavn, hentetLnavn, hentetAdresse, hentetKonto_type, hentetOvertraeks, hentetUsername;\n int hentetPerson_id, hentetReg_nr, hentetKonto_nr, hentetRentesats, hentetSaldo, hentetOvertraeksgebyr, hentetId, hentetFra_Konto, hentetTil_Konto, hentetPassword;\n double hentetTrukketbelob, hentetIndfortbelob;\n Timestamp hentetTimestamp;\n\n\n output.println(\"Person_id \\t\\t fnavn \\t\\t lnavn \\t\\t adresse\");\n output.println(\"------------------------------------------------\");\n\n // Henter bruger tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM bruger\";\n ResultSet rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra bruger tabelen ind i tekstfilen\n hentetPerson_id = rs.getInt(1);\n hentetFnavn = rs.getNString(2);\n hentetLnavn = rs.getNString(3);\n hentetAdresse = rs.getNString(4);\n output.print(hentetPerson_id + \"\\t\\t\" + hentetFnavn + \"\\t\\t\" + hentetLnavn + \"\\t\\t\" + hentetAdresse + \"\\n\");\n }\n\n output.println();\n output.println(\"Konto_type \\t\\t reg_nr \\t\\t konto_nr \\t\\t rentesats \\t\\t saldo \\t\\t overtraeksgebyr \\t\\t overtraek \\t\\t id\");\n output.println(\"------------------------------------------------------------------------------------------------------------------------------------\");\n\n // Henter konto tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM konto\";\n rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra konto tabelen ind i tekstfilen\n hentetKonto_type = rs.getNString(1);\n hentetReg_nr = rs.getInt(2);\n hentetKonto_nr = rs.getInt(3);\n hentetRentesats = rs.getInt(4);\n hentetSaldo = rs.getInt(5);\n hentetOvertraeksgebyr = rs.getInt(6);\n hentetOvertraeks = rs.getNString(7);\n hentetId = rs.getInt(8);\n output.print(hentetKonto_type + \"\\t\\t\" + hentetReg_nr + \"\\t\\t\" + hentetKonto_nr + \"\\t\\t\" + hentetRentesats + \"\\t\\t\" + hentetSaldo + \"\\t\\t\" + hentetOvertraeksgebyr + \"\\t\\t\" + hentetOvertraeks + \"\\t\\t\" + hentetId + \"\\n\");\n }\n\n output.println();\n output.println(\"id \\t\\t Fra_Konto \\t\\t Trukketbeløb \\t\\t Til_kontoNr \\t\\t Indførtbeløb \\t\\t Timestamp\");\n output.println(\"------------------------------------------------------------------------------------------------------------------------------------\");\n\n // Henter transactioner tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM transactioner\";\n rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra transactioner tabelen ind i tekstfilen\n hentetId = rs.getInt(1);\n hentetFra_Konto = rs.getInt(2);\n hentetTrukketbelob = rs.getDouble(3);\n hentetTil_Konto = rs.getInt(4);\n hentetIndfortbelob = rs.getDouble(5);\n hentetTimestamp = rs.getTimestamp(6);\n output.print(hentetId + \"\\t\\t\" + hentetFra_Konto + \"\\t\\t\" + hentetTrukketbelob + \"\\t\\t\" + hentetTil_Konto + \"\\t\\t\" + hentetIndfortbelob + \"\\t\\t\" + hentetTimestamp + \"\\n\");\n }\n\n output.println();\n output.println(\"username \\t\\t password\");\n output.println(\"------------------------------------------------------------------------------------------------------------------------------------\");\n\n // Henter login tabelen\n stmt = con.createStatement();\n sql = \"SELECT * FROM login\";\n rs = stmt.executeQuery(sql);\n while (rs.next()) { // Indsaetter raekkerne fra login tabelen ind i tekstfilen\n hentetUsername = rs.getNString(1);\n hentetPassword = rs.getInt(2);\n output.print(hentetUsername + \"\\t\\t\" + hentetPassword + \"\\n\");\n }\n\n }\n System.out.println(\"End Of Days backup successful!\");\n }", "public void takeScreenShot(){\n\t\tDate d=new Date();\r\n\t\tString screenshotFile=d.toString().replace(\":\", \"_\").replace(\" \", \"_\")+\".png\";\r\n\t\t// store screenshot in that file\r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catcsh block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//put screenshot file in reports\r\n\t\ttest.log(LogStatus.INFO,\"Screenshot-> \"+ test.addScreenCapture(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t\r\n\t}", "public static Report restoreSubreportsInMaster(Report report) {\n JasperContent reportContent = (JasperContent) report.getContent();\n List<JcrFile> subreportFiles = reportContent.getSubreports();\n\t\tif (subreportFiles.size() > 0) {\n\t\t\tJcrFile masterFile = reportContent.getMaster();\n\t\t\ttry {\n\t\t\t\tString masterContent = new String(masterFile.getDataProvider().getBytes(), \"UTF-8\");\n\t\t\t\tList<String> subreportsContent = new ArrayList<String>();\n\t\t\t\tfor (int i = 0, size = subreportFiles.size(); i < size; i++) {\n\t\t\t\t\tsubreportsContent.add(new String(subreportFiles.get(i).getDataProvider().getBytes(), \"UTF-8\"));\n\t\t\t\t}\n\t\t\t\tfor (int i = 0, size = subreportFiles.size(); i < size; i++) {\n\t\t\t\t\tString name = subreportFiles.get(i).getName();\n\t\t\t\t\tString oldName = getUnique(name, report.getId()) + \".\" + JASPER_COMPILED_EXT;\n\t\t\t\t\tString newName = name + \".\" + JASPER_COMPILED_EXT;\n\t\t\t\t\tmasterContent = masterContent.replaceAll(oldName, newName);\n\t\t\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\t\t\tif (j != i) {\n\t\t\t\t\t\t\tsubreportsContent.set(j, subreportsContent.get(j).replaceAll(oldName, newName));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\t\t\tLOG.debug(\"Subreport \" + name + \": \" + oldName + \" > \" + newName);\n\t\t\t\t\t\t// LOG.debug(\"master = \" + master);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmasterFile.setDataProvider(new JcrDataProviderImpl(masterContent.getBytes(\"UTF-8\")));\n\t\t\t\tfor (int i = 0, size = subreportFiles.size(); i < size; i++) {\n\t\t\t\t\tsubreportFiles.get(i).setDataProvider(new JcrDataProviderImpl(subreportsContent.get(i).getBytes(\"UTF-8\")));\n\t\t\t\t}\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\tLOG.error(\"Error inside JasperUtil.restoreSubreportsInMaster: \" + e.getMessage(), e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n return report;\n }", "@LogMethod\r\n private void publishDataToDateBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY3);\r\n\r\n clickAndWait(Locator.linkWithText(\"Manage\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n clickAndWait(Locator.linkWithText(\"Create New Timepoint\"));\r\n setFormElement(Locator.name(\"label\"), \"Preexisting Timepoint\");\r\n setFormElement(Locator.name(\"sequenceNumMin\"), \"50\");\r\n setFormElement(Locator.name(\"sequenceNumMax\"), \"89\");\r\n selectOptionByText(Locator.name(\"typeCode\"), \"Screening\");\r\n\r\n clickButton(\"Save\");\r\n assertElementPresent(Locator.tagWithAttribute(\"a\", \"data-original-title\", \"edit\"), 1);\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study3\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY3 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] dates = new String[]{\"2000-02-02\", \"2000-03-03\", \"2000-04-04\", \"2000-05-05\", \"2000-06-06\", \"2001-01-01\", \"2000-01-01\", \"2000-02-02\", \"2000-03-03\"};\r\n int idx = 1;\r\n for (String d : dates)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='date'])[\" + idx + \"]\"), d);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='AAA07XMC-02'] and following-sibling::td[text()='301.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='AAA07XMC-04'] and following-sibling::td[not(text())]]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 90 - 95' and following-sibling::td/a[text()='AAA07XSF-02'] and following-sibling::td[not(text())]]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 120 - 127' and following-sibling::td/a[text()='AssayTestControl1'] and following-sibling::td[text()='5.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 152 - 159' and following-sibling::td/a[text()='AssayTestControl2'] and following-sibling::td[text()='6.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 0 - 7' and following-sibling::td/a[text()='BAQ00051-09'] and following-sibling::td[text()='7.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='BAQ00051-08'] and following-sibling::td[text()='8.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='BAQ00051-11'] and following-sibling::td[text()='9.0']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"2\", \"2\", \"1\", \"1\", \"1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \"1 / 1\", \"2 / 2\", \"2 / 2\", \"1 / 1\", \"1 / 1\", \"1 / 1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Manage Study\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n assertTextPresent(\r\n \"Day 0 - 7\",\r\n \"Day 32 - 39\",\r\n \"Day 90 - 95\",\r\n \"Day 120 - 127\",\r\n \"Day 152 - 159\");\r\n }", "public synchronized static void cleanOldFiles() {\n\t\tGregorianCalendar yesterday = new GregorianCalendar();\n\t\tyesterday.roll(GregorianCalendar.HOUR_OF_DAY,-4);\n\t\tcleanOldFiles(yesterday.getTime());\n\t}", "public void copyApprovedPendingLedgerEntries();", "public static void main_backup(){\n try {\n tableClone = (HiringTable) table.clone();\n System.out.println(\"Successfully created backup.\");\n } catch (CloneNotSupportedException ex){\n System.out.println(\"Clone not successful.\");\n main_menu();\n }\n }", "@Test\n\tprivate void takeScreenshot() throws IOException {\n\t\tFile screenshot = ((TakesScreenshot) this.driver).getScreenshotAs(OutputType.FILE);\n\t\tString fileName = this.getTimestamp() + \".png\";\n\t\tFileUtils.copyFile(screenshot, new File(fileName));\n\n\t}", "private void report() {\n\t\t\n\t}", "private void collectPersistedScreenshotMetadata(Map<String, ScreenshotImportMetadatas> data) {\n data.forEach((k, v) -> {\n if (!v.isNotFound()) {\n ObjectContext context = serverRuntime.newContext();\n Pkg pkg = Pkg.getByName(context, k);\n pkg.getPkgSupplement().getPkgScreenshots().forEach((ps) -> v.add(createPersistedScreenshotMetadata(ps)));\n }\n });\n }", "public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }", "@Override\n @Transactional\n public void addBulkInsertsAfterExtraction() {\n List<ScrapBook> scrapBooks = new ArrayList<ScrapBook>();\n boolean jobDone = false;\n boolean pause = false;\n while (!jobDone) {\n pause = false;\n int lineCount = 0;\n while (!pause) {\n ++lineCount;\n if (lineCount % 30 == 0) {\n scrapBooks = springJdbcTemplateExtractor.getPaginationList(\"SELECT * FROM ScrapBook\", 1, 30);\n pause = true;\n }\n }\n //convert scrapbook to book and insert into db\n convertedToBookAndInsert(scrapBooks);\n // delete all inserted scrapbooks\n springJdbcTemplateExtractor.deleteCollection(scrapBooks);\n scrapBooks = null;\n if (0 == springJdbcTemplateExtractor.findTotalScrapBook()) {\n jobDone = true;\n }\n }\n }", "public void deletePendingReports() {\r\n String[] filesList = getCrashReportFilesList();\r\n if (filesList != null) {\r\n for (String fileName : filesList) {\r\n new File(mContext.getFilesDir(), fileName).delete();\r\n }\r\n }\r\n }", "private void exportToInsertSql() {\n\n if (destTableNameList.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"No table is selected.\");\n return;\n }\n final StringBuilder sb = new StringBuilder();\n for (final String tableName : destTableNameList) {\n utils.executeQuerySql(\"SELECT * FROM \" + tableName + \" WHERE 1=2\", new DataMetaUtils.QueryAction<Object>() {\n @Override\n public Object callback(ResultSet rs) throws SQLException {\n StringBuilder tableTriggerSb = new StringBuilder();\n ResultSetMetaData metaData = rs.getMetaData();\n String auditTableName = tableName + \"_AL\";\n tableTriggerSb.append(\"CREATE TABLE \").append(auditTableName).append(\" (\\n\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n tableTriggerSb.append(\" \");\n tableTriggerSb.append(metaData.getColumnName(i + 1));\n String typeName = metaData.getColumnTypeName(i + 1);\n tableTriggerSb.append(\" \")\n .append(typeName);\n if (metaData.getPrecision(i + 1) > 0) {\n tableTriggerSb.append(\"(\")\n .append(metaData.getPrecision(i + 1));\n if (metaData.getScale(i + 1) > 0) {\n tableTriggerSb.append(\",\")\n .append(metaData.getScale(i + 1));\n }\n tableTriggerSb.append(\")\");\n }\n\n tableTriggerSb.append(\",\\n\");\n\n }\n tableTriggerSb.append(\" ACT_TYPE CHAR(1),\\n\")\n .append(\" ACT_BY VARCHAR2(50),\\n\")\n .append(\" ACT_TIME DATE\\n\");\n tableTriggerSb.append(\");\\n\");\n\n\n //create trigger\n StringBuilder newInsert = new StringBuilder();\n StringBuilder delInsert = new StringBuilder();\n newInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n delInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n delInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(\":NEWROW.\").append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(\":OLDROW.\").append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"v_actType,\")\n .append(\":NEWROW.UPDATED_BY,\")\n .append(\"sysdate);\\n\");\n delInsert.append(\"'D',\")\n .append(\"USER,\")\n .append(\"sysdate);\\n\");\n\n tableTriggerSb.append(\"CREATE OR REPLACE TRIGGER \")\n .append(\"TR_AL_\")\n .append(tableName)\n .append(\" \\n\")\n .append(\"AFTER INSERT OR DELETE OR UPDATE ON \")\n .append(tableName)\n .append(\" \\n\")\n .append(\"REFERENCING OLD AS \\\"OLDROW\\\" NEW AS \\\"NEWROW\\\" \\n\"\n + \"FOR EACH ROW \\n\"\n + \"ENABLE\\n\")\n .append(\"DECLARE\\n\")\n .append(\"v_actType char(1);\\n\")\n .append(\"BEGIN\\n\")\n .append(\"IF INSERTING OR UPDATING THEN \\n\"\n + \"BEGIN \\n\"\n + \"IF INSERTING THEN \\n v_actType := 'I'; \\nELSE\\n v_actType := 'U';\\n END IF;\\n\");\n tableTriggerSb.append(newInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \" ELSIF DELETING THEN \\n\"\n + \" BEGIN \\n\");\n\n tableTriggerSb.append(delInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \"END IF;\\n\"\n + \"END;\\n/\\n\");\n sb.append(tableTriggerSb.toString());\n\n return null;\n }\n });\n }\n\n SqlResultForm form = new SqlResultForm(null, true);\n form.setLocationRelativeTo(null);\n form.setSqlResult(sb.toString());\n form.setTestDsKey(((ValueName) cmbDs.getSelectedItem()).getValue());\n form.setVisible(true);\n\n }", "@Test\r\n\tpublic void extendReports() throws IOException {\n\t\tString File = \"./Reports/report.html\";\r\n\t\tExtentHtmlReporter html = new ExtentHtmlReporter(File);\r\n\t\thtml.setAppendExisting(true);\r\n\t\t//to write on the created html file\r\n\t\tExtentReports extents = new ExtentReports();\r\n\t\textents.attachReporter(html);\r\n\t\t\r\n\t\tExtentTest createAccountTest = extents.createTest(\"TC001\", \"CreateAccount\");\r\n\t\tcreateAccountTest.pass(\"username entered\", MediaEntityBuilder.createScreenCaptureFromPath(\"./../snaps/img1.png\").build());\r\n\t\textents.flush();\r\n\t\t\r\n\r\n\t}", "public BeansReportWrittenExamination() {\n\t\tsuper();\n\t}", "private void addGroovyScriptMultiJob() {\r\n\t\tString html_text = \"\";\r\n\t\tString html_newline = \"\";\r\n\r\n if (getOptionHTMLBuildDesc().equalsIgnoreCase(\"HTML\")) {\r\n html_text = \".html\";\r\n html_newline = \"<br>\";\r\n } else {\r\n html_text = \".txt\";\r\n html_newline = \"\\\\n\";\r\n }\r\n String script =\r\n\"import hudson.FilePath\\n\" +\r\n\"\\n\" +\r\n\"FilePath fp_c = new FilePath(manager.build.getWorkspace(),'CombinedReport\" + html_text + \"')\\n\" +\r\n\"FilePath fp_f = new FilePath(manager.build.getWorkspace(),'@PROJECT_BASE@_full_report\" + html_text + \"')\\n\" +\r\n\"\\n\" +\r\n\"if (fp_c.exists() && fp_f.exists())\\n\" +\r\n// Must put HTML in createSummary and not description. Description will be truncated\r\n// and shown in Build history on left and cause corruption in the display, particularly\r\n// if using 'anything-goes-formatter'\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"monitor.png\\\").appendText(fp_c.readToString() + \\\"\" + html_newline + \"\\\" + fp_f.readToString(), false)\\n\" +\r\n\"}\\n\" +\r\n\"else\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"General Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\" manager.build.description = \\\"General Failure, Incremental Build Report or Full Report Not Present. Please see the console for more information\\\"\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"General Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n script = StringUtils.replace(script, \"@PROJECT_BASE@\", getBaseName());\r\n\r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n getTopProject().getPublishersList().add(groovy);\r\n }", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void FormReadyForExport() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n String getCreatedDate = \"SELECT Date_Created As dateCreated FROM existing_forms WHERE Date_Created IS NOT NULL AND Form_Name = '\"+ InvAdj_Admin.frmNm + \"'\";\r\n s.execute(getCreatedDate); \r\n try (ResultSet rs3 = s.getResultSet()) {\r\n while (rs3.next()) {\r\n dateCreated = rs3.getString(\"dateCreated\");\r\n }\r\n } \r\n \r\n String updateExisting = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Ready_for_Export', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n \r\n String insTable = \"INSERT INTO completed_forms\"\r\n + \"(Store, Form_Name, Date_Created, Last_Updated, Status) \"\r\n + \"VALUES(\"\r\n + \"'\" + InvAdj_Admin.frmNm.split(\"_\")[1] + \"'\" + \",\"\r\n + \"'\" + InvAdj_Admin.frmNm + \"'\" + \",\"\r\n // + \"'\" + InvAdj_Admin.frmDate + \"'\" + \",\"\r\n + \"'\" + dateCreated + \"'\" + \",\"\r\n + \"'\" + GtDates.tdate + \"'\" + \",\"\r\n + \"'\" + \"Ready_for_Export\" + \"'\"\r\n + \")\";\r\n \r\n \r\n s.execute(updateExisting); \r\n s.execute(insTable);\r\n \r\n }", "private void processFromLastRun() {\n for (String configId : dirsFromLastRunToProcess.keySet()) {\r\n File dirToProcess = dirsFromLastRunToProcess.get(configId);\r\n processContentFiles(dirToProcess, configId);\r\n }\r\n \r\n dirsFromLastRunToProcess = new HashMap<String, File>();\r\n }", "private static void Worker(Connection con, String d1, String d2) throws SQLException, IOException {\n var id = 0;\n var CREATE_USER_ID = 0;\n long CREATE_USER_DATE = 0;\n var url = \"\";\n\n Path path = Paths.get(userHome + \"/photos.txt\");\n var content = \"\";\n\n PreparedStatement ps = con.prepareStatement(\"select id, url, foto, CREATE_USER_ID, CREATE_USER_DATE from lksz.fotok where CREATE_USER_DATE>='\" + d1 + \"' and CREATE_USER_DATE<'\" + d2 + \"' order by id\");\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n id = rs.getInt(1);\n url = rs.getString(2);\n CREATE_USER_ID = rs.getInt(4);\n CREATE_USER_DATE = rs.getLong(5);\n\n try {\n Blob b = rs.getBlob(3); //2 means 2nd column data\n if (b != null) {\n byte barr[] = b.getBytes(1, (int) b.length()); //1 means first image\n\n FileOutputStream fout = new FileOutputStream(\"/export/exp/\" + url);\n fout.write(barr);\n\n fout.close();\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n System.out.println(ind + \": \" + \"/export/exp/\" + url);\n ind++;\n content = id + \"|\" + url + \"|\" + CREATE_USER_ID + \"|\" + CREATE_USER_DATE + \"\\n\";\n try {\n Files.write(path, content.getBytes(), StandardOpenOption.APPEND);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n rs.close();\n ps.close();\n }", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "boolean generateReport();", "private void addReportingCommands(Project project, MultiJobDetail detail, String baseName) {\r\n String noGenExecReport = \"\";\r\n if (!getOptionExecutionReport()) {\r\n noGenExecReport = \" --dont-gen-exec-rpt\";\r\n }\r\n \r\n String win =\r\ngetEnvironmentSetupWin() + \"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\generate-results.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" \\\"@PROJECT@\\\" --level @LEVEL@ -e @ENV@ \" + noGenExecReport + \"\\n\" +\r\ngetEnvironmentTeardownWin() + \"\\n\" +\r\n\"\";\r\n win = StringUtils.replace(win, \"@PROJECT@\", getManageProjectName());\r\n win = StringUtils.replace(win, \"@LEVEL@\", detail.getLevel());\r\n win = StringUtils.replace(win, \"@ENV@\", detail.getEnvironment());\r\n \r\n String unix =\r\ngetEnvironmentSetupUnix() + \"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/generate-results.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" \\\"@PROJECT@\\\" --level @LEVEL@ -e @ENV@ \" + noGenExecReport + \"\\n\" +\r\ngetEnvironmentTeardownUnix() + \"\\n\" +\r\n\"\";\r\n unix = StringUtils.replace(unix, \"@PROJECT@\", getManageProjectName());\r\n unix = StringUtils.replace(unix, \"@LEVEL@\", detail.getLevel());\r\n unix = StringUtils.replace(unix, \"@ENV@\", detail.getEnvironment());\r\n\r\n VectorCASTCommand command = new VectorCASTCommand(win, unix);\r\n project.getBuildersList().add(command);\r\n }", "public void removeAllOriginalTextWriter() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALTEXTWRITER);\r\n\t}", "@Override\n public void onLoadReport(ConsoleProxyLoadReportCommand cmd) {\n }", "private void pushSavedReport() throws JSONException {\n final Cursor cursor = getSavedReportCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n\n int updatedRows = 0;\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n final int reportId = cursor.getInt(\n cursor.getColumnIndex(ReportEntry.COLUMN_REPORT_ID));\n ExpenseReport expenseReport = new ExpenseReport();\n expenseReport.setName(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_NAME)));\n expenseReport.setApproverEmail(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_APPROVER_EMAIL)\n ));\n\n expenseReport.setComment(cursor.getString(cursor.getColumnIndex(\n ReportEntry.COLUMN_COMMENT)));\n\n ERTRestApi.apiSaveReport(\n expenseReport,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseReport expenseReportResponse =\n gson.fromJson(\n response.toString(),\n ExpenseReport.class\n );\n\n if(!getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.EDITED_REPORT.toString())) {\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId,\n SyncStatus.SYNCED);\n }\n\n\n updateExpenseLineItemReportId(reportBaseId,\n expenseReportResponse.getId()\n );\n setReportValuesFromServer(reportBaseId, expenseReportResponse);\n\n pushSavedExpenseLineItem();\n\n\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi.ERTRestApiError error) {\n int updatedRows = updateReportSyncStatus(reportBaseId, SyncStatus.SAVED_REPORT);\n Log.d(LOG_TAG, \"updated rows save report error:\" + updatedRows);\n Log.e(LOG_TAG, error.getMessage());\n }\n }\n );\n\n if(getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.SAVED_REPORT.toString())) {\n\n updatedRows = updateReportSyncStatus(reportBaseId,\n SyncStatus.SYNC_IN_PROGRESS\n );\n }\n\n Log.d(LOG_TAG, \"updated rows save report:\" + updatedRows);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}", "public void moveCoverageFileToLocalBase() throws IOException {\n\t\tString projectName = DataManager.getProjectVersion();\n\t\tif(projectName.contains(\"_Old\")){\n\t\t\tprojectName = projectName.replace(\"_Old\", \"\");\n\t\t}\n\t\tString origin = ajdtHandler.getFullProjectPath(projectName);\n\t\torigin += slash + \"report\" + slash;\n\t\tString destiny = DataManager.getCurrentPath();\n\t//\tJavaIO.copy(origin, destiny, \"coveragePriorJ.xml\");\n\t\tJavaIO.copyAll(new File(origin), new File(destiny), true);\n\t}", "public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "protected abstract String copyQuestionHistoricalTx(String userId, String qid, Pool destination);", "private List<String> newChangNotStaged(HashMap<String, Blob> allFiles) {\n ArrayList<String> result = new ArrayList<>();\n for (String fileName: Utils.plainFilenamesIn(Main.CWD)) {\n Blob ourBlob = allFiles.get(fileName);\n File fileInCWD = new File(Main.CWD, fileName);\n String content = Utils.readContentsAsString(fileInCWD);\n if (ourBlob != null) {\n if (!ourBlob.getContent().equals(content)\n && !isStaged(fileName)) {\n String elem = fileName + \" (modified)\";\n result.add(elem);\n }\n allFiles.remove(fileName);\n }\n }\n return result;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tFile dir = new File(\"src/reports\");\n\t\t\t\tfor (File file : dir.listFiles())\n\t\t\t\tif (!file.isDirectory())\n\t\t\t\tfile.delete();\n\t\t\t\t}", "private void assertIsolatedSnapshot(String source, String dest) {\n List<Row> expected = spark.sql(String.format(\"SELECT * FROM %s\", source)).collectAsList();\n\n List<SimpleRecord> extraData = Lists.newArrayList(new SimpleRecord(4, \"d\"));\n Dataset<Row> df = spark.createDataFrame(extraData, SimpleRecord.class);\n df.write().format(\"iceberg\").mode(\"append\").saveAsTable(dest);\n\n List<Row> result = spark.sql(String.format(\"SELECT * FROM %s\", source)).collectAsList();\n Assert.assertEquals(\n \"No additional rows should be added to the original table\", expected.size(), result.size());\n\n List<Row> snapshot =\n spark\n .sql(String.format(\"SELECT * FROM %s WHERE id = 4 AND data = 'd'\", dest))\n .collectAsList();\n Assert.assertEquals(\"Added row not found in snapshot\", 1, snapshot.size());\n }", "@AfterClass\n\tpublic static void generateReport() {\n\t\tCucumberReportingConfig.reportConfig();\n\t\n\t}", "private void removeOldFiles() {\n Set<File> existingFiles = new HashSet<File>();\n collectFiles(existingFiles);\n for (ResourceResponse r : cacheResponseProcessor.getResources()) {\n String remotePathId = r.pathId;\n String remotePath = localClasspathProcessor.getLocalClasspath().get(remotePathId);\n String localPath = localPathTranslation.get(remotePath);\n File localFile = new File(localPath);\n File file = new File(localFile, r.name);\n existingFiles.remove(file);\n }\n }", "@Override\n public void reportMaterializedPictures(Observable<MaterializedPicture> files) {\n \n }", "@Override\r\n\tpublic void afterInvocation(IInvokedMethod arg0, ITestResult arg1) {\n\t\tGenerateReports.flushReport();\r\n\t}", "@Override\n public Report getReport() {\n return null;\n }", "abstract ImmutableMap<String, ReportFiles> reports();", "public void generarReporteCostoGastoImpors(String sAccionBusqueda,List<CostoGastoImpor> costogastoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CostoGastoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Costo Gasto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CostoGastoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCostoGastoImporLogic costogastoimporLogicAuxiliar=new CostoGastoImporLogic();\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setDatosCliente(costogastoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setCostoGastoImpors(costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyCostoGastoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporsParaReportes=costogastoimporLogicAuxiliar.getCostoGastoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (CostoGastoImpor costogastoimpor:costogastoimporsParaReportes) {\r\n\t\t\t\t\t//\tcostogastoimporLogic.deepLoad(costogastoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//costogastoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpor\", reportFileDetalleLiquidacionImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCostoGastoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCostoGastoImpor=new JRBeanArrayDataSource(CostoGastoImporJInternalFrame.TraerCostoGastoImporBeans(costogastoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCostoGastoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CostoGastoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CostoGastoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CostoGastoImporBean.TraerCostoGastoImporBeans(costogastoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCostoGastoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "private void export(ActionEvent actionEvent) {\n if (this.totalCycles == -1) {\n var result = JOptionPane.showConfirmDialog(this, \"The run is not finished yet. Are you sure you want to proceed?\",\n \"Unfinished run\", JOptionPane.YES_NO_CANCEL_OPTION);\n\n if (result == JOptionPane.NO_OPTION) {\n return;\n }\n }\n\n // File dialog to save the history\n var fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getName().endsWith(\".json\");\n }\n\n @Override\n public String getDescription() {\n return \"*.json\";\n }\n });\n\n fileChooser.setAcceptAllFileFilterUsed(false);\n fileChooser.setCurrentDirectory(new File(Variables.OUTPUT_PATH));\n var resultDialog = fileChooser.showSaveDialog(this);\n\n if (resultDialog == JFileChooser.APPROVE_OPTION) {\n var file = fileChooser.getSelectedFile();\n\n if (!file.getName().endsWith(\".json\")) {\n file = new File(file.getAbsolutePath() + \".json\");\n }\n if (file.exists()) {\n var sure = JOptionPane.showConfirmDialog(this, \"File already exists. Overwrite?\",\n \"Overwrite file?\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n if (sure != JOptionPane.YES_OPTION) {\n return;\n }\n }\n\n this.saveHistoryToFile(file);\n }\n }", "public void copyStyle() {\n if (this.getSelectedElements().size() == 0) return;\r\n this.getMainFrame().setStyleClipbardContent( ((ReportElement)this.getSelectedElements().elementAt(0)).cloneMe() );\r\n\r\n }", "private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }", "@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }", "private void copyArtifacts(AbstractBuild<?, ?> build,\n QaFrameworkReportSettings qaReportSettings,\n BuildListener listener) {\n\n try {\n copyReportsToArtifactsDir(qaReportSettings, build, listener);\n if (qaReportSettings.isPublishToQAV() && qaReportSettings.isLoginToQAV()) {\n copyResourcesToArtifactsDir(\"*.log\", build, listener);\n }\n } catch (IOException | InterruptedException ex) {\n log.log(SEVERE, \"Failed copying build artifacts from slave to server - Use Copy Artifact Plugin\", ex);\n outStream.println(\"Auto Copy of Build Artifacts to artifact dir on Master Failed\");\n outStream.println(\"Manually add Build Artifacts to artifact dir or use Copy Artifact Plugin \");\n outStream.println(ex.getMessage());\n }\n }", "public void copy() {\n\n\t}", "List<String> generateDeleteAllScript();" ]
[ "0.5658122", "0.55011207", "0.54534066", "0.53732413", "0.5188274", "0.5044314", "0.49801946", "0.49756545", "0.4922297", "0.4888186", "0.4860808", "0.48323014", "0.48114327", "0.47912872", "0.47740313", "0.4771206", "0.47657487", "0.47562623", "0.47523093", "0.4746526", "0.47392282", "0.4728586", "0.47105303", "0.4707134", "0.47059342", "0.47026458", "0.4691059", "0.46759373", "0.46754912", "0.46726912", "0.46136358", "0.46095422", "0.45758322", "0.45745698", "0.45717177", "0.45314506", "0.4526179", "0.45230734", "0.4515183", "0.45107546", "0.4504054", "0.45022961", "0.44930628", "0.44895118", "0.4487732", "0.44850925", "0.44811317", "0.44766676", "0.4470572", "0.44629374", "0.4462128", "0.44554776", "0.44487604", "0.44458562", "0.44356117", "0.44285938", "0.44255897", "0.44207904", "0.44145736", "0.44107726", "0.4409289", "0.44077444", "0.44054216", "0.43918946", "0.43911722", "0.4388201", "0.43880484", "0.4385081", "0.43799934", "0.43782884", "0.43754748", "0.43730173", "0.43721673", "0.43656296", "0.43627363", "0.43613505", "0.43502238", "0.43458977", "0.43458194", "0.43444026", "0.43361825", "0.43324256", "0.43278667", "0.43234462", "0.43191755", "0.43190458", "0.43182343", "0.43101045", "0.43051904", "0.43048608", "0.429788", "0.42953357", "0.42937362", "0.4293516", "0.42904365", "0.42901722", "0.42844138", "0.42806885", "0.42799833", "0.42783365" ]
0.5165758
5
Prebuild for the plugin. We use this one to clean up old report files.
@Override public boolean prebuild(AbstractBuild<?, ?> build, BuildListener listener) { boolean success = false; FilePath workspace = build.getWorkspace(); if (workspace == null) { listener.getLogger() .println("Invalid workspace. Cannot continue."); return false; } DeleteReportsFromWorkspace deleter = new DeleteReportsFromWorkspace(); try { success = workspace.act(deleter); } catch (IOException | InterruptedException ex) { log.log(SEVERE, "Cleanup crew missing!", ex); listener.getLogger() .println(ex.getMessage()); } if (!success) { listener.getLogger() .println("Failed to cleanup workspace reports."); build.setResult(FAILURE); } return success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void cleanup() {\n // if the java runtime is holding onto any files in the build dir, we\n // won't be able to delete them, so we need to force a gc here\n System.gc();\n\n if (deleteFilesOnNextBuild) {\n // delete the entire directory and all contents\n // when we know something changed and all objects\n // need to be recompiled, or if the board does not\n // use setting build.dependency\n //Base.removeDir(tempBuildFolder);\n \n // note that we can't remove the builddir itself, otherwise\n // the next time we start up, internal runs using Runner won't\n // work because the build dir won't exist at startup, so the classloader\n // will ignore the fact that that dir is in the CLASSPATH in run.sh\n Base.removeDescendants(tempBuildFolder);\n \n deleteFilesOnNextBuild = false;\n } else {\n // delete only stale source files, from the previously\n // compiled sketch. This allows multiple windows to be\n // used. Keep everything else, which might be reusable\n if (tempBuildFolder.exists()) {\n String files[] = tempBuildFolder.list();\n for (String file : files) {\n if (file.endsWith(\".c\") || file.endsWith(\".cpp\") || file.endsWith(\".s\")) {\n File deleteMe = new File(tempBuildFolder, file);\n if (!deleteMe.delete()) {\n System.err.println(\"Could not delete \" + deleteMe);\n }\n }\n }\n }\n }\n \n // Create a fresh applet folder (needed before preproc is run below)\n //tempBuildFolder.mkdirs();\n }", "public void beforeCleaner() throws NumberFormatException, IOException, ParseException{\n \t\t // PRE-CLEANING:\n \t\t\ttestOutputCleaner(true);\n \t\t\ttestOutputTimeReset(true);\n \t\t\toutputCleaner(true);\n fileCleaner(\"email.all\" );\n fileCleaner(\"email.cont\" );\n fileCleaner(\"email.subj\" );\n fileCleaner(\"failed.log\" );\t\t\n fileCleaner(\"finish.time\");\n fileCleaner(\"ini.time\" );\n fileCleaner(\"print.log\" );\n fileCleaner(\"run.log\" );\n fileCleaner(\"stack.trace\");\n fileCleaner(\"start.time\" );\n fileCleaner(\"wait.log\" );\n fileCleaner(\"xml.path\" );\n fileCleaner(\"source.html\");\n fileCleaner(\"test.num\" );\n fileCleaner(\"failed.num\" );\n fileCleaner(\"emailable-report.html\");\n fileCleaner(\"extent-test-report.html\");\n \t\t}", "public void preArchive() {\n // update version number\n setVersionNumber(CURRENT_VERSION_NO);\n }", "@Override\n public void preRun() {\n super.preRun();\n }", "public void saveBeforeCompile() { }", "public void saveBeforeCompile() { }", "@Override\n public void prepare(\n Path execRoot,\n ArtifactPathResolver pathResolver,\n @Nullable BulkDeleter bulkDeleter,\n boolean cleanupArchivedArtifacts)\n throws IOException {\n deleteOutput(volatileStatus, pathResolver);\n }", "public void prepare() {\n // make sure the user didn't hide the sketch folder\n ensureExistence();\n\n current.setProgram(editor.getText());\n\n // TODO record history here\n //current.history.record(program, SketchHistory.RUN);\n\n // if an external editor is being used, need to grab the\n // latest version of the code from the file.\n if (Preferences.getBoolean(\"editor.external\")) {\n // history gets screwed by the open..\n //String historySaved = history.lastRecorded;\n //handleOpen(sketch);\n //history.lastRecorded = historySaved;\n\n // set current to null so that the tab gets updated\n // http://dev.processing.org/bugs/show_bug.cgi?id=515\n current = null;\n // nuke previous files and settings, just get things loaded\n load();\n }\n\n // in case there were any boogers left behind\n // do this here instead of after exiting, since the exit\n // can happen so many different ways.. and this will be\n // better connected to the dataFolder stuff below.\n cleanup();\n\n// // handle preprocessing the main file's code\n// return build(tempBuildFolder.getAbsolutePath());\n }", "public void build() {\r\n\tfDoingBatchBuild = true;\r\n\tfNotifier = new BuildNotifier(fDC, true);\r\n\tgetBuilderEnvironment().setNotifier(fNotifier);\r\n\tfNotifier.begin();\r\n\ttry {\r\n\t\tfNewState.readClassPath();\r\n\t\tfNotifier.subTask(Util.bind(\"build.scrubbingOutput\"/*nonNLS*/));\r\n\t\tfNewState.getBinaryOutput().scrubOutput();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingPackages\"/*nonNLS*/));\r\n\t\tfNewState.buildInitialPackageMap();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\r\n\t\t/* Force build all in build context */\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingSources\"/*nonNLS*/));\r\n\t\tIPackage[] pkgs = fNewState.getPackageMap().getAllPackagesAsArray();\r\n\t\tfor (int i = 0; i < pkgs.length; ++i) {\r\n\t\t\tfNotifier.checkCancel();\r\n\t\t\tSourceEntry[] entries = fNewState.getSourceEntries(pkgs[i]);\r\n\t\t\tif (entries != null) {\r\n\t\t\t\tfor (int j = 0; j < entries.length; ++j) {\r\n\t\t\t\t\tSourceEntry sEntry = entries[j];\r\n\t\t\t\t\tif (sEntry.isSource()) {\r\n\t\t\t\t\t\tPackageElement element = fNewState.packageElementFromSourceEntry(sEntry);\r\n\t\t\t\t\t\tfWorkQueue.add(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tVector vToCompile = fWorkQueue.getElementsToCompile();\r\n\t\tif (vToCompile.size() > 0) {\r\n\t\t\tfNotifier.setProgressPerCompilationUnit(0.75f / vToCompile.size());\r\n\t\t\tcompile(vToCompile);\r\n\t\t}\r\n\t\t/* Copy resources to binary output */\r\n\t\tnew ProjectResourceCopier(fNewState.getJavaProject(), fDC, fNotifier, 0.10f).copyAllResourcesOnClasspath();\r\n\t\t\r\n\t\tfNotifier.done();\r\n\t} finally {\r\n\t\tcleanUp();\r\n\t}\r\n}", "void PrepareRun() {\n }", "public void clean(IProgressMonitor mon) throws CoreException{\r\n \t\tif (project!=null){\r\n \t\t\t/**\r\n \t\t\t * closes processes so they don't have locks on resources we'd like to delete\r\n \t\t\t * and they can then be restarted with the newly generated files\r\n \t\t\t */\r\n \t\t\tcloseAllProcesses();\r\n \t\t\tclean(true);\r\n \t\t\tproject.refreshLocal(IResource.DEPTH_ONE, mon);\r\n \t\t\tdeleteCabalProblems();\r\n \t\t\tBuildWrapperPlugin.deleteAllProblems(project);\r\n \t\t\tcabalFileChanged();\r\n \t\t\toutlines.clear();\r\n \t\t\tif (SandboxHelper.isSandboxed(this)){\r\n \t\t\t\ttry {\r\n \t\t\t\t\tSandboxHelper.installDeps(this);\r\n \t\t\t\t} catch (CoreException ce){\r\n \t\t\t\t\tBuildWrapperPlugin.logError(BWText.error_sandbox,ce);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tsynchronize(false);\r\n \t\t}\r\n \t}", "public static void executeCleanBuild(String[] args) {\n\r\n\t\tSystem.out.println(\"STARTED TRANSFORMING FILES\");\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tArabicLayoutOrchestrator reviewOrchestrator = new ArabicLayoutOrchestrator();\r\n\t\t\t\r\n\t\t\tReviewModeConstants.TESTING_MODE_FLAG = true;\r\n\t\t\t\r\n\t\t\tif (args != null && args.length>0 && args[0] != null && args[0].trim().length()>0) {\r\n\t\t\t\tSystem.out.println(\"PROJECT FOLDER : \" + args[0]);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Unable to locate the Project !! Project Folder should be passed as an input arg to this task !! \");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tBuildPropertiesUtil.init(args[0]);\r\n\t\t\t\r\n\t\t\tLinkedHashSet<String> channelList = BuildPropertiesUtil.getSelectedChannelList();\r\n\t\t\tif(channelList.size() == 0) {\r\n\t\t\t\tSystem.out.println(\"Invalid/No Platforms Platforms selected. Please check your build.properties file\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint status = BuildPropertiesUtil.executeBuild(args[0]);\r\n\t\t\t\r\n\t\t\tif(status == 0){\r\n\t\t\t\tSystem.out.println(\"\\n************** Build Execution is successful. **************\\n\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"\\n************** Build Execution Failed. Please check the console Logs. **************\\n\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(String channel : channelList){\t\r\n\t\t\t\treviewOrchestrator.performCodeReview((new Date()).getTime());\r\n\t\t\t\t\r\n\t\t\t\tint buildStatus = BuildPropertiesUtil.executeBuild(args[0]);\r\n\t\t\t\t\r\n\t\t\t\tif(buildStatus == 0){\r\n\t\t\t\t\tJSReviewUtil.printToConsole(\"\\n************** Build execution for Channel \"+channel+\" is successful **********\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t\t}catch (Exception e) {\r\n\t\t\tSystem.out.println(\"ERROR : \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"COMPLETED TRANSFORMING FILES\");\r\n\t}", "void preProcess();", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "public void preSetup() {\r\n // Any of your pre setup before the loop starts should go here\r\n }", "@Override\n public Object preProcess() {\n return null;\n }", "public final void markProjectForRebuild() {\r\n forceNonIncremental = true;\r\n// rbLogic.forceNonIncremental();\r\n }", "public void preSetup() {\r\n // Any of your pre setup before the loop starts should go here\r\n\r\n }", "public void prePerform() {\n // nothing to do by default\n }", "public void preInstallHook() {\n }", "public BuildAnalyzerPlugin() {\n\t\tsuper();\n\t\tmonitor.register();\n\t\tplugin = this;\n\t}", "public static void preCrawling() {\n\t\ttry {\n\t\t\tHelper.directoryCheck(getOutputFolder());\n\t\t\toutput = new PrintStream(getOutputFolder() + getFilename());\n\n\t\t\t// Add opening bracket around whole trace\n\t\t\tPrintStream oldOut = System.out;\n\t\t\tSystem.setOut(output);\n\t\t\tSystem.out.println(\"{\");\n\t\t\tSystem.setOut(oldOut);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String preprocess(String buildPath, PdePreprocessor preprocessor) throws RunnerException {\n ensureExistence();\n\n String[] codeFolderPackages = null;\n classPath = buildPath;\n\n// // figure out the contents of the code folder to see if there\n// // are files that need to be added to the imports\n// if (codeFolder.exists()) {\n// libraryPath = codeFolder.getAbsolutePath();\n//\n// // get a list of .jar files in the \"code\" folder\n// // (class files in subfolders should also be picked up)\n// String codeFolderClassPath =\n// Compiler.contentsToClassPath(codeFolder);\n// // append the jar files in the code folder to the class path\n// classPath += File.pathSeparator + codeFolderClassPath;\n// // get list of packages found in those jars\n// codeFolderPackages =\n// Compiler.packageListFromClassPath(codeFolderClassPath);\n//\n// } else {\n// libraryPath = \"\";\n// }\n\n // 1. concatenate all .pde files to the 'main' pde\n // store line number for starting point of each code bit\n\n StringBuffer bigCode = new StringBuffer();\n int bigCount = 0;\n for (SketchCode sc : code) {\n if (sc.isExtension(\"ino\") || sc.isExtension(\"pde\")) {\n sc.setPreprocOffset(bigCount);\n // These #line directives help the compiler report errors with\n // correct the filename and line number (issue 281 & 907)\n bigCode.append(\"#line 1 \\\"\" + sc.getFileName() + \"\\\"\\n\");\n bigCode.append(sc.getProgram());\n bigCode.append('\\n');\n bigCount += sc.getLineCount();\n }\n }\n\n // Note that the headerOffset isn't applied until compile and run, because\n // it only applies to the code after it's been written to the .java file.\n int headerOffset = 0;\n //PdePreprocessor preprocessor = new PdePreprocessor();\n try {\n headerOffset = preprocessor.writePrefix(bigCode.toString(),\n buildPath,\n name,\n codeFolderPackages);\n } catch (FileNotFoundException fnfe) {\n fnfe.printStackTrace();\n String msg = _(\"Build folder disappeared or could not be written\");\n throw new RunnerException(msg);\n }\n\n // 2. run preproc on that code using the sugg class name\n // to create a single .java file and write to buildpath\n\n String primaryClassName = null;\n\n try {\n // if (i != 0) preproc will fail if a pde file is not\n // java mode, since that's required\n String className = preprocessor.write();\n\n if (className == null) {\n throw new RunnerException(_(\"Could not find main class\"));\n // this situation might be perfectly fine,\n // (i.e. if the file is empty)\n //System.out.println(\"No class found in \" + code[i].name);\n //System.out.println(\"(any code in that file will be ignored)\");\n //System.out.println();\n\n// } else {\n// code[0].setPreprocName(className + \".java\");\n }\n\n // store this for the compiler and the runtime\n primaryClassName = className + \".cpp\";\n\n } catch (FileNotFoundException fnfe) {\n fnfe.printStackTrace();\n String msg = _(\"Build folder disappeared or could not be written\");\n throw new RunnerException(msg);\n } catch (RunnerException pe) {\n // RunnerExceptions are caught here and re-thrown, so that they don't\n // get lost in the more general \"Exception\" handler below.\n throw pe;\n\n } catch (Exception ex) {\n // TODO better method for handling this?\n System.err.println(I18n.format(_(\"Uncaught exception type: {0}\"), ex.getClass()));\n ex.printStackTrace();\n throw new RunnerException(ex.toString());\n }\n\n // grab the imports from the code just preproc'd\n\n importedLibraries = new ArrayList<File>();\n\n for (String item : preprocessor.getExtraImports()) {\n File libFolder = (File) Base.importToLibraryTable.get(item);\n\n if (libFolder != null && !importedLibraries.contains(libFolder)) {\n importedLibraries.add(libFolder);\n //classPath += Compiler.contentsToClassPath(libFolder);\n libraryPath += File.pathSeparator + libFolder.getAbsolutePath();\n }\n }\n\n // 3. then loop over the code[] and save each .java file\n\n for (SketchCode sc : code) {\n if (sc.isExtension(\"c\") || sc.isExtension(\"cpp\") || sc.isExtension(\"h\")) {\n // no pre-processing services necessary for java files\n // just write the the contents of 'program' to a .java file\n // into the build directory. uses byte stream and reader/writer\n // shtuff so that unicode bunk is properly handled\n String filename = sc.getFileName(); //code[i].name + \".java\";\n try {\n Base.saveFile(sc.getProgram(), new File(buildPath, filename));\n } catch (IOException e) {\n e.printStackTrace();\n throw new RunnerException(I18n.format(_(\"Problem moving {0} to the build folder\"), filename));\n }\n// sc.setPreprocName(filename);\n\n } else if (sc.isExtension(\"ino\") || sc.isExtension(\"pde\")) {\n // The compiler and runner will need this to have a proper offset\n sc.addPreprocOffset(headerOffset);\n }\n }\n return primaryClassName;\n }", "boolean getNoPrecompile() {\n return noPrecompile;\n }", "public void clean(){\n preprocessorActionsPerFile.clear();\n }", "@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}", "@Override\n public void run() {\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }", "@Override\n\tpublic void pre()\n\t{\n\n\t}", "public PreparedCrashReport build();", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "@Override\n public void processPrepareMaintenaceEventBefore(final Long hostId) {\n\n }", "@Override\n\tpublic void svnLogPrepare() {\n\t}", "@Override\n protected void preSequencePreparations() {\n //initializing the HTML sequence report:\n htmlReport = new HtmlSequenceReport(scenarioCount, sequenceCount);\n // updating scenarioCount based on existing HTML files - sequence 1 gets the correct scenarioCount:\n scenarioCount = htmlReport.getScenarioCount();\n }", "@Override\n public void execute() throws BuildException {\n if (_sourceDir == null) {\n _sourceDir = getProject().getBaseDir();\n }\n\n // Destination directory defaults to source directory\n if (_destDir == null) {\n _destDir = _sourceDir;\n }\n\n // Check the directories\n checkDir(\"Source directory\", _sourceDir, true, false);\n checkDir(\"Destination directory\", _destDir, false, true);\n\n // Create a watch dog, if there is a time-out configured\n ExecuteWatchdog watchdog = (_timeOut > 0L) ? new ExecuteWatchdog(_timeOut) : null;\n\n // Determine what command to execute\n String command = (_command == null || _command.length() < 1)\n ? DEFAULT_COMMAND\n : _command;\n\n // Check that the command is executable\n Buffer buffer = new Buffer();\n Execute execute = new Execute(buffer, watchdog);\n String[] cmdline = new String[] { command, \"-v\" };\n execute.setAntRun(getProject());\n execute.setCommandline(cmdline);\n try {\n if (execute.execute() != 0) {\n throw new BuildException(\"Unable to execute LessCSS command \" + quote(command) + \". Running '\" + command + \" -v' resulted in exit code \" + execute.getExitValue() + '.');\n }\n } catch (IOException cause) {\n throw new BuildException(\"Unable to execute LessCSS command \" + quote(command) + '.', cause);\n }\n\n // Display the command and version number\n String versionString = buffer.getOutString().trim();\n if (versionString.startsWith(command)) {\n versionString = versionString.substring(command.length()).trim();\n }\n if (versionString.startsWith(\"v\")) {\n versionString = versionString.substring(1).trim();\n }\n log(\"Using command \" + quote(command) + \", version is \" + quote(versionString) + '.', MSG_VERBOSE);\n\n // TODO: Improve this, detect kind of command\n boolean createOutputFile = command.indexOf(\"plessc\") >= 0;\n\n // Preparations done, consider each individual file for processing\n log(\"Transforming from \" + _sourceDir.getPath() + \" to \" + _destDir.getPath() + '.', MSG_VERBOSE);\n long start = System.currentTimeMillis();\n int failedCount = 0, successCount = 0, skippedCount = 0;\n for (String inFileName : getDirectoryScanner(_sourceDir).getIncludedFiles()) {\n\n // Make sure the input file exists\n File inFile = new File(_sourceDir, inFileName);\n if (! inFile.exists()) {\n continue;\n }\n\n // Determine if the file type is supported\n if (! matches(inFileName.toLowerCase(), \"\\\\.less$\")) {\n log(\"Skipping \" + quote(inFileName) + \" because the file does not end in \\\".less\\\" (case-insensitive).\", MSG_VERBOSE);\n skippedCount++;\n continue;\n }\n\n // Some preparations related to the input file and output file\n long thisStart = System.currentTimeMillis();\n String outFileName = inFile.getName().replaceFirst(\"\\\\.less$\", \".css\");\n File outFile = new File(_destDir, outFileName);\n String outFilePath = outFile.getPath();\n String inFilePath = inFile.getPath();\n\n if (! _overwrite) {\n\n // Skip this file is the output file exists and is newer\n if (outFile.exists() && (outFile.lastModified() > inFile.lastModified())) {\n log(\"Skipping \" + quote(inFileName) + \" because output file is newer.\", MSG_VERBOSE); \n skippedCount++;\n continue;\n }\n }\n\n // Prepare for the command execution\n buffer = new Buffer();\n watchdog = (_timeOut > 0L) ? new ExecuteWatchdog(_timeOut) : null;\n execute = new Execute(buffer, watchdog);\n cmdline = createOutputFile\n ? new String[] { command, inFilePath }\n : new String[] { command, inFilePath, outFilePath };\n\n execute.setAntRun(getProject());\n execute.setCommandline(cmdline);\n\n // Execute the command\n boolean failure;\n try {\n execute.execute();\n failure = execute.isFailure();\n } catch (IOException cause) {\n failure = true;\n }\n\n // Output to stderr or stdout indicates a failure\n String errorOutput = buffer.getErrString();\n errorOutput = isEmpty(errorOutput) ? buffer.getOutString() : errorOutput;\n failure = failure ? true : ! isEmpty(errorOutput);\n \n // Create the output file if the command just sent everything to\n // standard out\n if (createOutputFile) {\n try {\n buffer.writeOutTo(new FileOutputStream(outFile));\n } catch (IOException cause) {\n throw new BuildException(\"Failed to write output to file \\\"\" + outFile.getPath() + \"\\\".\", cause);\n }\n }\n\n // Log the result for this individual file\n long thisDuration = System.currentTimeMillis() - thisStart;\n if (failure) {\n String logMessage = \"Failed to transform \" + quote(inFilePath);\n if (isEmpty(errorOutput)) {\n logMessage += '.';\n } else {\n logMessage += ':' + System.getProperty(\"line.separator\") + errorOutput;\n }\n log(logMessage, MSG_ERR);\n failedCount++;\n } else {\n log(\"Transformed \" + quote(inFileName) + \" in \" + thisDuration + \" ms.\", MSG_VERBOSE);\n successCount++;\n }\n }\n\n // Log the total result\n long duration = System.currentTimeMillis() - start;\n if (failedCount > 0) {\n throw new BuildException(\"\" + failedCount + \" file(s) failed to transform, while \" + successCount + \" succeeded. Total duration is \" + duration + \" ms.\");\n } else {\n log(\"\" + successCount + \" file(s) transformed in \" + duration + \" ms; \" + skippedCount + \" file(s) skipped.\");\n }\n }", "public void testPrintTenuringDistributionPreprocessActionNoSpaceAfterGc() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset66.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Event type count not correct.\", 1, jvmRun.getEventTypes().size());\n Assert.assertTrue(\"Log line not recognized as \" + JdkUtil.LogEventType.PAR_NEW.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.PAR_NEW));\n }", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "protected void onCompileInternal() {\r\n\t}", "public void prepare() {\n this.taskHandler.run(this::inlinePrepare);\n }", "private void fullBuild() throws CoreException {\n \t\ttry {\n \t\t\tIFolder sortedFolder = getSortedFolder();\n \t\t\tIFolder unsortedFolder = getUnsortedFolder();\n \n \t\t\tif (sortedFolder.exists()) {\n \t\t\t\t//delete all sorted files\n \t\t\t\tIResource[] members = sortedFolder.members();\n \t\t\t\tfor (int i = 0; i < members.length; i++) {\n \t\t\t\t\tdeleteResource(members[i]);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (unsortedFolder.exists()) {\n \t\t\t\tfullBuild(unsortedFolder);\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new ResourceException(IResourceStatus.BUILD_FAILED, null, \"Sort builder failed\", e);\n \t\t}\n \t}", "protected void finishLocalSetup() throws CheckstyleException\n {\n }", "public static final SubLObject setup_precanonicalizer_file() {\n memoization_state.note_memoized_function($sym6$PRECANONICALIZATIONS_INT);\n return NIL;\n }", "protected abstract void preRun();", "public String preprocess(String buildPath) throws RunnerException {\n return preprocess(buildPath, new PdePreprocessor());\n }", "private void handleAutoCompile() throws MojoExecutionException {\n boolean compileNeeded = true;\n boolean prepareNeeded = true;\n for (String goal : session.getGoals()) {\n if (goal.endsWith(\"quarkus:prepare\")) {\n prepareNeeded = false;\n }\n\n if (POST_COMPILE_PHASES.contains(goal)) {\n compileNeeded = false;\n break;\n }\n if (goal.endsWith(\"quarkus:dev\")) {\n break;\n }\n }\n\n //if the user did not compile we run it for them\n if (compileNeeded) {\n if (prepareNeeded) {\n triggerPrepare();\n }\n triggerCompile();\n }\n }", "@Override\n public void onPre() {\n }", "@BeforeClass(enabled = true)\n\tpublic void oneTimeSetup() {\n\t\ttry {\n\t\t\tFile resultsDirectory = new File(AppConstants.TEST_RESULTS_DIRECTORY);\n\t\t\tif (!resultsDirectory.isDirectory()) {\n\t\t\t\tFileUtils.forceMkdir(resultsDirectory);\n\t\t\t} else {\n\t\t\t\tFileUtils.cleanDirectory(resultsDirectory);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(\"Error cleaning the results directory\");\n\t\t}\n\t}", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tFile dir = new File(\"src/reports\");\n\t\t\t\tfor (File file : dir.listFiles())\n\t\t\t\tif (!file.isDirectory())\n\t\t\t\tfile.delete();\n\t\t\t\t}", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "public MakePlugin() {\n super(\n new ExerciseBuilder(),\n new StudentFileAwareSubmissionProcessor(),\n new StudentFileAwareZipper(),\n new StudentFileAwareUnzipper());\n this.makeUtils = new MakeUtils();\n }", "@Override\n public void stagePluginsForCache() throws Exception {\n assumeTrue( !isWindows() );\n super.stagePluginsForCache();\n }", "public void onPrepare() {\n\t\t\tif (mPlayStauts) {\n\t\t\t\tif (mHandler.hasMessages(MESSAGE_PLAY)) {\n\t\t\t\t\tmHandler.removeMessages(MESSAGE_PLAY);\n\t\t\t\t}\n\t\t\t\tmHandler.sendEmptyMessageDelayed(MESSAGE_PLAY, DELAY_TIME);\n\t\t\t}\n\t\t\tmHandler.sendEmptyMessageDelayed(MESSAGE_ONMEASURE,\n\t\t\t\t\tDELAY_REQUEST_TOTALPAGE);\n\t\t\tsetIsFileNotSupport(false);\n\t\t}", "@PreDestroy\r\n\tpublic void doMyCleanupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyCleanupStuff()\");\r\n\t}", "public void preprocess() {\n }", "public void preprocess() {\n }", "public void preprocess() {\n }", "public void preprocess() {\n }", "public void build()\n{\n\t_buildTime--;\n}", "@Override\n public void crowdInMojoExecute() throws MojoExecutionException, MojoFailureException {\n if (!isAllPropertyFilesExisted() && !isForce()) {\n getLog().info(\"\\n\\n\\n\");\n getLog().info(\"----------------------------------------------------------------------------------------\\n\\n\" + \"There are nonexistent properties files! Check again and update properties configuration files or run following command to \" + \"continue:\\n mvn clean install -Psync -Dforce=true \\n\" + \"Warning: All Crowdin files corresponding to nonexistent properties files will be deleted after execute above command.\\n\");\n getLog().info(\"----------------------------------------------------------------------------------------\\n\\n\\n\");\n return;\n }\n // Iterate on each project defined in crowdin.properties\n for (String proj : getProperties().keySet()) {\n getLog().info(\"Starting project \" + proj);\n // Get the Properties of the current project, i.e. the content of\n // cs-2.2.x.properties\n Properties currentProj = getProperties().get(proj);\n String baseDir = currentProj.getProperty(\"baseDir\");\n Set<Object> files = currentProj.keySet();\n // Iterate on each file of the current project\n for (Object file : files) {\n // Skip the property baseDir\n if (file.equals(\"baseDir\"))\n continue;\n // Construct the full path to the file\n String filePath = getWorkingDir() + File.separator + proj + File.separator + currentProj.getProperty(file.toString());\n CrowdinFile master = getFactory().prepareCrowdinFile(filePath, file.toString(), baseDir);\n updateFile(master);\n }\n getLog().info(\"Finished project \" + proj);\n }\n }", "@Override\n protected void process() {\n final List<File> srtFiles = new FileFinder().collect(new File(Constants.FILEFIXER_ROOT_DIR), Constants.SRT_EXTENSION);\n\n // process each file, making a backup first if it is enabled\n for (final File srtFile : srtFiles) {\n System.out.println(\"Processing subtitle file :: \" + srtFile.getName());\n\n if (Constants.MAKE_BACKUPS) {\n backupFile(srtFile);\n }\n\n fix(srtFile);\n }\n }", "protected void prepare4SaveScript() {\n\t\tMigrationConfiguration cfg = getMigrationWizard().getMigrationConfig();\n\t\tcfg.cleanNoUsedConfigForStart();\n\t}", "@Override\n public void prepare() {\n applicationDeployer.initialize();\n this.initialize();\n }", "public void doMyCleanUpStuff() {\r\n\t\tSystem.out.println(\"TrackCoach: inside method doMyCleanUpStuff\");\r\n\t}", "public void preRun() throws IOException {\n if (manageFileSystem && fs == null) {\n fs = getFileSystem();\n }\n // only to maintain the status of recordFile and recordOutput when manageRecordFile=true\n if (manageRecordFile) {\n File recordFile = new File(recordFileName);\n if (! recordFile.exists()) {\n recordFile.createNewFile();\n }\n if (recordOutput == null) {\n recordOutput = new FileOutputStream(recordFile);\n }\n recordOutput.write((TestRecord.formatCsvHeader()+\"\\n\").getBytes(StandardCharsets.UTF_8));\n }\n }", "@PreDestroy\n\tpublic void doMyCleanupStfff() {\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyCleanupStuff\");\n\t}", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "private void addPostReportingGroovy(Project project) {\r\n String script = \r\n\"Boolean buildFailed = false\\n\" +\r\n\"Boolean buildUnstable = false\\n\" +\r\n\"\\n\" +\r\n\"if(manager.logContains(\\\".*py did not execute correctly.*\\\") || manager.logContains(\\\".*Traceback .most recent call last.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Jenkins Integration Script Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Jenkins Integration Script Failure\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Failed to acquire lock on environment.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Failed to acquire lock on environment\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Failed to acquire lock on environment\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Environment Creation Failed.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Environment Creation Failed\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Environment Creation Failed\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*FLEXlm Error.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"FLEXlm Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"FLEXlm Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*INCR_BUILD_FAILED.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Build Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Build Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Environment was not successfully built.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Build Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Build Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*NOT_LINKED.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Link Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Link Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Preprocess Failed.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Preprocess Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Preprocess Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Value Line Error - Command Ignored.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"Test Case Import Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildUnstable = true\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"Test Case Import Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\" +\r\n\"if(manager.logContains(\\\".*Abnormal Termination on Environment.*\\\")) \\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Abnormal Termination of at least one Environment\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Abnormal Termination of at least one Environment\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\" +\r\n\"if (buildFailed && !buildUnstable)\\n\" +\r\n\"{\\n\" +\r\n\" manager.buildFailure()\\n\" +\r\n\"}\\n\" +\r\n\"if (buildUnstable)\\n\" +\r\n\"{\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n\r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n project.getPublishersList().add(groovy);\r\n }", "private static void preprocess() {\n \tLOG.info(\"Begin preprocessing of data.\");\n \t\n \tLOG.debug(\"Create a IterativeDirectoryReader.\");\n \t// Create a reader for directories\n \tIterativeDirectoryReader iterativeDirectoryReader = (IterativeDirectoryReader) ReaderFactory.instance().getIterativeDirectoryReader();\n \titerativeDirectoryReader.setDirectoryName(clArgs.preprocessInDir);\n \titerativeDirectoryReader.setPathInChildDirectory(clArgs.preprocessPathInChildDir);\n \t\n \tLOG.debug(\"Create a IterativeFileReader.\");\n \t// Create a reader for text files and set an appropriate file filter\n \tIterativeFileReader iterativeFileReader = (IterativeFileReader) ReaderFactory.instance().getIterativeFileReader();\n \titerativeFileReader.setFileFilter(FileUtil.acceptVisibleFilesFilter(false, true));\n \t\n \tLOG.debug(\"Create a TextFileLineReader.\");\n \t// Create a reader for text files, the first six lines are not relevant in this data set\n \tTextFileLineReader textFileLineReader = (TextFileLineReader) ReaderFactory.instance().getTextFileLineReader();\n \ttextFileLineReader.setOffset(clArgs.preprocessLineOffset);\n \t\n \tLOG.debug(\"Create a GpsLogLineProcessor.\");\n \t// Create a processor for user points\n \tGpsLogLineProcessor processor = new GpsLogLineProcessor(clArgs.preprocessOutFile);\n \t\n \t// Build reader chain\n \titerativeDirectoryReader.setReader(iterativeFileReader);\n \titerativeFileReader.setReader(textFileLineReader);\n \ttextFileLineReader.setProcessor(processor);\n \t\n \titerativeDirectoryReader.attach(processor, \n \t\t\t\tnew Interests[] {\n \t\t\t\t\tInterests.NewChildDirectory,\n \t\t\t\t\tInterests.HasFinished\n \t\t\t\t});\n \t\n \tLOG.debug(\"Read GPS logs. Save the data in a new file {}.\", clArgs.preprocessOutFile);\n \t// Read and save the data\n \titerativeDirectoryReader.read();\n\n \tLOG.info(\"Finished preprocessing of data.\");\n }", "public static void ConvertToBuilt()\r\n\t{\r\n\t\t Browser.instance.findElement(exitButton).click();\r\n\t\tBuildBagsPage.goTo();\r\n\t\tBuildBagsPage.EmptyToBuilt();\r\n\t\t\r\n\t\t\r\n\t}", "public void clean() {\n coffeeMachine.setDefaultCupsBeforeClean();\n }", "protected void cleaningUp() {\n\t}", "void prepare(final boolean triggerCompile) throws Exception {\n if (triggerCompile) {\n triggerCompile();\n }\n if (debug == null) {\n // debug mode not specified\n // make sure 5005 is not used, we don't want to just fail if something else is using it\n // we don't check this on restarts, as the previous process is still running\n if (debugPortOk == null) {\n try (Socket socket = new Socket(InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }), 5005)) {\n getLog().error(\"Port 5005 in use, not starting in debug mode\");\n debugPortOk = false;\n } catch (IOException e) {\n debugPortOk = true;\n }\n }\n if (debugPortOk) {\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=\" + suspend);\n }\n } else if (debug.toLowerCase().equals(\"client\")) {\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=localhost:5005,server=n,suspend=\" + suspend);\n } else if (debug.toLowerCase().equals(\"true\")) {\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=\" + suspend);\n } else if (!debug.toLowerCase().equals(\"false\")) {\n try {\n int port = Integer.parseInt(debug);\n if (port <= 0) {\n throw new MojoFailureException(\"The specified debug port must be greater than 0\");\n }\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=0.0.0.0:\" + port + \",server=y,suspend=\" + suspend);\n } catch (NumberFormatException e) {\n throw new MojoFailureException(\n \"Invalid value for debug parameter: \" + debug + \" must be true|false|client|{port}\");\n }\n }\n //build a class-path string for the base platform\n //this stuff does not change\n // Do not include URIs in the manifest, because some JVMs do not like that\n StringBuilder classPathManifest = new StringBuilder();\n final DevModeContext devModeContext = new DevModeContext();\n for (Map.Entry<Object, Object> e : System.getProperties().entrySet()) {\n devModeContext.getSystemProperties().put(e.getKey().toString(), (String) e.getValue());\n }\n devModeContext.setProjectDir(project.getFile().getParentFile());\n devModeContext.getBuildSystemProperties().putAll((Map) project.getProperties());\n\n // this is a minor hack to allow ApplicationConfig to be populated with defaults\n devModeContext.getBuildSystemProperties().putIfAbsent(\"quarkus.application.name\", project.getArtifactId());\n devModeContext.getBuildSystemProperties().putIfAbsent(\"quarkus.application.version\", project.getVersion());\n\n devModeContext.setSourceEncoding(getSourceEncoding());\n\n // Set compilation flags. Try the explicitly given configuration first. Otherwise,\n // refer to the configuration of the Maven Compiler Plugin.\n final Optional<Xpp3Dom> compilerPluginConfiguration = findCompilerPluginConfiguration();\n if (compilerArgs != null) {\n devModeContext.setCompilerOptions(compilerArgs);\n } else if (compilerPluginConfiguration.isPresent()) {\n final Xpp3Dom compilerPluginArgsConfiguration = compilerPluginConfiguration.get().getChild(\"compilerArgs\");\n if (compilerPluginArgsConfiguration != null) {\n List<String> compilerPluginArgs = new ArrayList<>();\n for (Xpp3Dom argConfiguration : compilerPluginArgsConfiguration.getChildren()) {\n compilerPluginArgs.add(argConfiguration.getValue());\n }\n // compilerArgs can also take a value without using arg\n if (compilerPluginArgsConfiguration.getValue() != null\n && !compilerPluginArgsConfiguration.getValue().isEmpty()) {\n compilerPluginArgs.add(compilerPluginArgsConfiguration.getValue().trim());\n }\n devModeContext.setCompilerOptions(compilerPluginArgs);\n }\n }\n if (source != null) {\n devModeContext.setSourceJavaVersion(source);\n } else if (compilerPluginConfiguration.isPresent()) {\n final Xpp3Dom javacSourceVersion = compilerPluginConfiguration.get().getChild(\"source\");\n if (javacSourceVersion != null && javacSourceVersion.getValue() != null\n && !javacSourceVersion.getValue().trim().isEmpty()) {\n devModeContext.setSourceJavaVersion(javacSourceVersion.getValue().trim());\n }\n }\n if (target != null) {\n devModeContext.setTargetJvmVersion(target);\n } else if (compilerPluginConfiguration.isPresent()) {\n final Xpp3Dom javacTargetVersion = compilerPluginConfiguration.get().getChild(\"target\");\n if (javacTargetVersion != null && javacTargetVersion.getValue() != null\n && !javacTargetVersion.getValue().trim().isEmpty()) {\n devModeContext.setTargetJvmVersion(javacTargetVersion.getValue().trim());\n }\n }\n\n setKotlinSpecificFlags(devModeContext);\n if (noDeps) {\n final LocalProject localProject = LocalProject.load(project.getModel().getPomFile().toPath());\n addProject(devModeContext, localProject, true);\n pomFiles.add(localProject.getRawModel().getPomFile().toPath());\n devModeContext.getLocalArtifacts()\n .add(new AppArtifactKey(localProject.getGroupId(), localProject.getArtifactId(), null, \"jar\"));\n } else {\n final LocalProject localProject = LocalProject.loadWorkspace(project.getModel().getPomFile().toPath());\n for (LocalProject project : filterExtensionDependencies(localProject)) {\n addProject(devModeContext, project, project == localProject);\n pomFiles.add(project.getRawModel().getPomFile().toPath());\n devModeContext.getLocalArtifacts()\n .add(new AppArtifactKey(project.getGroupId(), project.getArtifactId(), null, \"jar\"));\n }\n }\n\n addQuarkusDevModeDeps(classPathManifest);\n\n args.add(\"-Djava.util.logging.manager=org.jboss.logmanager.LogManager\");\n\n //in most cases these are not used, however they need to be present for some\n //parent-first cases such as logging\n for (Artifact appDep : project.getArtifacts()) {\n // only add the artifact if it's present in the dev mode context\n // we need this to avoid having jars on the classpath multiple times\n if (!devModeContext.getLocalArtifacts().contains(new AppArtifactKey(appDep.getGroupId(), appDep.getArtifactId(),\n appDep.getClassifier(), appDep.getArtifactHandler().getExtension()))) {\n addToClassPaths(classPathManifest, appDep.getFile());\n }\n }\n\n //now we need to build a temporary jar to actually run\n\n File tempFile = new File(buildDir, project.getArtifactId() + \"-dev.jar\");\n tempFile.delete();\n // Only delete the -dev.jar on exit if requested\n if (deleteDevJar) {\n tempFile.deleteOnExit();\n }\n getLog().debug(\"Executable jar: \" + tempFile.getAbsolutePath());\n\n devModeContext.setBaseName(project.getBuild().getFinalName());\n devModeContext.setCacheDir(new File(buildDir, \"transformer-cache\").getAbsoluteFile());\n\n // this is the jar file we will use to launch the dev mode main class\n devModeContext.setDevModeRunnerJarFile(tempFile);\n\n modifyDevModeContext(devModeContext);\n\n try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(tempFile))) {\n out.putNextEntry(new ZipEntry(\"META-INF/\"));\n Manifest manifest = new Manifest();\n manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, \"1.0\");\n manifest.getMainAttributes().put(Attributes.Name.CLASS_PATH, classPathManifest.toString());\n manifest.getMainAttributes().put(Attributes.Name.MAIN_CLASS, DevModeMain.class.getName());\n out.putNextEntry(new ZipEntry(\"META-INF/MANIFEST.MF\"));\n manifest.write(out);\n\n out.putNextEntry(new ZipEntry(DevModeMain.DEV_MODE_CONTEXT));\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n ObjectOutputStream obj = new ObjectOutputStream(new DataOutputStream(bytes));\n obj.writeObject(devModeContext);\n obj.close();\n out.write(bytes.toByteArray());\n }\n\n outputDirectory.mkdirs();\n // if the --enable-preview flag was set, then we need to enable it when launching dev mode as well\n if (devModeContext.isEnablePreview()) {\n args.add(DevModeContext.ENABLE_PREVIEW_FLAG);\n }\n\n propagateUserProperties();\n\n args.add(\"-jar\");\n args.add(tempFile.getAbsolutePath());\n if (argsString != null) {\n args.addAll(Arrays.asList(CommandLineUtils.translateCommandline(argsString)));\n }\n }", "protected void setUp() {\r\n File cleanDir = new File(this.clean);\r\n dest = new File(root + \"\\\\field\");\r\n if (!dest.exists()) {\r\n dest.mkdirs();\r\n }\r\n\r\n (new FileCopy(\r\n new File(cleanDir, \"field_RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"),\r\n false)).run();\r\n\r\n (new SummaryTraversal(root)).run();\r\n }", "void analysisPostponed();", "public void reload() {\n if ( _build_file != null ) {\n openBuildFile( _build_file );\n }\n }", "public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }", "private void saveBeforeRun() {\n if ( _helper != null && _settings.getSaveBeforeRun() )\n _helper.saveBeforeRun();\n }", "private void prepareReporter() {\n reporter = (ActionReporter) context.getActionReport();\n\n if (reporter instanceof PlainTextActionReporter) {\n // already setup correctly - don't change it!!\n plainReporter = (PlainTextActionReporter) reporter;\n }\n else if (reporter instanceof PropsFileActionReporter) {\n plainReporter = new PlainTextActionReporter();\n reporter = plainReporter;\n context.setActionReport(plainReporter);\n }\n else {\n plainReporter = null;\n }\n }", "protected void after() {\n System.clearProperty(DandelionConfig.BUNDLE_PRE_LOADERS.getName());\n }", "public void postCompileStep(Compiler compiler)\n {\n m_isTopLevel = compiler.getLocationPathDepth() == -1;\n }", "private void removeLocalDockerImageFiles(PluginPackages pluginPackage) {\n String versionPath = SystemUtils.getTempFolderPath() + pluginPackage.getName() + \"-\"\n + pluginPackage.getVersion() + \"/\";\n File versionDirectory = new File(versionPath);\n try {\n log.info(\"Delete directory: {}\", versionPath);\n FileUtils.deleteDirectory(versionDirectory);\n } catch (IOException e) {\n log.error(\"Remove plugin package file failed: {}\", e);\n throw new WecubeCoreException(\"3107\", \"Remove plugin package file failed.\");\n }\n }", "@Override\n protected void postProcessEngineInitialisation() {\n }", "private void addMultiJobBuildCommand() {\r\n \tString html_text = \"\";\r\n String report_format=\"\";\r\n\r\n if (getOptionHTMLBuildDesc().equalsIgnoreCase(\"HTML\")) {\r\n html_text = \".html\";\r\n report_format = \"HTML\";\r\n } else {\r\n html_text = \".txt\";\r\n report_format = \"TEXT\";\r\n }\r\n\r\n String win =\r\n\"set VCAST_RPTS_PRETTY_PRINT_HTML=FALSE\\n\" +\r\ngetEnvironmentSetupWin() + \"\\n\";\r\n if (isUsingSCM()) {\r\n win +=\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\extract_build_dir.py\\\"\\n\";\r\n }\r\n if (getOptionUseReporting()) {\r\n win +=\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\incremental_build_report_aggregator.py\\\" --rptfmt \" + report_format + \"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --full-status=@PROJECT_BASE@_full_report.html\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --full-status > @PROJECT_BASE@_full_report.txt\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --create-report=aggregate --output=\\\\\\\"@PROJECT_BASE@_aggregate_report.html\\\\\\\"\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --create-report=metrics --output=\\\\\\\"@PROJECT_BASE@_metrics_report.html\\\\\\\"\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --create-report=environment --output=\\\\\\\"@PROJECT_BASE@_environment_report.html\\\\\\\"\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\gen-combined-cov.py\\\" \\\"@PROJECT_BASE@_aggregate_report.html\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\getTotals.py\\\" @PROJECT_BASE@_full_report.txt\\n\";\r\n }\r\n win +=\r\ngetEnvironmentTeardownWin() + \"\\n\";\r\n win = StringUtils.replace(win, \"@PROJECT@\", getManageProjectName());\r\n win = StringUtils.replace(win, \"@PROJECT_BASE@\", getBaseName());\r\n\r\n String unix =\r\n\"export VCAST_RPTS_PRETTY_PRINT_HTML=FALSE\\n\" +\r\ngetEnvironmentSetupUnix() + \"\\n\";\r\n if (isUsingSCM()) {\r\n unix +=\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/extract_build_dir.py\\\"\\n\";\r\n }\r\n if (getOptionUseReporting()) {\r\n unix +=\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/incremental_build_report_aggregator.py\\\" --rptfmt \" + report_format + \"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --full-status=@PROJECT_BASE@_full_report.html\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --full-status > @PROJECT_BASE@_full_report.txt\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --create-report=aggregate --output=\\\\\\\"@PROJECT_BASE@_aggregate_report.html\\\\\\\"\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --create-report=metrics --output=\\\\\\\"@PROJECT_BASE@_metrics_report.html\\\\\\\"\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/managewait.py\\\" --wait_time \" + getWaitTime() + \" --wait_loops \" + getWaitLoops() + \" --command_line \\\"--project \\\\\\\"@PROJECT@\\\\\\\" --create-report=environment --output=\\\\\\\"@PROJECT_BASE@_environment_report.html\\\\\\\"\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/gen-combined-cov.py\\\" \\\"@PROJECT_BASE@_aggregate_report.html\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/getTotals.py\\\" @PROJECT_BASE@_full_report.txt\\n\" +\r\n\"\\n\";\r\n }\r\n unix +=\r\ngetEnvironmentTeardownUnix() + \"\\n\";\r\n unix = StringUtils.replace(unix, \"@PROJECT@\", getManageProjectName());\r\n unix = StringUtils.replace(unix, \"@PROJECT_BASE@\", getBaseName());\r\n \r\n VectorCASTCommand command = new VectorCASTCommand(win, unix);\r\n getTopProject().getBuildersList().add(command);\r\n }", "@AfterClass\n\tpublic static void generateReport() {\n\t\tCucumberReportingConfig.reportConfig();\n\t\n\t}", "public void preUpdate(Configuration configuration) {\r\n preUpdate();\r\n }", "protected Compiler() {\r\n\t\ttempTable = new TempTable();\r\n\t\toriginalTextLength = 0;\r\n\t\tthis.cpt = null;\r\n\t}", "public void prepareForNewProject(boolean clearAssets, boolean resetPhone) {\n if (DEBUG) {\n System.out.println(\"Preparing phone for new project\");\n }\n if (clearAssets) {\n downloadedProjectAssets.clear();\n }\n\n if (resetPhone) {\n /* cancel outstanding tasks waiting for phone, if any. */\n /* TODO(kerr): cancellation needs to be debugged. disable for now\n * try {\n * phoneSynchronizer.cancelAllAndWait();\n * } catch (PhoneCommunicationException e) {\n * System.out.println(e.getMessage());\n * e.printStackTrace();\n * }\n */\n if (!connectedToPhone()) {\n return;\n }\n reinitPhoneApp();\n }\n }", "@Override\r\n public void execute() throws BuildException {\r\n this.validateProperties(); // sanity check.\r\n if (this.isVerbose) {\r\n System.out.printf(\"Processing changelists for %s %s between %s and %s. %n\",\r\n this.port, this.depotPath, this.fromDate, this.toDate);\r\n }\r\n\r\n try {\r\n Map<String, SensorShell> shellCache = new HashMap<String, SensorShell>();\r\n SensorShellMap shellMap = new SensorShellMap(this.tool);\r\n if (this.isVerbose) {\r\n System.out.println(\"Checking for user maps at: \" + shellMap.getUserMapFile());\r\n System.out.println(\"Perforce accounts found: \" + shellMap.getToolAccounts(this.tool));\r\n }\r\n try {\r\n shellMap.validateHackystatInfo(this.tool);\r\n }\r\n catch (Exception e) {\r\n System.out.println(\"Warning: UserMap validation failed: \" + e.getMessage());\r\n }\r\n \r\n P4Environment p4Env = new P4Environment();\r\n p4Env.setP4Port(this.port);\r\n p4Env.setP4User(this.userName);\r\n p4Env.setP4Password(this.password);\r\n p4Env.setP4Executable(this.p4ExecutablePath);\r\n // These are given default values above. User need not set them in the Ant task unless\r\n // the defaults are not correct.\r\n p4Env.setP4SystemDrive(this.p4SysDrive);\r\n p4Env.setP4SystemRoot(this.p4SysRoot);\r\n p4Env.setVerbose(false); // could set this to true for lots of p4 debugging output. \r\n PerforceCommitProcessor processor = new PerforceCommitProcessor(p4Env, this.depotPath);\r\n processor.setIgnoreWhitespace(this.ignoreWhitespace);\r\n processor.processChangeLists(dateFormat.format(this.fromDate), \r\n dateFormat.format(this.toDate));\r\n int entriesAdded = 0;\r\n TstampSet tstampSet = new TstampSet();\r\n for (PerforceChangeListData data : processor.getChangeListDataList()) {\r\n if (this.isVerbose) {\r\n System.out.printf(\"Retrieved Perforce changelist: %d%n\", data.getId());\r\n }\r\n String author = data.getOwner();\r\n Date commitTime = data.getModTime();\r\n for (PerforceChangeListData.PerforceFileData fileData : data.getFileData()) {\r\n SensorShell shell = this.getShell(shellCache, shellMap, author);\r\n this.processCommitEntry(shell, author, tstampSet\r\n .getUniqueTstamp(commitTime.getTime()), commitTime, data.getId(), fileData);\r\n entriesAdded++;\r\n }\r\n }\r\n // Always make sure you call cleanup() at the end. \r\n processor.cleanup();\r\n if (this.isVerbose) {\r\n System.out.println(\"Found \" + entriesAdded + \" commit records.\");\r\n }\r\n\r\n // Send the sensor data after all entries have been processed.\r\n for (SensorShell shell : shellCache.values()) {\r\n if (this.isVerbose) {\r\n System.out.println(\"Sending data to \" + shell.getProperties().getSensorBaseUser() + \r\n \" at \" + shell.getProperties().getSensorBaseHost());\r\n }\r\n shell.send();\r\n shell.quit();\r\n }\r\n }\r\n catch (Exception ex) {\r\n throw new BuildException(ex);\r\n }\r\n }", "public void execute() throws BuildException {\n super.execute();\n\n // minimal Renew logging configuration that forwards messages\n // to the Ant logging system\n Logger logger = Logger.getLogger(\"CH.ifa.draw\");\n AntTaskLogAppender appender = AntTaskLogAppender.getInstance(this);\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n logger = Logger.getLogger(\"de.renew\");\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n\n // get all files - out of the vector full of filesets -> 2 loops\n Iterator<FileSet> filesetIterator = filesets.iterator();\n while (filesetIterator.hasNext()) {\n FileSet elementFileSet = filesetIterator.next();\n DirectoryScanner dirScan = elementFileSet.getDirectoryScanner(getProject());\n String[] fileNames = dirScan.getIncludedFiles();\n log(\"filenames: \" + fileNames.length, Project.MSG_VERBOSE);\n\n for (int i = 0; i < fileNames.length; i++) {\n String fileName = fileNames[i];\n File inFile = new File(dirScan.getBasedir() + \"/\" + fileName);\n log(\"File: \" + inFile.getAbsolutePath(), Project.MSG_VERBOSE);\n\n // get drawing from file\n Drawing netDrawing = DrawingFileHelper.loadDrawing(inFile,\n new StatusDisplayer() {\n public void showStatus(String message) {\n log(message);\n }\n }); //rnw-Object\n log(\"Drawing: \" + netDrawing, Project.MSG_VERBOSE);\n\n if (netDrawing == null) {\n throw new BuildException(\"Could not read drawing file: \"\n + inFile);\n }\n\n // Export netDrawing\n try {\n File helpFile = new File(destdir + \"/\" + fileName); // helps to get the right directory path\n File outFile = new File(helpFile.getParent() + \"/\"\n + netDrawing.getName() + \".\"\n + defaultExtension);\n\n //create directories\n outFile.getParentFile().mkdirs();\n exportFormat.export(netDrawing, outFile);\n } catch (Exception e) {\n throw new BuildException(e);\n }\n }\n }\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public PmdMavenBuildSettings(Job parent) {\n super(parent, \"pmd-PmdReporter\");\n }", "public TracingTestPreProcExit()\n {\n super();\n }", "public void listenReportGenerateStatus() {\n KOOM.getInstance().setHeapReportUploader(file -> {\n //Upload the report or do something else.\n //File is deleted automatically when callback is done by default.\n });\n }", "@Override\n\tpublic void processToolEvent(PluginEvent toolEvent) {\n\t\t//do nothing\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}" ]
[ "0.5655768", "0.5642145", "0.5411558", "0.532552", "0.5301317", "0.5301317", "0.52842915", "0.5261373", "0.520394", "0.5144979", "0.5141167", "0.5105776", "0.51024544", "0.50785285", "0.50310063", "0.5029717", "0.4993199", "0.4979309", "0.4972847", "0.4971101", "0.4951461", "0.49449357", "0.49385452", "0.49368483", "0.49237067", "0.49224252", "0.4915699", "0.4912578", "0.4908262", "0.4905515", "0.48777357", "0.48516476", "0.4844892", "0.48439127", "0.48333302", "0.48123318", "0.48071662", "0.4806147", "0.47955453", "0.47794682", "0.475568", "0.4752972", "0.47480914", "0.47455585", "0.47295475", "0.47267434", "0.47252426", "0.47251633", "0.47244203", "0.47216278", "0.4712738", "0.47069094", "0.470279", "0.46895504", "0.46607903", "0.46607903", "0.46607903", "0.46607903", "0.46495932", "0.4644528", "0.46379682", "0.4630316", "0.46142077", "0.46006495", "0.46006143", "0.45984095", "0.45899352", "0.45795497", "0.45553985", "0.4554444", "0.45490664", "0.45455596", "0.45437884", "0.4542925", "0.4531652", "0.4519667", "0.45125234", "0.45118096", "0.45096698", "0.449892", "0.44976574", "0.44965073", "0.44900855", "0.44877443", "0.44803172", "0.44802898", "0.4475004", "0.44637576", "0.44614232", "0.4458424", "0.44460973", "0.4445973", "0.44456017", "0.44449717", "0.44437066", "0.444111", "0.444111", "0.444111", "0.444111", "0.444111" ]
0.607069
0
Fetches the most 'previous' result. The current build is baseline. So any prior build to the passed current build is considered.
private Pair<PRQAReading, AbstractBuild<?, ?>> getPreviousReading(AbstractBuild<?, ?> currentBuild, Result expectedResult) { AbstractBuild<?, ?> iterate = currentBuild; do { iterate = iterate.getPreviousNotFailedBuild(); if (iterate != null && iterate.getAction(PRQABuildAction.class) != null && Objects.equals( iterate.getResult(), expectedResult)) { AbstractBuild<?, ?> second = iterate; Pair<PRQAReading, AbstractBuild<?, ?>> result = Pair.of(iterate.getAction(PRQABuildAction.class).getResult(), second); return result; } } while (iterate != null); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "SolutionChange getPreviousChange();", "public OraRevision prevRevision() throws SQLException {\n\t\tloadFromDB();\n\t\tPreparedStatement stmt = dbc.prepareStatement(\n\t\t\t\t\"SELECT rev_id FROM revision WHERE rev_id < ? AND rev_page = ? \" +\n\t\t\t\t\"ORDER BY rev_id DESC\");\n\t\tstmt.setFetchSize(1);\n\t\tstmt.setInt(1, rev_id);\n\t\tstmt.setInt(2, rev_page);\n\t\tstmt.execute();\n\t\tResultSet rs = stmt.getResultSet();\n\t\t\n\t\tOraRevision r = null;\n\t\tif (rs.next())\n\t\t\tr = new OraRevision(dbc, rs.getInt(1));\n\t\trs.close();\n\t\tstmt.close();\n\t\treturn r;\n\t}", "@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }", "public IntegrityTestResultAction getLatestResults() {\n\t\tfinal Run<?, ?> tempLastSuccessfulBuild = job.getLastSuccessfulBuild();\n\t\tRun<?, ?> tempBuild = job.getLastBuild();\n\t\twhile (tempBuild != null) {\n\t\t\tIntegrityTestResultAction tempResultAction = tempBuild.getAction(IntegrityTestResultAction.class);\n\t\t\tif (tempResultAction != null) {\n\t\t\t\treturn tempResultAction;\n\t\t\t} else if (tempBuild == tempLastSuccessfulBuild) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttempBuild = tempBuild.getPreviousBuild();\n\t\t}\n\n\t\treturn null;\n\t}", "private AbstractBuild<?, ?> getLastFinishedBuild() {\n AbstractBuild<?, ?> lastBuild = m_project.getLastBuild();\n while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(AbstractBuildReport.class) == null)) {\n lastBuild = lastBuild.getPreviousBuild();\n }\n return lastBuild;\n }", "public int previous()\n {\n if (m_source_.getIndex() <= 0 && m_isForwards_) {\n // if iterator is new or reset, we can immediate perform backwards\n // iteration even when the offset is not right.\n m_source_.setToLimit();\n updateInternalState();\n }\n m_isForwards_ = false;\n if (m_CEBufferSize_ > 0) {\n if (m_CEBufferOffset_ > 0) {\n return m_CEBuffer_[-- m_CEBufferOffset_];\n }\n m_CEBufferSize_ = 0;\n m_CEBufferOffset_ = 0;\n }\n\n int result = NULLORDER;\n char ch = 0;\n do {\n int ch_int = previousChar();\n if (ch_int == UCharacterIterator.DONE) {\n return NULLORDER;\n }\n ch = (char)ch_int;\n if (m_collator_.m_isHiragana4_) {\n m_isCodePointHiragana_ = (ch >= 0x3040 && ch <= 0x309f);\n }\n if (m_collator_.isContractionEnd(ch) && !isBackwardsStart()) {\n result = previousSpecial(m_collator_, CE_CONTRACTION_, ch);\n }\n else {\n if (ch <= 0xFF) {\n result = m_collator_.m_trie_.getLatin1LinearValue(ch);\n }\n else {\n result = m_collator_.m_trie_.getLeadValue(ch);\n }\n if (RuleBasedCollator.isSpecial(result)) {\n result = previousSpecial(m_collator_, result, ch);\n }\n if (result == CE_NOT_FOUND_) {\n if (!isBackwardsStart()\n && m_collator_.isContractionEnd(ch)) {\n result = CE_CONTRACTION_;\n }\n else {\n if(RuleBasedCollator.UCA_ != null) {\n result = RuleBasedCollator.UCA_.m_trie_.getLeadValue(ch);\n }\n }\n\n if (RuleBasedCollator.isSpecial(result)) {\n if(RuleBasedCollator.UCA_ != null) { \n result = previousSpecial(RuleBasedCollator.UCA_, result, ch);\n }\n }\n }\n }\n } while (result == IGNORABLE && ch >= 0xAC00 && ch <= 0xD7AF);\n if(result == CE_NOT_FOUND_) {\n result = previousImplicit(ch);\n }\n return result;\n }", "public Version getPrev(){\n\t\treturn prev;\n\t}", "private Token previous() {\n return tokens.get(current-1);\n }", "private String getPreviousRevision(final Project project) {\n List<Measure> measures = getPreviousMeasures(project, CoreMetrics.SCM_REVISION, CoreMetrics.SCM_LAST_COMMIT_DATE);\n if (measures.size()==2) {\n for (Measure measure : measures) {\n if (measure.getMetric().equals(CoreMetrics.SCM_REVISION)) {\n return measure.getData();\n }\n }\n }\n return null;\n }", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "private void findPrev() {\n \tthis.find(false);\n }", "String getPrevious();", "@Field(0) \n\tpublic Pointer<uvc_processing_unit > prev() {\n\t\treturn this.io.getPointerField(this, 0);\n\t}", "public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0 && currentHeat == 0) {\n // This is the first heat - return invalid\n return new int[] {-1, -1};\n }\n // There was a previous heat\n else {\n // Check if this was the first heat of the round\n if (currentHeat == 0) {\n // It was the first heat, so we need to get the last heat of the previous round\n last[0] = currentRound - 1;\n last[1] = rounds.get(currentRound - 1).length() - 1;\n }\n else {\n // There was a previous heat in this round\n last[0] = currentRound;\n last[1] = currentHeat - 1;\n }\n }\n\n return last;\n }", "public Index previous() {\n return Index.valueOf(value - 1);\n }", "public T prev() {\n cursor = ((Entry<T>) cursor).prev;\n ready = true;\n return cursor.element;\n }", "Object previous();", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public State getPreviousState()\r\n\t{\r\n\t\treturn previousState;\r\n\t}", "public int getPrevious() {\n\t\treturn this.previous;\n\t}", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "private void previous() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n\n Timeline.Window currentWindow = currentTimeline.getWindow(currentWindowIndex, new Timeline.Window());\n if (currentWindowIndex > 0 && (player.getCurrentPosition() <= MAX_POSITION_FOR_SEEK_TO_PREVIOUS\n || (currentWindow.isDynamic && !currentWindow.isSeekable))) {\n player.seekTo(currentWindowIndex - 1, C.TIME_UNSET);\n } else {\n player.seekTo(0);\n }\n }", "public String getPrevCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if (this.currIndex <= 0) {\n return this.history.get(0);\n }\n\n this.currIndex -= 1;\n return this.history.get(this.currIndex);\n }", "private LocalDate findPreviousWeekDate() throws IOException {\n\n\t\t/* Iterate historyFolder */\n\t\treturn Files.list(Paths.get(baseHistoryPath)).map(filePath -> {\n\t\t\tString fileName = FilenameUtils.getBaseName(filePath.getFileName().toString()).replace(\"SonarQube_\", \"\");\n\t\t\tString[] splitter = fileName.split(\"-\");\n\t\t\tfinal int year = Integer.parseInt(splitter[0]);\n\t\t\tfinal int month = Integer.parseInt(splitter[1]);\n\t\t\tfinal int dayOfMonth = Integer.parseInt(splitter[2]);\n\n\t\t\treturn LocalDate.of(year, month, dayOfMonth);\n\t\t}).max((final LocalDate d1, final LocalDate d2) -> d1.compareTo(d2)).get();\n\n\t}", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "public Pageable previousOrFirst() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "public Integer getPreviousValue() {\n return this.previousValue;\n }", "public List<GeneralBuild> getPrevBuildsList(String buildName, String buildDate) {\n ResultSet rs = null;\n List<GeneralBuild> buildList = new ArrayList<>();\n try {\n String buildsQuery = \"select * from builds where build_name = ? and build_date < ? order by build_number desc\";\n rs = jdbcHelper.executeSelect(buildsQuery, buildName, Long.parseLong(buildDate));\n while (rs.next()) {\n Long id = rs.getLong(1);\n GeneralBuild buildEntity = resultSetToGeneralBuild(rs, id);\n buildList.add(buildEntity);\n }\n } catch (Exception e) {\n log.error(e.toString());\n } finally{\n DbUtils.close(rs);\n }\n return buildList;\n }", "public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}", "public Frame prevFrame(final Frame frame) {\n\t\tif (isInitialFrame(frame))throw new IllegalStateException(\"Invalid Entry\");// input sanitization -- out of bounds when at first frame\n\t\telse return frames.get(frames.indexOf(frame) - 1);\n\t}", "@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public void previous();", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public int previousIndex()\n {\n // TODO: implement this method\n return -1;\n }", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }", "public E previous() {\r\n current--;\r\n return elem[current];\r\n }", "@Override\n\tpublic long getPreviousVersionId() {\n\t\treturn _scienceApp.getPreviousVersionId();\n\t}", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "public static Player getPrevPlayer(){\n\t\tif(players.get(curr).getPnum()==1)\n\t\t\treturn players.get(players.size()-1);\n\t\telse return players.get(curr-1);\n\t}", "public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}", "public AbstractCard getPreviousCard() {\n if (currentCardPos > 0) {\n currentCardPos--;\n }\n return getCurrentCard();\n }", "private int previousSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(1);\n }\n serviceBound = false;\n player.stopMedia();\n if (currentSong > 0) {\n currentSong--;\n }\n return currentSong;\n }", "private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "public\t\tMiPart\t\tgetPrevious()\n\t\t{\n\t\tMiPart obj = iterator.getPrevious();\n\t\twhile ((obj == null) || ((filter != null) && ((obj = filter.accept(obj)) == null)))\n\t\t\t{\n\t\t\tif (!hasLayers)\n\t\t\t\treturn(null);\n\t\t\tif (!iterateThroughAllLayers)\n\t\t\t\treturn(null);\n\t\t\tMiContainerIterator iter = getPreviousIterator();\n\t\t\tif (iter == null)\n\t\t\t\treturn(null);\n\t\t\titerator = iter;\n\t\t\tobj = iterator.getPrevious();\n\t\t\t}\n\t\treturn(obj);\n\t\t}", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "public boolean hasPrevious() \n\t{\n\t\tboolean res = false;\n\t\tif(actual != null) {\n\n\t\t\tif(esUltimo && actual != null)\n\t\t\t\tres=true;\n\t\t\telse {\n\t\t\t\tres = actual.darAnterior() != null;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public LevelDetailEntity getPrevLevel() {\n\t\tLevelDetailEntity entity = null;\n\t\t\n\t\tif (mCurrentLevel == null) \n\t\t\treturn entity;\n\t\t\n\t\tentity = GameDB.getInstance().getLevelDetail(mCurrentLevel.getPackId(), mCurrentLevel.getLevelNum() - 1);\n\t\t\n\t\treturn entity;\n\t}", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "@Nonnull\n @CheckReturnValue\n public SplitString previous() {\n if (offset == 0) {\n throw new IllegalStateException(\"Already at the beginning\");\n }\n return array[--offset];\n }", "public DockableState getPreviousState() {\n\t\treturn previousState;\n\t}", "protected abstract D getPrevious(D d);", "private static int getHistory(SearchTreeNode parent, MazeState current, MazeProblem problem) {\n\t\treturn parent.history + problem.getCost(current);\n\t}", "private final int internalPrev(int n) {\n if (n == 0 || n == -1 || this.backwardsTrie == null) {\n return n;\n }\n resetState();\n while (n != -1 && n != 0 && breakExceptionAt(n)) {\n n = this.delegate.previous();\n }\n return n;\n }", "public Change getLastChange(boolean reset) {\r\n Change c = hasChanges() ? changes.get(0) : null;\r\n if (c != null && reset) {\r\n c.reset();\r\n }\r\n return c;\r\n }", "private org.eclipse.aether.version.Version getLastVersion()\n\t\t\tthrows MojoExecutionException {\n\n\t\t// build the artifact description with version range from 0 up to (non\n\t\t// inclusive) current version\n\n\t\tString artifactDescription = ARTIFACT_DESCRIPTION.replace(\"groupId\",\n\t\t\t\tgroupId);\n\t\tartifactDescription = artifactDescription.replace(\"artifactId\", name);\n\t\tartifactDescription = artifactDescription.replace(\"version\", version);\n\n\t\tArtifact artifact = new DefaultArtifact(artifactDescription);\n\t\tgetLog().info(\n\t\t\t\tString.format(\"searching for artifacts in range %s\",\n\t\t\t\t\t\tartifactDescription));\n\t\tVersionRangeRequest rangeRequest = new VersionRangeRequest();\n\t\trangeRequest.setArtifact(artifact);\n\t\trangeRequest.setRepositories(projectRepos);\n\n\t\tVersionRangeResult rangeResult;\n\t\ttry {\n\t\t\trangeResult = repoSystem.resolveVersionRange(repoSession,\n\t\t\t\t\trangeRequest);\n\t\t\tList<org.eclipse.aether.version.Version> versions = rangeResult\n\t\t\t\t\t.getVersions();\n\t\t\tgetLog().debug(\n\t\t\t\t\tString.format(\"found versions %s\",\n\t\t\t\t\t\t\trangeResult.getVersions()));\n\t\t\t// could not find a previous version\n\t\t\tif (versions.isEmpty()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\torg.eclipse.aether.version.Version lastVersion = versions\n\t\t\t\t\t.get(versions.size() - 1);\n\t\t\tgetLog().debug(String.format(\"previous version is %s\", lastVersion));\n\t\t\treturn lastVersion;\n\n\t\t} catch (VersionRangeResolutionException e) {\n\t\t\tthrow new MojoExecutionException(\"could not calculate versions\", e);\n\t\t}\n\n\t}", "private Cell findPrev(ArrayList<Cell> list, Cell current) {\r\n\t\t\tint index = isInList(list, current);\r\n\t\t\treturn list.get(index).prev;\r\n\t\t}", "public boolean previous() throws SQLException {\n\n try {\n debugCodeCall(\"previous\");\n checkClosed();\n return relative(-1);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "private void displayPrevious() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n myMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"myMostRecent\",false));\n myDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"myDisplayAll\",false));\n foMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"foMostRecent\",false));\n foDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"foDisplayAll\",false));\n myReasonEditText.setText(filterSetting.getString(\"myReason\",null));\n foReasonEditText.setText(filterSetting.getString(\"foReason\",null));\n int mySpinner = filterSetting.getInt(\"mySpinner\",0);\n if (mySpinner != 0){\n myEmotionalStateSpinner.setSelection(mySpinner);\n }\n int foSpinner = filterSetting.getInt(\"foSpinner\",0);\n if (foSpinner != 0){\n foEmotionalStateSpinner.setSelection(foSpinner);\n }\n }", "@ActionTrigger(action=\"KEY-PRVREC\", function=KeyFunction.PREVIOUS_RECORD)\n\t\tpublic void spriden_PreviousRecord()\n\t\t{\n\t\t\t\n\t\t\t\tpreviousRecord();\n\t\t\t\t// \n\t\t\t\t\n\t\t\t\ttry { \n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(5));\n\t\t\t\t// \n\t\t\t\tnextBlock();\n\t\t\t\tnextBlock();\n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\texecuteQuery();\n\t\t\t\tpreviousBlock();\n\t\t\t\tpreviousBlock();\n\t\t\t\tpreviousBlock();\n\t\t\t\tpreviousBlock();\n\t\t\t\t// \n\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t\t\t\t\n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(0));\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t}", "public IndexRecord getIteratorPrev() {\n iter = (iter == 0 ? -1 : iter - 1);\n return (iter == -1 ? null : data[iter]);\n }", "public ResponseEntity<?> getPreviousSong() {\n\t\t// make sure there is a SystemEntity in the db\n\t\tinitializeSystemIfNull();\n\t\t// get the system config\n\t\tPlaylistMetadataEntity se = systemRepo.findAll().get(0);\n\t\tTrackEntity te = null;\n\t\t// if there is another song to be played before the current one\n\t\tif (trackRepo.existsByPosition(se.getPositionInPlaylist() - 1)) {\n\t\t\tte = trackRepo.findByPosition(se.getPositionInPlaylist() - 1);\n\t\t\tse.setPositionInPlaylist(se.getPositionInPlaylist() - 1);\n\t\t\tse.setSecondsPlayed(0);\n\t\t\tsystemRepo.save(se);\n\t\t}\n\t\t// if no song was found, bad request, there is no previous song\n\t\tif (te == null) {\n\t\t\treturn new ResponseEntity<>(ms.getMessage(\"noPrevSong\", null, LocaleContextHolder.getLocale()),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\t\tGetSongDTO getSong = new GetSongDTO();\n\t\tgetSong.setSecondsPlayed(se.getSecondsPlayed());\n\t\tgetSong.setTrack(te);\n\t\treturn new ResponseEntity<>(getSong, HttpStatus.OK);\n\t}", "private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}", "@Nullable\n private static Step previousStepHelper(@Nullable Step initialStep, @Nullable Node current,\n AtomicBoolean hasFoundInitial) {\n if (current == null) {\n return null;\n }\n\n if (current.step != null) {\n if (hasFoundInitial.get() && current.isLeaf()) {\n return current.step;\n }\n\n if (current.step.equals(initialStep)) {\n hasFoundInitial.set(true);\n }\n }\n\n if (current.children != null) {\n for (Node child : current.children.reverse()) {\n Step found = previousStepHelper(initialStep, child, hasFoundInitial);\n if (found != null) {\n return found;\n }\n }\n }\n\n return null;\n }", "public String returnToPreviousPage() {\n if (datasetVersion.isDraft()) {\n return \"/dataset.xhtml?persistentId=\" +\n datasetVersion.getDataset().getGlobalId().asString() + \"&version=DRAFT&faces-redirect=true\";\n }\n return \"/dataset.xhtml?persistentId=\"\n + datasetVersion.getDataset().getGlobalId().asString()\n + \"&faces-redirect=true&version=\"\n + datasetVersion.getVersionNumber() + \".\" + datasetVersion.getMinorVersionNumber();\n }", "public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "void previous() throws NoSuchRecordException;", "public PlayerPosition getPrevious() {\n\n\t\tswitch (this) {\n\t\t\tcase BOTTOM:\n\t\t\t\treturn RIGHT;\n\t\t\tcase LEFT:\n\t\t\t\treturn BOTTOM;\n\t\t\tcase TOP:\n\t\t\t\treturn LEFT;\n\t\t\tcase RIGHT:\n\t\t\t\treturn TOP;\n\t\t\tdefault:\n\t\t\t\t// must not happen\n\t\t\t\treturn null;\n\t\t}\n\t}", "public Commit prevCommit(ArrayList<Commit> commitList) {\n\t\tCommit previousCommitID = null;\n\t\tfor (int i = 0; i < commitList.size(); i++) {\n\t\t\tif (commitList.get(i).commitID.contains(this.commitID)) {\n\t\t\t\treturn previousCommitID;\n\t\t\t}\n\t\t\tpreviousCommitID = commitList.get(i);\n\t\t}\n\n\t\treturn previousCommitID;\n\n\t}", "@Override\n\tpublic Menu previousMenu() {\n\t\treturn prevMenu;\n\t}", "@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}", "public String getPrevDate() \n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() -1);\n\t\treturn getTodayDate();\n\t}", "public static Previous getPreviousWindow() {\n\t\treturn previousWindow;\n\t}", "public int peek() {\n int result;\n while(!stack.isEmpty()){\n cache.add(stack.removeLast());\n }\n result = cache.getLast();\n while(!cache.isEmpty()){\n stack.add(cache.removeLast());\n }\n System.out.println(result);\n return result;\n }", "public static String previousworkingdate() {\n\t\tLocalDate lastbusinessday = getLastWorkingDayOfMonth(LocalDate.now());\n\t\tint x = lastbusinessday.getDayOfMonth();\n\t\tString y = String.valueOf(x);\n\t\tif (y.length() == 1)\n\t\t\ty = \"0\" + y;\n\t\treturn String.valueOf(y);\n\n\t}", "public double getPreviousZoomLevel() {\n\tfor (int i = 1; i < zoomLevels.length; i++)\n\t\tif (zoomLevels[i] >= zoom)\n\t\t\treturn zoomLevels[i - 1];\n\treturn getMinZoom();\n}", "public T previous() {\r\n\t\t// aktu == null ist dann, wenn aktu einen schritt zuvor first war;\r\n\t\tif (aktu == null) {\r\n\t\t\treturn null;\r\n\t\t} else if (first.equals(aktu)) {\r\n\t\t\t// wir sind am Ende, deswegen setzen wir aktu auf null (für die\r\n\t\t\t// Abfrage oberhalb) und geben den ersten Wert zurück;\r\n\t\t\taktu = null;\r\n\t\t\treturn (T) first.getData();\r\n\t\t} else if (first.equals(aktu.getPrevious())) {\r\n\t\t\t// überprüft, ob der Knoten vor dem aktuellen der letzte ist, dass\r\n\t\t\t// hat den Grund, dass beim letzten die Methode .getPrevios eine\r\n\t\t\t// NullPointerException wirft;\r\n\t\t\taktu = first;\r\n\t\t\treturn (T) first.getNext().getData();\r\n\t\t} else {\r\n\t\t\t// das ist der Standardfall solange der nicht beim vorletzten Knoten\r\n\t\t\t// angekommen ist.\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t\treturn (T) aktu.getNext().getData();\r\n\t\t}\r\n\r\n\t}", "public void skipToPrevious() {\n try {\n mSessionBinder.previous(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling previous.\", e);\n }\n }", "public AStarNode getPrevious() {\n return previous;\n }", "K previous();", "@AutoGUIAnnotation(\r\n DescriptionForUser = \"<html>Displays the result of the previous Script command<br>if it is of ype float.</html>\",\r\n ParameterNames = {},\r\n DefaultValues = {},\r\n ToolTips = {})\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"DisplayPreviousResult\">\r\n public void DisplayPreviousResult() \r\n throws ScriptException {\r\n\r\n // build the string\r\n String str = \"The result of the previous Script command was: \";\r\n\r\n // check if the type was float\r\n if (m_LastReturnValue instanceof Number) {\r\n str += m_LastReturnValue.toString() + \"\\n\";\r\n } else {\r\n str = \"The data type of the return value of the previous script command\\n\"\r\n + \"is not of type Number as expected.\\n\";\r\n throw new ScriptException(str);\r\n }\r\n\r\n\r\n // display the previous result as Status Text\r\n m_GUI.DisplayStatusMessage(str, false);\r\n }", "boolean hasPrevious();", "boolean hasPrevious();", "boolean hasPrevious();", "boolean hasPrevious();", "public String getBack() {\n index--;\n return (String) history.get(index);\n }", "public K prev();", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "public void Previous(int key){\n\t\tif(search(key)!=nil){\n\t\t\tNode res = getPrev(root,key,nil);\n\t\t\tif(res != nil){\n\t\t\t\tSystem.out.println(res.id + \" \" + res.count);\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"0 0\");\n\t\t\t}\n\t\t}else{\n\t\t\tint prev = findPrev(root,key);\n\t\t\tNode res = getNode(root,prev);\n\t\t\tif(res != nil){\n\t\t\t\tSystem.out.println(res.id + \" \" + res.count);\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"0 0\");\n\t\t\t}\n\t\t}\n\t}", "public Token getPreviousToken() {\n return previousToken;\n }", "public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}" ]
[ "0.6640118", "0.62776554", "0.6187114", "0.61026347", "0.5955089", "0.5923526", "0.58922905", "0.5879332", "0.58277565", "0.58253336", "0.5811151", "0.5790431", "0.5730423", "0.5703266", "0.5702406", "0.56840116", "0.5680208", "0.5674025", "0.5656299", "0.5610881", "0.5583722", "0.5580745", "0.55801284", "0.5577468", "0.55486363", "0.5544299", "0.5540346", "0.5530657", "0.55201215", "0.55167294", "0.55116946", "0.55093896", "0.55051404", "0.5503231", "0.550313", "0.54990166", "0.54916906", "0.5490685", "0.5490636", "0.548623", "0.54774755", "0.54756355", "0.5467397", "0.54628295", "0.5436411", "0.5429168", "0.5416168", "0.53889495", "0.5387422", "0.5385125", "0.53687704", "0.53662705", "0.5365374", "0.5362514", "0.5355708", "0.5340195", "0.53371054", "0.5328918", "0.5323365", "0.53128046", "0.53085107", "0.53080416", "0.527651", "0.5272053", "0.5271042", "0.5263635", "0.5261726", "0.5256829", "0.52552706", "0.5250991", "0.5242218", "0.5239752", "0.5239291", "0.52293783", "0.52283305", "0.52271324", "0.5219672", "0.52144724", "0.5188907", "0.5174112", "0.51732486", "0.51698846", "0.51680064", "0.51526463", "0.51481974", "0.51480764", "0.51302814", "0.51242054", "0.5122466", "0.5117354", "0.51080287", "0.51080287", "0.51080287", "0.51080287", "0.51020265", "0.5097237", "0.5092703", "0.50916857", "0.50915736", "0.50857913" ]
0.7339721
0
Function to pull details from QAV Configuration.
private QAVerifyServerSettings setQaVerifyServerSettings(String configurationByName) { QAVerifyServerConfiguration qaVerifyServerConfiguration = PRQAGlobalConfig.get() .getConfigurationByName( configurationByName); if (qaVerifyServerConfiguration != null) { return new QAVerifyServerSettings(qaVerifyServerConfiguration.getHostName(), qaVerifyServerConfiguration.getViewerPortNumber(), qaVerifyServerConfiguration.getProtocol(), qaVerifyServerConfiguration.getPassword(), qaVerifyServerConfiguration.getUserName()); } return new QAVerifyServerSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void GetConfigDetails() {\n\t\tCursor c = database.rawQuery(\"select * from config\", null);\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\r\n\t\t\t\t\tmuUid = c.getString(c.getColumnIndex(\"id\"));\r\n\t\t\t\t\tmuUsername = c.getString(c.getColumnIndex(\"username\"));\r\n\t\t\t\t\tmuPassword = c.getString(c.getColumnIndex(\"password\"));\r\n\t\t\t\t\tmuFname = c.getString(c.getColumnIndex(\"fname\"));\r\n\t\t\t\t\tmuLname = c.getString(c.getColumnIndex(\"lname\"));\r\n\t\t\t\t\tmuEmail = c.getString(c.getColumnIndex(\"email\"));\r\n\t\t\t\t\tmuMobile = c.getString(c.getColumnIndex(\"mobile\"));\r\n\t\t\t\t\tmuUrl = c.getString(c.getColumnIndex(\"url\"));\r\n\t\t\t\t\tmuRole = c.getString(c.getColumnIndex(\"role\"));\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.close();\r\n\t}", "public String configurationInfo();", "public abstract String getConfig();", "public String getConfig();", "public VoxConfig getVoxConfig();", "private static Configuration getConfigurationFromDb(int conf_id) {\n FrontEndDBInterface db = new FrontEndDBInterface();\n return db.getConfigInformation(conf_id);\n }", "String readConfig(String parameter, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "@RequestMapping(\"api/getconfigdetails\")\r\n\t\r\n\tpublic List<Product> getConfigDetails()\r\n\t{\n\t\treturn service.getconfig();\r\n\t}", "private String getConfigInfo(boolean verbose) {\r\n StringBuilder builder = new StringBuilder();\r\n\r\n GridHubConfiguration config = getRegistry().getConfiguration();\r\n builder.append(\"<b>Config for the hub :</b><br/>\");\r\n builder.append(prettyHtmlPrint(config));\r\n\r\n if (verbose) {\r\n\r\n GridHubConfiguration tmp = new GridHubConfiguration();\r\n\r\n builder.append(\"<b>Config details :</b><br/>\");\r\n builder.append(\"<b>hub launched with :</b>\");\r\n builder.append(tmp.hubConfig);\r\n\r\n\r\n builder.append(\"<br/><b>the final configuration comes from :</b><br/>\");\r\n builder.append(\"<b>the default :</b><br/>\");\r\n builder.append(prettyHtmlPrint(tmp));\r\n\r\n builder.append(prettyHtmlPrint(tmp));\r\n }\r\n return builder.toString();\r\n }", "Map<String, Object> readConfig(VirtualHost vhost, String id);", "public void printConfig();", "private String[] getConfiguration() {\n String[] result = new String[6];\n // Query the latest configuration file made and send it back in an array of strings\n String query = \"SELECT * FROM configuration ORDER BY configuration_id DESC LIMIT 1\";\n sendQuery(query);\n try {\n if(resultSet.next()) {\n for (int i = 1; i < 7; i++) {\n result[i-1] = resultSet.getString(i);\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return result;\n }", "GeneralConfiguration getGeneralConfiguration();", "public Optional<ConfigurationDescriptor> getConfiguration(String configurationId) throws IoTInventoryDataManagerException;", "Map<String, Object> readConfig(Request request, String id);", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "@Override\n public com.gensym.util.Sequence getItemConfiguration() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_CONFIGURATION_);\n return (com.gensym.util.Sequence)retnValue;\n }", "C getConfiguration();", "public static SCMXMLDto getAppConfigVal()throws Exception {\r\n\t\tUtility.LOG(true,false,\"Entering getAppConfigVal\");\r\n\t\tConnection connection =null;\r\n\t\tPreparedStatement getList =null;\r\n\t\tMap<String,String> tmpMap=new HashMap<String,String>();\r\n\t\tResultSet rsAppConfig = null;\r\n\t\tSCMXMLDto tmpScmDto =new SCMXMLDto();\r\n\t\ttry{\r\n\t\t\t//Start for properties file into database\r\n\t\t\tconnection=DbConnection.getConnectionObject();\r\n\t\t\tgetList= connection.prepareCall(strGetAppConfigValue);\r\n\t\t\tgetList.setString(1, \"Third Party\");\r\n\t\t\trsAppConfig = getList.executeQuery();\r\n\t\t\twhile(rsAppConfig.next()){\r\n\t\t\t\tUtility.LOG(true,true,rsAppConfig.getString(\"KEYNAME\"));\r\n\t\t\t\tUtility.LOG(true,true,rsAppConfig.getString(\"KEYVALUE\"));\r\n\t\t\t\ttmpMap.put(rsAppConfig.getString(\"KEYNAME\"), rsAppConfig.getString(\"KEYVALUE\"));\r\n\t\t\t}\r\n\t\t\tappConfig.put(\"scmQueue_host\", tmpMap.get(\"scmQueue_host\"));\r\n\t\t\tappConfig.put(\"scmQueue_channel\",tmpMap.get(\"scmQueue_channel\"));\r\n\t\t\tappConfig.put(\"scmQueue_port\",tmpMap.get(\"scmQueue_port\"));\r\n\t\t\tappConfig.put(\"scmQueue_qmgrName\",tmpMap.get(\"scmQueue_qmgrName\"));\r\n\t\t\tappConfig.put(\"scmQueue_changeReqQName\",tmpMap.get(\"scmQueue_changeReqQName\"));\r\n\t\t\tappConfig.put(\"scmQueue_reqQName\",tmpMap.get(\"scmQueue_reqQName\"));\r\n\t\t\tappConfig.put(\"scmQueue_respQNamePRReuse\",tmpMap.get(\"scmQueue_respQNamePRReuse\"));\r\n\t\t\tappConfig.put(\"scmQueue_respQNameEiResp\",tmpMap.get(\"scmQueue_respQNameEiResp\"));\r\n\t\t\tappConfig.put(\"scmQueue_respQNameSCMResp\",tmpMap.get(\"scmQueue_respQNameSCMResp\"));\r\n\t\t}catch(Exception ex ){\r\n\t\t\tex.printStackTrace();\t\r\n\t\t}finally{\r\n\t\t\ttry{\r\n\t\t\t\tDbConnection.closeResultset(rsAppConfig);\r\n\t\t\t\tDbConnection.closePreparedStatement(getList);\r\n\t\t\t\tDbConnection.freeConnection(connection);\r\n\t\t\t}catch (SQLException e){\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tUtility.LOG(true,false,\"Exiting getAppConfigVal\");\r\n\t\treturn tmpScmDto;\r\n\t}", "public Config getConfig();", "private static Configuration getConfigurationFromDb(String conf_id) {\n FrontEndDBInterface f = new FrontEndDBInterface();\n Configuration config = f.getConfigInformation(Integer.parseInt(conf_id));\n return config;\n }", "@Override\n\t\tprotected GetConfigRes doInBackground(Void... params) {\n\t\t\treturn JsonOA.getConfigInfo(\"all\");\n\t\t}", "public interface Config {\n int MAX_IP_RECORD = 10;\n String ADB_PATH = \"adb_path\";\n String IP_HISTORY = \"ip_history\";\n String TITLE = \"Wifi Adb Ultimate\";\n String HELP = \"https://github.com/Sausure/WIFIADB/tree/master/WIFIADBIntelliJPlugin\";\n String DEFAULT_PORT = \"5555\";\n String EMPTY = \"\";\n String SPACE = \" \";\n String ANY_SPACES = \"\\\\s{1,}\";\n String ENTER = \"\\\\n\";\n String TAB = \"\\\\t\";\n String DEFAULT_PROGRESS_TIP = \"Wait a moment\";\n String DAEMON_FLAG = Utils.concat(SPACE,\"daemon\",SPACE);\n String IP_PATTERN = \"\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}:\\\\d{1,5}\";\n}", "public String getPropertyDACConfig();", "public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}", "public void printConfig() {\n\t\tProperty props = Property.getInstance();\n\t\tSystem.out.println(\"You are using the following settings. If this is correct, \"\n\t\t\t\t+ \"you do not have to do anything. If they are not correct, please alter \" + \"your config files.\");\n\t\tString[] importantSettings = new String[] { \"apkname\", \"alphabetFile\", \"learningAlgorithm\", \"EquivMethod\",\"deviceName\" };\n\t\tfor (int i = 0; i < importantSettings.length; i++) {\n\t\t\tSystem.out.printf(\"%-25s%s%n\", importantSettings[i], \" = \" + props.get(importantSettings[i]));\n\t\t}\n\t}", "public String getConfig() {\n\t\treturn(config);\n\t}", "public Parameters getConfigParameters();", "private void loadWiperConfig(String mSubPath,boolean bQuiet)\n {\n FileReader mWiperConfigReader;\n\n // Environment.getRootDirectory() = /system\".\n final File mFileName = new File(Environment.getRootDirectory(), mSubPath);\n try\n {\n mWiperConfigReader = new FileReader(mFileName);\n }\n catch (FileNotFoundException e)\n {\n if (!bQuiet)\n {\n Log.e(TAG, \"wiperconfig file read/open error \" + mFileName);\n }\n bWiperConfigReadError = true;\n return;\n }\n\n try\n {\n XmlPullParser mParser = Xml.newPullParser();\n mParser.setInput(mWiperConfigReader);\n\n XmlUtils.beginDocument(mParser, \"wiperconfig\");\n\n while (true)\n {\n XmlUtils.nextElement(mParser);\n\n String szName = mParser.getName();\n if (!\"configparam\".equals(szName))\n {\n break;\n }\n\n szUsername = mParser.getAttributeValue(null, \"username\");\n szRealm = mParser.getAttributeValue(null, \"realm\");\n\n String szHighFreqPeriodMs = mParser.getAttributeValue(null, \"highFreqPeriodMs\");\n lHighFreqPeriodMs = Long.parseLong(szHighFreqPeriodMs);\n\n String szLowFreqPeriodMs = mParser.getAttributeValue(null, \"lowFreqPeriodMs\");\n lLowFreqPeriodMs = Long.parseLong(szLowFreqPeriodMs);\n\n szTilingPath = mParser.getAttributeValue(null, \"tilingPath\");\n\n String szMaxDataSizePerSession = mParser.getAttributeValue(null, \"maxDataSizePerSession\");\n lMaxDataSizePerSession = Long.parseLong(szMaxDataSizePerSession);\n\n String szMaxDataSizeTotal = mParser.getAttributeValue(null, \"maxDataSizeTotal\");\n lMaxDataSizeTotal = Long.parseLong(szMaxDataSizeTotal);\n\n String szNetworkPvdEnabled = mParser.getAttributeValue(null, \"networkPvdEnabled\");\n bNetworkPvdEnabled = Boolean.parseBoolean(szNetworkPvdEnabled);\n\n }\n }\n catch (XmlPullParserException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception \", e);\n bWiperConfigReadError = true;\n }\n catch (IOException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception\", e);\n bWiperConfigReadError = true;\n }\n\n if(Config.LOGV)\n {\n Log.v(TAG,\"WiperConfig uname:\"+szUsername+\", realm:\"+szRealm+\",hi:\"+lHighFreqPeriodMs+\",lo:\"+lLowFreqPeriodMs+\":tPath:\"+szTilingPath);\n }\n return;\n }", "protected void retrieveConfigurationValues() throws NbaBaseException {\n NbaConfiguration config = NbaConfiguration.getInstance();\n setMibFollowUpInd(config.getBusinessRulesAttributeValue(NbaConfigurationConstants.MIB_FOLLOWUP_INDICATOR));\n if (!TRUE_STRING.equals(getMibFollowUpInd())) {\n throw new NbaBaseException(\"Support for MIB Follow Ups is not configured.\", NbaExceptionType.FATAL);\n }\n String value = config.getBusinessRulesAttributeValue(NbaConfigurationConstants.MIB_FOLLOW_UP_DAYS);\n Integer days = null;\n if (value != null && value.length() > 0) {\n days = Integer.parseInt(value);\n }\n if (days == null || days < 1 || days > 5) {\n days = 5; //Default is maximum allowed\n }\n setMibFollowUpDays(days.intValue());\n value = config.getBusinessRulesAttributeValue(NbaConfigurationConstants.MIB_FOLLOW_UP_MAX_RECORDS);\n Integer maxRecords = null;\n if (value != null && value.length() > 0) {\n maxRecords = Integer.parseInt(value);\n }\n if (maxRecords == null || maxRecords < 1 || maxRecords > 500) {\n maxRecords = 500; //Default is maximum allowed\n }\n setMibFollowUpMaxRecords(maxRecords.intValue());\n Provider provider = NbaConfiguration.getInstance().getProvider(MIB);\n if (!provider.hasOrganizationKeys()) {\n throw new NbaBaseException(NbaBaseException.CONFIGURATION_MISSING);\n }\n OrganizationKeys organizationKeys = provider.getOrganizationKeys();\n int elementCount = organizationKeys.getCompanyCount();\n if (!(elementCount > 0)) {\n throw new NbaBaseException(NbaBaseException.CONFIGURATION_MISSING);\n }\n setCarrierCodesList(new ArrayList(elementCount));\n for (int i = 0; i < elementCount; i++) {\n Company company = organizationKeys.getCompanyAt(i);\n if (!getCarrierCodesList().contains(company.getOrgCode())) {\n getCarrierCodesList().add(company.getOrgCode());\n }\n }\n setTestIndicator(NbaConfiguration.getInstance().getBusinessRulesAttributeValue(NbaConfigurationConstants.MIB_TEST_INDICATOR));\n }", "public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}", "void getPersonQrData(String storeCode);", "public String readDataSourcePreferences(){\n\n String dataSourceURL = \"\";\n\n // Get the preferences\n final SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences( context );\n\n Boolean dataSourceEnabled = sharedPreferences.getBoolean(\"data_source_check\", false);\n String dataSourcePreference = sharedPreferences.getString( \"data_source\", \"\" );\n\n if ( dataSourceEnabled ) {\n Log.d(\"DATA SOURCE\", sharedPreferences.getString(\"data_source\", \"\"));\n if ( dataSourcePreference.equals( \"Ninguna\" ) ) {\n dataSourceURL = \"http://opendata.caceres.es/sparql\"; // default value\n }\n else {\n dataSourceURL = dataSourcePreference;\n }\n }\n else {\n dataSourceURL = \"http://opendata.caceres.es/sparql\"; // default value\n }\n\n return dataSourceURL;\n }", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "public String getConfigurationValue(String name);", "public Object\tgetConfiguration();", "protected static void dumpConfig() {\n try {\n logger.info( Configuration.CN_WKBOTANICA_API_CONTEXT_PATH + getContextPath());\n logger.info( Configuration.CN_DNS + \" \" + Configuration.CN_DNS_ADD_LOCALS + shouldAddLocalDns());\n logger.info( Configuration.CN_HTTP + \" \" + Configuration.CN_HTTP_PORT + getHttpPort());\n logger.info( Configuration.CN_FLICKR_API_KEY + \" \" + getFlickrApiKey());\n logger.info( Configuration.CN_FLICKR_USER_ID + \" \" + getFlickrUserId());\n logger.info( Configuration.CN_FLICKR_PHOTOSET_ID + \" \" + getFickrPhotosetId());\n }\n catch (Exception e) {\n logger.info(\"GRAVE:\" + e.getMessage());\n }\n }", "private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}", "public String getSettings();", "public String[] getDetailsAboutThisMachine() throws StoreFactoryException;", "public String getAppQr() {\r\n return appQr;\r\n }", "public p getConfig() {\n return c.K();\n }", "protected abstract String getXmppConfigResources();", "private void getConfigurationInfo(BankFusionEnvironment env) {\n controlDetails = ATMConfigCache.getInstance().getInformation(env);\n if (controlDetails != null) {\n sharedSwitch = controlDetails.isSharedSwitch();\n }\n }", "String drbdResourceConfig(final Host configOnHost)\n throws Exceptions.DrbdConfigException {\n final StringBuilder config = new StringBuilder(50);\n config.append(\"resource \" + getName() + \" {\\n\");\n final String[] params = getBrowser().getDrbdXML().getSectionParams(\n \"resource\");\n for (String param : params) {\n //if (DRBD_RES_PARAM_DEV.equals(param)) {\n // continue;\n //}\n final String value = getComboBoxValue(param);\n if (value != null && value.equals(getParamDefault(param))) {\n continue;\n }\n config.append('\\t');\n config.append(param);\n config.append('\\t');\n config.append(value);\n config.append(\";\\n\");\n }\n if (params.length != 0) {\n config.append('\\n');\n }\n /* section config */\n try {\n config.append(drbdSectionsConfig(configOnHost));\n } catch (Exceptions.DrbdConfigException dce) {\n throw dce;\n }\n /*\n <host name=\"alpha\">\n <volume vnr=\"0\">\n <device minor=\"0\"></device>\n <disk>/dev/foo</disk>\n <flexible-meta-disk>/dev/bar</flexible-meta-disk>\n </volume>\n <volume vnr=\"1\">\n \n <device minor=\"1\"></device>\n <disk>/dev/foo1</disk>\n <flexible-meta-disk>/dev/bar1</flexible-meta-disk>\n </volume>\n <address family=\"ipv4\" port=\"7793\">192.168.23.21</address>\n </host>\n */\n final boolean volumesAvailable = configOnHost.hasVolumes();\n for (final Host host : getCluster().getHostsArray()) {\n final List<String> volumeConfigs = new ArrayList<String>();\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n final String volumeConfig = dvi.drbdVolumeConfig(\n host,\n volumesAvailable);\n if (!\"\".equals(volumeConfig)) {\n volumeConfigs.add(volumeConfig);\n }\n }\n if (!volumeConfigs.isEmpty()) {\n config.append(\"\\ton \");\n config.append(host.getName());\n config.append(\" {\\n\\t\\t\");\n config.append(Tools.join(\"\\n\\n\\t\\t\", volumeConfigs));\n final GuiComboBox acb = addressComboBoxHash.get(host);\n final GuiComboBox pcb = portComboBox;\n if (acb != null && pcb != null) {\n final NetInfo ni = (NetInfo) acb.getValue();\n if (ni == null) {\n throw new Exceptions.DrbdConfigException(\n \"Address not defined in \"\n + getCluster().getName()\n + \" (\" + getName() + \")\");\n }\n config.append(\"\\n\\t\\taddress\\t\\t\");\n config.append(getDrbdNetInterfaceWithPort(\n ni.getNetInterface().getIp(),\n pcb.getStringValue()));\n config.append(\";\");\n \n }\n config.append(\"\\n\\t}\\n\");\n }\n } config.append(\"}\");\n getDrbdResource().setCommited(true);\n return config.toString();\n }", "abstract ConfigDescription getDescription();", "public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}", "public String getConfigString()\n {\n return debug ? \"debug\" : \"release\";\n }", "public ThConfig get( String survey ) \n {\n if ( survey == null || survey.length() == 0 ) return null;\n for ( ThConfig thconfig : mItems ) {\n // Log.v(\"ThManager\", \"ThConfig item >\" + thconfig.mName + \"<\" );\n if ( thconfig.mName.equals( survey ) ) return thconfig;\n }\n return null;\n }", "public void readParameters() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n parameterParserXML.readParameterDefinition(configData.getParameterList());\r\n parameterParserXML.processParameterDependency();\r\n }\r\n\r\n Log.info(\"info.progress_control.load_parameter_description\");\r\n }", "String getConfigName();", "private String getPlaymeidFromConfig(){\n\t\tString playmeid = \"\";\n\t\ttry {\n\t\t\tString filePath = \"/system/etc/manufactory.conf\";\n\t\t\tFile file = new File(filePath);\n\t\t\tif (!file.isFile()) {\n\t\t\t\treturn playmeid;\n\t\t\t}\n\t\t\tFileInputStream fin = new FileInputStream(filePath);\n\t\t\tint length = fin.available();\n\t\t\tif(length == 32){\n\t\t\t\tbyte[] buffer = new byte[length];\n\t\t\t\tfin.read(buffer);\n//\t\t\t\tplaymeid = EncodingUtils.getString(buffer, \"UTF-8\");\n\t\t\t\tfin.close();\n\t\t\t\treturn new String(buffer);\n\t\t\t}\n\t\t\tfin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn playmeid;\n\t}", "public interface SysConfigManager {\n\n /**\n * 根据魔筷的值,查找对应的配置,如店铺id对应的配置\n * @param sysConfigQTO\n */\n SysConfigDTO getSysConfigByValue(SysConfigQTO sysConfigQTO) throws RainbowException;\n\n List<SysConfigDTO> queryConfig(SysConfigQTO sysConfigQTO) throws RainbowException;\n\n List<SysConfigDTO> queryConfigOfAccount(String fieldName, String type) throws RainbowException;\n}", "public void getAdapterDetails(RoutingContext routingContext) {\n LOGGER.info(\"getAdapterDetails method starts\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String resourceGroup = request.getParam(JSON_RESOURCE_GROUP);\n String resourceServer = request.getParam(JSON_RESOURCE_SERVER);\n String adapterId = domain + \"/\" + usersha + \"/\" + resourceServer + \"/\" + resourceGroup;\n Future<JsonObject> brokerResult = managementApi.getAdapterDetails(adapterId, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n brokerResultHandler.result().toString());\n } else {\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n\n }", "public static void getConfig(){\n\t\tSystem.out.println(\"Name = \" + name);\n\t\tSystem.out.println(\"PrepositionLength = \" + prepositionLength);\n\t\tSystem.out.println(\"PrepositionDelay = \" + prepositionDelay );\n\t\tSystem.out.println(\"Strings = \" + setOfStrings.length);\n\t\tfor(int i = 0; i < setOfStrings.length; i++){\n\t\t\tSystem.out.println(\"LowNote = \" + setOfStrings[i].lowNote);\n\t\t\tSystem.out.println(\"HighNote = \" + setOfStrings[i].highNote);\n\t\t\tString output = \"\";\n\t\t\tfor(int j = 0; j < setOfStrings[i].interval.length;j++){\n\n\t\t\t\toutput += setOfStrings[i].interval[j] + \",\";\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}", "java.lang.String getDetails();", "protected Config getConfig () {\n return this.conf;\n }", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "public void readEAPConfig(BufferedWriter out) {\n\t\tcreateLogFile();\n\t\t/* Get the WifiService */\n\t\tWifiManager wifi = (WifiManager) this.context\n\t\t\t\t.getSystemService(context.WIFI_SERVICE);\n\t\t/* Get All WIfi configurations */\n\t\tList<WifiConfiguration> configList = wifi.getConfiguredNetworks();\n\t\t/*\n\t\t * Now we need to search appropriate configuration i.e. with name\n\t\t * SSID_Name\n\t\t */\n\t\tfor (int i = 0; i < configList.size(); i++) {\n\t\t\tif (configList.get(i).SSID.contentEquals(\"\\\"SSID_NAME\\\"\")) {\n\t\t\t\t/* We found the appropriate config now read all config details */\n\t\t\t\tIterator<WifiConfiguration> iter = configList.iterator();\n\t\t\t\tWifiConfiguration config = configList.get(i);\n\n\t\t\t\t/*\n\t\t\t\t * I dont think these fields have anything to do with EAP config\n\t\t\t\t * but still will print these to be on safe side\n\t\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[SSID]\"\n\t\t\t\t\t\t\t+ config.SSID);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[SSID]\"\n\t\t\t\t\t\t\t+ config.SSID);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[BSSID]\"\n\t\t\t\t\t\t\t+ config.BSSID);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[BSSID]\" + config.BSSID);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[HIDDEN SSID]\" + config.hiddenSSID);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[HIDDEN SSID]\" + config.hiddenSSID);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[PASSWORD]\"\n\t\t\t\t\t\t\t+ config.preSharedKey);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[PASSWORD]\" + config.preSharedKey);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[ALLOWED ALGORITHMS]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[ALLOWED ALGORITHMS]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[LEAP]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.LEAP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[LEAP]\"\n\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.LEAP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[OPEN]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.OPEN));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[OPEN]\"\n\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.OPEN));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[SHARED]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.SHARED));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[SHARED]\"\n\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.SHARED));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[GROUP CIPHERS]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[GROUP CIPHERS]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[CCMP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.CCMP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[CCMP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.CCMP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[TKIP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.TKIP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[TKIP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.TKIP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[WEP104]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedGroupCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(GroupCipher.WEP104));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP104]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers\n\t\t\t\t\t\t\t\t\t.get(GroupCipher.WEP104));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP40]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.WEP40));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP40]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.WEP40));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[KEYMGMT]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[KEYMGMT]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[IEEE8021X]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedKeyManagement\n\t\t\t\t\t\t\t\t\t\t\t.get(KeyMgmt.IEEE8021X));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[IEEE8021X]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement\n\t\t\t\t\t\t\t\t\t.get(KeyMgmt.IEEE8021X));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[NONE]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.NONE));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[NONE]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.NONE));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WPA_EAP]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_EAP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WPA_EAP]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_EAP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WPA_PSK]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_PSK));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WPA_PSK]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_PSK));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[PairWiseCipher]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[PairWiseCipher]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[CCMP]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.CCMP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[CCMP]\"\n\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.CCMP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[NONE]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.NONE));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[NONE]\"\n\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.NONE));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[TKIP]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.TKIP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[TKIP]\"\n\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.TKIP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[Protocols]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[Protocols]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[RSN]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.RSN));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[RSN]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.RSN));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WPA]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.WPA));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[WPA]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.WPA));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[PRE_SHARED_KEY]\" + config.preSharedKey);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[PRE_SHARED_KEY]\" + config.preSharedKey);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[WEP Key Strings]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP Key Strings]\");\n\t\t\t\t\tString[] wepKeys = config.wepKeys;\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 0]\"\n\t\t\t\t\t\t\t+ wepKeys[0]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 0]\" + wepKeys[0]);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 1]\"\n\t\t\t\t\t\t\t+ wepKeys[1]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 1]\" + wepKeys[1]);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 2]\"\n\t\t\t\t\t\t\t+ wepKeys[2]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 2]\" + wepKeys[2]);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 3]\"\n\t\t\t\t\t\t\t+ wepKeys[3]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 3]\" + wepKeys[3]);\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(\"WRITE ERROR : \",\n\t\t\t\t\t\t\t\"Failed to write Logs to ReadConfigLog.txt\");\n\t\t\t\t\tLog.e(\"WRITE ERROR : \", \"Please take logs using Logcat\");\n\t\t\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"Could not write to ReadConfigLog.txt\"\n\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t}\n\t\t\t\t/* reflection magic */\n\t\t\t\t/* These are the fields we are really interested in */\n\t\t\t\ttry {\n\t\t\t\t\t// Let the magic start\n\t\t\t\t\tClass[] wcClasses = WifiConfiguration.class.getClasses();\n\t\t\t\t\t// null for overzealous java compiler\n\t\t\t\t\tClass wcEnterpriseField = null;\n\n\t\t\t\t\tfor (Class wcClass : wcClasses)\n\t\t\t\t\t\tif (wcClass.getName().equals(INT_ENTERPRISEFIELD_NAME)) {\n\t\t\t\t\t\t\twcEnterpriseField = wcClass;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\tboolean noEnterpriseFieldType = false;\n\t\t\t\t\tif (wcEnterpriseField == null)\n\t\t\t\t\t\tnoEnterpriseFieldType = true; // Cupcake/Donut access\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// enterprise settings\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// directly\n\n\t\t\t\t\tField wcefAnonymousId = null, wcefCaCert = null, wcefClientCert = null, wcefEap = null, wcefIdentity = null, wcefPassword = null, wcefPhase2 = null, wcefPrivateKey = null;\n\t\t\t\t\tField[] wcefFields = WifiConfiguration.class.getFields();\n\t\t\t\t\t// Dispatching Field vars\n\t\t\t\t\tfor (Field wcefField : wcefFields) {\n\t\t\t\t\t\tif (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_ANONYMOUS_IDENTITY))\n\t\t\t\t\t\t\twcefAnonymousId = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim().equals(INT_CA_CERT))\n\t\t\t\t\t\t\twcefCaCert = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_CLIENT_CERT))\n\t\t\t\t\t\t\twcefClientCert = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim().equals(INT_EAP))\n\t\t\t\t\t\t\twcefEap = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_IDENTITY))\n\t\t\t\t\t\t\twcefIdentity = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_PASSWORD))\n\t\t\t\t\t\t\twcefPassword = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim().equals(INT_PHASE2))\n\t\t\t\t\t\t\twcefPhase2 = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_PRIVATE_KEY))\n\t\t\t\t\t\t\twcefPrivateKey = wcefField;\n\t\t\t\t\t}\n\t\t\t\t\tMethod wcefValue = null;\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tfor (Method m : wcEnterpriseField.getMethods())\n\t\t\t\t\t\t\t// System.out.println(m.getName());\n\t\t\t\t\t\t\tif (m.getName().trim().equals(\"value\")) {\n\t\t\t\t\t\t\t\twcefValue = m;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/* EAP Method */\n\t\t\t\t\tString result = null;\n\t\t\t\t\tObject obj = null;\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tobj = wcefValue.invoke(wcefEap.get(config), null);\n\t\t\t\t\t\tString retval = (String) obj;\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP METHOD]\" + retval);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP METHOD]\" + retval);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tobj = wcefEap.get(config);\n\t\t\t\t\t\tString retval = (String) obj;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* phase 2 */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefPhase2.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP PHASE 2 AUTHENTICATION]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP PHASE 2 AUTHENTICATION]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefPhase2.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Anonymous Identity */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefAnonymousId.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP ANONYMOUS IDENTITY]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP ANONYMOUS IDENTITY]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefAnonymousId.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* CA certificate */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefCaCert.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP CA CERTIFICATE]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP CA CERTIFICATE]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefCaCert.get(config);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t/* private key */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefPrivateKey.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP PRIVATE KEY]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP PRIVATE KEY]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefPrivateKey.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Identity */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefIdentity.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP IDENTITY]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP IDENTITY]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefIdentity.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Password */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefPassword.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP PASSWORD]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP PASSWORD]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefPassword.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* client certificate */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefClientCert.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP CLIENT CERT]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP CLIENT CERT]\" + result);\n\t\t\t\t\t\tLog.e(\"READ EROR : \",\n\t\t\t\t\t\t\t\t\"All config data logged to ReadConfigLog.txt\");\n\t\t\t\t\t\tLog.e(\"READ EROR : \",\n\t\t\t\t\t\t\t\t\"Extract ReadConfigLog.txt from SD CARD\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefClientCert.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\tout.close();\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(\"LOGGING EROR : \",\n\t\t\t\t\t\t\t\"Failed to write Logs to ReadConfigLog.txt\");\n\t\t\t\t\tLog.e(\"LOGGING EROR : \", \"Please take logs using Logcat\");\n\t\t\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"Could not write to ReadConfigLog.txt\"\n\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "static String readXML(String keyName){\n File fXmlFile = new File(\".\"+ConstantsClass.PATHWAY_TO_AUXILIARY_FILES+\"/configuration.xml\");\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n Document doc = null;\n try {\n doc = dBuilder.parse(fXmlFile);\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n doc.getDocumentElement().normalize();\n return doc.getElementsByTagName(keyName).item(0).getTextContent();\n }", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "protected void printValConfig(){\n\t\t//System.out.println(\"writing values\");\n\t\tif(valueFxn.compareToIgnoreCase(\"additive\")==0){\n\t\t\tprintAdditive();\n\n\t\t}else if(valueFxn.compareToIgnoreCase(\"schedule\")==0){\n\t\t\tprintSchedule();\n\n\n\t\t}else if(valueFxn.compareToIgnoreCase(\"contract\")==0){\n\t\t\tprintContracts();\n\n\t\t}else{\n\t\t\tSystem.out.println(\"Value function not set correctly.\");\n\t\t}\n\t}", "public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}", "public String getConfig() {\n\n return config;\n }", "public static void readConfig() {\n\t\tint[] defaultBanned = Loader.isModLoaded(\"twilightforest\") ? new int[]{7} : new int[0];\n\t\t\n\t\tDIMENSION_LIST = ConfigHelpers.getIntArray(config, \"dimensionIdList\", \"general\", defaultBanned, \"The list of dimension IDs, used as a allow-list or deny-list, depending on your other config settings. Internal numeric IDs, please.\");\n\t\t\n\t\tMODE = ConfigHelpers.getEnum(config, \"mode\", \"general\", ListMode.DENY_LIST, \"What mode should Broken Wings operate under?\", (mode) -> {\n\t\t\tswitch (mode) {\n\t\t\t\tcase DENY_LIST: return \"Flying is disabled in only the dimensions listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALLOW_LIST: return \"Flying is disabled in all dimensions, except the ones listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALWAYS_DENY: return \"Flying is always disabled, regardless of dimension ID.\";\n\t\t\t\tcase ALWAYS_ALLOW: return \"Flying is never disabled (it's like the mod isn't even installed)\";\n\t\t\t\tdefault: return \"h\";\n\t\t\t}\n\t\t}, ListMode.class);\n\t\t\n\t\tARMOR_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyArmor\", \"general\", new ItemList(), \"A player wearing one of these armor pieces will be immune to the no-flight rule.\");\n\t\t\n\t\tINVENTORY_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyInventory\", \"general\", new ItemList(), \"A player with one of these items in their inventory will be immune to the no-flight rule.\");\n\t\t\n\t\tif(Loader.isModLoaded(\"baubles\")) {\n\t\t\tBUBBLE_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyBauble\", \"general\", new ItemList(), \"A player wearing one of these Baubles will be immune to the no-flight rule.\");\n\t\t} else {\n\t\t\tBUBBLE_BYPASS_KEYS = new ItemList();\n\t\t}\n\t\t\n\t\t//Countermeasures\n\t\tCountermeasures.readConfig(config);\n\t\t\n\t\t//Effects\n\t\tPRINT_TO_LOG = config.getBoolean(\"printToLog\", \"effects\", true, \"Should a message be printed to the server console when a player is dropped from the sky?\");\n\t\t\n\t\tSEND_STATUS_MESSAGE = config.getBoolean(\"sendStatusMessage\", \"effects\", true, \"Should players receive a status message when they are dropped from the sky?\");\n\t\t\n\t\tSHOW_PARTICLES = config.getBoolean(\"showParticles\", \"effects\", true, \"Should players create particle effects when they are dropped from the sky?\");\n\t\t\n\t\tEFFECT_INTERVAL = config.getInt(\"effectInterval\", \"effects\", 3, 0, Integer.MAX_VALUE, \"To prevent spamming players and the server console, how many seconds will need to pass before performing another effect? (Players will still drop out of the sky if they try to fly faster than this interval.)\");\n\t\t\n\t\tFIXED_MESSAGE = config.getString(\"fixedStatusMessage\", \"effects\", \"\", \"Whatever you enter here will be sent to players when they are dropped out of the sky if 'effects.sendStatusMessage' is enabled. If this is empty, I'll choose from my own internal list of (tacky) messages.\").trim();\n\t\t\n\t\t//Client\n\t\tSHOW_BYPASS_KEY_TOOLTIP = config.getBoolean(\"showBypassKeyTooltip\", \"client\", true, \"Show a tooltip on items that are bypass-keys informing the player that they can use this item to bypass the rule.\");\n\t\t\n\t\tif(config.hasChanged()) config.save();\n\t}", "public final /* synthetic */ String zzqq() throws Exception {\n return this.zzckn.getString(\"flag_configuration\", \"{}\");\n }", "public static Config getConfig(){\n return _Config;\n }", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "public abstract String getConfigElementName();", "public DeviceConfig getConfig() {\n return config;\n }", "private static Configuration getConfig() {\n Configuration vgConfig = new Configuration();\n vgConfig.addBrowser(1200, 800, BrowserType.CHROME);\n vgConfig.addBrowser(1200, 800, BrowserType.FIREFOX);\n vgConfig.addBrowser(1200, 800, BrowserType.EDGE);\n vgConfig.addBrowser(1200, 800, BrowserType.SAFARI);\n vgConfig.addDeviceEmulation(DeviceName.iPhone_X, ScreenOrientation.PORTRAIT);\n return vgConfig;\n }", "@Override\n\tpublic Map<String, String> getConf() {\n\t\treturn null;\n\t}", "public static String readConfigValue(Context context, String key) {\n Resources resources = context.getResources();\n try {\n InputStream inputStream = resources.openRawResource(R.raw.config);\n Properties properties = new Properties();\n properties.load(inputStream);\n return properties.getProperty(key);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}", "WxMpConfigStorage getWxMpConfigStorage(String appId);", "public QueryConfigHandler getQueryConfigHandler() {\n return config;\n }", "public String getConfiguration() {\n return configuration;\n }", "public static String getConfiguration(String key) {\r\n PersistenceManager pm = PMF.getPersistenceManager();\r\n Query query = pm.newQuery(Configuration.class, \"key == \" + key);\r\n query.setUnique(true);\r\n Configuration config = (Configuration) query.execute(query);\r\n return config.getValue();\r\n }", "@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }", "public String readConfiguration(String path);", "private void getUpdatedConfiguration(String transactionID) {\n\t\t// fetch the configuration.\n\t\tconfigUpdates = DeviceConfigurationAPI.queryConfigUpdatesTable(transactionID);\n\t\tupdatedConfig = configUpdates.getConfiguration();\n\t\tif(updatedConfig == null) {\n\t\t\tlogger.info(\"DeviceConfiguration is null.\");\n\t\t\treturn ;\n\t\t}\n\t}", "public String getStringConfiguration() {\n\t\treturn config;\n\t}", "public interface Config {\n\t/**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tstring value.\n */\n String getString(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tString value.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tint value.\n */\n int getInt(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tint value.\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Return with string in contents of config file.\n *\n * @return\n * \tContents of config file.\n */\n String getContents();\n\n /**\n * Return with Configuration object in contents of config file.\n *\n * @return\n * \tContents of Configuration object.\n */\n Configuration getConfiguration();\n\n List<Object> getList(String key);\n}", "public interface ConfigProperties {\n ConfigFileReader config = new ConfigFileReader();\n // Common configuration properties\n String WORKING_DIRECTORY = System.getProperty(\"user.dir\");\n String TestAppName = config.getProperty(\"testappname\");\n String TestExecutionType = config.getProperty(\"testexecutiontype\");\n String OsType = config.getProperty(\"ostype\");\n // String AppType = config.getProperty(\"apptype\");\n String AppType = config.getProperty(\"apptype\");\n String AppiumVersion = config.getProperty(\"appiumversion\");\n long EXPLICIT_WAIT_TIME = Integer.parseInt(config.getProperty(\"explicit.wait\"));\n long IMPLICIT_WAIT_TIME = Integer.parseInt(config.getProperty(\"implicit.wait\"));\n long DEFAULT_WAIT_TIME = Integer.parseInt(config.getProperty(\"default.wait\"));\n String APPLICATION_NAME = config.getProperty(\"key\");\n String APPIUM_PORT = config.getProperty(\"appium.server.port\");\n String APPIUM_SYSTEM_PORT = config.getProperty(\"appium.system.port\");\n int NEW_COMMAND_TIMEOUT = Integer.parseInt(config.getProperty(\"new.command.timeout\"));\n String DEVICE_READY_TIMEOUT = config.getProperty(\"device.ready.timeout\");\n String HubAddress = config.getProperty(\"HubAddress\");\n String DEVICE_CATEGORY = config.getProperty(\"Device.category\");\n String TabletSize = config.getProperty(\"Tablet.size\");\n String ExecutionEnvironment = config.getProperty(\"execution.environment\");\n //String User_Type = config.getProperty(\"usertype\");\n String User_Type = config.getProperty(\"usertype\");\n String Full_Reset = config.getProperty(\"full.reset\");\n String No_Reset = config.getProperty(\"no.reset\");\n // iOS specific configuration properties\n String IOS_AUTOMATION_NAME = config.getProperty(\"ios.automation.name\");\n String IOS_BROWSER_NAME = config.getProperty(\"ios.browser.name\");\n String IOS_PLATFORM_NAME = config.getProperty(\"ios.platform.name\");\n String IOS_PLATFORM_VERSION = config.getProperty(\"ios.platform.version\");\n String IOS_DEVICE_NAME = config.getProperty(\"ios.device.name\");\n String IOS_BUNDLE_ID = config.getProperty(\"ios.bundle.id\");\n String IOS_APPLICATION_PATH = getConfigFileLocation(config.getProperty(\"ios.application.apppath\"));\n String IOS_UDID = config.getProperty(\"ios.udid\");\n // Android specific configuration properties\n String ANDROID_AUTOMATION_NAME = config.getProperty(\"android.automation.name\");\n String ANDROID_APP_PKG = config.getProperty(\"android.app.pkg\");\n String ANDROID_APP_ACTIVITY = config.getProperty(\"android.application.activity\");\n String ANDROID_APPlICATION_PATH = getConfigFileLocation(config.getProperty(\"android.application.apppath\"));\n String ANDROID_DEVICE_NAME = config.getProperty(\"android.device.name\");\n String ANDROID_PLATFORM_VERSION = config.getProperty(\"android.platform.version\");\n // Windows specific configuration properties\n String WINDOWS_APPlICATION_PATH = getConfigFileLocation(config.getProperty(\"windows.application.apppath\"));\n String WINDOWS_DEVICE_NAME = config.getProperty(\"windows.device.name\");\n boolean SCREENSHOT_ON_PASS = Boolean.parseBoolean(config.getProperty(\"screenshotOnPass\"));\n }", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "Collection<String> readConfigs();", "private void checkConfig() {\n\t\t\n\t\tif (config.getDouble(\"configversion\", 0.0) - configVersion > .001) {\n\t\t\tString name = config.getString(QuestConfigurationField.NAME.getKey(), \"NO NAME\");\n\t\t\tQuestManagerPlugin.questManagerPlugin.getLogger().warning(\"The quest [\" + name + \"] has an invalid version!\\n\"\n\t\t\t\t\t+ \"QuestManager Configuration Version: \" + configVersion + \" doesn't match quest's: \" \n\t\t\t\t\t+ config.getDouble(\"configversion\", 0.0));\n\t\t\t\n\t\t}\n\t\t\n\t\t//Check each field and put in defaults if they aren't there (niave approach)\n\t\tfor (QuestConfigurationField field : QuestConfigurationField.values()) {\n\t\t\tif (!config.contains(field.getKey())) {\n\t\t\t\tQuestManagerPlugin.questManagerPlugin.getLogger().warning(\"[\" + getName() + \"] \"\n\t\t\t\t\t\t+ \"Failed to find field information: \" + field.name());\n\t\t\t\tQuestManagerPlugin.questManagerPlugin.getLogger().info(\"Adding default value...\");\n\t\t\t\tconfig.set(field.getKey(), field.getDefault());\n\t\t\t}\n\t\t}\n\t}", "public Object getConf() {\n return this.conf;\n }", "private void getSubscriptionDetails() {\n\t\t\tsubcription = db.getAllSubcription(Integer.toString(login_id),subId);\n\t\t\tfor (int i = 0; i < subcription.size(); i++) {\n\t\t\t\tsubcriptionID = subcription.get(i).getSubcriptionId();\n\t\t\t\tLog.d(\"SubcriptionID inASYNTASK******************\", \"\" + subcriptionID);\n\t\t\t\tcertificateKey = subcription.get(i).getCertificateKey();\n\t\t\t\tLog.d(\"certificateKey inASYNTASK******************\", \"\" + certificateKey);\n\t\t\t\tpKeyPassword = subcription.get(i).getPassword();\n\t\t\t\tLog.d(\"pKeyPassword inASYNTASK******************\", \"\" + pKeyPassword);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t}\n\t \n\t\n\t\t}", "public interface Config {\n String BASE_URL = \"http://www.chahuitong.com/\";\n\n String BASE_GOODS_DETAIL_URL = BASE_URL + \"wap/index.php/Home/Index/goods?goods_id=\";\n\n String BASE_GOODS_BODY_URL = BASE_URL + \"mobile/index.php?act=goods&op=goods_body&goods_id=\";\n\n /** 默认订单列表是否获取支付方式 */\n boolean DEFAULT_GET_PAYMENT = false;\n\n /** 默认列表页每页显示数量 */\n int DEFAULT_PAGE_SIZE = 20;\n\n // 这是Bmob的ApplicationId,用于初始化操作\n String applicationId = \"c9a6c7e8fe89e14a6458ed592209e96c\";\n\n // shopNc md5\n String MD5_KEY = \"804451dc13014b1c785fb73b1617b760\";\n\n // 用于服务端判断客户端类型\n String CLIENT_TYPE = \"android\";\n\n // 微信appID、appSecret\n String WX_ID = \"wx025bfd51ec3b664a\";\n String WX_SECRET =\"cdfc0e3a367f44bf4b22e41b4073f274\";\n\n // 微博appID appSecret\n String WB_ID = \"848852268\";\n String WB_SECRET = \"c312c8076d3289a648e7663787cfea86\";\n\n // QQ appID appSecret\n String QQ_ID = \"1104563629\";\n String QQ_SECRET = \"rJbMttJCa47MBsCk\";\n}", "public interface Config {\n\n String API_KEY = \"api_key\";\n String POPULAR = \"popular\";\n String TOP_RATED = \"top_rated\";\n String BASE_URL = \"http://api.themoviedb.org/3/movie/\";\n String IMAGE_BASE_URL = \"http://image.tmdb.org/t/p/w185\";\n\n String ID = \"id\";\n String TRAILER_VIDEOS = \"{id}/videos\";\n String MOVIE_REVIEWS = \"{id}/reviews\";\n String SORT_API = \"{sort}\";\n}", "public static String getDbConfig(){\n return properties.getProperty(\"dbconfig\");\n }", "protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}", "public String getConfiguration() {\n return this.configuration;\n }", "public Observable<GlobalConfigurationParent> fetchQuizAnalyticsConfiguration() {\n return Observable.create(new ObservableOnSubscribe<GlobalConfigurationParent>() {\n @Override\n public void subscribe(ObservableEmitter<GlobalConfigurationParent> e) throws Exception {\n GlobalConfigurationRequest chartConfigurationRequest = new GlobalConfigurationRequest();\n chartConfigurationRequest.setQuizConfig(true);\n Call<GlobalConfigurationParent> call = mNetworkModel.fetchQuizAnalyticsConfiguration(chartConfigurationRequest);\n Response<GlobalConfigurationParent> response = call.execute();\n\n if (response != null && response.isSuccessful()) {\n Log.e(\"quiz configuration\", \"Successful\");\n e.onNext(response.body());\n } else if (response.code() == 404) {\n throw new Exception(mContext.getString(R.string.messageUnableToGetData));\n } else if (response.code() == 401 && SyncServiceHelper.refreshToken(mContext)) {\n Response<GlobalConfigurationParent> response2 = call.clone().execute();\n if (response2 != null && response2.isSuccessful()) {\n Log.e(\"quiz configuration\", \"Successful\");\n e.onNext(response2.body());\n } else if (response2.code() == 401) {\n mContext.startActivity(LoginActivity.getUnauthorizedIntent(mContext));\n } else if (response2.code() == 404) {\n throw new Exception(mContext.getString(R.string.messageUnableToGetData));\n }\n } else {\n Log.e(\"quiz configuration\", \"Failed\");\n throw new Exception(mContext.getString(R.string.messageUnableToGetData));\n }\n\n e.onComplete();\n }\n });\n }", "@GetMapping(\"/configs/{configId}/details\")\n @ResponseBody\n public List<ConfigDetailDTO> queryByConfigId(final @PathVariable Integer configId) {\n List<ConfigDetailBO> configDetailBOs = redisConfigDetailProcessService.queryByConfigId(configId);\n return configDetailConverter.bosToDtos(configDetailBOs);\n }", "public String getQf() {\n return qf;\n }", "ConfigBlock getConfig();" ]
[ "0.6657441", "0.62545943", "0.6097186", "0.5916513", "0.5722753", "0.5545347", "0.5494034", "0.5489301", "0.54876965", "0.5487327", "0.54702383", "0.54387546", "0.54182523", "0.54058695", "0.54044217", "0.5402803", "0.53942984", "0.538761", "0.5371021", "0.5365298", "0.5325758", "0.53089136", "0.530466", "0.52795625", "0.52618587", "0.5261294", "0.5242001", "0.5224014", "0.5187411", "0.5182532", "0.5180877", "0.5176858", "0.5174785", "0.51716906", "0.5164236", "0.5159327", "0.5150718", "0.51461554", "0.5109335", "0.5107861", "0.5106782", "0.51038957", "0.5091985", "0.5089723", "0.50665885", "0.5064907", "0.50522095", "0.5047038", "0.5045065", "0.50284874", "0.5023016", "0.5012149", "0.4992091", "0.4992014", "0.49915367", "0.49845418", "0.49798834", "0.49752122", "0.49752122", "0.49752122", "0.49752122", "0.49639237", "0.4951022", "0.4944867", "0.49442887", "0.4943412", "0.49431643", "0.49416825", "0.493997", "0.4932303", "0.49312332", "0.49187335", "0.49186623", "0.49180758", "0.4912403", "0.49116048", "0.49108386", "0.49096635", "0.4905768", "0.49046162", "0.48924768", "0.4892188", "0.48900703", "0.48859102", "0.48807347", "0.48741716", "0.48698628", "0.48689845", "0.48662215", "0.48578948", "0.4853649", "0.4849849", "0.48472124", "0.4846956", "0.48462316", "0.48442897", "0.48365146", "0.48320654", "0.48193562", "0.48184046", "0.4818286" ]
0.0
-1
/ TODO in Master Salve Setup copy artifacts method do not work and throw exception. This method need to be expanded or suggest user to use Copy Artifact Plugin.
private void copyArtifacts(AbstractBuild<?, ?> build, QaFrameworkReportSettings qaReportSettings, BuildListener listener) { try { copyReportsToArtifactsDir(qaReportSettings, build, listener); if (qaReportSettings.isPublishToQAV() && qaReportSettings.isLoginToQAV()) { copyResourcesToArtifactsDir("*.log", build, listener); } } catch (IOException | InterruptedException ex) { log.log(SEVERE, "Failed copying build artifacts from slave to server - Use Copy Artifact Plugin", ex); outStream.println("Auto Copy of Build Artifacts to artifact dir on Master Failed"); outStream.println("Manually add Build Artifacts to artifact dir or use Copy Artifact Plugin "); outStream.println(ex.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute() throws MojoExecutionException, MojoFailureException {\n\n File target = new File(getDistfolder());\n\n // only create the target directoty when it doesn't exist\n // no deletion\n if (!target.exists()) {\n target.mkdir();\n } else {\n getLog().warn(\"Using existing target directory \" + target.getAbsolutePath());\n }\n\n getLog().info(\"Target is \" + target);\n\n String excludes2 = getExcludes();\n\n if (excludes2 == null) {\n excludes2 = \"**/.svn/,**/.cvs/\";\n\n getLog().info(\"Configuration for excludes not set. Defaulting to: \\\"\" + excludes2\n + \"\\\". Excludes are ant-fileset-style.\");\n } else {\n if (excludes2.contains(\"__acl\") || excludes2.contains(\"__properties\")) {\n getLog().warn(\"Your excludes \\\"\" + excludes2\n + \"\\\" contains __acl or __properties. You do not want these to be excluded in order to have permissoins and properties work.\");\n }\n }\n\n try {\n String targetLibPath = getTargetLibPath();\n\n if ((null != targetLibPath) && !\"\".equals(targetLibPath)) {\n File targetLibDir = new File(target, targetLibPath);\n\n if (!targetLibDir.exists()) {\n targetLibDir.mkdirs();\n }\n\n if (!targetLibDir.isDirectory()) {\n throw new MojoExecutionException(\"Could not create targetLibdir: \" + targetLibDir.toString());\n }\n\n File jar = new File(jarFile);\n FileUtils.copyFileToDirectory(jar, targetLibDir);\n }\n\n for (Resource resource : srcResources) {\n File source = new File(resource.getDirectory());\n File currentTarget = null;\n\n if (resource.getTargetPath() != null) {\n currentTarget = new File(target, resource.getTargetPath());\n } else {\n currentTarget = target;\n }\n\n String normalized = source.getAbsolutePath();\n int offsetLength = normalized.length();\n\n getLog().debug(\"Normalzed sourcefolder is \" + normalized + \" (Offset is: \" + offsetLength + \")\");\n\n List<String> results = FileUtils.getFileAndDirectoryNames(source, null, excludes2, true, true, true,\n true);\n\n for (String fileName : results) {\n File file = new File(fileName);\n\n String normalizedParent = new File(file.getParent()).getAbsolutePath();\n\n if (offsetLength > normalizedParent.length()) {\n getLog().info(\"Skipping file (its the sourcefolder or a parent of it): \"\n + file.getAbsolutePath());\n getLog().debug(\"Parent: \" + normalizedParent + \" with length \" + normalizedParent.length());\n\n continue;\n }\n\n String relative = file.getParent();\n relative = relative.substring(offsetLength); // cut the target-dir away\n\n getLog().debug(\"Copy \" + file + \" to \" + currentTarget.getPath() + File.separator + relative);\n\n if (file.isFile()) {\n File parent = new File(currentTarget.getPath() + File.separator + relative);\n\n if (!parent.exists()) {\n // create dir if it does not exist\n parent.mkdirs();\n }\n\n FileUtils.copyFileToDirectory(file, parent);\n } else if (file.isDirectory()) {\n // take care about directories (so that empty dirs get created)\n\n File tocreate = new File(currentTarget.getPath() + File.separator + relative + File.separator\n + file.getName());\n getLog().debug(\"Creating dir\" + tocreate.toString());\n tocreate.mkdirs();\n }\n }\n }\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could copy file(s) to directory\", ex);\n }\n }", "protected abstract Artifact getArtifact(BuildContext buildContext) throws BuildStepException;", "@Path (\"copyArtifact\")\n @POST\n @Consumes ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n @Produces ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN })\n @RedbackAuthorization (noPermission = true)\n ActionStatus copyArtifact( ArtifactTransferRequest artifactTransferRequest )\n throws ArchivaRestServiceException;", "public void execute() throws MojoExecutionException {\n\n // 1. Create and set up directories\n getLog().info(\"Creating and setting up the bundle directories\");\n buildDirectory.mkdirs();\n\n File bundleDir = new File(buildDirectory, bundleName + \".app\");\n bundleDir.mkdirs();\n\n File contentsDir = new File(bundleDir, \"Contents\");\n contentsDir.mkdirs();\n\n File resourcesDir = new File(contentsDir, \"Resources\");\n resourcesDir.mkdirs();\n\n File javaDirectory = new File(contentsDir, \"Java\");\n javaDirectory.mkdirs();\n\n File macOSDirectory = new File(contentsDir, \"MacOS\");\n macOSDirectory.mkdirs();\n\n // 2. Copy in the native java application stub\n getLog().info(\"Copying the native Java Application Stub\");\n File launcher = new File(macOSDirectory, javaLauncherName);\n launcher.setExecutable(true);\n\n FileOutputStream launcherStream = null;\n try {\n launcherStream = new FileOutputStream(launcher);\n } catch (FileNotFoundException ex) {\n throw new MojoExecutionException(\"Could not copy file to directory \" + launcher, ex);\n }\n\n InputStream launcherResourceStream = this.getClass().getResourceAsStream(javaLauncherName);\n try {\n IOUtil.copy(launcherResourceStream, launcherStream);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could not copy file \" + javaLauncherName + \" to directory \" + macOSDirectory, ex);\n }\n\n // 3.Copy icon file to the bundle if specified\n if (iconFile != null) {\n File f = searchFile(iconFile, project.getBasedir());\n\n if (f != null && f.exists() && f.isFile()) {\n getLog().info(\"Copying the Icon File\");\n try {\n FileUtils.copyFileToDirectory(f, resourcesDir);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying file \" + iconFile + \" to \" + resourcesDir, ex);\n }\n } else {\n throw new MojoExecutionException(String.format(\"Could not locate iconFile '%s'\", iconFile));\n }\n }\n\n // 4. Resolve and copy in all dependencies from the pom\n getLog().info(\"Copying dependencies\");\n List<String> files = copyDependencies(javaDirectory);\n if (additionalBundledClasspathResources != null && !additionalBundledClasspathResources.isEmpty()) {\n files.addAll(copyAdditionalBundledClasspathResources(javaDirectory, \"lib\", additionalBundledClasspathResources));\n }\n\n // 5. Check if JRE should be embedded. Check JRE path. Copy JRE\n if (jrePath != null) {\n File f = new File(jrePath);\n if (f.exists() && f.isDirectory()) {\n // Check if the source folder is a jdk-home\n File pluginsDirectory = new File(contentsDir, \"PlugIns/JRE/Contents/Home/jre\");\n pluginsDirectory.mkdirs();\n\n File sourceFolder = new File(jrePath, \"Contents/Home\");\n if (new File(jrePath, \"Contents/Home/jre\").exists()) {\n sourceFolder = new File(jrePath, \"Contents/Home/jre\");\n }\n\n try {\n getLog().info(\"Copying the JRE Folder from : [\" + sourceFolder + \"] to PlugIn folder: [\" + pluginsDirectory + \"]\");\n FileUtils.copyDirectoryStructure(sourceFolder, pluginsDirectory);\n File binFolder = new File(pluginsDirectory, \"bin\");\n //Setting execute permissions on executables in JRE\n for (String filename : binFolder.list()) {\n new File(binFolder, filename).setExecutable(true, false);\n }\n\n new File (pluginsDirectory, \"lib/jspawnhelper\").setExecutable(true,false);\n embeddJre = true;\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying folder \" + f + \" to \" + pluginsDirectory, ex);\n }\n } else {\n getLog().warn(\"JRE not found check jrePath setting in pom.xml\");\n }\n } else if (jreFullPath != null){\n getLog().info(\"JRE Full path is used [\" + jreFullPath + \"]\");\n embeddJre = true;\n }\n\n // 6. Create and write the Info.plist file\n getLog().info(\"Writing the Info.plist file\");\n File infoPlist = new File(bundleDir, \"Contents\" + File.separator + \"Info.plist\");\n this.writeInfoPlist(infoPlist, files);\n\n // 7. Copy specified additional resources into the top level directory\n getLog().info(\"Copying additional resources\");\n if (additionalResources != null && !additionalResources.isEmpty()) {\n this.copyResources(buildDirectory, additionalResources);\n }\n\n // 7. Make the stub executable\n if (!SystemUtils.IS_OS_WINDOWS) {\n getLog().info(\"Making stub executable\");\n Commandline chmod = new Commandline();\n try {\n chmod.setExecutable(\"chmod\");\n chmod.createArgument().setValue(\"755\");\n chmod.createArgument().setValue(launcher.getAbsolutePath());\n\n chmod.execute();\n } catch (CommandLineException e) {\n throw new MojoExecutionException(\"Error executing \" + chmod + \" \", e);\n }\n } else {\n getLog().warn(\"The stub was created without executable file permissions for UNIX systems\");\n }\n\n // 8. Create the DMG file\n if (generateDiskImageFile) {\n if (SystemUtils.IS_OS_MAC_OSX || SystemUtils.IS_OS_MAC) {\n getLog().info(\"Generating the Disk Image file\");\n Commandline dmg = new Commandline();\n try {\n // user wants /Applications symlink in the resulting disk image\n if (includeApplicationsSymlink) {\n createApplicationsSymlink();\n }\n dmg.setExecutable(\"hdiutil\");\n dmg.createArgument().setValue(\"create\");\n dmg.createArgument().setValue(\"-srcfolder\");\n dmg.createArgument().setValue(buildDirectory.getAbsolutePath());\n dmg.createArgument().setValue(diskImageFile.getAbsolutePath());\n\n try {\n dmg.execute().waitFor();\n } catch (InterruptedException ex) {\n throw new MojoExecutionException(\"Thread was interrupted while creating DMG \" + diskImageFile, ex);\n } finally {\n if (includeApplicationsSymlink) {\n removeApplicationsSymlink();\n }\n }\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error creating disk image \" + diskImageFile, ex);\n }\n\n if (diskImageInternetEnable) {\n getLog().info(\"Enabling the Disk Image file for internet\");\n try {\n Commandline internetEnableCommand = new Commandline();\n\n internetEnableCommand.setExecutable(\"hdiutil\");\n internetEnableCommand.createArgument().setValue(\"internet-enable\");\n internetEnableCommand.createArgument().setValue(\"-yes\");\n internetEnableCommand.createArgument().setValue(diskImageFile.getAbsolutePath());\n\n internetEnableCommand.execute();\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error internet enabling disk image: \" + diskImageFile, ex);\n }\n }\n projectHelper.attachArtifact(project, \"dmg\", null, diskImageFile);\n }\n if (SystemUtils.IS_OS_LINUX) {\n getLog().info(\"Generating the Disk Image file\");\n Commandline linux_dmg = new Commandline();\n try {\n linux_dmg.setExecutable(\"genisoimage\");\n linux_dmg.createArgument().setValue(\"-V\");\n linux_dmg.createArgument().setValue(bundleName);\n linux_dmg.createArgument().setValue(\"-D\");\n linux_dmg.createArgument().setValue(\"-R\");\n linux_dmg.createArgument().setValue(\"-apple\");\n linux_dmg.createArgument().setValue(\"-no-pad\");\n linux_dmg.createArgument().setValue(\"-o\");\n linux_dmg.createArgument().setValue(diskImageFile.getAbsolutePath());\n linux_dmg.createArgument().setValue(buildDirectory.getAbsolutePath());\n\n try {\n linux_dmg.execute().waitFor();\n } catch (InterruptedException ex) {\n throw new MojoExecutionException(\"Thread was interrupted while creating DMG \" + diskImageFile,\n ex);\n }\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error creating disk image \" + diskImageFile + \" genisoimage probably missing\", ex);\n }\n projectHelper.attachArtifact(project, \"dmg\", null, diskImageFile);\n\n } else {\n getLog().warn(\"Disk Image file cannot be generated in non Mac OS X and Linux environments\");\n }\n }\n\n getLog().info(\"App Bundle generation finished\");\n }", "private void installArtifacts(ApplicationDescription desc) throws IOException {\n try {\n Tools.copyDirectory(appFile(desc.name(), M2_PREFIX), m2Dir);\n } catch (NoSuchFileException e) {\n log.debug(\"Application {} has no M2 artifacts\", desc.name());\n }\n }", "protected void copyArtifact(Artifact artifact, boolean removeVersion, boolean prependGroupId,\r\n\t\t\tboolean useBaseVersion, boolean removeClassifier) throws MojoExecutionException {\r\n\r\n\t\tString destFileName = DependencyUtil.getFormattedFileName(artifact, removeVersion, prependGroupId,\r\n\t\t\t\tuseBaseVersion, removeClassifier);\r\n\r\n\t\tFile destDir;\r\n\t\tdestDir = DependencyUtil.getFormattedOutputDirectory(useSubDirectoryPerScope, useSubDirectoryPerType,\r\n\t\t\t\tuseSubDirectoryPerArtifact, useRepositoryLayout, stripVersion, outputDirectory, artifact);\r\n\t\tFile destFile = new File(destDir, destFileName);\r\n\r\n\t\tcopyFile(artifact.getFile(), destFile);\r\n\t}", "private List<String> copyDependencies(File javaDirectory) throws MojoExecutionException {\n ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();\n\n List<String> list = new ArrayList<String>();\n\n // First, copy the project's own artifact\n File artifactFile = project.getArtifact().getFile();\n list.add(layout.pathOf(project.getArtifact()));\n\n try {\n FileUtils.copyFile(artifactFile, new File(javaDirectory, layout.pathOf(project.getArtifact())));\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could not copy artifact file \" + artifactFile + \" to \" + javaDirectory, ex);\n }\n\n if (excludeDependencies) {\n // skip adding dependencies from project.getArtifacts()\n return list;\n }\n\n for (Artifact artifact : project.getArtifacts()) {\n File file = artifact.getFile();\n File dest = new File(javaDirectory, layout.pathOf(artifact));\n\n getLog().debug(\"Adding \" + file);\n\n try {\n FileUtils.copyFile(file, dest);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying file \" + file + \" into \" + javaDirectory, ex);\n }\n\n list.add(layout.pathOf(artifact));\n }\n\n return list;\n }", "Digital_Artifact createDigital_Artifact();", "public void execute() throws MojoExecutionException {\n Build build = project.getBuild();\n String finalName = build.getFinalName();\n String buildDirectory = build.getDirectory();\n String packaging = project.getPackaging();\n getLog().info(\"Build final name: \" + finalName);\n getLog().info(\"Build output directory: \" + buildDirectory);\n getLog().info(\"Project packaging: \" + packaging);\n\n if (\"maven-plugin\".equals(packaging)) {\n getLog().info(\"maven-plugin packaging detected. Using jar file suffix.\");\n packaging = \"jar\";\n }\n\n File expectedFile;\n\n if (\"pom\".equals(packaging)) {\n getLog().info(\"pom packaging detected. Attaching pom only.\");\n expectedFile = project.getFile();\n } else {\n // Pom is attached as well here, no need to attach it\n expectedFile = new File(String.format(\"%s/%s.%s\", buildDirectory, finalName, packaging));\n }\n\n if (!expectedFile.exists()) {\n throw new MojoExecutionException(\"Error attaching artifact. Artifact does not exist.\");\n }\n\n project.getArtifact().setFile(expectedFile);\n\n }", "static FilePath copyJar( PrintStream log, FilePath dst, Class<?> representative, String seedName )\n {\n try\n {\n // in normal execution environment, the master should be loading 'representative' from this jar, so\n // in that way we can find it.\n File jar = Which.jarFile( representative );\n FilePath copiedJar = dst.child( seedName + \".jar\" );\n\n if ( jar.isDirectory() )\n {\n // but during the development and unit test environment, we may be picking the class up from the classes dir\n Zip zip = new Zip();\n zip.setBasedir( jar );\n File t = File.createTempFile( seedName, \"jar\" );\n t.delete();\n zip.setDestFile( t );\n zip.setProject( new Project() );\n zip.execute();\n jar = t;\n }\n else if ( copiedJar.exists() //\n && copiedJar.digest().equals( Util.getDigestOf( jar ) ) ) //\n // && copiedJar.lastModified() == jar.lastModified() )\n {\n log.println( seedName + \".jar already up to date\" );\n return copiedJar;\n }\n\n // Theoretically could be a race condition on a multi-executor Windows slave; symptom would be an IOException during the build.\n // Could perhaps be solved by synchronizing on dst.getChannel() or similar.\n new FilePath( jar ).copyTo( copiedJar );\n log.println( \"Copied \" + seedName + \".jar\" );\n return copiedJar;\n }\n catch ( IOException | InterruptedException e )\n {\n throw new RuntimeException( e.getMessage(), e);\n }\n }", "ArtifactResult result();", "private void installArtifact(Artifact artifact, ProjectBuildingRequest buildingRequest) {\r\n\t\ttry {\r\n\t\t\tinstaller.install(buildingRequest, Collections.singletonList(artifact));\r\n\t\t\tinstallBaseSnapshot(artifact, buildingRequest);\r\n\r\n\t\t\tif (!\"pom\".equals(artifact.getType()) && isCopyPom()) {\r\n\t\t\t\tArtifact pomArtifact = getResolvedPomArtifact(artifact);\r\n\t\t\t\tif (pomArtifact != null && pomArtifact.getFile() != null && pomArtifact.getFile().exists()) {\r\n\t\t\t\t\tinstaller.install(buildingRequest, Collections.singletonList(pomArtifact));\r\n\t\t\t\t\tinstallBaseSnapshot(pomArtifact, buildingRequest);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ArtifactInstallerException e) {\r\n\t\t\tgetLog().warn(\"unable to install \" + artifact, e);\r\n\t\t}\r\n\t}", "private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}", "CdapArtifact createCdapArtifact();", "java.lang.String getArtifactUrl();", "public abstract List<AbstractDeploymentArtifact> getDeploymentArtifacts();", "Active_Digital_Artifact createActive_Digital_Artifact();", "@Test\n public void addDeploymentArtifactAndVerifyInCompositionScreenApi() throws Exception {\n ResourceReqDetails vfMetaData = createVFviaAPI();\n\n //Go to Catalog and find the created VF\n CatalogUIUtilitis.clickTopMenuButton(TopMenuButtonsEnum.CATALOG);\n GeneralUIUtils.findComponentAndClick(vfMetaData.getName());\n\n ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();\n\n ArtifactInfo deploymentArtifact = new ArtifactInfo(filePath, \"asc_heat 0 2.yaml\", \"kuku\", \"artifact1\", \"OTHER\");\n DeploymentArtifactPage.clickAddNewArtifact();\n ArtifactUIUtils.fillAndAddNewArtifactParameters(deploymentArtifact);\n AssertJUnit.assertTrue(DeploymentArtifactPage.checkElementsCountInTable(1));\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n CompositionPage.showDeploymentArtifactTab();\n List<WebElement> deploymentArtifactsFromScreen = CompositionPage.getDeploymentArtifacts();\n AssertJUnit.assertTrue(1 == deploymentArtifactsFromScreen.size());\n\n String actualArtifactFileName = deploymentArtifactsFromScreen.get(0).getText();\n AssertJUnit.assertTrue(\"asc_heat-0-2.yaml\".equals(actualArtifactFileName));\n }", "private Step copyRemoteFiles() {\n return stepBuilderFactory.get(STEP_COPY_REMOTE_FILES)\n .tasklet(copyRemoteFilesTask)\n .build();\n }", "public String doCopy() throws Exception \n\t{\n\t\tString exportId = \"Copy_Repository_\" + visualFormatter.formatDate(new Date(), \"yyyy-MM-dd_HHmm\");\n\t\tProcessBean processBean = ProcessBean.createProcessBean(ImportRepositoryAction.class.getName(), exportId);\n\t\t\n\t\tCopyRepositoryController.importRepositories(getRequest().getParameterValues(\"repositoryId\"), this.getInfoGluePrincipal(), this.onlyLatestVersions, this.standardReplacement, this.replacements, processBean);\n\t\t\n\t\treturn \"successRedirectToProcesses\";\n\n\t\t/*\n\t\tFile file = null;\n\t\t\n\t\ttry \n\t\t{\n\t\t\tMapping map = new Mapping();\n\t\t\tString exportFormat = CmsPropertyHandler.getExportFormat();\n\t\t\tString requestExportFormat = \"\"+getRequest().getParameter(\"exportFormat\");\n\t\t\t\n\t\t\tif(exportFormat.equalsIgnoreCase(\"3\") || this.exportFormat.equals(\"3\") || requestExportFormat.equals(\"3\"))\n\t\t\t{\n\t\t\t\tString[] repositories = getRequest().getParameterValues(\"repositoryId\");\n\t\t\t\t\n\t\t\t\tString exportId = \"Copy_Import_\" + visualFormatter.formatDate(new Date(), \"yyyy-MM-dd_HHmm\");\n\t\t\t\tProcessBean processBean = ProcessBean.createProcessBean(ImportRepositoryAction.class.getName(), exportId);\n\t\t\t\t\n\t\t\t\tOptimizedExportController.copy(repositories, -1, false, null, processBean, onlyLatestVersions, standardReplacement, replacements);\n\n\t\t\t\treturn \"successRedirectToProcesses\";\n\t\t\t}\n\n\t\t\tlogger.info(\"MappingFile:\" + CastorDatabaseService.class.getResource(\"/xml_mapping_site_2.5.xml\").toString());\n\t\t\tmap.loadMapping(CastorDatabaseService.class.getResource(\"/xml_mapping_site_2.5.xml\").toString());\n\t\t\t\n\t\t\t// All ODMG database access requires a transaction\n\t\t\tdb.begin();\n\n\t\t\tList<SiteNode> siteNodes = new ArrayList<SiteNode>();\n\t\t\tList<Content> contents = new ArrayList<Content>();\n\t\t\tHashtable<String,String> allRepositoryProperties = new Hashtable<String,String>();\n\t\t\tHashtable<String,String> allSiteNodeProperties = new Hashtable<String,String>();\n\t\t\tHashtable<String,String> allContentProperties = new Hashtable<String,String>();\n\t\t\tList<AccessRight> allAccessRights = new ArrayList<AccessRight>();\n\t\t\t//List<AccessRight> allAccessRights = AccessRightController.getController().getAllAccessRightListForExportReadOnly(db);\n\t\t\t\n\t\t\t//TEST\n\t\t\tMap args = new HashMap();\n\t\t args.put(\"globalKey\", \"infoglue\");\n\t\t PropertySet ps = PropertySetManager.getInstance(\"jdbc\", args);\n\t\t //END TEST\n\t\t\t\n\t\t\tString names = \"\";\n\t\t\tRepository repository \t= RepositoryController.getController().getRepositoryWithId(repositoryId, db);\n\t\t\tSiteNode siteNode \t\t= SiteNodeController.getController().getRootSiteNode(repositoryId, db);\n\t\t\tContent content \t\t= ContentController.getContentController().getRootContent(repositoryId, db);\n\n\t\t InterceptionPointVO interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName(\"Repository.Read\", db);\n\t\t if(interceptionPointVO != null)\n\t\t \tallAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));\n\n\t\t interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName(\"Repository.Write\", db);\n\t\t if(interceptionPointVO != null)\n\t\t \tallAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));\n\n\t\t interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName(\"Repository.ReadForBinding\", db);\n\t\t if(interceptionPointVO != null)\n\t\t \tallAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));\n\n\t\t ExportRepositoryAction.getContentPropertiesAndAccessRights(ps, allContentProperties, allAccessRights, content, db);\n\t\t ExportRepositoryAction.getSiteNodePropertiesAndAccessRights(ps, allSiteNodeProperties, allAccessRights, siteNode, db);\n\t\t\t\n\t\t\tsiteNodes.add(siteNode);\n\t\t\tcontents.add(content);\n\t\t\tnames = names + \"_\" + repository.getName();\n\t\t\tallRepositoryProperties.putAll(OptimizedExportController.getRepositoryProperties(ps, repositoryId));\n\t\t\t\n\t\t\tList contentTypeDefinitions = ContentTypeDefinitionController.getController().getContentTypeDefinitionList(db);\n\t\t\tList categories = CategoryController.getController().getAllActiveCategories();\n\t\t\t\n\t\t\tInfoGlueExportImpl infoGlueExportImpl = new InfoGlueExportImpl();\n\t\t\t\n\t\t\tVisualFormatter visualFormatter = new VisualFormatter();\n\t\t\tnames = new VisualFormatter().replaceNonAscii(names, '_');\n\n\t\t\tString fileName = \"RepositoryCopy_\" + names + \"_\" + visualFormatter.formatDate(new Date(), \"yyyy-MM-dd_HHmm\") + \".xml\";\n\t\t\t\n\t\t\tString filePath = CmsPropertyHandler.getDigitalAssetPath();\n\t\t\tString fileSystemName = filePath + File.separator + fileName;\n\t\t\t\n\t\t\tString encoding = \"UTF-8\";\n\t\t\tfile = new File(fileSystemName);\n FileOutputStream fos = new FileOutputStream(file);\n BufferedOutputStream bos = new BufferedOutputStream(fos);\n OutputStreamWriter osw = new OutputStreamWriter(bos, encoding);\n Marshaller marshaller = new Marshaller(osw);\n marshaller.setMapping(map);\n\t\t\tmarshaller.setEncoding(encoding);\n\t\t\tDigitalAssetBytesHandler.setMaxSize(-1);\n\n\t\t\tinfoGlueExportImpl.getRootContent().addAll(contents);\n\t\t\tinfoGlueExportImpl.getRootSiteNode().addAll(siteNodes);\n\t\t\t\n\t\t\tinfoGlueExportImpl.setContentTypeDefinitions(new ArrayList());\n\t\t\tinfoGlueExportImpl.setCategories(new ArrayList());\n\t\t\t\n\t\t\tinfoGlueExportImpl.setRepositoryProperties(allRepositoryProperties);\n\t\t\tinfoGlueExportImpl.setContentProperties(allContentProperties);\n\t\t\tinfoGlueExportImpl.setSiteNodeProperties(allSiteNodeProperties);\n\t\t\tinfoGlueExportImpl.setAccessRights(allAccessRights);\n\t\t\t\n\t\t\tmarshaller.marshal(infoGlueExportImpl);\n\t\t\t\n\t\t\tosw.flush();\n\t\t\tosw.close();\n\t\t\t\n\t\t\tdb.commit();\n\t\t\tdb.close();\n\t\t\t\n\t\t\tdb = CastorDatabaseService.getDatabase();\n\t\t\tdb.begin();\n\t\t\t\n\t\t\tMap contentIdMap = new HashMap();\n\t\t\tMap siteNodeIdMap = new HashMap();\n\t\t\tList allContentIds = new ArrayList();\n\n\t\t\tMap<String,String> replaceMap = new HashMap<String,String>();\n\t\t\tProperties properties = new Properties();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tproperties.load(new ByteArrayInputStream(replacements.getBytes(\"ISO-8859-1\")));\n\t\t\t\tIterator propertySetIterator = properties.keySet().iterator();\n\t\t\t\twhile(propertySetIterator.hasNext())\n\t\t\t\t{\n\t\t\t\t\tString key = (String)propertySetIterator.next();\n\t\t\t\t\tString value = properties.getProperty(key);\n\t\t\t\t\treplaceMap.put(key, value);\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t logger.error(\"Error loading properties from string. Reason:\" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tImportController.getController().importRepository(db, map, file, encoding, 2, onlyLatestVersions, true, contentIdMap, siteNodeIdMap, allContentIds, replaceMap, false);\n\n\t\t\tdb.commit();\n\t\t\tdb.close();\n\n\t\t\tIterator allContentIdsIterator = allContentIds.iterator();\n\t\t\twhile(allContentIdsIterator.hasNext())\n\t\t\t{\n\t\t\t\tInteger contentId = (Integer)allContentIdsIterator.next();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tdb = CastorDatabaseService.getDatabase();\n\t\t\t\t\tdb.begin();\n\t\n\t\t\t\t\tContent createdContent = ContentController.getContentController().getContentWithId(contentId, db);\n\t\t\t\t\tImportController.getController().updateContentVersions(createdContent, contentIdMap, siteNodeIdMap, onlyLatestVersions, replaceMap);\n\t\n\t\t\t\t\tdb.commit();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tdb.rollback();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e2) { e2.printStackTrace(); }\n\t logger.error(\"An error occurred when updating content version for content: \" + e.getMessage(), e);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tdb.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tcatch ( Exception e) \n\t\t{\n\t\t\ttry\n {\n db.rollback();\n db.close();\n } \n\t\t\tcatch (Exception e1)\n {\n logger.error(\"An error occurred when importing a repository: \" + e.getMessage(), e);\n \t\t\tthrow new SystemException(\"An error occurred when importing a repository: \" + e.getMessage(), e);\n }\n\t\t\t\n\t\t\tlogger.error(\"An error occurred when importing a repository: \" + e.getMessage(), e);\n\t\t\tthrow new SystemException(\"An error occurred when importing a repository: \" + e.getMessage(), e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(file != null)\n\t\t\t\tfile.delete();\n\t\t}\n\n\t\treturn \"success\";\n\t\t*/\n\t}", "public BackupFSArchiveCopy() {\n super();\n }", "@Override\n public List<BazelPublishArtifact> getBazelArtifacts(AspectRunner aspectRunner, Project project, Task bazelExecTask) {\n final File outputArtifactFolder = super.getBazelArtifacts(aspectRunner, project, bazelExecTask).get(0).getFile().getParentFile();\n final File aarOutputFile = new File(outputArtifactFolder, mConfig.targetName + \".aar\");\n return Collections.singletonList(new BazelPublishArtifact(bazelExecTask, aarOutputFile));\n }", "Path handleOverriddenTransformation(MavenArtifact artifact) throws IOException, ProvisioningException {\n boolean isTransformed = isOverriddenTransformed(artifact);\n Path path = artifact.getPath();\n if (!isTransformed && !isExcludedFromTransformation(artifact)) {\n // Transform attempt and install in provisioningMavenRepo.\n Path pomFile = getPomArtifactPath(artifact, getArtifactResolver());\n Path transformedFile = setupOverriddenArtifact(artifact);\n // The provisioningMavenRepo is used when generating the configuration.\n if (transformedFile == null) {\n Path notTransformedVersionPath = getLocalRepoPath(artifact, artifact.getVersion(), provisioningMavenRepo);\n path = notTransformedVersionPath.resolve(artifact.getArtifactFileName());\n Files.copy(artifact.getPath(), path, StandardCopyOption.REPLACE_EXISTING);\n Files.copy(pomFile, notTransformedVersionPath.resolve(pomFile.getFileName().toString()), StandardCopyOption.REPLACE_EXISTING);\n } else {\n // Copy the transformed one\n String transformedVersion = getTransformedVersion(artifact.getVersion());\n Path transformedVersionPath = getLocalRepoPath(artifact, transformedVersion, provisioningMavenRepo);\n path = transformedVersionPath.resolve(transformedFile.getFileName());\n Files.copy(transformedFile, path, StandardCopyOption.REPLACE_EXISTING);\n Files.copy(pomFile, transformedVersionPath.resolve(pomFile.getFileName().toString()), StandardCopyOption.REPLACE_EXISTING);\n }\n }\n return path;\n }", "@Test\n public void addDeploymentArtifactInCompositionScreenTestApi() throws Exception {\n ResourceReqDetails vfMetaData = createVFviaAPI();\n\n //Go to Catalog and find the created VF\n CatalogUIUtilitis.clickTopMenuButton(TopMenuButtonsEnum.CATALOG);\n GeneralUIUtils.findComponentAndClick(vfMetaData.getName());\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n ArtifactInfo artifact = new ArtifactInfo(filePath, \"Heat-File.yaml\", \"kuku\", \"artifact3\", \"OTHER\");\n CompositionPage.showDeploymentArtifactTab();\n CompositionPage.clickAddArtifactButton();\n ArtifactUIUtils.fillAndAddNewArtifactParameters(artifact, CompositionPage.artifactPopup());\n\n List<WebElement> actualArtifactList = GeneralUIUtils.getWebElementsListBy(By.className(\"i-sdc-designer-sidebar-section-content-item-artifact\"));\n AssertJUnit.assertEquals(1, actualArtifactList.size());\n }", "private File copyResources(String srcFileName, File sourceDir, File destinationDir) throws MojoExecutionException {\n File srcFile = new File(sourceDir.getAbsolutePath()+File.separator+srcFileName);\n if (srcFile.exists()) {\n getLog().info(\"Copying \"+srcFile.getName()+\"...\");\n try {\n File destFile = new File(destinationDir.getAbsolutePath()+File.separator+srcFile.getName());\n if (srcFile.isDirectory()) {\n FileUtils.copyDirectory(srcFile, destFile, false);\n } else {\n FileUtils.copyFile(srcFile, destFile, false);\n }\n return destFile;\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying resource '\"+srcFile.getName()+\"'\", ex);\n }\n } else {\n getLog().warn(\"No source file '\"+srcFile.getName()+\"' to copy\");\n return null;\n }\n }", "CdapLoadArtifactStep createCdapLoadArtifactStep();", "private void copyCoverageFile(String sourceResourceName, String targetFileName, WorkflowJob job) throws Exception {\n FilePath directory = ensureWorkspaceExists(job);\n\n FilePath dest = directory.child(targetFileName);\n org.apache.commons.io.IOUtils.copy(getClass().getResourceAsStream(sourceResourceName), dest.write());\n }", "protected abstract boolean copyCheckedFiles();", "@Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();", "public void execute()\n throws MojoExecutionException\n {\n this.checkOperatingSystem();\n\n final File folderApp =\n new File( this.data.getTargetDirectory(), this.data.getAppName() + \"-\" + this.data.getAppVersion() + \".app\" );\n final File folderContents = new File( folderApp, \"Contents\" );\n final File folderMacOS = new File( folderContents, \"MacOS\" );\n final File folderResources = new File( folderContents, \"Resources\" );\n final File folderJava = new File( folderResources, \"Java\" );\n\n final File targetJavaAppStub = new File( folderMacOS, JAVA_APP_STUB.getName() );\n final File targetInfoPlistFile = new File( folderContents, FILENAME_PLIST_INFO );\n final File targetVersionPlistFile = new File( folderContents, FILENAME_PLIST_VERSION );\n\n if ( folderApp.exists() == true )\n {\n try\n {\n this.logger.info( \"Deleting already existing application folder at '\" + folderApp.getName() + \"' ...\" );\n PtFileUtil.deleteDirectoryRecursive( folderApp );\n }\n catch ( PtException e )\n {\n throw new MojoExecutionException( \"Could not delete directory '\" + folderApp.getAbsolutePath() + \"'!\" );\n }\n }\n\n makeFolders( folderApp );\n makeFolders( folderContents );\n makeFolders( folderMacOS );\n makeFolders( folderResources );\n makeFolders( folderJava );\n\n final String jarWithDependsFileName =\n this.data.getAppName() + \"-\" + this.data.getAppVersion() + \"-\" + \"jar-with-dependencies.jar\";\n final File jarWithDependsSource = new File( this.data.getTargetDirectory(), jarWithDependsFileName );\n\n if ( jarWithDependsSource.exists() == false )\n {\n throw new MojoExecutionException(\n \"Jar with dependencies file not existing (try 'mvn assembly:assembly') at: \"\n + jarWithDependsSource.getAbsolutePath() );\n }\n\n if ( this.data.isPlistInfoParamsSet() == true )\n {\n\n final String mainClassFqn = this.data.getPlistInfoParams( PlistInfoParam.MAIN_CLASS );\n this.checkJarWithDependsMainClass( jarWithDependsSource, mainClassFqn );\n\n }\n else\n {\n this.logger.debug( \"Could not check MainClass existence.\" );\n // TODO if Info.plist file is given directly, check for file\n // existence,\n // then parse it (validate!) and retrieve MainClass attribute to\n // check jar with dependencies\n }\n\n this.executeCopyFiles( folderResources, folderJava, targetJavaAppStub, jarWithDependsSource );\n this.executePlistFiles( jarWithDependsFileName, targetInfoPlistFile, targetVersionPlistFile );\n this.executeShellCommands( folderApp, targetJavaAppStub );\n\n }", "@Test\n public void testCopyFile() throws Exception {\n System.out.println(\"copyFile with existing source image file\");\n String sourcePath = System.getProperty(\"user.dir\")+fSeparator+\"src\"+fSeparator+\"test\"+fSeparator+\n \"java\"+fSeparator+\"resources\"+fSeparator+\"testImg.jpg\";\n File source = new File(sourcePath);\n \n File dest = new File(folder.toString()+fSeparator+\"Images\");\n FilesDao instance = new FilesDao();\n boolean result;\n try{\n instance.copyFile(source, dest);\n File copiedFile = new File(dest+fSeparator+\"testImg.jpg\");\n if(copiedFile.exists())\n result = true;\n else\n result = false;\n }catch(Exception ex){\n result = false;\n }\n boolean expResult = true;\n assertEquals(\"Some message\",expResult,result);\n }", "public void copyAssets(View view) {\n log(\"copy assets to fon\");\n try {\n String [] list = getApplicationContext().getAssets().list(\"\");\n if (list.length > 0) {\n for (String file : list) {\n copyAssetFile(file, getApplicationContext());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n log(\"copy finished\");\n log(\"deploy assets start\");\n executeCommand(\"deploy.sh\");\n log(\"deploy assets finished\");\n }", "@Override\n public boolean doWork() {\n\n logger.debug(\"CopyCommand->doWork()\");\n\n // Parameter ermitteln\n strSrcFile = getValueForKey(CONST_PARAM_SCRFILE);\n strDestFile = getValueForKey(CONST_PARAM_DESTFILE);\n bIsDirectory = Boolean.parseBoolean(getValueForKey(CONST_PARAM_ISDIRECTORY));\n\n // TODO: richtigen Replaces einfuegen\n VarReplace objVarRepl = new VarReplace();\n strSrcFile = objVarRepl.replacePlaceholder(strSrcFile);\n strDestFile = objVarRepl.replacePlaceholder(strDestFile);\n\n if ((strSrcFile == null) || (strDestFile == null)) {\n return false;\n }\n else if (new File(strSrcFile).isDirectory()) {\n try {\n FileUtils.copyDirectory(new File(strSrcFile), new File(strDestFile));\n }\n catch (IOException ioe) {\n logger.error(\" unable to copy file: \" + ioe.getMessage());\n }\n return true;\n\n }\n else {\n try {\n if (new File(strDestFile).getName().startsWith(\"v\")\n || new File(strDestFile).getName().startsWith(\"z\")) {\n strDestFile = new File(strDestFile).getParent() + File.separator\n + new File(strDestFile).getName().toUpperCase();\n }\n logger.debug(\"srcFile: \" + strSrcFile + \", destFile: \" + strDestFile);\n\n if (!new File(strSrcFile).getParentFile().exists()) {\n logger.debug(\"srcFile parent folder existiert nicht: \" + new File(strSrcFile).getParent());\n }\n\n if (!new File(strSrcFile).exists()) {\n logger.debug(\"srcFile existiert nicht: \" + new File(strSrcFile).getAbsolutePath());\n }\n\n if (!new File(strDestFile).getParentFile().exists()) {\n logger.debug(\"destFile parent folder existstiert nicht: \"\n + new File(strDestFile).getParentFile().getAbsolutePath());\n new File(strDestFile).getParentFile().mkdirs();\n }\n\n FileUtils.copyFile(new File(strSrcFile), new File(strDestFile));\n }\n catch (IOException ioe) {\n\n logger.error(\" unable to copy file: \" + ioe.getMessage());\n\n ioe.printStackTrace();\n\n while (iCounter < 20) {\n\n logger.debug(\"IOException loop: \" + iCounter);\n\n try {\n logger.debug(\"wait 20 seconds\");\n Thread.sleep(TimeUnit.SECONDS.toMillis(20));\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n try {\n FileUtils.copyFile(new File(strSrcFile), new File(strDestFile));\n logger.debug(\"break loop\");\n break;\n }\n catch (IOException e) {\n\n logger.debug(\"again an exception: \" + e.getMessage());\n }\n\n iCounter++ ;\n\n logger.debug(\"try it ounce again\");\n\n }\n\n }\n return true;\n }\n\n }", "@Test\n public void testNonGavArtifacts()\n throws Exception\n {\n new DeployUtils( this ).deployWithWagon( \"http\", getRepositoryUrl( getTestRepositoryId() ),\n getTestFile( \"pom.xml\" ), \"foo/bar\" );\n\n // now get the info for it\n Response response =\n RequestFacade.doGetRequest( \"service/local/repositories/\" + getTestRepositoryId() + \"/content/\"\n + \"foo/bar\" + \"?describe=maven2\" );\n String responseText = response.getEntity().getText();\n Assert.assertEquals( response.getStatus().getCode(), 404, \"Response was: \" + responseText );\n\n }", "public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofNullable(kalixContext));\n }", "CdapLoadArtifactWithConfigStep createCdapLoadArtifactWithConfigStep();", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmyAssetInstaller.copyAll();\n\n\t\t\t\t\tringProgressDialog.dismiss();\n\t\t\t\t}", "Artifact getArtifact(String version) throws ArtifactNotFoundException;", "private void copyFile( final File source, final File target )\n throws MojoExecutionException\n {\n if ( source.exists() == false )\n {\n throw new MojoExecutionException( \"Source file '\" + source.getAbsolutePath() + \"' does not exist!\" );\n }\n if ( target.exists() == true )\n {\n throw new MojoExecutionException( \"Target file '\" + source.getAbsolutePath() + \"' already existing!\" );\n }\n\n try\n {\n this.logger.debug( \"Copying file from '\" + source.getAbsolutePath() + \"' to \" + \"'\"\n + target.getAbsolutePath() + \"'.\" );\n PtFileUtil.copyFile( source, target );\n }\n catch ( PtException e )\n {\n throw new MojoExecutionException( \"Could not copy file from '\" + source.getAbsolutePath() + \"' to \" + \"'\"\n + target.getAbsolutePath() + \"'!\", e );\n }\n }", "private void executeCopyFiles( final File folderResources, final File folderJava, final File targetJavaAppStub,\n final File jarWithDependsSource )\n throws MojoExecutionException\n {\n this.logger.info( \"Copying files ...\" );\n\n final File jarWithDependsTarget = new File( folderJava, jarWithDependsSource.getName() );\n\n if ( JAVA_APP_STUB.exists() == false )\n {\n throw new MojoExecutionException( \"Could not find Java Application stub at: \"\n + JAVA_APP_STUB.getAbsolutePath() );\n }\n\n copyFile( JAVA_APP_STUB, targetJavaAppStub );\n copyFile( jarWithDependsSource, jarWithDependsTarget );\n\n if ( this.data.getAppIcon() != null )\n {\n copyFile( this.data.getAppIcon(), new File( folderResources, this.data.getAppIcon().getName() ) );\n }\n\n if ( this.data.getAdditionalResources() != null )\n {\n for ( int i = 0, n = this.data.getAdditionalResources().size(); i < n; i++ )\n {\n final String rsrc = (String) this.data.getAdditionalResources().get( i );\n\n final File source = new File( this.data.getBaseDirectory(), rsrc );\n final File target = new File( folderResources, source.getName() );\n\n copyFile( source, target );\n }\n }\n }", "void publishPlugin(byte[] jarFile);", "public void copyAssets(String dist) {\n copyFile(dist, \"pointer.png\");\n copyFile(dist, \"WebElementRecorder.js\");\n }", "Passive_Digital_Artifact createPassive_Digital_Artifact();", "public void copy() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"copyButton\").click();\n\t}", "public void testImportArtifactWithoutCredentialsFail() throws Exception {\n try {\n org.osgi.service.cm.Configuration configuration = m_configAdmin.getConfiguration(m_authConfigPID);\n assertNotNull(configuration);\n\n // Delete the credentials for the OBR-URL, thereby simulating wrong credentials for the OBR...\n configuration.delete();\n\n // Use a valid JAR file, with a Bundle-SymbolicName header.\n File temp = FileUtils.createEmptyBundle(\"org.apache.ace.test3\", new Version(1, 0, 0));\n temp.deleteOnExit();\n\n try {\n m_artifactRepository.importArtifact(temp.toURI().toURL(), true /* upload */); // should fail!\n fail(\"IOException expected!\");\n }\n catch (IOException exception) {\n // Ok; expected...\n }\n }\n catch (Exception e) {\n printLog(m_logReader);\n throw e;\n }\n }", "public void testCopyImage() {\n System.out.println(\"copyImage\");\n String from = \"\";\n String formatName = \"\";\n File output = null;\n boolean expResult = false;\n boolean result = IOUtil.copyImage(from, formatName, output);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test(groups = \"Integration\")\n public void testCopyFileTo() throws Exception {\n File dest = Os.newTempFile(getClass(), \".dest.tmp\");\n File src = Os.newTempFile(getClass(), \".src.tmp\");\n try {\n Files.write(\"abc\", src, Charsets.UTF_8);\n host.copyTo(src, dest);\n assertEquals(\"abc\", Files.readFirstLine(dest, Charsets.UTF_8));\n } finally {\n src.delete();\n dest.delete();\n }\n }", "public void testImportArtifactWithCredentialsOk() throws Exception {\n try {\n // Use a valid JAR file, without a Bundle-SymbolicName header.\n File temp = FileUtils.createEmptyBundle(\"org.apache.ace.test1\", new Version(1, 0, 0));\n temp.deleteOnExit();\n\n m_artifactRepository.importArtifact(temp.toURI().toURL(), true /* upload */);\n\n assertEquals(1, m_artifactRepository.get().size());\n assertTrue(m_artifactRepository.getResourceProcessors().isEmpty());\n\n // Create a JAR file which looks like a resource processor supplying bundle.\n temp = FileUtils.createEmptyBundle(\"org.apache.ace.test2\", new Version(1, 0, 0), \n BundleHelper.KEY_RESOURCE_PROCESSOR_PID, \"someProcessor\",\n BundleHelper.KEY_VERSION, \"1.0.0.processor\");\n\n m_artifactRepository.importArtifact(temp.toURI().toURL(), true);\n\n assertEquals(1, m_artifactRepository.get().size());\n assertEquals(1, m_artifactRepository.getResourceProcessors().size());\n }\n catch (Exception e) {\n printLog(m_logReader);\n throw e;\n }\n }", "@Override\r\n public void execute() throws MojoExecutionException, MojoFailureException {\n if(isPomPackagingProject()){\r\n return;\r\n }\r\n \r\n GlossaryMapCreator glossaryMapCreator = new GlossaryMapCreator();\r\n glossaryMapCreator.setBaseDir(getDitaSourceDir());\r\n glossaryMapCreator.setTargetGlossaryMap(new File(getDitaSourceGenDir(), replace(targetGlossaryMap)));\r\n glossaryMapCreator.setLanguage(language);\r\n glossaryMapCreator.setDitaMap(new File(replace(ditaMap)));\r\n \r\n try {\r\n glossaryMapCreator.create();\r\n } catch (DocumentException | IOException e) {\r\n throw new MojoExecutionException(e.getMessage(), e);\r\n }\r\n }", "private static Path copyFileFromJar(String path) {\n try {\n Path file = Files.createTempFile(\"configme-\", \"-democonfig.yml\");\n Files.copy(TestUtils.class.getResourceAsStream(path), file, REPLACE_EXISTING);\n return file;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }", "public RepositoryArtifact createProject(RepositoryConnector connector, String rootFolderId, String projectName, String processDefinitionXml) {\r\n RepositoryArtifact result = null;\r\n try {\r\n ZipInputStream projectTemplateInputStream = new ZipInputStream(getProjectTemplate());\r\n ZipEntry zipEntry = null;\r\n \r\n String rootSubstitution = null;\r\n \r\n while ((zipEntry = projectTemplateInputStream.getNextEntry()) != null) {\r\n String zipName = zipEntry.getName();\r\n if (zipName.endsWith(\"/\")) {\r\n zipName = zipName.substring(0, zipName.length() - 1);\r\n }\r\n String path = \"\";\r\n String name = zipName;\r\n if (zipName.contains(\"/\")) {\r\n path = zipName.substring(0, zipName.lastIndexOf(\"/\"));\r\n name = zipName.substring(zipName.lastIndexOf(\"/\") + 1);\r\n }\r\n if (\"\".equals(path)) {\r\n // root folder is named after the project, not like the\r\n // template\r\n // folder name\r\n rootSubstitution = name;\r\n name = projectName;\r\n } else {\r\n // rename the root folder in all other paths as well\r\n path = path.replace(rootSubstitution, projectName);\r\n }\r\n String absolutePath = rootFolderId + \"/\" + path;\r\n boolean isBpmnModel = false;\r\n if (zipEntry.isDirectory()) {\r\n connector.createFolder(absolutePath, name);\r\n } else {\r\n Content content = new Content();\r\n \r\n if (\"template.bpmn20.xml\".equals(name)) {\r\n // This file shall be replaced with the process\r\n // definition\r\n content.setValue(processDefinitionXml);\r\n name = projectName + \".bpmn20.xml\";\r\n isBpmnModel = true;\r\n log.log(Level.INFO, \"Create processdefinition from Signavio process model \" + projectName);\r\n } else {\r\n byte[] bytes = IoUtil.readInputStream(projectTemplateInputStream, \"ZIP entry '\" + zipName + \"'\");\r\n String txtContent = new String(bytes).replaceAll(REPLACE_STRING, projectName).replaceAll(\"@@ACTIVITI.HOME@@\", ACTIVITI_HOME_PATH);\r\n content.setValue(txtContent);\r\n }\r\n log.log(Level.INFO, \"Create new artifact from zip entry '\" + zipEntry.getName() + \"' in folder '\" + absolutePath + \"' with name '\" + name + \"'\");\r\n RepositoryArtifact artifact = connector.createArtifact(absolutePath, name, null, content);\r\n if (isBpmnModel) {\r\n result = artifact;\r\n }\r\n }\r\n projectTemplateInputStream.closeEntry();\r\n }\r\n projectTemplateInputStream.close();\r\n } catch (IOException ex) {\r\n throw new RepositoryException(\"Couldn't create maven project due to IO errors\", ex);\r\n }\r\n return result;\r\n }", "@Override\r\n public void executeAction() throws Exception {\r\n\r\n BufferedImage originalImage;\r\n\r\n\r\n if (getAssetVersionId() <= 0) {\r\n throw new IllegalArgumentException(\"The asset version id is not positive\");\r\n }\r\n\r\n AssetVersion assetVersion = getAssetVersionService().getAssetVersion(getAssetVersionId());\r\n\r\n if (assetVersion == null) {\r\n throw new IllegalArgumentException(\"The specific asset version does not exist\");\r\n }\r\n\r\n // now we need to check if user has access to the asset the asset version belong to\r\n Asset assetToCheck = getAssetService().getAsset(assetVersion.getAssetId());\r\n checkIfAssetDownloadAllowed(assetToCheck, DirectUtils.getTCSubjectFromSession());\r\n\r\n File imageFile = null;\r\n\r\n if (isPreview()) {\r\n imagePath = assetVersion.getPreviewImagePath();\r\n } else {\r\n imagePath = assetVersion.getFilePath();\r\n }\r\n\r\n imageFile = new File(imagePath);\r\n\r\n originalImage = ImageIO.read(imageFile);\r\n\r\n // convert BufferedImage to byte array\r\n\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\r\n ImageIO.write(originalImage, FilenameUtils.getExtension(imagePath).toLowerCase(), baos);\r\n\r\n baos.flush();\r\n imageInByte = baos.toByteArray();\r\n baos.close();\r\n }", "java.lang.String getArtifactStorage();", "public void archive(MavenBuildProxy build, File file, BuildListener listener) throws IOException, InterruptedException {\n if (build.isArchivingDisabled()) {\n listener.getLogger().println(\"[JENKINS] Archiving disabled - not archiving \" + file);\n }\n else {\n FilePath target = getArtifactArchivePath(build,groupId,artifactId,version);\n FilePath origin = new FilePath(file);\n if (!target.exists()) {\n listener.getLogger().println(\"[JENKINS] Archiving \"+ file+\" to \"+target);\n origin.copyTo(target);\n } else if (!origin.digest().equals(target.digest())) {\n listener.getLogger().println(\"[JENKINS] Re-archiving \"+file);\n origin.copyTo(target);\n } else {\n LOGGER.fine(\"Not actually archiving \"+origin+\" due to digest match\");\n }\n\n /* debug probe to investigate \"missing artifact\" problem typically seen like this:\n\n ERROR: Asynchronous execution failure\n java.util.concurrent.ExecutionException: java.io.IOException: Archived artifact is missing: /files/hudson/server/jobs/glassfish-v3/modules/org.glassfish.build$maven-glassfish-extension/builds/2008-04-02_10-17-15/archive/org.glassfish.build/maven-glassfish-extension/1.0-SNAPSHOT/maven-glassfish-extension-1.0-SNAPSHOT.jar\n at hudson.remoting.Channel$1.adapt(Channel.java:423)\n at hudson.remoting.Channel$1.adapt(Channel.java:418)\n at hudson.remoting.FutureAdapter.get(FutureAdapter.java:32)\n at hudson.maven.MavenBuilder.call(MavenBuilder.java:140)\n at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:476)\n at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:422)\n at hudson.remoting.UserRequest.perform(UserRequest.java:69)\n at hudson.remoting.UserRequest.perform(UserRequest.java:23)\n at hudson.remoting.Request$2.run(Request.java:200)\n at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)\n at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)\n at java.util.concurrent.FutureTask.run(FutureTask.java:123)\n at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)\n at java.lang.Thread.run(Thread.java:595)\n Caused by: java.io.IOException: Archived artifact is missing: /files/hudson/server/jobs/glassfish-v3/modules/org.glassfish.build$maven-glassfish-extension/builds/2008-04-02_10-17-15/archive/org.glassfish.build/maven-glassfish-extension/1.0-SNAPSHOT/maven-glassfish-extension-1.0-SNAPSHOT.jar\n at hudson.maven.reporters.MavenArtifact.getFile(MavenArtifact.java:147)\n at hudson.maven.reporters.MavenArtifact.toArtifact(MavenArtifact.java:126)\n at hudson.maven.reporters.MavenArtifactRecord.install(MavenArtifactRecord.java:115)\n at hudson.maven.reporters.MavenArtifactArchiver$1.call(MavenArtifactArchiver.java:81)\n at hudson.maven.reporters.MavenArtifactArchiver$1.call(MavenArtifactArchiver.java:71)\n at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:255)\n at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:177)\n at hudson.remoting.UserRequest.perform(UserRequest.java:69)\n at hudson.remoting.UserRequest.perform(UserRequest.java:23)\n at hudson.remoting.Request$2.run(Request.java:200)\n at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)\n at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)\n at java.util.concurrent.FutureTask.run(FutureTask.java:138)\n at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)\n at java.lang.Thread.run(Thread.java:619)\n */\n\n if(!target.exists())\n throw new AssertionError(\"Just copied \"+file+\" to \"+target+\" but now I can't find it\");\n }\n }", "public static synchronized void initializeArchiveFiles() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initializeArchiveFiles\");\n File sourceFile = new File(System.getProperty(USER_DIR) + File.separator + \"QVCSEnterpriseServer.kbwb\");\n String firstDestinationDirName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n File firstDestinationDirectory = new File(firstDestinationDirName);\n firstDestinationDirectory.mkdirs();\n File firstDestinationFile = new File(firstDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String secondDestinationDirName = firstDestinationDirName + File.separator + SUBPROJECT_DIR_NAME;\n File secondDestinationDirectory = new File(secondDestinationDirName);\n secondDestinationDirectory.mkdirs();\n File secondDestinationFile = new File(secondDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String thirdDestinationDirName = secondDestinationDirName + File.separator + SUBPROJECT2_DIR_NAME;\n File thirdDestinationDirectory = new File(thirdDestinationDirName);\n thirdDestinationDirectory.mkdirs();\n File thirdDestinationFile = new File(thirdDestinationDirName + File.separator + \"ThirdDirectoryFile.kbwb\");\n\n File fourthDestinationFile = new File(firstDestinationDirName + File.separator + \"Server.kbwb\");\n File fifthDestinationFile = new File(firstDestinationDirName + File.separator + \"AnotherServer.kbwb\");\n File sixthDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerB.kbwb\");\n File seventhDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerC.kbwb\");\n try {\n ServerUtility.copyFile(sourceFile, firstDestinationFile);\n ServerUtility.copyFile(sourceFile, secondDestinationFile);\n ServerUtility.copyFile(sourceFile, thirdDestinationFile);\n ServerUtility.copyFile(sourceFile, fourthDestinationFile);\n ServerUtility.copyFile(sourceFile, fifthDestinationFile);\n ServerUtility.copyFile(sourceFile, sixthDestinationFile);\n ServerUtility.copyFile(sourceFile, seventhDestinationFile);\n } catch (IOException ex) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "VcsRepositoryUrl copyRepository(String sourceProjectKey, String sourceRepositoryName, String targetProjectKey, String targetRepositoryName) throws VersionControlException;", "public void takeScreenShot() {\n\t\t destDir = \"screenshots\";\n\t\t // Capture screenshot.\n\t\t File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\t // Set date format to set It as screenshot file name.\n\t\t dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy__hh_mm_ssaa\");\n\t\t // Create folder under project with name \"screenshots\" provided to destDir.\n\t\t new File(destDir).mkdirs();\n\t\t // Set file name using current date time.\n\t\t String destFile = dateFormat.format(new Date()) + \".png\";\n\n\t\t try {\n\t\t // Copy paste file at destination folder location\n\t\t FileUtils.copyFile(scrFile, new File(destDir + \"/\" + destFile));\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\n}", "@Test\n public void addUpdateDeleteDeploymentArtifactToVfTestApi() throws Exception {\n ResourceReqDetails vfMetaData = createVFviaAPI();\n\n //Go to Catalog and find the created VF\n CatalogUIUtilitis.clickTopMenuButton(TopMenuButtonsEnum.CATALOG);\n GeneralUIUtils.findComponentAndClick(vfMetaData.getName());\n\n ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();\n\n List<ArtifactInfo> deploymentArtifactList = new ArrayList<ArtifactInfo>();\n deploymentArtifactList.add(new ArtifactInfo(filePath, \"asc_heat 0 2.yaml\", \"kuku\", \"artifact1\", \"OTHER\"));\n deploymentArtifactList.add(new ArtifactInfo(filePath, \"sample-xml-alldata-1-1.xml\", \"cuku\", \"artifact2\", \"YANG_XML\"));\n for (ArtifactInfo deploymentArtifact : deploymentArtifactList) {\n DeploymentArtifactPage.clickAddNewArtifact();\n ArtifactUIUtils.fillAndAddNewArtifactParameters(deploymentArtifact);\n }\n AssertJUnit.assertTrue(\"artifact table does not contain artifacts uploaded\", DeploymentArtifactPage.checkElementsCountInTable(deploymentArtifactList.size()));\n\n String newDescription = \"new description\";\n DeploymentArtifactPage.clickEditArtifact(deploymentArtifactList.get(0).getArtifactLabel());\n DeploymentArtifactPage.artifactPopup().insertDescription(newDescription);\n DeploymentArtifactPage.artifactPopup().clickDoneButton();\n String actualArtifactDescription = DeploymentArtifactPage.getArtifactDescription(deploymentArtifactList.get(0).getArtifactLabel());\n AssertJUnit.assertTrue(\"artifact description is not updated\", newDescription.equals(actualArtifactDescription));\n\n DeploymentArtifactPage.clickDeleteArtifact(deploymentArtifactList.get(0).getArtifactLabel());\n DeploymentArtifactPage.clickOK();\n AssertJUnit.assertTrue(\"artifact \" + deploymentArtifactList.get(0).getArtifactLabel() + \"is not deleted\", DeploymentArtifactPage.checkElementsCountInTable(deploymentArtifactList.size() - 1));\n\n AssertJUnit.assertTrue(\"artifact \" + deploymentArtifactList.get(1).getArtifactLabel() + \"is not displayed\", DeploymentArtifactPage.clickOnArtifactDescription(deploymentArtifactList.get(1).getArtifactLabel()).isDisplayed());\n }", "@Test\n public void testQuickCopy() {\n//TODO: Test goes here... \n }", "Permanent copyPermanent(Permanent copyFromPermanent, UUID copyToPermanentId, Ability source, CopyApplier applier);", "void copyFolder(OrionCMContext ctx, Long sourceId, Long targetFolderId, List<SolutionParam> solutions) throws PhoenixDataAccessException, IOException;", "CdapDeleteArtifact createCdapDeleteArtifact();", "Path getArtifact(String identifier);", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tcopy(new RandomAccessFile(\"copyfrom.jpg\", \"r\"), new RandomAccessFile(\"copyto.jpg\",\"rw\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static URL createTempJar(Artifact artifact, Contribution contribution) throws IOException {\n FileOutputStream fileOutputStream = null;\n ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(new File(URI.create(contribution.getLocation()))));\n try {\n ZipEntry zipEntry = zipInputStream.getNextEntry();\n while (zipEntry != null) {\n if (artifact.getLocation().endsWith(zipEntry.getName())) {\n\n String tempName = (\"tmp.\" + artifact.getURI().substring(0, artifact.getURI().length() - 3)).replace('/', '.');\n File tempFile = File.createTempFile(tempName, \".jar\");\n tempFile.deleteOnExit();\n fileOutputStream = new FileOutputStream(tempFile);\n\n byte[] buf = new byte[2048];\n int n;\n while ((n = zipInputStream.read(buf, 0, buf.length)) > -1) {\n fileOutputStream.write(buf, 0, n);\n }\n\n fileOutputStream.close();\n zipInputStream.closeEntry();\n\n return tempFile.toURI().toURL();\n\n }\n zipEntry = zipInputStream.getNextEntry();\n }\n } finally {\n zipInputStream.close();\n if (fileOutputStream != null) {\n fileOutputStream.close();\n }\n }\n \n throw new IllegalStateException();\n }", "@Override\n public void crowdInMojoExecute() throws MojoExecutionException, MojoFailureException {\n if (!isAllPropertyFilesExisted() && !isForce()) {\n getLog().info(\"\\n\\n\\n\");\n getLog().info(\"----------------------------------------------------------------------------------------\\n\\n\" + \"There are nonexistent properties files! Check again and update properties configuration files or run following command to \" + \"continue:\\n mvn clean install -Psync -Dforce=true \\n\" + \"Warning: All Crowdin files corresponding to nonexistent properties files will be deleted after execute above command.\\n\");\n getLog().info(\"----------------------------------------------------------------------------------------\\n\\n\\n\");\n return;\n }\n // Iterate on each project defined in crowdin.properties\n for (String proj : getProperties().keySet()) {\n getLog().info(\"Starting project \" + proj);\n // Get the Properties of the current project, i.e. the content of\n // cs-2.2.x.properties\n Properties currentProj = getProperties().get(proj);\n String baseDir = currentProj.getProperty(\"baseDir\");\n Set<Object> files = currentProj.keySet();\n // Iterate on each file of the current project\n for (Object file : files) {\n // Skip the property baseDir\n if (file.equals(\"baseDir\"))\n continue;\n // Construct the full path to the file\n String filePath = getWorkingDir() + File.separator + proj + File.separator + currentProj.getProperty(file.toString());\n CrowdinFile master = getFactory().prepareCrowdinFile(filePath, file.toString(), baseDir);\n updateFile(master);\n }\n getLog().info(\"Finished project \" + proj);\n }\n }", "@Override\n public InferredOWLOntologyID publishArtifact(final InferredOWLOntologyID ontologyIRI) throws PoddClientException\n {\n return null;\n }", "void copy(ImageMetadata toCopy);", "java.lang.String getArtifactId();", "private static void copyFile(File scrFile, File file) {\n\t\r\n}", "public void clickOnHardCopyButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnHardCopyButton.click();\n\n \t}", "@Test\n public void addUpdateDeleteInformationalArtifactApi() throws Exception {\n ResourceReqDetails vfMetaData = createVFviaAPI();\n\n //Go to Catalog and find the created VF\n CatalogUIUtilitis.clickTopMenuButton(TopMenuButtonsEnum.CATALOG);\n GeneralUIUtils.findComponentAndClick(vfMetaData.getName());\n\n ResourceGeneralPage.getLeftMenu().moveToInformationalArtifactScreen();\n\n ArtifactInfo informationalArtifact = new ArtifactInfo(filePath, \"asc_heat 0 2.yaml\", \"kuku\", \"artifact1\", \"OTHER\");\n InformationalArtifactPage.clickAddNewArtifact();\n ArtifactUIUtils.fillAndAddNewArtifactParameters(informationalArtifact);\n\n AssertJUnit.assertTrue(\"artifact table does not contain artifacts uploaded\", InformationalArtifactPage.checkElementsCountInTable(1));\n\n String newDescription = \"new description\";\n InformationalArtifactPage.clickEditArtifact(informationalArtifact.getArtifactLabel());\n InformationalArtifactPage.artifactPopup().insertDescription(newDescription);\n InformationalArtifactPage.artifactPopup().clickDoneButton();\n String actualArtifactDescription = InformationalArtifactPage.getArtifactDescription(informationalArtifact.getArtifactLabel());\n AssertJUnit.assertTrue(\"artifact description is not updated\", newDescription.equals(actualArtifactDescription));\n\n InformationalArtifactPage.clickDeleteArtifact(informationalArtifact.getArtifactLabel());\n InformationalArtifactPage.clickOK();\n AssertJUnit.assertTrue(\"artifact \" + informationalArtifact.getArtifactLabel() + \"is not deleted\", InformationalArtifactPage.checkElementsCountInTable(0));\n }", "private static boolean copy(JFrame parent, String sourcename, String destname) {\n File destfileobj = new File(destname);\n if (destfileobj.isFile() && destfileobj.length() > 0)\n return false;\n boolean result = true;\n InputStream in = null;\n FileOutputStream out = null;\n try {\n in = Util.class.getClassLoader().getResourceAsStream(sourcename);\n if (in == null)\n return false; // This means the file is not relevant for this\n // setup, so we don't pop up a fatal dialog\n out = new FileOutputStream(destname);\n byte[] b = new byte[16384];\n while (true) {\n int numRead = in.read(b);\n if (numRead < 0)\n break;\n if (numRead > 0)\n out.write(b, 0, numRead);\n }\n } catch (IOException e) {\n result = false;\n }\n if (!close(out))\n result = false;\n if (!close(in))\n result = false;\n if (!result)\n OurDialog.fatal(parent, \"Error occurred in creating the file \\\"\" + destname + \"\\\"\");\n return true;\n }", "public synchronized Promise<DeployedInstanceManager, Throwable, Double> deploy() {\n final DeployedInstanceManager self = this;\n JSch.setConfig(\"StrictHostKeyChecking\", \"no\");\n final DeferredManager deferred = new DefaultDeferredManager();\n\n return deferred.when(new DeferredCallable<DeployedInstanceManager, Double>() {\n @Override\n public DeployedInstanceManager call() throws IOException {\n notify(0.2);\n scpFileToTarget(coreJar);\n notify(0.5);\n scpFileToTarget(projectFile);\n notify(1.0);\n return self;\n }\n\n });\n }", "@Override\r\n public String getProjectPath() {\r\n \treturn String.format(\":%s\", getArtifactId());\r\n }", "protected Artifact getProjectArtifact(String projectName, Version dbVersion) {\n ProjectContext pCtx = new ProjectContext(projectName, new Version(\"1.1\"), dbVersion);\n pCtx.setAlterDir(new File(\"test/\" + projectName + \"/db/alter\"));\n pCtx.setBaseDir(new File(\"test/\" + projectName + \"/db/base\"));\n pCtx.setSeedDir(new File(\"test/\" + projectName + \"/db/seed\"));\n\n ArtifactService as = new ProjectArtifactService(pCtx);\n\n return as.getArtifact();\n }", "CdapDeployAppStep createCdapDeployAppStep();", "@Test(groups = \"Integration\")\n public void testCopyStreamTo() throws Exception {\n String contents = \"abc\";\n File dest = new File(Os.tmp(), \"sssMachineLocationTest_dest.tmp\");\n try {\n host.copyTo(Streams.newInputStreamWithContents(contents), dest.getAbsolutePath());\n assertEquals(\"abc\", Files.readFirstLine(dest, Charsets.UTF_8));\n } finally {\n dest.delete();\n }\n }", "public static void main(String[] args) throws Exception {\n String path = \"D:\\\\下载\\\\openjdk-8u41-src-b04-14_jan_2020.zip\";\n// ioCopy(path);\n nioCopyTest1(path);\n// nioCopyTest2(path);\n// nioCopy3(path);\n }", "private static void exportResource(String resourcePathName, File outFolder) throws Exception {\n InputStream stream = null;\n try {\n // note that each / is a directory down in the \"jar tree\" been the jar the root of the\n // tree\n stream = DeployManagementModuleFlow.class.getResourceAsStream(resourcePathName);\n if (stream == null) {\n throw new Exception(\"Cannot get resource \\\"\" + resourcePathName\n + \"\\\" from Jar file.\");\n }\n File outFile = new File(outFolder, new File(resourcePathName).getName());\n outFile.getParentFile().mkdirs();\n Files.copy(stream, outFile.toPath());\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n }", "private File getCurrentArtifact() {\n\t\treturn new File(target, jarName.concat(EXTENSION));\n\t}", "public interface MetadataGenerator\n{\n\n /**\n * Prepares the generator to transform artifacts.\n * \n * @param artifacts The artifacts to install/deploy, must not be {@code null}.\n * @return The metadata to process (e.g. merge with existing metadata) before artifact transformations, never\n * {@code null}.\n */\n Collection<? extends Metadata> prepare( Collection<? extends Artifact> artifacts );\n\n /**\n * Enables the metadata generator to transform the specified artifact.\n * \n * @param artifact The artifact to transform, must not be {@code null}.\n * @return The transformed artifact (or just the input artifact), never {@code null}.\n */\n Artifact transformArtifact( Artifact artifact );\n\n /**\n * Allows for metadata generation based on the transformed artifacts.\n * \n * @param artifacts The (transformed) artifacts to install/deploy, must not be {@code null}.\n * @return The additional metadata to process after artifact transformations, never {@code null}.\n */\n Collection<? extends Metadata> finish( Collection<? extends Artifact> artifacts );\n\n}", "@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }", "@Test\n public void testMultiTenant_CreateSameArtifact() throws Exception {\n tenantCtx.setContext(tenantId1);\n String artifactId = \"testMultiTenant_CreateSameArtifact\";\n ContentHandle content = ContentHandle.create(OPENAPI_CONTENT);\n ArtifactMetaDataDto dto = storage().createArtifact(GROUP_ID, artifactId, null, ArtifactType.OPENAPI, content, null);\n Assertions.assertNotNull(dto);\n Assertions.assertEquals(GROUP_ID, dto.getGroupId());\n Assertions.assertEquals(artifactId, dto.getId());\n Assertions.assertEquals(\"Empty API\", dto.getName());\n Assertions.assertEquals(\"An example API design using OpenAPI.\", dto.getDescription());\n Assertions.assertNull(dto.getLabels());\n Assertions.assertNull(dto.getProperties());\n Assertions.assertEquals(ArtifactState.ENABLED, dto.getState());\n Assertions.assertEquals(\"1\", dto.getVersion());\n\n // Switch to tenantId 2 and create the same artifact\n tenantCtx.setContext(tenantId2);\n content = ContentHandle.create(OPENAPI_CONTENT);\n dto = storage().createArtifact(GROUP_ID, artifactId, null, ArtifactType.OPENAPI, content, null);\n Assertions.assertNotNull(dto);\n Assertions.assertEquals(GROUP_ID, dto.getGroupId());\n Assertions.assertEquals(artifactId, dto.getId());\n Assertions.assertEquals(\"Empty API\", dto.getName());\n Assertions.assertEquals(\"An example API design using OpenAPI.\", dto.getDescription());\n Assertions.assertNull(dto.getLabels());\n Assertions.assertNull(dto.getProperties());\n Assertions.assertEquals(ArtifactState.ENABLED, dto.getState());\n Assertions.assertEquals(\"1\", dto.getVersion());\n }", "public String copyObject(\n ConnectionProperties connectionProperties,\n String repositoryId,\n String sourceLocation,\n String objectName,\n String publicType,\n String destinationLocation\n ) throws Exception {\n val treesDao = context.getBean(TreesDao.class, iomConnection);\n val srcTrees = treesDao.getTreesByPath(repositoryId, sourceLocation);\n val dstTrees = treesDao.getTreesByPath(repositoryId, destinationLocation);\n if (srcTrees.size() == 0) {\n throw new Exception(\"Source location is not found: \" + sourceLocation);\n }\n if (dstTrees.size() == 0) {\n throw new Exception(\"Destination location is not found: \" + destinationLocation);\n }\n val srcTree = srcTrees.get(0);\n val dstTree = dstTrees.get(0);\n \n // there is no sense to check read/write permissions as in delete/move cases\n // because copying process is inherently more complex so leave it to the copy tool\n\n List<String> cmd = new ArrayList<>();\n cmd.add(\"java\");\n\n cmd.add(\"-Xmx512M\");\n\n cmd.add(\"-Djava.system.class.loader=com.sas.app.AppClassLoader\");\n\n cmd.add(String.format(\n \"-Dsas.app.launch.picklist=%s\",\n Paths.get(sasHome, \"SASPlatformObjectFramework\", \"9.4\", \"platform.picklist\")\n ));\n\n cmd.add(String.format(\n \"-Dsas.app.repository.path=%s\",\n Paths.get(sasHome, \"SASVersionedJarRepository\", \"eclipse\")\n ));\n\n cmd.add(\"-cp\");\n cmd.add(Paths.get(sasHome, \"SASVersionedJarRepository\", \"eclipse\", \"plugins\", \"sas.launcher.jar\").toString());\n\n cmd.add(\"com.sas.metadata.promotion.BatchCopyObjects\");\n\n cmd.add(\"-nolog\");\n\n cmd.add(\"-host\");\n cmd.add(connectionProperties.getHost());\n\n cmd.add(\"-port\");\n cmd.add(\"\" + connectionProperties.getPort());\n\n cmd.add(\"-user\");\n cmd.add(connectionProperties.getUserName());\n\n cmd.add(\"-password\");\n cmd.add(connectionProperties.getPassword());\n\n cmd.add(\"-objects\");\n cmd.add(String.format(\n \"%s/%s(%s)\",\n sourceLocation, objectName, publicType\n ));\n\n cmd.add(\"-target\");\n cmd.add(destinationLocation);\n\n ProcessBuilder pb = new ProcessBuilder(cmd);\n\n Process p = pb.start();\n\n int code = p.waitFor();\n\n String stdout = readStream(p.getInputStream());\n String stderr = readStream(p.getErrorStream());\n\n if (code != 0 && code != 4) {\n throw new Exception(\"STDOUT: \" + stdout + \"\\nSTDERR: \" + stderr);\n }\n return stdout;\n }", "static void setNotAutoCopy(){isAutoCopying=false;}", "String getArtifactId();", "@Test\n public void testMultiTenant_CreateArtifact() throws Exception {\n tenantCtx.setContext(tenantId1);\n String artifactId = \"testMultiTenant_CreateArtifact\";\n ContentHandle content = ContentHandle.create(OPENAPI_CONTENT);\n ArtifactMetaDataDto dto = storage().createArtifact(GROUP_ID, artifactId, null, ArtifactType.OPENAPI, content, null);\n Assertions.assertNotNull(dto);\n Assertions.assertEquals(GROUP_ID, dto.getGroupId());\n Assertions.assertEquals(artifactId, dto.getId());\n Assertions.assertEquals(\"Empty API\", dto.getName());\n Assertions.assertEquals(\"An example API design using OpenAPI.\", dto.getDescription());\n Assertions.assertNull(dto.getLabels());\n Assertions.assertNull(dto.getProperties());\n Assertions.assertEquals(ArtifactState.ENABLED, dto.getState());\n Assertions.assertEquals(\"1\", dto.getVersion());\n\n StoredArtifactDto storedArtifact = storage().getArtifact(GROUP_ID, artifactId);\n Assertions.assertNotNull(storedArtifact);\n Assertions.assertEquals(OPENAPI_CONTENT, storedArtifact.getContent().content());\n Assertions.assertEquals(dto.getGlobalId(), storedArtifact.getGlobalId());\n Assertions.assertEquals(dto.getVersion(), storedArtifact.getVersion());\n\n ArtifactMetaDataDto amdDto = storage().getArtifactMetaData(GROUP_ID, artifactId);\n Assertions.assertNotNull(amdDto);\n Assertions.assertEquals(dto.getGlobalId(), amdDto.getGlobalId());\n Assertions.assertEquals(\"Empty API\", amdDto.getName());\n Assertions.assertEquals(\"An example API design using OpenAPI.\", amdDto.getDescription());\n Assertions.assertEquals(ArtifactState.ENABLED, amdDto.getState());\n Assertions.assertEquals(\"1\", amdDto.getVersion());\n Assertions.assertNull(amdDto.getLabels());\n Assertions.assertNull(amdDto.getProperties());\n\n // Switch to tenantId 2 and make sure the GET operations no longer work\n tenantCtx.setContext(tenantId2);\n try {\n storage().getArtifact(GROUP_ID, artifactId);\n Assertions.fail(\"Expected 404 not found for TENANT-2\");\n } catch (ArtifactNotFoundException e) {\n // correct response\n }\n }", "private void copyDomainConfig(String fileName) {\n File source = new File(\n \"resources\" + File.separator +\n \"configs\" + File.separator +\n fileName);\n File target = getDASDomainXML();\n\n // we really want to catch this right away\n if (! source.exists()) {\n throw new RuntimeException(String.format(\n \"File %s does not exist to copy to config dir\",\n source.getAbsolutePath()));\n }\n\n FileInputStream from = null;\n FileOutputStream to = null;\n try {\n from = new FileInputStream(source);\n to = new FileOutputStream(target);\n byte[] buffer = new byte[1024];\n int bytesRead;\n while ((bytesRead = from.read(buffer)) != -1) {\n to.write(buffer, 0, bytesRead); // write\n }\n } catch (IOException ex) {\n report(\"file-copy\", false);\n ex.printStackTrace();\n return;\n } finally {\n try {\n from.close();\n to.close();\n } catch (Exception e) {\n /* Could be IOException or NPE if there was an error\n * above. Either way, let someone know about it....\n */\n System.err.println(\"Some problem closing file streams:\");\n e.printStackTrace();\n }\n }\n }", "private List<String> copyResources(File targetDirectory, List<FileSet> fileSets) throws MojoExecutionException {\n ArrayList<String> addedFiles = new ArrayList<String>();\n for (FileSet fileSet : fileSets) {\n // Get the absolute base directory for the FileSet\n File sourceDirectory = new File(fileSet.getDirectory());\n\n if (!sourceDirectory.isAbsolute()) {\n sourceDirectory = new File(project.getBasedir(), sourceDirectory.getPath());\n }\n\n if (!sourceDirectory.exists()) {\n // If the requested directory does not exist, log it and carry on\n getLog().warn(\"Specified source directory \" + sourceDirectory.getPath() + \" does not exist.\");\n continue;\n }\n\n List<String> includedFiles = scanFileSet(sourceDirectory, fileSet);\n addedFiles.addAll(includedFiles);\n\n getLog().info(\"Copying \" + includedFiles.size() + \" additional resource\" + (includedFiles.size() > 1 ? \"s\" : \"\"));\n\n for (String destination : includedFiles) {\n File source = new File(sourceDirectory, destination);\n File destinationFile = new File(targetDirectory, destination);\n\n // Make sure that the directory we are copying into exists\n destinationFile.getParentFile().mkdirs();\n\n try {\n FileUtils.copyFile(source, destinationFile);\n destinationFile.setExecutable(fileSet.isExecutable(),false);\n\n } catch (IOException e) {\n throw new MojoExecutionException(\"Error copying additional resource \" + source, e);\n }\n }\n }\n return addedFiles;\n }", "public void createPhysicalCopy(String baseVolumeName, String cloneName, String cloneCPG) throws Exception {\n\t\t_log.info(\"3PARDriver: createPhysicalCopy enter\");\n\n String baseVolumeSnapCPG = cloneCPG;\n String baseVolumeUserCPG = cloneCPG;\n \n\t\tClientResponse clientResp = null;\n\t\tString payload = null;\n\t\tString secondPayload = null;\n\n\t\t// clone creation, check if destination volume exists as expected by this API\n\t\tpayload = \"{\\\"action\\\":\\\"createPhysicalCopy\\\", \\\"parameters\\\": { \\\"destVolume\\\": \\\"\" + cloneName\n\t\t\t\t+ \"\\\" , \\\"saveSnapshot\\\": \" + true + \"} }\";\n\t\t\n\t\tfinal String path = MessageFormat.format(URI_CREATE_VOLUME_CLONE, baseVolumeName);\n\n\t\t_log.info(\" 3PARDriver: createPhysicalCopy uri = {} payload {} secondPayload {}\", path, payload, secondPayload);\n\n\t\ttry {\n\t\t\t// create clone considering destination volume already created\n\n\t\t\tclientResp = post(path, payload);\n\n\t\t\tif (clientResp == null || clientResp.getStatus() != 201) {\n\t\t\t\tif (clientResp != null) {\n\t\t\t\tString errResp = getResponseDetails(clientResp);\n\t\t\t\t_log.info(\" 3PARDriver: createPhysicalCopy destination clone volume absent, hence creating new volume for clone. Error Info : {}\",errResp);\n\t\t\t\t}\n\n\t\t\t\tVolumeDetailsCommandResult volResult = null;\n \n try {\n volResult = getVolumeDetails(baseVolumeName);\n } catch (Exception e) {\n \t_log.info(\"3PARDriver: createVolumeClone the specified volume {} for clone creation not found, its parent {}; continue with clone creation: {}.\\n\",\n baseVolumeName, cloneName, e.getMessage());\n }\n \n if (volResult != null) {\n \t// UserCPG will be absent for clones, hence using snapCPG here. We might need to re-look CPG selection later\n \tbaseVolumeUserCPG = volResult.getUserCPG();\n \tbaseVolumeSnapCPG = volResult.getSnapCPG();\n \tBoolean tpvv = true;\n Boolean tdvv = false;\n\n \tif (volResult.getProvisioningType() == 6) {\n \t\ttdvv = true;\n \t\ttpvv = false;\n \t}\n \t\n \t_log.info(\"3PARDriver: createVolumeClone base volume exists, id {}, baseVolumeSnapCPG {} , baseVolumeUserCPG {} , copyOf {}, copyType {} , name {}, volume type {} - \",\n \t\t\tbaseVolumeName, baseVolumeSnapCPG, baseVolumeUserCPG,volResult.getCopyOf(), volResult.getCopyType(), volResult.getName(), volResult.getProvisioningType());\n \n createVolume(cloneName, baseVolumeSnapCPG, tpvv, tdvv, volResult.getSizeMiB());\n // sleep for some milliseconds required ?\n \n try {\n volResult = getVolumeDetails(baseVolumeName);\n } catch (Exception e) {\n \t_log.info(\"3PARDriver: createVolumeClone the specified clone volume {} not created successfully yet. error {}\",\n \t\t\tcloneName, e.getMessage());\n }\n \t\n\t\t\t\tif (volResult != null) {\n\t\t\t\t\tclientResp = post(path, payload);\n\t\t\t\t} else {\n \t_log.info(\"3PARDriver: createVolumeClone unable to find the newly created volume, volResult is null\");\n }\n } else {\n \t_log.info(\"3PARDriver: createVolumeClone base volume not found, volResult is null\");\n }\n\t\t\t}\n\n\t\t\tif (clientResp == null) {\n\t\t\t\t_log.error(\"3PARDriver:There is no response from 3PAR\");\n\t\t\t\tthrow new HP3PARException(\"There is no response from 3PAR\");\n\t\t\t} else if (clientResp.getStatus() != 201) {\n\t\t\t\tString errResp = getResponseDetails(clientResp);\n\t\t\t\t_log.info(\"3PARDriver: createPhysicalCopy error resopnse : {} \", errResp);\n\t\t\t\tthrow new HP3PARException(errResp);\n\t\t\t} else {\n\t\t\t\t_log.info(\"3PARDriver: createPhysicalCopy success\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif (clientResp != null) {\n\t\t\t\tclientResp.close();\n\t\t\t}\n\t\t\t_log.info(\"3PARDriver: createPhysicalCopy leave\");\n\t\t} // end try/catch/finally\n\t}", "@Test\n public void testArtifactCache() throws Exception {\n addPeers(ImmutableList.of(\"peer1\", \"peer2\"));\n // Get artifact from first peer\n File peer1ArtifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer1\", remoteClient);\n // Get the artifact again. The same path was returned\n Assert.assertEquals(peer1ArtifactPath, cache.getArtifact(artifactId.toEntityId(), \"peer1\", remoteClient));\n\n // Get artifact from another peer. It should be cached in a different path\n File peer2ArtifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer2\", remoteClient);\n Assert.assertNotEquals(peer1ArtifactPath, peer2ArtifactPath);\n\n // Delete and recreate the artifact to update the last modified date\n artifactRepository.deleteArtifact(artifactId);\n // This sleep is needed to delay the file copy so that the lastModified time on the file is different\n Thread.sleep(1000);\n artifactRepository.addArtifact(artifactId, appJarFile);\n // Artifact should be cached in a different path\n File newPeer1ArtifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer1\", remoteClient);\n Assert.assertNotEquals(peer1ArtifactPath, newPeer1ArtifactPath);\n\n // Run the artifact cleaner\n ArtifactLocalizerCleaner cleaner = new ArtifactLocalizerCleaner(Paths.get(cacheDir).resolve(\"peers\"), 1);\n cleaner.run();\n // Older artifact should been deleted\n Assert.assertFalse(peer1ArtifactPath.exists());\n // Latest artifact should still be cached\n Assert.assertTrue(newPeer1ArtifactPath.exists());\n }", "private void copyComponents(IProgressMonitor monitor, File tmpWarDir, final File targetLibDir) throws ExportException\n\t{\n\t\ttry\n\t\t{\n\t\t\tComponentResourcesExporter.copyDefaultComponentsAndServices(tmpWarDir, exportModel.getExcludedComponentPackages(),\n\t\t\t\texportModel.getExcludedServicePackages());\n\n\t\t\tStringBuilder componentLocations = new StringBuilder();\n\t\t\tcomponentLocations.append(ComponentResourcesExporter.getComponentDirectoryNames(exportModel.getExcludedComponentPackages()));\n\t\t\tcomponentLocations.append(copyUserDefinedComponents(tmpWarDir, exportModel.getExcludedComponentPackages(), monitor));\n\t\t\tcreateSpecLocationsPropertiesFile(new File(tmpWarDir, \"WEB-INF/components.properties\"), componentLocations.toString());\n\n\t\t\tStringBuilder servicesLocations = new StringBuilder();\n\t\t\tservicesLocations.append(ComponentResourcesExporter.getServicesDirectoryNames(exportModel.getExcludedServicePackages()));\n\t\t\tservicesLocations.append(copyUserDefinedServices(tmpWarDir, exportModel.getExcludedServicePackages(), monitor));\n\t\t\tcreateSpecLocationsPropertiesFile(new File(tmpWarDir, \"WEB-INF/services.properties\"), servicesLocations.toString());\n\t\t\tcopyNGLibs(targetLibDir);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tthrow new ExportException(\"Could not copy the components\", e);\n\t\t}\n\t}", "protected void copyJavadocsToWebsite() {\n\n try {\n\n File javadocSourceDir = getJavadocSourceGenerationDir();\n if (!javadocSourceDir.isDirectory()) {\n sendException(\"The Javadoc source directory was not found: \" +\n javadocSourceDir.getCanonicalPath());\n }\n\n //==========================================\n // Copies the Javadoc to the build output dir, so it\n // is included in the final website's .jar\n //==========================================\n File javadocTargetDir = new File(getProjectBuildOutputDir().getCanonicalPath() + \"/public/javadoc\");\n FileUtils.deleteDirectory(javadocTargetDir);\n\n FileUtils.copyDirectory(javadocSourceDir, javadocTargetDir);\n log(\"Javadoc copied to the build output dir: \" + javadocTargetDir.getAbsolutePath());\n\n //==========================================\n // We also copy the Javadoc to the source directory of\n // the website, so it is available if we launch the\n // website from an IDE.\n // This source directory is ignored in Git.\n //==========================================\n javadocTargetDir = new File(getProjectBaseDir().getCanonicalPath() + \"/src/main/resources/public/javadoc\");\n FileUtils.deleteDirectory(javadocTargetDir);\n\n FileUtils.copyDirectory(javadocSourceDir, javadocTargetDir);\n log(\"Javadoc copied to the website source dir: \" + javadocTargetDir.getAbsolutePath());\n\n } catch (Exception ex) {\n throw SpincastStatics.runtimize(ex);\n }\n }", "protected void copyJsLibraryFile(String jsLib) throws MojoExecutionException {\n try {\n outputKotlinJSDir.mkdirs();\n final InputStream inputStream = MetaInfServices.loadClasspathResource(jsLib);\n if (inputStream == null) {\n System.out.println(\"WARNING: Could not find \" + jsLib + \" on the classpath!\");\n } else {\n InputSupplier<InputStream> inputSupplier = new InputSupplier<InputStream>() {\n @Override\n public InputStream getInput() throws IOException {\n return inputStream;\n }\n };\n Files.copy(inputSupplier, new File(outputKotlinJSDir, jsLib));\n }\n } catch (IOException e) {\n throw new MojoExecutionException(e.getMessage(), e);\n }\n }", "protected void installAssets(WorkUnit workUnit) throws IOException, InterruptedException {\n\t\tlogger.log(Level.INFO, \"Checking for asset downloads...\");\n\n\t\tFile assetsDir = instance.getAssetsDir();\n\t\tString marker = \"\";\n\n\t\twhile (marker != null) {\n\t\t\tURL bucketUrl = getAssetsUrl(marker);\n\t\t\tworkUnit.push(0, _(\"minecraftUpdate.checkingAssets\", bucketUrl.toString()));\n\t\t\tlogger.log(Level.INFO, \"Enumerating assets from {0}...\", bucketUrl);\n\t\t\tcheckInterrupted();\n\n\t\t\t// Obtain the assets manifest\n\t\t\tAWSBucket bucket = HttpRequest\n\t\t\t\t\t.get(bucketUrl)\n\t\t\t\t\t.execute()\n\t\t\t\t\t.returnContent()\n\t\t\t\t\t.asXml(AWSBucket.class);\n\n\t\t\t// Install all the missing assets\n\t\t\tfor (AWSBucket.Item item : bucket.getContents()) {\n\t\t\t\tString key = item.getKey();\n\t\t\t\tString hash = item.getEtag();\n\n\t\t\t\tif (item.isDirectory()) {\n\t\t\t\t\tcontinue; // skip directories\n\t\t\t\t}\n\n\t\t\t\tURL url = item.getUrl(getAssetsUrl());\n\t\t\t\tFile file = new File(assetsDir, key);\n\n\t\t\t\tif (!file.exists() || !getFileETag(file).equals(hash)) {\n\t\t\t\t\tlogger.log(Level.INFO, \"Need to get {0}\", key);\n\t\t\t\t\tString id = hash + file.toString();\n\t\t\t\t\tinstaller.copyTo(new HttpResource(url).withId(id), file);\n\t\t\t\t}\n\n\t\t\t\tmarker = item.getKey();\n\t\t\t}\n\n\t\t\t// If the last bucket list is not truncated, then we're done\n\t\t\tif (!bucket.isTruncated()) {\n\t\t\t\tmarker = null;\n\t\t\t}\n\t\t}\n\t}", "public InvalidArtifactException(final String msg) {\r\n super(msg);\r\n }", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n try {\n\n DefaultArtifact artifact = new DefaultArtifact(\n getProject().getGroupId(),\n getProject().getArtifactId(),\n artifactHandlerManager\n .getArtifactHandler(getProject().getPackaging())\n .getExtension(),\n \"[0,)\");\n\n getLog().debug(\"Artifact for lookup released version: \" + artifact);\n VersionRangeRequest request =\n new VersionRangeRequest(artifact, getProject().getRemoteProjectRepositories(), null);\n\n VersionRangeResult versionRangeResult = repoSystem.resolveVersionRange(repoSession, request);\n\n getLog().debug(\"Resolved versions: \" + versionRangeResult.getVersions());\n\n DefaultArtifactVersion releasedVersion = versionRangeResult.getVersions().stream()\n .filter(v -> !ArtifactUtils.isSnapshot(v.toString()))\n .map(v -> new DefaultArtifactVersion(v.toString()))\n .max(DefaultArtifactVersion::compareTo)\n .orElse(null);\n\n getLog().debug(\"Released version: \" + releasedVersion);\n\n if (releasedVersion != null) {\n // Use ArtifactVersion.toString(), the major, minor and incrementalVersion return all an int.\n String releasedVersionValue = releasedVersion.toString();\n\n // This would not always reflect the expected version.\n int dashIndex = releasedVersionValue.indexOf('-');\n if (dashIndex >= 0) {\n releasedVersionValue = releasedVersionValue.substring(0, dashIndex);\n }\n\n defineVersionProperty(\"version\", releasedVersionValue);\n defineVersionProperty(\"majorVersion\", releasedVersion.getMajorVersion());\n defineVersionProperty(\"minorVersion\", releasedVersion.getMinorVersion());\n defineVersionProperty(\"incrementalVersion\", releasedVersion.getIncrementalVersion());\n defineVersionProperty(\"buildNumber\", releasedVersion.getBuildNumber());\n defineVersionProperty(\"qualifier\", releasedVersion.getQualifier());\n } else {\n getLog().debug(\"No released version found.\");\n }\n\n } catch (VersionRangeResolutionException e) {\n if (getLog().isWarnEnabled()) {\n getLog().warn(\"Failed to retrieve artifacts metadata, cannot resolve the released version\");\n }\n }\n }", "@Override\n public void stageForCache_destination_exists() throws Exception {\n assumeTrue( !isWindows() );\n super.stageForCache_destination_exists();\n }", "public String getScreenshot(WebDriver driver) {\nTakesScreenshot ts= (TakesScreenshot)driver;\n\n//This gives screenshot in the form of file\nFile source=ts.getScreenshotAs(OutputType.FILE);\n\n//RETURNS path in user directory in the screenshot folder which is stored in \"path\" in the form of string\nString path= System.getProperty(\"user.dir\")+\"/Screenshot/\"+System.currentTimeMillis()+\".png\";\n\n//The path is returned to vaiable destination\nFile destination=new File(path);\n\ntry {\nFileUtils.copyFile(source,destination );\n} catch (IOException e) {\n// TODO Auto-generated catch block\nSystem.out.println(\"Capture Failed\" + e.getMessage());\n}\nreturn path;\n}" ]
[ "0.658796", "0.6457684", "0.62696683", "0.617558", "0.60025144", "0.59148407", "0.5860555", "0.5825232", "0.5733565", "0.5727371", "0.57220894", "0.56224936", "0.5620781", "0.55807453", "0.5572841", "0.556974", "0.5568245", "0.5567604", "0.55652225", "0.5553587", "0.55113435", "0.5510101", "0.5509158", "0.5508268", "0.55016065", "0.5488103", "0.5472141", "0.54577154", "0.54506505", "0.54453105", "0.5419168", "0.5412649", "0.5404974", "0.53915477", "0.53594166", "0.5343383", "0.5342023", "0.53139263", "0.5298137", "0.52981186", "0.52818173", "0.5260744", "0.52606636", "0.5254299", "0.5207685", "0.5202383", "0.5197455", "0.51858807", "0.51797897", "0.5176062", "0.5159875", "0.51465446", "0.51447856", "0.51444155", "0.5132103", "0.51089644", "0.51068246", "0.51038843", "0.50948066", "0.50932556", "0.50905067", "0.5070889", "0.5047267", "0.5043198", "0.50312585", "0.5027081", "0.50217676", "0.5017254", "0.50144345", "0.5003394", "0.4999894", "0.49962494", "0.4990165", "0.49863237", "0.49705127", "0.4970466", "0.49679863", "0.4964759", "0.49636835", "0.49486092", "0.4942751", "0.4940968", "0.494048", "0.49383304", "0.49286187", "0.49270454", "0.491729", "0.49157915", "0.49031135", "0.48974454", "0.48964548", "0.4891357", "0.48799893", "0.48707962", "0.48679826", "0.48648575", "0.4861659", "0.48600695", "0.48595494", "0.48547134" ]
0.6107338
4
TODO Autogenerated method stub
public SalerCustomer getSalerCustomer(int uid) { return this.salerCustomerMapper.getSalerCustomer(uid); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void createSalerCustomer(SalerCustomer salerCustomer) { this.salerCustomerMapper.createSalerCustomer(salerCustomer); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void updateSalerCustomer(SalerCustomer salerCustomer) { this.salerCustomerMapper.updateSalerCustomer(salerCustomer); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void updateSalerCustomerByForbidden(int uid) { this.salerCustomerMapper.updateSalerCustomerByForbidden(uid); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void updateSalerCustomerByDel(int uid) { this.salerCustomerMapper.updateSalerCustomerByDel(uid); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void deleteSalerCustomer(int uid) { this.salerCustomerMapper.deleteSalerCustomer(uid); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Retrieves stored folder by locally unique identifier
public Folder get(long id) { return super.get(Folder.class, id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFolderId();", "IStorageService subFolder(String path);", "String folderPath();", "@Override\r\n public Folder getFolderById(long id) {\n Optional <Folder> optional = folderRepository.findById(id);\r\n Folder folder = null;\r\n \r\n if(optional.isPresent()){\r\n folder = optional.get(); \r\n }else{\r\n throw new RuntimeException(\"Folder not found\");\r\n }\r\n \r\n \r\n return folder;\r\n \r\n }", "public URI getLobFolder();", "public FileObject getWsDDFolder();", "public File getWorldFolder(String worldName);", "public URI getAbsoluteLobFolder();", "Path getFolder(Repository repository, @Nullable Path ownerPath, Object object);", "FileObject getBaseFolder();", "static File requestNewResourcesFolder(Context context){\n SharedPreferences sharedPreferences = context.getSharedPreferences(Values.PREFERENCES_NAME, Context.MODE_PRIVATE);\n File downloadPath = null;\n File[] folders = context.getExternalFilesDirs(null);\n if(hasWritableSd(context) && checkAvailableSpace(folders[1], 10)){\n downloadPath = folders[1];\n sharedPreferences.edit().putString(Values.DOWNLOAD_LOCATION, Values.LOCATION_EXTERNAL).apply();\n }\n else{\n if(checkAvailableSpace(folders[0], 10)){\n downloadPath = folders[0];\n sharedPreferences.edit().putString(Values.DOWNLOAD_LOCATION, Values.LOCATION_INTERNAL).apply();\n }\n }\n return downloadPath;\n }", "private String getDirectory(String timedObjectId) {\n String dirName = directories.get(timedObjectId);\n if (dirName == null) {\n dirName = baseDir.getAbsolutePath() + File.separator + timedObjectId.replace(File.separator, \"-\");\n File file = new File(dirName);\n if(!file.exists()) {\n if(!file.mkdirs()) {\n logger.error(\"Could not create directory \" + file + \" to persist EJB timers.\");\n }\n }\n directories.put(timedObjectId, dirName);\n }\n return dirName;\n }", "public Folder getFolder(Long id) {\n Validate.notNull(id, \"id cannot be null\");\n String path = StringUtils.replaceOnce(FOLDERS_ITEM_PATH, PLACEHOLDER, id.toString());\n return client.get(path, Folder.class).getEntry();\n }", "void downloadingFolder(String remoteFolder);", "void folderDownloaded(String remoteFolder);", "public String getFolderId() {\r\n return folderId;\r\n }", "public String getFolderId() {\n return folderId;\n }", "public static File getResourcesFolder(Context context){\n SharedPreferences sharedPreferences = context.getSharedPreferences(Values.PREFERENCES_NAME, Context.MODE_PRIVATE);\n File downloadPath = null;\n File[] folders = context.getExternalFilesDirs(null);\n switch (sharedPreferences.getString(Values.DOWNLOAD_LOCATION, Values.NOT_YET_DECIDED)) {\n case Values.LOCATION_INTERNAL:\n downloadPath = folders[0];\n break;\n case Values.LOCATION_EXTERNAL:\n if (hasWritableSd(context))\n downloadPath = folders[1];\n break;\n case Values.NOT_YET_DECIDED:\n //If it's the first time choosing one of the two possible storage locations, make the choice\n downloadPath = requestNewResourcesFolder(context);\n }\n return downloadPath;\n }", "public String getSyncedDatabaseFolder(\r\n\t\t\tObject sessionToken);", "Object getDir();", "private String downloadFolder(){\n\t\tFile home = new File(System.getProperty(\"user.home\"));\n\t\tFile folder = new File (home,\"Downloads/PaluDownloads\");\n\t\tif (!folder.exists()){\n\t\t\tfolder.mkdir();\n\t\t}\n\t\treturn folder.getAbsolutePath();\n\t}", "public List<Folder> getFolders (Long userId) throws BookMarkException;", "FileStore getFile(String fileRefId);", "NodeRef getCurrentFolderNodeRef(NodeRef parent, String folderName);", "public String getLocalRepositoryRootFolder() {\n\t\tString userFolder = IdatrixPropertyUtil.getProperty(\"idatrix.local.reposity.root\",getRepositoryRootFolder() );\n\t\tint index = userFolder.indexOf(\"://\");\n\t\tif(index > -1 ) {\n\t\t\tuserFolder = userFolder.substring(index+3);\n\t\t}\n\t\treturn userFolder;\n\t}", "public ArrayList<FeedFolder> findFolderByUserID(Integer uid);", "public File getStoreDir();", "@DISPID(1610743810) //= 0x60020002. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n uic.prominent.ScreenLogging.wsh.Folder folder();", "@java.lang.Override\n public java.lang.String getFolderId() {\n java.lang.Object ref = folderId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n folderId_ = s;\n return s;\n }\n }", "private IFolder getUnsortedFolder() {\n \t\tString unsortedFolder = (String) arguments.get(UNSORTED_FOLDER);\n \t\tif (unsortedFolder == null)\n \t\t\tunsortedFolder = DEFAULT_UNSORTED_FOLDER;\n \t\treturn getProject().getFolder(unsortedFolder);\n \t}", "private IFolder getSortedFolder() {\n \t\tString sortedFolder = (String) arguments.get(SORTED_FOLDER);\n \t\tif (sortedFolder == null)\n \t\t\tsortedFolder = DEFAULT_SORTED_FOLDER;\n \t\treturn getProject().getFolder(sortedFolder);\n \t}", "public String getFolder() {\n return myFolder;\n }", "public Path getPath(Integer id) throws ResourceNotFoundException;", "com.google.protobuf.ByteString\n getFolderIdBytes();", "void folderUploaded(String remoteFolder);", "private static String createAppSpecificLocalDir(String baseDir, String applicationIdString,\n String user, int dagIdentifier) {\n return baseDir + File.separator + \"usercache\" + File.separator + user + File.separator +\n \"appcache\" + File.separator + applicationIdString + File.separator + dagIdentifier;\n }", "public String createNewFolder(String token) throws IOException, GeneralSecurityException {\n String folderID = null;\n Drive service = getDriveService(token);\n File fileMetadata = new File();\n fileMetadata.setName(FOLDER_NAME);\n fileMetadata.setMimeType(\"application/vnd.google-apps.folder\");\n List<File> files = search(token, FOLDER_NAME);\n log.debug(\"files is empty? {}, {}\", files.size(), files.isEmpty());\n if (files.isEmpty()) {\n File file = service.files().create(fileMetadata).setFields(\"id\").execute();\n log.debug(\"Folder ID: \" + file.getId());\n folderID = file.getId();\n } else {\n boolean folderExists = false;\n for (File file : files) {\n if (file.getOwnedByMe() && !file.getTrashed()) {\n log.debug(\"Folder ID: {}, trashed {}, ownedbyme {}\", file.getId(), file.getTrashed(), file.getOwnedByMe());\n folderID = file.getId();\n folderExists = true;\n break;\n }\n }\n if (!folderExists) {\n File createdFile = service.files().create(fileMetadata).setFields(\"id\").execute();\n log.debug(\"Folder ID: \" + createdFile.getId());\n folderID = createdFile.getId();\n\n }\n }\n return folderID;\n }", "public java.lang.String getFolderId() {\n java.lang.Object ref = folderId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n folderId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "void folderCreated(String remoteFolder);", "String getDir();", "protected abstract String childFolderPath();", "private File getCacheDir(Context context, String uniqueName) {\n\t\tStringBuilder cachePath = new StringBuilder();\n\t\tif(Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED) || !Environment.isExternalStorageRemovable()){//API9\n\t\t\tcachePath.append(context.getExternalCacheDir().getPath());\n\t\t} else {\n\t\t\tcachePath.append(context.getCacheDir().getPath());\n\t\t}\n\t return new File(cachePath.toString() + File.separator + uniqueName);\n\t}", "public String getArchiveDDFolderName();", "public static Object getExternalStorageDirectory() {\n \n //User home directory\n String home = System.getProperty(\"user.home\");\n File dir = new File(home+\"/externalStorage/databases/\");\n FileObject myfolder = FileUtil.toFileObject(dir);\n dir.mkdir();\n /*if(myfolder == null){\n //Testing\n //displayMessage(\"Creating folder \"+dir.getPath());\n \n return null;\n }*/\n \n return dir.getAbsolutePath();\n \n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFolderIdBytes() {\n java.lang.Object ref = folderId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n folderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected abstract String getDirectory(URL url);", "public Long getFolder(String carpeta) {\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(JournalFolderImpl.class, \"folder\",\n\t\t\t\tPortalClassLoaderUtil.getClassLoader());\n\t\tLong folderId = null;\n\t\ttry {\n\t\t\tList<JournalFolder> folders = JournalFolderLocalServiceUtil.dynamicQuery(dynamicQuery);\n\t\t\tfor (JournalFolder folder : folders) {\n\t\t\t\tif (folder.getName().equalsIgnoreCase(carpeta)) {\n\t\t\t\t\tfolderId = folder.getFolderId();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn folderId;\n\t}", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "String getFolderName(Date date);", "DiscDirectoryInfo getRoot();", "private NodeRef getCaseFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.CABINET_FOLDER_NAME);\n pathElements.add(TradeMarkModel.CASE_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "com.google.apps.drive.activity.v2.DriveItem.DriveFolder getDriveFolder();", "public Path getDataDirectory();", "public String getFolder() {\r\n return folder;\r\n }", "String getDirectoryPath();", "public abstract String getConfigurationFolderKey();", "Folder createFolder();", "String getRootId();", "String getRootId();", "public static String getDownloadFolder(String folder){\r\n\t\t System.out.println(\"folder:\" + folder);\r\n\t\t if (folder.equals(\"ALL BANK\")){\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\ALL BANK\";\r\n\t\t } else if (folder.equals(\"BCA\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\BCA\";\r\n\t\t } else if (folder.equals(\"BNI\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\BNI\";\r\n\t\t } else if (folder.equals(\"BRI\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\BRI\";\r\n\t\t } else if (folder.equals(\"CIMB NIAGA\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\CIMBNIAGA\";\r\n\t\t } else if (folder.equals(\"MANDIRI\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\MANDIRI\";\r\n\t\t } else if (folder.equals(\"MAYBANK\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\MAYBANK\";\r\n\t\t } else if (folder.equals(\"PERMATA\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\PERMATA\";\r\n\t\t } else if (folder.equals(\"PRODUKSI\")) {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\PRODUKSI\";\r\n\t\t } else {\r\n\t\t\t return \"d:\\\\data\\\\Download\\\\MARKETING\\\\UOB\"; \r\n\t\t }\r\n\t }", "public String getDir();", "public File getWorldRegionFolder(String worldName);", "NodeRef getCurrentSearchTermsFolder(NodeRef searchTermsFolder);", "public File getFolderNameToSave() {\n\t\tFile destDir = ctxt.getExternalFilesDir(Tattle_Config_Constants.SD_FOLDER_NAME + File.separator);\n\t\tif (!destDir.exists()) {\n\t\t\tdestDir.mkdir();\n\t\t}\n\t\treturn destDir;\n\t}", "public long getFolderId() {\n\t\treturn folderId;\n\t}", "private NodeRef getCabinetFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.CABINET_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "private static Path localTemp(Configuration conf, int taskId, int attemptId) {\n String localDirs = conf.get(\"mapreduce.cluster.local.dir\");\n Random rand = new Random(Objects.hashCode(taskId, attemptId));\n String[] dirs = localDirs.split(\",\");\n String dir = dirs[rand.nextInt(dirs.length)];\n\n try {\n return FileSystem.getLocal(conf).makeQualified(new Path(dir));\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to localize path: \" + dir, e);\n }\n }", "public com.google.protobuf.ByteString\n getFolderIdBytes() {\n java.lang.Object ref = folderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n folderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getAppFolder(String file_name) {\n return Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Chitchato/\";\n }", "public Folder getRemote(String remoteFolderId, String remoteOwnerEmail) {\n CriteriaQuery<Folder> query = getBuilder().createQuery(Folder.class);\n Root<Folder> from = query.from(Folder.class);\n query.where(\n getBuilder().equal(from.get(\"type\"), FolderType.REMOTE),\n getBuilder().equal(from.get(\"description\"), remoteFolderId),\n getBuilder().equal(from.get(\"ownerEmail\"), remoteOwnerEmail)\n );\n return currentSession().createQuery(query).uniqueResult();\n }", "public File getFolder() {\n return folder;\n }", "public static String getMangaFolder(Context context) {\n if (Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED) {\n return context.getExternalFilesDir(null) + File.separator\n + Constants.INSTANCE.getMANGAFOLDER();\n } else {\n return context.getFilesDir() + File.separator\n + Constants.INSTANCE.getMANGAFOLDER();\n }\n }", "public DriveId getFolderID(File file, GoogleApiClient googleAPI) {\n\n DriveId id = null;\n\n File path = file.getParentFile();\n\n if (path == null) {\n\n id = getAppFolder(googleAPI).getDriveId();\n } else {\n\n id = getFolderID(path, googleAPI);\n\n if (id != null) {\n id = getFolderID(id, path.getName(), googleAPI);\n }\n }\n\n return id;\n }", "public FileObject getFolder() {\r\n return folder;\r\n }", "@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }", "public String getFolders()\r\n\t{\r\n\t\tIrUser user = userService.getUser(userId, false);\r\n\t\tif( !item.getOwner().equals(user) && !user.hasRole(IrRole.ADMIN_ROLE) && \r\n\t\t\t\t!institutionalCollectionPermissionHelper.isInstitutionalCollectionAdmin(user, genericItemId))\r\n\t\t{\r\n\t\t return \"accessDenied\";\r\n\t\t}\r\n\t\tif(parentFolderId != null && parentFolderId > 0)\r\n\t\t{\r\n\t\t folderPath = userFileSystemService.getPersonalFolderPath(parentFolderId);\r\n\t\t}\r\n\t\t\r\n\t\tCollection<PersonalFolder> myPersonalFolders = userFileSystemService.getPersonalFoldersForUser(userId, parentFolderId);\r\n\t\t\r\n\t\tCollection<PersonalFile> myPersonalFiles = userFileSystemService.getPersonalFilesInFolder(userId, parentFolderId);\r\n\t\t\r\n\t fileSystem = new LinkedList<FileSystem>();\r\n\t \r\n\t for(PersonalFolder o : myPersonalFolders)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t for(PersonalFile o: myPersonalFiles)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t FileSystemSortHelper sortHelper = new FileSystemSortHelper();\r\n\t sortHelper.sort(fileSystem, FileSystemSortHelper.TYPE_DESC);\r\n\t return SUCCESS;\r\n\t \r\n\t}", "public Folder getFolder(String string)\n\t{\n\t\tFolder folder=getRootDocFolder();\n\t\t/*\n\t\tfor(Folder folder2:folder.getChildFs()){\n\t\t\tif(folder2.getFolder().equals(string))\n\t\t\t{\n\t\t\t\tfolder=folder2;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t * */\n\t\treturn folder;\n\t}", "public File getDirectoryValue();", "public String getUserStorageLocation(){\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String user = (String) auth.getPrincipal();\n return user + \"/\";\n }", "public Path getRepositoryGroupBaseDir();", "void getCourseLocalPathRoot(String courseId, String phoneGapCallback, GetCourseLocalPathRootCompleted callback);", "public static FileObject getOrCreateFolder(URL url) throws IOException {\n try {\n FileObject result = URLMapper.findFileObject(url);\n if (result != null) {\n return result;\n }\n File f = Utilities.toFile(url.toURI());\n\n result = FileUtil.createFolder(f);\n return result;\n } catch (URISyntaxException ex) {\n throw new IOException(ex);\n }\n }", "private String getSessionFileName(String sessionIdentifier)\n\t{\n\t\tFile sessionFolder = folders.get(sessionIdentifier, true);\n\t\treturn new File(sessionFolder, \"data\").getAbsolutePath();\n\t}", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "public int folderShare(int ffid,String isShared) {\n\t FileFolderMapper mapper = sqlSession.getMapper(FileFolderMapper.class);\r\n\t HashMap<String, Object> map = new HashMap<>();\r\n\t map.put(\"ffid\", ffid);\r\n\t map.put(\"isShared\", isShared);\r\n\t return mapper.bookmarkUpdate(map);\r\n\t }", "private Folder openFolder(Store store) throws MessagingException {\n\t\tFolder f = folder == null ? store.getDefaultFolder() : store.getFolder(folder);\n\t\tf.open(Folder.READ_ONLY);\n\t\treturn f;\n\t}", "public String getFolderPath(){\n\t\treturn folderPath;\n\t}", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "private String getOidDirectory(OID oid) {\n NumberFormat numberFormat = NumberFormat.getNumberInstance();\n numberFormat.setMaximumIntegerDigits(4);\n numberFormat.setMinimumIntegerDigits(4);\n numberFormat.setGroupingUsed(false);\n String lastFour = numberFormat.format(Math.abs(oid.getValue()) % 10000);\n return lastFour.substring(0, 2) + \"/\" + lastFour.substring(2);\n }", "public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);", "public String getFolderName() {\n return owner.getName();\n }", "String getHome(ObjectStorage storage);", "public void getFolderData(View view) {\n if (mDriveServiceHelper != null) {\n Intent intent = new Intent(this, ListActivity.class);\n\n mDriveServiceHelper.getFolderFileList()\n .addOnSuccessListener(new OnSuccessListener<ArrayList<GoogleDriveFileHolder>>() {\n @Override\n public void onSuccess(ArrayList<GoogleDriveFileHolder> result) {\n Log.e(TAG, \"onSuccess: result: \"+result.size() );\n intent.putParcelableArrayListExtra(\"fileList\", result);\n startActivity(intent);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n showMessage(\"Not able to access Folder data.\");\n Log.e(TAG, \"Not able to access Folder data.\", e);\n }\n });\n }\n }", "protected DataObject getFolderDataObject(String folderName) {\r\n\r\n\t\tDataObject dataObject = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tStringBuilder sbDql = new StringBuilder();\r\n\r\n\t\t\tsbDql.append(SELECT).append(ALL).append(FROM);\r\n\r\n\t\t\tsbDql.append(DM_FOLDER).append(WHERE).append(OBJECT_NAME)\r\n\t\t\t.append(EQ_QUOTE).append(folderName).append(QUOTE);\r\n\r\n\t\t\tQueryResult queryResult = this.getQueryResult(sbDql.toString());\r\n\r\n\t\t\tDataPackage dataPackage = queryResult.getDataPackage();\r\n\r\n\t\t\tList<DataObject> dataObjects = dataPackage.getDataObjects();\r\n\r\n\t\t\tif (dataObjects != null && dataObjects.size() > 0) {\r\n\r\n\t\t\t\tdataObject = dataObjects.get(0);\r\n\r\n\t\t\t\tlogger.info(\"\\n\\nDEBUG:\\n\\n\".concat(dataObjects.get(0)\r\n\t\t\t\t\t\t.toString()));\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (CoreServiceException e) {\r\n\r\n\t\t\tlogger.error(ERROR_REPOSITORIO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tlogger.error(ERROR_SERVICO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t}\r\n\r\n\t\treturn dataObject;\r\n\r\n\t}", "private void openDownloadedFolder() {\n if (new CheckForSDCard().isSDCardPresent()) {\n\n //Get Download Directory File\n File apkStorage = new File(\n Environment.getExternalStorageDirectory() + \"/\"\n + Utils.downloadDirectory);\n\n //If file is not present then display Toast\n if (!apkStorage.exists())\n Toast.makeText(MainActivity.this, \"Right now there is no directory. Please download some file first.\", Toast.LENGTH_SHORT).show();\n\n else {\n\n //If directory is present Open Folder\n\n /** Note: Directory will open only if there is a app to open directory like File Manager, etc. **/\n\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()\n + \"/\" + Utils.downloadDirectory);\n intent.setDataAndType(uri, \"file/*\");\n startActivity(Intent.createChooser(intent, \"Open Download Folder\"));\n }\n\n } else\n Toast.makeText(MainActivity.this, \"Oops!! There is no SD Card.\", Toast.LENGTH_SHORT).show();\n\n\n }", "public File getLocalCacheDirectory() {\n return pathsProvider.getLocalAcmCacheDir();\n }", "private NodeRef getEvidenceBankFolder() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.DOCUMENT_LIBRARY_FOLDER_NAME);\n pathElements.add(TradeMarkModel.EVIDENCE_BANK_FOLDER_NAME);\n pathElements.add(TradeMarkModel.TWOAEVIDENCE_LIBRARY_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "void listingFiles(String remoteFolder);", "private NodeRef getDocumentLibraryFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.DOCUMENT_LIBRARY_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "public Path getRemoteRepositoryBaseDir();" ]
[ "0.70391816", "0.6701688", "0.6354408", "0.63349617", "0.61439323", "0.60870355", "0.5992807", "0.59676653", "0.5937796", "0.5931794", "0.58808756", "0.58563435", "0.58498913", "0.581531", "0.5774857", "0.57646084", "0.5756732", "0.5718849", "0.57151914", "0.5709675", "0.5683555", "0.5682856", "0.5679777", "0.5656747", "0.5645865", "0.56447953", "0.5628981", "0.560048", "0.5589946", "0.55768484", "0.5564237", "0.5544804", "0.5497375", "0.54958636", "0.5485947", "0.5484323", "0.54749745", "0.5455234", "0.54502344", "0.5449245", "0.54468817", "0.54455644", "0.54407215", "0.54361725", "0.5410808", "0.5410233", "0.5409853", "0.5409742", "0.5392608", "0.5385724", "0.5384413", "0.53822374", "0.53681153", "0.53567374", "0.5351239", "0.53331727", "0.53315234", "0.5331111", "0.5331111", "0.53273195", "0.5324518", "0.5324293", "0.52836", "0.5282984", "0.5282281", "0.5256868", "0.52518797", "0.5246608", "0.5231346", "0.52085155", "0.52074784", "0.5206039", "0.5203501", "0.5199971", "0.51948094", "0.51880866", "0.51757145", "0.51684946", "0.5166326", "0.5146863", "0.5146379", "0.5145456", "0.5140215", "0.512955", "0.5125701", "0.51224166", "0.5114832", "0.510268", "0.50955456", "0.5083287", "0.5081699", "0.5070927", "0.5066206", "0.5058812", "0.50583607", "0.5056003", "0.5053423", "0.50379044", "0.5027126", "0.5011797" ]
0.6271947
4
Attempt to retrieve a local folder that references a remote folder.
public Folder getRemote(String remoteFolderId, String remoteOwnerEmail) { CriteriaQuery<Folder> query = getBuilder().createQuery(Folder.class); Root<Folder> from = query.from(Folder.class); query.where( getBuilder().equal(from.get("type"), FolderType.REMOTE), getBuilder().equal(from.get("description"), remoteFolderId), getBuilder().equal(from.get("ownerEmail"), remoteOwnerEmail) ); return currentSession().createQuery(query).uniqueResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void downloadingFolder(String remoteFolder);", "void folderDownloaded(String remoteFolder);", "public String getRemoteFolder(String remoteDir, String localDir, Boolean zipResult) throws GRIDAClientException {\n\n try {\n Communication communication = getCommunication();\n communication.sendMessage(\n ExecutorConstants.COM_GET_REMOTE_FOLDER + Constants.MSG_SEP_1\n + proxyPath + Constants.MSG_SEP_1\n + Util.removeLfnFromPath(remoteDir) + Constants.MSG_SEP_1\n + localDir + Constants.MSG_SEP_1 + zipResult.toString());\n communication.sendEndOfMessage();\n\n String localFolderPath = communication.getMessage();\n communication.close();\n\n return localFolderPath.toString();\n\n } catch (IOException ex) {\n throw new GRIDAClientException(ex);\n }\n }", "public String getRemoteFolder(String remoteDir, String localDir) throws GRIDAClientException {\n return getRemoteFolder(remoteDir, localDir, true);\n }", "public URI getAbsoluteLobFolder();", "public Path getRemoteRepositoryBaseDir();", "void folderCreated(String remoteFolder);", "Path getFolder(Repository repository, @Nullable Path ownerPath, Object object);", "void uploadingFolder(String remoteFolder);", "void folderUploaded(String remoteFolder);", "public URI getLobFolder();", "public String getLocalRepositoryRootFolder() {\n\t\tString userFolder = IdatrixPropertyUtil.getProperty(\"idatrix.local.reposity.root\",getRepositoryRootFolder() );\n\t\tint index = userFolder.indexOf(\"://\");\n\t\tif(index > -1 ) {\n\t\t\tuserFolder = userFolder.substring(index+3);\n\t\t}\n\t\treturn userFolder;\n\t}", "NodeRef getCurrentFolderNodeRef(NodeRef parent, String folderName);", "@Override\n public boolean pullFile(String remoteFilePath, File localFile)\n throws DeviceNotAvailableException {\n boolean found = false;\n for (String[] item : dirs) {\n if (String.format(\"%s/%s\", item[0], item[1]).equals(remoteFilePath)) {\n found = true;\n break;\n }\n }\n assertTrue(\"trying to pull non-existent file: \" + remoteFilePath, found);\n try {\n return localFile.createNewFile();\n } catch (IOException ioe) {\n throw new RuntimeException(\"failed to create empty file\", ioe);\n }\n }", "void listingFiles(String remoteFolder);", "void folderDeleted(String remoteFolder);", "void fetchingInfo(String remotePath);", "private boolean isLocalRepository() {\n\r\n File file = new File(m_Path.toString() + \"/.magit/Remote\");\r\n return file.exists();\r\n }", "public IPath getPath() {\n \t\tif (remotePath.equals(\"\")) {\n \t\t\treturn null;\n \t\t}\n \t\treturn new Path(remotePath);\n \t}", "static File requestNewResourcesFolder(Context context){\n SharedPreferences sharedPreferences = context.getSharedPreferences(Values.PREFERENCES_NAME, Context.MODE_PRIVATE);\n File downloadPath = null;\n File[] folders = context.getExternalFilesDirs(null);\n if(hasWritableSd(context) && checkAvailableSpace(folders[1], 10)){\n downloadPath = folders[1];\n sharedPreferences.edit().putString(Values.DOWNLOAD_LOCATION, Values.LOCATION_EXTERNAL).apply();\n }\n else{\n if(checkAvailableSpace(folders[0], 10)){\n downloadPath = folders[0];\n sharedPreferences.edit().putString(Values.DOWNLOAD_LOCATION, Values.LOCATION_INTERNAL).apply();\n }\n }\n return downloadPath;\n }", "@Override\r\n public Folder getFolderById(long id) {\n Optional <Folder> optional = folderRepository.findById(id);\r\n Folder folder = null;\r\n \r\n if(optional.isPresent()){\r\n folder = optional.get(); \r\n }else{\r\n throw new RuntimeException(\"Folder not found\");\r\n }\r\n \r\n \r\n return folder;\r\n \r\n }", "public String getRemoteFile(String remoteFile, String localDir) throws GRIDAClientException {\n\n try {\n Communication communication = getCommunication();\n communication.sendMessage(\n ExecutorConstants.COM_GET_REMOTE_FILE + Constants.MSG_SEP_1\n + proxyPath + Constants.MSG_SEP_1\n + Util.removeLfnFromPath(remoteFile) + Constants.MSG_SEP_1\n + localDir);\n communication.sendEndOfMessage();\n\n String localFilePath = communication.getMessage();\n communication.close();\n\n return localFilePath.toString();\n\n } catch (IOException ex) {\n throw new GRIDAClientException(ex);\n }\n }", "public java.lang.String getRemotePath() {\r\n return remotePath;\r\n }", "public void createFolder(String remotepath){\n String path = rootremotepath+remotepath;\n try {\n sardine.createDirectory(path);\n } catch (IOException e) {\n throw new NextcloudApiException(e);\n }\n }", "String getRemoteUrl(String name, String GIT_DIR) throws GitException, InterruptedException;", "private NodeRef getCaseFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.CABINET_FOLDER_NAME);\n pathElements.add(TradeMarkModel.CASE_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "public FileObject getWsDDFolder();", "private static File getLocalReference(MD5Key id) {\n \n \t\tFile lnkFile = getAssetLinkFile(id);\n \t\tif (!lnkFile.exists()) {\n \t\t\treturn null;\n \t\t}\n \t\ttry {\n \t\t\tList<String> refList = FileUtil.getLines(lnkFile);\n \n \t\t\tfor (String ref : refList) {\n \t\t\t\tFile refFile = new File(ref);\n \t\t\t\tif (refFile.exists()) {\n \t\t\t\t\treturn refFile;\n \t\t\t\t}\n \t\t\t}\n \n \t\t} catch (IOException ioe) {\n \t\t\t// Just so we know, but fall through to return null\n \t\t\tioe.printStackTrace();\n \t\t}\n \n \t\t// Guess we don't have one\n \t\treturn null;\n \t}", "public synchronized void download(String remoteBaseDir, String localBaseDir) {\r\n\t\ttry {\r\n\t\t\tif (!ftpClient.isConnected()) {\r\n\t\t\t\tftpClient.connect(host);\r\n\t\t\t\tftpClient.login(user, password);\r\n\t\t\t}\r\n\t\t\tFile localDir = new File(localBaseDir);\r\n\t\t\tif (!localDir.exists()) {\r\n\t\t\t\tlocalDir.mkdirs();\r\n\t\t\t}\r\n\r\n\t\t\tremoteBaseDir = remoteBaseDir.endsWith(REMOTE_PATH_SEPERATOR) ? remoteBaseDir\r\n\t\t\t\t\t: remoteBaseDir + REMOTE_PATH_SEPERATOR;\r\n\t\t\tif (ftpClient.changeWorkingDirectory(remoteBaseDir)) {\r\n\t\t\t\tftpClient.enterLocalPassiveMode();\r\n\t\t\t\tFTPFile[] files = ftpClient.listFiles(remoteBaseDir);\r\n\t\t\t\tfor (FTPFile f : files) {\r\n\t\t\t\t\tif (f.isFile()) {\r\n\t\t\t\t\t\tif (cache.checkStandby(f.getName(), f.getSize())) {\r\n\t\t\t\t\t\t\tdownloadFile(f, localBaseDir);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString newRemote = remoteBaseDir + f.getName();\r\n\t\t\t\t\t\tString newLocal = new File(localBaseDir, f.getName()).getCanonicalPath();\r\n\t\t\t\t\t\tdownload(newRemote, newLocal);\r\n\t\t\t\t\t\tftpClient.changeToParentDirectory();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.warn(e.getMessage());\r\n\t\t}\r\n\t}", "public boolean routeToExistingFolder(String localInPath, String localInFilename,\r\n\t\t\tString ftpHost, String ftpUser, String ftpPassword, String remoteFtpRoot, \r\n\t\t\tboolean isPublic) throws IOException {\r\n\t\tboolean success = true;\r\n\t\tboolean isCreated = false;\r\n\t\tString ftpOutFilename=\"\", userId=\"\",subjectId=\"\";\r\n\t\ttry {\r\n\t\t\tdebugPrintLocalln(\"routeToExistingFolder: \"); \r\n\t\t\tdebugPrintLocalln(\"# parentFolder: \" + localInPath); \r\n\t\t\tdebugPrintLocalln(\"# fileName: \" + localInFilename); \r\n\t\t\tdebugPrintLocalln(\"# remoteFtpRoot: \" + remoteFtpRoot); \r\n\t\t\tdebugPrintLocalln(\"# isPublic: \" + isPublic); \r\n\t\t\t\r\n\t\t\tString publicPrivate = isPublic ? \"public\": \"private\";\r\n\t\t\tdebugPrintLocalln(\"## publicPrivate: \" + publicPrivate);\r\n\t\r\n\t\t\t// parse the temporary file name.\r\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(localInFilename, \"_\");\r\n\t\t\tuserId = tokenizer.nextToken();\r\n\t\t\tsubjectId = tokenizer.nextToken().toLowerCase();\r\n\t\t\tftpOutFilename = tokenizer.nextToken(\"\").substring(1); \r\n\t\r\n\t\t\tdebugPrintLocalln(\"## userId: \" + userId); \r\n\t\t\tdebugPrintLocalln(\"## subjectId: \" + subjectId); \r\n\t\t\tdebugPrintLocalln(\"## originalFileName: \" + ftpOutFilename); \r\n\t\t\t\r\n\t\t\tApacheCommonsFtpWrapper ftpWrap = new ApacheCommonsFtpWrapper(ftpHost, ftpUser, ftpPassword);\r\n\t\t\tcreateDirectoryNames(remoteFtpRoot, userId, subjectId, publicPrivate, ftpOutFilename);\r\n\t\t\r\n\t\t\tString ftpOutPath = isPublic ? input: privateInput;\r\n\t\t\tdebugPrintLocalln(\"## inputPath: \" + ftpOutPath); \r\n\t success = moveFileFTP(ftpWrap, ftpOutPath, localInPath, ftpOutFilename, localInFilename);\r\n\t } catch (Exception ex) {\r\n\t log.error(\"Failed to write file: \" + ftpOutFilename + \" isPublic: \" + isPublic);\r\n\t \tex.printStackTrace();\r\n\t \tsuccess = false;\r\n\t }\r\n\t \r\n\t return success;\r\n\t}", "public String getRelativePath();", "private NodeRef getCabinetFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.CABINET_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "public boolean routeToFolder(String parentFolder, String fileName,\r\n\t\t\tString ftpHost, String ftpUser, String ftpPassword, String remoteFtpRoot, \r\n\t\t\tboolean isPublic) throws IOException {\r\n\t\tboolean success = true;\r\n\t\t\r\n\t\t// parse the temporary file name.\r\n\t\tStringTokenizer tokenizer = new StringTokenizer(fileName, \"_\");\r\n\t\tString userId = tokenizer.nextToken();\r\n\t\tString subjectId = tokenizer.nextToken().toLowerCase();\r\n\t\tString originalFileName = tokenizer.nextToken(\"\").substring(1); \r\n\t\t\r\n\t\tsuccess = routeToFolder(parentFolder, fileName, userId, subjectId, originalFileName,\r\n\t\t\t\tftpHost, ftpUser, ftpPassword, remoteFtpRoot,\r\n\t\t\t\tisPublic);\r\n\t \r\n\t return success;\r\n\t}", "com.google.apps.drive.activity.v2.DriveItem.DriveFolder getDriveFolder();", "public static File getResourcesFolder(Context context){\n SharedPreferences sharedPreferences = context.getSharedPreferences(Values.PREFERENCES_NAME, Context.MODE_PRIVATE);\n File downloadPath = null;\n File[] folders = context.getExternalFilesDirs(null);\n switch (sharedPreferences.getString(Values.DOWNLOAD_LOCATION, Values.NOT_YET_DECIDED)) {\n case Values.LOCATION_INTERNAL:\n downloadPath = folders[0];\n break;\n case Values.LOCATION_EXTERNAL:\n if (hasWritableSd(context))\n downloadPath = folders[1];\n break;\n case Values.NOT_YET_DECIDED:\n //If it's the first time choosing one of the two possible storage locations, make the choice\n downloadPath = requestNewResourcesFolder(context);\n }\n return downloadPath;\n }", "public Folder get(long id) {\n return super.get(Folder.class, id);\n }", "private static ArtifactRepository createLocalRepository( Embedder embedder, Settings settings,\n CommandLine commandLine )\n throws ComponentLookupException\n {\n ArtifactRepositoryLayout repositoryLayout =\n (ArtifactRepositoryLayout) embedder.lookup( ArtifactRepositoryLayout.ROLE, \"default\" );\n\n ArtifactRepositoryFactory artifactRepositoryFactory =\n (ArtifactRepositoryFactory) embedder.lookup( ArtifactRepositoryFactory.ROLE );\n\n String url = settings.getLocalRepository();\n\n if ( !url.startsWith( \"file:\" ) )\n {\n url = \"file://\" + url;\n }\n\n ArtifactRepository localRepository = new DefaultArtifactRepository( \"local\", url, repositoryLayout );\n\n boolean snapshotPolicySet = false;\n\n if ( commandLine.hasOption( CLIManager.OFFLINE ) )\n {\n settings.setOffline( true );\n\n snapshotPolicySet = true;\n }\n\n if ( !snapshotPolicySet && commandLine.hasOption( CLIManager.UPDATE_SNAPSHOTS ) )\n {\n artifactRepositoryFactory.setGlobalUpdatePolicy( ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS );\n }\n\n if ( commandLine.hasOption( CLIManager.CHECKSUM_FAILURE_POLICY ) )\n {\n System.out.println( \"+ Enabling strict checksum verification on all artifact downloads.\" );\n\n artifactRepositoryFactory.setGlobalChecksumPolicy( ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL );\n }\n else if ( commandLine.hasOption( CLIManager.CHECKSUM_WARNING_POLICY ) )\n {\n System.out.println( \"+ Disabling strict checksum verification on all artifact downloads.\" );\n\n artifactRepositoryFactory.setGlobalChecksumPolicy( ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN );\n }\n\n return localRepository;\n }", "protected static ICVSFolder createFolder(\n \t\t\tSession session,\n \t\t\tString localDir, \n \t\t\tString repositoryDir) throws CVSException {\n \t\t\n \t\tICVSFolder folder = session.getLocalRoot().getFolder(localDir);\n \t\tif (!folder.exists() \n \t\t\t\t&& (!CVSProviderPlugin.getPlugin().getPruneEmptyDirectories() \n \t\t\t\t\t\t|| !folder.getParent().isCVSFolder())) {\n \t\t\t// Only create the folder if pruning is disabled or the\n \t\t\t// folder's parent is not a CVS folder (which occurs on checkout).\n \t\t\t// When pruning is enabled, the folder will be lazily created\n \t\t\t// when it contains a file (see getExistingFolder)\n \t\t\tfolder.mkdir();\n \t\t}\n \t\tif (! folder.isCVSFolder()) {\n \t\t\tString repositoryRoot = session.getRepositoryRoot();\n String relativePath;\n if (repositoryDir.startsWith(repositoryRoot)) {\n // The repositoryDir is an absolute path\n relativePath = Util.getRelativePath(repositoryRoot, repositoryDir);\n } else {\n // The repositoryDir is already a relative path\n relativePath = repositoryDir;\n }\n IResource resource = folder.getIResource();\n if (resource != null) {\n \tIProject project = resource.getProject();\n \t\t\t\tif (project != null && project.isAccessible() && !CVSTeamProvider.isSharedWithCVS(project)) {\n \t \t// The project isn't shared but we are about to perform an operation on it.\n \t \t// we need to flag the project as shared so that the sync info management works\n \t \tCVSTeamProvider.markAsTempShare(project);\n \t}\n }\n try{\n folder.setFolderSyncInfo(new FolderSyncInfo(\n \t\t\t\trelativePath,\n \t\t\t\tsession.getCVSRepositoryLocation().getLocation(false),\n \t\t\t\tnull, false));\n } catch (CVSException ex){\n \tIStatus status = ex.getStatus();\n \tif (status != null){\n \t\tif (status.getCode() == IResourceStatus.INVALID_VALUE){\n \t\t\t//if it's an invalid value, just ignore the exception (see Bug# 152053),\n \t\t\t//else throw it again\n \t\t} else {\n \t\t\tthrow ex;\n \t\t}\n \t}\n }\n \t\t}\n \t\treturn folder;\n \t}", "FileObject getBaseFolder();", "private NodeRef getDocumentLibraryFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.DOCUMENT_LIBRARY_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "FileSystem getRemoteWorkspace(final HudsonJob job) {\n return getFileSystemFromCache(workspaces, job.getName(), new Callable<RemoteFileSystem>() {\n @Override public RemoteFileSystem call() throws Exception {\n return builderConnector.getWorkspace(job);\n }\n });\n }", "public String remotePath(String pathOrGAV) {\n\t\tif (Archive.isValid(pathOrGAV)) {\n\t\t\treturn Archive.valueOf(pathOrGAV).remotePath;\n\t\t}\n\t\treturn pathOrGAV;\n\t}", "public boolean routeToExistingFolder(String localInPath, String localInFilename, String userId, String subjectId, \r\n\t\t\tString ftpHost, String ftpUser, String ftpPassword, String remoteFtpRoot, \r\n\t\t\tboolean isPublic) throws IOException {\r\n\t\tboolean success = false;\r\n\t\tString ftpOutFilename=\"\";\r\n\r\n\t\ttry {\r\n\t\t\tdebugPrintLocalln(\"routeToExistingFolder: \"); \r\n\t\t\tdebugPrintLocalln(\"# localInPath: \" + localInPath); \r\n\t\t\tdebugPrintLocalln(\"# localInFilename: \" + localInFilename); \r\n\t\t\tdebugPrintLocalln(\"# userId: \" + userId); \r\n\t\t\tdebugPrintLocalln(\"# subjectId: \" + subjectId); \r\n\t\t\tdebugPrintLocalln(\"# remoteFtpRoot: \" + remoteFtpRoot); \r\n\t\t\tdebugPrintLocalln(\"# isPublic: \" + isPublic); \r\n\t\t\t\r\n\t\t\tString publicPrivate = isPublic ? \"public\": \"private\";\r\n\t\t\tdebugPrintLocalln(\"## publicPrivate: \" + publicPrivate);\r\n\t\r\n\t\t\t// output file name is now the same as the input filename, no parsing required.\r\n\t\t\tftpOutFilename = localInFilename; \t\r\n\t\t\tdebugPrintLocalln(\"## ftpOutFilename: \" + ftpOutFilename); \r\n\t\t\t\r\n\t\t\tApacheCommonsFtpWrapper ftpWrap = new ApacheCommonsFtpWrapper(ftpHost, ftpUser, ftpPassword);\r\n\t\t\tcreateDirectoryNames(remoteFtpRoot, userId, subjectId, publicPrivate, ftpOutFilename);\r\n\t\t\r\n\t\t\tString ftpOutPath = isPublic ? input: privateInput;\r\n\t\t\tdebugPrintLocalln(\"## ftpOutPath: \" + ftpOutPath); \r\n\t success = moveFileFTP(ftpWrap, ftpOutPath, localInPath, ftpOutFilename, localInFilename);\r\n\t } catch (Exception ex) {\r\n\t log.error(\"Failed to write file: \" + ftpOutFilename + \" isPublic: \" + isPublic);\r\n\t \tex.printStackTrace();\r\n\t \tsuccess = false;\r\n\t }\r\n\t \r\n\t return success;\r\n\t}", "java.lang.String getFolderId();", "public static void repoClone() throws IOException, InvalidRemoteException, TransportException, GitAPIException {\n\t\tFile localPath = new File(\"testRuby\");\n\t\tboolean directoryExist = localPath.exists();\n\t\tlocalPath.delete();\n\t\t// then clone\n\t\tSystem.out.println(\"Cloning from \" + REMOTE_URL + \" to \" + localPath);\n\t\tFileRepositoryBuilder builder = new FileRepositoryBuilder();\n\t\tRepository repository = builder.setWorkTree(localPath).readEnvironment().build();\n\t\tGit git = new Git(repository);\n\t\tif (!directoryExist) {\n\t\t\ttry (Git result = git.cloneRepository().setURI(REMOTE_URL).setDirectory(localPath).call()) {\n\t\t\t\t// Note: the call() returns an opened repository already which\n\t\t\t\t// needs to be closed to avoid file handle leaks!\n\t\t\t\tSystem.out.println(\"Having repository: \" + result.getRepository().getDirectory());\n\t\t\t}\n\t\t} else {\n\t\t\tPullResult pullresult=git.pull().call();\n\t\t\t// Note: the call() returns an opened repository already which needs\n\t\t\t// to be closed to avoid file handle leaks!\n\t\t\tSystem.out.println(\"pulled repository: \" + pullresult.isSuccessful());\n\n\t\t}\n\t}", "IStorageService subFolder(String path);", "@Remote\npublic interface ExplorerService {\n\n /**\n * Return a list of items for the specified Path. The Path can be either:-\n * - A Project Root (i.e. folder containing pom.xml and parent of folder containing kmodule.xml)\n * - Within a Project Package (i.e. folder within Project Root and src/main/resources)\n * - Within a Project but outside of a Package (i.e. between pom.xml and src/main/resources)\n * - Other\n * @param path\n * @return\n */\n ExplorerContent getContentInScope( final Path path );\n\n}", "public void setRemotePath(java.lang.String remotePath) {\r\n this.remotePath = remotePath;\r\n }", "String folderPath();", "ArtifactSet resolveLocalArtifacts(LocalFileDependencyMetadata fileDependencyMetadata);", "private static Path localTemp(Configuration conf, int taskId, int attemptId) {\n String localDirs = conf.get(\"mapreduce.cluster.local.dir\");\n Random rand = new Random(Objects.hashCode(taskId, attemptId));\n String[] dirs = localDirs.split(\",\");\n String dir = dirs[rand.nextInt(dirs.length)];\n\n try {\n return FileSystem.getLocal(conf).makeQualified(new Path(dir));\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to localize path: \" + dir, e);\n }\n }", "public String getFolder() {\n return myFolder;\n }", "private NodeRef getompanyHomeFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n return nodeLocatorService.getNode(\"companyhome\", null, null);\n }", "public ReferenceRemote getReferenceServer() throws RemoteException, IOException {\n String rmiServiceName\n = PropertiesRemote.getInstance().getProperty(\"remoteServiceName\");\n String rmiHost\n = PropertiesRemote.getInstance().getProperty(\"remoteHost\");\n int rmiPort\n = Integer.parseInt(PropertiesRemote.getInstance().getProperty(\"remotePort\"));\n String lookupString = \"rmi://\" + rmiHost + \":\" + rmiPort + \"/\" + rmiServiceName;\n\n try {\n refObj = (ReferenceRemote) Naming.lookup(lookupString);\n return refObj;\n } catch (NotBoundException nbex) {\n throw new RemoteException(nbex.toString());\n }\n }", "public GitRemote getRemote() { return getRemote(\"origin\"); }", "private String downloadFolder(){\n\t\tFile home = new File(System.getProperty(\"user.home\"));\n\t\tFile folder = new File (home,\"Downloads/PaluDownloads\");\n\t\tif (!folder.exists()){\n\t\t\tfolder.mkdir();\n\t\t}\n\t\treturn folder.getAbsolutePath();\n\t}", "private IPath findInitialPath(IPath initialPath) {\n \t\tIPath path = cwd;\n \t\t\n \t\tif (initialPath != null) {\n \t\t\ttry {\n \t\t\t\tIFileInfo info = fileMgr.getResource(initialPath, new NullProgressMonitor()).fetchInfo();\n \t\t\t\tif (info.exists()) {\n \t\t\t\t\tpath = initialPath;\n \t\t\t\t}\n \t\t\t} catch (IOException e) {\n \t\t\t}\n \t\t}\n \t\treturn path;\n \t}", "public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}", "public boolean routeToFolderOld(String parentFolder, String fileName,\r\n\t\t\tString ftpHost, String ftpUser, String ftpPassword, String remoteFtpRoot, \r\n\t\t\tboolean isPublic) throws IOException {\r\n\t\tboolean success = true;\r\n\t\tString publicPrivate = isPublic ? \"public\": \"private\";\r\n\t\t\r\n\t\t// parse the temporary file name.\r\n\t\tStringTokenizer tokenizer = new StringTokenizer(fileName, \"_\");\r\n\t\tString userId = tokenizer.nextToken();\r\n\t\tString subjectId = tokenizer.nextToken().toLowerCase();\r\n\t\tString originalFileName = tokenizer.nextToken(\"\").substring(1); \r\n\t\t\r\n\t\tApacheCommonsFtpWrapper ftpWrap = new ApacheCommonsFtpWrapper(ftpHost, ftpUser, ftpPassword);\r\n\t\t\r\n\t\tcreateDirectoryNames(remoteFtpRoot, userId, subjectId, publicPrivate, originalFileName);\r\n\t\tsuccess = makeInOutDirectories(ftpWrap, originalFileName, fileName);\r\n\r\n\t\ttry {\r\n\t \tString inputPath=\"\";\r\n\t if(isPublic) {\r\n\t \tinputPath = input;\r\n\t } else {\r\n\t \tinputPath = privateInput;\r\n\t }\r\n\t \r\n\t success = moveFileFTP(ftpWrap, inputPath, parentFolder, originalFileName, fileName);\r\n\t \r\n\t } catch (Exception ex) {\r\n\t log.error(\"Failed to write file: \" + originalFileName + \" isPublic: \" + isPublic);\r\n\t \tex.printStackTrace();\r\n\t \tsuccess = false;\r\n\t }\r\n\t \r\n\t return success;\r\n\t}", "private Folder getRootFolder() {\n if(!MigrationProperties.get(MigrationProperties.PROP_MIGRATION_PROFILE).equalsIgnoreCase(\"DELTA\")) {\n String folderPath = MigrationProperties.get(MigrationProperties.PROP_SOURCE_LOCATION);\n\n if (folderPath != null && folderPath.contains(\"/\")) {\n Folder rootFolder = CmisHelper.getFolder(jobParameters.getSessionSource(), folderPath);\n return rootFolder;\n\n } else\n return null;\n } else\n return null;\n }", "public PSLocator getSrcFolder()\n {\n return m_srcFolder;\n }", "void getCourseLocalPathRoot(String courseId, String phoneGapCallback, GetCourseLocalPathRootCompleted callback);", "public Folder getFolderServiceContext(ServiceContext serviceContext) {\n\t\tFolder folder = null;\n\t\ttry {\n\t\t\tfolder = DLAppServiceUtil.getFolder(serviceContext.getScopeGroupId(), PARENT_FOLDER_ID, ROOT_FOLDER_NAME);\n\t\t} catch (Exception e) {\n\t\t\t_log.error(e.getMessage());\n\t\t}\n\t\treturn folder;\n\n\t}", "private IFolder getUnsortedFolder() {\n \t\tString unsortedFolder = (String) arguments.get(UNSORTED_FOLDER);\n \t\tif (unsortedFolder == null)\n \t\t\tunsortedFolder = DEFAULT_UNSORTED_FOLDER;\n \t\treturn getProject().getFolder(unsortedFolder);\n \t}", "@Override\n public boolean localMirrorExists( Corpus corp, Ice.Current __current )\n {\n CorpusI cs = checkValidityAndLookup( corp );\n // don't query if no local mirror required in the first place;\n // this protects directory-based corpora from being queried\n if (null==cs || !cs.isImmutableMirror) return false;\n return cs.localMirrorExists();\n }", "public static FileObject getOrCreateFolder(URL url) throws IOException {\n try {\n FileObject result = URLMapper.findFileObject(url);\n if (result != null) {\n return result;\n }\n File f = Utilities.toFile(url.toURI());\n\n result = FileUtil.createFolder(f);\n return result;\n } catch (URISyntaxException ex) {\n throw new IOException(ex);\n }\n }", "NodeRef getCurrentSearchTermsFolder(NodeRef searchTermsFolder);", "private RestTreeNode createRemoteOrVirtualFolderNode(BaseBrowsableItem pathItem, String repoType,\n RepoPath repositoryPath) {\n RestTreeNode child;\n String repoKey = pathItem.getRepoKey();\n repositoryPath = pathItem.getRepoPath();\n if (repoKey.endsWith(\"-cache\")) {\n repoKey = repoKey.replace(\"-cache\", \"\");\n repositoryPath = InternalRepoPathFactory.create(repoKey, pathItem.getRepoPath().getPath());\n }\n child = new VirtualRemoteFolderNode(repositoryPath, pathItem, pathItem.getName(), repoType);\n return child;\n }", "public BGPPath getPath(int dest) {\n\n BGPPath installedPath = null;\n\n /*\n * Hunt for the hole punched path first, if it exists return it\n */\n installedPath = this.locRib.get(dest * -1);\n if (installedPath == null) {\n installedPath = this.locRib.get(dest);\n }\n\n if (this.avoidMode == AS.AvoidMode.LEGACY && this.isWardenAS()) {\n if (installedPath != null && this.routeStatusMap.get(dest) == AS.RS_CLEAN) {\n return installedPath;\n } else {\n if (this.routeStatusMap.get(dest) == AS.RS_LEGACY) {\n return this.mplsRoutes.get(dest);\n } else if (this.routeStatusMap.get(dest) == AS.RS_DIRTY) {\n BGPPath bestCabalPath = null;\n\n for (AS tWarden : this.wardenSet) {\n if (tWarden.getASN() != this.asn) {\n /*\n * IMPORTANT NOTE, this has to be a call to the\n * local rib NOT getPath, otherwise an infinite\n * recursion can result...\n */\n if (!(this.hasCleanRoute(tWarden.getASN()) && tWarden.hasCleanRoute(dest))) {\n continue;\n }\n\n BGPPath theirPath = tWarden.locRib.get(dest);\n BGPPath toThem = this.locRib.get(tWarden.getASN());\n\n if (bestCabalPath == null\n || bestCabalPath.getPathLength() > theirPath.getPathLength()\n + toThem.getPathLength()) {\n bestCabalPath = toThem.stichPaths(theirPath);\n }\n\n }\n }\n\n if (bestCabalPath != null) {\n this.mplsRoutes.put(dest, bestCabalPath);\n this.routeStatusMap.put(dest, AS.RS_LEGACY);\n return bestCabalPath;\n } else {\n this.routeStatusMap.put(dest, AS.RS_DIRTY_NO_LEGACY);\n }\n }\n }\n }\n\n return installedPath;\n }", "public WorkingFolderInfo getCopy() { return new WorkingFolderInfo(this.myStatus, this.myLocalPath, this.myServerPath); }", "@Override\n\tprotected RemoteOperationResult run(OwnCloudClient client) {\n\n \t/// check parameters\n if (!FileUtils.isValidPath(mTargetRemotePath)) {\n \treturn new RemoteOperationResult(ResultCode.INVALID_CHARACTER_IN_NAME);\n }\n\n if (mTargetRemotePath.equals(mSrcRemotePath)) {\n \t// nothing to do!\n return new RemoteOperationResult(ResultCode.OK);\n }\n\n if (mTargetRemotePath.startsWith(mSrcRemotePath)) {\n \treturn new RemoteOperationResult(ResultCode.INVALID_MOVE_INTO_DESCENDANT);\n }\n\n\n /// perform remote operation\n\t\t//LocalMoveMethod move = null;\n\t\tMoveMethod move = null;\n\t\tRemoteOperationResult result = null;\n try {\n move = new MoveMethod(\n \t\tclient.getWebdavUri() + WebdavUtils.encodePath(mSrcRemotePath),\n \t\tclient.getWebdavUri() + WebdavUtils.encodePath(mTargetRemotePath),\n \t\tmOverwrite\n \t\t);\n int status = client.executeMethod(move, MOVE_READ_TIMEOUT, MOVE_CONNECTION_TIMEOUT);\n\n /// process response\n \tif (status == HttpStatus.SC_MULTI_STATUS) {\n \t\tresult = processPartialError(move);\n\n \t} else if (status == HttpStatus.SC_PRECONDITION_FAILED && !mOverwrite) {\n\n \t\tresult = new RemoteOperationResult(ResultCode.INVALID_OVERWRITE);\n \t\tclient.exhaustResponse(move.getResponseBodyAsStream());\n\n\n \t\t/// for other errors that could be explicitly handled, check first:\n \t\t/// http://www.webdav.org/specs/rfc4918.html#rfc.section.9.9.4\n\n \t} else {\n\n\t result = new RemoteOperationResult(\n\t \t\tisSuccess(status), \t// move.succeeded()? trustful?\n\t \t\tstatus,\n\t \t\tmove.getResponseHeaders()\n \t\t);\n \t\tclient.exhaustResponse(move.getResponseBodyAsStream());\n }\n\n Log.i(TAG, \"Move \" + mSrcRemotePath + \" to \" + mTargetRemotePath + \": \" +\n \t\tresult.getLogMessage());\n\n } catch (Exception e) {\n result = new RemoteOperationResult(e);\n Log.e(TAG, \"Move \" + mSrcRemotePath + \" to \" + mTargetRemotePath + \": \" +\n \t\tresult.getLogMessage(), e);\n\n } finally {\n if (move != null)\n move.releaseConnection();\n }\n\n return result;\n\t}", "private void downloadFile(URL source, File localDirectory, String localFileName, boolean griffin)\n throws SocketException {\n\n if (griffin) {\n try {\n downloadFileFromGriffin(source, localDirectory, localFileName);\n } catch (IOException ex) {\n downloadFileFromMentor(source, localDirectory, localFileName);\n }\n } else {\n downloadFileFromMentor(source, localDirectory, localFileName);\n }\n\n }", "private NodeRef getEvidenceBankFolder() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.DOCUMENT_LIBRARY_FOLDER_NAME);\n pathElements.add(TradeMarkModel.EVIDENCE_BANK_FOLDER_NAME);\n pathElements.add(TradeMarkModel.TWOAEVIDENCE_LIBRARY_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "public String getLocalRepository() {\r\n return localRepository;\r\n }", "public File getWorldFolder(String worldName);", "protected RestTreeNode getRemoteChildItem(BaseBrowsableItem pathItem, String repoType) {\n RestTreeNode child;\n RepoPath repositoryPath = null;\n if (pathItem.isFolder()) {\n child = createRemoteOrVirtualFolderNode(pathItem, repoType, repositoryPath);\n\n } else {\n child = new VirtualRemoteFileNode(pathItem, pathItem.getName(), repoType);\n }\n return child;\n }", "public String download_local(String localPath, String newfilename) {\n\t\t\n\t\tString resp = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tString dest = newfilename;\n\t\t\t\n\t\t\tFile destfile = new File(dest);\n\t\t\t\n\t\t\tif(destfile.exists()) {\n\t\t\t\t\n\t\t\t\tdestfile.delete();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcopy(localPath, dest);\n\t\t\t\n\t\t\tresp = \"{\\\"ret\\\": \\\"success\\\", \\\"path\\\": \\\"\" + StringEscapeUtils.escapeJson(dest) + \"\\\"}\";\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\tresp = \"{\\\"ret\\\": \\\"failure\\\", \\\"reason\\\": \\\"\" + e.getLocalizedMessage() + \"\\\"}\";\n\t\t\t\n\t\t}\n\n\t\treturn resp;\n\t\t\n\t}", "public String getRemoteUri() {\n return remoteUri;\n }", "private void pull(FederationModel registration) throws Exception {\n\t\tMap<String, RepositoryModel> repositories = FederationUtils.getRepositories(registration,\n\t\t\t\ttrue);\n\t\tString registrationFolder = registration.folder.toLowerCase().trim();\n\t\t// confirm valid characters in server alias\n\t\tCharacter c = StringUtils.findInvalidCharacter(registrationFolder);\n\t\tif (c != null) {\n\t\t\tlogger.error(MessageFormat\n\t\t\t\t\t.format(\"Illegal character ''{0}'' in folder name ''{1}'' of federation registration {2}!\",\n\t\t\t\t\t\t\tc, registrationFolder, registration.name));\n\t\t\treturn;\n\t\t}\n\t\tFile repositoriesFolder = gitblit.getRepositoriesFolder();\n\t\tFile registrationFolderFile = new File(repositoriesFolder, registrationFolder);\n\t\tregistrationFolderFile.mkdirs();\n\n\t\t// Clone/Pull the repository\n\t\tfor (Map.Entry<String, RepositoryModel> entry : repositories.entrySet()) {\n\t\t\tString cloneUrl = entry.getKey();\n\t\t\tRepositoryModel repository = entry.getValue();\n\t\t\tif (!repository.hasCommits) {\n\t\t\t\tlogger.warn(MessageFormat.format(\n\t\t\t\t\t\t\"Skipping federated repository {0} from {1} @ {2}. Repository is EMPTY.\",\n\t\t\t\t\t\trepository.name, registration.name, registration.url));\n\t\t\t\tregistration.updateStatus(repository, FederationPullStatus.SKIPPED);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Determine local repository name\n\t\t\tString repositoryName;\n\t\t\tif (StringUtils.isEmpty(registrationFolder)) {\n\t\t\t\trepositoryName = repository.name;\n\t\t\t} else {\n\t\t\t\trepositoryName = registrationFolder + \"/\" + repository.name;\n\t\t\t}\n\n\t\t\tif (registration.bare) {\n\t\t\t\t// bare repository, ensure .git suffix\n\t\t\t\tif (!repositoryName.toLowerCase().endsWith(DOT_GIT_EXT)) {\n\t\t\t\t\trepositoryName += DOT_GIT_EXT;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// normal repository, strip .git suffix\n\t\t\t\tif (repositoryName.toLowerCase().endsWith(DOT_GIT_EXT)) {\n\t\t\t\t\trepositoryName = repositoryName.substring(0,\n\t\t\t\t\t\t\trepositoryName.indexOf(DOT_GIT_EXT));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// confirm that the origin of any pre-existing repository matches\n\t\t\t// the clone url\n\t\t\tString fetchHead = null;\n\t\t\tRepository existingRepository = gitblit.getRepository(repositoryName);\n\n\t\t\tif (existingRepository == null && gitblit.isCollectingGarbage(repositoryName)) {\n\t\t\t\tlogger.warn(MessageFormat.format(\"Skipping local repository {0}, busy collecting garbage\", repositoryName));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (existingRepository != null) {\n\t\t\t\tStoredConfig config = existingRepository.getConfig();\n\t\t\t\tconfig.load();\n\t\t\t\tString origin = config.getString(\"remote\", \"origin\", \"url\");\n\t\t\t\tRevCommit commit = JGitUtils.getCommit(existingRepository,\n\t\t\t\t\t\torg.eclipse.jgit.lib.Constants.FETCH_HEAD);\n\t\t\t\tif (commit != null) {\n\t\t\t\t\tfetchHead = commit.getName();\n\t\t\t\t}\n\t\t\t\texistingRepository.close();\n\t\t\t\tif (!origin.startsWith(registration.url)) {\n\t\t\t\t\tlogger.warn(MessageFormat\n\t\t\t\t\t\t\t.format(\"Skipping federated repository {0} from {1} @ {2}. Origin does not match, consider EXCLUDING.\",\n\t\t\t\t\t\t\t\t\trepository.name, registration.name, registration.url));\n\t\t\t\t\tregistration.updateStatus(repository, FederationPullStatus.SKIPPED);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// clone/pull this repository\n\t\t\tCredentialsProvider credentials = new UsernamePasswordCredentialsProvider(\n\t\t\t\t\tConstants.FEDERATION_USER, registration.token);\n\t\t\tlogger.info(MessageFormat.format(\"Pulling federated repository {0} from {1} @ {2}\",\n\t\t\t\t\trepository.name, registration.name, registration.url));\n\n\t\t\tCloneResult result = JGitUtils.cloneRepository(registrationFolderFile, repository.name,\n\t\t\t\t\tcloneUrl, registration.bare, credentials);\n\t\t\tRepository r = gitblit.getRepository(repositoryName);\n\t\t\tRepositoryModel rm = gitblit.getRepositoryModel(repositoryName);\n\t\t\trepository.isFrozen = registration.mirror;\n\t\t\tif (result.createdRepository) {\n\t\t\t\t// default local settings\n\t\t\t\trepository.federationStrategy = FederationStrategy.EXCLUDE;\n\t\t\t\trepository.isFrozen = registration.mirror;\n\t\t\t\trepository.showRemoteBranches = !registration.mirror;\n\t\t\t\tlogger.info(MessageFormat.format(\" cloning {0}\", repository.name));\n\t\t\t\tregistration.updateStatus(repository, FederationPullStatus.MIRRORED);\n\t\t\t} else {\n\t\t\t\t// fetch and update\n\t\t\t\tboolean fetched = false;\n\t\t\t\tRevCommit commit = JGitUtils.getCommit(r, org.eclipse.jgit.lib.Constants.FETCH_HEAD);\n\t\t\t\tString newFetchHead = commit.getName();\n\t\t\t\tfetched = fetchHead == null || !fetchHead.equals(newFetchHead);\n\n\t\t\t\tif (registration.mirror) {\n\t\t\t\t\t// mirror\n\t\t\t\t\tif (fetched) {\n\t\t\t\t\t\t// update local branches to match the remote tracking branches\n\t\t\t\t\t\tfor (RefModel ref : JGitUtils.getRemoteBranches(r, false, -1)) {\n\t\t\t\t\t\t\tif (ref.displayName.startsWith(\"origin/\")) {\n\t\t\t\t\t\t\t\tString branch = org.eclipse.jgit.lib.Constants.R_HEADS\n\t\t\t\t\t\t\t\t\t\t+ ref.displayName.substring(ref.displayName.indexOf('/') + 1);\n\t\t\t\t\t\t\t\tString hash = ref.getReferencedObjectId().getName();\n\n\t\t\t\t\t\t\t\tJGitUtils.setBranchRef(r, branch, hash);\n\t\t\t\t\t\t\t\tlogger.info(MessageFormat.format(\" resetting {0} of {1} to {2}\", branch,\n\t\t\t\t\t\t\t\t\t\trepository.name, hash));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString newHead;\n\t\t\t\t\t\tif (StringUtils.isEmpty(repository.HEAD)) {\n\t\t\t\t\t\t\tnewHead = newFetchHead;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewHead = repository.HEAD;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJGitUtils.setHEADtoRef(r, newHead);\n\t\t\t\t\t\tlogger.info(MessageFormat.format(\" resetting HEAD of {0} to {1}\",\n\t\t\t\t\t\t\t\trepository.name, newHead));\n\t\t\t\t\t\tregistration.updateStatus(repository, FederationPullStatus.MIRRORED);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// indicate no commits pulled\n\t\t\t\t\t\tregistration.updateStatus(repository, FederationPullStatus.NOCHANGE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// non-mirror\n\t\t\t\t\tif (fetched) {\n\t\t\t\t\t\t// indicate commits pulled to origin/master\n\t\t\t\t\t\tregistration.updateStatus(repository, FederationPullStatus.PULLED);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// indicate no commits pulled\n\t\t\t\t\t\tregistration.updateStatus(repository, FederationPullStatus.NOCHANGE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// preserve local settings\n\t\t\t\trepository.isFrozen = rm.isFrozen;\n\t\t\t\trepository.federationStrategy = rm.federationStrategy;\n\n\t\t\t\t// merge federation sets\n\t\t\t\tSet<String> federationSets = new HashSet<String>();\n\t\t\t\tif (rm.federationSets != null) {\n\t\t\t\t\tfederationSets.addAll(rm.federationSets);\n\t\t\t\t}\n\t\t\t\tif (repository.federationSets != null) {\n\t\t\t\t\tfederationSets.addAll(repository.federationSets);\n\t\t\t\t}\n\t\t\t\trepository.federationSets = new ArrayList<String>(federationSets);\n\n\t\t\t\t// merge indexed branches\n\t\t\t\tSet<String> indexedBranches = new HashSet<String>();\n\t\t\t\tif (rm.indexedBranches != null) {\n\t\t\t\t\tindexedBranches.addAll(rm.indexedBranches);\n\t\t\t\t}\n\t\t\t\tif (repository.indexedBranches != null) {\n\t\t\t\t\tindexedBranches.addAll(repository.indexedBranches);\n\t\t\t\t}\n\t\t\t\trepository.indexedBranches = new ArrayList<String>(indexedBranches);\n\n\t\t\t}\n\t\t\t// only repositories that are actually _cloned_ from the origin\n\t\t\t// Gitblit repository are marked as federated. If the origin\n\t\t\t// is from somewhere else, these repositories are not considered\n\t\t\t// \"federated\" repositories.\n\t\t\trepository.isFederated = cloneUrl.startsWith(registration.url);\n\n\t\t\tgitblit.updateConfiguration(r, repository);\n\t\t\tr.close();\n\t\t}\n\n\t\tIUserService userService = null;\n\n\t\ttry {\n\t\t\t// Pull USERS\n\t\t\t// TeamModels are automatically pulled because they are contained\n\t\t\t// within the UserModel. The UserService creates unknown teams\n\t\t\t// and updates existing teams.\n\t\t\tCollection<UserModel> users = FederationUtils.getUsers(registration);\n\t\t\tif (users != null && users.size() > 0) {\n\t\t\t\tFile realmFile = new File(registrationFolderFile, registration.name + \"_users.conf\");\n\t\t\t\trealmFile.delete();\n\t\t\t\tuserService = new ConfigUserService(realmFile);\n\t\t\t\tfor (UserModel user : users) {\n\t\t\t\t\tuserService.updateUserModel(user.username, user);\n\n\t\t\t\t\t// merge the origin permissions and origin accounts into\n\t\t\t\t\t// the user accounts of this Gitblit instance\n\t\t\t\t\tif (registration.mergeAccounts) {\n\t\t\t\t\t\t// reparent all repository permissions if the local\n\t\t\t\t\t\t// repositories are stored within subfolders\n\t\t\t\t\t\tif (!StringUtils.isEmpty(registrationFolder)) {\n\t\t\t\t\t\t\tif (user.permissions != null) {\n\t\t\t\t\t\t\t\t// pulling from >= 1.2 version\n\t\t\t\t\t\t\t\tMap<String, AccessPermission> copy = new HashMap<String, AccessPermission>(user.permissions);\n\t\t\t\t\t\t\t\tuser.permissions.clear();\n\t\t\t\t\t\t\t\tfor (Map.Entry<String, AccessPermission> entry : copy.entrySet()) {\n\t\t\t\t\t\t\t\t\tuser.setRepositoryPermission(registrationFolder + \"/\" + entry.getKey(), entry.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// pulling from <= 1.1 version\n\t\t\t\t\t\t\t\tList<String> permissions = new ArrayList<String>(user.repositories);\n\t\t\t\t\t\t\t\tuser.repositories.clear();\n\t\t\t\t\t\t\t\tfor (String permission : permissions) {\n\t\t\t\t\t\t\t\t\tuser.addRepositoryPermission(registrationFolder + \"/\" + permission);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// insert new user or update local user\n\t\t\t\t\t\tUserModel localUser = gitblit.getUserModel(user.username);\n\t\t\t\t\t\tif (localUser == null) {\n\t\t\t\t\t\t\t// create new local user\n\t\t\t\t\t\t\tgitblit.addUser(user);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// update repository permissions of local user\n\t\t\t\t\t\t\tif (user.permissions != null) {\n\t\t\t\t\t\t\t\t// pulling from >= 1.2 version\n\t\t\t\t\t\t\t\tMap<String, AccessPermission> copy = new HashMap<String, AccessPermission>(user.permissions);\n\t\t\t\t\t\t\t\tfor (Map.Entry<String, AccessPermission> entry : copy.entrySet()) {\n\t\t\t\t\t\t\t\t\tlocalUser.setRepositoryPermission(entry.getKey(), entry.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// pulling from <= 1.1 version\n\t\t\t\t\t\t\t\tfor (String repository : user.repositories) {\n\t\t\t\t\t\t\t\t\tlocalUser.addRepositoryPermission(repository);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlocalUser.password = user.password;\n\t\t\t\t\t\t\tlocalUser.canAdmin = user.canAdmin;\n\t\t\t\t\t\t\tgitblit.reviseUser(localUser.username, localUser);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfor (String teamname : gitblit.getAllTeamNames()) {\n\t\t\t\t\t\t\tTeamModel team = gitblit.getTeamModel(teamname);\n\t\t\t\t\t\t\tif (user.isTeamMember(teamname) && !team.hasUser(user.username)) {\n\t\t\t\t\t\t\t\t// new team member\n\t\t\t\t\t\t\t\tteam.addUser(user.username);\n\t\t\t\t\t\t\t\tgitblit.updateTeamModel(teamname, team);\n\t\t\t\t\t\t\t} else if (!user.isTeamMember(teamname) && team.hasUser(user.username)) {\n\t\t\t\t\t\t\t\t// remove team member\n\t\t\t\t\t\t\t\tteam.removeUser(user.username);\n\t\t\t\t\t\t\t\tgitblit.updateTeamModel(teamname, team);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// update team repositories\n\t\t\t\t\t\t\tTeamModel remoteTeam = user.getTeam(teamname);\n\t\t\t\t\t\t\tif (remoteTeam != null) {\n\t\t\t\t\t\t\t\tif (remoteTeam.permissions != null) {\n\t\t\t\t\t\t\t\t\t// pulling from >= 1.2\n\t\t\t\t\t\t\t\t\tfor (Map.Entry<String, AccessPermission> entry : remoteTeam.permissions.entrySet()){\n\t\t\t\t\t\t\t\t\t\tteam.setRepositoryPermission(entry.getKey(), entry.getValue());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tgitblit.updateTeamModel(teamname, team);\n\t\t\t\t\t\t\t\t} else if (!ArrayUtils.isEmpty(remoteTeam.repositories)) {\n\t\t\t\t\t\t\t\t\t// pulling from <= 1.1\n\t\t\t\t\t\t\t\t\tteam.addRepositoryPermissions(remoteTeam.repositories);\n\t\t\t\t\t\t\t\t\tgitblit.updateTeamModel(teamname, team);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ForbiddenException e) {\n\t\t\t// ignore forbidden exceptions\n\t\t} catch (IOException e) {\n\t\t\tlogger.warn(MessageFormat.format(\n\t\t\t\t\t\"Failed to retrieve USERS from federated gitblit ({0} @ {1})\",\n\t\t\t\t\tregistration.name, registration.url), e);\n\t\t}\n\n\t\ttry {\n\t\t\t// Pull TEAMS\n\t\t\t// We explicitly pull these even though they are embedded in\n\t\t\t// UserModels because it is possible to use teams to specify\n\t\t\t// mailing lists or push scripts without specifying users.\n\t\t\tif (userService != null) {\n\t\t\t\tCollection<TeamModel> teams = FederationUtils.getTeams(registration);\n\t\t\t\tif (teams != null && teams.size() > 0) {\n\t\t\t\t\tfor (TeamModel team : teams) {\n\t\t\t\t\t\tuserService.updateTeamModel(team);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ForbiddenException e) {\n\t\t\t// ignore forbidden exceptions\n\t\t} catch (IOException e) {\n\t\t\tlogger.warn(MessageFormat.format(\n\t\t\t\t\t\"Failed to retrieve TEAMS from federated gitblit ({0} @ {1})\",\n\t\t\t\t\tregistration.name, registration.url), e);\n\t\t}\n\n\t\ttry {\n\t\t\t// Pull SETTINGS\n\t\t\tMap<String, String> settings = FederationUtils.getSettings(registration);\n\t\t\tif (settings != null && settings.size() > 0) {\n\t\t\t\tProperties properties = new Properties();\n\t\t\t\tproperties.putAll(settings);\n\t\t\t\tFileOutputStream os = new FileOutputStream(new File(registrationFolderFile,\n\t\t\t\t\t\tregistration.name + \"_\" + Constants.PROPERTIES_FILE));\n\t\t\t\tproperties.store(os, null);\n\t\t\t\tos.close();\n\t\t\t}\n\t\t} catch (ForbiddenException e) {\n\t\t\t// ignore forbidden exceptions\n\t\t} catch (IOException e) {\n\t\t\tlogger.warn(MessageFormat.format(\n\t\t\t\t\t\"Failed to retrieve SETTINGS from federated gitblit ({0} @ {1})\",\n\t\t\t\t\tregistration.name, registration.url), e);\n\t\t}\n\n\t\ttry {\n\t\t\t// Pull SCRIPTS\n\t\t\tMap<String, String> scripts = FederationUtils.getScripts(registration);\n\t\t\tif (scripts != null && scripts.size() > 0) {\n\t\t\t\tfor (Map.Entry<String, String> script : scripts.entrySet()) {\n\t\t\t\t\tString scriptName = script.getKey();\n\t\t\t\t\tif (scriptName.endsWith(\".groovy\")) {\n\t\t\t\t\t\tscriptName = scriptName.substring(0, scriptName.indexOf(\".groovy\"));\n\t\t\t\t\t}\n\t\t\t\t\tFile file = new File(registrationFolderFile, registration.name + \"_\"\n\t\t\t\t\t\t\t+ scriptName + \".groovy\");\n\t\t\t\t\tFileUtils.writeContent(file, script.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ForbiddenException e) {\n\t\t\t// ignore forbidden exceptions\n\t\t} catch (IOException e) {\n\t\t\tlogger.warn(MessageFormat.format(\n\t\t\t\t\t\"Failed to retrieve SCRIPTS from federated gitblit ({0} @ {1})\",\n\t\t\t\t\tregistration.name, registration.url), e);\n\t\t}\n\t}", "public static void retrieveFile(String instanceId, String localPath, String remotePath, String fileName)\n\t{\n\t\tLOGGER.info(\"Retrieving file \" + remotePath + \"/\" + fileName + \" from \" + instanceId + \"...\");\n\t\tString absFilePath = \"\";\n\t\tboolean retrieved = false;\n\t\tif (localPath != null && !localPath.isEmpty())\n\t\t{\n\t\t\tabsFilePath = localPath + \"/\" + fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tabsFilePath = fileName;\n\t\t}\n\t\tLOGGER.info(\"Full file path: \" + absFilePath);\n\t\tSession session = null;\n\t\tChannelSftp channel = null;\n\n\t\t// establish a ssh session\n\t\tLOGGER.info(\"Establishing a new session...\");\n\t\ttry\n\t\t{\n\t\t\t// retrieve session for specified instance\n\t\t\tsession = RemoteCommand.retrieveSession(instanceId);\n\t\t\tsession.connect(RemoteCommand.SESSION_TIMEOUT); // 30s timeout\n\n\t\t\t// create sftp channel\n\t\t\tchannel = (ChannelSftp) session.openChannel(\"sftp\");\n\t\t\tchannel.connect(RemoteCommand.CONNECTION_TIMEOUT);\n\t\t\tif (remotePath != null && !remotePath.isEmpty())\n\t\t\t{\n\t\t\t\tchannel.cd(remotePath);\n\t\t\t}\n\n\t\t\t// retrieve file from remote location\n\t\t\tchannel.get(remotePath.concat(fileName), localPath.concat(fileName));\n\t\t\tretrieved = true;\n\t\t}\n\t\tcatch (JSchException | SftpException e)\n\t\t{\n\t\t\tLOGGER.severe(e.getClass().getSimpleName() + \": \" + e.getMessage());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t// close channel and session\n\t\t\tif (channel != null && channel.isConnected())\n\t\t\t{\n\t\t\t\tchannel.disconnect();\n\t\t\t}\n\t\t\tif (session != null && session.isConnected())\n\t\t\t{\n\t\t\t\tsession.disconnect();\n\n\t\t\t\t// discard session: this is a workaround for\n\t\t\t\t// packet loss closing session after a SFTP channel connection\n//\t\t\t\tEC2Service.discardSession(instanceId);\n\t\t\t}\n\t\t}\n\n\t\tif (retrieved)\n\t\t{\n\t\t\tLOGGER.info(\n\t\t\t\t\t\"Retrieved file \" + fileName +\n\t\t\t\t\t\" from \" + \"\\\"\" + remotePath + \"\\\"\" +\n\t\t\t\t\t\" of instance \" + instanceId + \".\"\n\t\t\t);\n\t\t}\n\t}", "private Step copyRemoteFiles() {\n return stepBuilderFactory.get(STEP_COPY_REMOTE_FILES)\n .tasklet(copyRemoteFilesTask)\n .build();\n }", "public Object folderPath() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath();\n }", "public String getRemoteURL(){\r\n\t\treturn this.remoteURL;\r\n\t}", "public boolean routeToFolder(String parentFolder, String fileName, String userId, String subjectId, String originalFileName,\r\n\t\t\tString ftpHost, String ftpUser, String ftpPassword, String remoteFtpRoot, \r\n\t\t\tboolean isPublic) throws IOException {\r\n\t\tboolean success = true;\r\n//\t\tboolean isCreated = false;\r\n\t\tString publicPrivate = isPublic ? \"public\": \"private\";\r\n\t\t\r\n\t\tApacheCommonsFtpWrapper ftpWrap = new ApacheCommonsFtpWrapper(ftpHost, ftpUser, ftpPassword);\r\n\t\t\r\n\t\tcreateDirectoryNames(remoteFtpRoot, userId, subjectId, publicPrivate, originalFileName);\r\n\t\tsuccess = makeInOutDirectories(ftpWrap, originalFileName, fileName);\r\n\r\n\t\ttry {\r\n\t\t\tString inputPath = isPublic ? input: privateInput;\r\n\t success = moveFileFTP(ftpWrap, inputPath, parentFolder, originalFileName, fileName);\r\n\t } catch (Exception ex) {\r\n\t log.error(\"Failed to write file: \" + originalFileName + \" isPublic: \" + isPublic);\r\n\t \tex.printStackTrace();\r\n\t \tsuccess = false;\r\n\t }\r\n\t \r\n\t return success;\r\n\t}", "public void addIsLocalClause() {\n if (!queryTarget.isCompatibleLocal()) {\n throw new IllegalArgumentException(\"Cannot addIsLocalFolderClause b/c DBQueryOperation already has a remote target\");\n }\n queryTarget = QueryTarget.LOCAL;\n allResultsQuery = false;\n includeIsLocalFolders = true;\n }", "public FilePath resolve(String relPath) {\n if (path.isEmpty()) {\n return FilePath.of(relPath);\n }\n return FilePath.of(path + \"/\" + relPath);\n }", "void getCurrentCourseLocalPathRoot(String phoneGapCallback, GetCourseLocalPathRootCompleted callback);", "public static void buildFromHttpDir() throws FtpException, IOException {\n\t\tURL url = new URL(\"http://mrms.ncep.noaa.gov/data/3DReflPlus/\");\r\n\t\t\t\r\n\t\tDirectoryScanner scanner = new DirectoryScanner();\r\n\t\tListResults results = scanner.listURL(url);\r\n\t\tSystem.out.println(results.getCount() + \" results found...\");\r\n\t\tfor (URL u : results.getUrlList()) {\r\n\r\n//\t\t\t<entry name=\"BrightBandBottomHeight\" type=\"DIRECT_URL\"\r\n//\t\t\t\t\tlocation=\"http://mrms.ncep.noaa.gov/data/2D/BrightBandBottomHeight/\" />\r\n\r\n\t\t\tString name = u.getFile().split(\"/\")[u.getFile().split(\"/\").length-1];\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" <entry name=\\\"\"+name+\"\\\" type=\\\"REMOTE_DIR\\\" location=\\\"\"+u+\"\\\" />\");\r\n\t\t}\r\n\t}", "public Path getRepositoryGroupBaseDir();", "TrackerClient locate(String path);", "public LocalRichFinder getLocalRichFinder() {\n\t\treturn localRichFinder;\n\t}", "private IFolder getSortedFolder() {\n \t\tString sortedFolder = (String) arguments.get(SORTED_FOLDER);\n \t\tif (sortedFolder == null)\n \t\t\tsortedFolder = DEFAULT_SORTED_FOLDER;\n \t\treturn getProject().getFolder(sortedFolder);\n \t}", "public Path getPath() {\r\n return getTargetPath().resolve(folder);\r\n }", "public FTPFile[][] compareServerAndLocalList(FTPFile[] serverNewspaperFolderList, FTPFile[][] serverNewspaperFileList)\n {\n\n if (serverNewspaperFolderList != null && serverNewspaperFolderList.length > 0)\n {\n // First, allocate as many newspapers as we have on server totally (folders)\n // The download list will contain all folders and files that should be downloaded, can be null!\n FTPFile[][] downloadList = new FTPFile[serverNewspaperFolderList.length][];\n\n // Loop through the server folder list\n // Start from the end, if the server folders are sorted we can opt out to optimize this later\n // Download all folders that are newer than the newest local folder\n for(int serverFolderID = serverNewspaperFolderList.length -1; serverFolderID >= 0; serverFolderID--)\n {\n // Local folder list empty (first time before any date folders are created or everything deleted)\n if (localNewspaperDateFolderList == null || localNewspaperDateFolderList.length == 0)\n {\n downloadList[serverFolderID] = new FTPFile[serverNewspaperFileList[serverFolderID].length];\n downloadList[serverFolderID] = serverNewspaperFileList[serverFolderID];\n continue;\n }\n\n boolean foundServerFolder = false;\n\n // Loop through the local folder list for each server folder and compare\n for(int localFolderLoopID = 0; localFolderLoopID < localNewspaperDateFolderList.length; localFolderLoopID++)\n {\n String localFolderName = localNewspaperDateFolderList[localFolderLoopID].getName(); // 20190521 for example\n\n if (serverNewspaperFolderList[serverFolderID].getName().compareTo(localFolderName) == 0 )\n {\n // == 0 -> equal\n foundServerFolder = true;\n\n // Allocate memory before we loop through the list\n downloadList[serverFolderID] = new FTPFile[serverNewspaperFileList[serverFolderID].length];\n\n // Ok, we have the folder on both server ftp and locally\n // Now we need to loop through all files, because the phone may have been restarted in the middle of download process and all files are not guaranteed to exist\n // Note to programmers, if you would delete a file manually in the middle of mp3 range (for example speechgen0034.mp3) on server or locally, that file would be missing\n // and would mess up the local list or server list to be out of sync -> 34 locally would be compared to filesize of file 35 on server etc.. which means it will download\n // all files (even if 35 would match 35 with the file size, they would have different array ID).\n // However, this works great as it is now and will sync local folders to be identical as server.\n int serverFilesNum = serverNewspaperFileList[serverFolderID].length;\n for(int fileID = 0; fileID < serverFilesNum; fileID++)\n {\n long serverFileSize = 0;\n long localFileSize = 0;\n\n // Get the file size on server\n if(serverNewspaperFileList[serverFolderID][fileID] != null)\n serverFileSize = serverNewspaperFileList[serverFolderID][fileID].getSize();\n\n if(localNewspaperFileList != null && localNewspaperFileList[localFolderLoopID] != null && fileID < localNewspaperFileList[localFolderLoopID].length && localNewspaperFileList[localFolderLoopID][fileID] != null)\n {\n // Get the local file size\n localFileSize = localNewspaperFileList[localFolderLoopID][fileID].length();\n }\n\n if (localFileSize != serverFileSize)\n {\n\n // The localNewspaperFileList[localFolderID][fileID].length() will not be 100% same every time we check the list\n long diff = serverFileSize - localFileSize;\n long absDiff = 0;\n try\n {\n absDiff = Math.abs(diff);\n } catch (Exception e)\n {\n absDiff = diff;\n }\n\n if (localFileSize != 0) // We don't need to show this for files that does not exist locally\n LogDAO.getInstance().add(\"/\" + localFolderName + \"/\" + serverNewspaperFileList[serverFolderID][fileID].getName() + \" differs with bytes: \" + Long.toString(absDiff));\n\n if (!BuildConfig.DEBUG || (BuildConfig.DEBUG && absDiff > 32)) // take alignment into account (only differs in debug version)\n {\n // Mark the file for download\n downloadList[serverFolderID][fileID] = serverNewspaperFileList[serverFolderID][fileID];\n }\n }\n else\n {\n // Don't download, we already have the same file locally\n downloadList[serverFolderID][fileID] = null;\n }\n } // end for loop for files\n\n continue; // We can skip the rest of local folders, will be looped through again on next server folder\n }\n }\n\n if(!foundServerFolder)\n {\n // Ok, when we get here we know that the folder on server does not at all exist locally, download whole folder!\n\n // NOTE, the serverNewspaperFileList[serverFolderID].length can be about double size (because of calculated non mp3 files in the folder)\n downloadList[serverFolderID] = new FTPFile[serverNewspaperFileList[serverFolderID].length];\n downloadList[serverFolderID] = serverNewspaperFileList[serverFolderID];\n }\n\n }\n return downloadList;\n }\n return null;\n }", "public GitRemote getRemote(String aName) { return new GitRemote(aName); }", "@Cold\n @Override\n public Single<Uri> getDownloadUrl(String remoteDestinationPath) {\n return RxTask.toSingle(() -> createReference(remoteDestinationPath).getDownloadUrl())\n .doOnError(e -> Timber.e(\"StorageException handled and can be ignored\"));\n }", "public GitBranch getRemoteBranch()\n {\n if(getName().contains(\"/remotes/\")) return null;\n return getRemote().getBranch(getSimpleName());\n }", "public void addIsRemoteClause() {\n if (queryTarget == QueryTarget.LOCAL) {\n throw new IllegalArgumentException(\n \"Cannot addIsRemoteFolderClause b/c DBQueryOperation already has a local target\");\n }\n if (!(queryTarget == QueryTarget.REMOTE || queryTarget == QueryTarget.UNSPECIFIED)) {\n throw new IllegalArgumentException(\n \"Cannot addIsRemoteFolderClause b/c DBQueryOperation already has a remote target: \" + queryTarget);\n }\n queryTarget = QueryTarget.REMOTE;\n allResultsQuery = false;\n includeIsRemoteFolders = true;\n }", "public void saveLink() {\n\t\t\t// check to see if the file exists locally\n\t\t\tString localFile = localUrl + \"/\" + filePath;\n\n\t\t\tboolean finished = false;\n\t\t\twhile (!finished) {\n\t\t\t\ttry {\n\n\t\t\t\t\tFile file = new File(localFile);\n\t\t\t\t\t// build remote path\n\t\t\t\t\tString finalRemoteUrl = remoteUrl;\n\t\t\t\t\tif (filePath.startsWith(\"/\")) {\n\t\t\t\t\t\tURL url = new URL(finalRemoteUrl);\n\t\t\t\t\t\tfinalRemoteUrl = url.getProtocol() + \"://\" + url.getHost();\n\t\t\t\t\t}\n\n\t\t\t\t\tString remoteFile = finalRemoteUrl + filePath;\n\t\t\t\t\tif (file.canRead() && !file.isDirectory()) {\n\t\t\t\t\t\tLong fileLength = file.length();\n\t\t\t\t\t\t// if it does, check to see if it is complete based on\n\t\t\t\t\t\t// length of file\n\t\t\t\t\t\tlogger.trace(\"file/dir already exists: {}\", localFile);\n\t\t\t\t\t\tURLConnection connection = buildConnection(remoteFile);\n\t\t\t\t\t\tMap<String, List<String>> map = connection.getHeaderFields();\n\t\t\t\t\t\tif (map.get(\"Content-Length\") == null) {\n\t\t\t\t\t\t\tlogger.debug(\"no header fields were returned when attempting to access: {}\", remoteFile);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLong remoteLength = Long.parseLong(map.get(\"Content-Length\").iterator().next());\n\n\t\t\t\t\t\t// if it is not complete, resume downloading\n\t\t\t\t\t\tif (remoteLength > fileLength || fileLength == 0) {\n\t\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile, fileLength, remoteLength);\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.trace(\"file is already complete, moving on\");\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if it is does not exist, create the directory or file\n\t\t\t\t\t\tlogger.trace(\"file does not exist: {}\", localFile);\n\n\t\t\t\t\t\t// take care of the directory structure\n\t\t\t\t\t\tFiles.createParentDirs(new File(localFile));\n\n\t\t\t\t\t\t// save the file\n\t\t\t\t\t\tlogger.trace(\"preparing to write remote file {} to local file {}\", new Object[] { remoteFile,\n\t\t\t\t\t\t\t\tlocalFile });\n\n\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile);\n\t\t\t\t\t\tlogger.trace(\"file created: {}\", localFile);\n\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// timeout took place. pause, then let the loop execute\n\t\t\t\t\t// again\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tfinished = true;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tlogger.debug(\"will try again in {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(TIMEOUT_TIME);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\tlogger.error(\"failed while trying to wait {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\t}\n\t\t\t\t\tlogger.debug(\"just woke up, trying again\");\n\t\t\t\t\tfinished = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcounter.incrementAndGet();\n\t\t\tlogger.debug(\"successfully downloaded the file {} from {} to {} - {}\", new Object[] { filePath, remoteUrl,\n\t\t\t\t\tlocalUrl, completionMessage() });\n\n\t\t\tLinesToFileWriter lineWriter = new LinesToFileWriter(localUrl, COMPLETED_PATH_LIST, true);\n\t\t\t// write line to completed file list\n\t\t\tlineWriter.writeLine(filePath);\n\t\t\tlineWriter.close();\n\t\t}", "public static InputStream download(FileSystem fs, String remotePath) throws IOException {\n return fs.open(new Path(remotePath));\n }" ]
[ "0.69891393", "0.6705057", "0.6467512", "0.6432654", "0.6237192", "0.622466", "0.60464644", "0.59550714", "0.5952907", "0.59467775", "0.5912071", "0.5869442", "0.5642914", "0.5607874", "0.55863833", "0.5540095", "0.54149216", "0.5410726", "0.5291221", "0.52909005", "0.52672344", "0.52489346", "0.52263564", "0.52204883", "0.52029", "0.5194716", "0.5164619", "0.51554495", "0.51473385", "0.5103246", "0.50692415", "0.5055461", "0.5050619", "0.5025118", "0.5014094", "0.5009499", "0.5002605", "0.49828303", "0.49795973", "0.4949885", "0.4942148", "0.49127042", "0.4902461", "0.49007913", "0.48919895", "0.48862115", "0.48512816", "0.48402798", "0.48253384", "0.4824037", "0.4823812", "0.4822227", "0.48186994", "0.4815926", "0.48137605", "0.4799375", "0.47957823", "0.47929364", "0.4792723", "0.47860008", "0.47850177", "0.47842872", "0.4763664", "0.4750691", "0.4746185", "0.4745868", "0.4730218", "0.4723698", "0.4720363", "0.47177735", "0.4715062", "0.4705802", "0.4702026", "0.47016534", "0.46970797", "0.46883816", "0.46581972", "0.46576524", "0.46509716", "0.46504024", "0.46492785", "0.4647495", "0.4642224", "0.4632555", "0.46304587", "0.46267447", "0.46217653", "0.4621582", "0.46183845", "0.46134588", "0.4612057", "0.4610736", "0.45966348", "0.45944196", "0.4590268", "0.45894143", "0.45865747", "0.45849818", "0.4578489", "0.45693907" ]
0.67846996
1
Removes, from the list of entries in the specified folder, those whose ids match the ids passed in the parameter
public Folder removeFolderEntries(Folder folder, List<Long> entries) { try { folder = currentSession().get(Folder.class, folder.getId()); folder.getContents().removeIf(entry -> entries.contains(entry.getId())); folder.setModificationTime(new Date()); currentSession().update(folder); return folder; } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(String ids);", "public void deleteAllBookMarksOfFolder (long folderId) throws BookMarkException;", "public abstract void delete(Iterable<Long> ids);", "public void deleteMulti(String ids);", "@Override\n\tpublic void remove(List<Long> ids) throws ApplicationException {\n\n\t}", "@Override\r\n public void deleteFolder(long id) {\n this.folderRepository.deleteById(id);; \r\n }", "boolean excluir(long id);", "void deleteMulti(String[] pids);", "void remover(Long id);", "void remover(Long id);", "public void delete(Long[] ids) throws ProcessingException;", "@AfterClass(groups ={\"All\"})\n\tpublic void deleteFolder() {\n\t\ttry {\n\t\t\tUserAccount account = dciFunctions.getUserAccount(suiteData);\n\t\t\tUniversalApi universalApi = dciFunctions.getUniversalApi(suiteData, account);\n\t\t\tif(suiteData.getSaasApp().equalsIgnoreCase(\"Salesforce\")){\n\t\t\t\tfor(String id:uploadId){\n\t\t\t\t\tMap<String,String> fileInfo = new HashMap<String,String> ();\n\t\t\t\t\tfileInfo.put(\"fileId\", id);\n\t\t\t\t\tdciFunctions.deleteFile(universalApi, suiteData, fileInfo);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tdciFunctions.deleteFolder(universalApi, suiteData, folderInfo);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogger.info(\"Issue with Delete Folder Operation \" + ex.getLocalizedMessage());\n\t\t}\n\t}", "void folderDeleted(String remoteFolder);", "private void removeNecessarySharedFiles(List<SharedFile> shared) {\n Iterator<com.cs407.noted.File> iterator = convertedSharedFiles.iterator();\n\n while (iterator.hasNext()) {\n com.cs407.noted.File file1 = iterator.next();\n boolean isIn = false;\n for (SharedFile sharedFile: shared) {\n if (sharedFile.getNoteID().equals(file1.getId())) {\n // remove the file\n isIn = true;\n break;\n }\n }\n if (!isIn) {\n iterator.remove();\n }\n }\n }", "@Override\n\tpublic void delete(List<Long> ids) {\n\t}", "void deleteTrackerSearches(final Integer id);", "@Override\n\tpublic boolean doRemoveBatch(Set<Integer> ids) throws Exception\n\t{\n\t\treturn false;\n\t}", "void deleteTrackerListOs(final Integer id);", "@Override\n\tpublic ResultWrapper<Boolean> deleteMultiple(Map<String, List<Integer>> map) {\n\t\tResultWrapper<Boolean> rs = new ResultWrapper<Boolean>();\n\t\tList<Integer> listofIds = map.get(\"deleteMultiple\");\n\t\tIterator<Integer> itr = listofIds.iterator();\n\t\ttry {\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tInteger todoId = itr.next();\n\t\t\t\ttodosRepo.deleteById(todoId);\n\t\t\t}\n\t\t\trs.succeedDeleted(true);\n\t\t\treturn rs;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\trs.fail(false, \" Exception Occurs \"+e);\n\t\t\treturn rs;\n\t\t}\n\n\t}", "@Override\r\n\tpublic void batchDelete(String[] ids) {\n\t\tfor(int i=0;i<ids.length;i++)\r\n\t\t\tdelete(ids[i]);\t\r\n\t}", "private void resetIdsToFind()\r\n\t{\r\n\t\t/*\r\n\t\t * Reset all lists of given search items to empty lists, indicating full\r\n\t\t * search without filtering, if no search items are added.\r\n\t\t */\r\n\t\tsetSpectrumIdsTarget(new ArrayList<String>());\r\n\t}", "private void prune(java.io.File localDir, List<File> driveFiles) {\n java.io.File[] localArray = localDir.listFiles();\n for (java.io.File f : localArray) {\n boolean found = false;\n String lname = f.getName();\n for (File gf : driveFiles) {\n String gname = gf.getTitle();\n if (lname.equals(gname))\n found = true;\n }\n if (!found) {\n Log.e(\"DELETE PRUNE\", f.getParentFile().getName() + \"/\" + f.getName());\n deleteFile(f);\n }\n }\n }", "private void prune(java.io.File localDir, List<File> driveFiles, boolean dir) {\n java.io.File[] localArray = localDir.listFiles();\n for (java.io.File f : localArray) {\n if (!dir) {\n // only consider folders\n if (!f.isDirectory())\n continue;\n } else {\n // only consider files\n if (f.isDirectory())\n continue;\n }\n boolean found = false;\n String lname = f.getName();\n for (File gf : driveFiles) {\n String gname = gf.getTitle();\n if (lname.equals(gname))\n found = true;\n }\n if (!found) {\n Log.e(\"DELETE PRUNE\", f.getParentFile().getName() + \"/\" + f.getName());\n deleteFile(f);\n }\n }\n }", "int deleteByPrimaryKeyBulk(@Param(\"ids\") List<Long> ids);", "private void deleteFilesFromDirectory(ArrayList<File> files)\n {\n for(File file:files) {\n Log.i(\"file\",\"indide\"+file.getPath());\n if (file.exists()) {\n Log.i(\"file\",\"exist\"+file.getPath());\n if (file.delete()) {\n Log.i(\"file\",\"delted successfully\"+file.getPath());\n } else {\n Log.i(\"file\",\"unable to delte file\"+file.getPath());\n }\n }\n }\n }", "int batchDelete(List<Integer> ids);", "public void deleteAll(int[] ids) {\n\t\tmapper.deleteAll(ids);\n\t}", "@Override\n public boolean delete(List<String> ids) {\n return false;\n }", "public static void eliminaSezione(long idSezione) {\n\t\t// TODO Auto-generated method stub\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.DELETE_FOLDER;\n\t\trp.parameters = new Object[] { idSezione };\n\t\tsend(rp);\n\t}", "public static boolean removeMRFiles( String dir, ArrayList entries_todelete ) {\n \n for (Iterator i=entries_todelete.iterator(); i.hasNext();) {\n String entry_code = (String) i.next();\n String fname = dir + File.separator + entry_code + \".mr\";\n File f = new File(fname);\n if ( ! f.delete() ) {\n General.showError(\"in MRAnnotate.removeMRFiles found:\");\n General.showError(\"Deleting the annotated MR file [\"+fname+\"]\");\n return false;\n } else {\n General.showOutput(\"Deleted the annotated MR file for entry: [\"+entry_code+\"]\");\n }\n }\n return true;\n }", "public static boolean removeMRFilesInteractively( String dir, ArrayList entries_todelete ) {\n \n// String reply = \"bogus\";\n boolean status;\n \n General.showOutput(\"Entries to delete: [\" + entries_todelete.size() + \"]\");\n General.showOutput(\"Entries to delete: \" + entries_todelete.toString() );\n \n General.showWarning(\"answering yes to the following question will lead to\");\n General.showWarning(\"deleting work that might not be recovered!\");\n \n String prompt = \"Delete ALL the MR files for the above entries from the directory:\"+dir+\"?\";\n if ( Strings.getInputBoolean( in, prompt ) ) {\n General.showOutput(\"Deleting the annotated MR files listed above.\");\n status = removeMRFiles( dir, entries_todelete );\n if ( ! status ) {\n General.showError(\"in MRAnnotate.removeMRFilesInteractively found:\");\n General.showError(\"Deleting the annotated MR files failed.\");\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic void deleteByPrimaryKeys(String ids) throws Exception {\n\t\tList<String> list = new ArrayList<String>();\n\t\t\n\t\tString[] strings = ids.split(\",\");\n\t\tfor (String string : strings) {\n\t\t\tlist.add(string);\n\t\t}\n\t\tstorageMapper.deleteByPrimaryKeys(list);\n\t}", "public UpdateResponse deleteById(List<String> ids) throws SolrServerException, IOException {\n return deleteById(ids, -1);\n }", "public void removeByid_(long id_);", "@Override\r\n\tpublic void deleteByIds(int[] ids) {\n\t\tdao.deleteByIds(ids);\r\n\t}", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "public void removeMusic(Integer[]id) {\n\t\tmusicdao.deleteMusic(id);\r\n\t}", "@Override\r\n\tpublic CustomResult deleteBatch(String[] ids) throws Exception{\n\t\tint i = materialConsumeMapper.deleteBatch(ids);\r\n\t\tif(i>0){\r\n\t\t\treturn CustomResult.ok();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private void searchAndRemoveFileFromShared(final String fileID, final String userID) {\n String path = String.format(\"users/%s/shared\", userID);\n DatabaseReference df = database.getReference(path);\n df.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds: dataSnapshot.getChildren()) {\n SharedFile sf = ds.getValue(SharedFile.class);\n String id = sf.getNoteID();\n if (id.equals(fileID)) {\n String path = String.format(\"users/%s/shared/%s\", userID, ds.getKey());\n DatabaseReference df = database.getReference(path);\n df.removeValue();\n break;\n }\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "@Override\n\tpublic boolean deleteSongsFromPlaylist(long paramLong,\n\t\t\tlong[] paramArrayOfLong, int paramInt)\n\t{\n\t\treturn false;\n\t}", "@Override\n\tpublic void delete(Serializable[] ids) {\n\t\tmapper.delete(ids);\n\t\t\n\t}", "public static void remove(ArrayList<Medicine> list, int id){\n // search by id\n Medicine medicine = search(list, id);\n list.remove(medicine); // reomve from list\n }", "void deleteTrackerListResolution(final Integer id);", "public void removeCueWords(ArrayList<Long> ids){\n\t\tfor(int i = 0; i < ids.size(); i++){\r\n\t\t\tfor(int a = 0; a < cueWords.size(); a++){\r\n\t\t\t\tif(ids.get(i) == cueWords.get(a)){\r\n\t\t\t\t\tcueWords.remove(a);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n//\t\tLog.i(\"TAG\", \"After: \" + cueWords.size());\r\n\t}", "private void deletion(String pids) {\n\t\tDeletions(pids);\n\t\t\n\t}", "public List<Long> getEntryIds(Folder folder) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n query.select(entry.get(\"id\")).where(getBuilder().equal(from, folder));\n return currentSession().createQuery(query).list();\n } catch (Exception e) {\n Logger.error(e);\n throw new DAOException(e);\n }\n }", "@Override\r\n\tpublic ServerResponse2 deleteById(Integer id) {\n\t\tint flag = folderMapper.deleteById(id,0);\r\n\t\tif(flag>0) {\r\n\t\t\treturn ServerResponse2.createBySuccess();\r\n\t\t}else {\r\n\t\t\treturn ServerResponse2.createByError();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void removeByIdRichiesta(long id_richiesta) {\n\t\tfor (LocalRichInfo localRichInfo : findByIdRichiesta(id_richiesta,\n\t\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}", "public void removeResourceTypes(final Map idList);", "synchronized void remove(int id) {\n // server scans array list until id of the client that has logged off is found\n for (int i = 0; i < al.size(); ++i) {\n ClientThread ct = al.get(i);\n // found it, now remove the client with that id\n if (ct.id == id) {\n al.remove(i);\n return;\n }\n }\n }", "@Override\n\tpublic void delAllLcSongsFromPlaylist(long paramLong)\n\t{\n\n\t}", "void removeIdFromList(Integer mCanalId);", "private static Document removeIDfromList(Document doc, String id) {\n NodeList participantsList = doc.getElementsByTagName(\"participant\");\n for (int x = 0; x < participantsList.getLength(); x++) {\n Element participant = (Element) participantsList.item(x);\n String idValue = participant.getAttribute(\"id\");\n if (idValue.equalsIgnoreCase(id)) {\n System.out.println(\"Id \" + participant.getAttribute(\"id\") + \" will be removed\");\n MessageDialog.getInstance().addLine(\"Id \" + participant.getAttribute(\"id\") + \" will be removed\");\n participant.getParentNode().removeChild(participant);\n doc.normalize();\n return doc; //No need to go further\n }\n }\n return doc;\n }", "public UpdateResponse deleteById(List<String> ids, int commitWithinMs) throws SolrServerException, IOException {\n UpdateRequest req = new UpdateRequest();\n req.deleteById(ids);\n req.setCommitWithin(commitWithinMs);\n return req.process(this);\n }", "@Override\n public boolean delete(String ids) {\n return false;\n }", "void removeAllEntries();", "public void deleteAll(int[] id) {\n\t\tdao.deleteAll(id);\r\n\t}", "@Override\n\tpublic void delete(String[] ids) throws Exception {\n\t\t\n\t}", "public void deleteContentById(List<String> ids) {\n\t\tSystem.out.println(\"Deleting Doc...\");\n\t\ttry {\n\t\t\tserver.deleteById(ids);\n\t\t\tserver.commit();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tSystem.out.println(\"Finished deleting Doc.\");\n\t}", "public void removeKanjiBookmarkList(List<KanjiDto> dtos, final CallBackListener<Boolean> callBack) {\n close();\n ContentResolver cr = mContext.getContentResolver();\n DaoAsyncQueryHandler queryHandler = new DaoAsyncQueryHandler(cr);\n\n\n queryHandler.setOnUpdateCompleteListener(new DaoAsyncQueryHandler.OnUpdateCompleteListener() {\n @Override\n public void onUpdateComplete(int var1, int var2) {\n if (var2 > 0) {\n callBack.onSuccess(true);\n } else {\n callBack.onSuccess(false);\n }\n }\n });\n\n StringBuilder sb = new StringBuilder(\"id IN (\");\n for (KanjiDto dto : dtos) {\n sb.append(\"'\").append(dto.kid).append(\"'\").append(\",\");\n }\n sb.append(\")\");\n String selection =sb.toString().replace(\",)\", \")\");\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_NOT_BOOKMARKED.toString());\n\n queryHandler.startUpdate(0, null, KanjiContentProvider.KANJI_URI, contentValues, selection, null);\n\n }", "public void removeAllMoviesInList(int id) {\n String selection = ColumnMoviesList.ID_LIST + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n\n deleteAnyRow(MOVIESLIST_TABLE_NAME, selection, selectionArgs);\n }", "void remove(long directoryId, String userName);", "public synchronized void clear ()\n {\n for ( final Map.Entry<Object, FolderListener> entry : this.listeners.entrySet () )\n {\n entry.getValue ().changed ( entry.getKey (), new LinkedList<Entry> (), new LinkedList<String> (), true );\n }\n \n for ( final Map.Entry<String, Entry> entry : this.entryMap.entrySet () )\n {\n if ( entry instanceof FolderEntryCommon )\n {\n ( (FolderEntryCommon)entry ).getFolder ().removed ();\n }\n }\n \n this.entryMap.clear ();\n }", "public int deleteDictDataByIds(String[] ids);", "public final void unlockObjects(ArrayList<String> ids) {\n lockedActorIDs.removeAll(ids);\n }", "public void removeItem(int id);", "public long removeNames(long id, java.util.List<Long> list) {\n\t\tif(treeMap.containsKey(id)) {\n\t\t\tTreeSet<Long> ts = treeMap.get(id).descriptionSet;\n\t\t\tTreeSet<Long> desc = new TreeSet<>(list);\n\t\t\tif (list.isEmpty())\n\t\t\t\treturn 0;\n\t\t\tLong sum = 0L;\n\t\t\tfor (Long descId : list) {\n\t\t\t\tif (ts.contains(descId)) {\n\t\t\t\t\tsum += descId;\n\t\t\t\t\tif (hashMap.containsKey(descId)) {\n\t\t\t\t\t\tTreeSet<Long> updateValues = hashMap.get(descId);\n\t\t\t\t\t\tupdateValues.remove(id);\n\t\t\t\t\t\tif (updateValues.isEmpty()) {\n\t\t\t\t\t\t\thashMap.remove(descId);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\thashMap.replace(descId, updateValues);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tts.remove(descId);\n\t\t\t\t}\n\t\t\t}\n\t\t\tMDSEntry mdsEntry = new MDSEntry(id, ts, treeMap.get(id).price);\n\t\t\ttreeMap.replace(id, mdsEntry);\n\t\t\treturn sum;\n\t\t}\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void delete(Long[] ids) {\n\t\tfor (Long id : ids) {\r\n\t\t\ttestRecordDao.delete(id);\r\n\t\t}\r\n\t}", "void remove(Long id);", "void remove(Long id);", "@Override\n\tpublic int deleteBatch(String[] idArr) {\n\t\treturn 0;\n\t}", "private void removeLocalEntry(int dbId,\n ArrayList<ContentProviderOperation> batch,\n SyncResult syncResult) {\n\n Uri deleteUri = CONTENT_URI.buildUpon().appendPath(Integer.toString(dbId)).build();\n Log.i(TAG, \"Scheduling delete: \" + deleteUri);\n batch.add(ContentProviderOperation.newDelete(deleteUri).build());\n syncResult.stats.numDeletes++;\n }", "public void eliminar(Long id) throws AppException;", "public void deleteAll(Integer[] ids) {\n\t\tsubjectdao.deleteAll(ids);\n\t}", "@Override\n\tpublic Result<String> delete(List<Long> ids) {\n\t\treturn null;\n\t}", "public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);", "@Override\n\tpublic int batchRemove(Long[] id) {\n\t\treturn sysEquipmentGroupMapper.batchRemove(id);\n\t}", "@Override\n\tpublic String deleteBatch(List<? extends Number> ids, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String deleteBatch(List<? extends Number> ids, Model m) throws Exception {\n\t\treturn null;\n\t}", "private void replenishAuthFolderList(List<Folder> authFolderList) throws BizfwServiceException {\n List<Folder> parentFolderList = new ArrayList<>();\n for (Folder folder : authFolderList) {\n List<Folder> tempParentFolderList = getParentFolders(folder);\n parentFolderList.addAll(tempParentFolderList);\n }\n for (Folder folder : parentFolderList) {\n if (!authFolderList.contains(folder)) {\n authFolderList.add(folder);\n }\n }\n }", "void eliminar(Long id);", "void deleteTrackerUsersInGroups(final Integer id);", "public void removeFiles(String filter)\n {\n for (String s : fileList) {\n if (!s.contains(filter)) {\n fileList.remove(s);\n }\n }\n }", "public void delAll(List list);", "public void supprimerLivres(View view) {\n /* recuperer les ids des livres selectionnes dans\n * la liste de livres\n */\n long[] ids = list.getCheckedItemIds();\n if (ids.length == 0)\n return;\n\n for (long id : ids) {\n Log.d(\"supprimer id =\", id + \"\");\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"content\")\n .authority(authority)\n .appendPath(\"book_table\");\n /* id du livre a supprimer a la fin de uri */\n ContentUris.appendId(builder, id);\n Uri uri = builder.build();\n\n int res = getContentResolver().delete(uri, null, null);\n Log.d(\"result of delete=\", res + \"\");\n }\n /* apres la suppression de titres mettre a jour la liste\n de titres, id_author ne change pas */\n getLoaderManager().restartLoader(1, null, callbackTitres);\n }", "public void multiDeleteSPEntries(List<SalePurchase> spEntriesParam) {\n\t\tfor(SalePurchase st : spEntriesParam){\n\t\t\tsalePurchaseEntries.remove(st.getSPId());\n\t\t}\n\t}", "public void delete(int id) {\n\tListIterator<Book> listItr = list.listIterator();\n\twhile(listItr.hasNext()) {\n\t\tBook book2 = listItr.next();\n\t\tif(book2.id == id) {\n\t\t\tlistItr.remove();\n\t\t\tSystem.out.println(\"Successfully deleted: \"+id);\n\t\t\treturn;\n\t\t}\n\t}\n\tSystem.out.println(\"No such Book ID exists\");\n}", "public void excludeAllFiles(){\n for(Map.Entry<String,File> entry : dataSourcesDirectories.entrySet()){\n \n //Get directory\n File dir = entry.getValue();\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete();\n \n //Delete directory\n dir.delete();\n \n }\n \n //For each directory created for each service\n for(Map.Entry<String,File> entry : servicesDirectories.entrySet()){\n \n //Get directory\n File dir = entry.getValue();\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete();\n \n //Delete directory\n dir.delete();\n \n }\n \n //Finally, delete sessionDirectory\n if(sessionDirectory != null)\n sessionDirectory.delete();\n \n }", "private IClasspathEntry[] removeSourceClasspath(IClasspathEntry[] entries, IContainer folder) {\n if (folder == null) {\n return entries;\n }\n IClasspathEntry source = JavaCore.newSourceEntry(folder.getFullPath());\n int n = entries.length;\n for (int i = n - 1; i >= 0; i--) {\n if (entries[i].equals(source)) {\n IClasspathEntry[] newEntries = new IClasspathEntry[n - 1];\n if (i > 0) System.arraycopy(entries, 0, newEntries, 0, i);\n if (i < n - 1) System.arraycopy(entries, i + 1, newEntries, i, n - i - 1);\n n--;\n entries = newEntries;\n }\n }\n return entries;\n }", "public void eliminarCajeros(int id);", "@Override\n\tpublic boolean batchDelFollowers(List<Serializable> ids) {\n\t\treturn false;\n\t}", "public void removeListingById(int id) throws SQLException;", "@Override\n\tpublic Result delComBorrowings(String id) {\n\t\tString[] item = id.split(\",\");\n\t\tint ret = 0;\n\t\tfor (int i = 0; i < item.length; i++) { \n\t\t\tret = comBorrowingsMapper.deleteByPrimaryKey(Long.parseLong(item[i])); \n\t\t}\n\t\tif (ret == 0) {\n\t\t\treturn Result.build(500, \"ɾ³ýʧ°Ü£¡\");\n\t\t}\n\t\treturn Result.ok();\n\t}", "void remove(int id);", "@Override\n\tpublic void deleteTrendsById(List<?> ids) {\n\t\ttrendsDao.deleteTrendsById(ids);\n\t}", "public clearAlarmByIds_args(clearAlarmByIds_args other) {\n if (other.isSetIds()) {\n List<Integer> __this__ids = new ArrayList<Integer>();\n for (Integer other_element : other.ids) {\n __this__ids.add(other_element);\n }\n this.ids = __this__ids;\n }\n }", "private void cleanFolder(File[] files) {\n \t\t\n \t\tif (files != null) {\n \t\t\t// Iterate the files\n \t\t\tfor (int i = 0; i < files.length; i++) {\n \t\t\t\tFile f = files[i];\n \t\t\t\t// If the file is a directory, remove its contents recursively\n \t\t\t\tif (f.isDirectory()) {\n \t\t\t\t\tcleanFolder(f.listFiles());\n \t\t\t\t}\n \t\t\t\t// Remove the file if it is a class file\n \t\t\t\tif (f.getName().endsWith(\".class\"))\n \t\t\t\t\tf.delete();\n \t\t\t}\n \t\t}\n \t}", "@Override\n\tpublic void removeByIdSala(long id_sala) {\n\t\tfor (Approvatore approvatore : findByIdSala(id_sala, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(approvatore);\n\t\t}\n\t}", "public void removeFromIdValidationList(String id)\n { \n idValidation.remove(id); \n }", "@Override\n\tpublic int batchDeleteAsksByIds(Integer[] idIntegerArr) {\n\t\treturn 0;\n\t}" ]
[ "0.61366576", "0.6029293", "0.5959214", "0.5835029", "0.5754369", "0.5673455", "0.5586253", "0.5579397", "0.55666304", "0.55666304", "0.55320317", "0.5515686", "0.5510417", "0.5462521", "0.5452232", "0.5434459", "0.5421117", "0.540256", "0.5396964", "0.53925365", "0.5388565", "0.5375967", "0.5357134", "0.53312373", "0.5329023", "0.53232205", "0.530474", "0.5302888", "0.5294047", "0.5292862", "0.5285476", "0.5274075", "0.52693325", "0.5267728", "0.52665454", "0.52529573", "0.52126735", "0.5212594", "0.52015793", "0.51791584", "0.5175212", "0.51737255", "0.5165918", "0.5162542", "0.5152037", "0.5145206", "0.5143379", "0.51421094", "0.51306075", "0.5130076", "0.5128256", "0.5120231", "0.50897145", "0.50874025", "0.5085595", "0.50853014", "0.5084853", "0.5073222", "0.507255", "0.5066963", "0.5063914", "0.50636053", "0.5061544", "0.50596523", "0.50555927", "0.50451285", "0.5035209", "0.5034876", "0.5024576", "0.5024576", "0.5021752", "0.5010174", "0.50076574", "0.49992186", "0.49987146", "0.49920645", "0.4987199", "0.49770296", "0.49770296", "0.49766275", "0.49516", "0.4945932", "0.49330705", "0.49279407", "0.49269414", "0.49237636", "0.49231613", "0.49176672", "0.4915079", "0.4903712", "0.49030787", "0.49000478", "0.48985857", "0.4894348", "0.4891577", "0.48913273", "0.48890814", "0.488133", "0.48770112", "0.4871146" ]
0.6710236
0
Retrieves the count of the number of contents in the folder. Currently, it is assumed that the contents of folders are only entries. The entries that are counted are those that have a visibility of "OK"
public Long getFolderSize(long id, String filter, boolean visibleOnly) { try { CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); List<Predicate> predicates = getPredicates(entry, filter); if (visibleOnly) { predicates.add(entry.get("visibility").in(Arrays.asList(Visibility.OK.getValue(), Visibility.REMOTE.getValue()))); } predicates.add(getBuilder().equal(from.get("id"), id)); query.select(getBuilder().countDistinct(entry.get("id"))); query.where(predicates.toArray(new Predicate[0])); return currentSession().createQuery(query).uniqueResult(); } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getNumberOfFiles() {\n\t\tIterator<FileSystemItem> it = this.content.iterator();\n\t\tint numberOfFiles = 0;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\tif(it.next().isDirectory() == false) {\n\t\t\t\tnumberOfFiles++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn numberOfFiles;\n\t}", "int getContentsCount();", "int getFilesCount();", "int getFilesCount();", "int getFileInfoCount();", "int getEntryCount();", "public int getFileCount(File folder) {\n\t\treturn folder.list().length;\n\t}", "int getFileCount();", "int getNumbersOfRowsInFolder(String path) {\n return getFilesInFolder(path).length;\n }", "public long countEntries() {\n\t\tlong entries=0;\n\t\ttry {\n\t\t\tentries=Files.lines(new File(PAYROLL_FILE_NAME).toPath()).count();\n\t\t}catch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn entries;\n\t}", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "public int getEntryCount() {\n if (entryBuilder_ == null) {\n return entry_.size();\n } else {\n return entryBuilder_.getCount();\n }\n }", "public int getNumberOfEntries();", "public String getNumFiles() {\n\t\ttry {\n\t\t\tFile dir = new File(getLocationOfFiles());\n\t\t\treturn Long.toString(dir.listFiles(new XMLFileFilter()).length);\n\t\t} catch (Throwable e) {\n\t\t\treturn \"0\";\n\t\t}\n\t}", "public Number getFileCount() {\r\n\t\treturn (this.fileCount);\r\n\t}", "public int numberOfEntries();", "public int getFilesCount() throws YAPI_Exception\n {\n return get_filesCount();\n }", "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return files_.size();\n } else {\n return filesBuilder_.getCount();\n }\n }", "public int size(){\n\t\treturn contents.size();\n\t}", "public int size() {\n return files.size();\n }", "public int getNumberOfEntries() ;", "public int getFileCount() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList)\n return ((JList)list).getModel().getSize();\n else if(list instanceof JTable)\n return ((JTable)list).getModel().getRowCount();\n else\n throw new IllegalStateException(\"Wrong component type\");\n }", "public int size()\n\t{\n\t\treturn contents.length;\n\t}", "public int size()\n\t{\n\t\tint size = 0;\n\t\t\n\t\tfor (LinkedList<Entry> list : entries)\n\t\t\tsize += (list == null) ? 0 : list.size();\n\t\t\n\t\treturn size;\n\t}", "public int getEntryCount() {\n return entry_.size();\n }", "public long getNumberOfFilesInDirectory() {\n ClassLoader classLoader = getClass().getClassLoader();\n File directoryFile = new File(classLoader.getResource(directoryString).getFile());\n\n return directoryFile.listFiles().length;\n }", "int findAllCount() ;", "public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }", "@Override\r\n\tpublic int countAll() {\r\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\tFINDER_ARGS_EMPTY, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_SHARE);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\r\n\t\t\t\t\tcount);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\t\tFINDER_ARGS_EMPTY);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CATEGORY);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int size() {\n return contents;\n }", "@Override\n\tpublic int size() {\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.size();\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "@java.lang.Override\n public int getFilesCount() {\n return files_.size();\n }", "int getFileNamesCount();", "int getFileNamesCount();", "Long getAllCount();", "public int getnumFiles() {\r\n\t\t//initialize the variable numFiles \r\n\t\tthis.numFiles=0;\r\n\r\n\t\t/*An enhanced for loop is used to iterate through the arraylist.\r\n\t\t * An if statement checks in the object at the \"item\" index is of type file\r\n\t\t * If it is the numFiles variable is incremented by 1.\r\n\t\t * Otherwise, it is a directory, and the the getnumFiles is called recursively to search\r\n\t\t * for files in the folder.\r\n\t\t */\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tif(item instanceof File){\r\n\t\t\t\tthis.numFiles ++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.numFiles += item.getnumFiles();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn numFiles;\r\n\t}", "public int countFile(String path){\r\n int count=0;\r\n String filename;\r\n File dir = new File(path);\r\n\r\n String[] children = dir.list();\r\n if (children == null) {\r\n count = 0;\r\n }else {\r\n count = children.length;\r\n }\r\n return count;\r\n }", "int getPermissionsCount();", "public int getCacheCount() {\n DiskCacheManager diskCacheManager = getDiskCacheManager();\n if (diskCacheManager == null) return 0;\n return diskCacheManager.getCacheCount();\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ANSWER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getContentCount()\r\n\t{\r\n\t\treturn this.contentItems.size();\r\n\t}", "int getFHPackagesCount();", "int countFile(String path) {\n return readFile(path).length;\n }", "public int get_filesCount() throws YAPI_Exception\n {\n int res;\n synchronized (this) {\n if (_cacheExpiration <= YAPIContext.GetTickCount()) {\n if (load(_yapi._defaultCacheValidity) != YAPI.SUCCESS) {\n return FILESCOUNT_INVALID;\n }\n }\n res = _filesCount;\n }\n return res;\n }", "int getSeenInfoCount();", "public int size() {\n\t\treturn numEntries;\n\t}", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public int size() {\n\t\treturn this.contents.size();\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LOCALRICHINFO);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getTotalCount();", "public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}", "public int getNumEntries ()\n\t{\n\t\treturn entries.size ();\n\t}", "public int getNumEntries() {\n return entries.size();\n }", "public Integer getNumberOfEntries() {\n return this.numberOfEntries;\n }", "int getProgressCount();", "int getProgressCount();", "int getProgressCount();", "public int size()\n {\n // check if the cache needs flushing\n checkFlush();\n\n return super.size();\n }", "@Override\n\tpublic int totalContentCount(String searchVar) {\n\t\treturn template.selectOne(\"board.totalContentCount\",searchVar);\n\t}", "public static int getFileCount(String path)\r\n {\r\n int lines=0;\r\n System.out.println(\"Path of the source file is: \"+path);\r\n String raw_output_lines = new String();\r\n try\r\n {\r\n Channel line_channel=Syncer.session.openChannel(\"exec\");\r\n String get_count_cmd=\"wc -l < \"+path;\r\n System.out.println(get_count_cmd);\r\n ((ChannelExec)line_channel).setCommand(get_count_cmd);\r\n line_channel.setInputStream(null);\r\n ((ChannelExec)line_channel).setErrStream(System.err); \r\n in=line_channel.getInputStream();\r\n line_channel.connect(); \r\n while(true)\r\n {\r\n while(in.available()>0)\r\n {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n raw_output_lines = br.readLine();\r\n System.out.println(\"Raw_output: \"+raw_output_lines);\r\n }\r\n if(line_channel.isClosed())\r\n break; \r\n }\r\n in.close();\r\n line_channel.disconnect();\r\n System.out.println(\"Out of loop\");\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Lines (in string): \"+raw_output_lines);\r\n String buffer = new String(raw_output_lines);\r\n System.out.println(\"Out of loop\");\r\n lines = Integer.parseInt(buffer);\r\n System.out.println(\"Out of loop\");\r\n System.out.println(\"lines FOUND: \"+lines);\r\n return lines;\r\n }", "public int size() {\n\t\treturn wc.size();\n\t}", "public int size() {\r\n return archive.size();\r\n }", "int entryCount() {\n return settings.size();\n }", "int entryCount() {\n return settings.size();\n }", "@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }", "int getStatMetadataCount();", "public int size() {\n return tree.count();\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LINKGROUP);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public long getEntryCount(String filter) {\n if (isAdmin) {\n return dao.getAllEntryCount(filter);\n }\n\n Set<Group> accountGroups = new HashSet<>(account.getGroups());\n accountGroups.add(everybodyGroup);\n return dao.visibleEntryCount(account, accountGroups, filter);\n }", "@Test\n\tpublic void testCountItems() {\n\t\tFile test = new File(\"X:\\\\Documents\\\\PS9 Test\");\n\t\tassertEquals(13,Explorer.countItems(test));\n\t}", "public long size(String path);", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_TESTUNIT);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getItemsCount();", "int getItemsCount();", "int getPathsCount();", "public Integer size() { return this.entries.length(); }", "int getNodeStatusListCount();", "public int size() {\n\t\treturn root.count();\n\t}", "int getCachedCount();", "int getInfoCount();", "int getInfoCount();", "int getInfoCount();", "int getListCount();", "public int getTotalCount() {\n return totalCount;\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CAMPUS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_RIGODOCUMENTO);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getNumEntries() {\n return numEntries;\n }", "public synchronized int size() {\n return count;\n }", "long getOwnedEntryCount();" ]
[ "0.70711184", "0.70182973", "0.6828141", "0.6828141", "0.6699118", "0.66578966", "0.6611687", "0.6594894", "0.6375187", "0.6277507", "0.62546873", "0.6253942", "0.62489027", "0.61285985", "0.61265373", "0.6107047", "0.6091024", "0.6084672", "0.60705817", "0.6068664", "0.60678124", "0.6066228", "0.6065119", "0.60525835", "0.60509676", "0.60411763", "0.60246444", "0.6023637", "0.60047865", "0.600381", "0.59931004", "0.59897614", "0.5988127", "0.5978232", "0.5978232", "0.5956918", "0.59431964", "0.59376574", "0.59153986", "0.5907604", "0.59040546", "0.5896531", "0.58892936", "0.5884703", "0.5864974", "0.58642507", "0.58640784", "0.58636564", "0.5860547", "0.5856577", "0.5850342", "0.58396816", "0.58339286", "0.58334243", "0.5831776", "0.5828627", "0.5828627", "0.5828627", "0.5819751", "0.58133024", "0.5812259", "0.5810494", "0.5810135", "0.58030176", "0.58030176", "0.5795728", "0.57945305", "0.57933044", "0.5787733", "0.5780628", "0.5775098", "0.57702553", "0.57664174", "0.57664174", "0.57664174", "0.57664174", "0.57664174", "0.57664174", "0.57664174", "0.57664174", "0.57664174", "0.57664174", "0.5765892", "0.5765323", "0.5765323", "0.5761893", "0.57591313", "0.5755289", "0.5750233", "0.5749478", "0.57369834", "0.57369834", "0.57369834", "0.5730749", "0.5728157", "0.57100403", "0.5707602", "0.57020783", "0.5698065", "0.5693846" ]
0.5971647
35
Retrieves the ids of any entries that are contained in the specified folder; optionally filtered by entry type
public List<Long> getFolderContentIds(long folderId, EntryType type, boolean visibleOnly) { try { CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); ArrayList<Predicate> predicates = new ArrayList<>(); predicates.add(getBuilder().equal(from.get("id"), folderId)); if (visibleOnly) { predicates.add(getBuilder().equal(entry.get("visibility"), Visibility.OK.getValue())); } if (type != null) { predicates.add(getBuilder().equal(entry.get("recordType"), type.getName())); } query.select(entry.get("id")).where(predicates.toArray(new Predicate[0])); return currentSession().createQuery(query).list(); } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Long> getEntryIds(Folder folder) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n query.select(entry.get(\"id\")).where(getBuilder().equal(from, folder));\n return currentSession().createQuery(query).list();\n } catch (Exception e) {\n Logger.error(e);\n throw new DAOException(e);\n }\n }", "public ArrayList<ApplicationPickerEntry> getEntries( String folder ) {\n\t\t\n\t\tArrayList<ApplicationPickerEntry> entries = new ArrayList<ApplicationPickerEntry>();\n\t\t\n\t\ttry {\n\t\t\tFile targetFolder = null;\n\t\t\t\n\t\t\tif (StringUtil.isEmpty(folder) || folder.equals(\"root\")) {\n\t\t\t\t\n\t\t\t\ttargetFolder = new File( dominoDataDir );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttargetFolder = new File( dominoDataDir + folder );\n\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<File> files = new ArrayList<File>(Arrays.asList(targetFolder.listFiles()));\n\t\t\t\n\t\t\tfor (File file : files) {\n\t\t\t\t\n\t\t\t\tString name = file.getName();\n\t\t\t\tString ext = name.substring( name.lastIndexOf(\".\")+1);\n\t\t\t\t\n\t\t\t\tString relativePath = file.getAbsolutePath().replace(dominoDataDir, \"\");\n\t\t\t\t\n\t\t\t\t//add only directories and applications\n\t\t\t\tif (ext.equalsIgnoreCase(\"nsf\") || file.isDirectory()) {\n\t\t\t\t\t\n\t\t\t\t\tApplicationPickerEntry entry = new ApplicationPickerEntry( name, relativePath, name, file.isDirectory() );\n\t\t\t\t\t\n\t\t\t\t\tentries.add( entry );\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//sort the entries\n\t\t\tCollections.sort(entries);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tDebugToolbar.get().error(e);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn entries;\n\t\t\n\t\t\n\t}", "public List<String> getContentTypes(long folderId) {\n try {\n CriteriaQuery<String> query = getBuilder().createQuery(String.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n query.select(entry.get(\"recordType\")).distinct(true);\n query.where(getBuilder().equal(from.get(\"id\"), folderId));\n return currentSession().createQuery(query).list();\n } catch (HibernateException e) {\n Logger.error(e);\n throw new DAOException(e);\n }\n }", "public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);", "public Collection<GlobalIdEntry> getAllEntries();", "public List<Long> retrieveFolderContents(long folderId, PageParameters pageParameters, boolean visibleOnly) {\n try {\n String sortString;\n switch (pageParameters.getSortField()) {\n default:\n case CREATED:\n sortString = \"id\";\n break;\n\n case STATUS:\n sortString = \"status\";\n break;\n\n case NAME:\n sortString = \"name\";\n break;\n\n case PART_ID:\n sortString = \"partNumber\";\n break;\n\n case TYPE:\n sortString = \"recordType\";\n break;\n }\n\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n List<Predicate> predicates = getPredicates(entry, pageParameters.getFilter());\n predicates.add(getBuilder().equal(from.get(\"id\"), folderId));\n\n if (visibleOnly) {\n predicates.add(entry.get(\"visibility\").in(Arrays.asList(Visibility.OK.getValue(),\n Visibility.REMOTE.getValue())));\n }\n query.select(entry.get(\"id\")).where(predicates.toArray(new Predicate[0]));\n query.orderBy(pageParameters.isAscending() ? getBuilder().asc(entry.get(sortString)) :\n getBuilder().desc(entry.get(sortString)));\n return currentSession().createQuery(query).setFirstResult(pageParameters.getOffset())\n .setMaxResults(pageParameters.getLimit()).list();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "Iterable<MailFolderDO> findAllByFolderId(long folderId);", "java.lang.String getFolderId();", "public ArrayList<FeedFolder> findFolderByUserID(Integer uid);", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "public List<String> searchForIds(String theQueryUrl) {\n\t\tIBundleProvider result = searchForBundleProvider(theQueryUrl);\n\n\t\t// getAllResources is not safe as size is not always set\n\t\treturn result.getResources(0, Integer.MAX_VALUE).stream()\n\t\t\t\t.map(resource -> resource.getIdElement().getIdPart())\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public Set getDirectoryEntrySet() {\r\n\t\treturn new HashSet(entryMap.values());\r\n\t}", "List<DirectoryEntry> listAllDirEntries(OkHttpClient client, String token, String repo_id);", "public List getAllIds();", "Enumeration<String> getEntryPaths(String path) throws IOException;", "public static ArrayList getEntriesFromClassifiedMRFiles() {\n \n ArrayList entries = sql_epiII.getPDBIdFromMRFileByDetail( SQL_Episode_II.FILE_DETAIL_CLASSIFIED );\n \n if (entries == null) {\n General.showError(\"getting entry codes from the db.\");\n return (entries);\n }\n Collections.sort(entries);\n return (entries);\n }", "Enumeration getIds();", "public static ArrayList<Integer> getAllFileIDs() {\n ArrayList<Integer> fileIDs = new ArrayList();\n\n String sql = \"SELECT DISTINCT fileID FROM files;\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n while (rs.next()) {\n fileIDs.add(rs.getInt(\"fileID\"));\n }\n return fileIDs;\n } catch (SQLException e) {\n System.out.println(\"getAllFileIDs: \" + e.getMessage());\n }\n return null;\n\n }", "com.google.protobuf.ByteString\n getFolderIdBytes();", "private static ArrayList<Folder> hiddenFolders(Context context) {\n final String FILE_TYPE_NO_MEDIA = \".nomedia\";\n\n ArrayList<Folder> listOfHiddenFiles = new ArrayList<>();\n\n String nonMediaCondition = MediaStore.Files.FileColumns.MEDIA_TYPE\n + \"=\" + MediaStore.Files.FileColumns.MEDIA_TYPE_NONE;\n\n String where = nonMediaCondition + \" AND \"\n + MediaStore.Files.FileColumns.TITLE + \" LIKE ?\";\n\n String[] params = new String[]{\"%\" + FILE_TYPE_NO_MEDIA + \"%\"};\n\n Cursor cursor = context.getContentResolver().query(\n MediaStore.Files.getContentUri(\"external\"),\n new String[]{MediaStore.Files.FileColumns._ID,\n MediaStore.Files.FileColumns.DATA,\n MediaStore.Files.FileColumns.DISPLAY_NAME},\n where,\n params, null);\n\n // No Hidden file found\n if (cursor.getCount() == 0) {\n // showAll Nothing Found\n return listOfHiddenFiles;\n }\n\n ArrayList<File> ids = new ArrayList<>();\n\n // Add Hidden file name, path and directory in file object\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(MediaStore.Files.FileColumns._ID));\n\n Uri vidUri = Uri.withAppendedPath(MediaStore.Files.getContentUri(\"external\"), id);\n File file = new File(getRealPathFromHiddenURI(context, vidUri)).getParentFile();\n //Log.d(\"MEME\", file.getAbsolutePath());\n\n if (!ids.contains(file)) {\n ids.add(file);\n\n checkAndAddFolder(file, listOfHiddenFiles, true);\n }\n }\n cursor.close();\n\n return listOfHiddenFiles;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_EXTERNAL_IDS, key=\"{#type, #id}\")\n public List<ApiExternalIdDTO> getExternalIdsForMetadata(MetaDataType type, Long id) {\n final MetaDataType fixedType = EPISODE == type ? MOVIE : type; \n return currentSession().getNamedQuery(\"metadata.externalid.\"+fixedType.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "@DISPID(1610743811) //= 0x60020003. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n uic.prominent.ScreenLogging.wsh.FolderItems selectedItems();", "public List<String> getListIdByFilePath(String filepath , String user_type) throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT m.id FROM \" + management + \" m JOIN \" + proof + \" p ON m.id = p.managementid \"\n\t\t\t\t+ \"AND m.filepath ='\"+filepath+\"' and p.user_type ='\"+user_type+\"' AND step =4 GROUP BY m.id\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListIdByFilePath : \" + e.toString(),e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}", "public ArrayList<Table> find(DataEntry entry) {\n\t\tArrayList<Table> foundTables = new ArrayList<>();\n\t\tfor (Table table : tables.values()) {\n\t\t\tif (table.contains(entry)) {\n\t\t\t\tfoundTables.add(table);\n\t\t\t}\n\t\t}\n\t\treturn foundTables;\n\t}", "Enumeration<URL> findEntries(String path, String pattern, boolean recurse) throws IOException;", "List<String> findAllIds();", "public List<Registry.Entry> getEntryOrg(int org)\n\t{\n\t\treturn this.reg.get(org);\n\t}", "public List<ArchiveEntry> getEntriesWithFormat (URI format)\n\t{\n\t\t\n\t\tList<ArchiveEntry> list = new ArrayList<ArchiveEntry> ();\n\t\tfor (ArchiveEntry e : entries.values ())\n\t\t\tif (e.getFormat ().equals (format))\n\t\t\t\tlist.add (e);\n\t\t\t\n\t\treturn list;\n\t}", "public static List<DataObject> getAcceptedDataObjects(DataObject.Container folder) {\n List<DataObject> accepted = new ArrayList<DataObject>();\n \n final VisibilityQuery visQuery = VisibilityQuery.getDefault();\n\n DataObject[] children = folder.getChildren();\n\n for (DataObject child : children) {\n if (!visQuery.isVisible(child.getPrimaryFile())) {\n continue;\n }\n if(child instanceof DataObject.Container) {\n accepted.addAll(getAcceptedDataObjects((DataObject.Container)child));\n } else {\n if(FactoryRegistry.hasFactory(child.getClass()))\n accepted.add(child);\n }\n }\n\n return accepted;\n }", "public List<MarketStateEntry> entries(final MarketEntry.Type type) {\n\t\treturn entries.all(type);\n\t}", "public static ArrayList<Long> searchKeywordEntryId(ArrayList<String> queryKeywords) {\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n List<Keywords> idList = new ArrayList<>();\n\n for(String qk : queryKeywords){\n List<Keywords> idListt =\n Keywords.find()\n .select(\"keywordEntryId\")\n .where()\n //.in(\"keyword\", queryKeywords)\n .like(\"keyword\", \"%\"+qk+\"%\")\n .findList();\n idList.addAll(idListt);\n }\n\n for (Keywords keywords : idList) {\n keywordIdList.add(keywords.getKeywordEntryId());\n }\n System.out.println(\"keywordIdList---\" + keywordIdList);\n return keywordIdList;\n }", "public static ArrayList getEntriesFromMRFiles( String dir ) {\n \n ArrayList entries = new ArrayList();\n \n File rdir = new File( dir );\n String[] mr_files = rdir.list( new FilenameFilter() {\n public boolean accept(File d, String name) { return name.endsWith( \".mr\" ); }\n });\n \n if (mr_files == null) {\n General.showWarning(\"Found NO entries on file in directory: \" + dir);\n return (entries);\n }\n \n File f;\n String fname, entry_code;\n \n // Check if the code conforms\n for (int i=0; i<mr_files.length; i++) {\n f = new File(mr_files[i]);\n fname = f.getPath();\n entry_code = fname.substring(0,4);\n // Check whether that's reasonable by matching against reg.exp.\n if ( Wattos.Utils.Strings.is_pdb_code( entry_code ) ) {\n entries.add( entry_code );\n } else {\n General.showWarning(\"Skipping this file.\");\n General.showWarning(\"String for filename [\"+fname+\n \"] doesn't look like a pdb code: \" + entry_code);\n }\n }\n Collections.sort(entries);\n return (entries);\n }", "@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }", "public ArrayList<File> findRelevantFiles (int reimburseID);", "public List<Folder> getFolders (Long userId) throws BookMarkException;", "public JSONObject getSubTypes(CoreSession session, DocumentModel folder) throws UnsupportedEncodingException {\n JSONObject subTypes = new JSONObject();\n\n boolean canAddChildren = session.hasPermission(folder.getRef(), SecurityConstants.ADD_CHILDREN);\n if (canAddChildren) {\n Collection<Type> allowedSubTypes = this.typeService.getAllowedSubTypes(folder.getType());\n for (Type subType : allowedSubTypes) {\n subTypes.put(subType.getId(), URLEncoder.encode(subType.getLabel(), \"UTF-8\"));\n }\n }\n\n return subTypes;\n }", "@RequestMapping(value = \"/show-ids\", \n\t\t\t\t\tmethod = RequestMethod.GET)\n\tpublic ResponseEntity<List<File>> showIds(@RequestParam(value = \"total\", required = true) int total) throws IOException {\n\t\t\n\t\t FileList result = DriveConnection.driveService.files().list() // listamos archivos\n\t .setPageSize(total) // \n\t .setFields(\"nextPageToken, files(id, name)\")\n\t .execute();\n\t \n\t\t List<File> files = result.getFiles(); // almacenamos en una lista\n\t \n\t return new ResponseEntity<List<File>>(files, HttpStatus.OK); // devolvemos\n\t}", "public java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> getEntryList() {\n return entry_;\n }", "CommandContainerEntryListType getEntryList();", "public ArrayList<String> intDayToEventIDs(int day){\n ArrayList<String> events = new ArrayList<>();\n for(Event event: this.eventList){\n if(event.getStartTime().getDayOfMonth() == day){\n events.add(event.getEventId());\n }\n }\n return events;\n }", "@Override\n\tpublic List<Entry> getAllEntry() {\n\t\treturn entryDAO.getAllEntry();\n\t}", "public java.util.List<DataEntry> findAll();", "public void listFilesForFolder(final File folder) {\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tif (fileEntry.isDirectory()) {\n\t\t\t\tlistFilesForFolder(fileEntry);\n\t\t\t} else if (!fileEntry.getName().startsWith(\".\")) {\n\t\t\t\tRunConfigDataNode temp = new RunConfigDataNode(null);\n\t\t\t\ttemp.setName(fileEntry.getName());\n\t\t\t\ttemp.setSerializeDestination(serializePath);\n\t\t\t\tString name = fileEntry.getName();\n\t\t\t\tif (!name.equals(\"entries\")) {\n\t\t\t\t\tRunConfigDataNode config = temp.deserialize();\n\t\t\t\t\tif (!config.isMarkedForDelete()) {\n\t\t\t\t\t\tsavedConfigs.put(name, config);\n\t\t\t\t\t\tnewConfigsNum++;\n\t\t\t\t\t}\n\t\t\t\t\t// if the config is marked for delete, delete it.\n\t\t\t\t\telse {\n\t\t\t\t\t\tfileEntry.delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected abstract String[] getFolderList() throws IOException;", "private void scanFolder(FileObject folder, ContainerEntry container) {\n if (LOGGABLE) log.fine(\"scanFolder(\" + folder.getPath() + \") START\");\n container.displayName = folder.getName();\n try {\n container.displayName = folder.getFileSystem ().getDecorator ().annotateName(folder.getName(), Collections.singleton(folder));\n } catch (Exception x) {\n log.log(Level.WARNING, container.displayName, x);\n }\n container.entries = new ArrayList();\n Object rowsAttr = folder.getAttribute(\"rows\");\n if (rowsAttr != null) {\n container.rows = ((Integer)rowsAttr).intValue();\n }\n Object columnsAttr = folder.getAttribute(\"columns\");\n if (columnsAttr != null) {\n container.columns = ((Integer)columnsAttr).intValue();\n }\n Object labelFormat = folder.getAttribute(\"labelFormat\");\n if (labelFormat instanceof String) {\n container.labelFormat = (String)labelFormat;\n }\n // in order to get the order we need Registry API:\n Context con = Context.getDefault().getSubcontext(folder.getPath());\n List orderedNames = con.getOrderedNames();\n for (Iterator it = orderedNames.iterator(); it.hasNext();) {\n String name = (String) it.next();\n if (LOGGABLE) log.fine(\"scanFolder checking \" + name);\n if (name.endsWith(\"/\")) {\n name = name.substring(0, name.length()-1);\n }\n FileObject child = folder.getFileObject(name);\n String []extensions = { \"instance\", \"ser\", \"setting\", \"xml\", \"shadow\" };\n int extNum = 0;\n while ((child == null) && (extNum < extensions.length)) {\n child = folder.getFileObject(name, extensions[extNum++]);\n }\n if (child == null) {\n log.fine(\"child == null: Registry returned an invalid name \" + name + \" in folder \" + folder.getPath());\n continue;\n }\n if (! child.isValid()) {\n log.fine(\"!child.isValid(): Registry returned an invalid name \" + name + \" in folder \" + folder.getPath());\n continue;\n }\n if (child.isData()) {\n String ext = child.getExt();\n String componentID = (String)child.getAttribute(\"componentID\");\n if (componentID == null) {\n log.fine(\"File \" + child.getPath() + \" is missing the componentID attribute\");\n continue;\n }\n if (LOGGABLE) log.fine(\"adding result with ID \" + componentID);\n ControlEntry e = new ControlEntry();\n e.id = componentID;\n Object c = con.getObject(name, null);\n if (c instanceof ControlFactory) {\n e.control = (ControlFactory)c;\n } else {\n log.fine(\"Invalid control \" + name + \" in folder \" + folder.getPath()+ \" expected Control but was \" + c);\n continue;\n }\n e.label = (String)child.getAttribute(\"label\");\n e.labelBundle = (String)child.getAttribute(\"labelBundle\");\n Object lac = child.getAttribute(\"labelAbove\");\n if (lac instanceof Boolean) {\n e.labelAboveControl = ((Boolean)lac).booleanValue();\n }\n container.entries.add(e);\n }\n if (child.isFolder()) {\n Object a1 = child.getAttribute(\"createHandle\");\n if ((a1 instanceof Boolean) && ((Boolean)a1).booleanValue()) {\n ContainerEntry c = new ContainerEntry();\n scanFolder(child, c);\n container.entries.add(c);\n }\n }\n }\n if (LOGGABLE) log.fine(\"scanFolder(\" + folder.getPath() + \") END\");\n }", "public static ArrayList<JournalEntry> readAllEntries() {\n // TODO: Why isn't it grabbing all entries\n final ArrayList<JournalEntry> resultList = new ArrayList<>();\n\n final String result = NetworkAdapter.httpRequest(READ_ALL_URL);\n try {\n JSONObject topJson = new JSONObject(result);\n for (Iterator<String> it = topJson.keys(); it.hasNext(); ) {\n String key = it.next();\n try {\n final JSONObject jsonEntry = topJson.getJSONObject(key);\n int date = jsonEntry.getInt(\"date\");\n int dayRating = jsonEntry.getInt(\"day_rating\");\n String entryText = jsonEntry.getString(\"entry_text\");\n String image = jsonEntry.getString(\"image\");\n String cacheId = null;\n try {\n cacheId = jsonEntry.getString(\"cache_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n String id = key;\n\n final JournalEntry entry = new JournalEntry(\n date,\n entryText,\n image,\n dayRating,\n id);\n entry.setCacheId(cacheId);\n resultList.add(\n entry);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n Log.i(TAG, \"Finished parsing all entries\");\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return resultList;\n }", "private List<Integer> determineItemIds() {\n List<Integer> ids = null;\n try {\n ids = mDatabaseAccess.itemsDAO().selectAllItemIds();\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to determine all item IDs.\",\n ex);\n }\n return ids;\n }", "public String[] listDirectory( String directory, FileType type );", "public void findByType(String type)\n {\n boolean found = false;\n for(KantoDex entry : entries)\n {\n if(entry.getTypes1().contains(type) && !type.equals(\"\"))\n {\n found = true;\n } \n }\n if(!found)\n {\n System.out.println(\"You have input a nonexistent type, or the type was not applicable to this entry.\"); \n }\n else\n {\n System.out.println(\"All Pokedex entries of type \" + type + \":\");\n for(KantoDex entry : entries)\n {\n if(entry.getType1().equals(type) || entry.getType2().equals(type))\n {\n entry.display();\n }\n }\n }\n }", "ResponseEntity<List<Type>> findTaskTypes();", "@Override\n\tpublic List<File> getListing(File directory, FileFilter filter) {\n\t\tfileIconMap = new HashMap<>();\n\n\t\tif (directory == null) {\n\t\t\treturn List.of();\n\t\t}\n\t\tFile[] files = directory.listFiles(filter);\n\t\treturn (files == null) ? List.of() : List.of(files);\n\t}", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "public long getEntryCount(String filter) {\n if (isAdmin) {\n return dao.getAllEntryCount(filter);\n }\n\n Set<Group> accountGroups = new HashSet<>(account.getGroups());\n accountGroups.add(everybodyGroup);\n return dao.visibleEntryCount(account, accountGroups, filter);\n }", "ArrayList<String> getAllDatatypeIds();", "void visitAllUserIdsInDirectory(long directoryId, Visitor<String> visitor);", "public java.util.List<DataEntry> filterFindByGroupId(long groupId);", "Collection<V> getAllEntries();", "static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}", "public static List<FileInfo> searchFiles(ArrayList<Long> keywordIdList) {\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n String email = Secured.getUser(ctx());\n List<FileEntry> entryIdList = FileEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .in(\"entryId\", keywordIdList)\n .findList();\n for (FileEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList file---\" + finalIdList);\n List<FileInfo> fileList = FileInfo.find().select(\"file\").where().in(\"fileEntryId\", finalIdList).findList();\n return fileList;\n }", "List<String> getFileSystemEntries(String path) throws IOException;", "private void processFolder(File folder) {\n \t\tFile[] subFolders = folder.listFiles(new FileFilter() {\n \t\t\t@Override\n \t\t\tpublic boolean accept(File pathname) {\n \t\t\t\treturn pathname.isDirectory();\n \t\t\t}\n \t\t});\n \t\tfor (File subFolder : subFolders){\n \t\t\tprocessFolder(subFolder); \n \t\t}\n \t\tPattern nameRegex = Pattern.compile(\"([\\\\d-]+)\\\\.(pdf|epub)\", Pattern.CANON_EQ | Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);\n \t\tFile[] files = folder.listFiles();\n \t\tfor (File file : files) {\n \t\t\tlogger.info(\"Processing file \" + file.getName());\n \t\t\tprocessLog.addNote(\"Processing file \" + file.getName());\n \t\t\tif (file.isDirectory()) {\n \t\t\t\t//TODO: Determine how to deal with nested folders?\n \t\t\t\t//processFolder(file);\n \t\t\t} else {\n \t\t\t\t// File check to see if it is of a known type\n \t\t\t\tMatcher nameMatcher = nameRegex.matcher(file.getName());\n \t\t\t\tif (nameMatcher.matches()) {\n \t\t\t\t\tImportResult importResult = new ImportResult();\n \t\t\t\t\tString isbn = nameMatcher.group(1);\n \t\t\t\t\tString fileType = nameMatcher.group(2).toLowerCase();\n \t\t\t\t\timportResult.setBaseFilename(isbn);\n \t\t\t\t\tisbn = isbn.replaceAll(\"-\", \"\");\n \t\t\t\t\timportResult.setISBN(isbn);\n \t\t\t\t\timportResult.setCoverImported(\"\");\n \t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Get the record for the isbn\n \t\t\t\t\t\tgetRelatedRecords.setString(1, \"%\" + isbn + \"%\");\n \t\t\t\t\t\tResultSet existingRecords = getRelatedRecords.executeQuery();\n \t\t\t\t\t\tif (!existingRecords.next()){\n \t\t\t\t\t\t\t//No record found \n \t\t\t\t\t\t\tlogger.info(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\tprocessLog.addNote(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t}else{\n \t\t\t\t\t\t\tlogger.info(\"Found at least one record for \" + isbn);\n \t\t\t\t\t\t\tif (existingRecords.last()){\n \t\t\t\t\t\t\t\tif (existingRecords.getRow() >= 2){\n \t\t\t\t\t\t\t\t\tlogger.info(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t//We have an existing record\n \t\t\t\t\t\t\t\t\texistingRecords.first();\n \t\t\t\t\t\t\t\t\tString recordId = existingRecords.getString(\"id\");\n \t\t\t\t\t\t\t\t\tString accessType = existingRecords.getString(\"accessType\");\n \t\t\t\t\t\t\t\t\tString source = existingRecords.getString(\"source\");\n \t\t\t\t\t\t\t\t\tlogger.info(\" Attaching file to \" + recordId + \" accessType = \" + accessType + \" source=\" + source);\n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t// Copy the file to the library if it does not exist already\n \t\t\t\t\t\t\t\t\tFile resultsFile = new File(libraryDirectory + source + \"_\" + file.getName());\n \t\t\t\t\t\t\t\t\tif (resultsFile.exists()) {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Skipping file because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"File has already been copied to library\");\n \t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Importing file \" + file.getName());\n \t\t\t\t\t\t\t\t\t\t//Check to see if the file has already been added to the library.\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(1, file.getName());\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(2, recordId);\n \t\t\t\t\t\t\t\t\t\tResultSet existingItems = doesItemExist.executeQuery();\n \t\t\t\t\t\t\t\t\t\tif (existingItems.next()){\n \t\t\t\t\t\t\t\t\t\t\t//The item already exists\n \t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"The file has already been aded as an eContent Item\");\n \t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" copying the file to library source=\" + file + \" dest=\" + resultsFile);\n \t\t\t\t\t\t\t\t\t\t\t\t//Copy the pdf file to the library\n \t\t\t\t\t\t\t\t\t\t\t\tUtil.copyFile(file, resultsFile);\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\t//Add file to acs server\n \t\t\t\t\t\t\t\t\t\t\t\tboolean addedToAcs = true;\n \t\t\t\t\t\t\t\t\t\t\t\tif (accessType.equals(\"acs\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Adding file to the ACS server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\taddedToAcs = addFileToAcsServer(fileType, resultsFile, importResult);\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (addedToAcs){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//filename, acsId, recordId, item_type, addedBy, date_added, date_updated\n \t\t\t\t\t\t\t\t\t\t\t\t\tlong curTimeSec = new Date().getTime() / 1000;\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(1, resultsFile.getName());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(2, importResult.getAcsId());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(3, recordId);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(4, fileType);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(5, -1);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(6, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(7, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\tint rowsInserted = addEContentItem.executeUpdate();\n \t\t\t\t\t\t\t\t\t\t\t\t\tif (rowsInserted == 1){\n \t\t\t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"success\", \"\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" file could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (importResult.getSatus(fileType).equals(\"failed\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//If we weren't able to add the file correctly, remove it so it will be processed next time. \n \t\t\t\t\t\t\t\t\t\t\t\t\tresultsFile.delete();\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.error(\"Error copying file to record\", e);\n \t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Error copying file \" + e.toString());\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error finding related records\", e);\n \t\t\t\t\t\timportResult.setStatus(\"pdf\", \"failed\", \"SQL error processing file \" + e.toString());\n \t\t\t\t\t}\n \t\t\t\t\timportResults.add(importResult);\n \t\t\t\t\t//Update that another file has been processed.\n \t\t\t\t\tprocessLog.incUpdated();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(1, processLog.getNumUpdates());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(2, processLog.getNumErrors());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(3, logEntryId);\n \t\t\t\t\t\tupdateRecordsProcessed.executeUpdate();\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error updating number of records processed.\", e);\n \t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tprocessLog.addNote(\" Skipping because the name is not an ISBN\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t}", "public static Set<CharSequence> getSearchBase(Project project, Folder folder) {\n Set<CharSequence> result = new HashSet<>();\n ConcurrentMap<Folder,List<CharSequence>> projectSearchBase = searchBase.get(project);\n if (projectSearchBase != null) {\n List<CharSequence> list = projectSearchBase.get(folder);\n if (list != null) {\n synchronized(list) {\n result.addAll(list);\n }\n }\n }\n return result;\n }", "java.util.List<? extends com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder> \n getEntryOrBuilderList();", "public Collection getModulesNamesByFolder(String folder) throws XavaException {\n\t\tif (Is.emptyString(folder) || folder.trim().equals(\"/\")) folder = \"\"; \n\t\tCollection result = new ArrayList();\n\t\tfor (Iterator it=getModulesNames().iterator(); it.hasNext();) {\n\t\t\tString moduleName = (String) it.next();\n\t\t\tString moduleFolder = getMetaModule(moduleName).getFolder();\n\t\t\tif (Is.equal(folder, moduleFolder)) {\n\t\t\t\tresult.add(moduleName);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void getFolderData(View view) {\n if (mDriveServiceHelper != null) {\n Intent intent = new Intent(this, ListActivity.class);\n\n mDriveServiceHelper.getFolderFileList()\n .addOnSuccessListener(new OnSuccessListener<ArrayList<GoogleDriveFileHolder>>() {\n @Override\n public void onSuccess(ArrayList<GoogleDriveFileHolder> result) {\n Log.e(TAG, \"onSuccess: result: \"+result.size() );\n intent.putParcelableArrayListExtra(\"fileList\", result);\n startActivity(intent);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n showMessage(\"Not able to access Folder data.\");\n Log.e(TAG, \"Not able to access Folder data.\", e);\n }\n });\n }\n }", "public String getEntryId() {\n return entryId;\n }", "List<CatalogItem> getAllCatalogItemsByType(Long type_id);", "void getAppIdsWithPrefix(Future<Set<String>> appIds, String baseDir, String appIdPrefix);", "@Override\n\tpublic Integer getAnimalTypesById(AnimalType type) {\n\t\tInteger id=null;\n\t\t\n\t\ttry {\n\t\t\tString sql = \"SELECT id FROM animals_characteristics WHERE type LIKE ? \"; \t\t\t \n\t\t\tPreparedStatement prep = JDBCManager.c.prepareStatement(sql);\t\n\t\t\tResultSet rs = prep.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) { \n\t\t\t\t id = rs.getInt(\"id\");\n\t\t\t\t//typesOfAnimals.add(id); \n\t\t\t}\n\t\t\t\t//System.out.println(sql);\n\t\t\t\tprep.close();\n\t\t\t\trs.close();\n\t\t\t\t\n\t\t\t}catch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\n\treturn id;\t\n\t}", "List<String> getFileSystemEntries(String path, String searchPattern) throws IOException;", "public static List<Integer> getAccountTypesIds() throws SQLException {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n ResultSet results = DatabaseSelector.getAccountTypesId(connection);\n List<Integer> ids = new ArrayList<>();\n // add the account types ids to the arraylist\n while (results.next()) {\n ids.add(results.getInt(\"ID\"));\n }\n connection.close();\n return ids;\n }", "private void loadLoreEntries() {\n entryIDMap = new ConcurrentHashMap<>();\n entryIDThreads = new ThreadGroup(\"entryIDThreads\");\n\n for (int i = 0; i < bookSelectionData.size(); i++) {\n\n final String entryName = bookSelectionData.get(i).getBookName();\n final long entryID = bookSelectionData.get(i).getBookID();\n\n new Thread(entryIDThreads, new Runnable() {\n @Override\n public void run() {\n try {\n ArrayList<Long> arraylist = new ArrayList<>();\n arraylist.add(entryID);\n DataAccessObject_LoreBookSelectionDefinition node = database.getDao().getPresentationNodeById(arraylist).get(0);\n JsonObject json = node.getJson();\n JsonArray entryNodes = json.getAsJsonObject(\"children\").getAsJsonArray(\"records\");\n\n long[] ID = new long[entryNodes.size()];\n for (int j = 0; j < entryNodes.size(); j++) {\n JsonObject entry = (JsonObject) entryNodes.get(j);\n long hash = Long.parseLong(entry.get(\"recordHash\").getAsString());\n ID[j] = convertHash(hash);\n }\n entryIDMap.put(entryName, ID);\n } catch (Exception ignored) {\n }\n }\n }).start();\n }\n }", "public Folder removeFolderEntries(Folder folder, List<Long> entries) {\n try {\n folder = currentSession().get(Folder.class, folder.getId());\n folder.getContents().removeIf(entry -> entries.contains(entry.getId()));\n folder.setModificationTime(new Date());\n currentSession().update(folder);\n return folder;\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "java.util.List<java.lang.Long> getIdsList();", "public List<String> getListIdByFilePathAndForm(String filepath , String formid) throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT id FROM \" + management + \" WHERE filepath ='\"+filepath+\"' AND step =4 AND formid =\"+formid+\" ORDER BY id\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListIdByFilePathAndForm : \" + e.toString(),e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}", "public String getFolderId() {\r\n return folderId;\r\n }", "public Long getFolderSize(long id, String filter, boolean visibleOnly) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n List<Predicate> predicates = getPredicates(entry, filter);\n\n if (visibleOnly) {\n predicates.add(entry.get(\"visibility\").in(Arrays.asList(Visibility.OK.getValue(),\n Visibility.REMOTE.getValue())));\n }\n\n predicates.add(getBuilder().equal(from.get(\"id\"), id));\n query.select(getBuilder().countDistinct(entry.get(\"id\")));\n query.where(predicates.toArray(new Predicate[0]));\n return currentSession().createQuery(query).uniqueResult();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "public org.eclipse.stardust.engine.api.query.LogEntries\n getAllLogEntries(org.eclipse.stardust.engine.api.query.LogEntryQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "private Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }", "@Test\n public void testGetDirectoryList() {\n System.out.println(\"getDirectoryList for existing folder with subfolders\");\n String entriesPath = folder.toString();\n FilesDao instance = new FilesDao();\n String[] expResult = new String[4];\n expResult[0]=\"EmptyFolder\";\n expResult[1]=\"Images\";\n expResult[2]=\"Texts\";\n expResult[3]=\"Videos\";\n Arrays.sort(expResult);\n String[] result;\n try{\n result = instance.getDirectoryList(entriesPath);\n Arrays.sort(result);\n }catch(EntryException ex){\n result = null;\n }\n \n assertArrayEquals(expResult, result);\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<Long> getActivityIds(final StreamView inCompositeStream, final long inUserId)\n {\n // check cache for ids and return if found.\n List<Long> activityKeys = getIdListFromCache(inCompositeStream, inUserId);\n\n if (activityKeys != null)\n {\n return activityKeys;\n }\n\n // build critera for getting id list from datastore\n Criteria criteria = getHibernateSession().createCriteria(Activity.class);\n ProjectionList fields = Projections.projectionList();\n fields.add(getColumn(\"id\"));\n criteria.setProjection(fields);\n\n // Get restrictions from loader and add them to criteria. This is basically the\n // \"where\" clause for the query.\n Hashtable restrictionParams = getActivityRestrictions(inCompositeStream, inUserId);\n if (restrictionParams != null)\n {\n // if false, abort query and just return no results.\n if (!addRestrictions(criteria, restrictionParams))\n {\n activityKeys = new ArrayList<Long>(0);\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n return activityKeys;\n }\n }\n\n // set the max results to return.\n criteria.setMaxResults(MAX_LIST_SIZE);\n\n // set the order by date descending\n criteria.addOrder(Order.desc(\"id\"));\n\n // get the list of ids from datastore\n activityKeys = criteria.list();\n\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n\n return activityKeys;\n }", "long getIds(int index);", "public List<ExoSocialActivity> getActivitiesOfIdentities(ActivityBuilderWhere where, ActivityFilter filter,\n long offset, long limit) throws ActivityStorageException;", "public String getFolderId() {\n return folderId;\n }", "public String[] getFilesFromFolder(String folder, String filter) {\n\t\ttry\n\t\t{\n\t\t\tfinal String f = filter;\n\t\t\tFilenameFilter filnameFilter = new FilenameFilter() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\t\tif( name.toLowerCase().endsWith(f))\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t};\n\t\t\tif(! folder.endsWith(\"/\"))\n\t\t\t\tfolder += \"/\";\n\t\t\t\n\t\t\tString[] files = FileIO.getFiles(this.getServletContext().getRealPath(folder), filnameFilter);\t\t\t\n\t\t\t\t\t\n\t\t\treturn files;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public static List<Job> filterFindByRunType_G(long groupId, String runType) {\n\t\treturn getPersistence().filterFindByRunType_G(groupId, runType);\n\t}", "public List<Resource> findByType(ResourceType type) {\n\t\tMap<String, Object> typeFilter = new HashMap<>(1);\n\n\t\ttypeFilter.put(\"type\", new ValueParameter(type));\n\n\t\treturn this.filter(typeFilter);\n\t}", "public List<MarketStateEntry> entries(final MarketEntry.Type type, final MarketEntry.Descriptor descriptor) {\n\t\treturn entries.all(type, descriptor);\n\t}", "public static boolean isArray_entries_id() {\n return true;\n }", "public com.google.protobuf.ByteString\n getFolderIdBytes() {\n java.lang.Object ref = folderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n folderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List getResourceTypesByIdList(final Map idList);", "private File[] getResourceFolderFiles(String folder) {\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\t\tURL url = loader.getResource(folder);\n\t\tString path = url.getPath();\n\n\t\treturn new File(path).listFiles();\n\n\t}", "Set<II> getIds();", "public List<FireStoreDirectoryEntry> enumerateFileRefEntries(\n TableServiceClient tableServiceClient, String collectionId, int offset, int limit) {\n TableClient tableClient = tableServiceClient.getTableClient(collectionId);\n ListEntitiesOptions options = new ListEntitiesOptions().setFilter(\"isFileRef eq true\");\n PagedIterable<TableEntity> entities = tableClient.listEntities(options, null, null);\n if (!entities.iterator().hasNext()) {\n return List.of();\n }\n return entities.stream()\n .skip(offset)\n .limit(limit)\n .map(FireStoreDirectoryEntry::fromTableEntity)\n .toList();\n }", "public abstract List<String> getNewArrivalsListingIds(int siteId,\n\t\t\tint languageId, int page);", "@Override\n\tpublic Collection<Object> getItemIds() {\n\t\tHashSet<Object> filteredItemIds = new HashSet<Object>(super.getItemIds()),\n\t\t\t\titemIds = new HashSet<Object>(filteredItemIds);\n\t\tFilter filter = getAppliedFiltersAsConjunction();\n\t\tItem item = null;\n\t\tfor (Object itemId : itemIds) {\n\t\t\tif (itemId instanceof UUID) {\n\t\t\t\titem = getItem(itemId);\n\t\t\t\tif (item != null) {\n\t\t\t\t\tif (!filter.passesFilter(itemId, item)) {\n\t\t\t\t\t\tfilteredItemIds.remove(itemId);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfilteredItemIds.remove(itemId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn filteredItemIds;\n\t}", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "UDIEntryType getEntryType();", "public Collection findWorkflowActivityKeys(IDataFilter filter)\n throws FindEntityException, SystemException, RemoteException;" ]
[ "0.74250925", "0.60035884", "0.58461905", "0.58078885", "0.56576353", "0.5550256", "0.5347074", "0.5323807", "0.52422893", "0.5166877", "0.5150677", "0.50918454", "0.5090082", "0.508666", "0.50663966", "0.50088084", "0.49656937", "0.4926195", "0.49052668", "0.489733", "0.48959056", "0.48888373", "0.48623982", "0.4858513", "0.48318824", "0.48259452", "0.481286", "0.47635588", "0.47516352", "0.47503033", "0.47422662", "0.4736305", "0.47332767", "0.47266012", "0.4722388", "0.47173652", "0.4713696", "0.46821582", "0.4607696", "0.45973906", "0.45961505", "0.45893005", "0.45867953", "0.45846975", "0.4582477", "0.45770037", "0.45561123", "0.45433405", "0.4537968", "0.45329648", "0.45311615", "0.45282987", "0.45224243", "0.45154655", "0.45106226", "0.4509631", "0.4508611", "0.4495417", "0.44943944", "0.44878638", "0.4486237", "0.44848734", "0.44783688", "0.44778508", "0.4472649", "0.44705874", "0.44586062", "0.4452344", "0.4438074", "0.44360694", "0.44343534", "0.44254956", "0.44052312", "0.43983582", "0.43973625", "0.43953702", "0.43903333", "0.43823853", "0.4380754", "0.43772373", "0.43719056", "0.4371464", "0.43696302", "0.4367489", "0.4359668", "0.43580067", "0.43566358", "0.43556106", "0.43516707", "0.43516636", "0.4350759", "0.43493652", "0.43465424", "0.43445462", "0.4344431", "0.43384856", "0.4330771", "0.43258005", "0.43257514", "0.43243718" ]
0.7378357
1
Retrieves list of entries that conforms to the parameters
public List<Long> retrieveFolderContents(long folderId, PageParameters pageParameters, boolean visibleOnly) { try { String sortString; switch (pageParameters.getSortField()) { default: case CREATED: sortString = "id"; break; case STATUS: sortString = "status"; break; case NAME: sortString = "name"; break; case PART_ID: sortString = "partNumber"; break; case TYPE: sortString = "recordType"; break; } CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); List<Predicate> predicates = getPredicates(entry, pageParameters.getFilter()); predicates.add(getBuilder().equal(from.get("id"), folderId)); if (visibleOnly) { predicates.add(entry.get("visibility").in(Arrays.asList(Visibility.OK.getValue(), Visibility.REMOTE.getValue()))); } query.select(entry.get("id")).where(predicates.toArray(new Predicate[0])); query.orderBy(pageParameters.isAscending() ? getBuilder().asc(entry.get(sortString)) : getBuilder().desc(entry.get(sortString))); return currentSession().createQuery(query).setFirstResult(pageParameters.getOffset()) .setMaxResults(pageParameters.getLimit()).list(); } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<V> getAllEntries();", "public java.util.List<DataEntry> findAll();", "CommandContainerEntryListType getEntryList();", "List getValues();", "@Override\n public Set<Map.Entry<String,Pacote>> entrySet() {\n \n //resultado\n Set<Map.Entry<String,Pacote>> r = new HashSet<>();\n \n \n Pacote p;\n \n try {\n \n conn = Connect.connect();// abrir uma conecção\n \n // querie que obtem os dados para poder\n PreparedStatement stm = conn.prepareStatement(\"SELECT nomePacote, preco FROM Pacote WHERE visivel=TRUE;\");\n \n // agora executa a querie\n ResultSet rs = stm.executeQuery();\n \n //percorrer o resultado\n while (rs.next()) {\n p = new Pacote(rs.getString(\"nomePacote\"),rs.getDouble(\"preco\"));\n \n \n /*\n AGORA FALTA OS METUDOS PARA PREENCHER A LISTA DAS CONFIGURAÇÕES\n */\n \n this.addComponentes(p);\n \n \n \n r.add(new AbstractMap.SimpleEntry(p.getNome(),p));\n }\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn); // fechar a connecção\n }\n return r;\n }", "java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();", "public List<Esysmeudef> list(Map<String, Object> params);", "@Override\n public Set<Map.Entry<String,Componente>> entrySet() {\n \n //resultado\n Set<Map.Entry<String,Componente>> r = new HashSet<>();\n \n \n Componente c;\n \n try {\n \n conn = Connect.connect();// abrir uma conecção\n \n // querie que obtem os dados para poder\n PreparedStatement stm = conn.prepareStatement(\"SELECT nome, tipo, designacao, preco, stock FROM Componente WHERE visivel=TRUE;\");\n \n // agora executa a querie\n ResultSet rs = stm.executeQuery();\n \n //percorrer o resultado\n while (rs.next()) {\n c = new Componente(rs.getString(\"nome\"),rs.getString(\"tipo\"),rs.getString(\"designacao\"),rs.getDouble(\"preco\"),rs.getInt(\"stock\"));\n \n /*\n AGORA FALTA OS METUDOS PARA PREENCHER A LISTA DAS CONFIGURAÇÕES\n \n Agora temos de ter \n */\n \n this.adicionarIncompativeis(c);\n this.adicionarObrigatorias(c);\n\n \n r.add(new AbstractMap.SimpleEntry(c.getNome(),c));\n }\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn); // fechar a connecção\n }\n \n return r;\n }", "public Collection<GlobalIdEntry> getAllEntries();", "PreferenceEntriesAttribute getEntries();", "public static List<Handset> search(Map<String, String> reqParam) {\n\n\t\tList<Handset> temp = new ArrayList<Handset>();\n\t\ttemp.addAll(cache.values());\n\n\t\tfor (String param : reqParam.keySet()) {\n\t\t\tString val = (String) reqParam.get(param);\n\n\t\t\tswitch (param) {\n\t\t\tcase \"priceEur\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getPriceEur() == Integer.parseInt(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sim\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getSim().toLowerCase().contains(val.toLowerCase()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"announceDate\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getAnnounceDate().equalsIgnoreCase(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\ttemp = new ArrayList<Handset>();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"filtered handset size \" + temp.size());\n\t\treturn temp;\n\n\t}", "Collection<CrosswordEntry> getCrosswordEntries();", "@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "@Override\r\n\tpublic Vector getEntries() throws NotesApiException {\n\t\treturn null;\r\n\t}", "List<String> getLookupValues();", "@Override\n\tpublic List<Entry> getAllEntry() {\n\t\treturn entryDAO.getAllEntry();\n\t}", "@RequestMapping(method = RequestMethod.GET)\n public final Iterable<Entry> list() {\n Iterable<Entry> result = SecurityUtils.actualUser().getEntries();\n if (result == null) {\n result = Collections.emptyList();\n }\n return result;\n }", "public Iterable<Entry<K, V>> entries();", "public List getValidarSapExistencia(Map criteria);", "E[] getAll();", "public ContentList findAll(String[] keys, Object[] values);", "@Override\n public Collection<T> values() {\n List<T> values = new ArrayList<>();\n for (Map.Entry<String, T> v : entries.values()) {\n values.add(v.getValue());\n }\n return values;\n }", "java.util.List<java.lang.String> getValuesList();", "Map getAll();", "@Override\n public Set<Map.Entry<String,Administrador>> entrySet() {\n //resultado\n Set<Map.Entry<String,Administrador>> r = new HashSet<>();\n \n Administrador a;\n \n try {\n conn = Connect.connect();// abrir uma conecção\n // querie que obtem os dados para poder\n PreparedStatement stm = conn.prepareStatement(\"SELECT username, password FROM Administrador WHERE visivel=TRUE;\");\n // agora executa a querie\n ResultSet rs = stm.executeQuery();\n //percorrer o resultado\n while (rs.next()) {\n a = new Administrador(rs.getString(\"username\"),rs.getString(\"password\"));\n r.add(new AbstractMap.SimpleEntry(a.getId(),a));\n }\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn); \n }\n return r;\n }", "List<T> getResults();", "java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();", "@Override\n\tpublic Set<Entry<K, V>> entrySet() {\n\t\tSet<Entry<K, V>> entrySet = map.entrySet();\n\t\tListSet<Entry<K, V>> listSet = new ListSet<Map.Entry<K,V>>();\n\t\tfor (K key : keys) {\n\t\t\t\n\t\t\tfor (Entry<K, V> entry : entrySet) {\n\t\t\t\tif (entry.getKey().equals(key)) {\n\t\t\t\t\tlistSet.add(entry);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn listSet;\n\t}", "List<QueryKey> listQueryKeys();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<Dummy> getIt() {\n\n \tCriterion cr = Restrictions.conjunction().add(Restrictions.gt(\"a\", 9));\n \tList<Dummy> dummies = BaseModel.getInstance().findByCriteria(Dummy.class, cr);\n \treturn dummies;\n\n }", "java.util.List<KeyValuePair>\n getInfoList();", "ParameterList getParameters();", "List<T> obtenerAll();", "java.util.List<java.lang.Integer> getRequestedValuesList();", "public List getGestionStockList(Map criteria);", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<List<Object>> getTableValues();", "ArrayList<E> getAll();", "java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();", "java.util.List<java.lang.String>\n getQueryItemsList();", "List<List<Object>> getTableValues(TableParameters tableParameters);", "public List getCalendarios(Map criteria);", "@Parameterized.Parameters\n public static Collection<Object[]> data() {\n Object[][] data = new Object[][] {\n { \"Jack\" , \"Temperature\"},\n { \"Jack\" , \"AQI\"},\n { \"Jack\" , \"Location\"},\n { \"David\", \"Temperature\"},\n { \"David\", \"AQI\"},\n { \"David\", \"Location\"},\n };\n return Arrays.asList(data);\n }", "@Override\n\t\tpublic List<? extends MyHashMap.Entry<K, V>> getEntries() {\n\t\t\treturn e;\n\t\t}", "List<?> query(Object inputObject, Settings settings);", "private Iterator getEntries(){\r\n\t\tSet entries = items.entrySet();\r\n\t\treturn entries.iterator();\r\n\t}", "List<ObjectInformation> filter(\n\t\t\tfinal GetObjectInformationParameters params)\n\t\t\tthrows WorkspaceCommunicationException {\n\t\tfinal int querysize = params.getLimit() < 100 ? 100 :\n\t\t\t\tparams.getLimit();\n\t\tfinal PermissionSet pset = params.getPermissionSet();\n\t\tif (pset.isEmpty()) {\n\t\t\treturn new LinkedList<ObjectInformation>();\n\t\t}\n\t\tfinal DBObject verq = buildQuery(params);\n\t\tfinal DBObject projection = buildProjection(params);\n\t\tfinal DBObject sort = buildSortSpec(params);\n\t\tfinal DBCursor cur = buildCursor(verq, projection, sort);\n\t\t\n\t\t//querying on versions directly so no need to worry about race \n\t\t//condition where the workspace object was saved but no versions\n\t\t//were saved yet\n\t\t\n\t\tfinal List<ObjectInformation> ret = new LinkedList<>();\n\t\twhile (cur.hasNext() && ret.size() < params.getLimit()) {\n\t\t\tfinal List<Map<String, Object>> verobjs = new ArrayList<>();\n\t\t\twhile (cur.hasNext() && verobjs.size() < querysize) {\n\t\t\t\ttry {\n\t\t\t\t\tverobjs.add(QueryMethods.dbObjectToMap(cur.next()));\n\t\t\t\t} catch (MongoException me) {\n\t\t\t\t\tthrow new WorkspaceCommunicationException(\n\t\t\t\t\t\t\t\"There was a problem communicating with the database\", me);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinal Map<Map<String, Object>, ObjectInformation> objs =\n\t\t\t\t\tgenerateObjectInfo(pset, verobjs, params.isShowHidden(),\n\t\t\t\t\t\t\tparams.isShowDeleted(), params.isShowOnlyDeleted(),\n\t\t\t\t\t\t\tparams.isShowAllVersions(), params.asAdmin()\n\t\t\t\t\t\t\t);\n\t\t\t//maintain the ordering \n\t\t\tfinal Iterator<Map<String, Object>> veriter = verobjs.iterator();\n\t\t\twhile (veriter.hasNext() && ret.size() < params.getLimit()) {\n\t\t\t\tfinal Map<String, Object> v = veriter.next();\n\t\t\t\tif (objs.containsKey(v)) {\n\t\t\t\t\tret.add(objs.get(v));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "List<Receta> getAll(String filter);", "String getRetrieveKeysQuery();", "java.util.List<java.lang.String> getContentsList();", "private Collection<ConnectionEntry> getMyInvites(Map<String, String> parameters)throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"getMyInvites\", parameters);\n \t\t}\n \n \t\tDocument data = null;\n \t\tCollection<ConnectionEntry> invites = null;\n \t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\tProfileType.CONNECTIONS.getProfileType());\n \t\tdata = executeGet(url, parameters, ClientService.FORMAT_XML);\n \t\tif(parameters.containsKey(\"outputType\")){\n \t\t\tif(parameters.get(\"outputType\").equalsIgnoreCase(\"profile\")){\n \t\t\t\tinvites = Converter.returnConnectionEntries(data, \"profile\");\n \t\t\t}\n \t\t\telse \n \t\t\t\tinvites = Converter.returnConnectionEntries(data, \"connection\");\n \t\t}\n \t\telse{\n \t\t\tinvites = Converter.returnConnectionEntries(data, \"connection\");\n \t\t}\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.exiting(sourceClass, \"getMyInvites\");\n \t\t}\n \t\treturn invites;\n \t}", "public List<Registry.Entry> getEntryOrg(int org)\n\t{\n\t\treturn this.reg.get(org);\n\t}", "public List getValidarCuvExistencia(Map criteria);", "public static List fetchFieldsSupportingSearch() {\n return new ArrayList();\n }", "public abstract List<String> getValidDescriptors();", "List<T> findAll(ListParams params);", "public List<Object> getValues();", "@Override\n public Set<Map.Entry<String, T>> entrySet() {\n Set<Map.Entry<String, T>> entrySet = new TreeSet<>();\n for (Map.Entry<String, Map.Entry<String, T>> v : entries.entrySet()) {\n entrySet.add(new Entry<>(v));\n }\n return entrySet;\n }", "public java.util.List<DataEntry> findAll(int start, int end);", "java.util.List<? extends com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder> \n getEntryOrBuilderList();", "List<Item> list(ItemCriteria itemCriteria);", "public Entry[] getEntries()\n\t{\n\t\treturn entries;\n\t}", "private ArrayList<Credential> getKeyLists(){\n String[] projection = {\r\n CredentialsContract.CredentialsEntry._ID,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_keyhandle,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_username,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_appid,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_authenticate_portal,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_counter\r\n };\r\n\r\n// How you want the results sorted in the resulting Cursor\r\n String sortOrder =\r\n CredentialsContract.CredentialsEntry._ID + \" ASC\";\r\n\r\n Cursor c = dbReadable.query(\r\n CredentialsContract.CredentialsEntry.TABLE_NAME, // The table to query\r\n projection, // The columns to return\r\n null, // The columns for the WHERE clause\r\n null, // The values for the WHERE clause\r\n null, // don't group the rows\r\n null, // don't filter by row groups\r\n sortOrder // The sort order\r\n );\r\n\r\n ArrayList<Credential> temp = new ArrayList<Credential>();\r\n if(c.moveToFirst()){\r\n do{\r\n Credential reg = new Credential(\r\n c.getInt(c.getColumnIndex(CredentialsContract.CredentialsEntry._ID)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_keyhandle)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_username)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_appid)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_authenticate_portal)),\r\n c.getInt(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_counter))\r\n );\r\n temp.add(reg);\r\n }\r\n while(c.moveToNext());\r\n }\r\n return temp;\r\n }", "public List search(Veranstaltung veranstatung) throws RuntimeException;", "@Override\n\tpublic List<Map<String, Object>> searchList(Map<String, Object> map) {\n\t\treturn approvalDao.searchList(map);\n\t}", "public static EntryList getEntryList(){\n if (entryList == null){\n entryList = new EntryList();\n\n }\n return entryList;\n }", "public List<Entry> getByTitle(String title) {\n List<Entry> matches = new ArrayList<>();\n for (Entry l : litRegister) {\n\n if (l.getTitle().contains(title)) {\n matches.add(l);\n }\n }\n return matches;\n }", "public LinkedList<MapEntry<String, Integer>> entrySet(){\r\n return this.list;\r\n }", "public static ArrayList<JournalEntry> readAllEntries() {\n // TODO: Why isn't it grabbing all entries\n final ArrayList<JournalEntry> resultList = new ArrayList<>();\n\n final String result = NetworkAdapter.httpRequest(READ_ALL_URL);\n try {\n JSONObject topJson = new JSONObject(result);\n for (Iterator<String> it = topJson.keys(); it.hasNext(); ) {\n String key = it.next();\n try {\n final JSONObject jsonEntry = topJson.getJSONObject(key);\n int date = jsonEntry.getInt(\"date\");\n int dayRating = jsonEntry.getInt(\"day_rating\");\n String entryText = jsonEntry.getString(\"entry_text\");\n String image = jsonEntry.getString(\"image\");\n String cacheId = null;\n try {\n cacheId = jsonEntry.getString(\"cache_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n String id = key;\n\n final JournalEntry entry = new JournalEntry(\n date,\n entryText,\n image,\n dayRating,\n id);\n entry.setCacheId(cacheId);\n resultList.add(\n entry);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n Log.i(TAG, \"Finished parsing all entries\");\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return resultList;\n }", "public Object getEntries() {\n\t\t\treturn null;\n\t\t}", "public Set list( String constraint ) {\n Set result = new HashSet();\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result.addAll( catalog.list( constraint ) );\n }\n return result;\n\n }", "EList<Parameter> returnResult();", "@RequestMapping(\n value = \"/{start}/{end}\",\n method = RequestMethod.GET\n )\n public final Iterable<Entry> filter(\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date start,\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date end\n ) {\n if (end.before(start)) {\n throw new IllegalArgumentException(\"Start date must be before end\");\n }\n final List<Entry> result = new LinkedList<Entry>();\n List<Entry> entries = SecurityUtils.actualUser().getEntries();\n if (entries == null) {\n entries = Collections.emptyList();\n }\n for (final Entry entry : entries) {\n if (entry.getDate().after(start)\n && entry.getDate().before(end)) {\n result.add(entry);\n }\n }\n return result;\n }", "List<Employee> allEmpInfo();", "public LinkedList getEntryValues(String entryName) {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(entryName)) {\r\n return currentEntry.getValues();\r\n }\r\n }\r\n return null;\r\n }", "public Set<Parameter> getSearchedParameters() {\n\t\treturn new HashSet<Parameter>(parameterEntries.keySet());\n\t}", "public List<TermListItem> getAllTermListItemsWithFilter(String table, String constraint) {\n List<TermListItem> termListItems = new ArrayList<TermListItem>();\n\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" LIKE '%\" + constraint + \"%'\"\n + \" ORDER BY abs(length('\" + constraint + \"') - length(\" + KEY_TERM + \"))\";\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(1).isEmpty()) {\n TermListItem termListItem = new TermListItem(Integer.parseInt(cursor.getString(0)), cursor.getString(1));\n // Adding term to list\n termListItems.add(termListItem);\n }\n } while (cursor.moveToNext());\n }\n\n // return a list of term list items\n return termListItems;\n }", "public List<InventoryEntry> getInventoryEntries();", "public List<R> getAll();", "public List getBeneficioDeudaList(Map criteria);", "java.util.List<gen.grpc.hospital.examinations.Parameter> \n getParameterList();", "public Iterable<Entry<K, V>> entrySet() {\n ArrayList<Entry<K, V>> buffer = new ArrayList<>();\n for (int h = 0; h < capacity; h++)\n if (!isAvailable(h)) buffer.add(table[h]);\n return buffer;\n }", "private void retrieveEntries() {\n entriesRetrieved = true;\n List rcerts = tbsCertList.getRevokedCertificates();\n if (rcerts == null) {\n return;\n }\n entriesSize = rcerts.size();\n entries = new ArrayList(entriesSize);\n // null means that revoked certificate issuer is the same as CRL issuer\n X500Principal rcertIssuer = null;\n for (int i=0; i<entriesSize; i++) {\n TBSCertList.RevokedCertificate rcert =\n (TBSCertList.RevokedCertificate) rcerts.get(i);\n X500Principal iss = rcert.getIssuer();\n if (iss != null) {\n // certificate issuer differs from CRL issuer\n // and CRL is indirect.\n rcertIssuer = iss;\n isIndirectCRL = true;\n // remember how many leading revoked certificates in the\n // list are issued by the same issuer as issuer of CRL\n // (these certificates are first in the list)\n nonIndirectEntriesSize = i;\n }\n entries.add(new X509CRLEntryImpl(rcert, rcertIssuer));\n }\n }", "public Set list(String constraint) {\n //sanity check\n if (this.isClosed()) {\n //probably an exception should be thrown here!!\n throw new RuntimeException(RLI_NOT_CONNECTED_MSG + this.mRLIURL);\n }\n Set result = new HashSet();\n String url = null,message = null;\n //we need to get hold of all the LRC\n //that report to the RLI and call the\n //list() method on each of them\n for(Iterator it = this.getReportingLRC().iterator();it.hasNext();){\n url = (String)it.next();\n message = \"Querying LRC \" + url;\n mLogger.log(message,LogManager.DEBUG_MESSAGE_LEVEL);\n\n //push the lrcURL to the properties object\n mConnectProps.setProperty(this.URL_KEY,url);\n LRC lrc = new LRC();\n if(!lrc.connect(mConnectProps)){\n //log an error/warning message\n mLogger.log(\"Unable to connect to LRC \" + url,\n LogManager.ERROR_MESSAGE_LEVEL);\n continue;\n }\n try{\n result.addAll(lrc.list(constraint));\n }\n catch(Exception e){\n mLogger.log(\"list(String)\",e,LogManager.ERROR_MESSAGE_LEVEL);\n }\n finally{\n lrc.close();\n }\n mLogger.log(message + LogManager.MESSAGE_DONE_PREFIX,LogManager.DEBUG_MESSAGE_LEVEL);\n }\n\n return result;\n }", "public HashMap<K,V> listAll();", "java.util.List<com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key> getKeyList();", "@SuppressWarnings ( \"unchecked\" )\n private static List<LogEntry> getWhere ( final List<Criterion> where ) {\n return (List<LogEntry>) getWhere( LogEntry.class, where );\n }", "public abstract List<String> getAllKeys();", "private Iterable getEntrySetFrom(final Object objeto) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {\n\t\tfinal Method entrySetMethod = objeto.getClass().getMethod(\"entrySet\");\n\n\t\tentrySetMethod.setAccessible(true);\n\t\treturn (Iterable)entrySetMethod.invoke(objeto);\n\t}", "public List<ArchiveEntry> getEntriesWithFormat (URI format)\n\t{\n\t\t\n\t\tList<ArchiveEntry> list = new ArrayList<ArchiveEntry> ();\n\t\tfor (ArchiveEntry e : entries.values ())\n\t\t\tif (e.getFormat ().equals (format))\n\t\t\t\tlist.add (e);\n\t\t\t\n\t\treturn list;\n\t}", "Set<Entry<K, V>> getRegisteredValues();", "public List<Record> listAllRecords();", "List<ProductInfoOutput> findList(List<String> productIdList);", "List<T> readAll();", "public List<Entry<T>> getEntries() {\n return Collections.unmodifiableList(entries);\n }", "ArrayList<Match> getMatchList( Filter filter ) {\n return list;\n }" ]
[ "0.64309233", "0.60947233", "0.6000265", "0.5975531", "0.5963127", "0.59626645", "0.59537613", "0.5927832", "0.5906704", "0.5866668", "0.5854483", "0.58467734", "0.5841496", "0.5791133", "0.5779576", "0.5754927", "0.57453275", "0.5732092", "0.5716771", "0.5666987", "0.5664051", "0.56417793", "0.5622183", "0.55880535", "0.55817646", "0.5574698", "0.5570004", "0.55688685", "0.5567826", "0.5526849", "0.55164874", "0.55073506", "0.5504128", "0.5502966", "0.54967743", "0.5476396", "0.546208", "0.546208", "0.546208", "0.546208", "0.546208", "0.544648", "0.5435414", "0.54261005", "0.54252845", "0.5416547", "0.5416389", "0.5414932", "0.5410614", "0.5401974", "0.5398369", "0.53944874", "0.53834814", "0.5382943", "0.53801644", "0.53789485", "0.53672546", "0.5362944", "0.5361515", "0.5358952", "0.5354872", "0.53546333", "0.53505975", "0.53481114", "0.53468573", "0.53353566", "0.5334476", "0.53278565", "0.53256506", "0.53255486", "0.5323655", "0.53100294", "0.5309653", "0.53063786", "0.53008676", "0.5299507", "0.52913964", "0.5289625", "0.52862877", "0.5280389", "0.5279472", "0.5275689", "0.5272671", "0.5268067", "0.5267714", "0.52651465", "0.5248223", "0.52398294", "0.52297163", "0.52224624", "0.5221456", "0.52189857", "0.5213877", "0.5213734", "0.52135986", "0.5213506", "0.52130455", "0.5209951", "0.5208449", "0.5205725", "0.52010506" ]
0.0
-1
Retrieves folders that the specified account owns, or has write privileges on based on the permissions
public List<Folder> getCanEditFolders(Account account, Set<Group> accountGroups) { try { CriteriaQuery<Folder> query = getBuilder().createQuery(Folder.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Permission> permission = from.join("permissions", JoinType.LEFT); // where ((account = account or group in groups) and canWrite)) or is owner Predicate permissionPredicate = getBuilder().and( getBuilder().or( getBuilder().equal(permission.get("account"), account), permission.get("group").in(accountGroups) ), getBuilder().equal(permission.get("canWrite"), true), getBuilder().notEqual(from.get("type"), FolderType.SAMPLE) ); // non sample folders that user owns Predicate folderPredicate = getBuilder().and( getBuilder().equal(getBuilder().lower(from.get("ownerEmail")), account.getEmail().toLowerCase()), getBuilder().notEqual(from.get("type"), FolderType.REMOTE), getBuilder().notEqual(from.get("type"), FolderType.SAMPLE) ); query.where(getBuilder().or(permissionPredicate, folderPredicate)).distinct(true); return currentSession().createQuery(query).list(); } catch (Exception e) { Logger.error(e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getUserPermissions(String login) throws IOException;", "public String getFolders()\r\n\t{\r\n\t\tIrUser user = userService.getUser(userId, false);\r\n\t\tif( !item.getOwner().equals(user) && !user.hasRole(IrRole.ADMIN_ROLE) && \r\n\t\t\t\t!institutionalCollectionPermissionHelper.isInstitutionalCollectionAdmin(user, genericItemId))\r\n\t\t{\r\n\t\t return \"accessDenied\";\r\n\t\t}\r\n\t\tif(parentFolderId != null && parentFolderId > 0)\r\n\t\t{\r\n\t\t folderPath = userFileSystemService.getPersonalFolderPath(parentFolderId);\r\n\t\t}\r\n\t\t\r\n\t\tCollection<PersonalFolder> myPersonalFolders = userFileSystemService.getPersonalFoldersForUser(userId, parentFolderId);\r\n\t\t\r\n\t\tCollection<PersonalFile> myPersonalFiles = userFileSystemService.getPersonalFilesInFolder(userId, parentFolderId);\r\n\t\t\r\n\t fileSystem = new LinkedList<FileSystem>();\r\n\t \r\n\t for(PersonalFolder o : myPersonalFolders)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t for(PersonalFile o: myPersonalFiles)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t FileSystemSortHelper sortHelper = new FileSystemSortHelper();\r\n\t sortHelper.sort(fileSystem, FileSystemSortHelper.TYPE_DESC);\r\n\t return SUCCESS;\r\n\t \r\n\t}", "private List<Folder> getAuthorizedFolderList(String peopleId) throws BizfwServiceException {\n List<Folder> authorizedFolders = new ArrayList<>();\n List<Role> roles = roleService.getRoleListByPeople(peopleId);\n for (Role role : roles) {\n List<Folder> folders = folderRepository.findAllAuthorizedFolderByRoleId(role.getIdBfRole());\n for (Folder folder : folders) {\n if (!authorizedFolders.contains(folder)) {\n authorizedFolders.add(folder);\n }\n }\n }\n return authorizedFolders;\n }", "public List<Folder> getFolders (Long userId) throws BookMarkException;", "@Path(\"{uid}/\")\n @GET\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public Permissions getPermissions(@PathParam(\"uid\") Long uid) {\n try (Connection cn = catalogue.getConnection()) {\n LogicalData res = catalogue.getLogicalDataByUid(uid, cn);\n if (res == null) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n MyPrincipal mp = (MyPrincipal) request.getAttribute(\"myprincipal\");\n Permissions p = catalogue.getPermissions(uid, res.getOwner(), cn);\n if (!mp.canRead(p)) {\n throw new WebApplicationException(Response.Status.UNAUTHORIZED);\n }\n return p;\n } catch (SQLException ex) {\n Logger.getLogger(PermissionsResource.class.getName()).log(Level.SEVERE, null, ex);\n throw new WebApplicationException(Response.Status.INTERNAL_SERVER_ERROR);\n }\n }", "public List<Permission> getPermissions(User user) throws UserManagementException;", "List<Permission> getPermissions();", "public Enumeration permissions();", "@Path(\"/ListUserPermissions/{userName}\")\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\"})\n @GET\n public ListUserPermissionsResponse listUserPermissions(@PathParam(\"userName\") String userName) {\n \n ListUserPermissionsResponse response = new ListUserPermissionsResponse();\n Connector connection = null;\n AccumuloConnectionFactory.Priority priority = AccumuloConnectionFactory.Priority.ADMIN;\n try {\n Map<String,String> trackingMap = connectionFactory.getTrackingMap(Thread.currentThread().getStackTrace());\n connection = connectionFactory.getConnection(priority, trackingMap);\n \n SecurityOperations ops = connection.securityOperations();\n \n List<datawave.webservice.response.objects.SystemPermission> systemPermissions = new ArrayList<>();\n SystemPermission[] allSystemPerms = SystemPermission.values();\n for (SystemPermission next : allSystemPerms) {\n if (ops.hasSystemPermission(userName, next)) {\n systemPermissions.add(new datawave.webservice.response.objects.SystemPermission(next.name()));\n }\n }\n \n List<datawave.webservice.response.objects.TablePermission> tablePermissions = new ArrayList<>();\n TableOperations tops = connection.tableOperations();\n SortedSet<String> tables = tops.list();\n TablePermission[] allTablePerms = TablePermission.values();\n for (String next : tables) {\n for (TablePermission nextPerm : allTablePerms) {\n if (ops.hasTablePermission(userName, next, nextPerm)) {\n tablePermissions.add(new datawave.webservice.response.objects.TablePermission(next, nextPerm.name()));\n }\n }\n }\n \n List<datawave.webservice.response.objects.NamespacePermission> namespacePermissions = new ArrayList<>();\n NamespaceOperations nops = connection.namespaceOperations();\n SortedSet<String> namespaces = nops.list();\n NamespacePermission[] allNamespacePerms = NamespacePermission.values();\n for (String next : namespaces) {\n for (NamespacePermission nextPerm : allNamespacePerms) {\n if (ops.hasNamespacePermission(userName, next, nextPerm)) {\n namespacePermissions.add(new datawave.webservice.response.objects.NamespacePermission(next, nextPerm.name()));\n }\n }\n }\n \n UserPermissions userPermissions = new UserPermissions();\n userPermissions.setSystemPermissions(systemPermissions);\n userPermissions.setTablePermissions(tablePermissions);\n userPermissions.setNamespacePermissions(namespacePermissions);\n response.setUserPermissions(userPermissions);\n \n return response;\n } catch (AccumuloSecurityException e) {\n log.error(e.getMessage(), e);\n response.addException(e);\n throw new UnauthorizedException(e, response);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n response.addException(e);\n throw new AccumuloWebApplicationException(e, response);\n } finally {\n try {\n connectionFactory.returnConnection(connection);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }\n }", "public List<String> _getSavingDirectories() throws CallError, InterruptedException {\n return (List<String>)service.call(\"_getSavingDirectories\").get();\n }", "private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "java.util.List<java.lang.String>\n getPermissionsList();", "private ImmutableSet<Permission> getPermissions(XMLConfiguration cfg) {\n List<Permission> permissionList = Lists.newArrayList();\n\n for (Object o : cfg.getList(APP_PERMISSIONS)) {\n String name = (String) o;\n permissionList.add(new Permission(AppPermission.class.getName(), name));\n }\n for (Object o : cfg.getList(NET_PERMISSIONS)) {\n //TODO: TO BE FLESHED OUT WHEN NETWORK PERMISSIONS ARE SUPPORTED\n break;\n }\n\n List<HierarchicalConfiguration> fields =\n cfg.configurationsAt(JAVA_PERMISSIONS);\n for (HierarchicalConfiguration sub : fields) {\n String classname = sub.getString(\"classname\");\n String name = sub.getString(\"name\");\n String actions = sub.getString(\"actions\");\n\n if (classname != null && name != null) {\n permissionList.add(new Permission(classname, name, actions));\n }\n }\n return ImmutableSet.copyOf(permissionList);\n }", "List<String> getAvailablePermissions() throws GWTJahiaServiceException;", "List<BillingPermissionsProperties> permissions();", "public Hashtable<String, Boolean> getUsersAndPermissionsFor(String ownerPublicKey, String fileName) {\n Log.i(\"getUsersAndPermsFor\", \"Getting user and perms for \" + fileName);\n\n Hashtable<String, Boolean> usersWithPerms = new Hashtable<>();\n\n Cursor resultSet = database.rawQuery(\n \"SELECT UserPublicKey, UserName FROM UserAccounts WHERE UserPublicKey != '\" + ownerPublicKey + \"'\", null);\n\n resultSet.moveToFirst();\n while (!resultSet.isAfterLast()) {\n Log.i(\"getUsersAndPermsFor\", \"User: \" + resultSet.getString(0) + \" is permissioned \" + false);\n usersWithPerms.put(resultSet.getString(0), false);\n resultSet.moveToNext();\n }\n\n resultSet = database.rawQuery(\n \"SELECT DISTINCT UserPublicKey FROM FileKeys \" +\n \"WHERE UserPublicKey != '\" + ownerPublicKey + \"' \" +\n \"AND isOwner = 0 \" +\n \"AND File = '\" + fileName + \"'\", null);\n\n resultSet.moveToFirst();\n while (!resultSet.isAfterLast()) {\n Log.i(\"getUsersAndPermsFor\", \"User: \" + resultSet.getString(0) + \" is permissioned \" + true);\n usersWithPerms.put(resultSet.getString(0), true);\n resultSet.moveToNext();\n }\n\n resultSet = database.rawQuery(\n \"SELECT UserPublicKey, UserName FROM UserAccounts WHERE UserPublicKey != '\" + ownerPublicKey + \"'\", null);\n\n Hashtable<String, Boolean> userNamesWithPerms = new Hashtable<>();\n resultSet.moveToFirst();\n while (!resultSet.isAfterLast()) {\n Log.i(\"getUsersAndPermsFor\", \"User Name: \" + resultSet.getString(1) + \", permission: \" + usersWithPerms.get(resultSet.getString(0)));\n userNamesWithPerms.put(resultSet.getString(1), usersWithPerms.get(resultSet.getString(0)));\n resultSet.moveToNext();\n }\n\n resultSet.close();\n Log.i(\"getUsersAndPermsFor\", \"Have user names and perms\");\n return userNamesWithPerms;\n }", "public List<IPermissionOwner> getAllPermissionOwners();", "public List<String> getPermission(int userId, String crp);", "public List<Permission> getPermissions(String objectId) throws UserManagementException;", "public ArrayList<FeedFolder> findFolderByUserID(Integer uid);", "public abstract List<String> getDirs( );", "List<UserContentAccess> findContentAccess();", "public interface PermissionContainer {\n\n\t/**\n\t * @param permission\n\t * @return true if player has permission\n\t */\n\tboolean hasPermission(String permission);\n\n\t/**\n\t * @param permission\n\t * @return true if container has permission\n\t */\n\tboolean hasPermission(Permission permission);\n\n\t/**\n\t * Sets a desired permission\n\t * \n\t * @param perm\n\t * @param add\n\t */\n\tvoid setPermission(String perm, boolean add);\n\n\t/**\n\t * @return true if account has wildcard\n\t */\n\tboolean hasWildCard();\n\n\t/**\n\t * Adds wildcard permission\n\t */\n\tvoid addWildCard();\n\n\t/**\n\t * Removes wildcard permission\n\t */\n\tvoid removeWildCard();\n\n\t/**\n\t * @return the account's permissions\n\t */\n\tSet<String> getPermissions();\n\n\t/**\n\t * @return the account's evaded permissions\n\t */\n\tSet<String> getNonPermissions();\n\n}", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "private void getPermissions(){\n // Check READ storage permission\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(\"STORAGE PERMISSION\", \"request READ_EXTERNAL_STORAGE\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n REQUEST_READ_EXTERNAL_STORAGE);\n } else {\n Log.i(\"STORAGE PERMISSION\", \"READ_EXTERNAL_STORAGE already granted\");\n read_external_storage_granted = true;\n }\n\n // Check WRITE storage permission\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(\"STORAGE PERMISSION\", \"request WRITE_EXTERNAL_STORAGE\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_WRITE_EXTERNAL_STORAGE);\n } else {\n Log.i(\"STORAGE PERMISSION\", \"WRITE_EXTERNAL_STORAGE already granted\");\n write_external_storage_granted = true;\n }\n\n // Check camera permission\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n Log.i(\"CAMERA PERMISSION\", \"request CAMERA permission\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA},\n REQUEST_CAMERA);\n } else {\n Log.i(\"CAMERA PERMISSION\", \"CAMERA permission already granted\");\n camera_permission_granted = true;\n }\n\n }", "private Set<Permission> getInferredPermissions(DvObject dvo) {\n\n Set<Permission> permissions = EnumSet.noneOf(Permission.class);\n\n if (isPublicallyDownloadable(dvo)) {\n permissions.add(Permission.DownloadFile);\n }\n\n return permissions;\n }", "public IGrantSet getPermissions()\n throws OculusException;", "public void doFolder_permissions(RunData data, Context context)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid());\n\t\tParameterParser params = data.getParameters();\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\t// get the current collection id and the related site\n\t\tString collectionId = params.getString(\"collectionId\"); //(String) state.getAttribute (STATE_COLLECTION_ID);\n\t\tString title = \"\";\n\t\ttry\n\t\t{\n\t\t\ttitle = ContentHostingService.getProperties(collectionId).getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t}\n\t\tcatch (PermissionException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notread\"));\n\t\t}\n\t\tcatch (IdUnusedException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notfindfol\"));\n\t\t}\n\n\t\t// the folder to edit\n\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(collectionId));\n\t\tstate.setAttribute(PermissionsHelper.TARGET_REF, ref.getReference());\n\n\t\t// use the folder's context (as a site) for roles\n\t\tString siteRef = SiteService.siteReference(ref.getContext());\n\t\tstate.setAttribute(PermissionsHelper.ROLES_REF, siteRef);\n\n\t\t// ... with this description\n\t\tstate.setAttribute(PermissionsHelper.DESCRIPTION, rb.getString(\"setpermis\") + \" \" + title);\n\n\t\t// ... showing only locks that are prpefixed with this\n\t\tstate.setAttribute(PermissionsHelper.PREFIX, \"content.\");\n\n\t\t// get into helper mode with this helper tool\n\t\tstartHelper(data.getRequest(), \"sakai.permissions.helper\");\n\n\t}", "public ACL getACL() {\n return folderACL;\n }", "public List<Permission> getPermissions(T object, User user);", "boolean isWritePermissionGranted();", "private boolean isReadStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n int write = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED && write == PackageManager.PERMISSION_DENIED) {\n return true;\n } else {\n\n //If permission is not granted returning false\n return false;\n }\n }", "public Map<String, Boolean> hasPermission(String login, List<String> permissions);", "java.lang.String getPermissions(int index);", "private boolean isReadStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "private static ArrayList<Boolean> retrieveUserPermissionsFromDb(String username) throws IOException, SQLException {\n ArrayList<Boolean> userPermissions = new ArrayList<>();\n ArrayList<String> retrievedUser = retrieveUser(username);\n userPermissions.add(0, stringToBoolean(retrievedUser.get(3))); // Create billboard\n userPermissions.add(1, stringToBoolean(retrievedUser.get(4))); // Edit billboard\n userPermissions.add(2, stringToBoolean(retrievedUser.get(5))); // Edit schedule\n userPermissions.add(3, stringToBoolean(retrievedUser.get(6))); // Edit User\n return userPermissions;\n }", "private static void checkAccess(File directory, boolean isWriteable) throws IOException {\n if(!directory.exists()) {\n if(directory.mkdirs()) {\n logger.debug(\"Created directory [{}]\", directory.getCanonicalPath());\n } else {\n throw new IOException(\"Could not create directory \" +\n \"[\"+directory.getCanonicalPath()+\"], \" +\n \"make sure you have the proper \" +\n \"permissions to create, read & write \" +\n \"to the file system\");\n }\n }\n // Find if we can write to the record root directory\n if(!directory.canRead())\n throw new IOException(\"Cant read from : \"+directory.getCanonicalPath());\n if(isWriteable) {\n if(!directory.canWrite())\n throw new IOException(\"Cant write to : \"+directory.getCanonicalPath());\n }\n }", "public void shareFolder(String accessToken, String email) throws IOException, GeneralSecurityException {\n Permission userPermission = new Permission().setType(\"user\").setRole(\"reader\").setEmailAddress(email);\n\n List<File> folders = search(accessToken, FOLDER_NAME);\n String folerID = null;\n for(File folder: folders){\n if(folder.getOwnedByMe() && !folder.getTrashed()){\n folerID = folder.getId();\n break;\n }\n }\n\n Permission response;\n if(folerID != null){\n response = getDriveService(accessToken).permissions().create(folerID, userPermission).execute();\n log.debug(response.toString());\n }\n }", "public abstract boolean isDirectory() throws AccessException;", "int getPermissionWrite();", "private Collection getAllOwnedPermissions(OpGroup group) {\r\n Set ownedPermissions = new HashSet(group.getOwnedPermissions());\r\n for (Iterator iterator = group.getSuperGroupAssignments().iterator(); iterator.hasNext();) {\r\n OpGroupAssignment assignment = (OpGroupAssignment) iterator.next();\r\n ownedPermissions.addAll(getAllOwnedPermissions(assignment.getSuperGroup()));\r\n }\r\n return ownedPermissions;\r\n }", "@Override\n\tpublic Set<String> getPermissions(String username) {\n\t\tSet<String> pers = userDao.getPermissions(username);\n\t\treturn pers;\n\t}", "@Test\n\tpublic void testGetPermissions_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\n\t\tSet<Permission> result = fixture.getPermissions();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "protected abstract String[] getFolderList() throws IOException;", "int getPermissionsCount();", "public interface AccessManager {\n\n /**\n * predefined action constants\n */\n public String READ_ACTION = javax.jcr.Session.ACTION_READ;\n public String REMOVE_ACTION = javax.jcr.Session.ACTION_REMOVE;\n public String ADD_NODE_ACTION = javax.jcr.Session.ACTION_ADD_NODE;\n public String SET_PROPERTY_ACTION = javax.jcr.Session.ACTION_SET_PROPERTY;\n\n public String[] READ = new String[] {READ_ACTION};\n public String[] REMOVE = new String[] {REMOVE_ACTION};\n\n /**\n * Determines whether the specified <code>permissions</code> are granted\n * on the item with the specified path.\n *\n * @param parentState The node state of the next existing ancestor.\n * @param relPath The relative path pointing to the non-existing target item.\n * @param actions An array of actions that need to be checked.\n * @return <code>true</code> if the actions are granted; otherwise <code>false</code>\n * @throws ItemNotFoundException if the target item does not exist\n * @throws RepositoryException if another error occurs\n */\n boolean isGranted(NodeState parentState, Path relPath, String[] actions) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Determines whether the specified <code>permissions</code> are granted\n * on the item with the specified path.\n *\n * @param itemState\n * @param actions An array of actions that need to be checked.\n * @return <code>true</code> if the actions are granted; otherwise <code>false</code>\n * @throws ItemNotFoundException if the target item does not exist\n * @throws RepositoryException if another error occurs\n */\n boolean isGranted(ItemState itemState, String[] actions) throws ItemNotFoundException, RepositoryException;\n\n\n /**\n * Returns true if the existing item with the given <code>ItemId</code> can\n * be read.\n *\n * @param itemState\n * @return\n * @throws ItemNotFoundException\n * @throws RepositoryException\n */\n boolean canRead(ItemState itemState) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Returns true if the existing item state can be removed.\n *\n * @param itemState\n * @return\n * @throws ItemNotFoundException\n * @throws RepositoryException\n */\n boolean canRemove(ItemState itemState) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Determines whether the subject of the current context is granted access\n * to the given workspace.\n *\n * @param workspaceName name of workspace\n * @return <code>true</code> if the subject of the current context is\n * granted access to the given workspace; otherwise <code>false</code>.\n * @throws NoSuchWorkspaceException if a workspace with the given name does not exist.\n * @throws RepositoryException if another error occurs\n */\n boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;\n}", "boolean isHasPermissions();", "private boolean isReadStorageAllowed() {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "int getPermissionRead();", "public List<String> getPermissions() {\n AppMethodBeat.m2504i(92672);\n List permissions = this.properties.getPermissions();\n AppMethodBeat.m2505o(92672);\n return permissions;\n }", "private GitLabFolderACL aclFromPermissionTable(Map<String, Object> tableData) {\n GitLabGrantedPermissions grantedPermissions = new GitLabGrantedPermissions();\n\n for (Entry<String, Object> identityPermission : tableData.entrySet()) {\n GitLabPermissionIdentity identity = null;\n String[] identityValue = identityPermission.getKey().split(\":\");\n\n if (identityValue.length == 2) {\n IdentityType type = IdentityType.valueOf(identityValue[0]);\n String id = identityValue[1];\n\n switch (type) {\n case GITLAB:\n identity = GitLabPermissionIdentity.getGitLabIdentityFromAccessLevel(\n GitLabAccessLevel.getAccessLevelWithName(id));\n break;\n case JENKINS:\n identity = GitLabPermissionIdentity.getJenkinsIdentityFromAccessLevel(\n JenkinsAccessLevel.getAccessLevelWithName(id));\n break;\n case GROUP:\n identity = GitLabPermissionIdentity.group(id);\n break;\n case USER:\n identity = GitLabPermissionIdentity.user(id);\n break;\n }\n }\n\n Map<String, Object> value = (JSONObject)identityPermission.getValue();\n\n for (Entry<String, Object> valueSet : value.entrySet()) {\n if ((Boolean)valueSet.getValue() && identity != null) {\n grantedPermissions.addPermission(identity, Permission.fromId(valueSet.getKey()));\n }\n }\n }\n\n return new GitLabFolderACL(grantedPermissions);\n }", "Set<Right> getRightsFor(User user, Pad pad);", "public Set<PosixFilePermission> permissions() {\n List<PosixFilePermission> listPermissions = new ArrayList<PosixFilePermission>();\n listPermissions.add(PosixFilePermission.OWNER_READ);\n listPermissions.add(PosixFilePermission.OWNER_WRITE);\n listPermissions.add(PosixFilePermission.OWNER_EXECUTE);\n listPermissions.add(PosixFilePermission.GROUP_READ);\n listPermissions.add(PosixFilePermission.GROUP_WRITE);\n listPermissions.add(PosixFilePermission.GROUP_EXECUTE);\n listPermissions.add(PosixFilePermission.OTHERS_READ);\n listPermissions.add(PosixFilePermission.OTHERS_WRITE);\n listPermissions.add(PosixFilePermission.OTHERS_EXECUTE);\n\n // We get the permission string and we create it by looking up\n String permissionString = this.attrs.getPermissionsString();\n Set<PosixFilePermission> permissions = new HashSet<PosixFilePermission>();\n char nothing = \"-\".charAt(0);\n // We skip the first character as it's the file type\n for (int i=1; i< permissionString.length();i++) {\n if (permissionString.charAt(i) != nothing) {\n permissions.add(listPermissions.get(i-1));\n }\n }\n\n return permissions;\n\n }", "public IPermission[] getPermissionsForOwner(String owner, String activity, String target)\n throws AuthorizationException;", "public static void getUserPermissions(ArrayList<String> parameters, HashMap<String, ArrayList<String>> sessions, ObjectOutputStream oos) throws IOException {\n ArrayList<Integer> userPermissions;\n\n // check if correct number of parameters have been provided\n if (parameters.size() != 2) {\n oos.writeObject(new Response(StatusCodes.BAD_REQUEST, \"Parameters Invalid\"));\n } else {\n // check if token from parameters is valid and if session token has not yet expired\n if (sessions.containsKey(parameters.get(1)) && !hasTokenExpired(sessions, parameters.get(1))) {\n // check if the user exists\n if (Users.doesUserExists(parameters.get(0))) {\n // check if user is attempting to get their own permissions\n if (parameters.get(0).equals(sessions.get(parameters.get(1)).get(0))) {\n // get the user's permissions\n userPermissions = Users.getUserPermissionsFromDB(parameters.get(0));\n if (userPermissions.isEmpty()) {\n oos.writeObject(new Response(StatusCodes.NO_CONTENT, userPermissions));\n } else {\n oos.writeObject(new Response(StatusCodes.OK, userPermissions));\n }\n } else {\n // check if the user has the \"Edit Users\" permission\n if (Users.userHasPermission(sessions.get(parameters.get(1)).get(0), ServerPermissions.EDIT_USERS)) {\n // get the user's permissions\n userPermissions = Users.getUserPermissionsFromDB(parameters.get(0));\n if (userPermissions.isEmpty()) {\n oos.writeObject(new Response(StatusCodes.NO_CONTENT, userPermissions));\n } else {\n oos.writeObject(new Response(StatusCodes.OK, userPermissions));\n }\n } else {\n oos.writeObject(new Response(StatusCodes.FORBIDDEN, \"Missing Permissions\"));\n }\n }\n } else {\n oos.writeObject(new Response(StatusCodes.INTERNAL_ERROR, \"User Does Not Exist\"));\n }\n } else {\n oos.writeObject(new Response(StatusCodes.UNAUTHORISED, \"Unauthorised Request\"));\n }\n }\n // flush oos\n oos.flush();\n }", "@GET\n @Path(\"/admin/list\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getUserAdminProjects() {\n HttpSession session = request.getSession();\n\n if (session.getAttribute(\"projectAdmin\") == null) {\n throw new ForbiddenRequestException(\"You must be the project's admin.\");\n }\n String username = session.getAttribute(\"user\").toString();\n\n projectMinter project= new projectMinter();\n String response = project.listUserAdminProjects(username);\n project.close();\n\n return Response.ok(response).build();\n }", "private boolean checkReadWritePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n ActivityCompat.requestPermissions(PanAadharResultActivity.this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 111);\n return false;\n }\n }\n\n return false;\n }", "public void publicDir(int empId){\n \t ResultSet r = null;\n \t \n \t String sql = \"select f.dirId, f.dname, f.permission, u.empId, u.firstname, u.lastname \"\n \t \t\t+ \"from folder f, userbean u where f.permission ='public' and u.empId = f.empId\";\n \t \n \t r = mgr.executeFetch(sql);\n \t \n \t try {\n\t\t\twhile(r.next()){\n\t\t\t AccessBean ab = new AccessBean();\n\t\t\t ab.setDirId(r.getInt(\"dirId\"));\n\t\t\t ab.setDirName(r.getString(\"dname\"));\n\t\t\t ab.setPermission(r.getString(\"permission\"));\n\t\t\t ab.setEmpId(r.getInt(\"empId\"));\n\t\t\t ab.setEmpfname(r.getString(\"firstname\"));\n\t\t\t ab.setEmplname(r.getString(\"lastname\"));\n\t\t\t \n\t\t\t list.add(ab);\n\t\t\t }\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t \n }", "private boolean isWriteStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "public java.util.List<org.eclipse.stardust.engine.api.runtime.Permission>\n getPermissions()\n throws org.eclipse.stardust.common.error.WorkflowException;", "public abstract boolean impliesWithoutTreePathCheck(Permission permission);", "public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;", "public void getFolderData(View view) {\n if (mDriveServiceHelper != null) {\n Intent intent = new Intent(this, ListActivity.class);\n\n mDriveServiceHelper.getFolderFileList()\n .addOnSuccessListener(new OnSuccessListener<ArrayList<GoogleDriveFileHolder>>() {\n @Override\n public void onSuccess(ArrayList<GoogleDriveFileHolder> result) {\n Log.e(TAG, \"onSuccess: result: \"+result.size() );\n intent.putParcelableArrayListExtra(\"fileList\", result);\n startActivity(intent);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n showMessage(\"Not able to access Folder data.\");\n Log.e(TAG, \"Not able to access Folder data.\", e);\n }\n });\n }\n }", "private ImmutableSet<Path> getWritableDirs(Path sandboxExecRoot) throws IOException {\n ImmutableSet.Builder<Path> writableDirs =\n ImmutableSet.<Path>builder().add(sandboxExecRoot).add(sandboxExecRoot.getRelative(\"/tmp\"));\n\n FileSystem fs = sandboxExecRoot.getFileSystem();\n for (String writablePath : hardenedSandboxOptions.writablePaths()) {\n Path path = fs.getPath(writablePath);\n writableDirs.add(path);\n if (path.isSymbolicLink()) {\n writableDirs.add(path.resolveSymbolicLinks());\n }\n }\n\n writableDirs.add(fs.getPath(\"/dev/shm\").resolveSymbolicLinks());\n writableDirs.add(fs.getPath(\"/tmp\"));\n\n return writableDirs.build();\n }", "@GET\n\t@PermitAll\n\t@Path(\"/{groupid}/permission\")\n\t@Produces(\"application/json\")\n\tpublic Map<String,String> getGroupNetworkPermissions(@PathParam(\"groupid\") final String groupIdStr,\n\t\t @QueryParam(\"networkid\") String networkIdStr,\n\t\t @QueryParam(\"permission\") String permissions,\n\t\t\t@DefaultValue(\"0\") @QueryParam(\"start\") int skipBlocks,\n\t\t\t@DefaultValue(\"100\") @QueryParam(\"size\") int blockSize ) \n\t\t\t\t\tthrows NdexException, SQLException, IllegalArgumentException {\n\n\t\t\n\t\tUUID groupId = UUID.fromString(groupIdStr);\n\t\t\n\t\t\n\t\tif ( networkIdStr != null) {\n\t\t\tMap<String,String> result = new TreeMap<>();\n\t\t\tUUID networkId = UUID.fromString(networkIdStr);\n\t\t\ttry (GroupDAO dao = new GroupDAO()) {\n\t\t\t\tif ( !dao.isInGroup(groupId,getLoggedInUserId()) )\n\t\t\t\t\tthrow new NdexException (\"Only a group member or admin can check group permission on a network\");\n\t\t\t\t\n\t\t\t\tPermissions m = dao.getMembershipToNetwork(groupId, networkId);\n\t\t\t\tresult.put(networkIdStr, m.toString());\n\t\t\t\treturn result;\n\t\t\t} \n\t\t}\t\n\t\t\n\t\tboolean inclusive = true;\n\t\tPermissions permission = Permissions.READ;\n\t\tif ( permission !=null) {\n\t\t\t permission = Permissions.valueOf(permissions.toUpperCase());\n\t\t}\n\t\ttry (GroupDAO dao = new GroupDAO()){\n\t//\t\tif ( !dao.isInGroup(groupId, getLoggedInUserId()))\n\t//\t\t\tthrow new NdexException(\"User is not a member of this group.\");\n\t\t\treturn dao.getGroupNetworkPermissions(groupId, permission, skipBlocks, blockSize, getLoggedInUserId(), inclusive);\n\t\t\t//logger.info(\"[end: Getting {} networks of group {}]\", permissions, groupId);\n\t\t\t//return l;\n\t\t}\n\t}", "public void requestPermissions(){\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "public void testPropfindPropOwnerAndAclOnNode() throws Exception\n {\n\n NodeImpl testNode = (NodeImpl)root.addNode(\"test_acl_property\", \"nt:folder\");\n testNode.addMixin(\"exo:owneable\");\n testNode.addMixin(\"exo:privilegeable\");\n session.save();\n\n Map<String, String[]> permissions = new HashMap<String, String[]>();\n\n String userName = USER_JOHN;\n permissions.put(userName, PermissionType.ALL);\n\n testNode.setPermissions(permissions);\n testNode.getSession().save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.putSingle(\"Depth\", \"1\");\n headers.putSingle(HttpHeaders.CONTENT_TYPE, \"text/xml; charset=\\\"utf-8\\\"\");\n\n EnvironmentContext ctx = new EnvironmentContext();\n\n Set<String> adminRoles = new HashSet<String>();\n adminRoles.add(\"administrators\");\n\n DummySecurityContext adminSecurityContext = new DummySecurityContext(new Principal()\n {\n public String getName()\n {\n return USER_ROOT;\n }\n }, adminRoles);\n\n ctx.put(SecurityContext.class, adminSecurityContext);\n\n RequestHandlerImpl handler = (RequestHandlerImpl)container.getComponentInstanceOfType(RequestHandlerImpl.class);\n ResourceLauncher launcher = new ResourceLauncher(handler);\n\n String request =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\" + \"<D:propfind xmlns:D=\\\"DAV:\\\">\" + \"<D:prop>\" + \"<D:owner/>\"\n + \"<D:acl/>\" + \"</D:prop>\" + \"</D:propfind>\";\n\n ContainerResponse cres =\n launcher.service(WebDAVMethods.PROPFIND, getPathWS() + testNode.getPath(), BASE_URI, headers,\n request.getBytes(), null, ctx);\n\n assertEquals(HTTPStatus.MULTISTATUS, cres.getStatus());\n\n HierarchicalPropertyEntityProvider provider = new HierarchicalPropertyEntityProvider();\n InputStream inputStream = TestUtils.getResponseAsStream(cres);\n HierarchicalProperty multistatus = provider.readFrom(null, null, null, null, null, inputStream);\n\n assertEquals(new QName(\"DAV:\", \"multistatus\"), multistatus.getName());\n assertEquals(1, multistatus.getChildren().size());\n\n HierarchicalProperty resourceProp = multistatus.getChildren().get(0);\n\n HierarchicalProperty resourceHref = resourceProp.getChild(new QName(\"DAV:\", \"href\"));\n assertNotNull(resourceHref);\n assertEquals(BASE_URI + getPathWS() + testNode.getPath() + \"/\", resourceHref.getValue());\n\n HierarchicalProperty propstatProp = resourceProp.getChild(new QName(\"DAV:\", \"propstat\"));\n HierarchicalProperty propProp = propstatProp.getChild(new QName(\"DAV:\", \"prop\"));\n\n HierarchicalProperty aclProp = propProp.getChild(ACLProperties.ACL);\n assertEquals(1, aclProp.getChildren().size());\n\n HierarchicalProperty aceProp = aclProp.getChild(ACLProperties.ACE);\n assertEquals(2, aceProp.getChildren().size());\n\n HierarchicalProperty principalProp = aceProp.getChild(ACLProperties.PRINCIPAL);\n assertEquals(1, principalProp.getChildren().size());\n\n assertEquals(userName, principalProp.getChildren().get(0).getValue());\n\n HierarchicalProperty grantProp = aceProp.getChild(ACLProperties.GRANT);\n assertEquals(2, grantProp.getChildren().size());\n\n HierarchicalProperty writeProp = grantProp.getChild(0).getChild(ACLProperties.WRITE);\n assertNotNull(writeProp);\n HierarchicalProperty readProp = grantProp.getChild(1).getChild(ACLProperties.READ);\n assertNotNull(readProp);\n\n }", "public AccountPermissions accountPermissions() {\n return this.accountPermissions;\n }", "@Test\n\tpublic void testGetPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\n\t\tSet<Permission> result = fixture.getPermissions();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public interface PermissionService {\n List<User> findRoleUsers(String roleId);\n\n void roleAssignUsers(String roleId, String assignUsers, String removeUsers);\n\n void roleAssignMenu(String roleId, String menuIds);\n\n List<Menu> findRoleMenus(String roleId);\n}", "public List<Permission> queryAllPermission() {\n\t\treturn permissionMapper.queryAllPermission();\n\t}", "public void testPropfindPermissionsOnRoot() throws Exception\n {\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.putSingle(\"Depth\", \"0\");\n EnvironmentContext ctx = new EnvironmentContext();\n\n Set<String> adminRoles = new HashSet<String>();\n adminRoles.add(\"administrators\");\n\n DummySecurityContext adminSecurityContext = new DummySecurityContext(new Principal()\n {\n public String getName()\n {\n return USER_ROOT;\n }\n }, adminRoles);\n\n ctx.put(SecurityContext.class, adminSecurityContext);\n\n RequestHandlerImpl handler = (RequestHandlerImpl)container.getComponentInstanceOfType(RequestHandlerImpl.class);\n ResourceLauncher launcher = new ResourceLauncher(handler);\n\n String request =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\" + \"<D:propfind xmlns:D=\\\"DAV:\\\">\" + \"<D:prop>\" + \"<D:owner/>\"\n + \"<D:acl/>\" + \"</D:prop>\" + \"</D:propfind>\";\n\n ContainerResponse response =\n launcher.service(WebDAVMethods.PROPFIND, getPathWS(), BASE_URI, headers, request.getBytes(), null, ctx);\n\n assertEquals(HTTPStatus.MULTISTATUS, response.getStatus());\n assertNotNull(response.getEntity());\n\n HierarchicalPropertyEntityProvider provider = new HierarchicalPropertyEntityProvider();\n InputStream inputStream = TestUtils.getResponseAsStream(response);\n HierarchicalProperty multistatus = provider.readFrom(null, null, null, null, null, inputStream);\n\n assertEquals(new QName(\"DAV:\", \"multistatus\"), multistatus.getName());\n assertEquals(1, multistatus.getChildren().size());\n\n HierarchicalProperty resourceProp = multistatus.getChildren().get(0);\n\n HierarchicalProperty resourceHref = resourceProp.getChild(new QName(\"DAV:\", \"href\"));\n assertNotNull(resourceHref);\n assertEquals(BASE_URI + getPathWS() + \"/\", resourceHref.getValue());\n\n HierarchicalProperty propstatProp = resourceProp.getChild(new QName(\"DAV:\", \"propstat\"));\n HierarchicalProperty propProp = propstatProp.getChild(new QName(\"DAV:\", \"prop\"));\n\n HierarchicalProperty ownerProp = propProp.getChild(new QName(\"DAV:\", \"owner\"));\n HierarchicalProperty ownerHrefProp = ownerProp.getChild(new QName(\"DAV:\", \"href\"));\n\n assertEquals(\"__system\", ownerHrefProp.getValue());\n\n HierarchicalProperty aclProp = propProp.getChild(ACLProperties.ACL);\n assertEquals(1, aclProp.getChildren().size());\n\n HierarchicalProperty aceProp = aclProp.getChild(ACLProperties.ACE);\n assertEquals(2, aceProp.getChildren().size());\n\n HierarchicalProperty principalProp = aceProp.getChild(ACLProperties.PRINCIPAL);\n assertEquals(1, principalProp.getChildren().size());\n\n HierarchicalProperty allProp = principalProp.getChild(ACLProperties.ALL);\n assertNotNull(allProp);\n\n HierarchicalProperty grantProp = aceProp.getChild(ACLProperties.GRANT);\n assertEquals(2, grantProp.getChildren().size());\n\n HierarchicalProperty writeProp = grantProp.getChild(0).getChild(ACLProperties.WRITE);\n assertNotNull(writeProp);\n HierarchicalProperty readProp = grantProp.getChild(1).getChild(ACLProperties.READ);\n assertNotNull(readProp);\n }", "protected void doGetPermissions() throws TmplException {\r\n try {\r\n GlbPerm perm = (GlbPerm)TmplEJBLocater.getInstance().getEJBRemote(\"pt.inescporto.permissions.ejb.session.GlbPerm\");\r\n\r\n perms = perm.getFormPerms(MenuSingleton.getRole(), permFormId);\r\n }\r\n catch (java.rmi.RemoteException rex) {\r\n //can't get form perms\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(rex);\r\n throw tmplex;\r\n }\r\n catch (javax.naming.NamingException nex) {\r\n //can't find GlbPerm\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(nex);\r\n throw tmplex;\r\n }\r\n }", "private void permissionChecks() {\n if(Build.VERSION.SDK_INT < 23)\n return;\n\n if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED || checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE}, 0);\n }\n }", "private boolean hasExternalStorageReadWritePermission() {\n return ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED\n && ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED;\n }", "boolean hasDriveFolder();", "public IPermission[] getAllPermissionsForPrincipal (\n IAuthorizationPrincipal principal,\n String owner,\n String activity,\n String target)\n throws AuthorizationException;", "private void browseUsersFolders(Path path) {\n try (DirectoryStream<Path> streamUserDir = Files.newDirectoryStream(path)) {\n for (Path userDir : streamUserDir) {\n // recursive deletion if userDir not modified anymore\n if (checkDeletion(userDir)) {\n logger.log(Level.INFO, \"Deletion started for: \"\n + userDir.getFileName());\n FilesHelper.deleteFolder(userDir);\n }\n\n // if modified and exists, then check inside\n if (Files.exists(userDir)) {\n browseApplicationsFolders(userDir);\n }\n }\n } catch (Exception ex) {\n logger.log(Level.ERROR, \"Cannot get directory list\", ex);\n }\n }", "public List<SecRight> getAllRights(int type);", "@Override\r\n\tpublic List<Permission> queryAll() {\n\t\treturn permissionDao.queryAll();\r\n\t}", "@PreAuthorize(\"hasPermission('string', 'ALL', new org.jasig.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\")\n @RequestMapping(value=\"/permissions/owners.json\", method = RequestMethod.GET)\n public ModelAndView getOwners(\n HttpServletRequest req, HttpServletResponse response)\n throws Exception {\n \n // get a list of all currently defined permission owners\n List<IPermissionOwner> owners = permissionOwnerDao.getAllPermissionOwners();\n \n ModelAndView mv = new ModelAndView();\n mv.addObject(\"owners\", owners);\n mv.setViewName(\"json\");\n \n return mv;\n }", "public Properties getPermissionsReport() {\n /* TO DO: */\n return null;\n }", "@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }", "public static boolean isReadStorageAllowed(FragmentActivity act) {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(act, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "public List<Permission> getPermissionsPending(User user) throws UserManagementException;", "boolean isFolder();", "public ArrayList<Permission> getPermissions()\r\n {\r\n return this.securityInfo.getPermissions();\r\n }", "@Override\n public List<RightsDTO> getRightsByUCN(final String ucn) {\n return transactionHandler.execute((final Factory factory) -> RightsServiceLogic\n .getRights(ucn, factory.findService(EmployeeRepository.class)));\n }", "@Override\n public ResponseEntity<Permissions> showPermissions(String pluginName, String organizationName) {\n long userId = userService.getCurrentUser().getId();\n long pluginId = projectService.getIdByPluginId(pluginName);\n PermissionType type = PermissionType.PROJECT;\n List<NamedPermission> perms = permissionService.getProjectPermissions(userId, pluginId).toNamed();\n if (perms.isEmpty()) {\n type = PermissionType.GLOBAL;\n perms = permissionService.getGlobalPermissions(userId).toNamed();\n }\n return new ResponseEntity<>(new Permissions().type(type).permissions(perms), HttpStatus.OK);\n }", "protected final List<String> getSessionPermissions() {\n Session currentSession = sessionTracker.getSession();\n return (currentSession != null) ? currentSession.getPermissions() : null;\n }", "public FileObject getWsDDFolder();", "public static String getPermissions(String key, ConfigurationSource conf) {\n String configName = \"\";\n\n // Assign the appropriate config name based on the KEY\n if (key.equals(ReconConfigKeys.OZONE_RECON_DB_DIR)) {\n configName = ReconConfigKeys.OZONE_RECON_DB_DIRS_PERMISSIONS;\n } else if (key.equals(ScmConfigKeys.OZONE_SCM_DB_DIRS)) {\n configName = ScmConfigKeys.OZONE_SCM_DB_DIRS_PERMISSIONS;\n } else if (key.equals(OzoneConfigKeys.OZONE_OM_DB_DIRS)) {\n configName = OzoneConfigKeys.OZONE_OM_DB_DIRS_PERMISSIONS;\n } else {\n // If the permissions are not defined for the config, we make it fall\n // back to the default permissions for metadata files and directories\n configName = OzoneConfigKeys.OZONE_METADATA_DIRS_PERMISSIONS;\n }\n\n String configValue = conf.get(configName);\n if (configValue != null) {\n return configValue;\n }\n\n throw new IllegalArgumentException(\n \"Invalid configuration value for key: \" + key);\n }", "void askForPermissions();", "private GitLabFolderAuthorization(GitLabFolderACL acl) {\n this.folderACL = acl;\n }", "@GetMapping(value = \"/{grantee}/{authorization}\")\n public List<AccountDTO> getAccountsByGranteeAndAuthorizationType(@PathVariable String grantee,\n @PathVariable Authorization authorization) {\n List<Account> accounts = powerOfAttorneyService.getAccountsByGranteeAndAuthorizationType(grantee, authorization);\n return accounts.stream().map(a->convertToAccountDTO(a)).collect(Collectors.toList());\n }", "public static boolean hasAccess(final String username, String path)\n\t{\n\t\t\n\t\tif (path.contains(\".json\"))\n\t\t{\n\t\t\tFile jsonFile = new File(path);\n\t\t\tpath = FilenameUtils.separatorsToUnix(jsonFile.getParent());\n\t\t}\n\t\t\n\t\tfinal int level = path.split(\"/\").length;\n\t\t\n\t\t//--- no user has access to level 1 ---//\n\t\tif (level == 1) return false;\n\t\t\n\t\t//--- all users have access to level 2 ---//\n\t\tif (level == 2) return true;\n\t\t\n\t\t//--- if cached HashMap doesn't have username as key, return false ---//\n\t\t//--- because this user has not been assigned with any role yet ---//\n\t\tif (!username2accesses.containsKey(username)) return false;\n\t\t\n\t\t//--- :section access based on user role ---//\n\t\t//--- ./Home/Administrator OR ./Home/Benutzer OR ./Home/Codes OR ./Home/Fragebogen -> ADMIN, ORGANIZER ---//\n\t\tif (path.contains(CodeManager.getSectionName()) || path.contains(Hierarchies.getSectionName()) ||\n\t\t\t\tpath.contains(QuestionnaireManager.getSectionName()) || path.contains(UserManager.getSectionName()))\n\t\t{\n\t\t\tif (!hasRole(username, Role.ORGANIZER) && !hasRole(username, Role.ADMINISTRATOR)) return false;\n\t\t}\n\t\t//--- ./Home/Statistik OR ./Home/Ergebnisse -> DEAN, DEAN_OF_STUDIES, LECTURER ---//\n\t\tif (path.contains(Statistics.getSectionName()) || path.contains(Results.getSectionName()))\n\t\t{\n\t\t\tif (!hasTeacherAccess(username)) return false;\n\t\t\t//--- LECTURER has only access to current semester ---//\n\t\t\tif (level > 3 && !path.contains(SemesterManager.getCurrentSemester()))\n\t\t\t{\n\t\t\t\tif (!hasRole(username, Role.DEAN) && !hasRole(username, Role.DEAN_OF_STUDIES))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//--- no path filter below :semester level for all sections except for ---//\n\t\t//--- ./Home/Administrator and ./Home/Ergebnisse and ./Home/Statistik ---//\n\t\tif (!path.contains(Hierarchies.getSectionName()) && level < 5) return true;\n\t\t\n\t\t//--- no path filter below level 4 for ./Home/Administration because it doesn't have :semester ---//\n\t\tif (path.contains(Hierarchies.getSectionName()) && level < 4) return true;\n\t\t\n\t\t//--- no path filter for Role.ADMINISTRATOR ---//\n\t\tif (hasRole(username, Role.ADMINISTRATOR)) return true;\n\t\t\n\t\t//--- path access ---//\n\t\t//--- extract relative path from the absolute path (input parameter: path) ---//\n\t\tString requestedRelPath = \"\";\n\t\t//--- determine index for substring based on section name ---//\n\t\t//--- \"./Home/Statistik\" + \"/\" + \"20XX-XS\" + \"/\" ---//\n\t\tif (path.contains(Statistics.getSectionName()))\n\t\t\trequestedRelPath = path.substring(Statistics.getSectionDir().length() + 1 + SemesterManager.getSemesterLength() + 1);\n\t\t//--- \"./Home/Ergebnisse\" + \"/\" + \"20XX-XS\" + /\" ---//\n\t\telse if (path.contains(Results.getSectionName()))\n\t\t\trequestedRelPath = path.substring(Results.getSectionDir().length() + 1 + SemesterManager.getSemesterLength() + 1);\n\t\t//--- \"./Home/Codes\" + \"/\" + \"20XX-XS\" + \"/\" ---//\n\t\telse if (path.contains(CodeManager.getSectionName()))\n\t\t\trequestedRelPath = path.substring(CodeManager.getSectionDir().length() + 1 + SemesterManager.getSemesterLength() + 1);\n\t\t//--- \"./Home/Administrator\" + \"/\" ---//\n\t\telse if (path.contains(Hierarchies.getSectionName()))\n\t\t\trequestedRelPath = path.substring(Hierarchies.getSectionDir().length() + 1);\n\t\t\n\t\tfinal int requestedRelPathLevel = requestedRelPath.split(\"/\").length;\n\t\t\n\t\t//--- get relative paths user can access ---//\n\t\tfinal List<String> accessibleRelPaths = getAccessibleRelPaths(username);\n\t\t\n\t\t//--- for each accessible relative path, check whether the requested relative path matches ---//\n\t\tfor (String accessibleRelPath : accessibleRelPaths)\n\t\t{\n\t\t\tfinal int accessibelRelPathLevel = accessibleRelPath.split(\"/\").length;\n\t\t\tif (accessibelRelPathLevel < requestedRelPathLevel && requestedRelPath.contains(accessibleRelPath))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (accessibelRelPathLevel > requestedRelPathLevel && accessibleRelPath.contains(requestedRelPath))\n\t\t\t{\n\t\t\t\treturn true;\t\t\t\n\t\t\t}\n\t\t\tif (accessibelRelPathLevel == requestedRelPathLevel && requestedRelPath.equals(accessibleRelPath))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public Vector getAuthorizedChannels(IAuthorizationPrincipal principal)\n throws AuthorizationException;", "@NonNull List<String> getDelegatedShellPermissions();", "private List<Map<String,Object>> listAccessibleMaps() {\r\n \r\n List<Map<String, Object>> accessMapData = null;\r\n \r\n ArrayList args = new ArrayList();\r\n String accessClause = userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_usage\", \"owner_name\", args, \"read\");\r\n try {\r\n accessMapData = magicDataTpl.queryForList(\r\n \"SELECT name, title, description FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n accessClause + \" ORDER BY title\", args.toArray()\r\n );\r\n /* Determine which maps the user can additionally edit and delete */\r\n ArrayList wargs = new ArrayList();\r\n List<Map<String,Object>> writeMapData = magicDataTpl.queryForList(\r\n \"SELECT name FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_edit\", \"owner_name\", wargs, \"update\") + \" ORDER BY title\", wargs.toArray()\r\n );\r\n ArrayList dargs = new ArrayList();\r\n List<Map<String,Object>> deleteMapData = magicDataTpl.queryForList(\r\n \"SELECT name FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_edit\", \"owner_name\", dargs, \"delete\") + \" ORDER BY title\", dargs.toArray()\r\n );\r\n for (Map<String,Object> mapData : accessMapData) {\r\n mapData.put(\"w\", \"no\");\r\n mapData.put(\"d\", \"no\");\r\n String name = (String)mapData.get(\"name\");\r\n writeMapData.stream().map((wData) -> (String)wData.get(\"name\")).filter((wName) -> (wName.equals(name))).forEachOrdered((_item) -> {\r\n mapData.put(\"w\", \"yes\");\r\n });\r\n deleteMapData.stream().map((dData) -> (String)dData.get(\"name\")).filter((dName) -> (dName.equals(name))).forEachOrdered((_item) -> {\r\n mapData.put(\"d\", \"yes\");\r\n });\r\n }\r\n } catch(DataAccessException dae) {\r\n accessMapData = new ArrayList();\r\n System.out.println(\"Failed to determine accessible maps for user, error was : \" + dae.getMessage());\r\n }\r\n return(accessMapData);\r\n }", "static void listRepositories(File repositoriesRootDir, boolean includeUserAccessDetails) {\n\t\tString[] names = RepositoryManager.getRepositoryNames(repositoriesRootDir);\n\t\tSystem.out.println(\"\\nRepositories:\");\n\t\tif (names.length == 0) {\n\t\t\tSystem.out.println(\" <No repositories have been created>\");\n\t\t\treturn;\n\t\t}\n\n\t\tfor (String name : names) {\n\t\t\tFile repoDir = new File(repositoriesRootDir, NamingUtilities.mangle(name));\n\t\t\tString rootPath = repoDir.getAbsolutePath();\n\t\t\tboolean isIndexed = IndexedLocalFileSystem.isIndexed(rootPath);\n\t\t\tString type;\n\t\t\tif (isIndexed || IndexedLocalFileSystem.hasIndexedStructure(rootPath)) {\n\t\t\t\ttype = \"Indexed Filesystem\";\n\t\t\t\ttry {\n\t\t\t\t\tint indexVersion = IndexedLocalFileSystem.readIndexVersion(rootPath);\n\t\t\t\t\tif (indexVersion == IndexedLocalFileSystem.LATEST_INDEX_VERSION) {\n\t\t\t\t\t\ttype = null;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\ttype += \" (V\" + indexVersion + \")\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\ttype += \"(unknown)\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttype = \"Mangled Filesystem\";\n\t\t\t}\n\n\t\t\tSystem.out.println(\" \" + name + (type == null ? \"\" : (\" - uses \" + type)));\n\n\t\t\tif (includeUserAccessDetails) {\n\t\t\t\tSystem.out.print(Repository.getFormattedUserPermissions(repoDir, \" \"));\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.5881872", "0.57752043", "0.5673755", "0.5609461", "0.54487395", "0.5341615", "0.53338104", "0.53025115", "0.5296128", "0.529296", "0.52720153", "0.5267741", "0.52404445", "0.5231442", "0.5133249", "0.5122725", "0.5101295", "0.5084244", "0.5079722", "0.50628084", "0.5061426", "0.5059999", "0.5056443", "0.50462157", "0.50209826", "0.5015241", "0.4986148", "0.49820128", "0.49816623", "0.49811605", "0.49784857", "0.4976025", "0.49698475", "0.4959671", "0.49594474", "0.49291614", "0.49288806", "0.49185336", "0.4916083", "0.4913827", "0.49107078", "0.49067128", "0.48993805", "0.48936102", "0.4880557", "0.48802662", "0.4877748", "0.48770824", "0.48658115", "0.48632747", "0.48553315", "0.48397538", "0.48303676", "0.48262113", "0.48249504", "0.48153302", "0.48112676", "0.48087817", "0.479985", "0.47895306", "0.47802353", "0.4776783", "0.47757843", "0.477261", "0.47694105", "0.4768735", "0.4762724", "0.47591692", "0.47551376", "0.47546852", "0.47522935", "0.47400773", "0.472614", "0.47085658", "0.4695319", "0.46900356", "0.46789968", "0.4672316", "0.4672172", "0.46697965", "0.46653023", "0.46636367", "0.46618184", "0.46591413", "0.4655182", "0.46548617", "0.46531934", "0.46443135", "0.46412057", "0.46376932", "0.463675", "0.46251568", "0.4622779", "0.46208414", "0.46206948", "0.46111575", "0.46090135", "0.46042293", "0.46029186", "0.4600535" ]
0.6996708
0
Retrieve the list of ids of entries contained in a folder. Using this method is much faster (especially for larger number of entries in a folder) that iterating through all the entries of a folder
public List<Long> getEntryIds(Folder folder) { try { CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); query.select(entry.get("id")).where(getBuilder().equal(from, folder)); return currentSession().createQuery(query).list(); } catch (Exception e) { Logger.error(e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Long> getFolderContentIds(long folderId, EntryType type, boolean visibleOnly) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n ArrayList<Predicate> predicates = new ArrayList<>();\n predicates.add(getBuilder().equal(from.get(\"id\"), folderId));\n if (visibleOnly) {\n predicates.add(getBuilder().equal(entry.get(\"visibility\"), Visibility.OK.getValue()));\n }\n if (type != null) {\n predicates.add(getBuilder().equal(entry.get(\"recordType\"), type.getName()));\n }\n query.select(entry.get(\"id\")).where(predicates.toArray(new Predicate[0]));\n return currentSession().createQuery(query).list();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "public List getAllIds();", "public static ArrayList<Integer> getAllFileIDs() {\n ArrayList<Integer> fileIDs = new ArrayList();\n\n String sql = \"SELECT DISTINCT fileID FROM files;\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n while (rs.next()) {\n fileIDs.add(rs.getInt(\"fileID\"));\n }\n return fileIDs;\n } catch (SQLException e) {\n System.out.println(\"getAllFileIDs: \" + e.getMessage());\n }\n return null;\n\n }", "java.lang.String getFolderId();", "Iterable<MailFolderDO> findAllByFolderId(long folderId);", "List<String> findAllIds();", "public ArrayList<ApplicationPickerEntry> getEntries( String folder ) {\n\t\t\n\t\tArrayList<ApplicationPickerEntry> entries = new ArrayList<ApplicationPickerEntry>();\n\t\t\n\t\ttry {\n\t\t\tFile targetFolder = null;\n\t\t\t\n\t\t\tif (StringUtil.isEmpty(folder) || folder.equals(\"root\")) {\n\t\t\t\t\n\t\t\t\ttargetFolder = new File( dominoDataDir );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttargetFolder = new File( dominoDataDir + folder );\n\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<File> files = new ArrayList<File>(Arrays.asList(targetFolder.listFiles()));\n\t\t\t\n\t\t\tfor (File file : files) {\n\t\t\t\t\n\t\t\t\tString name = file.getName();\n\t\t\t\tString ext = name.substring( name.lastIndexOf(\".\")+1);\n\t\t\t\t\n\t\t\t\tString relativePath = file.getAbsolutePath().replace(dominoDataDir, \"\");\n\t\t\t\t\n\t\t\t\t//add only directories and applications\n\t\t\t\tif (ext.equalsIgnoreCase(\"nsf\") || file.isDirectory()) {\n\t\t\t\t\t\n\t\t\t\t\tApplicationPickerEntry entry = new ApplicationPickerEntry( name, relativePath, name, file.isDirectory() );\n\t\t\t\t\t\n\t\t\t\t\tentries.add( entry );\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//sort the entries\n\t\t\tCollections.sort(entries);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tDebugToolbar.get().error(e);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn entries;\n\t\t\n\t\t\n\t}", "com.google.protobuf.ByteString\n getFolderIdBytes();", "public Collection<GlobalIdEntry> getAllEntries();", "java.util.List<java.lang.Long> getIdsList();", "public List<Long> retrieveFolderContents(long folderId, PageParameters pageParameters, boolean visibleOnly) {\n try {\n String sortString;\n switch (pageParameters.getSortField()) {\n default:\n case CREATED:\n sortString = \"id\";\n break;\n\n case STATUS:\n sortString = \"status\";\n break;\n\n case NAME:\n sortString = \"name\";\n break;\n\n case PART_ID:\n sortString = \"partNumber\";\n break;\n\n case TYPE:\n sortString = \"recordType\";\n break;\n }\n\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n List<Predicate> predicates = getPredicates(entry, pageParameters.getFilter());\n predicates.add(getBuilder().equal(from.get(\"id\"), folderId));\n\n if (visibleOnly) {\n predicates.add(entry.get(\"visibility\").in(Arrays.asList(Visibility.OK.getValue(),\n Visibility.REMOTE.getValue())));\n }\n query.select(entry.get(\"id\")).where(predicates.toArray(new Predicate[0]));\n query.orderBy(pageParameters.isAscending() ? getBuilder().asc(entry.get(sortString)) :\n getBuilder().desc(entry.get(sortString)));\n return currentSession().createQuery(query).setFirstResult(pageParameters.getOffset())\n .setMaxResults(pageParameters.getLimit()).list();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "List<DirectoryEntry> listAllDirEntries(OkHttpClient client, String token, String repo_id);", "public com.google.protobuf.ByteString\n getFolderIdBytes() {\n java.lang.Object ref = folderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n folderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFolderIdBytes() {\n java.lang.Object ref = folderId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n folderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ArrayList<Feed> findFeedFromUidFolderID (Integer uid, Integer feed_folder_id);", "long getIds(int index);", "protected final int[] findParentDirectoryIdList(DBDeviceContext ctx, String path, boolean filePath) {\n\n // Validate the paths and check for the root path\n \n String[] paths = FileName.splitAllPaths(path);\n \n if ( paths == null || paths.length == 0)\n return null;\n if ( paths[0].compareTo(\"*.*\") == 0 || paths[0].compareTo(\"*\") == 0 ||\n (filePath == true && paths.length == 1)) {\n int[] ids = { 0 };\n return ids;\n }\n if ( paths[0].startsWith(\"\\\\\")) {\n \n // Trim the leading slash from the first path\n \n paths[0] = paths[0].substring(1);\n }\n \n // Find the directory id by traversing the list of directories\n \n int endIdx = paths.length - 1;\n if ( filePath == true)\n endIdx--;\n \n // If there are no paths to check then return the root directory id\n \n if ( endIdx <= 1 && paths[0].length() == 0) {\n int[] ids = new int[1];\n ids[0] = 0;\n return ids;\n }\n\n // Allocate the directory id list\n \n int[] ids = new int[paths.length];\n for ( int i = 0; i < ids.length; i++)\n ids[i] = -1;\n \n // Build up the current path as we traverse the list\n \n StringBuffer pathStr = new StringBuffer(\"\\\\\");\n \n // Check for paths in the file state cache\n \n FileStateCache cache = ctx.getStateCache();\n FileState fstate = null;\n\n // Traverse the path list, initialize the directory id to the root id\n \n int dirId = 0;\n int parentId = -1;\n int idx = 0;\n\n try {\n \n // Loop until the end of the path list\n\n while ( idx <= endIdx) {\n \n // Get the current path, and add to the full path string\n \n String curPath = paths[idx];\n pathStr.append(curPath);\n \n // Check if there is a file state for the current path\n \n fstate = cache.findFileState(pathStr.toString());\n \n if ( fstate != null && fstate.getFileId() != -1) {\n \n // Get the file id from the cached information\n\n ids[idx] = fstate.getFileId();\n parentId = dirId;\n dirId = ids[idx];\n }\n else {\n \n // Search for the current directory in the database\n\n parentId = dirId;\n dirId = ctx.getDBInterface().getFileId(dirId, curPath, true, true);\n \n if ( dirId != -1) {\n \n // Get the next directory id\n\n ids[idx] = dirId;\n \n // Check if we have a file state, or create a new file state for the current path\n \n if ( fstate != null) {\n \n // Set the file id for the file state\n \n fstate.setFileId(dirId);\n }\n else {\n \n // Create a new file state for the current path\n \n fstate = cache.findFileState(pathStr.toString(), true);\n \n // Get the file information\n \n DBFileInfo finfo = ctx.getDBInterface().getFileInformation(parentId, dirId, DBInterface.FileAll);\n fstate.addAttribute(FileState.FileInformation, finfo);\n fstate.setFileStatus( finfo.isDirectory() ? FileStatus.DirectoryExists : FileStatus.FileExists);\n fstate.setFileId(dirId);\n }\n }\n else\n return null;\n }\n \n // Update the path index\n \n idx++;\n \n // Update the current path string\n \n pathStr.append(\"\\\\\");\n }\n }\n catch (DBException ex) {\n Debug.println(ex);\n return null;\n }\n \n // Return the directory id list\n \n return ids;\n }", "protected abstract String[] getFolderList() throws IOException;", "public List<String> searchForIds(String theQueryUrl) {\n\t\tIBundleProvider result = searchForBundleProvider(theQueryUrl);\n\n\t\t// getAllResources is not safe as size is not always set\n\t\treturn result.getResources(0, Integer.MAX_VALUE).stream()\n\t\t\t\t.map(resource -> resource.getIdElement().getIdPart())\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public String getFolderId() {\r\n return folderId;\r\n }", "public List<String> getListIdByFilePathAndForm(String filepath , String formid) throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT id FROM \" + management + \" WHERE filepath ='\"+filepath+\"' AND step =4 AND formid =\"+formid+\" ORDER BY id\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListIdByFilePathAndForm : \" + e.toString(),e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}", "public String getFolderId() {\n return folderId;\n }", "public java.util.List<String> getIds() {\n return ids;\n }", "public List<String> getOIDataFileIds() {\n return Identifiable.getIds(getOIDataFileList());\n }", "private List<Integer> determineItemIds() {\n List<Integer> ids = null;\n try {\n ids = mDatabaseAccess.itemsDAO().selectAllItemIds();\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to determine all item IDs.\",\n ex);\n }\n return ids;\n }", "private List<Long> getFileIds(ListGridRecord[] records) {\n List<Long> fileIds = new ArrayList<>();\n for (ListGridRecord record : records) {\n FileTreeNode selectedNode = (FileTreeNode) record;\n VMResource resource = selectedNode.getResource();\n fileIds.add(resource.getId());\n }\n return fileIds;\n }", "void getClusterIdsWithPrefix(Future<Set<String>> clusterIds, String baseDir, String appId, String clusterIdPrefix);", "@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }", "private ArrayList<String> loadIds() {\n\n\t\tArrayList<String> idArray = new ArrayList<String>();\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = context.openFileInput(SAVE_FILE);\n\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(\n\t\t\t\t\tfileInputStream);\n\t\t\tType listType = new TypeToken<ArrayList<String>>() {\n\t\t\t}.getType();\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tArrayList<String> list = gson.fromJson(inputStreamReader, listType);\n\t\t\tidArray = list;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn idArray;\n\t}", "public java.lang.String getFolderId() {\n java.lang.Object ref = folderId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n folderId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "Enumeration getIds();", "@java.lang.Override\n public java.lang.String getFolderId() {\n java.lang.Object ref = folderId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n folderId_ = s;\n return s;\n }\n }", "public long getFolderId() {\n\t\treturn folderId;\n\t}", "public ArrayList getAllAccountIds() {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tStatement sttmnt;\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tsttmnt = dbAccess.createStatement();\n\t\t\trs = sttmnt.executeQuery(\"SELECT acc_id FROM accounts\");\n\t\t\twhile (rs.next()) {\n\t\t\t\taccountIds.add(rs.getInt(\"acc_id\"));\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountIds;\n\t}", "public void getSMSIds() {\r\n\r\n mSMSids = new ArrayList<Long>();\r\n\r\n ContentResolver cr = mContext.getContentResolver();\r\n Cursor cur = cr.query(Uri.parse(MySMS.SMS_URI), null,\r\n null, null, null);\r\n if (cur != null) {\r\n if (cur.getCount() > 0) {\r\n while (cur.moveToNext()) {\r\n Long id = cur.getLong(cur.getColumnIndex(\"_id\"));\r\n mSMSids.add(id);\r\n }\r\n }\r\n cur.close();\r\n }\r\n }", "public ArrayList<FeedFolder> findFolderByUserID(Integer uid);", "@Override\r\n public Set<String> getObjectIdList() throws HarvesterException {\r\n Set<String> objectIdList = new HashSet<String>();\r\n try {\r\n String[] row = null;\r\n int rowCount = 0;\r\n boolean done = false;\r\n while (!done && (row = csvReader.readNext()) != null) {\r\n rowCount++;\r\n currentRow++;\r\n objectIdList.add(createRecord(row));\r\n if (rowCount % batchSize == 0) {\r\n log.debug(\"Batch size reached at row {}\", currentRow);\r\n break;\r\n }\r\n done = (maxRows > 0) && (currentRow < maxRows);\r\n }\r\n hasMore = (row != null);\r\n } catch (IOException ioe) {\r\n throw new HarvesterException(ioe);\r\n }\r\n if (objectIdList.size() > 0) {\r\n log.debug(\"Created {} objects\", objectIdList.size());\r\n }\r\n return objectIdList;\r\n }", "public static ArrayList<Long> searchKeywordEntryId(ArrayList<String> queryKeywords) {\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n List<Keywords> idList = new ArrayList<>();\n\n for(String qk : queryKeywords){\n List<Keywords> idListt =\n Keywords.find()\n .select(\"keywordEntryId\")\n .where()\n //.in(\"keyword\", queryKeywords)\n .like(\"keyword\", \"%\"+qk+\"%\")\n .findList();\n idList.addAll(idListt);\n }\n\n for (Keywords keywords : idList) {\n keywordIdList.add(keywords.getKeywordEntryId());\n }\n System.out.println(\"keywordIdList---\" + keywordIdList);\n return keywordIdList;\n }", "private List<Integer> getSortedFileIds() {\n Set<Integer> fileIds = new HashSet<Integer>();\n BlockStoreMeta storeMeta = mBlockDataManager.getStoreMeta();\n for (List<Long> blockIds : storeMeta.getBlockList().values()) {\n for (long blockId : blockIds) {\n int fileId = BlockInfo.computeInodeId(blockId);\n fileIds.add(fileId);\n }\n }\n List<Integer> sortedFileIds = new ArrayList<Integer>(fileIds);\n Collections.sort(sortedFileIds);\n return sortedFileIds;\n }", "public List<String> getContentTypes(long folderId) {\n try {\n CriteriaQuery<String> query = getBuilder().createQuery(String.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n query.select(entry.get(\"recordType\")).distinct(true);\n query.where(getBuilder().equal(from.get(\"id\"), folderId));\n return currentSession().createQuery(query).list();\n } catch (HibernateException e) {\n Logger.error(e);\n throw new DAOException(e);\n }\n }", "private Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }", "public List<Folder> getFolders (Long userId) throws BookMarkException;", "void getAppIdsWithPrefix(Future<Set<String>> appIds, String baseDir, String appIdPrefix);", "public static ArrayList getEntriesFromClassifiedMRFiles() {\n \n ArrayList entries = sql_epiII.getPDBIdFromMRFileByDetail( SQL_Episode_II.FILE_DETAIL_CLASSIFIED );\n \n if (entries == null) {\n General.showError(\"getting entry codes from the db.\");\n return (entries);\n }\n Collections.sort(entries);\n return (entries);\n }", "private List<String> getAllPageIdsForUpdate()\n {\n List<String> pageIds = new ArrayList<String>();\n pageIds.add(pageId);\n for (GWikiElement depPageId : getDepObjects()) {\n pageIds.add(depPageId.getElementInfo().getId());\n }\n return pageIds;\n }", "public ArrayList<Integer> findPathList() {\n ArrayList<Integer> pathList = new ArrayList<>();\n for (int i = 0; i < cells.size() ; i++) {\n if (cells.get(i) == CellState.Path) { // PATH -> pathList\n pathList.add(i);\n }\n }\n return pathList;\n }", "public Collection getModulesNamesByFolder(String folder) throws XavaException {\n\t\tif (Is.emptyString(folder) || folder.trim().equals(\"/\")) folder = \"\"; \n\t\tCollection result = new ArrayList();\n\t\tfor (Iterator it=getModulesNames().iterator(); it.hasNext();) {\n\t\t\tString moduleName = (String) it.next();\n\t\t\tString moduleFolder = getMetaModule(moduleName).getFolder();\n\t\t\tif (Is.equal(folder, moduleFolder)) {\n\t\t\t\tresult.add(moduleName);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public ArrayList<String> intDayToEventIDs(int day){\n ArrayList<String> events = new ArrayList<>();\n for(Event event: this.eventList){\n if(event.getStartTime().getDayOfMonth() == day){\n events.add(event.getEventId());\n }\n }\n return events;\n }", "public Set getDirectoryEntrySet() {\r\n\t\treturn new HashSet(entryMap.values());\r\n\t}", "void visitAllUserIdsInDirectory(long directoryId, Visitor<String> visitor);", "List<String> getFileSystemEntries(String path) throws IOException;", "Set<II> getIds();", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "public String getIds() {\n return this.ids;\n }", "private TreeSet<Long> getIds(Connection connection) throws Exception {\n\t\tTreeSet<Long> result = new TreeSet<Long>();\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = connection\n\t\t\t\t\t.prepareStatement(\"select review_feedback_id from \\\"informix\\\".review_feedback\");\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tresult.add(rs.getLong(1));\n\t\t\t}\n\t\t} finally {\n\t\t\tps.close();\n\t\t}\n\t\treturn result;\n\t}", "private File[] getResourceFolderFiles(String folder) {\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\t\tURL url = loader.getResource(folder);\n\t\tString path = url.getPath();\n\n\t\treturn new File(path).listFiles();\n\n\t}", "static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}", "public String getIds() {\n return ids;\n }", "public String getIds() {\n return ids;\n }", "java.util.List<java.lang.String>\n getParentIdList();", "public ArrayList<Integer> getGroupMembersIds(int idGroupe) throws RemoteException {\r\n\t\t\t\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"SELECT ga_idEtudiant FROM GroupeAssoc WHERE ga_idGroupe =\" + idGroupe;\r\n\t\t \r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t \r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \t\r\n\t\t \tlist.add(Integer.parseInt((data.getColumnValue(\"ga_idEtudiant\"))));\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}", "@RequestMapping(value = \"/show-ids\", \n\t\t\t\t\tmethod = RequestMethod.GET)\n\tpublic ResponseEntity<List<File>> showIds(@RequestParam(value = \"total\", required = true) int total) throws IOException {\n\t\t\n\t\t FileList result = DriveConnection.driveService.files().list() // listamos archivos\n\t .setPageSize(total) // \n\t .setFields(\"nextPageToken, files(id, name)\")\n\t .execute();\n\t \n\t\t List<File> files = result.getFiles(); // almacenamos en una lista\n\t \n\t return new ResponseEntity<List<File>>(files, HttpStatus.OK); // devolvemos\n\t}", "Enumeration<String> getEntryPaths(String path) throws IOException;", "public List<String> listFilesForFolder(File folder) {\n\t\tList<String> fileList= new ArrayList<String>();\n\t for (final File fileEntry : folder.listFiles()) {\n\t if (fileEntry.isDirectory()) {\n\t listFilesForFolder(fileEntry);\n\t } else {\n\t \tfileList.add(fileEntry.getName());\n\t }\n\t }\n\t return fileList;\n\t}", "public alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntryOrBuilder getInodeDirectoryIdGeneratorOrBuilder() {\n return inodeDirectoryIdGenerator_;\n }", "private String getIds(List<UserTO> userList) {\r\n\t\tSet<String> idSet = new HashSet<String>();\r\n\t\tfor (UserTO user : userList) {\r\n\t\t\tidSet.add(user.getOrgNodeId());\r\n\t\t\tif (null != user.getOrgNodeCodePath()) {\r\n\t\t\t\tString[] orgHierarchy = user.getOrgNodeCodePath().split(\"~\");\r\n\t\t\t\tSet<String> orgHierarchySet = new HashSet<String>(Arrays.asList(orgHierarchy));\r\n\t\t\t\tidSet.addAll(orgHierarchySet);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString ids = idSet.toString();\r\n\t\tids = ids.substring(1, ids.length() - 1);\r\n\t\treturn ids;\r\n\t}", "public static List<String> getTestIds(Document testDocument) {\n\t\tElement rootElement = testDocument.getDocumentElement();\n\t\tList<String> ids = new ArrayList<String>();\n\t\tNodeList children = rootElement.getChildNodes();\n\t\tint length = children.getLength();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tNode child = children.item(i);\n\t\t\tif (child.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\tids.add(((Element) child).getAttribute(ID_ATTRIBUTE));\n\n\t\t}\n\t\treturn ids;\n\t}", "public synchronized List<Integer> getDocIdsTodosDocumentos() throws Exception{\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\t\r\n\t\tMTDIterator<MTDDocument> iterator = iterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tMTDDocument doc = iterator.next();\r\n\t\t\tlista.add(doc.getDocId());\r\n\t\t}\r\n\t\titerator.close();\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "public List<K> getSavedIds() {\n if (dbObjects.length > 0 && dbObjects[0] instanceof JacksonDBObject) {\n throw new UnsupportedOperationException(\n \"Generated _id retrieval not supported when using stream serialization\");\n }\n\n List<K> ids = new ArrayList<K>();\n for (DBObject dbObject : dbObjects) {\n ids.add(jacksonDBCollection.convertFromDbId(dbObject.get(\"_id\")));\n }\n\n return ids;\n }", "@NonNull\n Single<List<String>> getFolderNames();", "public String[] getIDs() {\n return impl.getIDs();\n }", "public List<FireStoreDirectoryEntry> enumerateFileRefEntries(\n TableServiceClient tableServiceClient, String collectionId, int offset, int limit) {\n TableClient tableClient = tableServiceClient.getTableClient(collectionId);\n ListEntitiesOptions options = new ListEntitiesOptions().setFilter(\"isFileRef eq true\");\n PagedIterable<TableEntity> entities = tableClient.listEntities(options, null, null);\n if (!entities.iterator().hasNext()) {\n return List.of();\n }\n return entities.stream()\n .skip(offset)\n .limit(limit)\n .map(FireStoreDirectoryEntry::fromTableEntity)\n .toList();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<String> getClusterIDs() {\r\n\t\tArrayList<String> clusterIDs = new ArrayList<String>();\r\n\t\t//xPath expression to get the classname\r\n\t\tString xPath = \"//jdbcluster/clustertype/cluster\";\r\n\r\n\t\tList<Node> nodes = document.selectNodes(xPath);\r\n\t\tif(nodes != null) {\r\n\t\t\tfor(Node n : nodes){\r\n\t\t\t\tclusterIDs.add(n.valueOf(\"@id\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn clusterIDs;\r\n\t}", "public Map<String, Object> getIds() {\n return ids;\n }", "public static List<Path> getEntries(final FileSystem fs) {\n final Path rootDirectory = fs.getRootDirectories().iterator().next();\n try {\n return Files.walk(rootDirectory)\n .sorted()\n .filter(entry -> !entry.equals(rootDirectory))\n .collect(Collectors.toList());\n } catch (final UncheckedIOException | IOException exception) {\n return new ArrayList<>();\n }\n }", "java.util.List<java.lang.Long> getMessageIdList();", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "public void listFilesForFolder(final File folder) {\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tif (fileEntry.isDirectory()) {\n\t\t\t\tlistFilesForFolder(fileEntry);\n\t\t\t} else if (!fileEntry.getName().startsWith(\".\")) {\n\t\t\t\tRunConfigDataNode temp = new RunConfigDataNode(null);\n\t\t\t\ttemp.setName(fileEntry.getName());\n\t\t\t\ttemp.setSerializeDestination(serializePath);\n\t\t\t\tString name = fileEntry.getName();\n\t\t\t\tif (!name.equals(\"entries\")) {\n\t\t\t\t\tRunConfigDataNode config = temp.deserialize();\n\t\t\t\t\tif (!config.isMarkedForDelete()) {\n\t\t\t\t\t\tsavedConfigs.put(name, config);\n\t\t\t\t\t\tnewConfigsNum++;\n\t\t\t\t\t}\n\t\t\t\t\t// if the config is marked for delete, delete it.\n\t\t\t\t\telse {\n\t\t\t\t\t\tfileEntry.delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected List getMessagesInFolder(String pathKey) throws Throwable\n {\n \tFile folder = FileUtil.getFile(pathKey, \"\"); //NSL20051027 Get folder from FileUtil\n File files[]=folder.listFiles();\n if(files!=null && files.length>0)\n return Arrays.asList(files);\n return Collections.EMPTY_LIST;\n }", "public static List<FileInfo> searchFiles(ArrayList<Long> keywordIdList) {\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n String email = Secured.getUser(ctx());\n List<FileEntry> entryIdList = FileEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .in(\"entryId\", keywordIdList)\n .findList();\n for (FileEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList file---\" + finalIdList);\n List<FileInfo> fileList = FileInfo.find().select(\"file\").where().in(\"fileEntryId\", finalIdList).findList();\n return fileList;\n }", "public List<Integer> get_valid_ids(String table) {\n //table does not exist\n if (!get_table_names().contains(table) && !table.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exist.\");\n }\n\n\n LinkedList<Integer> valid_ids = new LinkedList<>();\n String sql = \"select id from \" + table;\n ResultSet resultSet = execute_statement(sql, true); //get all ids from the table\n\n try {\n while (resultSet.next()) {\n int i = resultSet.getInt(\"id\"); //store all ids\n valid_ids.add(i);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return valid_ids;\n }", "public static void getAllDocumentIds(ArrayList idList, String collectionName) {\n idList.clear();\n MainActivity.db.collection(collectionName).get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n idList.add(document.getId());\n Log.d(TAG, document.getId() + \" => \" + document.getData());\n }\n } else {\n Log.w(TAG, \"Error getting documents.\", task.getException());\n }\n }\n });\n }", "private ArrayList<String> listFilesForFolder(File folder, TaskListener listener) {\n \tArrayList<String> lista = new ArrayList<String>();\n \tif(folder.exists()){\n\t \tFile[] listOfFiles = folder.listFiles();\n\t\t\t if(listOfFiles != null){\t\n\t\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t\t if (file.isDirectory()) {\t\n\t\t\t\t \tlista.add(file.getName());\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t}\n\t\treturn lista;\n\t}", "public static void goThroughFilesForFolder(final File folder) throws Exception {\r\n\r\n\t\t/*\r\n\t\t * char[] filePath;\r\n\t\t// *Files.walk(Paths.get(\"E:/Studying/eclipse/workspace/Thesis/PMIDs\")).\r\n\t\t * Files.walk(Paths.get(\"E:/Studying/Box Sync/workspace/Thesis/PMIDs\")).\r\n\t\t * forEach(filePath -> { if (Files.isRegularFile(filePath)) {\r\n\t\t * System.out.println(filePath); } }\r\n\t\t */\r\n\t\t// /*\r\n\t\tfor (final File fileEntry : folder.listFiles()) {\r\n\t\t\tif (fileEntry.isDirectory()) {\r\n\t\t\t\tgoThroughFilesForFolder(fileEntry);\r\n\t\t\t} else {\r\n\t\t\t\tprocessFile(fileEntry);\r\n\t\t\t\t// System.out.println(fileEntry.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\t// */\r\n\t}", "public static ImmutableSet<Integer> getIds(){\n\t\t\treturn m_namesMap.rightSet();\n\t\t}", "List<Long> getTransmissionIds();", "public ArrayList<String> get_list_ids(){\n\t\t\treturn list_ids;\n\t\t\t\n\t\t}", "public List<String> getESDocIDs(String esAPIUrl, int from, int size) throws Exception{\n\t\tString jsonRet = null;\n\t\ttry {\n\t\t\tMap<String, String> params = new LinkedHashMap<String, String>();\n\t\t\tparams.put(\"query\", \"{\\\"match_all\\\":{}}\");\n\t\t\tparams.put(\"from\", \"\" + from); //offset\n\t\t\tparams.put(\"size\", \"\" + size); //page size\n\t\t\tparams.put(\"fields\", \"[]\"); \n\t\t\t\n\t\t\tjsonRet = httpGetJSON(esAPIUrl + \"/_search\", params);\n\t\t\tMap<String, Object> retMap = (Map<String, Object>)JSONUtils.fromJSON(jsonRet);\n\t\t\tif (retMap.containsKey(\"hits\")){\n\t\t\t\tMap hits = (Map)retMap.get(\"hits\");\n\t\t\t\tif (hits.containsKey(\"hits\")){\n\t\t\t\t\tList<String> docIdList = new LinkedList<String>();\n\t\t\t\t\tList<Map<String, String>> docList = (List<Map<String, String>>)hits.get(\"hits\");\n\t\t\t\t\tfor(Map<String, String> kvs : docList){\n\t\t\t\t\t\tdocIdList.add(kvs.get(\"_id\"));\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(String.format(\"read ids %s, %s\", from, size));\n\t\t\t\t\treturn docIdList;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthrow new Exception(String.format(\"cannot extract document IDs from [%s]\", jsonRet));\n\t}", "public List<DataNodeId> getDataNodeIds();", "public static List<Integer> findAllIdsUsers( )\n {\n return _dao.selectAllIdsUser( _plugin );\n }", "int getNumbersOfRowsInFolder(String path) {\n return getFilesInFolder(path).length;\n }", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "public ArrayList<String> getVerisonIdArrayFromDirectoryName(String dirName) {\n\t\tArrayList<String> versionIdArray = new ArrayList<String>(2);\n\t\tint separatorIndex = dirName.indexOf(SEPARATOR_IN_DIR_NAME);\n\t\tversionIdArray.add(dirName.substring(0, separatorIndex));\n\t\tversionIdArray.add(dirName.substring(separatorIndex + 1, dirName\n\t\t\t\t.length()));\n\n\t\treturn versionIdArray;\n\t}", "List<ChunkID> findAllChunkId() throws DataBaseException;", "public String [] _truncatable_ids()\r\n {\r\n return _ids_list;\r\n }", "public List<Long> getIdList(String key) throws IdentifierException {\n Object value = get(key);\n if (!(value instanceof List) || ((List)value).isEmpty() || !(((List)value).get(0) instanceof String))\n return emptyLongList;\n List<String> stringList = (List<String>)value;\n List<Long> longList = new ArrayList<>(stringList.size());\n for (String longString : stringList)\n longList.add(Utils.stringToId(longString));\n return longList;\n }", "@Override\n public List<Integer> getAllWorklogIds() {\n List<Integer> worklogIds;\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(GET_ALL_WORKLOG_IDS_SQL)) {\n worklogIds = worklogIdDataMapper.toDTO(stmt.executeQuery());\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"getAllWorklogIds\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n return worklogIds;\n }", "public ArrayList<String> getListingIds() {\n\t \n\t return this.listingIds;\n }", "private ArrayList<String> getItemIDs() {\n\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\t/*\n\t\t * List of item IDs will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_IDS));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tarrayList.add(resultSet.getString(CommonConstants.COLUMN_INDEX_ONE));\n\t\t\t}\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn arrayList;\n\t}", "private ArrayList<String> getItemIDs() {\n\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\t/*\n\t\t * List of item IDs will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_IDS));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tarrayList.add(resultSet.getString(CommonConstants.COLUMN_INDEX_ONE));\n\t\t\t}\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn arrayList;\n\t}" ]
[ "0.70264643", "0.6546806", "0.6371183", "0.62741596", "0.6169287", "0.61210454", "0.6114523", "0.610529", "0.6058018", "0.60471594", "0.60198957", "0.59467614", "0.59207094", "0.58902234", "0.5785592", "0.57346237", "0.5728969", "0.57232", "0.57028425", "0.5683624", "0.56430906", "0.5641137", "0.5632938", "0.5612707", "0.5605728", "0.55917484", "0.5562383", "0.55320203", "0.5518809", "0.55103", "0.55042535", "0.54914474", "0.5483059", "0.54687387", "0.5455597", "0.54382265", "0.54368097", "0.54278386", "0.540814", "0.54067135", "0.53908473", "0.53702915", "0.5368374", "0.5368277", "0.5355773", "0.5347738", "0.5332927", "0.53296167", "0.5325523", "0.5321386", "0.53137934", "0.53062713", "0.5291901", "0.5274981", "0.5260145", "0.52411574", "0.52285975", "0.5227296", "0.5227296", "0.52248925", "0.5216479", "0.5210968", "0.5208643", "0.5190576", "0.5184679", "0.5180552", "0.51803756", "0.5177001", "0.5171318", "0.51686853", "0.5164923", "0.51575655", "0.51560146", "0.5150008", "0.5143493", "0.5136477", "0.5132207", "0.512678", "0.5122974", "0.51138186", "0.51068926", "0.5104056", "0.51038903", "0.508978", "0.50831497", "0.5073543", "0.5070006", "0.50666296", "0.506293", "0.50584865", "0.5057158", "0.5056077", "0.5050388", "0.5044249", "0.50382596", "0.5037141", "0.5029892", "0.50252175", "0.50248736", "0.50248736" ]
0.8402768
0
Retrieves distinct list of types for the entries contained in the folder
public List<String> getContentTypes(long folderId) { try { CriteriaQuery<String> query = getBuilder().createQuery(String.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); query.select(entry.get("recordType")).distinct(true); query.where(getBuilder().equal(from.get("id"), folderId)); return currentSession().createQuery(query).list(); } catch (HibernateException e) { Logger.error(e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getDistinctMimeType() {\r\n\t\treturn wcDao.getDistinctMimeType();\r\n\t}", "String[] getFileTypes();", "public ArrayList<String> getFileTypes() { return new ArrayList<String>(); }", "List<Type> getAllTypeList();", "public List<SecTyp> getAllTypes();", "public JSONObject getSubTypes(CoreSession session, DocumentModel folder) throws UnsupportedEncodingException {\n JSONObject subTypes = new JSONObject();\n\n boolean canAddChildren = session.hasPermission(folder.getRef(), SecurityConstants.ADD_CHILDREN);\n if (canAddChildren) {\n Collection<Type> allowedSubTypes = this.typeService.getAllowedSubTypes(folder.getType());\n for (Type subType : allowedSubTypes) {\n subTypes.put(subType.getId(), URLEncoder.encode(subType.getLabel(), \"UTF-8\"));\n }\n }\n\n return subTypes;\n }", "Set<String> getBaseTypes();", "public List getResourceTypes(ResourceType resourceType);", "List<Type> getTypeList(String type);", "public List<String> getAllDocumentTypes() {\n\t\tList<String> toReturn = new ArrayList<String>();\n\n\t\tint size = combBoxDocumentTypes.getItemCount();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttoReturn.add((String) combBoxDocumentTypes.getItemAt(i));\n\t\t}\n\n\t\treturn toReturn;\n\t}", "public String getTypeFacets() {\n final List<String> typeFacets = new LinkedList<>();\n if (mItem.Folder != null) {\n typeFacets.add(mItem.Folder.getClass().getSimpleName());\n }\n if (mItem.File != null) {\n typeFacets.add(mItem.File.getClass().getSimpleName());\n }\n if (mItem.Audio != null) {\n typeFacets.add(mItem.Audio.getClass().getSimpleName());\n }\n if (mItem.Image != null) {\n typeFacets.add(mItem.Image.getClass().getSimpleName());\n }\n if (mItem.Photo != null) {\n typeFacets.add(mItem.Photo.getClass().getSimpleName());\n }\n if (mItem.SpecialFolder != null) {\n typeFacets.add(mItem.SpecialFolder.getClass().getSimpleName());\n }\n if (mItem.Video != null) {\n typeFacets.add(mItem.Video.getClass().getSimpleName());\n }\n final String joiner = \", \";\n final StringBuilder sb = new StringBuilder();\n for (final String facet : typeFacets) {\n sb.append(facet);\n sb.append(joiner);\n }\n sb.delete(sb.lastIndexOf(joiner), sb.length());\n\n return sb.toString();\n }", "List<ReportType> findTypes();", "public List<String> getResourceTypes(){\n\t\treturn jtemp.queryForList(\"SELECT resource_type_id||' '||resource_type_name FROM resource_type\", String.class);\n\t}", "public Set<ResourceType> getAllResourceTypes() {\n parseExternalResources();\n Set<ResourceType> resourceTypes = new HashSet<ResourceType>();\n for (DatacollectionGroup group : externalGroupsMap.values()) {\n for (ResourceType rt : group.getResourceTypeCollection()) {\n if (!contains(resourceTypes, rt))\n resourceTypes.add(rt);\n }\n }\n return resourceTypes;\n }", "public Vector getTypedFiles() {\r\n\treturn getTypedFilesForDirectory(getCurrentDirectory());\r\n }", "public List<Type> getAll();", "List getCategoriesOfType(String typeConstant);", "public synchronized static Set<String> getAvailableTypes() {\n populateCache();\n return Collections.unmodifiableSet(cache.keySet());\n }", "@Override\n public List<String> getFileTypes() {\n return gemFileFileTypesDb.getKeys();\n }", "public String[] listDirectory( String directory, FileType type );", "public List<ResourceBase> listTypes() throws ResourceException;", "List<ResourceType> resourceTypes();", "public ArrayList<String> getTypes(){\n return this.types;\n }", "public Vector getTypedFilesForDirectory(File dir) {\r\n\tboolean useCache = dir.equals(getCurrentDirectory());\r\n\r\n\tif(useCache && currentFilesFresh) {\r\n\t return currentFiles;\r\n\t} else {\r\n\t Vector resultSet;\r\n\t if (useCache) {\r\n\t\tresultSet = currentFiles;\r\n\t\tresultSet.removeAllElements();\r\n\t } else {\r\n\t\tresultSet = new Vector();\r\n\t }\r\n\t \r\n\t String[] names = dir.list();\r\n\r\n\t int nameCount = names == null ? 0 : names.length;\r\n\t for (int i = 0; i < nameCount; i++) {\r\n\t\tTypedFile f;\r\n\t\tif (dir instanceof WindowsRootDir) {\r\n\t\t f = getTypedFile(names[i]);\r\n\t\t} else {\r\n\t\t f = getTypedFile(dir.getPath(), names[i]);\r\n\t\t}\r\n\r\n\t\tFileType t = f.getType();\r\n\t\tif ((shownType == null || t.isContainer() || shownType == t)\r\n\t\t && (hiddenRule == null || !hiddenRule.testFile(f))) {\r\n\t\t resultSet.addElement(f);\r\n\t\t}\r\n\t }\r\n\r\n\t // The fake windows root dir will get mangled by sorting\r\n\t if (!(dir instanceof DirectoryModel.WindowsRootDir)) {\r\n\t\tsort(resultSet);\r\n\t }\r\n\r\n\t if (useCache) {\r\n\t\tcurrentFilesFresh = true;\r\n\t }\r\n\r\n\t return resultSet;\r\n\t}\r\n }", "synchronized public Map<String, Set<String>> getTypes() {\n return Collections.unmodifiableMap(\n new HashSet<>(types.entrySet()).stream()\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> Collections.unmodifiableSet(new HashSet<>(e.getValue()))\n ))\n );\n }", "@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "UsedTypes getTypes();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "public ReactorResult<java.lang.String> getAllFileType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), FILETYPE, java.lang.String.class);\r\n\t}", "private List<String> scoutForFiles(FileType fileType, Path path) {\n\t\tfinal List<String> filesFound = new ArrayList<>();\n\n\t\t// Create a stream of Paths for the contents of the directory\n\t\ttry (Stream<Path> walk = Files.walk(path)) {\n\n\t\t\t// Filter the stream to find only Paths that match the filetype we are looking\n\t\t\tfilesFound.addAll(walk.map(x -> x.toString())\n\t\t\t\t.filter(f -> f.endsWith(fileType.suffix)).collect(Collectors.toList()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new MessagePassableException(EventKey.ERROR_EXTERNAL_DIR_NOT_READABLE, e, path.toString());\n\t\t}\n\n\t\treturn filesFound;\n\t}", "ResponseEntity<List<Type>> findTaskTypes();", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "@RequestMapping(value = \"/_search/dlFileTypes/{query}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<DlFileType> searchDlFileTypes(@PathVariable String query) {\n return StreamSupport\n .stream(dlFileTypeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "Enumeration<String> getEntryPaths(String path) throws IOException;", "protected abstract String[] getFolderList() throws IOException;", "public List<URI> getType();", "public Set<DirectoryEntry> buildDirectory() {\r\n\t\tfinal Set<DirectoryEntry> result = new TreeSet<DirectoryEntry>();\r\n\t\tadvanceObjectsCollection();\r\n\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tif (this.in.is(PersistReader.TAG_OBJECTS, false)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tfinal String type = this.in.getTag().getName();\r\n\t\t\tfinal String name = this.in.getTag().getAttributeValue(\"name\");\r\n\t\t\tfinal String description = this.in.getTag().getAttributeValue(\r\n\t\t\t\t\t\"description\");\r\n\r\n\t\t\tfinal DirectoryEntry entry = new DirectoryEntry(type, name,\r\n\t\t\t\t\tdescription);\r\n\t\t\tresult.add(entry);\r\n\r\n\t\t\tskipObject();\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public void findByType(String type)\n {\n boolean found = false;\n for(KantoDex entry : entries)\n {\n if(entry.getTypes1().contains(type) && !type.equals(\"\"))\n {\n found = true;\n } \n }\n if(!found)\n {\n System.out.println(\"You have input a nonexistent type, or the type was not applicable to this entry.\"); \n }\n else\n {\n System.out.println(\"All Pokedex entries of type \" + type + \":\");\n for(KantoDex entry : entries)\n {\n if(entry.getType1().equals(type) || entry.getType2().equals(type))\n {\n entry.display();\n }\n }\n }\n }", "List<GWTJahiaNodeType> getContentTypes(List<String> baseTypes, boolean includeSubTypes, boolean displayStudioElement) throws GWTJahiaServiceException;", "public List getResourceTypesByIdList(final Map idList);", "@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}", "public List<Class<? extends Resource>> getAvailableTypes(OgemaLocale locale);", "public LinkedList<String> getFileSystemTypes() {\r\n return fileSystemTypes;\r\n }", "public List<String> getDistinctResourceName(){\n\t\treturn jtemp.queryForList(\"SELECT DISTINCT resource_type_id||resource_name FROM resources\", String.class);\n\t}", "@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}", "public List<ReportType> getEntries(){\n\t\tList<ReportType> reportTypes = new ArrayList<>(warningList);\n\t\treportTypes.addAll(errorList);\n\t\treturn reportTypes;\n\t}", "@NonNull\n public List<String> getParentTypes() {\n List<String> parentTypes = mBundle.getStringArrayList(AppSearchSchema.PARENT_TYPES_FIELD);\n if (parentTypes == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(parentTypes);\n }", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "ArrayList<String> getAllDatatypeIds();", "protected Collection getObjectsOfType(Collection allTypes, Collection curTypes) {\n Collection objectsOfType = new ArrayList();\n Iterator itA = allTypes.iterator();\n while (itA.hasNext()) {\n Object objAT = itA.next();\n if (objAT == null)\n continue;\n Iterator itB = curTypes.iterator();\n while (itB.hasNext()) {\n Object objCT = itB.next();\n if (objAT.equals(objCT))\n objectsOfType.add(objCT);\n } // while itB\n } // while itA\n return objectsOfType; \n }", "public static String getFolderType(String dir) {\n\t\treturn FOLDERTYPES.get(dir);\n\t}", "private Collection<String> getTypes(final Collection<Passenger> passengers)\r\n {\r\n final List<String> types = new ArrayList<String>();\r\n for (final Passenger passenger : passengers)\r\n {\r\n types.add(passenger.getType().toString());\r\n }\r\n return types;\r\n }", "List<String> getListTypeOfTariff() throws ServiceException;", "private List<Type> getTypes(final String name) {\n\t\tfinal List<String> baseTypes = new ArrayList<>();\n\t\tfinal String typeOrTypes = bundleConstants.getString(name + SEPERATOR + TYPES);\n\t\tif (typeOrTypes.contains(\" \")) {\n\t\t\t// has more then one type!\n\t\t\tbaseTypes.addAll(Arrays.asList(typeOrTypes.split(\" \")));\n\t\t} else {\n\t\t\t// has only one type\n\t\t\tbaseTypes.add(typeOrTypes);\n\t\t}\n\n\t\t// Convert type as String to type as Type\n\t\treturn baseTypes.stream().map(typeName -> Type.valueOf(typeName.toUpperCase())).collect(Collectors.toList());\n\t}", "ArrayList<Restaurant> getRestaurantListByType(String type);", "public List<Installation> serchInstPlaceType() {\r\n List<Installation> list = new ArrayList<Installation>();\r\n try {\r\n init();\r\n\r\n // Start UOC\r\n InstPlaceTypeDao dao = new InstPlaceTypeDao(conn);\r\n list = dao.getTypeList();\r\n // End UOC\r\n\r\n } catch (Exception e) {\r\n handleException(e);\r\n } finally {\r\n finish();\r\n }\r\n return list;\r\n }", "public List<Long> getFolderContentIds(long folderId, EntryType type, boolean visibleOnly) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n ArrayList<Predicate> predicates = new ArrayList<>();\n predicates.add(getBuilder().equal(from.get(\"id\"), folderId));\n if (visibleOnly) {\n predicates.add(getBuilder().equal(entry.get(\"visibility\"), Visibility.OK.getValue()));\n }\n if (type != null) {\n predicates.add(getBuilder().equal(entry.get(\"recordType\"), type.getName()));\n }\n query.select(entry.get(\"id\")).where(predicates.toArray(new Predicate[0]));\n return currentSession().createQuery(query).list();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "@NotNull\n private Set<String> getAllResourceTypes(@NotNull final ResourceResolver resourceResolver) {\n Set<String> allResourceTypes = new LinkedHashSet<>(resourceTypeSet);\n if (inherited) {\n for (String resourceType : resourceTypeSet) {\n allResourceTypes.addAll(Utils.getSuperTypes(resourceType, resourceResolver));\n }\n }\n return allResourceTypes;\n }", "public String[] getMimeTypes() {\n/* 187 */ Set types = new HashSet(this.type_hash.keySet());\n/* 188 */ types.addAll(this.fallback_hash.keySet());\n/* 189 */ types.addAll(this.native_commands.keySet());\n/* 190 */ String[] mts = new String[types.size()];\n/* 191 */ mts = (String[])types.toArray((Object[])mts);\n/* 192 */ return mts;\n/* */ }", "public Vector<String> getTaskTypes() {\r\n\t\tVector<String> v = new Vector<String>();\r\n\r\n\t\tfor (TaskType tt : taskTypes) {\r\n\t\t\tv.add(tt.name);\r\n\t\t}\r\n\r\n\t\treturn v;\r\n\t}", "public Map getMailcapList(String mime_type) {\n/* 126 */ Map search_result = null;\n/* 127 */ Map wildcard_result = null;\n/* */ \n/* */ \n/* 130 */ search_result = (Map)this.type_hash.get(mime_type);\n/* */ \n/* */ \n/* 133 */ int separator = mime_type.indexOf('/');\n/* 134 */ String subtype = mime_type.substring(separator + 1);\n/* 135 */ if (!subtype.equals(\"*\")) {\n/* 136 */ String type = mime_type.substring(0, separator + 1) + \"*\";\n/* 137 */ wildcard_result = (Map)this.type_hash.get(type);\n/* */ \n/* 139 */ if (wildcard_result != null)\n/* 140 */ if (search_result != null) {\n/* 141 */ search_result = mergeResults(search_result, wildcard_result);\n/* */ } else {\n/* */ \n/* 144 */ search_result = wildcard_result;\n/* */ } \n/* */ } \n/* 147 */ return search_result;\n/* */ }", "java.util.List<UserType>\n getUserTypesList();", "default List<TypeInfo> allTypes() {\n List<TypeInfo> allTypes = new LinkedList<>();\n allTypes.add(this);\n allTypes.addAll(Arrays.asList(interfaces()));\n allTypes.addAll(superClass().stream().flatMap(s -> s.allTypes().stream()).collect(Collectors.toList()));\n return allTypes;\n }", "public Type[] types();", "java.util.List<? extends com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder> \n getEntryOrBuilderList();", "public Collection getMimeTypesFileName(String fileName) {\n\t\tCollection mimeTypes = new ArrayList();\n\t\t// Lookup the globbing methods first\n\t\tlookupMimeTypesForGlobFileName(fileName, mimeTypes);\n\n\t\tif (!mimeTypes.isEmpty()) {\n\t\t\tmimeTypes = normalizeWeightedMimeList((List) mimeTypes);\n\t\t}\n\n\t\treturn mimeTypes;\n\t}", "public static Resource[] getAllOfType( Resource[] library, String type){\r\n int count = 0;\r\n // update the count if the item in the library is checked out\r\n for(int i = 0; i < library.length; i++){\r\n if (library[i].getCheckedOut()) { \r\n count = count++; \r\n }\r\n }\r\n \r\n // create a Resource array whose length is equal to count \r\n // that contains the checked out items that are of specific type\r\n Resource[] typeCheckOut = new Resource[count];\r\n for(int i = 0; i < library.length; i++){\r\n if (library[i].getCheckedOut()) { \r\n if (library[i].getType() == type){\r\n for ( int c = 0; c < typeCheckOut.length; c++) {\r\n typeCheckOut[c] = library[i];\r\n }\r\n }\r\n }\r\n }\r\n\r\n return typeCheckOut; \r\n }", "public static ArrayList<TicketType> getAllTicketTypesData() {\n\t\tList list = null;\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\tlist = (ArrayList)SerializeDB.readSerializedObject(filename); //Read data\n\t\t\n\t\treturn (ArrayList<TicketType>) list;\n\t}", "public ArrayList<ApplicationPickerEntry> getEntries( String folder ) {\n\t\t\n\t\tArrayList<ApplicationPickerEntry> entries = new ArrayList<ApplicationPickerEntry>();\n\t\t\n\t\ttry {\n\t\t\tFile targetFolder = null;\n\t\t\t\n\t\t\tif (StringUtil.isEmpty(folder) || folder.equals(\"root\")) {\n\t\t\t\t\n\t\t\t\ttargetFolder = new File( dominoDataDir );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttargetFolder = new File( dominoDataDir + folder );\n\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<File> files = new ArrayList<File>(Arrays.asList(targetFolder.listFiles()));\n\t\t\t\n\t\t\tfor (File file : files) {\n\t\t\t\t\n\t\t\t\tString name = file.getName();\n\t\t\t\tString ext = name.substring( name.lastIndexOf(\".\")+1);\n\t\t\t\t\n\t\t\t\tString relativePath = file.getAbsolutePath().replace(dominoDataDir, \"\");\n\t\t\t\t\n\t\t\t\t//add only directories and applications\n\t\t\t\tif (ext.equalsIgnoreCase(\"nsf\") || file.isDirectory()) {\n\t\t\t\t\t\n\t\t\t\t\tApplicationPickerEntry entry = new ApplicationPickerEntry( name, relativePath, name, file.isDirectory() );\n\t\t\t\t\t\n\t\t\t\t\tentries.add( entry );\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//sort the entries\n\t\t\tCollections.sort(entries);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tDebugToolbar.get().error(e);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn entries;\n\t\t\n\t\t\n\t}", "List<T> getAllDistinct();", "public List<CWLType> getTypes() {\n return types;\n }", "<T> Set<T> lookupAll(Class<T> type);", "@Test\n\tpublic void test_Directory_typeFinder_wildcardImport() {\n\t\tString directory = _TestSuite.TYPE_FINDER_TEST_DIR.concat(\"wildcardImport/\");\n\t\ttestOutput(directory);\n\t}", "@Override\r\n\tpublic Page getTypeList(Map<String, String> param) {\n\t\treturn codeMasterService.getTypeList(param);\r\n\t}", "List<CatalogItem> getAllCatalogItemsByType(Long type_id);", "String[] getResourceListing(Class<?> clazz, String path) throws URISyntaxException, IOException{\n\t\tURL dirURL = clazz.getClassLoader().getResource(path);\n\t\tif(dirURL != null && dirURL.getProtocol().equals(\"file\")){\n\t\t\t/* A file path: easy enough */\n\t\t\treturn new File(dirURL.toURI()).list();\n\t\t}\n\t\tif(dirURL == null){\n\t\t\t// In case of a jar file, we can't actually find a directory. Have to assume the same jar as clazz.\n\t\t\tfinal String me = clazz.getName().replace(\".\", \"/\") + \".class\";\n\t\t\tdirURL = clazz.getClassLoader().getResource(me);\n\t\t}\n\t\tif(dirURL.getProtocol().equals(\"jar\")){\n\t\t\t// A JAR path\n\t\t\tfinal String jarPath = dirURL.getPath().substring(5, dirURL.getPath().indexOf(\"!\")); // strip out only the JAR file\n\t\t\tfinal JarFile jar = new JarFile(URLDecoder.decode(jarPath, \"UTF-8\"));\n\t\t\tfinal Enumeration<JarEntry> entries = jar.entries(); // gives ALL entries in jar\n\t\t\tfinal Set<String> result = new HashSet<>(); // avoid duplicates in case it is a subdirectory\n\t\t\twhile(entries.hasMoreElements()){\n\t\t\t\tfinal String name = entries.nextElement().getName();\n\t\t\t\tif(name.startsWith(path)){ // filter according to the path\n\t\t\t\t\tString entry = name.substring(path.length());\n\t\t\t\t\tint checkSubdir = entry.indexOf(\"/\");\n\t\t\t\t\tif(checkSubdir >= 0){\n\t\t\t\t\t\t// if it is a subdirectory, we just return the directory name\n\t\t\t\t\t\tentry = entry.substring(0, checkSubdir);\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result.toArray(new String[result.size()]);\n\t\t}\n\t\tthrow new UnsupportedOperationException(\"Cannot list files for URL \" + dirURL);\n\t}", "private Map<String, List<String>> getObjectsGroupedByType() throws SQLException {\n boolean xmlDbAvailable = dbSupport.isXmlDbAvailable();\n String query =\n // Most of objects are seen in ALL_OBJECTS\n \"SELECT OBJECT_TYPE, OBJECT_NAME FROM ALL_OBJECTS WHERE OWNER = ? \" +\n (xmlDbAvailable\n // XML tables are seen in a separate dictionary table\n ? \"UNION ALL SELECT 'TABLE', TABLE_NAME FROM ALL_XML_TABLES WHERE OWNER = ? \" +\n \"AND TABLE_NAME NOT LIKE 'BIN$________________________$_'\" //ignore recycle bin objects\n : \"\");\n\n // Count params\n int n = 1;\n if (xmlDbAvailable) n += 1;\n String[] params = new String[n];\n Arrays.fill(params, name);\n\n List<Map<String, String>> rows = jdbcTemplate.queryForList(query, params);\n Map<String, List<String>> result = new HashMap<String, List<String>>();\n for (Map<String, String> row : rows) {\n String objectType = row.get(\"OBJECT_TYPE\");\n String objectName = row.get(\"OBJECT_NAME\");\n if (result.containsKey(objectType)) {\n result.get(objectType).add(objectName);\n } else {\n List<String> newList = new ArrayList<String>();\n newList.add(objectName);\n result.put(objectType, newList);\n }\n }\n return result;\n }", "public static java.util.Iterator<org.semanticwb.model.ResourceType> listResourceTypes()\r\n {\r\n java.util.Iterator it=sclass.listInstances();\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceType>(it, true);\r\n }", "public ArrayList<BikeType> getAllTypes(){\n typelist = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TYPES);\n ResultSet rs = ps.executeQuery()){\n\n while(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n typelist.add(type);\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return typelist;\n }", "public static Map<String, List<?>> getResourcesPerType(SearchResponse resp) {\n\n\t\tMap<String, List<ObjectId>> idsOfEachType = new HashMap<String, List<ObjectId>>();\n\t\tresp.getHits().forEach( (h) -> {\n\t\t\tif(!idsOfEachType.containsKey(h.getType())) {\n\t\t\t\tidsOfEachType.put(h.getType(), new ArrayList<ObjectId>() {{ add(new ObjectId(h.getId())); }});\n\t\t\t} else {\n\t\t\t\tidsOfEachType.get(h.getType()).add(new ObjectId(h.getId()));\n\t\t\t}\n\t\t});\n\n\t\tMap<String, List<?>> resourcesPerType = new HashMap<String, List<?>>();\n\n\t\tfor(Entry<String, List<ObjectId>> e: idsOfEachType.entrySet()) {\n\t\t\tresourcesPerType.put(e.getKey() , DB.getRecordResourceDAO().getByIds(e.getValue()));\n\n\t\t}\n\n\t\treturn resourcesPerType;\n\t}", "Set<Class<?>> getClassSet(String packageName);", "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}", "@NonNull\n Single<List<String>> getFolderNames();", "List<ITypeDescriptor> getSubTypes(String type) throws StoreException;", "SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;", "@Test\n\tpublic void test_Directory_typeFinder_SENG300W18Iter1() {\n\t\tString directory = _TestSuite.TYPE_FINDER_TEST_DIR.concat(\"SENG300W18Iter1/\");\n\t\ttestOutput(directory);\n\t}", "public Collection getMimeTypesURL(URL url) {\n\n\t\tCollection mimeTypes = getMimeTypesFileName(url.getPath());\n\t\treturn _getMimeTypes(mimeTypes, getInputStream(url));\n\t}", "public static List<UserType> getAllUserTypes() {\n return UserType.finder.where().ne(\"id\", 1).findList();\n }", "public Iterator getTypes() {\r\n\t\treturn types == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(types.values());\r\n\t}", "public Set getTypeSet()\n {\n Set set = new HashSet();\n\n Iterator it = attTypeList.keySet().iterator();\n while (it.hasNext())\n {\n // Get key\n Object attrName = it.next();\n Object type = attTypeList.get(attrName);\n set.add(type);\n }\n return set;\n }", "@Override\n\tpublic List<Type> listType() {\n\t\treturn goodsDao.listType();\n\t}", "public String[] getNodeTypes()\r\n {\r\n\treturn ntMap.keySet().toArray(new String[ntMap.size()]);\r\n }", "public static List<String> getallSupertype(\n String forClass\n ) throws ServiceException {\n ModelElement modelElement = modelTypeNames.get(forClass);\n if(modelElement == null) {\n return null;\n } else {\n final List allSupertype = modelElement.allSupertypes;\n return allSupertype;\n }\n }", "public static final String[] getSourceTypeList() {\n final SourceType[] types = SourceType.values();\n final String[] displayStrings = new String[types.length];\n for(int i = 0; i < types.length; i++) {\n displayStrings[i] = JMeterUtils.getResString(types[i].propertyName);\n }\n return displayStrings;\n }", "List<AccountTypeDTO> lookupAccountTypes();", "protected List<Type> getAllTNS(Map<String, Type> localMap, String tnsType){\r\n\t\r\n\t\tList<Type> types=new ArrayList<Type>();\r\n\t\tif(tnsType.startsWith(\"tns:\")){\r\n\t\t\r\n\t\tString tnsName=tnsType.substring(tnsType.indexOf(\":\")+1);\r\n\t\tif(localMap.containsKey(tnsName.trim())){\r\n\t\t\t\t\r\n\t\t\tType originalComplex=localMap.get(tnsName.trim());\r\n\t\tif(originalComplex instanceof SequenceType){\t\r\n\t\t\tSequenceType t1=(SequenceType)originalComplex;\t\r\n\t\t\treturn t1.getElements();\r\n\t\t}\r\n\t\tif(originalComplex instanceof ChoiceType){\r\n\t\t\t\t\t\r\n\t\t\tChoiceType t2=(ChoiceType)originalComplex;\r\n\t\t\treturn t2.getElements();\r\n\t\t}\r\n\t\tif(originalComplex instanceof AllComplexType){\r\n\t\t\t\t\t\r\n\t\t\tAllComplexType t3=(AllComplexType)originalComplex;\r\n\t\t\treturn t3.getElements();\r\n\t\t}\r\n\t}\t \r\n\t} \r\n\t\treturn types; //will always be an empty set.\r\n\t}", "HashMap<String, Set<URI>> getExternalSuperClasses();", "public List<Type> getDownloadableType() {\n\t\tList<Type> types = typeManager.getAllAvailable();\n\t\tList<Type> result = new ArrayList<Type>();\n\t\tfor(Type type : types){\n\t\t\tif(type.getBasePackages() != null && type.getBasePackages().size() != 0){\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}" ]
[ "0.6549398", "0.65060675", "0.6505823", "0.637623", "0.6261711", "0.61607456", "0.61330414", "0.60699874", "0.60149455", "0.59828216", "0.5970558", "0.59668136", "0.59497726", "0.59431064", "0.5911016", "0.5877527", "0.58151144", "0.5809051", "0.5776973", "0.5773415", "0.57684237", "0.5759429", "0.5729622", "0.57236475", "0.5715948", "0.5710635", "0.5697878", "0.5670217", "0.5625367", "0.56202626", "0.56156456", "0.5611859", "0.5604131", "0.5527655", "0.5508203", "0.5507934", "0.5505768", "0.5503148", "0.5494387", "0.5490934", "0.5478253", "0.5471092", "0.5461294", "0.54031116", "0.5397343", "0.5389354", "0.53768504", "0.53717744", "0.5369745", "0.5361582", "0.5326804", "0.5316234", "0.53162295", "0.5306849", "0.53061163", "0.5305975", "0.5304767", "0.5285088", "0.5283341", "0.5274805", "0.52618897", "0.52616674", "0.5258596", "0.52274245", "0.52137136", "0.5206447", "0.52051437", "0.52029026", "0.5187355", "0.51817775", "0.5181327", "0.5176675", "0.51733917", "0.5173043", "0.51609474", "0.5151533", "0.5139758", "0.51350874", "0.5134483", "0.5131623", "0.5128641", "0.5126314", "0.51255125", "0.51247144", "0.51207656", "0.5115502", "0.51071024", "0.5101886", "0.5095662", "0.50862145", "0.5079016", "0.5077952", "0.5076006", "0.50748956", "0.5068005", "0.50636166", "0.5061492", "0.5060977", "0.50604177", "0.5042099" ]
0.7011126
0
Returns the value of the 'Spine Curve' reference. If the meaning of the 'Spine Curve' reference isn't clear, there really should be more of a description here...
IfcCompositeCurve getSpineCurve();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurve() {\r\n return curve;\r\n }", "public int getCurrentSpinePos() {\n return currentSpinePos;\n }", "private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }", "public Strike getStrike() {\n return strike;\n }", "public double getS() { return s; }", "public double calculateSine(double angle);", "public final double getS()\r\n\t{\r\n\t\treturn s;\r\n\t}", "public Float getShoSrIn() {\n return shoSrIn;\n }", "public interface Curve extends OrientableCurve, GenericCurve {\n\n /**\n * returns the number of segments building the curve\n * \n * @return number of segments\n */\n int getNumberOfCurveSegments();\n\n /**\n * returns the curve segment at the passed index\n * \n * @param index\n * to get\n * \n * @return segment at passed index position\n * @throws GeometryException\n */\n CurveSegment getCurveSegmentAt( int index )\n throws GeometryException;\n\n /**\n * \n * @return all segments of a Curve\n * @throws GeometryException\n */\n CurveSegment[] getCurveSegments()\n throws GeometryException;\n\n}", "public double calculateHyperbolicSine(double angle);", "public double sin(double number);", "@Override\r\n\tpublic int getStrike() {\n\t\treturn 0;\r\n\t}", "public java.lang.String getSPART() {\n return SPART;\n }", "public final void sin() {\n\t\tif (size > 0) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tpush(Math.sin(topMostValue));\n\n\t\t}\n\t}", "public double calculateSine(double oppositeSide, double hypotenuseSide, String angleType);", "public double calculateSine(double angle, String angleType);", "public PixelPoint getStopPoint ()\r\n {\r\n Point stop = glyph.getLag()\r\n .switchRef(\r\n new Point(getStop(), line.yAt(getStop())),\r\n null);\r\n\r\n return new PixelPoint(stop.x, stop.y);\r\n }", "public double getFxSpotCliente() {\r\n return fxSpotCliente;\r\n }", "public Float getSpeechShoSrOut() {\n return speechShoSrOut;\n }", "public double getFxSpotMargen() {\r\n return fxSpotMargen;\r\n }", "public static double sin(double x) // Using a Chebyshev-Pade approximation\n {\n int n=(int)(x/PI2)+1; // reduce to the 4th and 1st quadrants\n if(n<1)n=n-1;\n if ((n&2)==0) x=x-(n&0xFFFFFFFE)*PI2; // if it from the 2nd or the 3rd quadrants\n else x=-(x-(n&0xFFFFFFFE)*PI2);\n\n double x2=x*x;\n return (0.9238318854f-0.9595498071e-1f*x2)*x/(0.9238400690f+(0.5797298195e-1f+0.2031791179e-2f*x2)*x2);\n }", "Double getStartFloat();", "public String getGslly() {\r\n return gslly;\r\n }", "public abstract double getReference();", "public abstract double getReference();", "public Float getShoSrOut() {\n return shoSrOut;\n }", "public String getSsqy() {\n return ssqy;\n }", "public double getMakespan(){return makespan;}", "public static Expression sin(final Expression value) {\n return new Expression(\"$sin\", value);\n }", "public Number getSolineId() {\n return (Number)getAttributeInternal(SOLINEID);\n }", "public Vec2 getCurveDomain() {\n return new Vec2(opensimSimulationJNI.FiberCompressiveForceCosPennationCurve_getCurveDomain(swigCPtr, this), true);\n }", "double getExpoBracketingStopsPref();", "public int getSeilY() {\n\t\treturn (getY() + (int) ((double) seilyRel * yscale));\n\t}", "public double calculateArcSine(double angle);", "public static double sinh(double myValue)\n {\n double aValue = (Math.pow(Math.E,myValue)-Math.pow(Math.E,-1*myValue))/2;\n return aValue;\n }", "public SVGLength getX() {\n return x;\n }", "public String getFinshMark() {\r\n return multiplier;\r\n }", "public double getFinesOwed() {\n\t\treturn fines;\r\n\t}", "public byte getStartSquare (){\r\n\t\treturn start_sq;\r\n\t}", "public BigDecimal getSpCb() {\r\n return spCb;\r\n }", "public float getThirdSSN(){\n\t\t return ThirdSSN;\n\t\t }", "public int getSteine(int mulde) {\n\t\tint steineInMulde = mulden[mulde];\n\t\tmulden[mulde] = 0;\n\t\treturn steineInMulde;\n\t}", "public static final float sinh(float x) {\n \t\treturn (MoreMath.pow(MoreMath.E, x) - MoreMath.pow(MoreMath.E, -x)) / 2.0f;\n \t}", "public String getSymbol()\n {\n return annot.getString(COSName.SY);\n }", "public String getSeRef() {\n return seRef;\n }", "public double calculateArcSine(double oppositeSide, double hypotenuseSide, String angleType);", "public double getStart();", "public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }", "public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }", "public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }", "public float getSecondSSN(){\n\t\t return SecondSSN;\n\t\t }", "public Float getSfsalary() {\n sfsalary=yfsalary-grsds;\n return sfsalary;\n }", "public TopoDS_Face Value() {\n TopoDS_Face ret = new TopoDS_Face(OCCwrapJavaJNI.StepToTopoDS_TranslateCurveBoundedSurface_Value(swigCPtr, this), true);\n return ret;\n }", "Double getAnchorageSlip();", "@org.junit.Test\n public void getCurvatureTestOnePointCurve() {\n BezierCurve onePointCurve = new BezierCurve(new Vector(10, 20));\n assertEquals(new Vector(), onePointCurve.getCurvature(0));\n assertEquals(new Vector(), onePointCurve.getCurvature(1));\n }", "@Override\n\tpublic float getStartValue() {\n\t\treturn value;\n\t}", "float getX();", "float getX();", "float getX();", "float getX();", "float getX();", "float getX();", "@SuppressWarnings(\"all\")\n@NonNullByDefault\npublic interface IHasCurve extends org.archstudio.bna.IThing {\n\n\tpublic static final IThingKey<java.lang.Integer> CURVE_KEY = ThingKey.create(com.google.common.collect.Lists.newArrayList(\"curve\", IHasCurve.class));\n\n\tpublic int getCurve();\n\n}", "public int getPointLine(float yPos){\n int r = (int)yPos / getLineHeight();\n return r < 0 ? 0 : r;\n }", "LineReferenceType getLineReference();", "public double getX() {\n\t\treturn sens.getXPos();\n\t}", "static double sineWave(double timeInSeconds, double frequency) {\r\n\t\tdouble result= Math.sin(timeInSeconds);\r\n\t\t\t\r\n\t\treturn result; // hint: use Math.sin(...)\r\n\t}", "public BIG getS(){return S;}", "public IfcPositiveLengthMeasure getLiningThickness()\n\t{\n\t\treturn this.LiningThickness;\n\t}", "public interface CurveSegment extends GenericCurve {\n\n /**\n * @return the number of points building the curve segment\n */\n int getNumberOfPoints();\n\n /**\n * @return all positions of the segement as array of Point\n */\n Position[] getPositions();\n\n /**\n * @param index\n * to get the curve\n * @return the curve position at the submitted index\n */\n Position getPositionAt( int index );\n\n /**\n * reverses the direction of the curvesegment\n */\n void reverse();\n\n /**\n * @return the coordinate system of the curve segment\n */\n CoordinateSystem getCoordinateSystem();\n\n /**\n * The Boolean valued operation \"intersects\" shall return TRUE if this Geometry intersects another Geometry. Within\n * a Complex, the Primitives do not intersect one another. In general, topologically structured data uses shared\n * geometric objects to capture intersection information.\n * \n * @param gmo\n * @return true if this geometry intersects with given geometry.\n */\n boolean intersects( Geometry gmo );\n\n /**\n * The Boolean valued operation \"contains\" shall return TRUE if this Geometry contains another Geometry.\n * \n * @param gmo\n * @return true if this geometry contains given geometry.\n */\n boolean contains( Geometry gmo );\n\n}", "public double getStartAngle();", "public double getRise(\n )\n {return rise;}", "public float getX();", "public float getX();", "public double intercept() {\r\n return (this.start.getY() - (this.lineSlope() * this.start.getX()));\r\n }", "@Override\r\n\tpublic double getSpehreRadiusLeftHand() {\n\t\treturn linkSphereRadius;\r\n\t}", "public boolean getStrikeout() {\n\t\treturn this.strikeout;\n\t}", "public Shape getTraceLineShape()\n {\n return ScatterTraceViewShapes.getLineShape(this, false);\n }", "public String toString() {\n\t\tString s = \"Spike at x=\" + x + \"y=\" + y;\n\t\treturn s;\n\t}", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "@Override\n\tpublic float getInterpolation(float input) {\n\t\tdouble a = input * PI_3;\n\t\tdouble b = Math.sin(a) / a;\n\t\tdouble c = b * (input * -1 + 1);\n\t\treturn (float) c * -1 + 1;\n\n\t}", "public final static float SIN(float deg) {\n\t\tdeg*=SINCOS_INVPREC;\n\t\treturn sinLUT[(int)deg];\n\t}", "public double getSIvalue() {\n\t\treturn(value*factor + offset);\n\t}", "public java.lang.Double getVar157() {\n return var157;\n }", "public java.lang.Double getVar157() {\n return var157;\n }", "public java.lang.Float getVar158() {\n return var158;\n }", "public SalesLineItem getCurrentSaleLine() {\n\t\treturn currentSaleLine;\n\t}", "public Subp\ngetSubpSym();", "public IfcLengthMeasure getLiningOffset()\n\t{\n\t\treturn this.LiningOffset;\n\t}", "public String getSpfl() {\n return spfl;\n }", "public double getX();" ]
[ "0.61820734", "0.5811831", "0.5730998", "0.57292104", "0.55977523", "0.55074084", "0.5493759", "0.5384452", "0.53552884", "0.53157306", "0.5310215", "0.5288621", "0.52764994", "0.52228487", "0.5209166", "0.5200578", "0.5185771", "0.51616704", "0.51603836", "0.5125502", "0.5104033", "0.50820863", "0.50525", "0.5045548", "0.5045548", "0.50108296", "0.49931365", "0.49900603", "0.498906", "0.49597156", "0.4951704", "0.49458864", "0.4944774", "0.49442938", "0.49352643", "0.49286956", "0.49248618", "0.49200526", "0.4915525", "0.4914082", "0.49139372", "0.49120185", "0.4907171", "0.489855", "0.48980448", "0.48818153", "0.4873218", "0.4872791", "0.4872791", "0.4872791", "0.48696792", "0.4867341", "0.48590142", "0.48544857", "0.48303688", "0.48275784", "0.48259404", "0.48259404", "0.48259404", "0.48259404", "0.48259404", "0.48259404", "0.48255104", "0.48234504", "0.48229408", "0.48114952", "0.48106462", "0.4809878", "0.48081017", "0.48075348", "0.48070672", "0.4796556", "0.4796146", "0.4796146", "0.47920704", "0.47877377", "0.47873476", "0.47768888", "0.47766456", "0.47763655", "0.47763655", "0.47763655", "0.47763655", "0.47763655", "0.47763655", "0.47763655", "0.47763655", "0.47763655", "0.47763655", "0.4774268", "0.4770559", "0.47703373", "0.476427", "0.47608316", "0.47572714", "0.47569966", "0.47548455", "0.47514388", "0.47491375", "0.4747295" ]
0.709963
0
Ensure that we can decode some JSON and create a credential.
@Test public void fromJson() throws VirgilException, WebAuthnException { AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject attObj = authenticator.makeCredential(options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testExcludeCredentials() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject firstAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n\n // Now we want to pull out the ID of the just-created credential, add it to the exclude list,\n // and ensure that we see a failure when creating a second credential.\n\n makeCredentialOptions.excludeCredentialDescriptorList.add(new PublicKeyCredentialDescriptor(\"public-key\", firstAttestationObject.getCredentialId(), null));\n try {\n AttestationObject secondAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n Assert.fail(\"makeCredential should have failed due to a matching credential ID in the exclude list\");\n } catch (InvalidStateError e) {\n // good! the matching credential descriptor caused the authenticator to reject the request\n }\n }", "@Test\n public void testFailureOnVerificationRequiredWithoutSupport() throws WebAuthnException, VirgilException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n makeCredentialOptions.requireUserVerification = true;\n makeCredentialOptions.requireUserPresence = false;\n\n try {\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n Assert.fail(\"makeCredential should have failed without biometric support\");\n } catch (ConstraintError e) {\n // success! any other exception is a failure\n }\n }", "@Test\n public final void testCreateUserInJSONNullPassword() {\n try {\n String input = \"{\\\"userName\\\":\\\"Rodolfo\\\", \\\"password\\\": \\\"\\\"}\";\n \tUserAPI fixture = new UserAPI();\n \tfixture.createUserInJSON(input);\n } catch (WebApplicationException e) {\n \tassertNotNull(Response.Status.NOT_ACCEPTABLE.getStatusCode());\n }\n }", "AbstractCredentialModel createOAuthCredential(EmployeeModel employee);", "@Test\n public void makeCredentialAndGetAssertionWithAllowCredential() throws VirgilException, WebAuthnException, CborException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n byte[] cborEncoded = attObj.asCBOR();\n\n ByteArrayInputStream bais = new ByteArrayInputStream(cborEncoded);\n Map decoded = (Map) new CborDecoder(bais).decode().get(0);\n String fmt = ((UnicodeString) decoded.get(new UnicodeString(\"fmt\"))).getString();\n assertEquals(fmt, \"none\");\n\n byte[] credentialId = attObj.getCredentialId();\n\n // Now let's see if we can generate an assertion based on the returned credential ID\n AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON);\n //getAssertionOptions.allowCredentialDescriptorList.clear();\n getAssertionOptions.allowCredentialDescriptorList.add(new PublicKeyCredentialDescriptor(\"public-key\", credentialId, null));\n\n AuthenticatorGetAssertionResult getAssertionResult = authenticator.getAssertion(getAssertionOptions, new CredentialSelector() {\n @Override\n public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) {\n return credentialList.get(0);\n }\n });\n\n ByteBuffer resultBuf = ByteBuffer.allocate(getAssertionOptions.clientDataHash.length + getAssertionResult.authenticatorData.length);\n resultBuf.put(getAssertionResult.authenticatorData);\n resultBuf.put(getAssertionOptions.clientDataHash);\n byte[] signedData = resultBuf.array();\n List<PublicKeyCredentialSource> sources = this.credentialSafe.getKeysForEntity(makeCredentialOptions.rpEntity.id);\n PublicKeyCredentialSource source = sources.get(sources.size() - 1);\n KeyPair keyPair = this.credentialSafe.getKeyPairByAlias(source.keyPairAlias);\n assertTrue(this.cryptography.verifySignature(keyPair.getPublic(), signedData, getAssertionResult.signature));\n }", "@Test\n public void testAllowCredentialsEmpty() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n\n AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON);\n getAssertionOptions.allowCredentialDescriptorList.clear();\n authenticator.getAssertion(getAssertionOptions, new CredentialSelector() {\n @Override\n public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) {\n return credentialList.get(0);\n }\n });\n }", "AbstractCredentialModel createBasicCredential(String username, String password);", "public ClientCredentials() {\n }", "@Test\n public final void testCreateUserInJSONCorrectValues()\n throws Exception {\n UserAPI fixture = new UserAPI();\n String input = \"{\\\"userName\\\":\\\"Rodolfo\\\", \\\"password\\\": \\\"213\\\"}\";\n Response result = fixture.createUserInJSON(input);\n assertNotNull(result);\n }", "void createExposedOAuthCredential(IntegrationClientCredentialsDetailsModel integrationCCD);", "public InvalidJsonException() {\n\t\tsuper();\n\t}", "@Test\n public void testAuthenticate() throws JSONException {\n\n String strData = \"{\\\"name\\\": \\\"fred\\\"}\";\n JSONObject jsonObject = new JSONObject(strData);\n\n String deviceUuid = jsonObject.getString(\"deviceUuid\");\n\n assertNull(deviceUuid);\n }", "@Test\n public void readUserClassSecretary() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Secretary\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Secretary properly\", Factory.createUser(\"Secretary\").getClass(), actual.getClass());\n }", "@Test\n public final void testCreateUserInJSONUserAlreadyExists() {\n \n try {\n \tUserAPI fixture = new UserAPI();\n String input = \"{\\\"userName\\\":\\\"Txuso\\\", \\\"password\\\": \\\"213\\\"}\";\n \tfixture.createUserInJSON(input);\n } catch (WebApplicationException e) {\n \tassertNotNull(Response.Status.NOT_ACCEPTABLE.getStatusCode());\n }\n }", "@Test\n public void readSystemObjectClassAccCrRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountCreationRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountCreationRequest properly\", object.getClass(), actual.getClass());\n }", "GoogleAuthenticatorKey createCredentials();", "@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean isValid;\n try {\n new Gson().fromJson(json, Object.class);\n isValid = true;\n } catch(com.google.gson.JsonSyntaxException ex) {\n isValid = false;\n }\n assertTrue(isValid, \"Invalid JSON\");\n }", "private static User getUserFromJson(String userJson) throws Exception {\n verifyJsonFormatting(userJson);\n ObjectMapper objectMapper = new ObjectMapper();\n return objectMapper.readValue(userJson, User.class);\n }", "private CMSUser fromJSON(final byte[] bytes) {\n\t\tCMSUser cmsUser = null; \n\t\ttry{\n\t\t\tcmsUser = mapper.readValue(new ByteArrayInputStream(bytes), CMSUser.class);\n\t\t\treturn cmsUser;\n\t\t\t\n\t\t} catch (JsonMappingException jme) {\n\t\t\tlogger.error(\"from JSON JsonMappingException\", jme);\n\t\t\treturn null;\n\t\t} catch (JsonParseException jpe) {\n\t\t\tlogger.error(\"from JSON JsonParseException\", jpe);\n\t\t\treturn null;\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.error(\"from JSON IOException\", ioe);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t}", "@Test\n public final void testCreateUserInJSONNullUsername() {\n\t try {\n\t String input = \"{\\\"userName\\\":\\\"\\\", \\\"password\\\": \\\"123\\\"}\";\n\t \tUserAPI fixture = new UserAPI();\n\t \tfixture.createUserInJSON(input);\n\t } catch (WebApplicationException e) {\n\t \tassertNotNull(Response.Status.NOT_ACCEPTABLE.getStatusCode());\n\t }\n }", "GoogleAuthenticatorKey createCredentials(String userName);", "public abstract void createAccount(JSONObject account);", "public AuthorizationJson() {\n }", "@Override public Account provideAccount(String accountJson) {\n return null;\n }", "public static ConnectInfo fromJSON(final String authConfig) {\n\t\tif(authConfig==null || authConfig.trim().isEmpty()) throw new IllegalArgumentException(\"The passed authConfig was null or empty\");\n\t\ttry {\n\t\t\treturn fromJSON(new JSONObject(authConfig));\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t}", "CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);", "private User checkForUserCredentials(String data) throws IOException {\n if (data.matches(\".*:.*\")) {\n String[] credentials = data.split(\":\");\n\n return new User(credentials[0], credentials[1]);\n }\n\n return null;\n }", "public QCloudLifecycleCredentials onRemoteCredentialReceived(String jsonContent) throws QCloudClientException {\n return null;\n }", "public Credentials()\n {\n this(null, null, null, null);\n }", "@Test\n public void readUserClassDoctor() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Doctor\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Doctor properly\", Factory.createUser(\"Doctor\").getClass(), actual.getClass());\n }", "@Override // com.tencent.qcloud.core.auth.BasicLifecycleCredentialProvider\n public QCloudLifecycleCredentials fetchNewCredentials() throws QCloudClientException {\n if (this.secretId != null && this.secretKey != null) {\n return onGetCredentialFromLocal(this.secretId, this.secretKey);\n }\n if (this.httpRequest == null) {\n return null;\n }\n try {\n return onRemoteCredentialReceived((String) ((HttpResult) QCloudHttpClient.getDefault().resolveRequest(this.httpRequest).executeNow()).content());\n } catch (QCloudServiceException e) {\n throw new QCloudClientException(\"get session json fails\", e);\n }\n }", "public void testInvalidAuthenticationCredentials() throws Exception {\n client = new PaysafeApiClient(\"username\", \"password\", Environment.TEST, merchantAccountNumber);\n\n try {\n SingleUseToken sObjResponse = client.customerVaultService().createSingleUseToken(\n SingleUseToken.builder()\n .card()\n .holderName(\"Mr. John Smith\")\n .cardNum(\"4917480000000008\")\n .cardExpiry()\n .month(7)\n .year(2019)\n .done()\n .billingAddress()\n .street(\"100 Queen Street West\")\n .street2(\"Unit 201\")\n .city(\"Toronto\")\n .country(\"CA\")\n .state(\"ON\")\n .zip(\"M5H 2N2\")\n .done()\n .done()\n .build());\n\n Assert.assertEquals(\"5279\", sObjResponse.getError().getCode());\n Assert.assertEquals(\"The authentication credentials are invalid.\",\n sObjResponse.getError().getMessage());\n\n } catch (IOException ioExp) {\n // Log IO Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + ioExp.getMessage());\n } catch (PaysafeException oExp) {\n // Log Paysafe Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + oExp.getMessage());\n } catch (Exception e) {\n // Log Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + e.getMessage());\n }\n }", "protected void init(JSONObject json) throws EInvalidData {\n\t\ttry {\n\t\t\t_id = json.getString(\"id\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No id found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_name = json.getString(\"name\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No name found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_created_at = new Date(json.getLong(\"created_at\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No created_at found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_status = json.getString(\"status\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No status found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash_type = json.getString(\"hash_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash = json.getString(\"hash\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_request = new Date(json.getLong(\"last_request\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_request = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_success = new Date(json.getLong(\"last_success\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_success = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_type = json.getString(\"output_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No output_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_params.clear();\n\t\t\t_output_params.parse(json.getJSONObject(\"output_params\"));\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No valid output_params found\");\n\t\t}\n\t}", "@Test\n public void testInvalidCredential(final TestContext aContext) {\n final Async asyncTask = aContext.async();\n final JsonObject newConfigs = myConfigs;\n\n newConfigs.put(IIIF_USERNAME, \"username\");\n newConfigs.put(IIIF_PASSWORD, \"password\");\n\n deployNewVerticle(newConfigs).onFailure(failure -> {\n TestUtils.complete(asyncTask);\n }).onSuccess(success -> {\n aContext.fail();\n });\n }", "public Object credential(HttpServletRequest request)\n throws URISyntaxException, OAuthSystemException {\n try {\n OAuthClientCredentialRequest oauthRequest = new OAuthClientCredentialRequest(request);\n OAuthAuthzParameters oAuthAuthzParameters = new OAuthAuthzParameters(oauthRequest);\n\n if (!oauthRequest.getGrantType().equals(Constants.OAUTH_CLIENT_CREDENTIALS)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"invalid grant type: {}, context: {}\", oauthRequest.getGrantType(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n Client client = oAuthService.getClientByClientId(oAuthAuthzParameters.getClientId());\n if (client == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"can not get client, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!client.getGrantTypes().contains(Constants.OAUTH_CLIENT_CREDENTIALS)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"no grant type, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!client.getClientSecret().equals(oAuthAuthzParameters.getClientSecret())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid secret: {}, context: {}\", client.getClientSecret(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (StringUtils.isEmpty(oAuthAuthzParameters.getScope())) {\n oAuthAuthzParameters.setScope(client.getDefaultScope());\n } else {\n oAuthAuthzParameters.setScope(\n OAuthUtils.encodeScopes(\n oAuthService.getRetainScopes(\n client.getDefaultScope(),\n oAuthAuthzParameters.getScope()\n )\n )\n );\n }\n\n OAuthIssuer oauthIssuerImpl = new OAuthIssuerImpl(new UUIDValueGeneratorEx());\n String accessToken = oauthIssuerImpl.accessToken();\n\n oAuthService.saveAccessToken(accessToken, oAuthAuthzParameters);\n\n OAuthResponse response = OAuthASResponseEx\n .tokenResponse(HttpServletResponse.SC_OK)\n .setTokenType(\"uuid\")\n .setAccessToken(accessToken)\n .setExpiresIn(String.valueOf(appConfig.tokenAccessExpire))\n .setScope(oAuthAuthzParameters.getScope())\n .buildJSONMessage();\n logger.info(\"response access token {}, context: {}\", accessToken, oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n } catch (OAuthProblemException e) {\n logger.error(\"oauth problem exception\", e);\n final OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(e.getMessage())\n .buildJSONMessage();\n HttpHeaders headers = new HttpHeaders();\n return new ResponseEntity<String>(response.getBody(), headers, HttpStatus.valueOf(response.getResponseStatus()));\n }\n }", "public static ConnectInfo fromJSON(final JSONObject authConfig) {\n\t\tif(authConfig==null) throw new IllegalArgumentException(\"The passed authConfig was null\");\n\t\tfinal ConnectInfo a = new ConnectInfo();\n\t\tExtendedJSONObject config = new ExtendedJSONObject(authConfig);\n\t\tif(config.has(\"tunnel\")) {\n\t\t\ttry {\n\t\t\t\tExtendedJSONObject x = config.getJSONObject(\"tunnel\");\n\t\t\t\tconfig = x;\n\t\t\t} catch (Exception ex) {/* No Op */}\n\t\t}\n\t\tif(config.has(\"relayhost\")) a.relayHost = config.optString(\"relayhost\");\n\t\tif(config.has(\"relayport\")) a.relayPort = config.optInt(\"relayport\", 22);\n\t\tif(config.has(\"sshusername\")) a.userName = config.optString(\"sshusername\");\n\t\tif(config.has(\"connecttimeout\")) a.connectTimeout = config.optInt(\"connecttimeout\", DEFAULT_CONNECT_TIMEOUT);\n\t\tif(config.has(\"kextimeout\")) a.kexTimeout = config.optInt(\"kextimeout\", DEFAULT_KEX_TIMEOUT);\t\t\n\t\tif(config.has(\"sshpassword\")) a.userPassword = config.optString(\"sshpassword\");\n\t\tif(config.has(\"privatekey\")) { \n\t\t\ta.privateKey = config.optString(\"privatekey\").toCharArray();\n\t\t} else if(config.has(\"privatekeyf\")) {\n\t\t\ta.setPrivateKey(new File(URLHelper.toURL(config.optString(\"privatekeyf\")).getFile()));\n\t\t}\n\t\tif(config.has(\"pkpassword\")) {\n\t\t\ta.privateKeyPassword = config.optString(\"pkpassword\");\n\t\t} else {\n\t\t\tif(config.has(\"pkpasswordf\")) {\n\t\t\t\ta.privateKeyPasswordFile = config.optString(\"pkpasswordf\");\n\t\t\t\ta.privateKeyPassword = URLHelper.getTextFromURL(URLHelper.toURL(config.optString(\"pkpasswordf\")));\n\t\t\t\tif(a.privateKeyPassword!=null) a.privateKeyPassword = a.privateKeyPassword.trim();\n\t\t\t}\n\t\t}\n\t\tif(config.has(\"knownhosts\")) {\n\t\t\ta.knownHosts = KnownHostsRepo.getInstance().getKnownHosts(config.optString(\"knownhosts\"));\n\t\t\ta.verifier = a;\n\t\t}\n\t\tif(config.has(\"noverifier\")) {\n\t\t\tif(a.verifier!=null) throw new RuntimeException(\"Option [noverifier] specified but KnownHosts verifier already set\");\n\t\t\ta.verifier = YesManHostKeyVerifier.INSTANCE;\n\t\t}\n\t\tif(a.verifier==null && DEFAULT_KNOWN_HOSTS!=null) {\n\t\t\ta.verifier = a;\n\t\t}\n\t\treturn a;\n\t}", "private HttpRequestInitializer getCredentials(final NetHttpTransport HTTP_TRANSPORT, TCC tcc) throws IOException {\n\t\tlogger.debug(\"Obtendo credenciais...\");\n\t\tString credentialsPath = CREDENTIALS_FILE_PATH + tcc.getAluno().getCurso().getCodigoCurso() + \".json\";\n\t\tlogger.debug(\"Caminho do arquivo de credenciais: \" + credentialsPath);\n\t\tGoogleCredentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialsPath));\n\t\tcredentials = credentials.createScoped(SCOPES);\n\t\tcredentials.refreshIfExpired();\n\t\tHttpRequestInitializer requestInitializer = new HttpCredentialsAdapter(credentials);\n\t\treturn requestInitializer;\n\t}", "@Test\n public void readUserClassAdmin() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Administrator\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return user class properly\", Factory.createUser(\"Administrator\").getClass(), actual.getClass());\n }", "public void fillUser(String jsonString){\n try{\n JSONObject json = new JSONObject(jsonString);\n this.id = json.getInt(\"id\");\n this.username = json.getString(\"username\");\n this.password = json.getString(\"password\");\n }catch(JSONException e){\n e.printStackTrace();\n }\n }", "public Object getCredential()\n {\n return this.credential;\n }", "public Object getCredential()\n {\n return this.credential;\n }", "public Object getCredential()\n {\n return this.credential;\n }", "@Test\n public void testGetKafkaCredentialsFromVaultInvalidUrl() {\n Map<String, Map<String, String>> credentials =\n getKafkaCredentialsFromVault(\"some-url\", \"some-token\");\n Assert.assertEquals(new HashMap<>(), credentials);\n }", "GistUser deserializeUserFromJson(String json);", "boolean isValidCredential(String username, String password);", "public static Credential fromProtoBytes(byte[] credentialProtoBytes) throws IOException {\n return new Credential.Builder(\n org.openyolo.proto.Credential.ADAPTER.decode(credentialProtoBytes))\n .build();\n }", "@Nullable\n private TokenCredentials getCredentials(String header) {\n if (header == null) {\n return null;\n } else {\n int space = header.indexOf(32);\n if (space <= 0) {\n return null;\n } else {\n String method = header.substring(0, space);\n if (!this.prefix.equalsIgnoreCase(method)) {\n return null;\n } else {\n String decoded;\n try {\n decoded = new String(BaseEncoding.base64().decode(header.substring(space + 1)), StandardCharsets.UTF_8);\n } catch (IllegalArgumentException var8) {\n this.logger.warn(\"Error decoding credentials\", var8);\n return null;\n }\n\n int i = decoded.indexOf(58);\n if (i <= 0) {\n return null;\n } else {\n String token = decoded.substring(i + 1);\n String username = decoded.substring(0, i);\n return new TokenCredentials(token, username);\n }\n }\n }\n }\n }", "@Override\r\n\tpublic boolean needsCredentials() {\n\t\treturn false;\r\n\t}", "private void isCredentialsPresent(String message) {\n if (!credentials.isPresent()) {\n throw new IllegalArgumentException(message + \" requires a valid api url but is missing\");\n }\n }", "protected static Credentials getServiceCredentials() throws AnaplanAPIException {\n if (authType == AUTH_TYPE.CERT) {\n try {\n return new Credentials(getCertificate(), getPrivateKey());\n } catch (Exception e) {\n throw new AnaplanAPIException(\"Could not initialise service credentials\", e);\n }\n } else if (authType == AUTH_TYPE.OAUTH) {\n return new Credentials(clientId);\n }\n return new Credentials(getUsername(), getPassphrase());\n }", "@Test\n public void badInputs() throws Exception {\n // null account metadata\n TestUtils.assertException(IllegalArgumentException.class, () -> Account.Account.fromJson(null), null);\n // account metadata in wrong format\n JSONObject badMetadata1 = new JSONObject().put(\"badKey\", \"badValue\");\n TestUtils.assertException(JSONException.class, () -> Account.Account.fromJson(badMetadata1), null);\n // required fields are missing in the metadata\n JSONObject badMetadata2 = AccountContainerTest.deepCopy(refAccountJson);\n badMetadata2.remove(ACCOUNT_ID_KEY);\n TestUtils.assertException(JSONException.class, () -> Account.Account.fromJson(badMetadata2), null);\n // unsupported account json version\n JSONObject badMetadata3 = AccountContainerTest.deepCopy(refAccountJson).put(JSON_VERSION_KEY, 2);\n TestUtils.assertException(IllegalStateException.class, () -> Account.Account.fromJson(badMetadata3), null);\n // invalid account status\n JSONObject badMetadata4 = AccountContainerTest.deepCopy(refAccountJson).put(STATUS_KEY, \"invalidAccountStatus\");\n TestUtils.assertException(IllegalArgumentException.class, () -> Account.Account.fromJson(badMetadata4), null);\n // null container metadata\n TestUtils.assertException(IllegalArgumentException.class, () -> Container.Container.fromJson(null, refAccountId), null);\n // invalid container status\n JSONObject badMetadata5 = AccountContainerTest.deepCopy(containerJsonList.get(0)).put(Container.STATUS_KEY, \"invalidContainerStatus\");\n TestUtils.assertException(IllegalArgumentException.class, () -> Container.Container.fromJson(badMetadata5, refAccountId), null);\n // required fields are missing.\n JSONObject badMetadata6 = AccountContainerTest.deepCopy(containerJsonList.get(0));\n badMetadata6.remove(CONTAINER_ID_KEY);\n TestUtils.assertException(JSONException.class, () -> Container.Container.fromJson(badMetadata6, refAccountId), null);\n // unsupported container json version\n JSONObject badMetadata7 = AccountContainerTest.deepCopy(containerJsonList.get(0)).put(Container.JSON_VERSION_KEY, ((AccountContainerTest.LATEST_CONTAINER_JSON_VERSION) + 1));\n TestUtils.assertException(IllegalStateException.class, () -> Container.Container.fromJson(badMetadata7, refAccountId), null);\n }", "List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n JSONObject.quote(\"3fpKV@rWSO}k>* ^9\");\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"3fpKV@rWSO}k>* ^9\";\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject((JSONObject) null, stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "public interface CredentialConnector {\n\n /**\n * Check whether the credential (e.g public key) associated with a stack (cluster) has present on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Create the credential (e.g public key) associated with a stack (cluster) on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Interactive login for credential creation.\n *\n * @return parameters for interactive login\n */\n Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);\n\n /**\n * Delete the credential (e.g public key) associated with a stack (cluster) from Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);\n\n}", "@Test\n\tpublic void testCreate(){\n\t\t\n\t\tString jsonStr = \"{'companyName':'Lejia', 'companyNameLocal':'Lejia', 'companyAddress':'Guangdong', 'txtEmail':'[email protected]', 'telephone':'17721217320', 'contactPerson':'Molly'}\";\n\t\tcreateUser.createUserMain(jsonStr);\n\t\t\n\t}", "public static void validateJsonObject(JsonObject jsonObj) throws IOException {\n if (jsonObj == null) {\n if (RoyaltyEntity.openapiRequiredFields.isEmpty()) {\n return;\n } else { // has required fields\n throw new IllegalArgumentException(String.format(\"The required field(s) %s in RoyaltyEntity is not found in the empty JSON string\", RoyaltyEntity.openapiRequiredFields.toString()));\n }\n }\n\n Set<Entry<String, JsonElement>> entries = jsonObj.entrySet();\n // check to see if the JSON string contains additional fields\n for (Entry<String, JsonElement> entry : entries) {\n if (!RoyaltyEntity.openapiFields.contains(entry.getKey())) {\n throw new IllegalArgumentException(String.format(\"The field `%s` in the JSON string is not defined in the `RoyaltyEntity` properties. JSON: %s\", entry.getKey(), jsonObj.toString()));\n }\n }\n if (jsonObj.get(\"account\") != null && !jsonObj.get(\"account\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `account` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"account\").toString()));\n }\n if (jsonObj.get(\"account_open_id\") != null && !jsonObj.get(\"account_open_id\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `account_open_id` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"account_open_id\").toString()));\n }\n if (jsonObj.get(\"bind_login_name\") != null && !jsonObj.get(\"bind_login_name\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `bind_login_name` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"bind_login_name\").toString()));\n }\n if (jsonObj.get(\"login_name\") != null && !jsonObj.get(\"login_name\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `login_name` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"login_name\").toString()));\n }\n if (jsonObj.get(\"memo\") != null && !jsonObj.get(\"memo\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `memo` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"memo\").toString()));\n }\n if (jsonObj.get(\"name\") != null && !jsonObj.get(\"name\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `name` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"name\").toString()));\n }\n if (jsonObj.get(\"type\") != null && !jsonObj.get(\"type\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `type` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"type\").toString()));\n }\n }", "@Test\n public void readUserClassPatient() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Patient\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Patient properly\", Factory.createUser(\"Patient\").getClass(), actual.getClass());\n }", "protected synchronized String authenticated() throws JSONException {\n JSONObject principal = new JSONObject()\n .put(FIELD_USERNAME, USER)\n .put(FIELD_PASSWORD, PASSWORD);\n if (token == null){ //Avoid authentication in each call\n token =\n given()\n .basePath(\"/\")\n .contentType(ContentType.JSON)\n .body(principal.toString())\n .when()\n .post(LOGIN)\n .then()\n .statusCode(200)\n .extract()\n .header(HEADER_AUTHORIZATION);\n\n }\n return token;\n }", "private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT)\n throws IOException {\n // Load client secrets.\n InputStream in = GoogleCalendar.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY,\n new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT,\n JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(\n new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\").build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public static Spot validateJSONData(JSONObject json) {\r\n\t\tint id, lot_id;\r\n\t\tdouble lat, lng;\r\n\t\tString status;\r\n\t\t\r\n\t\tLog.i(\"Spot JSON\", json.toString());\r\n\t\t\r\n\t\t// Begin the disgusting wall of try-catches\r\n\t\ttry {\r\n\t\t\tid = json.getInt(RestContract.SPOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tid = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlot_id = json.getInt(RestContract.SPOT_LOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlot_id = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlat = json.getDouble(RestContract.SPOT_LATITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlat = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlng = json.getDouble(RestContract.SPOT_LONGITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlng = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstatus = json.getString(RestContract.SPOT_STATUS);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tstatus = \"\";\r\n\t\t}\r\n\t\t\r\n\t\treturn new Spot(id, lot_id, lat, lng, status);\r\n\t}", "@Nonnull\n public Credential getSPCredential() throws IOException {\n\n final ClassPathResource spKeyResource = new ClassPathResource(SP_KEY);\n Assert.assertTrue(spKeyResource.exists());\n final PrivateKey spPrivateKey = KeyPairUtil.readPrivateKey(spKeyResource.getInputStream());\n\n final ClassPathResource spCrtResource = new ClassPathResource(SP_CRT);\n Assert.assertTrue(spCrtResource.exists());\n final X509Certificate spEntityCert = (X509Certificate) CertUtil.readCertificate(spCrtResource.getInputStream());\n\n return new BasicX509Credential(spEntityCert, spPrivateKey);\n }", "public abstract void fromJson(JSONObject jsonObject);", "public static SyncAccountParameters blockingFromAndroidAccountV0(final Context context, final AccountManager accountManager, final Account account)\n throws CredentialException {\n String username;\n try {\n username = Utils.usernameFromAccount(account.name);\n } catch (NoSuchAlgorithmException e) {\n throw new CredentialException.MissingCredentialException(\"username\");\n } catch (UnsupportedEncodingException e) {\n throw new CredentialException.MissingCredentialException(\"username\");\n }\n\n /*\n * If we are accessing an Account that we don't own, Android will throw an\n * unchecked <code>SecurityException</code> saying\n * \"W FxSync(XXXX) java.lang.SecurityException: caller uid XXXXX is different than the authenticator's uid\".\n * We catch that error and throw accordingly.\n */\n String password;\n String syncKey;\n String serverURL;\n try {\n password = accountManager.getPassword(account);\n syncKey = accountManager.getUserData(account, Constants.OPTION_SYNCKEY);\n serverURL = accountManager.getUserData(account, Constants.OPTION_SERVER);\n } catch (SecurityException e) {\n Logger.warn(LOG_TAG, \"Got security exception fetching Sync account parameters; throwing.\");\n throw new CredentialException.MissingAllCredentialsException(e);\n }\n\n if (password == null &&\n username == null &&\n syncKey == null &&\n serverURL == null) {\n throw new CredentialException.MissingAllCredentialsException();\n }\n\n if (password == null) {\n throw new CredentialException.MissingCredentialException(\"password\");\n }\n\n if (syncKey == null) {\n throw new CredentialException.MissingCredentialException(\"syncKey\");\n }\n\n if (serverURL == null) {\n throw new CredentialException.MissingCredentialException(\"serverURL\");\n }\n\n try {\n // SyncAccountParameters constructor throws on null inputs. This shouldn't\n // happen, but let's be safe.\n return new SyncAccountParameters(context, accountManager, username, syncKey, password, serverURL);\n } catch (Exception e) {\n Logger.warn(LOG_TAG, \"Got exception fetching Sync account parameters; throwing.\");\n throw new CredentialException.MissingAllCredentialsException(e);\n }\n }", "public String createUser(String userJson) throws IOException {\r\n ObjectMapper mapper = new ObjectMapper();\r\n\r\n User user = mapper.readValue(userJson, User.class);\r\n UserValidator userValidator = new UserValidator();\r\n boolean valid = userValidator.validateUser(user);\r\n\r\n if(!valid) {\r\n return \"ERROR\";\r\n }\r\n\r\n persistenceService.saveUser(user);\r\n\r\n return \"SUCCESS\";\r\n }", "public CredentialValidationResult validate(UsernamePasswordCredential unpc){\r\n \r\n \r\n return null;\r\n}", "public QCloudLifecycleCredentials onGetCredentialFromLocal(String secretId2, String secretKey2) throws QCloudClientException {\n long current = System.currentTimeMillis() / 1000;\n String keyTime = current + \";\" + (current + this.duration);\n return new BasicQCloudCredentials(secretId2, secretKey2SignKey(secretKey2, keyTime), keyTime);\n }", "private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n InputStream in = SheetsRead.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public ProvisioningEntity parseJsonCacheEntity(String json) {\n if (StringUtils.isBlank(json)) {\n return null;\n }\n ProvisioningEntity provisioningEntity = this.cacheJsonToProvisioningEntity.get(json);\n \n if (provisioningEntity != null) {\n return provisioningEntity;\n }\n \n try {\n provisioningEntity = new ProvisioningEntity();\n provisioningEntity.fromJsonForCache(json);\n \n } catch (Exception e) {\n LOG.error(\"Problem parsing json '\" + json + \"'\", e);\n provisioningEntity = null;\n }\n \n this.cacheJsonToProvisioningEntity.put(json, provisioningEntity);\n return provisioningEntity;\n \n }", "public CredentialManagerException() {\n\t\tsuper();\n\t}", "public ProfileTokenCredential() {\n super();\n new Random().nextBytes(addr_);\n new Random().nextBytes(mask_);\n }", "@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }", "@POST\n @Path(\"/create\")\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createUser(ProfileJson json) throws ProfileDaoException {\n Profile profile = json.asProfile();\n profile.setPassword(BCrypt.hashpw(profile.getPassword(), BCrypt.gensalt()));\n //add checking if profile doesn't exit\n api.saveProfile(profile, datastore);\n return Response\n .created(null)\n .build();\n }", "public static Credential authorize(final NetHttpTransport httpTransport) throws Exception {\n\t\t /*** Load client secrets. ***/\n//\t\tInputStream in = UploadYoutubeCaption.class.getResourceAsStream(CLIENT_SECRETS);\n\t\tInputStream in = new FileInputStream(\"/home/chanwit/Documents/UploadSubtitleYoutube/booming-bonito-309508-5408dbc89eef.json\");\n\t\t GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\t\t \n\t\t /*** Build flow and trigger user authorization request. ***/\n\t\t GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(httpTransport, JSON_FACTORY, clientSecrets, SCOPES).build();\n\t\t Credential credential = new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize(\"user\");\n\t\t \n\t\t return credential;\n\t}", "protected abstract PlayerAuth createPlayerAuthObject(P params);", "private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Load client secrets.\n InputStream in = GoogleAuthorizeUtil.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public CredentialsDefinitionAdaptor(EntityDefinition def) {\n super(def);\n }", "public static interface Credentials extends Serializable {\n\t\tpublic String getUserName();\n\t\t/**\n\t\t* The password is encrypted.\n\t\t*/\n\t\tpublic String getPassword();\n\t}", "private JsonValidate convertFromJson(String result) {\n JsonValidate jv = null;\n if (result != null && result.length() > 0) {\n try {\n Gson gson = new Gson();\n jv = gson.fromJson(result, JsonValidate.class);\n } catch (Exception ex) {\n Log.v(Constants.LOG_TAG, \"Error: \" + ex.getMessage());\n }\n }\n return jv;\n }", "public InvalidCredentialsException(String message, Throwable cause) {\n/* 64 */ super(message, cause);\n/* */ }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n String string0 = \"{+H1R$Cu|49H=>Jn\";\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(\"{+H1R$Cu|49H=>Jn\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expected a ',' or '}' at character 16 of {+H1R$Cu|49H=>Jn\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test\n public void readSystemObjectClassAccDelRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountDeletionRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountDeletionRequest properly\", object.getClass(), actual.getClass());\n }", "private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Load client secrets.\n InputStream in = EventoUtils.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "@Test(expected=RuntimeException.class)\n\tpublic void getUsernameFailureInvalidContentTest() throws Exception {\n\t\tassertNotNull(new SecretCredentialsManagerImpl(null, \"true\", null, null) {\n\n\t\t\t@Override\n\t\t\tprotected SecretCache getSecretCache() {\n\t\t\t\treturn new SecretCache(Mockito.mock(AWSSecretsManager.class)) {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getSecretString(final String secretId) {\n\t\t\t\t\t\treturn \"{ \\\"wrongusernamefield\\\" : \\\"username\\\" }\";\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t}.getUsername());\n\t}", "public void setCredential(final Object credential)\n {\n checkImmutable();\n this.credential = credential;\n }", "@Test\n public void jsonTest(){\n String token = \"eyJEZXZlbG9wZWQgQnkiOiJlLUhlYWx0aCBSZXNlYXJjaCBDZW50ZXIsIElJSVQgQmFuZ2Fsb3JlIiwiSG9zdCI6Ikthcm5hdGFrYSBNZW50YWwgSGVhbHRoIE1hbmFnZW1lbnQgU3lzdGVtIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJwcm9mZXNzaW9uIjoiTUhNU1BzeWNoaWF0cmlzdCIsInN1YiI6Ik1ITVMgU2VjdXJpdHkgVG9rZW4iLCJsYXN0TG9naW5PcmdJZCI6ImU2NDE3NGI0LWI3NzctNGRlYS04NmUyLTNmMGQ1NDgwYTI2MiIsInNlc3Npb25FbmRUaW1lIjoxNTg1MzQxMzYxLCJpc3MiOiJLTUhNUyIsInNlc3Npb25TdGFydFRpbWUiOjE1ODUyOTgxNjEsInNlc3Npb25JZCI6ImZlMmE5NzY2LTQ1MmYtNDdlYy1iMjUwLTI2YzQ5NjNiNjFkZSIsInVzZXJOYW1lIjoidGVzdDAxIiwibGFzdExvZ2luU3RhcnQiOiIxNTg1Mjk0ODg2NTY4Iiwib3JnVVVJRCI6ImU2NDE3NGI0LWI3NzctNGRlYS04NmUyLTNmMGQ1NDgwYTI2MiIsIm5iZiI6MTU4NTI5ODE2MSwib3JnUm9sZSI6Ik1IRUFkbWluIiwic2Vzc2lvblRva2VuIjoiU2Vzc2lvbklkOjE3Mi4zMS4xLjIyNCN0ZXN0MDE6ZTY0MTc0YjQtYjc3Ny00ZGVhLTg2ZTItM2YwZDU0ODBhMjYyOk1ITVM6TUhFQWRtaW4jMTU4NTI5ODE2MDczMyMtNzIzOTM2MzUzIzEwMCIsInBlcnNvbklkIjoiNjI3NzMwODEtZGE4OS00NjYzLThiNmYtOWMwMGU5NDMyOTYwIiwidXNlclVVSUQiOiI1YzI0ZjU5Ni0wZjM0LTQxYTYtYWFmNS1lMzAwMmVhMmM0Y2UiLCJleHAiOjE1ODUzMzQxNjEsImlhdCI6MTU4NTI5ODE2MX0.TFWVdCZYuUysbZ2gmQc5H2Eig4jwXcuiC_FTbDTUNis\";\n try {\n DecodedJWT jwt = JWT.decode(token);\n System.out.println(\"jwt token \"+jwt.getPayload());\n\n } catch (JWTDecodeException exception){\n //Invalid token\n exception.printStackTrace();\n }\n\n\n /* try {\n mhp.getJson(\"\");\n }catch (Exception e){\n e.printStackTrace();\n }*/\n }", "@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }", "abstract public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n JSONObject.quote(\"e(h'R;/n&72HYkju\");\n JSONTokener jSONTokener0 = new JSONTokener(\"e(h'R;/n&72HYkju\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of e(h'R;/n&72HYkju\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "private static Credential getCredentials(HttpTransport HTTP_TRANSPORT) throws IOException {\r\n // Load client secrets.\r\n InputStream in = SheetsQuickstart.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\r\n if (in == null) {\r\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\r\n }\r\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\r\n\r\n // Build flow and trigger user authorization request.\r\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\r\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\r\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\r\n .setAccessType(\"offline\")\r\n .build();\r\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\r\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\r\n }", "private TwitterVerifyCredentialsDto verifyTwitterCredentials(HttpServletRequest request) {\n\t\tfinal String xVerfiyCredentialsAuthorization =\n\t\t\t\trequest.getHeader(\"X-Verify-Credentials-Authorization\");\n\n\t\tif (xVerfiyCredentialsAuthorization == null) {\n\t\t\tthrow new UniversalRestException(\n\t\t\t\t\t\"\\\"X-Verify-Credentials-Authorization\\\" header field missing\",\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t\t/*\n\t\t * \"X-Verify-Credentials-Authorization\" leads to HTTP-Status 400 by Twitter\n\t\t * Use \"Authorization\" header field instead\n\t\t */\n\t\tfinal Header[] headers = {\n\t\t\t\tnew BasicHeader(\"Authorization\", xVerfiyCredentialsAuthorization)\n\t\t};\n\n\t\tfinal CloseableHttpClient httpclient = HttpClients.createDefault();\n\t\tfinal HttpGet httpGet = new HttpGet(verifyTwitterCredentialsUrl);\n\t\thttpGet.setHeaders(headers);\n\n\t\ttry (CloseableHttpResponse response = httpclient.execute(httpGet)) {\n\t\t\tif (response.getStatusLine().getStatusCode() == 200) {\n\t\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\t\tfinal TwitterVerifyCredentialsDto twitterResponseDto =\n\t\t\t\t\t\tmapper.readValue(response.getEntity().getContent(),\n\t\t\t\t\t\t\t\tTwitterVerifyCredentialsDto.class);\n\t\t\t\treturn twitterResponseDto;\n\t\t\t} else {\n\t\t\t\tlogger.warn(\"Credentials are not valid. Got status code: {}. Got content: {}\",\n\t\t\t\t\t\tresponse.getStatusLine().getStatusCode(),\n\t\t\t\t\t\tIOUtils.toString(response.getEntity().getContent(), \"UTF-8\"));\n\t\t\t\tthrow new UniversalRestException(\"Credentials are not valid\", HttpStatus.UNAUTHORIZED);\n\t\t\t}\n\t\t} catch (ClientProtocolException e) {\n\t\t\tlogger.error(\"Unable to create connection to uri: \" + verifyTwitterCredentialsUrl, e);\n\t\t\tthrow new UniversalRestException(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to map json to dto object\", e);\n\t\t\tthrow new UniversalRestException(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t}", "private void getSecret() {\n\t\tAWSSecretsManager client = AWSSecretsManagerClientBuilder.standard().withRegion(region).build();\n\n\t\t// In this sample we only handle the specific exceptions for the\n\t\t// 'GetSecretValue' API.\n\t\t// See\n\t\t// https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html\n\t\t// We rethrow the exception by default.\n\n\t\tGetSecretValueRequest getSecretValueRequest = new GetSecretValueRequest().withSecretId(secretName);\n\t\tGetSecretValueResult getSecretValueResult = null;\n\n\t\ttry {\n\t\t\tgetSecretValueResult = client.getSecretValue(getSecretValueRequest);\n\t\t}\n\t\t// @TODO: Figure out what I should do here. Generic exception?.\n\t\tcatch (DecryptionFailureException e) {\n\t\t\t// Secrets Manager can't decrypt the protected secret text using the provided\n\t\t\t// KMS key.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (InternalServiceErrorException e) {\n\t\t\t// An error occurred on the server side.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidParameterException e) {\n\t\t\t// You provided an invalid value for a parameter.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidRequestException e) {\n\t\t\t// You provided a parameter value that is not valid for the current state of the\n\t\t\t// resource.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (ResourceNotFoundException e) {\n\t\t\t// We can't find the resource that you asked for.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (getSecretValueResult.getSecretString() != null) {\n\t\t\ttry {\n\t\t\t\tresult = new ObjectMapper().readValue(getSecretValueResult.getSecretString(), HashMap.class);\n\t\t\t} catch (JsonMappingException e) {\n\t\t\t\tlogger.error(\"ERROR :\", e);\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\t// AWS defualt else, unsure why it is in the default. Need to check.\n\t\t//Maybe encryption not setup right?\n\t\telse {\n\t\t\tdecodedBinarySecret = new String(\n\t\t\t\t\tBase64.getDecoder().decode(getSecretValueResult.getSecretBinary()).array());\n\t\t}\n\t}", "public FederatedIdentityCredentialInner() {\n }", "@Override\n protected Organization handleObject(JSONObject input) {\n try {\n return OrganizationAPIDAO.createOrganization(input);\n } catch (JSONException e) {\n throw new OpenCivicDataRetrievalException(\n \"Can't hydrate Organization: \" + e.getMessage());\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Collection<Object> getVerifiableCredentials() {\n\t\tObject list = jsonObject.get(JSONLD_KEY_VERIFIABLE_CREDENTIAL);\n\t\tif (list != null) {\n\t\t\treturn Collections.unmodifiableCollection((Collection<Object>)list);\n\t\t}\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(\"{+HgP:|4P2;HQ~Jn\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expected a ':' after a key at character 16 of {+HgP:|4P2;HQ~Jn\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "private AuthenticationData() {\n\n }", "Object readCred(int paramInt) throws IOException, RealmException, KrbApErrException, Asn1Exception {\n/* 335 */ PrincipalName principalName1 = null;\n/* */ try {\n/* 337 */ principalName1 = readPrincipal(paramInt);\n/* 338 */ } catch (Exception exception) {}\n/* */ \n/* */ \n/* */ \n/* 342 */ if (DEBUG) {\n/* 343 */ System.out.println(\">>>DEBUG <CCacheInputStream> client principal is \" + principalName1);\n/* */ }\n/* 345 */ PrincipalName principalName2 = null;\n/* */ try {\n/* 347 */ principalName2 = readPrincipal(paramInt);\n/* 348 */ } catch (Exception exception) {}\n/* */ \n/* */ \n/* 351 */ if (DEBUG) {\n/* 352 */ System.out.println(\">>>DEBUG <CCacheInputStream> server principal is \" + principalName2);\n/* */ }\n/* 354 */ EncryptionKey encryptionKey = readKey(paramInt);\n/* 355 */ if (DEBUG) {\n/* 356 */ System.out.println(\">>>DEBUG <CCacheInputStream> key type: \" + encryptionKey.getEType());\n/* */ }\n/* 358 */ long[] arrayOfLong = readTimes();\n/* 359 */ KerberosTime kerberosTime1 = new KerberosTime(arrayOfLong[0]);\n/* 360 */ KerberosTime kerberosTime2 = (arrayOfLong[1] == 0L) ? null : new KerberosTime(arrayOfLong[1]);\n/* */ \n/* 362 */ KerberosTime kerberosTime3 = new KerberosTime(arrayOfLong[2]);\n/* 363 */ KerberosTime kerberosTime4 = (arrayOfLong[3] == 0L) ? null : new KerberosTime(arrayOfLong[3]);\n/* */ \n/* */ \n/* 366 */ if (DEBUG) {\n/* 367 */ System.out.println(\">>>DEBUG <CCacheInputStream> auth time: \" + kerberosTime1.toDate().toString());\n/* 368 */ System.out.println(\">>>DEBUG <CCacheInputStream> start time: \" + ((kerberosTime2 == null) ? \"null\" : kerberosTime2\n/* 369 */ .toDate().toString()));\n/* 370 */ System.out.println(\">>>DEBUG <CCacheInputStream> end time: \" + kerberosTime3.toDate().toString());\n/* 371 */ System.out.println(\">>>DEBUG <CCacheInputStream> renew_till time: \" + ((kerberosTime4 == null) ? \"null\" : kerberosTime4\n/* 372 */ .toDate().toString()));\n/* */ } \n/* 374 */ boolean bool = readskey();\n/* 375 */ boolean[] arrayOfBoolean = readFlags();\n/* 376 */ TicketFlags ticketFlags = new TicketFlags(arrayOfBoolean);\n/* 377 */ HostAddress[] arrayOfHostAddress = readAddr();\n/* 378 */ HostAddresses hostAddresses = null;\n/* 379 */ if (arrayOfHostAddress != null) {\n/* 380 */ hostAddresses = new HostAddresses(arrayOfHostAddress);\n/* */ }\n/* 382 */ AuthorizationDataEntry[] arrayOfAuthorizationDataEntry = readAuth();\n/* 383 */ AuthorizationData authorizationData = null;\n/* 384 */ if (arrayOfAuthorizationDataEntry != null) {\n/* 385 */ authorizationData = new AuthorizationData(arrayOfAuthorizationDataEntry);\n/* */ }\n/* 387 */ byte[] arrayOfByte1 = readData();\n/* 388 */ byte[] arrayOfByte2 = readData();\n/* */ \n/* */ \n/* 391 */ if (principalName1 == null || principalName2 == null) {\n/* 392 */ return null;\n/* */ }\n/* */ \n/* */ try {\n/* 396 */ if (principalName2.getRealmString().equals(\"X-CACHECONF:\")) {\n/* 397 */ String[] arrayOfString = principalName2.getNameStrings();\n/* 398 */ if (arrayOfString[0].equals(\"krb5_ccache_conf_data\")) {\n/* 399 */ return new CredentialsCache.ConfigEntry(arrayOfString[1], (arrayOfString.length > 2) ? new PrincipalName(arrayOfString[2]) : null, arrayOfByte1);\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 404 */ return new Credentials(principalName1, principalName2, encryptionKey, kerberosTime1, kerberosTime2, kerberosTime3, kerberosTime4, bool, ticketFlags, hostAddresses, authorizationData, (arrayOfByte1 != null) ? new Ticket(arrayOfByte1) : null, (arrayOfByte2 != null) ? new Ticket(arrayOfByte2) : null);\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 409 */ catch (Exception exception) {\n/* 410 */ if (DEBUG) {\n/* 411 */ exception.printStackTrace(System.out);\n/* */ }\n/* 413 */ return null;\n/* */ } \n/* */ }", "private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "java.lang.String getCred();", "public static void createUser(User user) {\n URL url = null;\n HttpURLConnection connection = null;\n final String methodPath = \"/entities.credential/\";\n try {\n Gson gson = new Gson();\n String stringUserJson = gson.toJson(user);\n url = new URL(BASE_URI + methodPath);\n // open connection\n connection = (HttpURLConnection) url.openConnection();\n // set time out\n connection.setReadTimeout(10000);\n connection.setConnectTimeout(15000);\n // set connection method to POST\n connection.setRequestMethod(\"POST\");\n // set the output to true\n connection.setDoOutput(true);\n // set length of the data you want to send\n connection.setFixedLengthStreamingMode(stringUserJson.getBytes().length);\n // add HTTP headers\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n // send the POST out\n PrintWriter out = new PrintWriter(connection.getOutputStream());\n out.print(stringUserJson);\n out.close();\n Log.i(\"error\", new Integer(connection.getResponseCode()).toString());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n connection.disconnect();\n }\n }" ]
[ "0.6018513", "0.5843365", "0.5617766", "0.56176686", "0.5540164", "0.5523254", "0.5473635", "0.52904004", "0.5224816", "0.52152103", "0.52103895", "0.5169865", "0.50958633", "0.508715", "0.5081863", "0.50616056", "0.5047323", "0.50401884", "0.5039568", "0.5032162", "0.5030493", "0.5016677", "0.49918458", "0.498618", "0.49839514", "0.4968367", "0.4957652", "0.49518454", "0.49452242", "0.49391612", "0.49338052", "0.4932277", "0.4929744", "0.4928952", "0.49280977", "0.49230543", "0.49018717", "0.49013075", "0.48971218", "0.489002", "0.489002", "0.489002", "0.4859512", "0.4853429", "0.48282912", "0.48248804", "0.48173386", "0.48026523", "0.48021", "0.4798765", "0.47917646", "0.47822383", "0.47784102", "0.4770025", "0.4767128", "0.47655913", "0.47507563", "0.47392362", "0.47366163", "0.47316882", "0.47207186", "0.4719703", "0.47172338", "0.47051015", "0.47034326", "0.46859536", "0.46852118", "0.46747157", "0.46733722", "0.46728742", "0.46705154", "0.46696267", "0.46669474", "0.4650461", "0.46465883", "0.4646091", "0.46375784", "0.46352232", "0.4631954", "0.4621246", "0.46167132", "0.4612074", "0.46034104", "0.46004367", "0.45905444", "0.4582976", "0.45820877", "0.45696142", "0.4567388", "0.45661405", "0.4548458", "0.45349845", "0.45198163", "0.4514738", "0.4513042", "0.4512107", "0.45095912", "0.45084256", "0.4506327", "0.4505124" ]
0.7627631
0
Go through the whole dance of creating a new credential and generating an assertion from the credential. Ensure that the signature is valid.
@Test public void makeCredentialAndGetAssertionWithAllowCredential() throws VirgilException, WebAuthnException, CborException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions); byte[] cborEncoded = attObj.asCBOR(); ByteArrayInputStream bais = new ByteArrayInputStream(cborEncoded); Map decoded = (Map) new CborDecoder(bais).decode().get(0); String fmt = ((UnicodeString) decoded.get(new UnicodeString("fmt"))).getString(); assertEquals(fmt, "none"); byte[] credentialId = attObj.getCredentialId(); // Now let's see if we can generate an assertion based on the returned credential ID AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON); //getAssertionOptions.allowCredentialDescriptorList.clear(); getAssertionOptions.allowCredentialDescriptorList.add(new PublicKeyCredentialDescriptor("public-key", credentialId, null)); AuthenticatorGetAssertionResult getAssertionResult = authenticator.getAssertion(getAssertionOptions, new CredentialSelector() { @Override public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) { return credentialList.get(0); } }); ByteBuffer resultBuf = ByteBuffer.allocate(getAssertionOptions.clientDataHash.length + getAssertionResult.authenticatorData.length); resultBuf.put(getAssertionResult.authenticatorData); resultBuf.put(getAssertionOptions.clientDataHash); byte[] signedData = resultBuf.array(); List<PublicKeyCredentialSource> sources = this.credentialSafe.getKeysForEntity(makeCredentialOptions.rpEntity.id); PublicKeyCredentialSource source = sources.get(sources.size() - 1); KeyPair keyPair = this.credentialSafe.getKeyPairByAlias(source.keyPairAlias); assertTrue(this.cryptography.verifySignature(keyPair.getPublic(), signedData, getAssertionResult.signature)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testFailureOnVerificationRequiredWithoutSupport() throws WebAuthnException, VirgilException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n makeCredentialOptions.requireUserVerification = true;\n makeCredentialOptions.requireUserPresence = false;\n\n try {\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n Assert.fail(\"makeCredential should have failed without biometric support\");\n } catch (ConstraintError e) {\n // success! any other exception is a failure\n }\n }", "@Test\n public void testExcludeCredentials() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject firstAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n\n // Now we want to pull out the ID of the just-created credential, add it to the exclude list,\n // and ensure that we see a failure when creating a second credential.\n\n makeCredentialOptions.excludeCredentialDescriptorList.add(new PublicKeyCredentialDescriptor(\"public-key\", firstAttestationObject.getCredentialId(), null));\n try {\n AttestationObject secondAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n Assert.fail(\"makeCredential should have failed due to a matching credential ID in the exclude list\");\n } catch (InvalidStateError e) {\n // good! the matching credential descriptor caused the authenticator to reject the request\n }\n }", "void createExposedOAuthCredential(IntegrationClientCredentialsDetailsModel integrationCCD);", "private String getSignedAssertion(String clientId, String tokenEndpoint, String mccmnc, String code, String clientKeyPairs, String keyPair) throws Exception {\n log.info(\"Entering getSignedAssertion: tokenEndpoint: {}\", tokenEndpoint);\n\n AssertionBody assertionBody = new AssertionBody();\n\n assertionBody.setAud(tokenEndpoint);\n assertionBody.setIss(clientId);\n assertionBody.setSub(clientId);\n // Create a version 4 UUID\n assertionBody.setJti(UUID.randomUUID().toString());\n // Casting to int truncates fractional portion of long if it exists\n int iat = (int)(new Date().getTime() / 1000);\n assertionBody.setIat(iat);\n int exp = iat + 30 * 60;\n assertionBody.setExp(exp);\n\n ObjectMapper mapper = new ObjectMapper();\n\n JSONObject parseKeyPairs = null;\n try {\n parseKeyPairs = JSONObjectUtils.parse(clientKeyPairs);\n } catch (ParseException ex) {\n String returnedMessage = String.format(\"JSONProcessingException: Error converting AssertionBody to JSON string: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n Object signingKey = parseKeyPairs.get(clientId);\n log.info(\"===> signingKey: \" + signingKey);\n\n String jwtKeyId = signingKey == null ? \"\" : signingKey.toString();\n\n JwtHeaderAssertion jwtHeaderAssertion = createJwtHeaderAssertion(jwtKeyId);\n\n String jwtHeaderAssertionJsonStrng = null;\n String assertionBodyJsonString = null;\n // Convert Java POJO JwtHeaderAssertion object to JSON string\n // Convert Java POJO AssertionBody object to JSON string\n try {\n jwtHeaderAssertionJsonStrng = mapper.writeValueAsString(jwtHeaderAssertion);\n assertionBodyJsonString = mapper.writeValueAsString(assertionBody);\n } catch (JsonProcessingException ex) {\n String returnedMessage = String.format(\"JSONProcessingException: Error converting AssertionBody to JSON string: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"JwtHeaderAssertion JSON string: {}\", jwtHeaderAssertionJsonStrng);\n log.info(\"AssertionBody JSON string: {}\", assertionBodyJsonString);\n\n String unsignedAssertion = createUnsignedJwt(jwtHeaderAssertionJsonStrng, assertionBodyJsonString);\n log.info(\"unsignedAssertion: {}\", unsignedAssertion);\n\n String signedAssertion = \"\";\n\n try {\n signedAssertion = createSignedRSAToken(unsignedAssertion, clientId, clientKeyPairs, keyPair);\n } catch (ParseException ex) {\n String returnedMessage = String.format(\"ParseException: Error signing unsigned assertion: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n } catch (JOSEException ex) {\n String returnedMessage = String.format(\"JOSEException: Error signing unsigned assertion: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"Leaving getSignedAssertion\");\n\n return signedAssertion;\n }", "@Test\n public void testAllowCredentialsEmpty() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n\n AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON);\n getAssertionOptions.allowCredentialDescriptorList.clear();\n authenticator.getAssertion(getAssertionOptions, new CredentialSelector() {\n @Override\n public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) {\n return credentialList.get(0);\n }\n });\n }", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "public String createCredential(Credential credential, String baseUrl, String endpoint) {\n this.goHomeAndGoToTab(baseUrl, endpoint);\n\n // Click on Add new Credential\n this.waitForElementToBeClickableAndClick(this.btnCredentialAdd);\n\n this.fillInForm(credential);\n\n return getPageTitleAndGoHome(baseUrl, endpoint);\n }", "GoogleAuthenticatorKey createCredentials();", "public void testInvalidAuthenticationCredentials() throws Exception {\n client = new PaysafeApiClient(\"username\", \"password\", Environment.TEST, merchantAccountNumber);\n\n try {\n SingleUseToken sObjResponse = client.customerVaultService().createSingleUseToken(\n SingleUseToken.builder()\n .card()\n .holderName(\"Mr. John Smith\")\n .cardNum(\"4917480000000008\")\n .cardExpiry()\n .month(7)\n .year(2019)\n .done()\n .billingAddress()\n .street(\"100 Queen Street West\")\n .street2(\"Unit 201\")\n .city(\"Toronto\")\n .country(\"CA\")\n .state(\"ON\")\n .zip(\"M5H 2N2\")\n .done()\n .done()\n .build());\n\n Assert.assertEquals(\"5279\", sObjResponse.getError().getCode());\n Assert.assertEquals(\"The authentication credentials are invalid.\",\n sObjResponse.getError().getMessage());\n\n } catch (IOException ioExp) {\n // Log IO Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + ioExp.getMessage());\n } catch (PaysafeException oExp) {\n // Log Paysafe Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + oExp.getMessage());\n } catch (Exception e) {\n // Log Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + e.getMessage());\n }\n }", "@Test\r\n public void testCreateTheirDid() throws CryptoException {\r\n CryptoService instance = new CryptoService();\r\n String did = \"8wZcEriaNLNKtteJvx7f8i\";\r\n String verkey = \"5L2HBnzbu6Auh2pkDRbFt5f4prvgE2LzknkuYLsKkacp\";\r\n TheirDidInfo info = new TheirDidInfo(did, verkey);\r\n TheirDid result = instance.createTheirDid(info);\r\n assertEquals(result.did, did);\r\n assertEquals(result.verkey, verkey);\r\n }", "AbstractCredentialModel createOAuthCredential(EmployeeModel employee);", "@Then (\"^SignIn with new credentials$\")\t\t\t\t\t\n public void SignIn_with_new_credentials() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.xpath(\"//*[@id='passwordNext']/content/span\")).click();\t\t\t\t\t\n }", "@BeforeAll\n\tpublic void setup() throws CredentialAlreadyExistsException {\n \t\tLocalDate now_ld = LocalDate.now();\n \t\tuser1 = new User(\"[email protected]\", \"FirstName1\", \"LastName1\", now_ld, null);\n \t\tuser2 = new User(\"[email protected]\", \"FirstName2\",\"LastName2\", now_ld, null);\n \t\t\n \t\t// Add credentials to the database to use for testing if they don't already exist.\n \t\tpassword1 = \"testuser11234\";\n \t\tpassword2 = \"testuser21234\";\n\t credentialUser = new Credential(\"testuser1\", password1, user1); \n\t credentialAdmin = new Credential(\"testuser2\", password2, user2);\n\t credentialAdmin.setUserRole(\"ROLE_ADMIN\");\n\t \n\t credentialUser = credentialService.add(credentialUser);\n\t credentialAdmin = credentialService.add(credentialAdmin); \n\t}", "@Test\n public void fromJson() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(options);\n }", "CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);", "@Test\n @Order(0)\n public void addCredential() throws InterruptedException {\n int initialCredentialsCount = home.getCredentialItems().size();\n\n home.openAddCredentialModal();\n Thread.sleep(500);\n\n home.setCredential(\"http://localhost:8080\", \"uche\", \"1234568\");\n\n moveToCredentialsTab();\n assertEquals(home.getCredentialItems().size(), initialCredentialsCount + 1);\n\n initialCredentialsCount = home.getCredentialItems().size();\n\n home.openAddCredentialModal();\n Thread.sleep(500);\n\n home.setCredential(\"http://localhost:8080\", \"praise\", \"1dsaAA2\");\n\n moveToCredentialsTab();\n assertEquals(home.getCredentialItems().size(), initialCredentialsCount + 1);\n\n home.logout();\n }", "public Builder credential(Credential newCredential) {\n credential = newCredential;\n return this;\n }", "GoogleAuthenticatorKey createCredentials(String userName);", "@Test\n @Order(1)\n public void editCredential() throws InterruptedException {\n // this user should currently have 2 credentials from the addCredential test\n List<WebElement> credentials = home.getCredentialItems();\n String url = \"udacity.com\";\n String username = \"me\";\n String password = \"just something strange\";\n\n int credentialPosition = new Random().nextInt(credentials.size() - 1);\n WebElement editCredentialButton = credentials.get(credentialPosition).findElement(By.id(\"editCredentialBtn\"));\n final String initialCredentialId = editCredentialButton.getAttribute(\"data-id\");\n editCredentialButton.click();\n Thread.sleep(500);\n\n home.setCredential(url, username, password);\n\n moveToCredentialsTab();\n\n boolean wasChanged =false;\n\n for (WebElement item : home.getCredentialItems()) {\n editCredentialButton = item.findElement(By.id(\"editCredentialBtn\"));\n wasChanged = initialCredentialId.equals(editCredentialButton.getAttribute(\"data-id\"))\n && url.equals(editCredentialButton.getAttribute(\"data-url\"))\n && username.equals(editCredentialButton.getAttribute(\"data-username\"))\n && password.equals(editCredentialButton.getAttribute(\"data-password\"));\n\n if(wasChanged) break;\n }\n\n assertTrue(wasChanged);\n\n home.logout();\n }", "protected boolean verifySignature(Signature signature, Credential credential) {\n SignatureValidator validator = new SignatureValidator(credential);\n try {\n validator.validate(signature);\n } catch (ValidationException e) {\n log.debug(\"Signature validation using candidate validation credential failed\", e);\n return false;\n }\n \n log.debug(\"Signature validation using candidate credential was successful\");\n return true;\n }", "@Test\n public void testNullRandom() {\n String sha = \"SHA-256\";\n String mgf = \"MGF1\";\n int saltLen = 32;\n int keySizeInBits = 2048;\n int samples = 8;\n Signature signer;\n PrivateKey priv;\n try {\n String algorithm = getAlgorithmName(sha, mgf);\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(keySizeInBits);\n KeyPair keypair = keyGen.genKeyPair();\n priv = keypair.getPrivate();\n signer = Signature.getInstance(algorithm);\n PSSParameterSpec params = getPssParameterSpec(sha, mgf, sha, saltLen, 1);\n signer.setParameter(params);\n } catch (GeneralSecurityException ex) {\n TestUtil.skipTest(\"RSA key generation is not supported.\" + ex);\n return;\n }\n Set<String> signatures = new HashSet<String>();\n byte[] messageBytes = new byte[8];\n for (int i = 0; i < samples; i++) {\n byte[] signature;\n try {\n signer.initSign(priv, null);\n signer.update(messageBytes);\n signature = signer.sign();\n } catch (GeneralSecurityException ex) {\n fail(\"Failed to sign. \" + ex);\n return;\n }\n String hex = TestUtil.bytesToHex(signature);\n assertTrue(\"Same signature computed twice\", signatures.add(hex));\n }\n }", "public static X500PrivateCredential createRootCredential() throws Exception {\n KeyPair rootPair = generateRSAKeyPair();\n X509Certificate rootCert = generateRootCert(rootPair);\n\n return new X500PrivateCredential(rootCert, rootPair.getPrivate(), ROOT_ALIAS);\n }", "@Test\n public void testValidSig() {\n\n // Creates 100 coins to Alice\n Transaction createCoinTx = new Transaction();\n createCoinTx.addOutput(100, kpAlice.getPublic());\n createCoinTx.finalize();\n // Output of createCoinTx is put in UTXO pool\n UTXOPool utxoPool = new UTXOPool();\n UTXO utxo = new UTXO(createCoinTx.getHash(), 0);\n utxoPool.addUTXO(utxo, createCoinTx.getOutput(0));\n TxHandler txHandler = new TxHandler(utxoPool);\n\n // Alice transfers 10 coins to Bob, 20 to Cal\n Transaction tx1 = new Transaction();\n tx1.addInput(createCoinTx.getHash(), 0);\n tx1.addOutput(10, kpBob.getPublic());\n tx1.addOutput(20, kpCal.getPublic());\n\n // Sign for tx1 with Bob's kp, which is incorrect\n byte[] sig1 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpBob.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig1 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(0).addSignature(sig1);\n tx1.finalize();\n\n assertFalse(txHandler.isValidTx(tx1));\n\n // Sign for tx1 with Alice's kp, which is now correct\n byte[] sig2 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig2 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(0).addSignature(sig2);\n tx1.finalize();\n\n assertTrue(txHandler.isValidTx(tx1));\n }", "private String createSignedRSAToken(String jwtToken, String clientId, String clientKeyPairs, String keyPair) throws ParseException, JOSEException {\n log.info(\"Entering createSignedRSAToken\");\n log.info(\"clientKeyPairs: {}\", clientKeyPairs);\n\n Object signingKey;\n\n // To not affect current functionality, if no clientId parameter is passed,\n // sign with the default playground's \"testing_key\"\n JSONObject parseKeyPairs = JSONObjectUtils.parse(clientKeyPairs);\n log.info(\"Parsed clientKeyPairs\");\n\n if (clientId.equals(\"none\")) {\n signingKey = parseKeyPairs.get(\"default\");\n } else {\n signingKey = parseKeyPairs.get(clientId);\n if (signingKey == null) {\n throw new OauthException(\"Client ID to private key mapping not found\", HttpStatus.BAD_REQUEST);\n }\n }\n log.info(\"signingKey: {}\", signingKey);\n\n String[] splitString = jwtToken.split(\"\\\\.\");\n\n log.info(\"Size of splitString: {}\", splitString.length);\n\n log.info(\"~~~~~~~~~ JWT Header ~~~~~~~\");\n String base64EncodedHeader = splitString[0];\n JWSHeader head = JWSHeader.parse(new Base64URL(base64EncodedHeader));\n\n\n log.info(\"~~~~~~~~~ JWT Body ~~~~~~~\");\n String base64EncodedBody = splitString[1];\n Payload payload = new Payload(new Base64URL(base64EncodedBody));\n\n // RSA signatures require a public and private RSA key pair,\n // the public key must be made known to the JWS recipient to\n // allow the signatures to be verified\n\n log.info(\"keyPair: {}\", keyPair);\n\n net.minidev.json.JSONObject parsedRsa = JSONObjectUtils.parse(keyPair);\n\n Object getSigningKey = parsedRsa.get(signingKey);\n String signingKeyToString = String.valueOf(getSigningKey);\n\n RSAKey rsaJWK = RSAKey.parse(signingKeyToString);\n RSAPrivateKey prK = (RSAPrivateKey) rsaJWK.toPrivateKey();\n RSAPublicKey puK = (RSAPublicKey) rsaJWK.toPublicKey();\n\n byte[] privateKeyEnc = prK.getEncoded();\n byte[] privateKeyPem = java.util.Base64.getEncoder().encode(privateKeyEnc);\n String privateKeyPemStr = new String(privateKeyPem);\n\n // Create RSA-signer with the private key\n JWSSigner signer = new RSASSASigner(rsaJWK);\n\n // Prepare JWS object with simple string as payload\n JWSObject jwsObject = new JWSObject(head, payload);\n\n // Compute the RSA signature\n jwsObject.sign(signer);\n\n // To serialize to compact form, produces something like\n String s = jwsObject.serialize();\n log.info(\"Signed RSA Token:\");\n log.info(s);\n\n // To parse the JWS and verify it, e.g. on client-side\n jwsObject = JWSObject.parse(s);\n\n JWSVerifier verifier = new RSASSAVerifier(puK);\n\n log.info(\"Verify: {}\", jwsObject.verify(verifier));\n\n log.info(\"In RSA we trust! --> {}\", jwsObject.getPayload().toString());\n return s;\n }", "@Test\n public void testRandomization() {\n String sha = \"SHA-256\";\n String mgf = \"MGF1\";\n int saltLen = 32;\n int keySizeInBits = 2048;\n int samples = 8;\n Set<String> signatures = new HashSet<String>();\n Signature signer;\n PrivateKey priv;\n try {\n String algorithm = getAlgorithmName(sha, mgf);\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(keySizeInBits);\n KeyPair keypair = keyGen.genKeyPair();\n priv = keypair.getPrivate();\n signer = Signature.getInstance(algorithm);\n PSSParameterSpec params = getPssParameterSpec(sha, mgf, sha, saltLen, 1);\n signer.setParameter(params);\n byte[] messageBytes = new byte[8];\n for (int i = 0; i < samples; i++) {\n signer.initSign(priv);\n signer.update(messageBytes);\n byte[] signature = signer.sign();\n String hex = TestUtil.bytesToHex(signature);\n assertTrue(\"Same signature computed twice\", signatures.add(hex));\n }\n } catch (GeneralSecurityException ex) {\n TestUtil.skipTest(\"Failed to generat signatures:\" + ex);\n return;\n }\n }", "private static String signFirstTime() throws AddressFormatException\n {\n ECKey key1 = ECKey.fromPrivate(new BigInteger(\"64102401986961187973900162212679081334328198710146539384491794427145725009072\"));\n\n\n // Use the redeem script we have saved somewhere to start building the transaction\n Script redeemScript = new Script(hexStringToByteArray(\"5221021ae8964b8529dc3e52955f2cabd967e08c52008dbcca8e054143b668f3998f4a210306be609ef37366ab0f3dd4096ac23a6ee4d561fc469fa60003f799b0121ad1072102199f3d89fa00e6f55dd6ecdd911457d7264415914957db124d53bf0064963f3853ae\"));\n\n // Start building the transaction by adding the unspent inputs we want to use\n // The data is taken from blockchain.info, and can be found here: https://blockchain.info/rawtx/ca1884b8f2e0ba88249a86ec5ddca04f937f12d4fac299af41a9b51643302077\n Transaction spendTx = new Transaction(params);\n ScriptBuilder scriptBuilder = new ScriptBuilder();\n scriptBuilder.data(new String(\"a9145204ad7c5fa5a2491cd91c332e28c87221194ca087\").getBytes()); // Script of this output\n TransactionInput input = spendTx.addInput(new Sha256Hash(\"fed695bf5e2c15286956a7bd3464c5beb97ef064e1f9406eba189ea844733e7c\"), 1, scriptBuilder.build());\n\n // Add outputs to the person receiving bitcoins\n Address receiverAddress = new Address(params, \"n2cWhs5sbWFCwzuuWWsVM9ubPwykGtX75T\");\n Coin charge = Coin.valueOf(1000000); // 0.1 mBTC\n Script outputScript = ScriptBuilder.createOutputScript(receiverAddress);\n spendTx.addOutput(charge, outputScript);\n\n /*8888888888888888888888888888888888888888888888888888888888888*/\n\n // Sign the first part of the transaction using private key #1\n Sha256Hash sighash = spendTx.hashForSignature(0, redeemScript, Transaction.SigHash.ALL, false);\n ECKey.ECDSASignature ecdsaSignature = key1.sign(sighash);\n TransactionSignature transactionSignarture = new TransactionSignature(ecdsaSignature, Transaction.SigHash.ALL, false);\n\n // Create p2sh multisig input script\n Script inputScript = ScriptBuilder.createP2SHMultiSigInputScript(Arrays.asList(transactionSignarture), redeemScript);\n\n // Add the script signature to the input\n input.setScriptSig(inputScript);\n System.out.println(byteArrayToHex(spendTx.bitcoinSerialize()));\n\n return byteArrayToHex(spendTx.bitcoinSerialize());\n }", "@Test\r\n public void testCreateTheirDidAbbreviated() throws CryptoException {\r\n CryptoService instance = new CryptoService();\r\n String did = \"8wZcEriaNLNKtteJvx7f8i\";\r\n String verkey = \"~NcYxiDXkpYi6ov5FcYDi1e\";\r\n TheirDidInfo info = new TheirDidInfo(did, verkey);\r\n TheirDid result = instance.createTheirDid(info);\r\n assertEquals(result.did, did);\r\n assertEquals(result.verkey, \"5L2HBnzbu6Auh2pkDRbFt5f4prvgE2LzknkuYLsKkacp\");\r\n }", "AbstractCredentialModel createBasicCredential(String username, String password);", "@Test\n public void testInvalidCredential(final TestContext aContext) {\n final Async asyncTask = aContext.async();\n final JsonObject newConfigs = myConfigs;\n\n newConfigs.put(IIIF_USERNAME, \"username\");\n newConfigs.put(IIIF_PASSWORD, \"password\");\n\n deployNewVerticle(newConfigs).onFailure(failure -> {\n TestUtils.complete(asyncTask);\n }).onSuccess(success -> {\n aContext.fail();\n });\n }", "@When(\"^I fill in valid Email address and click on create an account$\")\n\tpublic void I_fill_in_valid_Email_address_and_click_on_create_an_account() throws Throwable {\n\n\t\trandomNumber r = new randomNumber();\n\t\tString emailString = \"Example\" + r.gen();\n\t\tString emailAddress = emailString + \"@gmail.com\";\n\t\tdriver.findElement(By.id(\"email_create\")).sendKeys(emailAddress);\n\t\tdriver.findElement(By.id(\"SubmitCreate\")).submit();\n\t}", "@Test\n\tpublic void testAssertSignedAuthnResponseProcessing() throws Exception {\n\t\tthis.initStorageWithAuthnRequest();\n\t\tthis.testAuthnResponseProcessingScenario1(this.responseAssertSigned);\n\t}", "SignatureIdentification createSignatureIdentification();", "@Test\n public void SameTokenNameCloseAccountIsNotCreator() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"abc\";\n long firstTokenQuant = 200000000L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 400000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_SECOND);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n accountCapsule.addAssetAmount(firstTokenId.getBytes(), firstTokenQuant);\n accountCapsule.addAssetAmount(secondTokenId.getBytes(), secondTokenQuant);\n accountCapsule.setBalance(10000_000000L);\n dbManager.getAccountStore().put(ownerAddress, accountCapsule);\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_SECOND, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"account[a0548794500882809695a8a687866e76d4271a1abc]\"\n + \" is not creator\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "@Test\n public void SameTokenNameOpenAccountIsNotCreator() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"123\";\n long firstTokenQuant = 200000000L;\n String secondTokenId = \"456\";\n long secondTokenQuant = 400000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_SECOND);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n accountCapsule.addAssetAmountV2(firstTokenId.getBytes(), firstTokenQuant, dbManager);\n accountCapsule.addAssetAmountV2(secondTokenId.getBytes(), secondTokenQuant, dbManager);\n accountCapsule.setBalance(10000_000000L);\n dbManager.getAccountStore().put(ownerAddress, accountCapsule);\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_SECOND, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"account[a0548794500882809695a8a687866e76d4271a1abc]\"\n + \" is not creator\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "public void getCredentials() throws IOException, GeneralSecurityException {\n\n KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance(keyAlg);\n keyGenerator.initialize(keySize);\n keypair = keyGenerator.genKeyPair();\n Security.addProvider(new BouncyCastleProvider());\n \n PKCS10CertificationRequest pkcs10 = null;\n try{\n \tpkcs10 = generateCertificationRequest(DN, keypair);\n }\n catch(Exception ex){\n \tthrow new GeneralSecurityException(ex);\n }\n getCredentials(pkcs10.getEncoded());\n }", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public ProfileTokenCredential() {\n super();\n new Random().nextBytes(addr_);\n new Random().nextBytes(mask_);\n }", "CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);", "public static byte[] SignWithPrivateKey(byte[] buf,PrivateKey pkey) throws Exception{\r\n\t\tSecureRandom secureRandom = new SecureRandom();\r\n\t\tSignature signature = Signature.getInstance(\"SHA1WithECDSA\");\r\n\t\tsignature.initSign(pkey,secureRandom);\r\n\t\tsignature.update(buf);\r\n\t\tbyte[] digitalSignature = signature.sign();\r\n\t\treturn digitalSignature;\r\n\t\t\r\n\t}", "private void assertTicketValidation(TicketValidatedAssertModel<IamPrincipalInfo> assertion) throws TicketValidateException {\r\n\t\tif (isNull(assertion)) {\r\n\t\t\tthrow new TicketValidateException(\"ticket assertion must not be null\");\r\n\t\t}\r\n\t\tIamPrincipalInfo info = assertion.getPrincipalInfo();\r\n\t\tif (isNull(info)) {\r\n\t\t\tthrow new TicketValidateException(\"Principal info must not be null\");\r\n\t\t}\r\n\t\tif (isNull(info.getStoredCredentials())) {\r\n\t\t\tthrow new TicketValidateException(\"grant ticket must not be null\");\r\n\t\t}\r\n\t\tif (isNull(info.getAttributes()) || info.getAttributes().isEmpty()) {\r\n\t\t\tthrow new TicketValidateException(\"'principal.attributes' must not be empty\");\r\n\t\t}\r\n\t\tif (isBlank((String) info.getRoles())) {\r\n\t\t\tlog.warn(\"Principal '{}' role is empty\", info.getPrincipal());\r\n\t\t\t// throw new TicketValidationException(String.format(\"Principal '%s'\r\n\t\t\t// roles must not empty\", principal.getName()));\r\n\t\t}\r\n\t\tif (isBlank((String) info.getPermissions())) {\r\n\t\t\tlog.warn(\"Principal '{}' permits is empty\", info.getPrincipal());\r\n\t\t\t// throw new TicketValidationException(String.format(\"Principal '%s'\r\n\t\t\t// permits must not empty\", principal.getName()));\r\n\t\t}\r\n\t\tif (isNull(info.getOrganization())) {\r\n\t\t\tlog.warn(\"Principal '{}' organization is empty\", info.getPrincipal());\r\n\t\t\t// throw new TicketValidationException(String.format(\"Principal '%s'\r\n\t\t\t// organization must not empty\", principal.getName()));\r\n\t\t}\r\n\t}", "@Test\n\tpublic void validateSignatureBlock()\n\t{\n\t\tDBSet databaseSet = DBSet.createEmptyDatabaseSet();\n\t\t\t\t\n\t\t//PROCESS GENESISBLOCK\n\t\tGenesisBlock genesisBlock = new GenesisBlock();\n\t\tgenesisBlock.process(databaseSet);\n\t\t\t\t\n\t\t//CREATE KNOWN ACCOUNT\n\t\tbyte[] seed = Crypto.getInstance().digest(\"test\".getBytes());\n\t\tbyte[] privateKey = Crypto.getInstance().createKeyPair(seed).getA();\n\t\tPrivateKeyAccount generator = new PrivateKeyAccount(privateKey);\n\t\t\t\t\t\t\n\t\t//PROCESS GENESIS TRANSACTION TO MAKE SURE GENERATOR HAS FUNDS\n\t\tTransaction transaction = new GenesisTransaction(generator, BigDecimal.valueOf(1000).setScale(8), NTP.getTime());\n\t\ttransaction.process(databaseSet);\n\t\t\t\t\n\t\t//GENERATE NEXT BLOCK\n\t\tBlockGenerator blockGenerator = new BlockGenerator();\n\t\tBlock newBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\n\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\tbyte[] transactionsSignature = Crypto.getInstance().sign(generator, newBlock.getGeneratorSignature());\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK IF SIGNATURE VALID\n\t\tassertEquals(true, newBlock.isSignatureValid());\n\t\t\n\t\t//INVALID TRANSACTION SIGNATURE\n\t\ttransactionsSignature = new byte[64];\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK IF SIGNATURE INVALID\n\t\tassertEquals(false, newBlock.isSignatureValid());\n\t\t\n\t\t//INVALID GENERATOR SIGNATURE\n\t\tnewBlock = BlockFactory.getInstance().create(newBlock.getVersion(), newBlock.getReference(), newBlock.getTimestamp(), newBlock.getGeneratingBalance(), generator, new byte[32]);\n\t\ttransactionsSignature = Crypto.getInstance().sign(generator, newBlock.getGeneratorSignature());\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t///CHECK IF SIGNATURE INVALID\n\t\tassertEquals(false, newBlock.isSignatureValid());\n\t\t\n\t\t//VALID TRANSACTION SIGNATURE\n\t\tnewBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\t\n\t\t\n\t\t//ADD TRANSACTION\n\t\tAccount recipient = new Account(\"XUi2oga2pnGNcZ9es6pBqxydtRZKWdkL2g\");\n\t\tlong timestamp = newBlock.getTimestamp();\n\t\tbyte[] signature = PaymentTransaction.generateSignature(databaseSet, generator, recipient, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp);\n\t\tTransaction payment = new PaymentTransaction(generator, recipient, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp, generator.getLastReference(databaseSet), signature);\n\t\tnewBlock.addTransaction(payment);\n\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\ttransactionsSignature = blockGenerator.calculateTransactionsSignature(newBlock, generator);\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK VALID TRANSACTION SIGNATURE\n\t\tassertEquals(true, newBlock.isSignatureValid());\t\n\t\t\n\t\t//INVALID TRANSACTION SIGNATURE\n\t\tnewBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\t\n\t\t\n\t\t//ADD TRANSACTION\n\t\tpayment = new PaymentTransaction(generator, recipient, BigDecimal.valueOf(200).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp, generator.getLastReference(databaseSet), signature);\n\t\tnewBlock.addTransaction(payment);\n\t\t\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\ttransactionsSignature = blockGenerator.calculateTransactionsSignature(newBlock, generator);\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK INVALID TRANSACTION SIGNATURE\n\t\tassertEquals(false, newBlock.isSignatureValid());\t\n\t}", "@Test\n public void testCreateStudentAccount() {\n // For this test, we also need the Access Client\n //final AccessClient accessClient = new AccessClient();\n\n // Create the new User Request Object\n final String username = \"[email protected]\";\n final String password = \"myPassword\";\n final CreateUserRequest createUserRequest = new CreateUserRequest(username, password, \"Student\", \"Graduate\");\n createUserRequest.setStudentAccount(true);\n\n final Students students = new StudentClient();\n final FetchStudentsRequest fetchStudentsRequest = new FetchStudentsRequest();\n final FetchStudentsResponse beforeStudentsResponse = students.fetchStudents(token, fetchStudentsRequest);\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n assertThat(spy.size(), is(0));\n\n //TODO Pavel 2014-04-15: students are not supposed to receive activation email now so the following test should not work\n // since no notification is generated. Once the emails are sent, following lines have to be uncommented\n// assertThat(spy.size(), is(1));\n// final String activationCode = spy.getNext().getFields().get(NotificationField.CODE);\n// assertThat(activationCode, is(not(nullValue())));\n\n // Attempt to login using the new User Account. It should not yet work,\n // since the account is not activated\n// final AuthenticationRequest request = new AuthenticationRequest(username, password);\n// final AuthenticationResponse response1 = accessClient.generateSession(request);\n// assertThat(response1.isOk(), is(false));\n// assertThat(response1.getError(), is(IWSErrors.AUTHENTICATION_ERROR));\n\n // Verify that the Students exists\n final FetchStudentsResponse afterFetchStudentsResponse = students.fetchStudents(token, fetchStudentsRequest);\n assertThat(afterFetchStudentsResponse.isOk(), is(true));\n assertThat(afterFetchStudentsResponse.getStudents().size(), is(beforeStudentsResponse.getStudents().size() + 1));\n\n // Activate the Account\n// final Fallible acticationResult = administration.activateUser(activationCode);\n// assertThat(acticationResult.isOk(), is(true));\n\n // Now, attempt to login again\n// final AuthenticationResponse response2 = accessClient.generateSession(request);\n// assertThat(response2.isOk(), is(true));\n// assertThat(response2.getToken(), is(not(nullValue())));\n\n //// Now, read the Permissions that the student has, basically, there is\n //// only 1 permission - which is applying for Open Offers\n //final FetchPermissionResponse permissionResponse = accessClient.fetchPermissions(response2.getToken());\n //assertThat(permissionResponse.isOk(), is(true));\n //// The following fails, since the order of the UserGroup Object in the\n //// Authorization Object is undefined, for this reason, the code is\n //// commented out\n //assertThat(permissionResponse.getAuthorizations().get(0).getUserGroup().getRole().getPermissions().contains(Permission.APPLY_FOR_OPEN_OFFER), is(true));\n\n // Deprecate the Students Session, the test is over :-)\n// final Fallible deprecateSessionResult = accessClient.deprecateSession(response2.getToken());\n// assertThat(deprecateSessionResult.isOk(), is(true));\n }", "public void setCredential(final Object credential)\n {\n checkImmutable();\n this.credential = credential;\n }", "@Test\n\t@Order(5)\n\tpublic void credentialsTest() {\n\t\tString url = \"http://twitter.com/\";\n\t\tString username = \"meepz\";\n\t\tString password = \"spooki520boi\";\n\t\t// credentials to be updated\n\t\tString newUrl = \"clubpenguin.com\";\n\t\tString newUsername = \"fightrOfDaNightMan\";\n\t\tString newPassword = \"milkSteak\";\n\t\t// signup\n\t\tdriver.get(baseUrl + \"/signup\");\n\t\tSignupPage signupPage = new SignupPage(driver);\n\t\tsignupPage.signup(firstName, lastName, username, password);\n\t\t// get login page, init login page, login\n\t driver.get(baseUrl + \"/login\");\n\t\tLoginPage loginPage = new LoginPage(driver);\n\t\tloginPage.login(username, password);\n\n\t\tdriver.get(baseUrl + \"/home\");\n // init home page, insert new credentials\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.addCredential(false, url, username, password);\n\t\t// init result page and click link back to home page\n\t\t// driver is automatically taken to result page after adding\n\t\t// credentials, etc. so no need to use driver.get(result)\n\t\t// just feed driver into the result page\n\t\tResultPage resultPage = new ResultPage(driver);\n\t\tresultPage.clickHomeAnchor();\n\n\t\t// After returning to home page, click credential tab\n\t\t// and grab text from first credential\n\t\tCredential firstCredential = homePage.getFirstCredential();\n\n\t\t// check that hidden td's password is encrypted\n Assertions.assertNotEquals(password, homePage.getPasswordEnc());\n // check that url and username both match what was entered\n Assertions.assertEquals(url, firstCredential.getUrl());\n\t\tAssertions.assertEquals(username, firstCredential.getUsername());\n\n\t\t// check that entered password and retrieved (what should be dots) don't match\n\t\tAssertions.assertNotEquals(password, firstCredential.getPassword());\n\n\t\t// after clicking show button retrieve credentials again\n\t\thomePage.clickShowPassword();\n\t\tCredential credPasswordRevealed = homePage.getFirstCredential();\n\t\t// password that is now showing on page should match entered\n\t\tAssertions.assertNotEquals(password, firstCredential.getPassword());\n\n\t\t// clicking show password again will hide it\n\t\t// check that it is hidden\n\t\thomePage.clickShowPassword();\n\t\tCredential hiddenCredential = homePage.getFirstCredential();\n\t\tAssertions.assertNotEquals(password, hiddenCredential.getPassword());\n\n\t\thomePage.addCredential(true, newUrl, newUsername, newPassword);\n\t\tresultPage.clickHomeAnchor();\n\n\t\tCredential updatedCredential = homePage.getFirstCredential();\n\t\t// check to see that hidden password's text does not match entered password\n\t\tAssertions.assertNotEquals(password, homePage.getPasswordEnc());\n\t\tAssertions.assertNotEquals(updatedCredential.getPassword(), homePage.getPasswordEnc());\n\t\tAssertions.assertEquals(newUrl, updatedCredential.getUrl());\n\t\tAssertions.assertEquals(newUsername, updatedCredential.getUsername());\n\t\tAssertions.assertNotEquals(newPassword, updatedCredential.getPassword());\n\t\tAssertions.assertEquals(newPassword, homePage.getPasswordDecrypted());\n\n\t\thomePage.deleteCredential();\n\t\tresultPage.clickHomeAnchor();\n\n Assertions.assertThrows(NoSuchElementException.class, () -> homePage.getFirstCredential());\n\t}", "@Test\n public void createRequested() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n\n /*\n * When\n */\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n /*\n * Then\n */\n assertThat(grant.getRequestResponse())\n .as(\"There shouldn't be a response for the grant.\")\n .isNotPresent();\n\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant)\n .as(\"Since the request is not approved, the grant is not active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isTrue();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isFalse();\n });\n }", "@Test\n public void holdTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String firstPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //init and authorize second payment, but there is 700 cents of 1000 withhold - ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String secondPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n\n //confirm first payment - OK\n\n paymentDto = confirmPayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n\n //confirm second payment, which was filed on authorization - still got ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = confirmPayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n }", "@Override\n public ExternalCredentialsResponse getCredentials(Principal principal, DomainDetails domainDetails, String idToken, ExternalCredentialsRequest externalCredentialsRequest)\n throws ResourceException {\n\n // first make sure that our required components are available and configured\n\n if (authorizer == null) {\n throw new ResourceException(ResourceException.FORBIDDEN, \"ZTS authorizer not configured\");\n }\n\n Map<String, String> attributes = externalCredentialsRequest.getAttributes();\n final String gcpServiceAccount = getRequestAttribute(attributes, GCP_SERVICE_ACCOUNT, null);\n if (StringUtil.isEmpty(gcpServiceAccount)) {\n throw new ResourceException(ResourceException.BAD_REQUEST, \"missing gcp service account\");\n }\n\n // verify that the given principal is authorized for all scopes requested\n\n final String gcpTokenScope = getRequestAttribute(attributes, GCP_TOKEN_SCOPE, GCP_DEFAULT_TOKEN_SCOPE);\n String[] gcpTokenScopeList = gcpTokenScope.split(\" \");\n for (String scopeItem : gcpTokenScopeList) {\n final String resource = domainDetails.getName() + \":\" + scopeItem;\n if (!authorizer.access(GCP_SCOPE_ACTION, resource, principal, null)) {\n throw new ResourceException(ResourceException.FORBIDDEN, \"Principal not authorized for configured scope\");\n }\n }\n\n try {\n // first we're going to get our exchange token\n\n GcpExchangeTokenResponse exchangeTokenResponse = getExchangeToken(domainDetails, idToken, externalCredentialsRequest);\n\n final String serviceUrl = String.format(\"https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s@%s.iam.gserviceaccount.com:generateAccessToken\",\n gcpServiceAccount, domainDetails.getGcpProjectId());\n final String authorizationHeader = exchangeTokenResponse.getTokenType() + \" \" + exchangeTokenResponse.getAccessToken();\n\n GcpAccessTokenRequest accessTokenRequest = new GcpAccessTokenRequest();\n accessTokenRequest.setScopeList(gcpTokenScope);\n int expiryTime = externalCredentialsRequest.getExpiryTime() == null ? 3600 : externalCredentialsRequest.getExpiryTime();\n accessTokenRequest.setLifetimeSeconds(expiryTime);\n\n HttpPost httpPost = new HttpPost(serviceUrl);\n httpPost.addHeader(HttpHeaders.AUTHORIZATION, authorizationHeader);\n httpPost.setEntity(new StringEntity(jsonMapper.writeValueAsString(accessTokenRequest), ContentType.APPLICATION_JSON));\n\n final HttpDriverResponse httpResponse = httpDriver.doPostHttpResponse(httpPost);\n if (httpResponse.getStatusCode() != HttpStatus.SC_OK) {\n GcpAccessTokenError error = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenError.class);\n throw new ResourceException(httpResponse.getStatusCode(), error.getErrorMessage());\n }\n\n GcpAccessTokenResponse gcpAccessTokenResponse = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenResponse.class);\n\n ExternalCredentialsResponse externalCredentialsResponse = new ExternalCredentialsResponse();\n attributes = new HashMap<>();\n attributes.put(GCP_ACCESS_TOKEN, gcpAccessTokenResponse.getAccessToken());\n externalCredentialsResponse.setAttributes(attributes);\n externalCredentialsResponse.setExpiration(Timestamp.fromString(gcpAccessTokenResponse.getExpireTime()));\n return externalCredentialsResponse;\n\n } catch (Exception ex) {\n throw new ResourceException(ResourceException.FORBIDDEN, ex.getMessage());\n }\n }", "public void testDoubleX509SignatureThumb() throws Exception {\n WSSecSignature builder = new WSSecSignature();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n // builder.setUserInfo(\"john\", \"keypass\");\n builder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER); \n Document doc = unsignedEnvelope.getAsDocument();\n \n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc);\n\n Document signedDoc = builder.build(doc, crypto, secHeader);\n Document signedDoc1 = builder.build(signedDoc, crypto, secHeader);\n verify(signedDoc1);\n }", "@Test\n public void authRequestByPassword() throws Exception {\n String testName = getTestName();\n \n String externalPassword = \"test456\";\n String extAcctLocalPart = testName;\n String extAcctName = createExternalAcctEntry(extAcctLocalPart, externalPassword, null);\n \n Map<String, Object> zmailDomainAttrs = commonZmailDomainAttrs();\n // setup auto prov\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(uid=%u)\");\n // setup external LDAP auth\n zmailDomainAttrs.put(Provisioning.A_zmailAuthMech, AuthMech.ldap.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapURL, \"ldap://localhost:389\");\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapBindDn, \"uid=%u,ou=people,\" + extDomainDn);\n Domain zmailDomain = createZmailDomain(testName, zmailDomainAttrs);\n \n String loginName = extAcctLocalPart + \"@\" + zmailDomain.getName();\n \n // make the soap request\n SoapHttpTransport transport = new SoapHttpTransport(TestUtil.getSoapUrl());\n \n Element request = Element.create(transport.getRequestProtocol(), AccountConstants.AUTH_REQUEST);\n request.addElement(AccountConstants.E_ACCOUNT).addAttribute(AccountConstants.A_BY, AccountBy.name.name()).setText(loginName);\n request.addElement(AccountConstants.E_PASSWORD).setText(externalPassword);\n \n Element response = transport.invoke(request);\n \n String encodedAuthToken = response.getElement(AccountConstants.E_AUTH_TOKEN).getText();\n assertNotNull(encodedAuthToken);\n String acctId = getAuthTokenAcctId(encodedAuthToken);\n Account acct = prov.get(AccountBy.id, acctId);\n verifyAcctAutoProvisioned(acct, loginName.toLowerCase());\n }", "@org.junit.Test(timeout = 10000)\n public void testRequiresAuthentication_cf62984_cf65170_failAssert35() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_42_1 = 16401;\n // MethodAssertGenerator build local variable\n Object o_28_1 = 3;\n com.twilio.http.Request request = new com.twilio.http.Request(com.twilio.http.HttpMethod.DELETE, \"/uri\");\n // MethodAssertGenerator build local variable\n Object o_3_0 = request.requiresAuthentication();\n request.setAuth(\"username\", \"password\");\n // AssertGenerator add assertion\n java.util.HashMap map_494889131 = new java.util.HashMap<Object, Object>();\torg.junit.Assert.assertEquals(map_494889131, ((com.twilio.http.Request)request).getQueryParams());;\n // MethodAssertGenerator build local variable\n Object o_8_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isEnum();\n // MethodAssertGenerator build local variable\n Object o_10_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getEnclosingMethod();\n // MethodAssertGenerator build local variable\n Object o_12_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).toGenericString();\n // MethodAssertGenerator build local variable\n Object o_14_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isInterface();\n // MethodAssertGenerator build local variable\n Object o_16_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getTypeName();\n // MethodAssertGenerator build local variable\n Object o_18_0 = ((com.twilio.http.Request)request).requiresAuthentication();\n // MethodAssertGenerator build local variable\n Object o_20_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isLocalClass();\n // MethodAssertGenerator build local variable\n Object o_22_0 = ((com.twilio.http.Request)request).getUrl();\n // MethodAssertGenerator build local variable\n Object o_24_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isArray();\n // MethodAssertGenerator build local variable\n Object o_26_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getCanonicalName();\n // MethodAssertGenerator build local variable\n Object o_28_0 = ((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).ordinal();\n // MethodAssertGenerator build local variable\n Object o_30_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getSimpleName();\n // MethodAssertGenerator build local variable\n Object o_32_0 = ((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).name();\n // MethodAssertGenerator build local variable\n Object o_34_0 = ((com.twilio.http.Request)request).getPassword();\n // MethodAssertGenerator build local variable\n Object o_36_0 = ((com.twilio.http.Request)request).encodeFormBody();\n // MethodAssertGenerator build local variable\n Object o_38_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getSigners();\n // MethodAssertGenerator build local variable\n Object o_40_0 = ((com.twilio.http.Request)request).encodeQueryParams();\n // MethodAssertGenerator build local variable\n Object o_42_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getModifiers();\n // MethodAssertGenerator build local variable\n Object o_44_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getComponentType();\n // MethodAssertGenerator build local variable\n Object o_46_0 = ((com.twilio.http.Request)request).getUsername();\n // MethodAssertGenerator build local variable\n Object o_48_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getName();\n // MethodAssertGenerator build local variable\n Object o_50_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isAnnotation();\n // MethodAssertGenerator build local variable\n Object o_52_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isPrimitive();\n // MethodAssertGenerator build local variable\n Object o_54_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getEnclosingClass();\n // MethodAssertGenerator build local variable\n Object o_56_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getDeclaringClass();\n // MethodAssertGenerator build local variable\n Object o_58_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).desiredAssertionStatus();\n // AssertGenerator add assertion\n java.util.HashMap map_862388393 = new java.util.HashMap<Object, Object>();\torg.junit.Assert.assertEquals(map_862388393, ((com.twilio.http.Request)request).getPostParams());;\n // MethodAssertGenerator build local variable\n Object o_62_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isMemberClass();\n // MethodAssertGenerator build local variable\n Object o_64_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).getEnclosingConstructor();\n // MethodAssertGenerator build local variable\n Object o_66_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isSynthetic();\n // MethodAssertGenerator build local variable\n Object o_68_0 = ((java.lang.Class)((com.twilio.http.HttpMethod)((com.twilio.http.Request)request).getMethod()).getDeclaringClass()).isAnonymousClass();\n // AssertGenerator replace invocation\n java.util.Map<java.lang.String, java.util.List<java.lang.String>> o_testRequiresAuthentication_cf62984__6 = // StatementAdderMethod cloned existing statement\nrequest.getPostParams();\n // AssertGenerator add assertion\n java.util.HashMap map_577498540 = new java.util.HashMap<Object, Object>();\torg.junit.Assert.assertEquals(map_577498540, o_testRequiresAuthentication_cf62984__6);;\n // StatementAdderOnAssert create null value\n com.twilio.http.Request vc_13486 = (com.twilio.http.Request)null;\n // StatementAdderMethod cloned existing statement\n vc_13486.getUsername();\n // MethodAssertGenerator build local variable\n Object o_78_0 = request.requiresAuthentication();\n org.junit.Assert.fail(\"testRequiresAuthentication_cf62984_cf65170 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\r\n public void testSign() throws SodiumException, CryptoException {\r\n\r\n byte[] data = \"Hola caracola\".getBytes();\r\n\r\n CryptoService instance = new CryptoService();\r\n Keys keys = instance.createKeys(null);\r\n byte[] result = instance.sign(data, keys);\r\n assertNotNull(result);\r\n }", "public interface SignatureFactory \n{\n /** \n * initializes the implementation class \n */\n public void init()\n throws SignedDocException;\n \n /**\n * Method returns an array of strings representing the \n * list of available token names.\n * @return an array of available token names.\n * @throws SignedDocException if reading the token information fails.\n */\n public String[] getAvailableTokenNames()\n throws SignedDocException;\n \n /**\n * Method returns a digital signature. It finds the RSA private \n * key object from the active token and\n * then signs the given data with this key and RSA mechanism.\n * @param digest digest of the data to be signed.\n * @param token token index\n * @param pin users pin code\n * @return an array of bytes containing digital signature.\n * @throws SignedDocException if signing the data fails.\n */\n public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;\n \n /**\n * Method returns a X.509 certificate object readed \n * from the active token and representing an\n * user public key certificate value.\n * @return X.509 certificate object.\n * @throws SignedDocException if getting X.509 public key certificate \n * fails or the requested certificate type X.509 is not available in \n * the default provider package\n */\n public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;\n \n /**\n * Resets the previous session\n * and other selected values\n */\n public void reset() \n throws SignedDocException;\n \n\t/**\n\t * Method decrypts the data with the RSA private key\n\t * corresponding to this certificate (which was used\n\t * to encrypt it). Decryption will be done on the card.\n\t * This operation closes the possibly opened previous\n\t * session with signature token and opens a new one with\n\t * authentication token if necessary\n\t * @param data data to be decrypted.\n\t * @param token index of authentication token\n\t * @param pin PIN code\n\t * @return decrypted data.\n\t * @throws SignedDocException for all decryption errors\n\t */\n\tpublic byte[] decrypt(byte[] data, int token, String pin) \n\t\tthrows SignedDocException;\n\t\t\t\t\n}", "public void persist(CredentialsModel credential) {\n Connection connection = null;\n PreparedStatement stmt = null;\n try {\n try {\n connection = ds.getConnection();\n try {\n stmt = connection.prepareStatement(\n \"INSERT INTO Credentials VALUES (?, ?, ?)\");\n stmt.setInt(1, credential.getEmployee().getEmpNumber());\n stmt.setString(2, credential.getUserName());\n stmt.setString(3, credential.getPassword());\n stmt.executeUpdate();\n } finally {\n if (stmt != null) {\n stmt.close();\n }\n }\n } finally {\n if (connection != null) {\n connection.close();\n }\n }\n } catch (SQLException ex) {\n System.out.println(\"Error in persist \" + credential);\n ex.printStackTrace();\n }\n }", "@Override\n public byte[] generateSignature() throws CryptoException, DataLengthException {\n if (!forSigning) {\n throw new IllegalStateException(\"CL04 Signer not initialised for signature generation.\");\n }\n\n try {\n CL04SignSecretPairingKeySerParameter sk = (CL04SignSecretPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(sk.getParameters());\n final Element alpha = pairing.getZr().newRandomElement().getImmutable();\n final Element a = sk.getG().powZn(alpha);\n final List<Element> A = sk.getZ().stream().map(a::powZn).collect(Collectors.toCollection(ArrayList::new));\n final Element b = a.powZn(sk.getY()).getImmutable();\n final List<Element> B = A.stream().map(Ai -> Ai.powZn(sk.getY())).collect(Collectors.toCollection(ArrayList::new));\n final Element xTimesY = alpha.mul(sk.getX().mul(sk.getY()));\n final Element c = a.powZn(sk.getX()).mul(commitment.powZn(xTimesY)).getImmutable();\n\n Element[] signElements = new Element[3 + 2 * messages.size()];\n signElements[0] = a;\n signElements[1] = b;\n signElements[2] = c;\n for (int i = 0; i < messages.size(); i++) {\n signElements[3 + i] = A.get(i);\n signElements[3 + messages.size() + i] = B.get(i);\n }\n return derEncode(signElements);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public interface CredentialConnector {\n\n /**\n * Check whether the credential (e.g public key) associated with a stack (cluster) has present on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Create the credential (e.g public key) associated with a stack (cluster) on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Interactive login for credential creation.\n *\n * @return parameters for interactive login\n */\n Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);\n\n /**\n * Delete the credential (e.g public key) associated with a stack (cluster) from Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);\n\n}", "private void start(String filePath, String password) throws CmsCadesException,\n GeneralSecurityException, IOException, TspVerificationException {\n getKeyAndCerts(filePath, password);\n\n // sign some bytes\n byte[] somerandomdata = new byte[100];\n Random random = new Random();\n random.nextBytes(somerandomdata);\n byte[] signature = signData(somerandomdata);\n System.out.println(\"signed some random data\");\n\n System.out.println(\"verify the signature: \");\n verifyCadesSignature(signature, somerandomdata);\n\n // sign a file stream\n FileInputStream dataStream = new FileInputStream(fileToBeSigned);\n signDataStream(dataStream, signatureFile);\n dataStream.close();\n System.out.println(\n \"signed file \" + fileToBeSigned + \" and saved signature to \" + signatureFile);\n\n System.out.println(\"verify the signature contained in \" + signatureFile + \":\");\n FileInputStream sigStream = new FileInputStream(signatureFile);\n dataStream = new FileInputStream(fileToBeSigned);\n verifyCadesSignatureStream(sigStream, dataStream);\n sigStream.close();\n dataStream.close();\n }", "public void testX509SignatureThumb() throws Exception {\n WSSecSignature builder = new WSSecSignature();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);\n // builder.setUserInfo(\"john\", \"keypass\");\n LOG.info(\"Before Signing ThumbprintSHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n \n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc);\n\n Document signedDoc = builder.build(doc, crypto, secHeader);\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Signed message with ThumbprintSHA1 key identifier:\");\n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(signedDoc);\n LOG.debug(outputString);\n }\n LOG.info(\"After Signing ThumbprintSHA1....\");\n verify(signedDoc);\n }", "@Test\n @Order(2)\n public void deleteCredential() throws InterruptedException {\n List<WebElement> credentials = home.getCredentialItems();\n int initialCredentialsCount = credentials.size();\n\n int credentialPosition = new Random().nextInt(credentials.size() - 1);\n WebElement deleteCredentialButton = credentials.get(credentialPosition).findElement(By.id(\"deleteCredentialBtn\"));\n\n // For additional check\n String currentDeleteUrl = deleteCredentialButton.getAttribute(\"href\");\n deleteCredentialButton.click();\n\n moveToCredentialsTab();\n assertEquals(home.getCredentialItems().size(), initialCredentialsCount - 1);\n\n boolean stillExists = false;\n for (WebElement webElement : home.getCredentialItems()){\n deleteCredentialButton = webElement.findElement(By.id(\"deleteCredentialBtn\"));\n stillExists = deleteCredentialButton.getAttribute(\"href\").equals(currentDeleteUrl);\n\n if(stillExists) break;\n }\n\n assertFalse(stillExists);\n\n home.logout();\n }", "public static Credential fromProtoBytes(byte[] credentialProtoBytes) throws IOException {\n return new Credential.Builder(\n org.openyolo.proto.Credential.ADAPTER.decode(credentialProtoBytes))\n .build();\n }", "@Test\n public void createNewUserByExternalTokenAndCheckIt() throws Exception {\n UserLogin userLogin = new UserLogin();\n userLogin.setUserToken(UUID.randomUUID().toString());\n boolean isThrow = false;\n try {\n UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, \"SignUp\");\n } catch (ApplicationException e) {\n isThrow = true;\n }\n assertThat(isThrow);\n\n //Add login and expect new user successful registration\n userLogin.setUserLogin(\"[email protected]\");\n UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, \"SignUp\");\n assertThat(userResponse.getUserMail().equals(userLogin.getUserLogin()));\n assertThat(userResponse.getUserPoints()).size().isEqualTo(5);\n }", "@Test\n public void authRequestByPreauth() throws Exception {\n String testName = getTestName();\n \n String externalPassword = \"test456\";\n String extAcctLocalPart = testName;\n String extAcctName = createExternalAcctEntry(extAcctLocalPart, externalPassword, null);\n \n Map<String, Object> zmailDomainAttrs = commonZmailDomainAttrs();\n // setup auto prov\n // commonZmailDomainAttrs added only LDAP, add preauth here\n StringUtil.addToMultiMap(zmailDomainAttrs, Provisioning.A_zmailAutoProvAuthMech, AutoProvAuthMech.PREAUTH.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(uid=%u)\");\n // setup external LDAP auth\n zmailDomainAttrs.put(Provisioning.A_zmailAuthMech, AuthMech.ldap.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapURL, \"ldap://localhost:389\");\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapBindDn, \"uid=%u,ou=people,\" + extDomainDn);\n // setup preauth\n String preAuthKey = PreAuthKey.generateRandomPreAuthKey();\n zmailDomainAttrs.put(Provisioning.A_zmailPreAuthKey, preAuthKey);\n \n Domain zmailDomain = createZmailDomain(testName, zmailDomainAttrs);\n \n String loginName = extAcctLocalPart + \"@\" + zmailDomain.getName();\n \n // preauth data\n HashMap<String,String> params = new HashMap<String,String>();\n String authBy = \"name\";\n long timestamp = System.currentTimeMillis();\n long expires = 0;\n \n params.put(\"account\", loginName);\n params.put(\"by\", authBy);\n params.put(\"timestamp\", timestamp+\"\");\n params.put(\"expires\", expires+\"\");\n\n String preAuth = PreAuthKey.computePreAuth(params, preAuthKey);\n \n \n // make the soap request\n SoapHttpTransport transport = new SoapHttpTransport(TestUtil.getSoapUrl());\n \n Element request = Element.create(transport.getRequestProtocol(), AccountConstants.AUTH_REQUEST);\n request.addElement(AccountConstants.E_ACCOUNT).addAttribute(AccountConstants.A_BY, authBy).setText(loginName);\n Element ePreAuth = request.addElement(AccountConstants.E_PREAUTH).setText(preAuth);\n ePreAuth.addAttribute(AccountConstants.A_TIMESTAMP, timestamp);\n ePreAuth.addAttribute(AccountConstants.A_EXPIRES, expires);\n \n Element response = transport.invoke(request);\n \n String encodedAuthToken = response.getElement(AccountConstants.E_AUTH_TOKEN).getText();\n assertNotNull(encodedAuthToken);\n String acctId = getAuthTokenAcctId(encodedAuthToken);\n Account acct = prov.get(AccountBy.id, acctId);\n verifyAcctAutoProvisioned(acct, loginName.toLowerCase());\n }", "@Test\n public void storeSecretsRequest() {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n\n final Resource request = new ClassPathResource(\"test-requests/storeSecrets.xml\");\n final Resource expectedResponse = new ClassPathResource(\"test-responses/storeSecrets.xml\");\n try {\n this.mockWebServiceClient.sendRequest(withPayload(request)).andExpect(ResponseMatchers.noFault()).andExpect(\n ResponseMatchers.payload(expectedResponse));\n } catch (final Exception exc) {\n Assertions.fail(\"Error\", exc);\n }\n\n //test the effects by looking in the repositories\n assertThat(this.secretRepository.count()).isEqualTo(4);\n }", "public void requestAccountCreation(Secretary sec) {\n \n System.out.println(this.iD + \": Requesting account creation from secretary \" + sec.iD);\n sec.addToWaitingListForApproval(this);\n }", "AssertionBlock createAssertionBlock();", "public void testSimpleBindingRequest() throws Exception {\n for (int i = 0; i < 8; i++) {\n // represents the password obtained from a PasswordAttribute\n password = new byte[20];\n rng.nextBytes(password);\n clientKey = new SecretKeySpec(password, \"HmacSHA1\");\n \n username = new byte[UserName.BODY_LENGTH + UserName.HMAC_LENGTH];\n rng.nextBytes(username);\n \n msg = new BindingRequest();\n msg.add(new UserNameAttr(username));\n msg.add(new MessageIntegrity());\n assertEquals(2, msg.size());\n \n serialized = new byte[msg.wireLength()];\n msg.encode(serialized);\n MessageIntegrity.setHMAC(serialized, clientKey);\n \n // parse the message and verify the HMAC\n BindingRequest decodedMsg \n = (BindingRequest) StunMsg.decode(serialized);\n assertEquals (2, decodedMsg.size());\n MessageIntegrity mi = (MessageIntegrity)decodedMsg.get(1);\n assertTrue( mi.verify(serialized, clientKey) );\n } \n }", "public Ticket() throws GeneralSecurityException {\n macAlgorithm = new TicketMac();\n \n //TODO: Change hmac key according to your need\n byte[] hmacKey = new byte[16];\n macAlgorithm.setKey(hmacKey);\n \n ul = new Commands();\n utils = new Utilities(ul);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "@Test\n public void approveGrant() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var grantedAuth = GrantedAuthorization.apply(approvedBy, approvedAt, grantFor);\n var member = DatasetMember.apply(grantedAuth, privilege);\n\n /*\n * When\n */\n grant = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * Then\n */\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant.getRequestResponse())\n .as(\"The request response should be set and it should be approved\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r)\n .extracting(\n o -> o.getExecuted().getBy(),\n o -> o.getExecuted().getAt(),\n AccessRequestResponse::isApproved)\n .containsExactly(approvedBy, approvedAt, true);\n }));\n\n assertThat(grant)\n .as(\"Since the request is approved, the grant should be active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember())\n .isPresent()\n .get()\n .isEqualTo(member);\n\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isTrue();\n assertThat(g.isClosed()).isFalse();\n });\n }", "@Test\r\n public void testVerify() throws SodiumException, CryptoException {\r\n\r\n byte[] data = \"Hola caracola\".getBytes();\r\n\r\n CryptoService instance = new CryptoService();\r\n Keys keys = instance.createKeys(null);\r\n byte[] sign = instance.sign(data, keys);\r\n boolean result = instance.verify(data, sign, keys);\r\n assertTrue(result);\r\n }", "public boolean verifySignature() {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\treturn StringUtil.verifyECDSASig(creator, data, signature);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\treturn StringUtil.verifyECDSASig(subscriber, data, signature);\r\n\t\t}\r\n//\t\tSystem.out.println(\"signature \"+signature);\r\n\t\t\r\n\t}", "@Test\n public void SameTokenNameOpenNoAccount() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"123\";\n long firstTokenQuant = 100000000L;\n String secondTokenId = \"456\";\n long secondTokenQuant = 200000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetV2Map.get(firstTokenId));\n Assert.assertEquals(null, assetV2Map.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_NOACCOUNT, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail(\"account[+OWNER_ADDRESS_NOACCOUNT+] not exists\");\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"account[\" + OWNER_ADDRESS_NOACCOUNT + \"] not exists\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "@Test(expected=UnauthorizedException.class)\n\tpublic void testE(){\n\t\tSystem.out.println(\"Test E\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tsecretService.shareSecret(\"Alice\", aliceSecret, \"Bob\");\n\t\tsecretService.shareSecret(\"Bob\", aliceSecret, \"Carl\");\n\t\tsecretService.unshareSecret(\"Alice\", aliceSecret, \"Carl\");\n\t\tsecretService.readSecret(\"Carl\", aliceSecret);\n\t}", "@Test\n public void testFailureNotParByParRequiredCilent() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n\n oauth.clientId(clientId);\n oauth.openLoginForm();\n assertEquals(OAuthErrorException.INVALID_REQUEST, oauth.getCurrentQuery().get(OAuth2Constants.ERROR));\n assertEquals(\"Pushed Authorization Request is only allowed.\", oauth.getCurrentQuery().get(OAuth2Constants.ERROR_DESCRIPTION));\n\n updateClientDynamically(clientId, (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n });\n\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n String code = loginResponse.getCode();\n\n // Token Request\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedUUIDs_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedUUIDs(10, userData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, UUID[].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test(expected = InvalidSAMLRequestException.class)\n\tpublic void testValidate2g() throws InvalidSAMLRequestException\n\t{\n\t\tIdentifierCache cache = createMock(IdentifierCache.class);\n\t\ttry\n\t\t{\n\t\t\tcache.registerIdentifier(\"1234\");\n\t\t}\n\t\tcatch (IdentifierCollisionException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tfail(\"IdentifierCollisionException not expected in this test\");\n\t\t}\n\t\texpectLastCall().andThrow(new IdentifierCollisionException(\"testcase\"));\n\t\treplay(cache);\n\t\t\n\t\tSAMLRequestValidatorImpl validator = new SAMLRequestValidatorImpl(cache, 100);\n\t\t\n\t\tRequestAbstractType request = new AuthnRequest();\n\t\trequest.setID(\"1234\");\n\t\t\n\t\t/* GMT timezone */\n\t\tSimpleTimeZone gmt = new SimpleTimeZone(0, \"UTC\");\n\n\t\t/* GregorianCalendar with the GMT time zone */\n\t\tGregorianCalendar calendar = new GregorianCalendar(gmt);\n\t\tXMLGregorianCalendar xmlCalendar = new XMLGregorianCalendarImpl(calendar);\n\t\t\n\t\trequest.setIssueInstant(xmlCalendar);\n\t\t\n\t\tNameIDType issuer = new NameIDType();\n\t\tissuer.setValue(\"testcase\");\n\t\trequest.setIssuer(issuer);\n\t\trequest.setVersion(VersionConstants.saml20);\n\t\t\n\t\tStatus status = new Status();\n\t\tStatusCode code = new StatusCode();\n\t\tcode.setValue(\"success\");\n\t\tstatus.setStatusCode(code);\n\t\t\n\t\tvalidator.validate(request);\n\t\tverify(cache);\n\t}", "private X509Certificate generateSelfSignedCertificateWithFakeSignature(PublicKey publicKey) throws IOException, CertificateParsingException {\n byte[] signature;\n AlgorithmIdentifier sigAlgId;\n V3TBSCertificateGenerator tbsGenerator = new V3TBSCertificateGenerator();\n int i = this.mKeymasterAlgorithm;\n if (i == 1) {\n signature = new byte[1];\n sigAlgId = new AlgorithmIdentifier(PKCSObjectIdentifiers.sha256WithRSAEncryption, DERNull.INSTANCE);\n } else if (i == 3) {\n sigAlgId = new AlgorithmIdentifier(X9ObjectIdentifiers.ecdsa_with_SHA256);\n ASN1EncodableVector v = new ASN1EncodableVector();\n v.add(new DERInteger(0));\n v.add(new DERInteger(0));\n signature = new DERSequence().getEncoded();\n } else {\n throw new ProviderException(\"Unsupported key algorithm: \" + this.mKeymasterAlgorithm);\n }\n byte[] signature2 = signature;\n ASN1InputStream publicKeyInfoIn = new ASN1InputStream(publicKey.getEncoded());\n tbsGenerator.setSubjectPublicKeyInfo(SubjectPublicKeyInfo.getInstance(publicKeyInfoIn.readObject()));\n publicKeyInfoIn.close();\n tbsGenerator.setSerialNumber(new ASN1Integer(this.mSpec.getCertificateSerialNumber()));\n X509Principal subject = new X509Principal(this.mSpec.getCertificateSubject().getEncoded());\n tbsGenerator.setSubject(subject);\n tbsGenerator.setIssuer(subject);\n tbsGenerator.setStartDate(new Time(this.mSpec.getCertificateNotBefore()));\n tbsGenerator.setEndDate(new Time(this.mSpec.getCertificateNotAfter()));\n tbsGenerator.setSignature(sigAlgId);\n TBSCertificate tbsCertificate = tbsGenerator.generateTBSCertificate();\n ASN1EncodableVector result = new ASN1EncodableVector();\n result.add(tbsCertificate);\n result.add(sigAlgId);\n result.add(new DERBitString(signature2));\n return new X509CertificateObject(Certificate.getInstance(new DERSequence(result)));\n throw result;\n }", "public String prepare() {\n try {\n signingRequest = requestService.createRequest(\n editor.getDelegate(), passwordEditor, errors);\n return CONFIRM_OUTCOME_ID; \n }\n catch (PassphraseException ex) {\n passwordEditor.setGroupName(editor.getOwner());\n return PASSWORD_OUTCOME_ID;\n }\n catch (GroupAccessException|NoSuchGroupException ex) {\n return DETAILS_OUTCOME_ID;\n }\n catch (CredentialRequestException ex) {\n endConversation();\n return FAILURE_OUTCOME_ID;\n }\n }", "byte[] generateSignature(byte[] message, PrivateKey privateKey, SecureRandom secureRandom) throws IOException;", "@Test\n public void spendShouldBeOK() throws Exception {\n UnsecureCompactBuilder compactBuilder = new UnsecureCompactBuilder();\n\n NonceClaim nonceClaim = new NonceClaim();\n nonceClaim.setNonce(\"nonce\");\n\n String jwt = compactBuilder.claims(nonceClaim).build().toString();\n\n NonceType nonceType = new NonceType();\n nonceType.setName(\"welcome\");\n\n Nonce nonce = new Nonce();\n nonce.setId(UUID.randomUUID());\n ResourceOwner ro = FixtureFactory.makeResourceOwner();\n nonce.setResourceOwner(ro);\n nonce.setNonceType(nonceType);\n\n when(mockHashToken.run(\"nonce\")).thenReturn(\"hashedNonce\");\n when(mockNonceRepository.getByTypeAndNonce(NonceName.WELCOME, \"hashedNonce\")).thenReturn(nonce);\n\n subject.spend(jwt, NonceName.WELCOME);\n\n verify(mockNonceRepository).setSpent(nonce.getId());\n verify(mockNonceRepository).revokeUnSpent(nonce.getNonceType().getName(), nonce.getResourceOwner().getId());\n }", "@Test\n public void checkForNonExistingUserCredential() {\n UserLogin userLogin = new UserLogin();\n userLogin.setUserLogin(\"+380680000000\");\n userLogin.setUserPassword(\"12345\");\n\n boolean isThrow = false;\n try {\n UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, \"SignIn\");\n } catch (ApplicationException e) {\n isThrow = true;\n }\n assertThat(isThrow);\n }", "boolean isValidCredential(String username, String password);", "@Test\n public void createTeam2(){\n\n //GETTING AUTHORIZED BY PROVIDING WHO I AM\n //PROVIDE WHO I AM, THEN GET THE AUTHORIZATION/THE POWER TO ACCESS/TOKEN\n RestAssured.baseURI = \"https://cybertek-reservation-api-qa.herokuapp.com\";\n\n Response response = given().log().all().\n param(\"email\", \"[email protected]\").\n param(\"password\", \"maxpayne\").\n get(\"/sign\");\n response.then().log().all().\n assertThat().statusCode(200);\n\n\n String token =response.jsonPath().get(\"accessToken\");\n\n // RestAssured.baseURI=\"https://cybertek-reservation-api-qa.herokuapp.com\";\n RequestSpecification request = RestAssured.given();\n\n JSONObject requestParams = new JSONObject();\n requestParams.put(\"campus-location\", \"VA\");\n requestParams.put(\"batch-number\", \"11\");\n requestParams.put(\"team-name\", \"simpleuser001\");\n\n request.\n header(\"Content-Type\", \"application/json\").\n header(\"Authorization\", token).\n body(requestParams.toJSONString()).\n post(\"/api/teams/team\").then().log().all().statusCode(201);\n\n }", "@Test(expected=UnauthorizedException.class)\n\tpublic void testH(){\n\t\tSystem.out.println(\"Test H\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tsecretService.shareSecret(\"Alice\", aliceSecret, \"Bob\");\n\t\tsecretService.unshareSecret(\"Carl\", aliceSecret, \"Bob\");\n\t}", "@org.junit.Test(timeout = 10000)\n public void testConstructorWithDomain_cf38577_cf40690_cf42848_failAssert0() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.twilio.http.Request request = new com.twilio.http.Request(com.twilio.http.HttpMethod.GET, com.twilio.rest.Domains.IPMESSAGING.toString(), \"/v1/uri\");\n // MethodAssertGenerator build local variable\n Object o_5_0 = request.getMethod();\n // AssertGenerator replace invocation\n java.util.Map<java.lang.String, java.util.List<java.lang.String>> o_testConstructorWithDomain_cf38577__7 = // StatementAdderMethod cloned existing statement\nrequest.getQueryParams();\n // AssertGenerator add assertion\n java.util.HashMap map_2077362660 = new java.util.HashMap<Object, Object>();\torg.junit.Assert.assertEquals(map_2077362660, o_testConstructorWithDomain_cf38577__7);;\n // StatementAdderOnAssert create literal from method\n java.lang.String String_vc_947 = \"https://ip-messaging.twilio.com/v1/uri\";\n // MethodAssertGenerator build local variable\n Object o_13_0 = String_vc_947;\n // StatementAdderOnAssert create literal from method\n java.lang.String String_vc_946 = \"https://ip-messaging.twilio.com/v1/uri\";\n // MethodAssertGenerator build local variable\n Object o_17_0 = String_vc_946;\n // StatementAdderMethod cloned existing statement\n request.setAuth(String_vc_946, String_vc_947);\n // StatementAdderOnAssert create null value\n com.google.common.collect.Range<org.joda.time.LocalDate> vc_8666 = (com.google.common.collect.Range)null;\n // StatementAdderOnAssert create null value\n java.lang.String vc_8664 = (java.lang.String)null;\n // StatementAdderOnAssert create null value\n com.twilio.http.Request vc_8662 = (com.twilio.http.Request)null;\n // StatementAdderMethod cloned existing statement\n vc_8662.addQueryDateRange(vc_8664, vc_8666);\n // MethodAssertGenerator build local variable\n Object o_29_0 = request.getUrl();\n org.junit.Assert.fail(\"testConstructorWithDomain_cf38577_cf40690_cf42848 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n public void SameTokenNameOpenInvalidAddress() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"123\";\n long firstTokenQuant = 100000000L;\n String secondTokenId = \"456\";\n long secondTokenQuant = 200000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetV2Map.get(firstTokenId));\n Assert.assertEquals(null, assetV2Map.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_INVALID, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail(\"Invalid address\");\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"Invalid address\", e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "private void signInWithCredential(PhoneAuthCredential credential) {\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n // register the phone no in the database\n registerUser(number);\n\n } else {\n Toast.makeText(MainActivity.this, Objects.requireNonNull(task.getException()).getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Test\n @Order(4)\n void create_account_2() {\n Account empty = service.createAccount(client.getId());\n Assertions.assertEquals(client.getId(), empty.getClientId());\n Assertions.assertNotEquals(-1, empty.getId());\n Assertions.assertEquals(0, empty.getAmount());\n client.addAccount(empty);\n }", "public static Credential authorize(final NetHttpTransport httpTransport) throws Exception {\n\t\t /*** Load client secrets. ***/\n//\t\tInputStream in = UploadYoutubeCaption.class.getResourceAsStream(CLIENT_SECRETS);\n\t\tInputStream in = new FileInputStream(\"/home/chanwit/Documents/UploadSubtitleYoutube/booming-bonito-309508-5408dbc89eef.json\");\n\t\t GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\t\t \n\t\t /*** Build flow and trigger user authorization request. ***/\n\t\t GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(httpTransport, JSON_FACTORY, clientSecrets, SCOPES).build();\n\t\t Credential credential = new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize(\"user\");\n\t\t \n\t\t return credential;\n\t}", "@Test\r\n public void testCreateTheirDidNull() throws CryptoException {\r\n CryptoService instance = new CryptoService();\r\n\r\n TheirDid result = instance.createTheirDid(new TheirDidInfo(\"CnEDk9HrMnmiHXEV1WFgbVCRteYnPqsJwrTdcZaNhFVW\", null));\r\n assertEquals(result.did, \"CnEDk9HrMnmiHXEV1WFgbVCRteYnPqsJwrTdcZaNhFVW\");\r\n assertEquals(result.verkey, \"CnEDk9HrMnmiHXEV1WFgbVCRteYnPqsJwrTdcZaNhFVW\");\r\n }", "@Test(expected=UnauthorizedException.class)\n\tpublic void testD(){\n\t\t\n\t\tSystem.out.println(\"Test D\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tUUID carlSecret = secretService.storeSecret(\"Carl\", new Secret());\n\t\tsecretService.shareSecret(\"Alice\", aliceSecret, \"Bob\");\n\t\tsecretService.shareSecret(\"Bob\", carlSecret, \"Alice\");\n\t}", "@org.junit.Test(timeout = 10000)\n public void testConstructorWithDomain_cf38577_cf40672_failAssert22() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.twilio.http.Request request = new com.twilio.http.Request(com.twilio.http.HttpMethod.GET, com.twilio.rest.Domains.IPMESSAGING.toString(), \"/v1/uri\");\n // MethodAssertGenerator build local variable\n Object o_5_0 = request.getMethod();\n // AssertGenerator replace invocation\n java.util.Map<java.lang.String, java.util.List<java.lang.String>> o_testConstructorWithDomain_cf38577__7 = // StatementAdderMethod cloned existing statement\nrequest.getQueryParams();\n // AssertGenerator add assertion\n java.util.HashMap map_2077362660 = new java.util.HashMap<Object, Object>();\torg.junit.Assert.assertEquals(map_2077362660, o_testConstructorWithDomain_cf38577__7);;\n // StatementAdderOnAssert create null value\n java.lang.String vc_8214 = (java.lang.String)null;\n // StatementAdderOnAssert create literal from method\n java.lang.String String_vc_946 = \"https://ip-messaging.twilio.com/v1/uri\";\n // StatementAdderOnAssert create null value\n com.twilio.http.Request vc_8210 = (com.twilio.http.Request)null;\n // StatementAdderMethod cloned existing statement\n vc_8210.setAuth(String_vc_946, vc_8214);\n // MethodAssertGenerator build local variable\n Object o_19_0 = request.getUrl();\n org.junit.Assert.fail(\"testConstructorWithDomain_cf38577_cf40672 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\r\n public void testSignInvalidSk() throws SodiumException, CryptoException {\r\n\r\n byte[] data = \"Hola caracola\".getBytes();\r\n // signkey must be 64 bytes long\r\n CryptoService instance = new CryptoService();\r\n Keys keys = new Keys(\"8wZcEriaNLNKtteJvx7f8i\", \"5L2HBnzbu6Auh2pkDRbFt5f4prvgE2LzknkuYLsKkacp\");\r\n Assertions.assertThrows(CryptoException.class, () -> {\r\n instance.sign(data, keys);\r\n });\r\n }", "@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}", "@Test\n public void getSecretsRequest() {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n final Resource request = new ClassPathResource(\"test-requests/getSecrets.xml\");\n final Resource expectedResponse = new ClassPathResource(\"test-responses/getSecrets.xml\");\n try {\n this.mockWebServiceClient.sendRequest(withPayload(request)).andExpect(\n (request2, response) -> {\n OutputStream outStream = new ByteArrayOutputStream();\n response.writeTo(outStream);\n String outputString = outStream.toString();\n assertThat(outputString.contains(\"<ns2:Result>OK</ns2:Result>\")).isTrue();\n assertThat(outputString.contains(\"E_METER_AUTHENTICATION\")).isTrue();\n assertThat(outputString.contains(\"E_METER_ENCRYPTION_KEY_UNICAST\")).isTrue();\n\n });\n } catch (final Exception exc) {\n Assertions.fail(\"Error\", exc);\n }\n }", "public Object getCredential()\n {\n return this.credential;\n }", "public Object getCredential()\n {\n return this.credential;\n }", "public Object getCredential()\n {\n return this.credential;\n }", "@Override\n public String generateSignature(String requestPath, String method, String body, String timestamp) {\n try {\n String prehash = timestamp + method.toUpperCase() + requestPath + body;\n byte[] secretDecoded = Base64.getDecoder().decode(secretKey);\n SecretKeySpec keyspec = new SecretKeySpec(secretDecoded, \"HmacSHA256\");\n Mac sha256 = (Mac) GdaxConstants.SHARED_MAC.clone();\n sha256.init(keyspec);\n return Base64.getEncoder().encodeToString(sha256.doFinal(prehash.getBytes()));\n } catch (CloneNotSupportedException | InvalidKeyException e) {\n e.printStackTrace();\n throw new RuntimeErrorException(new Error(\"Cannot set up authentication headers.\"));\n }\n }", "@Test\n\tpublic void testValidate3() throws InvalidSAMLRequestException\n\t{\n\t\tIdentifierCache cache = createMock(IdentifierCache.class);\n\t\ttry\n\t\t{\n\t\t\tcache.registerIdentifier(\"1234\");\n\t\t}\n\t\tcatch (IdentifierCollisionException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tfail(\"IdentifierCollisionException not expected in this test\");\n\t\t}\n\t\treplay(cache);\n\t\tSAMLRequestValidatorImpl validator = new SAMLRequestValidatorImpl(cache, 100);\n\t\t\n\t\tRequestAbstractType request = new AuthnRequest();\n\t\trequest.setID(\"1234\");\n\t\t\n\t\t/* GMT timezone */\n\t\tSimpleTimeZone gmt = new SimpleTimeZone(0, \"UTC\");\n\n\t\t/* GregorianCalendar with the GMT time zone */\n\t\tGregorianCalendar calendar = new GregorianCalendar(gmt);\n\t\tXMLGregorianCalendar xmlCalendar = new XMLGregorianCalendarImpl(calendar);\n\t\t\n\t\trequest.setIssueInstant(xmlCalendar);\n\t\t\n\t\tNameIDType issuer = new NameIDType();\n\t\tissuer.setValue(\"testcase\");\n\t\trequest.setIssuer(issuer);\n\t\trequest.setVersion(VersionConstants.saml20);\n\t\t\n\t\tStatus status = new Status();\n\t\tStatusCode code = new StatusCode();\n\t\tcode.setValue(\"success\");\n\t\tstatus.setStatusCode(code);\n\t\t\n\t\tvalidator.validate(request);\n\t\tverify(cache);\n\t}", "protected void checkParams(Signature signature, CriteriaSet trustBasisCriteria) throws SecurityException {\n\n if (signature == null) {\n throw new SecurityException(\"Signature was null\");\n }\n if (trustBasisCriteria == null) {\n throw new SecurityException(\"Trust basis criteria set was null\");\n }\n if (trustBasisCriteria.isEmpty()) {\n throw new SecurityException(\"Trust basis criteria set was empty\");\n }\n }" ]
[ "0.595775", "0.5916541", "0.586539", "0.5748416", "0.5645981", "0.53964794", "0.5356536", "0.5309008", "0.5288845", "0.5239798", "0.521929", "0.5198514", "0.51945233", "0.5187104", "0.5132271", "0.50715894", "0.5069126", "0.5065101", "0.5040517", "0.5016087", "0.5005499", "0.5005488", "0.49758735", "0.49657875", "0.49611002", "0.49592856", "0.49503034", "0.4943235", "0.49427068", "0.49338725", "0.49048832", "0.4899019", "0.4858447", "0.48526505", "0.48415056", "0.48189571", "0.4806924", "0.47991875", "0.4786242", "0.4778896", "0.47770363", "0.4772374", "0.47645476", "0.4752555", "0.47413537", "0.47376427", "0.47370923", "0.47193104", "0.4714173", "0.47077432", "0.4705632", "0.46989775", "0.46971655", "0.46954566", "0.46919188", "0.46796793", "0.4654797", "0.46524787", "0.46430227", "0.46399602", "0.4621133", "0.46201316", "0.4615699", "0.46146715", "0.4610063", "0.4598232", "0.45949733", "0.45850518", "0.45823792", "0.4576631", "0.4566019", "0.45639375", "0.45622423", "0.4561998", "0.4552502", "0.45477068", "0.45465887", "0.45455414", "0.45408157", "0.4538824", "0.4536612", "0.45356697", "0.45338523", "0.45335194", "0.45333323", "0.45324206", "0.45306855", "0.45296422", "0.4510277", "0.45099464", "0.45054075", "0.45053947", "0.45047578", "0.4503968", "0.45026574", "0.45026574", "0.45026574", "0.45020822", "0.44996166", "0.4499092" ]
0.71538
0
Ensure that we fail to create a credential if user verification is requested, but we didn't initialize the Authenticator with biometric auth set to true.
@Test public void testFailureOnVerificationRequiredWithoutSupport() throws WebAuthnException, VirgilException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); makeCredentialOptions.requireUserVerification = true; makeCredentialOptions.requireUserPresence = false; try { AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions); Assert.fail("makeCredential should have failed without biometric support"); } catch (ConstraintError e) { // success! any other exception is a failure } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void authenticateTestFailure2() {\n DatabaseTest.setupDevice();\n Device device = new Device(DatabaseTest.DEVICE_ID, \"other_token\");\n assertFalse(device.authenticate());\n DatabaseTest.cleanDatabase();\n }", "@Test\n public void testExcludeCredentials() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject firstAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n\n // Now we want to pull out the ID of the just-created credential, add it to the exclude list,\n // and ensure that we see a failure when creating a second credential.\n\n makeCredentialOptions.excludeCredentialDescriptorList.add(new PublicKeyCredentialDescriptor(\"public-key\", firstAttestationObject.getCredentialId(), null));\n try {\n AttestationObject secondAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n Assert.fail(\"makeCredential should have failed due to a matching credential ID in the exclude list\");\n } catch (InvalidStateError e) {\n // good! the matching credential descriptor caused the authenticator to reject the request\n }\n }", "@Test\n public void authenticateTestFailure() {\n assertFalse(device.authenticate());\n }", "@Test\n public void checkForNonExistingUserCredential() {\n UserLogin userLogin = new UserLogin();\n userLogin.setUserLogin(\"+380680000000\");\n userLogin.setUserPassword(\"12345\");\n\n boolean isThrow = false;\n try {\n UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, \"SignIn\");\n } catch (ApplicationException e) {\n isThrow = true;\n }\n assertThat(isThrow);\n }", "@Test\n public void testSynchronizedPreAuthAuthfailedPreAuth() throws AuthException, IOException {\n when(synchronizer.preAuth()).thenThrow(IOException.class);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.AUTHFAILED, presenter.status);\n }", "@Override\r\n\tpublic boolean needsCredentials() {\n\t\treturn false;\r\n\t}", "private void checkInitialization()\r\n\t{\r\n\t\tif ( !initialized )\r\n\t\t{\r\n\t\t\tthrow new SecurityException( \"Calculator is not properly initialized.\" );\r\n\t\t}//end if\r\n\t}", "@Test\n public void testAllowCredentialsEmpty() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n\n AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON);\n getAssertionOptions.allowCredentialDescriptorList.clear();\n authenticator.getAssertion(getAssertionOptions, new CredentialSelector() {\n @Override\n public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) {\n return credentialList.get(0);\n }\n });\n }", "@Test\n public void makeCredentialAndGetAssertionWithAllowCredential() throws VirgilException, WebAuthnException, CborException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n byte[] cborEncoded = attObj.asCBOR();\n\n ByteArrayInputStream bais = new ByteArrayInputStream(cborEncoded);\n Map decoded = (Map) new CborDecoder(bais).decode().get(0);\n String fmt = ((UnicodeString) decoded.get(new UnicodeString(\"fmt\"))).getString();\n assertEquals(fmt, \"none\");\n\n byte[] credentialId = attObj.getCredentialId();\n\n // Now let's see if we can generate an assertion based on the returned credential ID\n AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON);\n //getAssertionOptions.allowCredentialDescriptorList.clear();\n getAssertionOptions.allowCredentialDescriptorList.add(new PublicKeyCredentialDescriptor(\"public-key\", credentialId, null));\n\n AuthenticatorGetAssertionResult getAssertionResult = authenticator.getAssertion(getAssertionOptions, new CredentialSelector() {\n @Override\n public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) {\n return credentialList.get(0);\n }\n });\n\n ByteBuffer resultBuf = ByteBuffer.allocate(getAssertionOptions.clientDataHash.length + getAssertionResult.authenticatorData.length);\n resultBuf.put(getAssertionResult.authenticatorData);\n resultBuf.put(getAssertionOptions.clientDataHash);\n byte[] signedData = resultBuf.array();\n List<PublicKeyCredentialSource> sources = this.credentialSafe.getKeysForEntity(makeCredentialOptions.rpEntity.id);\n PublicKeyCredentialSource source = sources.get(sources.size() - 1);\n KeyPair keyPair = this.credentialSafe.getKeyPairByAlias(source.keyPairAlias);\n assertTrue(this.cryptography.verifySignature(keyPair.getPublic(), signedData, getAssertionResult.signature));\n }", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayBag object is not initialized \" +\n \"properly.\");\n }", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "@Test\n public void testSynchronizedAuthAuthFailed()\n throws AuthException, IOException {\n doThrow(IOException.class).when(synchronizer).auth();\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.AUTHFAILED, presenter.status);\n }", "@Test\n public void AuthenticationShouldFailWithValidIPUser() throws Exception {\n kidozen = new KZApplication(AppSettings.KZ_TENANT, AppSettings.KZ_APP, AppSettings.KZ_KEY, false);\n final CountDownLatch alcd = new CountDownLatch(1);\n kidozen.Authenticate(AppSettings.KZ_USER, AppSettings.KZ_PASS, \"ups!\", new ServiceEventListener() {\n @Override\n public void onFinish(ServiceEvent e) {\n alcd.countDown();\n assertThat(e.StatusCode, equalTo(HttpStatus.SC_UNAUTHORIZED));\n assertTrue(e.Body.toLowerCase().contains(\"unauthorized\".toLowerCase()));\n }\n });\n assertEquals(false, kidozen.UserIsAuthenticated);\n alcd.await(TEST_TIMEOUT_IN_MINUTES, TimeUnit.MINUTES);\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testConstructorWithNullAuthenticator() throws Throwable {\n final String serviceName = \"testService\";\n\n new SecretsManager(serviceName, null);\n }", "@Test\n public void nonExistingUser() {\n boolean result = auth.authenticateUser(\"Spiderman\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }", "@Test\n public void testSynchronizedSyncAfterAuthFailed()\n throws AuthException, IOException {\n when(synchronizer.preAuth()).thenThrow(IOException.class).thenReturn(\"OK\");\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.AUTHFAILED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.PREAUTHED, presenter.status);\n }", "@Override\r\n\tpublic void testPrivateBelongsToOtherUser() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateBelongsToOtherUser();\r\n\t\t}\r\n\t}", "void stopAuthentication() {\n if (biometricPrompt != null) {\n biometricPrompt.cancelAuthentication();\n biometricPrompt = null;\n }\n }", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "public CredentialValidationResult validate(UsernamePasswordCredential unpc){\r\n \r\n \r\n return null;\r\n}", "@Test\n public void existingUserNOT_OK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }", "@Test\n public void testInvalidCredential(final TestContext aContext) {\n final Async asyncTask = aContext.async();\n final JsonObject newConfigs = myConfigs;\n\n newConfigs.put(IIIF_USERNAME, \"username\");\n newConfigs.put(IIIF_PASSWORD, \"password\");\n\n deployNewVerticle(newConfigs).onFailure(failure -> {\n TestUtils.complete(asyncTask);\n }).onSuccess(success -> {\n aContext.fail();\n });\n }", "@Override\n public void onFailure(CredentialsManagerException error) {\n finish();\n }", "void authenticate() {\n if (lifecycle != null) {\n lifecycle.addObserver(this);\n } else {\n activity.getApplication().registerActivityLifecycleCallbacks(this);\n }\n biometricPrompt = new BiometricPrompt(activity, uiThreadExecutor, this);\n biometricPrompt.authenticate(promptInfo);\n }", "public CredentialManagerException() {\n\t\tsuper();\n\t}", "CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "@Test\n\tpublic void loginWithInvalidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_INVALID.username, Credentials.USER_INVALID.password);\n\t\tassertTrue(app.loginScreen().isActive());\n\t}", "public boolean isAuthRequired() {\n\t\treturn false;\n\t}", "private static void throwUnInit()\n {\n throw new IllegalArgumentException(\n \"call DuduSDK.init(DuduUser user) first\");\n }", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayQueue object is corrupt.\");\n }", "@Test(groups=\"authentication\")\n public void noCredential() throws Exception {\n expect().\n body(\"error\", equalTo(401)).\n get(\"/openidm/managed/user?_queryId=query-all-ids\");\n }", "@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }", "@Test\n public void testFailureNotParByParRequiredCilent() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n\n oauth.clientId(clientId);\n oauth.openLoginForm();\n assertEquals(OAuthErrorException.INVALID_REQUEST, oauth.getCurrentQuery().get(OAuth2Constants.ERROR));\n assertEquals(\"Pushed Authorization Request is only allowed.\", oauth.getCurrentQuery().get(OAuth2Constants.ERROR_DESCRIPTION));\n\n updateClientDynamically(clientId, (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n });\n\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n String code = loginResponse.getCode();\n\n // Token Request\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n }", "private void checkRep(){\n assert !this.username.equals(\"\");\n assert !this.password.equals(\"\");\n assert accessLevel != null;\n }", "private void isCredentialsPresent(String message) {\n if (!credentials.isPresent()) {\n throw new IllegalArgumentException(message + \" requires a valid api url but is missing\");\n }\n }", "public void testInvalidAuthenticationCredentials() throws Exception {\n client = new PaysafeApiClient(\"username\", \"password\", Environment.TEST, merchantAccountNumber);\n\n try {\n SingleUseToken sObjResponse = client.customerVaultService().createSingleUseToken(\n SingleUseToken.builder()\n .card()\n .holderName(\"Mr. John Smith\")\n .cardNum(\"4917480000000008\")\n .cardExpiry()\n .month(7)\n .year(2019)\n .done()\n .billingAddress()\n .street(\"100 Queen Street West\")\n .street2(\"Unit 201\")\n .city(\"Toronto\")\n .country(\"CA\")\n .state(\"ON\")\n .zip(\"M5H 2N2\")\n .done()\n .done()\n .build());\n\n Assert.assertEquals(\"5279\", sObjResponse.getError().getCode());\n Assert.assertEquals(\"The authentication credentials are invalid.\",\n sObjResponse.getError().getMessage());\n\n } catch (IOException ioExp) {\n // Log IO Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + ioExp.getMessage());\n } catch (PaysafeException oExp) {\n // Log Paysafe Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + oExp.getMessage());\n } catch (Exception e) {\n // Log Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + e.getMessage());\n }\n }", "@Test\n public void testSuccessFailsToResolve() throws NoSuchAlgorithmException, ComponentInitializationException {\n resolver.resolve = false;\n resolver.optional = true;\n\n ActionTestingSupport.assertProceedEvent(action.execute(requestCtx));\n Assert.assertNull(profileRequestCtx.getSubcontext(RelyingPartyContext.class)\n .getSubcontext(EncryptionContext.class).getAssertionEncryptionParameters());\n }", "private void handleFaceAuthFailed() {\n Assert.isMainThread();\n setFaceRunningState(0);\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onBiometricAuthFailed(BiometricSourceType.FACE);\n }\n }\n }", "public InvalidCredentialsException(String message, Throwable cause) {\n/* 64 */ super(message, cause);\n/* */ }", "private void checkAuthControl() {\n val authKey = config.getString(\"authControlKey\");\n val authValue = config.getString(\"authControlValue\");\n\n checkArgument(authKey.length() > 2, \"auth string (control key) length is less than or equal to 2!\");\n checkArgument(authValue.length() > 2, \"auth string (control value) length is less than or equal to 2!\");\n }", "@Override\n\tpublic void validateConfigurationWithoutLogin() {\n\t\tcheckAuthorization();\n\t}", "@Test\n\tpublic void testAuthenticateUserNullPassword() {\n\t\t\n\t\tThrowable thrown = catchThrowable(() -> { authService.authenticateUser(new UserBuilder(USER).password(null).build()); } );\n\t\tassertThat(thrown).isNotNull().isInstanceOf(IllegalArgumentException.class).hasMessageContaining(\"Missing login and/or password\");\n\t}", "@Override\n protected CommonResponse doWrongAuthentication(MultifactorStartRegistrationResponseData startRegistrationData, MultifactorStartAuthenticationResponseData startAuthenticationData) throws Exception {\n return finishAuthentication(BACKUP_STRING_PROVIDER,\n startRegistrationData.getDeviceId(),\n WRONG_CODE,\n null,\n null,\n null);\n }", "@Override\n public void onSignInFailed() {\n BYPASS_LOGIN = true;\n }", "@Override\n public Principal authenticate(String credentials, String remoteAddr, String httpMethod, StringBuilder errMsg) {\n return null;\n }", "@Test\n\tpublic void testAuthenticateAndroidUser() {\n\t\t Authenticator auth=new Authenticator();\n \n \n \n AndroidUser anUser=new AndroidUser(\"\", \"asd\", \"asd\", \"asd\", \"asd\", \"asd\", \"asd\");\n \n assertTrue(auth.authenticate(anUser));\n \n \n\t}", "public YCAuthorizationException() {\n super();\n }", "private void handleFingerprintAuthFailed() {\n Assert.isMainThread();\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onBiometricAuthFailed(BiometricSourceType.FINGERPRINT);\n }\n }\n }", "@Override\n public void onAuthenticationFailed() {\n }", "@Override\n public void preVerify() throws Exception{\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \"Validating Input File Parameters.\");\n validateInputParams();\n // Validate OIM managed server is up and running. \n try{\n OIMClient client = getOIMClient();\n // This step is done as client.login migth not throw LoginException based on authenticator configured control param.\n client.getService(SchedulerService.class).getStatus();\n }catch(Exception e){\n throw new Exception(\"Either OIM server is not running or OIM input parameters are incorrect. Please verify values for \" +\n \"[OIM_WLS_MANAGED_SERVER_HOST, OIM_WLS_MANAGED_SERVER_PORT, OIM_ADMIN_USERNAME, OIM_ADMIN_USER_PASSWORD]\");\n }\n // TODO Validate IT resource configuration\n validateITResource();\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \"PreVerify Validation Successful.\");\n }", "@Test\n public void should_recognize_if_adversary_obtained_authenticator_from_untrusted_device_and_tried_to_change_expiry_date() throws SignatureException {\n final IUserProvider up = getInstance(IUserProvider.class);\n up.setUsername(UNIT_TEST_USER, getInstance(IUser.class));\n final User currUser = getInstance(IUserProvider.class).getUser();\n\n // first session is from trusted device\n constants.setNow(dateTime(\"2015-04-23 11:00:00\"));\n coSession.newSession(currUser, true, null);\n\n // second session from untrusted device, and this is the device where the authenticator gets stolen from\n constants.setNow(dateTime(\"2015-04-23 13:00:00\"));\n final UserSession newSession = coSession.newSession(currUser, false, null);\n\n // let's fabricate a fraudulent authenticator\n final String fraudulentAuthenticator = newSession.getAuthenticator().get().username + Authenticator.AUTHENTICATOR_SEPARATOR +\n newSession.getAuthenticator().get().seriesId + Authenticator.AUTHENTICATOR_SEPARATOR +\n // tries to move expiration time into the future\n (constants.now().plusMinutes(15).getMillis()) + Authenticator.AUTHENTICATOR_SEPARATOR +\n newSession.getAuthenticator().get().hash;\n\n\n // now let's move the clock 7 minutes forward to emulate a time change and request a current session with fraudulent authenticator\n // that as far as the adversary is concerned should still be valid due to the performed time manipulation\n constants.setNow(dateTime(\"2015-04-23 13:07:00\"));\n final Optional<UserSession> session = coSession.currentSession(currUser, fraudulentAuthenticator, false);\n assertFalse(session.isPresent());\n\n // additionally, let's also check that all sessions for a compromised user have been removed, but not the sessions for other users\n final EntityResultQueryModel<UserSession> currUserSessions = select(UserSession.class).where().prop(\"user\").eq().val(currUser).model();\n final EntityResultQueryModel<UserSession> otherSessions = select(UserSession.class).where().prop(\"user\").ne().val(currUser).model();\n\n assertEquals(0, coSession.count(currUserSessions));\n assertEquals(2, coSession.count(otherSessions));\n }", "@SmallTest\n public void testInitiallyDone_DeviceOwnerDontSkipUserSetup() {\n final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE,\n false);\n when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(false);\n\n // WHEN calling markUserProvisioningStateInitiallyDone\n mHelper.markUserProvisioningStateInitiallyDone(params);\n\n // THEN the primary user's state should be set to INCOMPLETE\n verify(mDevicePolicyManager).setUserProvisioningState(STATE_USER_SETUP_INCOMPLETE,\n PRIMARY_USER_ID);\n }", "@Test\n public void verificatingUserSignupCorruptionWhenUserIsValidShouldNotThrowException()\n throws InvalidContactInformationFieldException {\n contactInformationCorruptionVerificator.validateContactInformationCorruption(contactInformationDto);\n\n // Then no exception is thrown\n }", "@Override\n\tpublic void initVerify() {\n\t\t\n\t}", "private boolean verifyCredentials() {\n\n boolean bCredentialsValid = false;\n strUserMailID = strUserName = \"\";\n\n // Get the account information, if existing\n DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());\n AccountInformation accInfo = dbHandler.getAccountInfo(m_tfUserEmailID.getText().toString());\n\n if(accInfo != null) {\n\n // Compute the hash for the user entered password\n OperationsHelper helper = new OperationsHelper();\n String strHashPwd = helper.getHashedPassword(m_tfUserPassword.getText().toString(), accInfo.getSaltValue());\n if(strHashPwd.equals(accInfo.getPassword())) {\n\n bCredentialsValid = true;\n strUserMailID = accInfo.getEmail();\n strUserName = accInfo.getName();\n\n // If Always login option is checked, update the value in the database\n if( ! (m_cbAutoLogon.isChecked() == accInfo.getIfAlwaysSignIn()) ) {\n\n accInfo.setAlwaysSignIn(m_cbAutoLogon.isChecked());\n dbHandler.updateAlwaysSignOnOption(accInfo);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Incorrect Password\", Toast.LENGTH_LONG).show();\n }\n } else {\n Toast.makeText(getApplicationContext(), \"No such account exists. \\n\" +\n \" Create one to login\", Toast.LENGTH_LONG).show();\n }\n\n return bCredentialsValid;\n }", "private void authFailed() {\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }", "@BeforeAll\n\tpublic void setup() throws CredentialAlreadyExistsException {\n \t\tLocalDate now_ld = LocalDate.now();\n \t\tuser1 = new User(\"[email protected]\", \"FirstName1\", \"LastName1\", now_ld, null);\n \t\tuser2 = new User(\"[email protected]\", \"FirstName2\",\"LastName2\", now_ld, null);\n \t\t\n \t\t// Add credentials to the database to use for testing if they don't already exist.\n \t\tpassword1 = \"testuser11234\";\n \t\tpassword2 = \"testuser21234\";\n\t credentialUser = new Credential(\"testuser1\", password1, user1); \n\t credentialAdmin = new Credential(\"testuser2\", password2, user2);\n\t credentialAdmin.setUserRole(\"ROLE_ADMIN\");\n\t \n\t credentialUser = credentialService.add(credentialUser);\n\t credentialAdmin = credentialService.add(credentialAdmin); \n\t}", "@Override\n\tpublic void authenticationFinished(String failureCause) {\n\t\tfetched();\n\t\tif (failureCause == null) {\n\t\t\tfinish();\n\t\t} else {\n\t\t\tToast.makeText(this, failureCause, Toast.LENGTH_SHORT).show();\n\t\t\tthis.mAuthUsername.getText().clear();\n\t\t\tthis.mAuthPassword.getText().clear();\n\t\t\t// TODO give focus to authUsername?\n\t\t}\n\t}", "public boolean isAuthRequired() {\n return !AfUtil.anyEmpty(_username);\n }", "public CheckUserCredentials(HttpServletRequest request, HttpServletResponse response) {\n super(request, response);\n this.mail = \"\";\n this.password = null;\n }", "@Override\n public void onAuthenticationFailed() {\n }", "@Override\n protected void onFailureComponentConnectionRequest(PlatformComponentProfile remoteParticipant) {\n System.out.println(\"************ Crypto Addresses -> FAILURE CONNECTION.\");\n checkFailedDeliveryTime(remoteParticipant.getIdentityPublicKey());\n }", "boolean isValidCredential(String username, String password);", "public void verify() {\n lblTheDatabaseNameIsEmpty();\n lblDatabaseName();\n lblUserName();\n lblPassword();\n lblDatabaseLocation();\n txtPassword();\n txtUserName();\n txtDatabaseLocation();\n btSettings();\n txtDatabaseName();\n btCancel();\n btOK();\n }", "@Test(expected=IllegalStateException.class)\n public void verifyThatRequestBeforeInitialization() {\n verifyThatRequest();\n fail(\"cannot do verification, Jadler hasn't been initialized yet\");\n }", "@Test\n public void testNullCredential(final TestContext aContext) {\n final Async asyncTask = aContext.async();\n final JsonObject nullConfigs = myConfigs;\n\n nullConfigs.put(IIIF_USERNAME, (String) null);\n nullConfigs.put(IIIF_PASSWORD, (String) null);\n\n deployNewVerticle(nullConfigs).onFailure(failure -> {\n TestUtils.complete(asyncTask);\n }).onSuccess(success -> {\n aContext.fail();\n });\n }", "boolean authNeeded();", "@Test\n\t void testCredentialsNonExpired() {\n\t\tassertTrue(user.isCredentialsNonExpired());\n\t}", "Boolean checkCredentials(ClientCredentialsData clientData) throws AuthenticationException;", "@Test\n public void testWebAuthnIDLessWithNonResidentCredentialLogin() throws IOException {\n\n configureUser(username, false, true, true);\n initializeAuthenticator(false, true, true, true);\n setWebAuthnRealmSettings(false, false, false, true);\n\n // Trigger webauthn-passwordless (non resident key setup)\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String credentialId = usernamePasswordAuthWithAuthSetup(username, true, false);\n\n setUpIDLessOnlyFlow(\"idless-only-flow\");\n idlessAuthentication(username, credentialId, false, false);\n\n }", "public void testCtor_Failure() {\r\n try {\r\n new TCAuthToken(0);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n //success\r\n }\r\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateSecretNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.createSecret(null).execute();\n }", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "@Test(expected=UnauthorizedException.class)\n\tpublic void testA()\n\t{\n\t\tSystem.out.println(\"Test A\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tsecretService.readSecret(\"Bob\", aliceSecret);\n\t}", "@PostConstruct\n protected void checkInitialization() {\n ValidationUtility.checkNotNullNorEmpty(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n ValidationUtility.checkNotNullElements(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n }", "@Test(expected = UserLoginException.class)\n public void testBidderThatIsNotAuthenticatedCantBid(){\n knownUsers.login(seller.userName(), seller.password());\n knownUsers.annointSeller(seller.userName());\n\n Auction testAuction = new Auction(seller, item, startingPrice, startTime, endTime);\n testAuction.onStart();\n\n Bid firstBid = new Bid(bidder, startingPrice, startTime.plusMinutes(2));\n\n testAuction.submitBid(firstBid);\n\n }", "@Test\n public void existingUserOK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"secret\", 0); \n //Then\n assertThat(result, is(true));\n }", "@Override\n protected void checkCredential(CredentialChecker checker) {\n checker.check(UserPasswordCredential.class, credential -> {\n return memberBhv.selectCount(cb -> arrangeLoginByCredential(cb, credential)) > 0;\n });\n }", "public void testCtor_Failure1() {\r\n try {\r\n new TCAuthToken(-2);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n //success\r\n }\r\n }", "@Test\n\tpublic void testAuthenticateUserBadPassword() {\n\t\tgiven(userRepository.findByLogin(anyString())).willReturn(new UserBuilder(USER_RETURNED).password(\"\").build());\n\n\t\t// make the service call\n\t\tThrowable thrown = catchThrowable(() -> { authService.authenticateUser(USER); } );\n\t\tassertThat(thrown).isNotNull().isInstanceOf(UnauthorizedException.class).hasMessageContaining(\"Invalid login/password\");\n\t}", "@Test(expectedExceptions = ConstraintViolationException.class)\n public void testFailureNullStrategyMetadataContext() {\n action = new PopulateOIDCEncryptionParameters();\n action.setOIDCMetadataContextContextLookupStrategy(null);\n }", "public void initialize(AS400BasicAuthenticationPrincipal principal,\n String password, boolean isPrivate, boolean isReusable, \n boolean isRenewable, int timeoutInterval)\n throws Exception {\n if (Trace.isTraceOn())\n Trace.log(Trace.INFORMATION,\n new StringBuffer(\"Initializing credential >> \"\n ).append(toString()\n ).append(\", for principal >> \"\n ).append(principal.toString()\n ).append(\", isPrivate == \"\n ).append(isPrivate\n ).append(\", isReusable == \"\n ).append(isReusable\n ).append(\", isRenewable == \"\n ).append(isRenewable\n ).append(\", timeoutInterval == \"\n ).append(timeoutInterval\n ).toString());\n\n // Validate parameters\n if (isRenewable && !isReusable) {\n Trace.log(Trace.ERROR, \"Profile tokens must be multi-use\" +\n \" if declared as regenerable.\");\n throw new ExtendedIllegalArgumentException(\"isReusable\",\n ExtendedIllegalArgumentException.PARAMETER_VALUE_NOT_VALID);\n }\n // Assign to the local host system\n AS400 sys = AuthenticationSystem.localHost();\n setSystem(sys);\n // Assign an appropriate principal\n AS400Principal pr =\n (AS400Principal.class.isAssignableFrom(principal.getClass()))\n ? (AS400Principal)principal\n : new UserProfilePrincipal(sys, principal.getUserProfileName());\n setPrincipal(pr);\n // Assign profile token attributes\n private_ = isPrivate;\n setTimeoutInterval(timeoutInterval);\n if (isRenewable) setTokenType(TYPE_MULTIPLE_USE_RENEWABLE);\n else if (isReusable) setTokenType(TYPE_MULTIPLE_USE_NON_RENEWABLE);\n else setTokenType(TYPE_SINGLE_USE);\n // Generate the token\n setTokenExtended(pr, password);\n }", "@Test\n public void testSynchronizedSyncAfterFailed() throws AuthException, IOException {\n doThrow(IOException.class).doNothing().when(synchronizer).sync();\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.PREAUTHED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.AUTHED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.FAILED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.SYNCED, presenter.status);\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "public void verifyFalseLogin() {\n alertElement.waitForState().present(30);\n alertElement.assertContains().text(\"Please Enter a Valid User ID\");\n }", "@Override\n\t\t\t\tpublic boolean isCredentialsNonExpired() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Test\n public void testFailureNotIssuedParUsed() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.FALSE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, oidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request\n // but not use issued request_uri\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(201, pResp.getStatusCode());\n\n // Authorization Request with request_uri of PAR\n // remove parameters as query strings of uri\n // use not issued request_uri\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(IMAGINARY_REQUEST_URI);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n UriBuilder b = UriBuilder.fromUri(oauth.getLoginFormUrl());\n driver.navigate().to(b.build().toURL());\n OAuthClient.AuthorizationEndpointResponse errorResponse = new OAuthClient.AuthorizationEndpointResponse(oauth);\n Assert.assertFalse(errorResponse.isRedirected());\n }", "@Test\n public void testRegisterBackupDeviceNotPossibleIfNoPrimaryDevicePresent() throws Exception {\n clearAllMultifactorDevices();\n\n //This should fail, because no primary device is present for the user\n thrown.expect(AssertionError.class);\n thrown.expectMessage(containsString(\"Primary authentication devices must be set up before backup devices\"));\n doStartRegistration();\n }", "@Test\n public void should_recognize_if_adversary_obtained_authenticator_from_trusted_device_and_tried_connect_under_a_different_user() throws SignatureException {\n final IUserProvider up = getInstance(IUserProvider.class);\n up.setUsername(UNIT_TEST_USER, getInstance(IUser.class));\n final User currUser = getInstance(IUserProvider.class).getUser();\n\n // first session is from trusted device\n constants.setNow(dateTime(\"2015-04-23 11:00:00\"));\n coSession.newSession(currUser, true, null);\n\n // second session, also from a trusted device, the authenticator from this device got stolen\n constants.setNow(dateTime(\"2015-04-23 13:00:00\"));\n final UserSession newSession = coSession.newSession(currUser, true, null);\n final String authenticator = newSession.getAuthenticator().get().toString();\n\n\n // now let's move the clock 30 minutes forward to emulate a time change\n // adversary tries to reuse a completely valid and not yet expired authenticator to access the system under a different username\n constants.setNow(dateTime(\"2015-04-23 13:30:00\"));\n up.setUsername(\"USER1\", getInstance(IUser.class));\n final User differentUser = getInstance(IUserProvider.class).getUser();\n\n final Optional<UserSession> session = coSession.currentSession(differentUser, authenticator, false);\n assertFalse(session.isPresent());\n\n // additionally, let's also check that all sessions for a compromised user have been removed, but not the sessions for other users\n final EntityResultQueryModel<UserSession> currUserSessions = select(UserSession.class).where().prop(\"user\").eq().val(currUser).model();\n final EntityResultQueryModel<UserSession> otherSessions = select(UserSession.class).where().prop(\"user\").ne().val(currUser).model();\n\n assertEquals(0, coSession.count(currUserSessions));\n assertEquals(2, coSession.count(otherSessions));\n }", "@Override\r\n\tpublic Credential getCredential() {\n\t\treturn null;\r\n\t}", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"VectorStack object is not initialized \" +\n \"properly.\");\n }", "@Test\n public void testFailureParUsedByOtherClient() throws Exception {\n // create client dynamically\n String victimClientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation victimOidcCRep = getClientDynamically(victimClientId);\n String victimClientSecret = victimOidcCRep.getClientSecret();\n assertEquals(Boolean.FALSE, victimOidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(victimOidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, victimOidcCRep.getTokenEndpointAuthMethod());\n\n authManageClients();\n\n String attackerClientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation attackerOidcCRep = getClientDynamically(attackerClientId);\n assertEquals(Boolean.TRUE, attackerOidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(attackerOidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, attackerOidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request\n oauth.clientId(victimClientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(victimClientId, victimClientSecret);\n assertEquals(201, pResp.getStatusCode());\n String requestUri = pResp.getRequestUri();\n\n // Authorization Request with request_uri of PAR\n // remove parameters as query strings of uri\n // used by other client\n oauth.clientId(attackerClientId);\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUri);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n UriBuilder b = UriBuilder.fromUri(oauth.getLoginFormUrl());\n driver.navigate().to(b.build().toURL());\n OAuthClient.AuthorizationEndpointResponse errorResponse = new OAuthClient.AuthorizationEndpointResponse(oauth);\n Assert.assertFalse(errorResponse.isRedirected());\n }", "@Test\n\tpublic void testLoginAdminAccountWithInvalidCredentials() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.loginAdminAccount(USERNAME2, PASSWORD1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Username or password incorrect. Please try again.\", error);\n\t}", "private void providerCheckAESCrypto() throws NoAlgorithmAvailableException {\n final LinkedList<String> algorithms = super.providerCheck();\n if (algorithms.contains(\"PBKDF2WithHmacSHA256\")) {\n PBE_ALGORITHM = \"PBKDF2WithHmacSHA256\";\n } else if (algorithms.contains(\"PBKDF2WithHmacSHA1\")) {\n PBE_ALGORITHM = \"PBKDF2WithHmacSHA1\";\n } else {\n throw new NoAlgorithmAvailableException(NO_ALG_MSG);\n }\n }", "@Test\n\tpublic void testAuthenticateUserNullUser() {\n\t\t\n\t\tThrowable thrown = catchThrowable(() -> { authService.authenticateUser(null); } );\n\t\tassertThat(thrown).isNotNull().isInstanceOf(IllegalArgumentException.class).hasMessageContaining(\"Missing login and/or password\");\n\t}", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "@Test\n @Bug(bug=70720)\n public void errorHandling() throws Exception {\n Map<String, Object> domainAttrs = Maps.newHashMap();\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapURL, \"ldap://localhost:389\");\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapAdminBindDn, extDomainAdminBindDn);\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapAdminBindPassword, extDomainAdminBindPassword);\n StringUtil.addToMultiMap(domainAttrs, Provisioning.A_zmailAutoProvMode, AutoProvMode.LAZY.name());\n StringUtil.addToMultiMap(domainAttrs, Provisioning.A_zmailAutoProvMode, AutoProvMode.MANUAL.name());\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(cn=auth*)\");\n // domainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(cn=%n)\");\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n domainAttrs.put(Provisioning.A_zmailAutoProvAccountNameMap, \"cn\");\n domainAttrs.put(Provisioning.A_zmailAutoProvAttrMap, \"userPassword=userPassword\");\n Domain domain = createZmailDomain(genDomainSegmentName(), domainAttrs);\n \n /*\n * create external accounts\n */\n Map<String, Object> extAcct1Attrs = Maps.newHashMap();\n extAcct1Attrs.put(\"cn\", \"authaccount01\");\n createExternalAcctEntry(\"acct1\", \"test123\", extAcct1Attrs);\n \n Map<String, Object> extAcct2Attrs = Maps.newHashMap();\n extAcct2Attrs.put(\"cn\", \"authaccount02\");\n createExternalAcctEntry(\"acct2\", \"test123\", extAcct2Attrs);\n \n Map<String, Object> extAcct3Attrs = Maps.newHashMap();\n extAcct3Attrs.put(\"cn\", \"authaccount03\");\n createExternalAcctEntry(\"acct3\", \"test123\", extAcct3Attrs);\n \n Map<String, Object> extAcct4Attrs = Maps.newHashMap();\n extAcct4Attrs.put(\"cn\", \"authaccount04\");\n createExternalAcctEntry(\"acct4\", \"test123\", extAcct4Attrs);\n \n /*\n * do a manual auto provision\n */\n SoapTransport transport = authZmailAdmin();\n DomainSelector domainSel = new DomainSelector(DomainSelector.DomainBy.name, domain.getName());\n PrincipalSelector principalSel = PrincipalSelector.create(AutoProvPrincipalBy.name, \"authaccount04\");\n AutoProvAccountRequest req = AutoProvAccountRequest.create(domainSel, principalSel);\n \n boolean caughtException = false;\n try {\n invokeJaxb(transport, req);\n } catch (ServiceException e) {\n String msg = e.getMessage();\n \n if (e.getCode().equals(LdapException.MULTIPLE_ENTRIES_MATCHED) &&\n msg.contains(String.format(\"uid=acct1,ou=people,%s\", extDomainDn)) && \n msg.contains(String.format(\"uid=acct2,ou=people,%s\", extDomainDn)) &&\n msg.contains(String.format(\"uid=acct3,ou=people,%s\", extDomainDn)) && \n msg.contains(String.format(\"uid=acct4,ou=people,%s\", extDomainDn))) {\n caughtException = true;\n }\n }\n assertTrue(caughtException);\n \n /*\n * modify domain to have the correct search filter\n */\n domain.setAutoProvLdapSearchFilter(\"(cn=%n)\");\n \n /*\n * do the manual provision, should succeed this time\n */\n AutoProvAccountResponse resp = invokeJaxb(transport, req);\n AccountInfo acctInfo = resp.getAccount();\n assertEquals(TestUtil.getAddress(\"authaccount04\", domain.getName()), acctInfo.getName());\n \n /*\n * do the same manual provision again, should fail with \n */\n caughtException = false;\n try {\n invokeJaxb(transport, req);\n } catch (ServiceException e) {\n String msg = e.getMessage();\n \n if (e.getCode().equals(AccountServiceException.ACCOUNT_EXISTS)) {\n caughtException = true;\n }\n }\n assertTrue(caughtException);\n \n /*\n <CreateDomainRequest xmlns=\"urn:zmailAdmin\">\n <name>autoprov44.1330496906457.com</name>\n <a n=\"zmailAutoProvLdapURL\">ldap://zqa-003.eng.vmware.com:389/</a>\n <a n=\"zmailAutoProvLdapAdminBindDn\">[email protected]</a>\n <a n=\"zmailAutoProvLdapAdminBindPassword\">liquidsys</a>\n <a n=\"zmailAutoProvMode\">LAZY</a>\n <a n=\"zmailAutoProvMode\">MANUAL</a>\n <a n=\"zmailAutoProvLdapSearchFilter\">(cn=auth*)</a>\n <a n=\"zmailAutoProvLdapSearchBase\">OU=CommonUsers,DC=zmailqa,DC=com</a>\n <a n=\"zmailAutoProvAccountNameMap\">cn</a>\n <a n=\"zmailAutoProvAttrMap\">userPassword=userPassword</a>\n </CreateDomainRequest>\n \n zmsoap -z AutoProvAccountRequest domain=bug70720.org.zmail.qa.unittest.prov.soap.testautoprovision.soaptest.unittest @by=name ../principal=authaccount04 @by=name \n \n this zmsoap yields the following soap:\n \n <AutoProvAccountRequest xmlns=\"urn:zmailAdmin\">\n <domain by=\"name\">bug70720.org.zmail.qa.unittest.prov.soap.testautoprovision.soaptest.unittest</domain>\n <principal by=\"name\">authaccount04</principal>\n </AutoProvAccountRequest>\n */\n }" ]
[ "0.5942525", "0.5859982", "0.5840442", "0.58073145", "0.5717947", "0.5711746", "0.57056683", "0.55719435", "0.55430025", "0.5540836", "0.5510265", "0.547636", "0.5445034", "0.543959", "0.5417495", "0.5354921", "0.5345121", "0.5304909", "0.52851176", "0.5281387", "0.5276959", "0.5271076", "0.5251949", "0.52250373", "0.5196166", "0.51949835", "0.5188639", "0.5188252", "0.5181538", "0.5176791", "0.51678914", "0.515071", "0.5103698", "0.5091392", "0.508874", "0.50874335", "0.5087102", "0.50694954", "0.50553775", "0.505444", "0.5032133", "0.5027663", "0.5026469", "0.5020789", "0.5019311", "0.5013603", "0.5013508", "0.497278", "0.49725586", "0.49646616", "0.49638033", "0.49565738", "0.49495205", "0.49466404", "0.49463475", "0.49440253", "0.49407762", "0.49294874", "0.4923062", "0.4916141", "0.49152339", "0.49119675", "0.49081045", "0.49073136", "0.49015096", "0.4887244", "0.4874213", "0.48596516", "0.48540187", "0.48527902", "0.4850627", "0.4846246", "0.48456806", "0.4840924", "0.48398477", "0.48191297", "0.48148975", "0.48129845", "0.48093766", "0.48074368", "0.4805738", "0.48034632", "0.48003587", "0.47896755", "0.47868028", "0.47868028", "0.47868028", "0.4785987", "0.47827408", "0.47759655", "0.47671688", "0.47650647", "0.4764299", "0.47584575", "0.47538635", "0.47531053", "0.47524187", "0.47506228", "0.47502923", "0.47451305" ]
0.75881326
0
Ensure that the "exclude credentials" functionality keeps us from creating a new credential when an excluded credential is known.
@Test public void testExcludeCredentials() throws VirgilException, WebAuthnException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject firstAttestationObject = authenticator.makeCredential(makeCredentialOptions); // Now we want to pull out the ID of the just-created credential, add it to the exclude list, // and ensure that we see a failure when creating a second credential. makeCredentialOptions.excludeCredentialDescriptorList.add(new PublicKeyCredentialDescriptor("public-key", firstAttestationObject.getCredentialId(), null)); try { AttestationObject secondAttestationObject = authenticator.makeCredential(makeCredentialOptions); Assert.fail("makeCredential should have failed due to a matching credential ID in the exclude list"); } catch (InvalidStateError e) { // good! the matching credential descriptor caused the authenticator to reject the request } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean exclude(V1Secret secret);", "@Override\r\n\tpublic boolean needsCredentials() {\n\t\treturn false;\r\n\t}", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\r\n\tpublic Credential getCredential() {\n\t\treturn null;\r\n\t}", "@Test\n public void testAllowCredentialsEmpty() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n\n AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON);\n getAssertionOptions.allowCredentialDescriptorList.clear();\n authenticator.getAssertion(getAssertionOptions, new CredentialSelector() {\n @Override\n public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) {\n return credentialList.get(0);\n }\n });\n }", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn true;\n}", "private void isCredentialsPresent(String message) {\n if (!credentials.isPresent()) {\n throw new IllegalArgumentException(message + \" requires a valid api url but is missing\");\n }\n }", "@Test\n public void testInvalidCredential(final TestContext aContext) {\n final Async asyncTask = aContext.async();\n final JsonObject newConfigs = myConfigs;\n\n newConfigs.put(IIIF_USERNAME, \"username\");\n newConfigs.put(IIIF_PASSWORD, \"password\");\n\n deployNewVerticle(newConfigs).onFailure(failure -> {\n TestUtils.complete(asyncTask);\n }).onSuccess(success -> {\n aContext.fail();\n });\n }", "public ExternallyOwnedAccount() {}", "@Override\n public boolean isCredentialsNonExpired() {\n return true;\n }", "@Override\n\t\t\t\tpublic boolean isCredentialsNonExpired() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "ExcludeType createExcludeType();", "public boolean isSecret() {\r\n \treturn false;\r\n }", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\npublic boolean isAccountNonLocked() {\n\treturn false;\n}", "public void setExcludes(String excludes)\n {\n this.excludes = excludes;\n }", "@Override\n\tpublic List<Admin> validateCred(String username, String password) {\n\t\treturn null;\n\t}", "@Override\r\n public boolean isCredentialsNonExpired() {\r\n return true;\r\n }", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate synchronized void excludePlayer() throws RemoteException\n\t{\n\t\tPlayerInterface pi;\n\t\tData privateData;\n\t\tData data = this.toExecute.data;\n\t\tPlayerInterface playerToExclude = this.toExecute.player;\n\n\t\tplayerToExclude.excludePlayer();\n\t}", "@Override\n public boolean isAccountNonLocked() {\n return false;\n }", "@Override\n public boolean isAccountNonLocked() {\n return false;\n }", "@Override\n public boolean isAccountNonLocked() {\n return false;\n }", "@BeforeAll\n\tpublic void setup() throws CredentialAlreadyExistsException {\n \t\tLocalDate now_ld = LocalDate.now();\n \t\tuser1 = new User(\"[email protected]\", \"FirstName1\", \"LastName1\", now_ld, null);\n \t\tuser2 = new User(\"[email protected]\", \"FirstName2\",\"LastName2\", now_ld, null);\n \t\t\n \t\t// Add credentials to the database to use for testing if they don't already exist.\n \t\tpassword1 = \"testuser11234\";\n \t\tpassword2 = \"testuser21234\";\n\t credentialUser = new Credential(\"testuser1\", password1, user1); \n\t credentialAdmin = new Credential(\"testuser2\", password2, user2);\n\t credentialAdmin.setUserRole(\"ROLE_ADMIN\");\n\t \n\t credentialUser = credentialService.add(credentialUser);\n\t credentialAdmin = credentialService.add(credentialAdmin); \n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired()\n\t{\n\t\treturn true;\n\t}", "@Override\n public boolean isCredentialsNonExpired() {\n return Boolean.TRUE;\n }", "public interface CredentialConnector {\n\n /**\n * Check whether the credential (e.g public key) associated with a stack (cluster) has present on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Create the credential (e.g public key) associated with a stack (cluster) on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Interactive login for credential creation.\n *\n * @return parameters for interactive login\n */\n Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);\n\n /**\n * Delete the credential (e.g public key) associated with a stack (cluster) from Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);\n\n}", "public static final void exclude(@NonNull Activity context) {\n if (sInstance != null) {\n String hash = getHash(context);\n sInstance.excludeList.add(hash);\n }\n }", "@Test\n @Order(2)\n public void deleteCredential() throws InterruptedException {\n List<WebElement> credentials = home.getCredentialItems();\n int initialCredentialsCount = credentials.size();\n\n int credentialPosition = new Random().nextInt(credentials.size() - 1);\n WebElement deleteCredentialButton = credentials.get(credentialPosition).findElement(By.id(\"deleteCredentialBtn\"));\n\n // For additional check\n String currentDeleteUrl = deleteCredentialButton.getAttribute(\"href\");\n deleteCredentialButton.click();\n\n moveToCredentialsTab();\n assertEquals(home.getCredentialItems().size(), initialCredentialsCount - 1);\n\n boolean stillExists = false;\n for (WebElement webElement : home.getCredentialItems()){\n deleteCredentialButton = webElement.findElement(By.id(\"deleteCredentialBtn\"));\n stillExists = deleteCredentialButton.getAttribute(\"href\").equals(currentDeleteUrl);\n\n if(stillExists) break;\n }\n\n assertFalse(stillExists);\n\n home.logout();\n }", "static void exclude(User user, String content, MessageChannel chan) {\n if(!content.toLowerCase().startsWith(\"!exclude \"))\n return;\n\n ArrayList<String> tagList = new ArrayList<>(Arrays.asList(\n content.substring(\"!exclude \".length()).split(\" \")));\n ArrayList<String> excludeList = new ArrayList<>(Arrays.asList(\n excludeMap.getOrDefault(user.getIdLong(), \"\").split(\" \")));\n boolean changed = false;\n\n for(String tag : tagList){\n tag = tag.replaceAll(\"\\\\s\",\" \");\n if(!tag.startsWith(\"-\")){\n tag = \"-\" + tag;\n }\n if(!excludeList.contains(tag)){\n excludeList.add(tag);\n changed = true;\n }\n }\n\n if(changed){\n StringBuilder sb = new StringBuilder();\n for(String exclude : excludeList)\n sb.append(exclude).append(\" \");\n\n // will update list\n excludeMap.put(user.getIdLong(), sb.toString().trim());\n if(!saveMap(excludeMap, Config.exclude_data_filename)){\n chan.sendMessage(\"Couldn't save your exclude list, probably due to me being in test mode.\" +\n \" Sorry!\").queue();\n }\n else {\n chan.sendMessage(\"Ok. Exclude list is now: \" + sb).queue();\n }\n }\n else {\n chan.sendMessage(\"Exclude list is unchanged: \" + excludeMap.get(user.getIdLong())).queue();\n }\n\n }", "private void denyAccessWithRoleCondition(boolean negateOutput) {\n final String flowAlias = \"browser-deny\";\n final String userWithRole = \"test-user@localhost\";\n final String userWithoutRole = \"john-doh@localhost\";\n final String role = \"offline_access\";\n final String errorMessage = \"Your account doesn't have the required role\";\n\n Map<String, String> config = new HashMap<>();\n config.put(ConditionalRoleAuthenticatorFactory.CONDITIONAL_USER_ROLE, role);\n config.put(ConditionalRoleAuthenticatorFactory.CONF_NEGATE, Boolean.toString(negateOutput));\n\n Map<String, String> denyConfig = new HashMap<>();\n denyConfig.put(DenyAccessAuthenticatorFactory.ERROR_MESSAGE, errorMessage);\n\n configureBrowserFlowWithDenyAccessInConditionalFlow(flowAlias, ConditionalRoleAuthenticatorFactory.PROVIDER_ID, config, denyConfig);\n\n denyAccessInConditionalFlow(flowAlias,\n negateOutput ? userWithoutRole : userWithRole,\n negateOutput ? userWithRole : userWithoutRole,\n errorMessage\n );\n }", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn credentialsNonExpired;\n\t}", "protected boolean skipSecure(AttrValueDTO av, AttributeDTO attribute, boolean includeSecure) {\n if (includeSecure) {\n return false;\n }\n return attribute == null || attribute.isSecure();\n }", "@Override\npublic boolean isAccountNonLocked() {\n\treturn true;\n}", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Test\n public void testExcludesuser() throws Exception {\n String testName = \"excludesuser\";\n EkstaziPaths.removeEkstaziDirectories(getClass(), testName);\n executeCleanTestStep(testName, 0, 2);\n }", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "void setCredentialsNonExpired(boolean credentialsNonExpired);", "@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}", "@Override\n public boolean isAccountNonLocked() {\n return true;\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Test\n public void testSkipExecutionUserHasNotRoleCondition() {\n final String userWithoutRole = \"john-doh@localhost\";\n final String role = \"offline_access\";\n final String newFlowAlias = \"browser - allow skip\";\n\n Map<String, String> configMap = new HashMap<>();\n configMap.put(ConditionalRoleAuthenticatorFactory.CONDITIONAL_USER_ROLE, role);\n configMap.put(ConditionalRoleAuthenticatorFactory.CONF_NEGATE, \"false\");\n\n configureBrowserFlowWithSkipExecutionInConditionalFlow(newFlowAlias, ConditionalRoleAuthenticatorFactory.PROVIDER_ID, configMap);\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userWithoutRole);\n\n final String testUserWithoutRoleId = testRealm().users().search(userWithoutRole).get(0).getId();\n\n passwordPage.assertCurrent();\n passwordPage.login(\"password\");\n\n events.expectLogin()\n .user(testUserWithoutRoleId)\n .detail(Details.USERNAME, userWithoutRole)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), newFlowAlias);\n }\n }", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "@Override\r\n public boolean isAccountNonLocked() {\r\n return true;\r\n }", "void denyRegistration(String login);", "@Override\r\n\tpublic boolean hasCredential(String[] roles) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn isCredentialsNonExpired;\n\t}", "public boolean isExempt();", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "static void ignore() {\n }", "@Test\n public void testFailureOnVerificationRequiredWithoutSupport() throws WebAuthnException, VirgilException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n makeCredentialOptions.requireUserVerification = true;\n makeCredentialOptions.requireUserPresence = false;\n\n try {\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n Assert.fail(\"makeCredential should have failed without biometric support\");\n } catch (ConstraintError e) {\n // success! any other exception is a failure\n }\n }", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "public void testImportArtifactWithoutCredentialsFail() throws Exception {\n try {\n org.osgi.service.cm.Configuration configuration = m_configAdmin.getConfiguration(m_authConfigPID);\n assertNotNull(configuration);\n\n // Delete the credentials for the OBR-URL, thereby simulating wrong credentials for the OBR...\n configuration.delete();\n\n // Use a valid JAR file, with a Bundle-SymbolicName header.\n File temp = FileUtils.createEmptyBundle(\"org.apache.ace.test3\", new Version(1, 0, 0));\n temp.deleteOnExit();\n\n try {\n m_artifactRepository.importArtifact(temp.toURI().toURL(), true /* upload */); // should fail!\n fail(\"IOException expected!\");\n }\n catch (IOException exception) {\n // Ok; expected...\n }\n }\n catch (Exception e) {\n printLog(m_logReader);\n throw e;\n }\n }", "public StringConf exclude(String value) { \n excludes.add(value); \n return this;\n }", "public void testInvalidAuthenticationCredentials() throws Exception {\n client = new PaysafeApiClient(\"username\", \"password\", Environment.TEST, merchantAccountNumber);\n\n try {\n SingleUseToken sObjResponse = client.customerVaultService().createSingleUseToken(\n SingleUseToken.builder()\n .card()\n .holderName(\"Mr. John Smith\")\n .cardNum(\"4917480000000008\")\n .cardExpiry()\n .month(7)\n .year(2019)\n .done()\n .billingAddress()\n .street(\"100 Queen Street West\")\n .street2(\"Unit 201\")\n .city(\"Toronto\")\n .country(\"CA\")\n .state(\"ON\")\n .zip(\"M5H 2N2\")\n .done()\n .done()\n .build());\n\n Assert.assertEquals(\"5279\", sObjResponse.getError().getCode());\n Assert.assertEquals(\"The authentication credentials are invalid.\",\n sObjResponse.getError().getMessage());\n\n } catch (IOException ioExp) {\n // Log IO Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + ioExp.getMessage());\n } catch (PaysafeException oExp) {\n // Log Paysafe Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + oExp.getMessage());\n } catch (Exception e) {\n // Log Exception\n if(Constants.DEBUG_LOG_VALUE)\n Utils.debugLog(\"EXCEPTION TEST: \" + e.getMessage());\n }\n }", "@Test\n public void testGetKafkaCredentialsFromVaultInvalidUrl() {\n Map<String, Map<String, String>> credentials =\n getKafkaCredentialsFromVault(\"some-url\", \"some-token\");\n Assert.assertEquals(new HashMap<>(), credentials);\n }", "@Test\n\tpublic void loginWithInvalidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_INVALID.username, Credentials.USER_INVALID.password);\n\t\tassertTrue(app.loginScreen().isActive());\n\t}", "public void removeCredentialsFromCurrentThread() {\n\t\tthis.threadBoundCredentials.set(null);\n\t}", "public void setExempt(boolean exempt);", "boolean isExcluded();", "@Override\n public boolean isSecretRequired() {\n\t return getClientSecret() != null;\n }", "static void excludes(User user, String content, MessageChannel chan) {\n if(content.toLowerCase().equals(\"!excludes\")){\n String excludes = excludeMap.get(user.getIdLong());\n if(excludes == null){\n chan.sendMessage(\"None given.\").queue();\n return;\n }\n chan.sendMessage(\"Your exclude tags: \" + excludes).queue();\n }\n else if(content.toLowerCase().equals(\"!excludes clear\")){\n excludeMap.remove(user.getIdLong());\n saveMap(excludeMap, Config.exclude_data_filename);\n chan.sendMessage(\"Ok, removed all excludes.\").queue();\n }\n }", "protected Permissions getExcludedPolicy(){\n\treturn stateIs(INSERVICE_STATE) ? this.excludedPermissions : null;\n }", "void setExcludeList(SynchronizationRequest req, Zipper zipper) {\n\n try { \n String serverName = req.getServerName();\n List list = (List)_excludeCache.get(serverName);\n if (list == null) {\n Properties env = req.getEnvironmentProperties();\n // admin config context\n ConfigContext ctx = _ctx.getConfigContext();\n Domain domain = (Domain) ctx.getRootConfigBean();\n Server server = domain.getServers().getServerByName(serverName);\n if (server != null) {\n ServerDirector director=new ServerDirector(ctx, serverName);\n List excludes = director.constructExcludes();\n list = new ArrayList();\n int size = excludes.size();\n for (int i=0; i<size; i++) {\n String path = (String) excludes.get(i);\n String tPath = \n TextProcess.tokenizeConfig(path, serverName, env);\n list.add(tPath);\n }\n // add the list to the cache\n _excludeCache.put(serverName, list);\n }\n }\n _logger.log(Level.FINE, \"Excluded List \" + list);\n zipper.addToExcludeList(list);\n } catch (Exception e) {\n _logger.log(Level.FINE, \"Excluded List can not be set\", e);\n }\n }", "public CredentialValidationResult validate(UsernamePasswordCredential unpc){\r\n \r\n \r\n return null;\r\n}", "public Credentials()\n {\n this(null, null, null, null);\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "protected boolean skipSecure(VoAttrValue av, VoAttribute attribute, boolean includeSecure) {\n if (includeSecure) {\n return false;\n }\n return attribute == null || attribute.isSecure();\n }", "public void testIncorrectUserPassword() {\n final String key = \"mysecret\";\n final String value = \"keepsafe\";\n\n SecurePreferences securePrefs = new SecurePreferences(getContext(), \"password\", USER_PREFS_WITH_PASSWORD);\n securePrefs.edit().putString(key, value).commit();\n securePrefs=null;\n\n SecurePreferences securePrefsWithWrongPass = new SecurePreferences(getContext(), \"incorrectpassword\", USER_PREFS_WITH_PASSWORD);\n String myValue = securePrefsWithWrongPass.getString(key, null);\n if(value.equals(myValue)){\n fail(\"Using the wrong password, should not return the decrpyted value\");\n }\n\n }", "@When(\"^user logsin again with his credentials$\")\n public void user_logsin_again_with_his_credentials() throws Throwable {\n throw new PendingException();\n }", "@Test\n public void testNotAuthorizedRemoveUser() throws IOException {\n testUserId2 = createTestUser();\n\n String userId = createTestUser();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n\n String getUrl = String.format(\"%s/system/userManager/user/%s.json\", baseServerUri, userId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n Credentials creds2 = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n String postUrl = String.format(\"%s/system/userManager/user/%s.delete.html\", baseServerUri, userId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds2, postUrl, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n }", "List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();", "@Override\npublic boolean isAccountNonExpired() {\n\treturn false;\n}", "@And(\"^user is not authenticated$\")\n public void userIsNotAuthenticated() throws Throwable {\n }", "@Override\r\n\tpublic void testPrivateBelongsToOtherUser() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateBelongsToOtherUser();\r\n\t\t}\r\n\t}" ]
[ "0.6426336", "0.583285", "0.54910314", "0.5371195", "0.5371195", "0.5371195", "0.5336838", "0.52769685", "0.5273922", "0.5264221", "0.5246806", "0.52447563", "0.5235028", "0.523081", "0.52200776", "0.5211205", "0.5183199", "0.51736426", "0.51736426", "0.51653594", "0.51653594", "0.51653594", "0.51613164", "0.5158327", "0.5147147", "0.5134981", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5114822", "0.5099111", "0.50619125", "0.50619125", "0.50619125", "0.5051639", "0.5048259", "0.5040733", "0.50400716", "0.5038289", "0.503724", "0.5023494", "0.5020636", "0.50003666", "0.5000277", "0.49958363", "0.4995755", "0.49864298", "0.49792144", "0.4971216", "0.49646327", "0.4962538", "0.49607792", "0.49607792", "0.49583763", "0.49534303", "0.49438566", "0.4913527", "0.49102554", "0.49081185", "0.49049917", "0.48991823", "0.4898767", "0.4898767", "0.48914126", "0.48911217", "0.48842436", "0.4874509", "0.4870204", "0.4863722", "0.48587057", "0.48554623", "0.48546103", "0.48542595", "0.484983", "0.4848766", "0.4831958", "0.48302627", "0.48289865", "0.482403", "0.48077282", "0.47801983", "0.47736448", "0.47581074", "0.47526252", "0.47509807", "0.47421354", "0.47388348", "0.4733205", "0.47225568" ]
0.78628343
0
Make sure that we can pass an empty allowed credentials list.
@Test public void testAllowCredentialsEmpty() throws VirgilException, WebAuthnException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions); AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON); getAssertionOptions.allowCredentialDescriptorList.clear(); authenticator.getAssertion(getAssertionOptions, new CredentialSelector() { @Override public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) { return credentialList.get(0); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Admin> validateCred(String username, String password) {\n\t\treturn null;\n\t}", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testListSecretsNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.listSecrets(null).execute();\n }", "private boolean checkInput(String[] cred){\n\t\tfor(int i =0; i < cred.length;i++){\n\t\t\tif(cred[i].equals(\"\") || cred[i].equals(null)){\n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}", "@Override\r\n\tprotected void validateList(List<StravaChallenge> list) {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.validateList(list);\r\n\t\t}\r\n\t}", "@Test\n public void testExcludeCredentials() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject firstAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n\n // Now we want to pull out the ID of the just-created credential, add it to the exclude list,\n // and ensure that we see a failure when creating a second credential.\n\n makeCredentialOptions.excludeCredentialDescriptorList.add(new PublicKeyCredentialDescriptor(\"public-key\", firstAttestationObject.getCredentialId(), null));\n try {\n AttestationObject secondAttestationObject = authenticator.makeCredential(makeCredentialOptions);\n Assert.fail(\"makeCredential should have failed due to a matching credential ID in the exclude list\");\n } catch (InvalidStateError e) {\n // good! the matching credential descriptor caused the authenticator to reject the request\n }\n }", "@Override\r\n\tpublic boolean needsCredentials() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void validateConfigurationWithoutLogin() {\n\t\tcheckAuthorization();\n\t}", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAllowableAccounts(java.util.List param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "private void checkRep(){\n assert !this.username.equals(\"\");\n assert !this.password.equals(\"\");\n assert accessLevel != null;\n }", "private void isCredentialsPresent(String message) {\n if (!credentials.isPresent()) {\n throw new IllegalArgumentException(message + \" requires a valid api url but is missing\");\n }\n }", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "@Test\n public void setSecretsRequest_noSecrets() {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n\n final Resource request = new ClassPathResource(\"test-requests/invalidStoreSecrets.xml\");\n\n try {\n this.mockWebServiceClient.sendRequest(withPayload(request)).andExpect(\n ResponseMatchers.serverOrReceiverFault(\"Missing input: typed secrets\"));\n } catch (final Exception exc) {\n Assertions.fail(\"Error\", exc);\n }\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateSecretNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.createSecret(null).execute();\n }", "public Credentials()\n {\n this(null, null, null, null);\n }", "private void checkKeysAndRoleForConnection() {\n if (!Strings.isNullOrEmpty(iamRole) || this.containsMacro(\"iamRole\")) {\n if (!((Strings.isNullOrEmpty(accessKey) && !this.containsMacro(\"accessKey\")) &&\n (Strings.isNullOrEmpty(secretAccessKey) && !this.containsMacro(\"secretAccessKey\")))) {\n throw new IllegalArgumentException(\"Both configurations 'Keys(Access and Secret Access keys)' and 'IAM \" +\n \"Role' can not be provided at the same time. Either provide the 'Keys\" +\n \"(Access and Secret Access keys)' or 'IAM Role' for connecting to S3 \" +\n \"bucket.\");\n }\n }\n\n if (Strings.isNullOrEmpty(iamRole)) {\n if (!((!Strings.isNullOrEmpty(accessKey) || this.containsMacro(\"accessKey\")) &&\n (!Strings.isNullOrEmpty(secretAccessKey) || this.containsMacro(\"secretAccessKey\")))) {\n throw new IllegalArgumentException(\"Both configurations 'Keys(Access and Secret Access keys)' and 'IAM \" +\n \"Role' can not be empty at the same time. Either provide the 'Keys\" +\n \"(Access and Secret Access keys)' or 'IAM Role' for connecting to S3 \" +\n \"bucket.\");\n }\n }\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetSecretNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getSecret(null).execute();\n }", "@Override\r\n\tpublic void list_private() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_private();\r\n\t\t}\r\n\t}", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "@Test\n public void getSecretsRequest_noSecretTypes() {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n\n final Resource request = new ClassPathResource(\"test-requests/invalidGetSecrets.xml\");\n\n try {\n this.mockWebServiceClient.sendRequest(withPayload(request)).andExpect(\n ResponseMatchers.serverOrReceiverFault(\"Missing input: secret types\"));\n } catch (final Exception exc) {\n Assertions.fail(\"Error\", exc);\n }\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testConstructorWithNullAuthenticator() throws Throwable {\n final String serviceName = \"testService\";\n\n new SecretsManager(serviceName, null);\n }", "@Override\r\n\tpublic boolean hasCredential(String[] roles) {\n\t\treturn false;\r\n\t}", "@Test\n public void testFailureNotParByParRequiredCilent() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n\n oauth.clientId(clientId);\n oauth.openLoginForm();\n assertEquals(OAuthErrorException.INVALID_REQUEST, oauth.getCurrentQuery().get(OAuth2Constants.ERROR));\n assertEquals(\"Pushed Authorization Request is only allowed.\", oauth.getCurrentQuery().get(OAuth2Constants.ERROR_DESCRIPTION));\n\n updateClientDynamically(clientId, (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n });\n\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n String code = loginResponse.getCode();\n\n // Token Request\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetConfigElementsNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getConfigElements(null).execute();\n }", "@Override\n public boolean isSecretRequired() {\n\t return getClientSecret() != null;\n }", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "public boolean isAuthRequired() {\n return !AfUtil.anyEmpty(_username);\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return true;\n }", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn true;\n}", "@Override\n\t\t\t\tpublic boolean isCredentialsNonExpired() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateSecretGroupNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.createSecretGroup(null).execute();\n }", "private void checkAuthControl() {\n val authKey = config.getString(\"authControlKey\");\n val authValue = config.getString(\"authControlValue\");\n\n checkArgument(authKey.length() > 2, \"auth string (control key) length is less than or equal to 2!\");\n checkArgument(authValue.length() > 2, \"auth string (control value) length is less than or equal to 2!\");\n }", "private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetSecretGroupNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getSecretGroup(null).execute();\n }", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "@Override\r\n public boolean isCredentialsNonExpired() {\r\n return true;\r\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetPolicyNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getPolicy(null).execute();\n }", "@Override\n\tpublic boolean isCredentialsNonExpired()\n\t{\n\t\treturn true;\n\t}", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "public CheckUserCredentials(HttpServletRequest request, HttpServletResponse response) {\n super(request, response);\n this.mail = \"\";\n this.password = null;\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateConfigElementNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.createConfigElement(null).execute();\n }", "public boolean ValidCredentials() { \n\t\tif(!isEmptyFieldData()){\n\t\t\tSystemUserQuery sq = new SystemUserQuery();\n\t\t\tUser user = sq.loginQuery(getUsername(), getPassword());\n\t\t\t\n\t\t\tif(user != null){\n\t\t\t\tMain.setCurrentUser(user);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void requestAccountsForCustomer12212_checkListOfAccountsIDs_expectDoesNotContain99999() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}", "@Override\n protected void checkCredential(CredentialChecker checker) {\n checker.check(UserPasswordCredential.class, credential -> {\n return memberBhv.selectCount(cb -> arrangeLoginByCredential(cb, credential)) > 0;\n });\n }", "@Test\n public void testNullCredential(final TestContext aContext) {\n final Async asyncTask = aContext.async();\n final JsonObject nullConfigs = myConfigs;\n\n nullConfigs.put(IIIF_USERNAME, (String) null);\n nullConfigs.put(IIIF_PASSWORD, (String) null);\n\n deployNewVerticle(nullConfigs).onFailure(failure -> {\n TestUtils.complete(asyncTask);\n }).onSuccess(success -> {\n aContext.fail();\n });\n }", "private void checkMandatoryArgs(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkMandatoryArgs.\";\n final String email = target.getEmail();\n final String password = target.getPassword();\n final String lastName = target.getLastName();\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n if (TestUtils.isEmptyOrWhitespace(email)) {\n errors.rejectValue(\"email\", \"user.email.required\");\n }\n logger.debug(proc + \"20\");\n\n if (TestUtils.isEmptyOrWhitespace(password)) {\n errors.rejectValue(\"password\", \"user.password.required\");\n }\n logger.debug(proc + \"30\");\n\n if (TestUtils.isEmptyOrWhitespace(lastName)) {\n errors.rejectValue(\"lastName\", \"userLastName.required\");\n }\n logger.debug(\"Leaving: \" + proc + \"40\");\n }", "@Override\r\n\tpublic void list_invalidParent() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_invalidParent();\r\n\t\t}\r\n\t}", "public Builder clearAuthentication() {\n authentication_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "@Test\r\n\tpublic void testPasswordEmpty() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(\"\");\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Password_Cannot_Be_Null_Or_Empty\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Test(groups=\"authentication\")\n public void noCredential() throws Exception {\n expect().\n body(\"error\", equalTo(401)).\n get(\"/openidm/managed/user?_queryId=query-all-ids\");\n }", "@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAllowableAccountsTypes(java.util.List param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "@Test\n public void testGetKafkaCredentialsFromVaultInvalidUrl() {\n Map<String, Map<String, String>> credentials =\n getKafkaCredentialsFromVault(\"some-url\", \"some-token\");\n Assert.assertEquals(new HashMap<>(), credentials);\n }", "@Test\n\tpublic void loginWithInvalidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_INVALID.username, Credentials.USER_INVALID.password);\n\t\tassertTrue(app.loginScreen().isActive());\n\t}", "private void checkList() {\n val list = config.getString(\"list\");\n val mode = config.getString(\"mode\");\n\n if (isNullOrEmpty(list)) {\n MovieHandler.Type type = MovieHandler.Type.valueOf(mode);\n\n if (type.equals(MovieHandler.Type.COMBINED) || type.equals(MovieHandler.Type.ADD_TO_WATCHLIST)) {\n throw new IllegalArgumentException(\"list is not set, but required for current mode!\");\n }\n } else {\n checkArgument(list.startsWith(\"ls\") || list.equals(\"watchlist\"), \"list doesn't start with ls prefix!\");\n checkArgument(list.length() >= 3, \"list string length less than 3!\");\n }\n }", "@SuppressWarnings(\"rawtypes\")\n @Override\n public Class[] getSupportedCredentials() {\n return new Class[] { DefaultCredential.class, CertificateCredential.class, PasswordCredential.class, CredentialMap.class };\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "private static void validateAllowedAlgorithms(@NonNull List<String> algorithmNames) {\n // First, make sure no insecure algorithms were proposed.\n if (algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_MD5)\n || algorithmNames.contains(IpSecAlgorithm.AUTH_HMAC_SHA1)) {\n throw new IllegalArgumentException(\"Algorithm not supported for IKEv2 VPN profiles\");\n }\n\n // Validate that some valid combination (AEAD or AUTH + CRYPT) is present\n if (hasAeadAlgorithms(algorithmNames) || hasNormalModeAlgorithms(algorithmNames)) {\n return;\n }\n\n throw new IllegalArgumentException(\"Algorithm set missing support for Auth, Crypt or both\");\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetConfigNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getConfig(null).execute();\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testDeleteSecretNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.deleteSecret(null).execute();\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "public void ensureEmptied() {\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return Boolean.TRUE;\n }", "public void setCredentials(Set<Credentials> credentials) {\n this.credentials = credentials;\n }", "public void emptyList() {\n coursesTaken = new ArrayList<CourseTaken>();\r\n }", "@Override\r\n\tpublic void list_validParentNoChildren() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validParentNoChildren();\r\n\t\t}\r\n\t}", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetConfigElementNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getConfigElement(null).execute();\n }", "@Test\n\tpublic void testCreateAdminAccountWithEmptyPassword() {\n\t\tString username = \"Catherine\";\n\t\tString password = \"\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, password, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot be empty.\", error);\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn credentialsNonExpired;\n\t}", "@Test\n void testEmptyConstructor() {\n assertNotNull(isLockedRequest1);\n }", "@Test\n public void testFailureNotIssuedParUsed() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.FALSE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, oidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request\n // but not use issued request_uri\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(201, pResp.getStatusCode());\n\n // Authorization Request with request_uri of PAR\n // remove parameters as query strings of uri\n // use not issued request_uri\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(IMAGINARY_REQUEST_URI);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n UriBuilder b = UriBuilder.fromUri(oauth.getLoginFormUrl());\n driver.navigate().to(b.build().toURL());\n OAuthClient.AuthorizationEndpointResponse errorResponse = new OAuthClient.AuthorizationEndpointResponse(oauth);\n Assert.assertFalse(errorResponse.isRedirected());\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "Boolean checkCredentials(ClientCredentialsData clientData) throws AuthenticationException;", "private boolean isValidInput() {\n if (null == mUsername || mUsername.length() <= 0) {\n return false;\n } else if (null == mPassword || mPassword.length() <= 0) {\n return false;\n }\n return true;\n }" ]
[ "0.6155494", "0.6153064", "0.6053792", "0.6005627", "0.5962393", "0.59457034", "0.58521724", "0.5722862", "0.5676697", "0.56125265", "0.5565877", "0.5563146", "0.5558504", "0.55503297", "0.55384624", "0.55353945", "0.5461691", "0.53927755", "0.5383008", "0.53617746", "0.5329017", "0.53188074", "0.52863014", "0.5285918", "0.5285918", "0.5285918", "0.52768314", "0.52706385", "0.5261754", "0.5243266", "0.5242635", "0.5239068", "0.52375185", "0.52375185", "0.5229818", "0.52212596", "0.52194", "0.5215949", "0.52051914", "0.52006084", "0.52006084", "0.52006084", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51981944", "0.51925856", "0.51833224", "0.5180832", "0.51748276", "0.5168292", "0.5165982", "0.51576734", "0.51433283", "0.5137894", "0.5137746", "0.5134457", "0.51339227", "0.51278335", "0.5127406", "0.51253766", "0.5120112", "0.51188636", "0.5082589", "0.5064397", "0.5060361", "0.5053509", "0.5042645", "0.5034263", "0.50316447", "0.5028257", "0.5024475", "0.5018622", "0.50087875", "0.5006648", "0.5006648", "0.50064254", "0.50053674", "0.50045955", "0.5004582", "0.5001395", "0.49747255", "0.49626935", "0.49615097", "0.49592945", "0.49547026", "0.49519545", "0.49513498", "0.49442124" ]
0.68223125
0
We do nothing after sending the data, just be happy
@Override public void completed(Integer result, String attachment) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(Object data) {\n\t\t//do nothing - override to do something\n\t}", "public void send() {\n\t}", "void sendData() throws IOException\n\t{\n\t}", "public void sendRemainData();", "protected final boolean send(final Object data) {\n\t\t// enviamos los datos\n\t\treturn this.send(data, null);\n\t}", "@Override\n\tpublic void EmergencySend(byte[] data) {\n\t\t\n\t}", "@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}", "public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}", "@Override\n\tpublic void sendData(CharSequence data) {\n\t\t\n\t}", "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "final protected void sendAll() {\n\t\tsendAllBut(null);\n\t}", "private static void sendDataMessage() {\r\n\t\tSystem.out.println(\"CLIENT: \" + \" \" + \"DataMessage sent.\");\r\n\t\t\r\n\t\tbyte[] blockNumberAsByteArray = helper.intToByteArray(blockNumberSending);\r\n\t\tsplitUserInput = helper.divideArray(userInputByteArray);\r\n\r\n\t\tsendData = message.dataMessage(blockNumberAsByteArray, splitUserInput[sendingPackageNumber]);\r\n\t\tsendingPackageNumber++;\r\n\t\tblockNumberSending++; // blocknumber that is given to the next message to be transmitted\r\n\r\n\t\t// trims the message (removes empty bytes), so the last message can be detected\r\n\t\ttrimmedSendData = helper.trim(sendData);\r\n\r\n\t\tsendDataMessage = new DatagramPacket(trimmedSendData, trimmedSendData.length, ipAddress, SERVER_PORT);\r\n\t\ttry {\r\n\t\t\tclientSocket.send(sendDataMessage);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tackNeeded = true;\r\n\r\n\t\tif (trimmedSendData.length < 516) {\r\n\t\t\tlastPackage = true;\r\n\t\t}\r\n\t}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "void send();", "private void sendReceiveRes(){\n\t}", "@Override\r\n\tpublic void send() throws Exception {\n\t\t\r\n\t}", "private void sendWithoutResend(Packet packet) {\n SimulationLogger.increaseStatisticCounter(\"TCP_ACK_PACKETS_SENT\");\n transportLayer.send(packet);\n }", "@Override\n public void run() {\n send();\n }", "private void sendWriteBegin() {\n\t\ttry {\n\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t} catch (IOException e) {\n\t\t\t// Print a stack trace, close all sockets and exit.\n\t\t\te.printStackTrace();\n\t\t\tsendReceiveSocket.close();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public boolean send(NetData data)\n {\n writer.println(data.toString());\n xMessenger.miniMessege(\">>>\"+ data.toString());\n return true;\n }", "@Override\n public void run() {\n if (socket != null) {\n byte b0 = get_sendbyte0();\n byte b1 = get_sendbyte1();\n Log.e(\"handler\", String.valueOf(b0) + String.valueOf(b1));\n if (outputStream == null) {\n try {\n outputStream = socket.getOutputStream();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n outputStream.write(new byte[]{(byte) 1, b0, b1, (byte) 1}); /*1, b0, b1, 1*/\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public abstract boolean send(byte[] data);", "private void formWriteBegin() {\n\t\tsendData = new byte[4];\n\t\tsendData[0] = 0;\n\t\tsendData[1] = 4;\n\t\tsendData[2] = 0;\n\t\tsendData[3] = 0;\n\t\t\n\t\t// Now that the data has been set up, let's form the packet.\n\t\tsendPacket = new DatagramPacket(sendData, 4, receivePacket.getAddress(),\n\t\t\t\treceivePacket.getPort());\t\n\t}", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "protected void reply_ok() throws java.io.IOException {\n byte[] ok = PushCacheProtocol.instance().okPacket();\n _socket.getOutputStream().write(ok, 0, ok.length);\n }", "private void send(Object o) {\r\n try {\r\n System.out.println(\"02. -> Sending (\" + o +\") to the client.\");\r\n this.os.writeObject(o);\r\n this.os.flush();\r\n } \r\n catch (Exception e) {\r\n System.out.println(\"XX.\" + e.getStackTrace());\r\n }\r\n }", "@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}", "public boolean SendingMessage() {\n \t\t\treturn false;\n \t\t}", "public int sendDataPacket()\n{\n \n return(0);\n\n}", "@Override\n public void run() {\n transmit_set();\n }", "void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }", "private void send(Object o) {\n\t\ttry {\n\t\t\tSystem.out.println(\"02. -> Sending (\" + o +\") to the client.\");\n\t\t\tthis.os.writeObject(o);\n\t\t\tthis.os.flush();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"XX.\" + e.getStackTrace());\n\t\t}\n\t}", "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }", "void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }", "@Override\n\tpublic void onSendChatDone(byte arg0) {\n\t\t\n\t}", "@Override\n public void onRead() {\n /*\n * It should be an error that the remote send something before we\n * pre-write.\n */\n throw new IllegalStateException();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\thandler.sendEmptyMessage(0);\n\t\t\t}", "@Override\r\n\tpublic boolean send(String msg) {\n \ttry {\r\n \t\tsendMessage(msg);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean sendData(String data) throws IOException;", "@Override\n\tpublic void send(OutputStream stream) throws IOException {\n\t\tstream.write(this.data);\n\t}", "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "private void b_sendActionPerformed(java.awt.event.ActionEvent evt) { \r\n\t\tString nothing = \"\";\r\n\t\tif ((b_sendText.getText()).equals(nothing)) {\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\ttellEveryone(\"Server\" + \":\" + b_sendText.getText() + \":\" + \"Chat\");\r\n\t\t\t\tPrint_Writer.flush(); // flushes the buffer\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t}\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\r\n\t\tb_sendText.setText(\"\");\r\n\t\tb_sendText.requestFocus();\r\n\r\n\t}", "@Override\n public void send(final EventData data) {\n LOGGER.debug(\"async event {} sent via LocalAsyncProcessor\", data.getData().ret$PQON());\n LOGGER.debug(\"(currently events are discarded in localtests)\");\n }", "public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}", "public void forceSend() {\n if(!isAsync()) {\n NoXray.log(Level.WARNING, \"Attempted to force send a sync packet, unnecesaary\");\n Thread.dumpStack();\n return;\n }\n\n while(_event.getAsyncMarker().getProcessingDelay() > 0) {\n decrementAsyncProcessingCountAndSendIfZero();\n }\n }", "@Override\n\tpublic void send(String msg) {\n\t}", "protected void reply_no() throws java.io.IOException {\n byte[] no = PushCacheProtocol.instance().noPacket();\n _socket.getOutputStream().write(no, 0, no.length);\n }", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "boolean send(byte[] data);", "@Override\n\tpublic void run() {\n\t\tdispBlocks();\n\t\tsendData();\n\t}", "private void send(Object o) {\n try {\n System.out.println(\"02. -> Sending an object...\");\n os.writeObject(o);\n os.flush();\n } catch (Exception e) {\n System.out.println(\"XX. Exception Occurred on Sending:\" + e.toString());\n }\n }", "protected void nop() throws Exception {\n reply_ok();\n }", "private void send(String p)\t{\t\t\t\r\n\t\ttry{\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\toOutStream.writeObject(p);\r\n\t\t\t\toOutStream.flush();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e){\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"sendbuffer is full,netspeed is low!\", Toast.LENGTH_SHORT).show();\n }\n }", "public void sendData(String data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.getBytes().length + 10);\n\t\tbuf.put(data.getBytes());\n\t\tbuf.put((byte)0x00);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}", "@Override\n\tpublic void sendResponse() {\n\t\t\n\t}", "public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void run(){\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length, ip, port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "void send(SftpDatagram head,byte[] data){\r\n\t\tdata_send = data;\r\n\t\t//first send the first one\r\n\t\ttotal_datagrams = 1;\r\n\t\tcovered_datagrams++;\r\n\t\thead.send_datagram();\r\n\t\tput_and_set_timer(head);\r\n\t\t//sending\r\n\t\tif(data_send != null){\r\n\t\t\tlong size = data_send.length;\r\n\t\t\tif(size != 0)\r\n\t\t\t\ttotal_datagrams = (int)((size+BLOCK_SIZE-1) / BLOCK_SIZE);\r\n\t\t}\r\n\t\t//check sendings(if not small mode)\r\n\t\tcheck_and_send();\r\n\t}", "private void sendSocket(String data) {\n if (!serviceStartNormalMethod) {\n pingStamp = System.currentTimeMillis();\n }\n\n if (ctrlSocketBufferOut != null && !ctrlSocketBufferOut.checkError() && ctrlSocketThreadState == SocketThreadStates.RUNNING) {\n ctrlSocketBufferOut.println(data);\n ctrlSocketBufferOut.flush();\n }\n\n if (ctrlSocketBufferOut != null && ctrlSocketBufferOut.checkError()) {\n // conn manager thread will re-connect us\n ctrlSocketThreadState = SocketThreadStates.ERROR;\n broadcastConnectionStatus();\n }\n }", "private void sendDataReceptionCompleteMessage(SelectionKey key, byte[] data) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\tbyte[] ackData = new byte[4];\n\t\tackData[0]=00;\n\t\tackData[1]=00;\n\t\tackData[2]=00;\n\t\tackData[3]=data[9]; //bPacketRec[0];\n\n\t\tByteBuffer bSend = ByteBuffer.allocate(ackData.length);\n\t\tbSend.clear();\n\t\tbSend.put(ackData);\n\t\tbSend.flip();\n\t\twhile (bSend.hasRemaining()) {\n\t\t\ttry {\n\t\t\t\tchannel.write(bSend);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"Could not send Data Reception Acknowledgement\");\n\t\t\t}\n\t\t}\n\t}", "private void sendDataMsgToClient(String msg) {\n if (dataConnection == null || dataConnection.isClosed()) {\n sendMsgToClient(\"425 No data connection was established\");\n debugOutput(\"Cannot send message, because no data connection is established\");\n } else {\n dataOutWriter.print(msg + '\\r' + '\\n');\n }\n\n }", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "@Override\n public synchronized void send(byte[] data) throws SocketException {\n try {\n connectionSocket.getOutputStream().write(data);\n connectionSocket.getOutputStream().flush();\n connectionSocket.close();\n } catch (IOException ex) {\n Logger.getLogger(TCPServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "void send(ByteBuffer data) throws CCommException, IllegalStateException;", "protected final synchronized boolean send(final Object data, final Commands overWrite) {\n\t\ttry {\n\t\t\t// verificamos si la conexion esta cerrada\n\t\t\tif (this.getConnection().isClosed())\n\t\t\t\t// retornamos false\n\t\t\t\treturn false;\n\t\t\t// mostramos un mensaje\n\t\t\tthis.getLogger().debug((data instanceof Commands || overWrite != null ? \"<<= \" : \"<<< \") + (overWrite != null ? overWrite : data));\n\t\t\t// verificamos si es un comando\n\t\t\tif (!this.getLocalStage().equals(Stage.POST) && data instanceof Commands || overWrite != null)\n\t\t\t\t// almacenamos el ultimo comando enviado\n\t\t\t\tthis.lastCommand = overWrite != null ? overWrite : (Commands) data;\n\t\t\t// enviamos el dato\n\t\t\tthis.getOutputStream().writeObject(data);\n\t\t\t// escribimos el dato\n\t\t\tthis.getOutputStream().flush();\n\t\t} catch (final IOException e) {\n\t\t\t// mostramos el trace\n\t\t\tthis.getLogger().error(e);\n\t\t\t// retornamos false\n\t\t\treturn false;\n\t\t}\n\t\t// retornamos true\n\t\treturn true;\n\t}", "protected void sendDataToRobot(byte[] data) {\n\t\thandler.sendData(data);\n\t}", "@Override\r\n public void onSendTcp(Object obj) {\n mNetworkManager.sendTCPData(obj);\r\n }", "public synchronized void sendNo() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_NO);\r\n\t\tendMessage();\r\n\t}", "private void sendData() throws DataProcessingException, IOException {\n Data cepstrum = null;\n do {\n cepstrum = frontend.getData();\n if (cepstrum != null) {\n if (!inUtterance) {\n if (cepstrum instanceof DataStartSignal) {\n inUtterance = true;\n dataWriter.writeDouble(Double.MAX_VALUE);\n dataWriter.flush();\n } else {\n throw new IllegalStateException\n (\"No DataStartSignal read\");\n }\n } else {\n if (cepstrum instanceof DoubleData) {\n // send the cepstrum data\n double[] data = ((DoubleData) cepstrum).getValues();\n for (double val : data) {\n dataWriter.writeDouble(val);\n }\n } else if (cepstrum instanceof DataEndSignal) {\n // send a DataEndSignal\n dataWriter.writeDouble(Double.MIN_VALUE);\n inUtterance = false;\n } else if (cepstrum instanceof DataStartSignal) {\n throw new IllegalStateException\n (\"Too many DataStartSignals.\");\n }\n dataWriter.flush();\n }\n }\n } while (cepstrum != null);\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tif(socket!=null&&!socket.isClosed()){\r\n\t\t\t\t\t\tbOutputStream.write(sbyte, 0, sbyte.length);\r\n\t\t\t\t\t\tbOutputStream.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}", "public void stopSending ();", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "public void sendData(String data) {// send data\n\t\tthis.data = data;\n\t\tthis.start();// spin up a new thread to send data\n\t}", "private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void sendResponse() {\n\n\t}", "private String requesttosend() throws IOException {\n\t\tsender.sendMsg(Constants.REQSEND);\r\n\t\t//等待接收的返回状态\r\n\t\treturn sender.getMsg();\r\n\t}", "public void endData()\n\t\t\t{\n\t\t\t\tsend(\"</data>\", false);\n\t\t\t}", "private boolean sendProtocol() {\n if (!clusterProtocolBuffered) {\n clusterProtocolBuffered = true;\n dst.put(stringToBytes(UNEXPECTED_PROTOCOL));\n return false;\n }\n\n return isProtocolBufferDrained();\n }", "public boolean sendData(String data, String prefix) throws IOException;", "public void run() {\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length,ip,port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}", "@Override\n\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttextsent=0;\n\t\t\t\t\t\t\t\t\tesocket = new Socket(TestConnection.ip, TestConnection.port);\n\n\t\t\t\t\t\t\t\t// Log.e(\"ClientActivity\", \"C: Sending command.\");\n\t\t\t\t\t\t\t\t\tedos=new DataOutputStream(esocket.getOutputStream());\n\t\t\t\t\t\t\t\t\tedis=new DataInputStream(esocket.getInputStream());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\tedos.writeUTF(\"DOUBT\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t// \tif(TestConnection.username!=null)\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.username);\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.roll);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etopic.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SUBJECT\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etext.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// MESSAGE\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Sending imageflag\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Image sending\n\t\t\t\t\t\t\t\t\tif(AudioMainActivity.imageflag!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tedos.writeUTF(\"send_image\");\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"send_image\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tAudioMainActivity.imageflag=1;\n\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{edos.writeUTF(\"not_send_image\");\n\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"not_send_image\");\n\t\t\t\t\t\t\t\t\tString ifdone =edis.readUTF();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ifdone.equals(\"not_done\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"ZABARDASTI\",\"Image Sent\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfinal String msgServer = edis.readUTF(); // RECEIVE\n\t\t\t\t\t\t\t\t\tLog.e(\"Confirmation\", \"msgServer=\"+msgServer);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CONFIRMATION\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// IF MESSAGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RECEIVED BY\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SERVER\n\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tif (msgServer.contains(\"received\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Doubt Sent\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\temerdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\ttextsent=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.doubt.add(etopic.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.textMessage.add(etext.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\t//counter.setText(\"Doubts Remaining : \"+count);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Server Error! Doubt not sent!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//doubtSubject.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t//doubtText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tif (esocket != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t// close socket connection after using it\n\t\t\t\t\t\t\t\t\t\tesocket.close();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "void messageSent();", "public void send(final String data) throws IOException {\r\n\t\t//Writes the packet as a byte buffer, using the data from the packet and converting in to bytes\r\n\t\t//Adds an end-of-packet footer to the data\r\n\t\tif(channel.isConnected()) {\r\n\t\t\tchannel.write(ByteBuffer.wrap((data + \"%EOP%\").getBytes()));\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tcancelsent=0;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"About to get out\",\"before sending kickmeout\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(dos!=null)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(ispeak==1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ispeak=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(\"kick_me_out_speaking\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"Kick me\",\"KICKED SPEAKING\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(\"kick_me_out_waiting\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"Kick me\",\"KICKED WAITING\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcancelsent=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\trecSocket.close();\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"closing\", \"socket closed\");\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void send(String key, String data) throws IOException {\n\n }", "public void send(Object object)\n/* */ throws IOException\n/* */ {\n/* 89 */ send(object, null);\n/* */ }", "public void blockingReceiveSenderSide() throws OOBException {\n \t}", "public void run(){\r\n\t\ttry{\r\n\t\t\tbyte[] incommingByteArray = new byte[500000];\r\n\t\t\tint count = connectionSocketConected.getInputStream().read(incommingByteArray);\r\n//\t\t\tByteArrayInputStream bais = new ByteArrayInputStream(incommingByteArray);\r\n//\t\t\tDataInputStream inFromClient = new DataInputStream(connectionSocketConected.getInputStream());\t\t\r\n\t\t\t//Creates an object of the data which is to be send back to the client, via the connectionSocket\r\n//\t\t\tDataOutputStream outToClient = new DataOutputStream(connectionSocketConected.getOutputStream());\r\n\t\t\t//Sets client sentence equals input from client\r\n//\t\t\tincommingJson = inFromClient.toString();\t\t\r\n\t\t\t\r\n\t\t\tincommingJson = encryption.decrypt(incommingByteArray);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Besked modtaget!\");\r\n\t\t\tSystem.out.println(\"Received: \" + incommingJson);\r\n\t\t\tString returnAnswer = GS.GiantSwitchMethod(incommingJson);\r\n\t\t\tbyte[] returnAnswerCrypted = encryption.encrypt(returnAnswer);\r\n//\t\t\t//Sends the capitalized message back to client!!\r\n\t\t\tconnectionSocketConected.getOutputStream().write(returnAnswerCrypted);\r\n\t\t\t//BufferedWriter writer = new BufferedWriter(arg0)\r\n\t\t}catch(Exception exception){\r\n\t\t\tSystem.err.print(exception);\r\n\t\t}\r\n\t}", "@Override\n public void dataAvailable(byte[] data, Connection ignoreMe) {\n // Now get the data, and send it back to the listener.\n try {\n disconnect(ignoreMe);\n Message message = NonblockingResolver.parseMessage(data);\n\n if (message != null && LOG.isTraceEnabled()) {\n LOG.trace(\"dataAvailable(\" + data.length + \" bytes)\");\n LOG.trace(message);\n }\n\n NonblockingResolver.verifyTSIG(query, message, data, tsig);\n // Now check that we got the whole message, if we're asked to do so\n if (!tcp && !ignoreTruncation\n && message.getHeader().getFlag(Flags.TC)) {\n // Redo the query, but use tcp this time.\n tcp = true;\n // Now start again with a TCP connection\n startConnect();\n return;\n }\n if (query.getHeader().getID() != message.getHeader().getID()) {\n// System.out.println(\"Query wrong id! Expected \" + query.getHeader().getID() + \" but got \" + message.getHeader().getID());\n return;\n }\n returnResponse(message);\n } catch (IOException e) {\n returnException(e, null);\n }\n }", "@Override\n public synchronized void sendPacket(PacketData packet) {\n // Do not auto read.\n sc.setAutoRead(false);\n sc.handleWrite(packet);\n }", "public void flushPacket()\n throws IOException {\n\n // Nothing to do\n }", "private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\ttry{\n\t\tServerEncoderDecoder encodeco = new ServerEncoderDecoder();\n\t\t\n\t\t\tbyte[] datatoWrite = new byte[2000];\n\t\t\t\tdatatoWrite = encodeco.encodeData(packet);\n\t\t\tserverConnection.getOutput().println(new String(datatoWrite));\n\t\t\tString ack = serverConnection.getInput().readLine();\n\t\t\tif(ack.equals(\"ACK\")){\n\t\t\t\t//System.out.println(\"ACK for request obtained\");\n\t\t\t\tCoordinator.incrementCounter();\n\t\t\t}\n\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = 1;\n this._sendData[1] = (byte) (this.iOIndex & 15);\n }", "public void beforeReceive() {\n\t}" ]
[ "0.74416757", "0.7245976", "0.7184702", "0.70602673", "0.69401574", "0.6861564", "0.68455917", "0.68411213", "0.6802043", "0.67894834", "0.6779625", "0.6776751", "0.6749528", "0.6737719", "0.67366076", "0.6684448", "0.66817164", "0.6679756", "0.66665167", "0.66397256", "0.66382045", "0.6630081", "0.6565221", "0.6563054", "0.6553668", "0.6548238", "0.6518423", "0.65122294", "0.64909333", "0.6484225", "0.64820725", "0.64780563", "0.6472778", "0.6466279", "0.6452285", "0.64454174", "0.64452755", "0.6427496", "0.6385159", "0.6379288", "0.6355879", "0.6347125", "0.63447344", "0.63356954", "0.63355404", "0.6312808", "0.6305793", "0.6305277", "0.6302594", "0.62727493", "0.62566924", "0.6254891", "0.6241891", "0.62358254", "0.62348986", "0.6233689", "0.6226183", "0.6224816", "0.6222236", "0.62217605", "0.62154555", "0.61909413", "0.6182925", "0.61794657", "0.61791795", "0.6172509", "0.6163856", "0.6160369", "0.61564016", "0.61554617", "0.61551064", "0.61473334", "0.61456984", "0.6143487", "0.613438", "0.6133446", "0.6129661", "0.6128231", "0.61256206", "0.61248463", "0.6114644", "0.6112137", "0.6110568", "0.6105115", "0.6100597", "0.60983706", "0.6085723", "0.6084728", "0.60846674", "0.60731447", "0.60635287", "0.60611355", "0.60595447", "0.6046601", "0.6032015", "0.60312474", "0.60258526", "0.60238296", "0.60203564", "0.6019813", "0.601097" ]
0.0
-1
We do nothing with the read data, just smile to the person next tu us
@Override public void completed(Integer result, String attachment) { log.info("Successful read!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }", "IEmpleado next();", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "public void processData() {\n\t\t SamReader sfr = SamReaderFactory.makeDefault().validationStringency(ValidationStringency.LENIENT).open(this.inputFile);\n\t\t \n\t\t\t\n\t\t\t//Set up file writer\n\t\t SAMFileWriterFactory sfwf = new SAMFileWriterFactory();\n\t\t sfwf.setCreateIndex(true);\n\t\t SAMFileWriter sfw = sfwf.makeSAMOrBAMWriter(sfr.getFileHeader(), false, this.outputFile);\n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t\t//counters\n\t\t\tint totalReads = 0;\n\t\t\tint trimmedReads = 0;\n\t\t\tint droppedReads = 0;\n\t\t\tint dropTrimReads = 0;\n\t\t\tint dropMmReads = 0;\n\t\t\t\n\t\t\t//Containers\n\t\t\tHashSet<String> notFound = new HashSet<String>();\n\t\t\tHashMap<String, SAMRecord> mateList = new HashMap<String,SAMRecord>();\n\t\t\tHashSet<String> removedList = new HashSet<String>();\n\t\t\tHashMap<String,SAMRecord> editedList = new HashMap<String,SAMRecord>();\n\t\t\t\n\t\t\tfor (SAMRecord sr: sfr) {\n\t\t\t\t//Messaging\n\t\t\t\tif (totalReads % 1000000 == 0 && totalReads != 0) {\n\t\t\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Currently storing mates for %d reads.\",totalReads,trimmedReads,droppedReads,mateList.size()));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ttotalReads += 1;\n\t\t\t\t\n\t\t\t\tString keyToCheck = sr.getReadName() + \":\" + String.valueOf(sr.getIntegerAttribute(\"HI\"));\n\t\t\t\n\t\t\t\t//Make sure chromsome is available\n\t\t\t\tString chrom = sr.getReferenceName();\n\t\t\t\tif (!this.refHash.containsKey(chrom)) {\n\t\t\t\t\tif (!notFound.contains(chrom)) {\n\t\t\t\t\t\tnotFound.add(chrom);\n\t\t\t\t\t\tMisc.printErrAndExit(String.format(\"Chromosome %s not found in reference file, skipping trimming step\", chrom));\n\t\t\t\t\t}\n\t\t\t\t} else if (!sr.getReadUnmappedFlag()) {\n\t\t\t\t\tString refSeq = null;\n\t\t\t\t\tString obsSeq = null;\n\t\t\t\t\tList<CigarElement> cigar = null;\n\t\t\t\t\t\n\t\t\t\t\t//Get necessary sequence information depending on orientation\n\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\trefSeq = this.revComp(this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd()));\n\t\t\t\t\t\tobsSeq = this.revComp(sr.getReadString());\n\t\t\t\t\t\tcigar = this.reverseCigar(sr.getCigar().getCigarElements());\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trefSeq = this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd());\n\t\t\t\t\t\tobsSeq = sr.getReadString();\n\t\t\t\t\t\tcigar = sr.getCigar().getCigarElements();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Get alignments\n\t\t\t\t\tString[] alns = this.createAlignmentStrings(cigar, refSeq, obsSeq, totalReads);\n\t\t\t\t\t\n\t\t\t\t\t//Identify Trim Point\n\t\t\t\t\tint idx = this.identifyTrimPoint(alns,sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\n\t\t\t\t\t//Check error rate\n\t\t\t\t\tboolean mmPassed = false;\n\t\t\t\t\tif (mmMode) {\n\t\t\t\t\t\tmmPassed = this.isPoorQuality(alns, sr.getReadNegativeStrandFlag(), idx);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Create new cigar string\n\t\t\t\t\tif (idx < minLength || mmPassed) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsr.setAlignmentStart(0);\n\t\t\t\t\t\tsr.setReadUnmappedFlag(true);\n\t\t\t\t\t\tsr.setProperPairFlag(false);\n\t\t\t\t\t\tsr.setReferenceIndex(-1);\n\t\t\t\t\t\tsr.setMappingQuality(0);\n\t\t\t\t\t\tsr.setNotPrimaryAlignmentFlag(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMateUnmapped(mateList.get(keyToCheck)));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tremovedList.add(keyToCheck);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tdroppedReads += 1;\n\t\t\t\t\t\tif (idx < minLength) {\n\t\t\t\t\t\t\tdropTrimReads += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdropMmReads += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (idx+1 != alns[0].length()) {\n\t\t\t\t\t\ttrimmedReads++;\n\t\t\t\t\t\tCigar oldCig = sr.getCigar();\n\t\t\t\t\t\tCigar newCig = this.createNewCigar(alns, cigar, idx, sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\tsr.setCigar(newCig);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\t\tint newStart = this.determineStart(oldCig, newCig, sr.getAlignmentStart());\n\t\t\t\t\t\t\tsr.setAlignmentStart(newStart);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (this.verbose) {\n\t\t\t\t\t\t\tthis.printAlignments(sr, oldCig, alns, idx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMatePos(mateList.get(keyToCheck),sr.getAlignmentStart()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\teditedList.put(keyToCheck,sr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(sr.getReadName());\n\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t//String rn = sr.getReadName();\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tif (editedList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMatePos(sr,editedList.get(keyToCheck).getAlignmentStart());\n\t\t\t\t\t\t\teditedList.remove(keyToCheck);\n\t\t\t\t\t\t} else if (removedList.contains(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMateUnmapped(sr);\n\t\t\t\t\t\t\tremovedList.remove(keyToCheck);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\t\tsfw.addAlignment(mateList.get(keyToCheck));\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmateList.put(keyToCheck, sr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Of the unmapped, %d were too short and %d had too many mismatches. Currently storing mates for %d reads.\",\n\t\t\t\t\ttotalReads,trimmedReads,droppedReads,dropTrimReads, dropMmReads, mateList.size()));\n\t\t\tSystem.out.println(String.format(\"Reads left in hash: %d. Writing to disk.\",mateList.size()));\n\t\t\tfor (SAMRecord sr2: mateList.values()) {\n\t\t\t\tsfw.addAlignment(sr2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsfw.close();\n\t\t\ttry {\n\t\t\t\tsfr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\n\t}", "protected void readAhead() {\n if (! reader.hasNext()) {\n this.nextLine = null;\n } else {\n this.nextLine = reader.next();\n while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())\n this.nextLine = reader.next();\n }\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private void advanceToNextReader(){\r\n\t\tcurrentReader = null;\r\n\t\treaderQueueIndex++;\r\n\t}", "public void read() throws IOException, JSONException, NoSuchAlgorithmException {\n\t\tlong taille_ans = inchan.readLong();\n\t\tbyte [] cbuf = new byte[(int)taille_ans];\n\t\tinchan.read(cbuf, 0, (int)taille_ans);\n\t\tString s = new String(cbuf,\"UTF-8\");\n\t\t\n\t\tJSONObject msg = new JSONObject(s);\n\t\tJSONObject obj;\n\t\t\n\t\tswitch ((String)msg.keys().next()) {\n\t\tcase \"next_turn\":\n\t\t\tchooseWord(periode);\n\t\t\tperiode = msg.getInt(\"next_turn\");\n\t\t\tmap_wordPool.put(periode, new JSONArray());\n\t\t\tSystem.out.println(\"AUTEUR \"+identifiant+\" est en nouvelle periode : \"+periode);\n\t\t\twork = true;\n\t\t\tbreak;\n\t\tcase \"letters_bag\":\n\t\t\t\tletters_bag = msg.getJSONArray(\"letters_bag\");\n\t\t\t\tSystem.out.println(\"AUTEUR \"+identifiant+\" a recu sac de lettres : \"+letters_bag);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"full_letterpool\":\n\t\t\tobj = msg.getJSONObject(\"full_letterpool\");\n\t\t\tupdateLetterPool(obj);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"full_wordpool\": \n\t\t\tobj = msg.getJSONObject(\"full_wordpool\");\n\t\t\tafficheFullWordrPool(obj);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"diff_letterpool\": //TODO\n\t\t\tbreak;\n\t\tcase \"diff_wordpool\":\n\t\t\t//TODO Election du mot au début de la blockchain ?\n\t\t\t\t\tmsg.getJSONObject(\"diff_wordpool\").getJSONObject(\"wordpool\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"inject_word\":\n//\t\t\tSystem.out.println(\"inject word\");\n\t\t\tobj = msg.getJSONObject(\"inject_word\");\n\t\t\taddWordToPeriod(periode,obj);\n\t\t\tbreak;\n\t\tcase \"inject_letter\":\n\t\t\tobj = msg.getJSONObject(\"inject_letter\");\n\t\t\taddLetterToPeriod(obj.getInt(\"period\"), obj);\n\t\t\tbreak;\n\t\t\n\t\tdefault:\n//\t\t\tSystem.out.println(msg);\n\t\t\tbreak;\n\t\t}\n\t}", "private void doRecoveryRead() {\n if (!promise.isDone()) {\n startEntryToRead = endEntryToRead + 1;\n endEntryToRead = endEntryToRead + clientCtx.getConf().recoveryReadBatchSize;\n new RecoveryReadOp(lh, clientCtx, startEntryToRead, endEntryToRead, this, null)\n .initiate();\n }\n }", "private void sleep() {\n\t\ttargetFlower = null;\n\t\tif(startForaging()) {\n\t\t\t// add food to bee's crop for upcoming foraging run\n\t\t\tif(food < startingCrop){\n\t\t\t\thive.food -= (startingCrop - food);\n\t\t\t\tfood = startingCrop;\n\t\t\t}\n\t\t\tif(startScouting() || hive.dancingBees.size() <= 0) {\n\t\t\t\tstate = \"SCOUTING\";\n\t\t\t\tcurrentAngle = RandomHelper.nextDoubleFromTo(0, 2*Math.PI);\n\t\t\t}\n\t\t\telse{ // else follow a dance\n\t\t\t\t// if bee follows dance, store angle and distance in the bee object\n\t\t\t\tint index = RandomHelper.nextIntFromTo(0, hive.dancingBees.size() - 1);\n\t\t\t\tNdPoint flowerLoc = space.getLocation(hive.dancingBees.get(index).targetFlower);\n\t\t\t\tNdPoint myLoc = space.getLocation(this);\n\t\t\t\tdouble ang = SpatialMath.calcAngleFor2DMovement(space, myLoc, flowerLoc);\n\t\t\t\tdouble dist = space.getDistance(flowerLoc, myLoc);\n\t\t\t\t\n\t\t\t\t// start following dance at correct angle\n\t\t\t\tcurrentAngle = ang;\n\t\t\t\tfollowDist = dist;\n\t\t\t\tstate = \"FOLLOWING\";\n\t\t\t}\n\t\t}\n\t\telse { // continue sleeping\n\t\t\thive.food -= lowMetabolicRate/2;\n\t\t\thover(grid.getLocation(hive));\n\t\t\t// update energy and food storage\n\t\t\tif(food > startingCrop){\n\t\t\t\tfood -= foodTransferRate;\n\t\t\t\thive.food += foodTransferRate;\n\t\t\t}\n\t\t}\n\t}", "private void readNext() {\n nextLine = null;\n try {\n while (nextLine == null) {\n nextLine = reader.readNext();\n reader.consumeEmptyLines();\n if (reader.eof()) {\n break;\n }\n }\n if (nextLine != null) {\n super.recordCounter++;\n if (super.readLimit > 0 && super.recordCounter > super.readLimit) {\n nextLine = null;\n }\n }\n } catch (Exception ignore) {\n // no more lines\n }\n }", "private void ackRead() throws SIMException\n\t\t{\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\t// Read a byte from memory\n\t\t\t\tif ((mode & MODE_TRANSFER_MASK) == MODE_TRANSFER_READ)\n\t\t\t\t{\n\t\t\t\t\tint v = transferFromMemory(this,base.getValue());\n\t\t\t\t\trequestRead.setDmaValue(v);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Increment / decrement address if requested\n\t\t\t\tif (hold == false)\n\t\t\t\t{\n\t\t\t\t\tif ((mode & MODE_DECREMENT) != 0)\n\t\t\t\t\t\tbase.decrement();\n\t\t\t\t\telse\n\t\t\t\t\t\tbase.increment();\n\n\t\t\t\t}\n\n\t\t\t\tif (isTerminate(requestRead))\n\t\t\t\t{\n\t\t\t\t\tterminateDma();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// In single transfer wait another dreq\n\t\t\t\tif ((mode & MODE_DMA_MASK) == MODE_DMA_SINGLE)\n\t\t\t\t{\n\t\t\t\t\tif (requestRead.getDmaDREQ() == false)\n\t\t\t\t\t{\n\t\t\t\t\t\trequest = false;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}", "public synchronized void beginRead() {\n\t\tSystem.out.println(\"READER BEGIN: \" + Thread.currentThread().getId());\t\n\t\tint readTurn = currentTurn;\n\t\tcurrentTurn++;\n\t\t\n\t\twhile(readTurn!=nextTurn || numWriters > 0 ){\n\t\t\ttry {\n//\t\t\t\tSystem.out.println(\"READER BLOCKED: \" + Thread.currentThread().getId());\t\n\t\t\t\twait();\n//\t\t\t\tSystem.out.println(\"READER UNBLOCKED: \" + Thread.currentThread().getId());\t\n\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//number of readers at front of the queue\n\t\t//(unblocked reader)\n\t\tnumReaders ++;\n\n\t}", "public void Break()throws IOException {\n \n FileInputStream fstream = new FileInputStream(\"../pp2/LHappycouple.txt\");\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(fstream));\n String strLine1 = \"\";\n \n String [] boy = new String[5];\n String [] girl = new String[5];\n \n int i;\n int j ;\n \n for (i = 0; i < 5; i++) {\n \n j = (i+1)%5;\n strLine1 = br.readLine();\n String tokens [] = strLine1.split(\",\");\n String b = tokens[1];\n String g = tokens[2];\n \n boy[i] = b;\n girl[j] = g;\n }\n \n \n BufferedWriter bw = null;\n File file = new File(\"PairingOfLeastHappiest.txt\");\n \n if (!file.exists()) {\n \n\t file.createNewFile();\n\t}\n \n FileWriter fw = new FileWriter(file);\n\tbw = new BufferedWriter(fw);\n \n \n for (i = 0; i < 5; i++){\n \n bw.write(boy[i] + \",\" + girl[i]);\n bw.newLine();\n } \n bw.close();\n }", "public void readData() throws IOException {\n // as long as there are stuff left, keep reading by sets, which are\n // pairs of description + answer\n while (hasNext()) {\n counter++;\n readSet();\n }\n }", "public void processData(){\n try{\n\t\t resultTxt.setText(\"Man has been dropped.\\n\\n\");\n String line = input.readLine();\n while(line != null){ //not end of file\n String[] words = line.split(\"\\\\s\");\n\n if (isAMan(words)==true){\n \t\t\t output1.write(line+\"\\n\");\n \t\t }\n \t\t else if(isAWoman(words)==true) {\n \t\t\t output2.write(line+\"\\n\");\n\t\t\t resultTxt.append(line+\"\\n\");\n \t\t }\n line = input.readLine();\n }\n\n if (input != null){\n \t\t input.close();\n \t\t }\n \t\t if (output1 != null){\n \t\t output1.close();\n }\n if (output2 != null){\n \t\t output2.close();\n }\n }\n catch(IOException exc){\n exc.printStackTrace();\n System.err.println(\"Error: failed Fork input processor\");\n System.exit(1);\n }\n }", "private static void grabarYleerMedico() {\r\n\r\n\t\tMedico medico = new Medico(\"Manolo\", \"Garcia\", \"62\", \"casa\", \"2\", null);\r\n\t\tDTO<Medico> dtoMedico = new DTO<>(\"src/Almacen/medico.dat\");\r\n\t\tif (dtoMedico.grabar(medico) == true) {\r\n\t\t\tSystem.out.println(medico.getNombre());\r\n\t\t\tSystem.out.println(medico.getDireccion());\r\n\t\t\tSystem.out.println(\"Medico grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tMedico medicoLeer = dtoMedico.leer();\r\n\t\tSystem.out.println(medicoLeer);\r\n\t\tSystem.out.println(medicoLeer.getNombre());\r\n\t}", "public synchronized void feed(byte data) throws PacketMappingNotFoundException { //I hate decoding bytes\r\n\t\t//First save data and increase accumulation counter\r\n\t\ttempData[accStep] = data; //save data in current step\r\n\t\tif(mode == Mode.SEARCH_HEADER) { //Special case for header, because ti doesnt accept any data\r\n\t\t\tif(data == PACKETHEADER[accStep]) {\r\n\t\t\t\taccStep++; //Only increase header finding if data is correct\r\n\t\t\t} else {\r\n\t\t\t\taccStep = 0; //If one byte is not correct, completely reset\r\n\t\t\t}\r\n\t\t} else { //for other modes increase counter\r\n\t\t\taccStep++; \r\n\t\t}\r\n\t\t\r\n\t\tupdateState();\r\n\t}", "public void mdr()\n throws IOException {\n for (int market = 0; market < client.numMarkets(); market++) {\n mdr(os[market], market, target);\n }\n }", "protected void doBeginRead() throws Exception {}", "private void readhead(ByteBuffer buffer) {\n for (int i = 0; i <= writeindex; i++) {\n data[i] = 0;\n }\n writeindex = -1;\n readindex = -1;\n clearBuffer(buffer);\n readblocksize(buffer);\n data = new int[blocksize * 2 + 1];\n fibonacci = new int[blocksize * 2 + 1];\n for (int i = 0; i < blocksize * 2; i++) {\n data[i] = 0;\n fibonacci[i] = 0;\n }\n fibonacci[0] = 1;\n fibonacci[1] = 1;\n }", "void loadNext();", "public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public NV readNext() throws ThingsException;", "private String readWhoPlaysFirst () {\n String name, player1Name, player2Name;\n name = \"\";\n player1Name = player1.name();\n player2Name = player2.name();\n while (!(name.equals(player1Name.toLowerCase()) ||\n name.equals(player2Name.toLowerCase()) )) {\n System.out.print(\n \"Who plays first? (\" + player1Name +\n \" or \" + player2Name + \"): \");\n System.out.flush();\n name = in.next();\n name = name.toLowerCase();\n in.nextLine();\n }\n if (name.equals(player1Name.toLowerCase()))\n return player1Name;\n else\n return player2Name;\n }", "public void nextHard() {\n\t\titerator.next();\n\t}", "public void waitForData() {\n waitForData(1);\n }", "private void follow() {\n\t\t// calculate distance back to hive\n\t\tdouble distToHive = grid.getDistance(grid.getLocation(this),grid.getLocation(hive));\n\t\t// if close to flower from dance information, start scouting\n\t\tif(distToHive > followDist - 5) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying in direction of dance\n\t\telse{\n\t\t\t// deviate slightly from correct angle because bee's aren't perfect (I don't think)\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/50, Math.PI/50);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "private void ensureRead() throws IOException, BadDescriptorException {\n if (reading) return;\n flushWrite();\n buffer.clear();\n buffer.flip();\n reading = true;\n }", "@Override\n\tpublic void read() {\n\n\t}", "@Override\r\n\tpublic void read() {\n\r\n\t}", "private String next(int i) throws IOException {\r\n\t\tif(buffer!=null) {\r\n\t\t\tString s=buffer;\r\n\t\t\tbuffer=null;\r\n\t\t\treturn s;\r\n\t\t}\r\n\t\tif (i==0) {\r\n\t\t\treturn in.readLine();\r\n\t\t} else return in2.readLine();\r\n\t}", "public void next() {\n\t\tif ((position == 0) && (pause != 3)) {\n\t\t\tpause++;\n\t\t} else {\n\t\t\tposition++;\n\t\t\tpause = 0;\n\t\t\tif (position == (origionalMessage.length() + 10)) {\n\t\t\t\tposition = 0;\n\t\t\t}\n\t\t}\n\n\t}", "abstract void read();", "public void advance() {\n // Get the next instruction\n instruction = fileStream.next();\n removeWhitespace();\n // Split instruction apart\n instructionChunks = instruction.split(\" \");\n }", "public abstract void blockNext();", "private void readObject() {\n\t\t/* default - does nothing empty block */}", "private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@SuppressWarnings(\"deprecation\")\n private int readMeals(String eateryname, String filePath) {\n Dish curdish;\n Meal curmeal = null;\n Calendar curdate = Calendar.getInstance();\n curdate.set(0, 0, 0); // Initialize date to 0.\n boolean newdate = false;\n boolean nutrerror = false;\n try {\n _stream = new FileInputStream(filePath);\n\n _instream = new DataInputStream(_stream);\n _bufread = new BufferedReader(new InputStreamReader(_instream));\n\n TextParser parser = new TextParser();\n String line;\n boolean ingrediants;\n\n while (true) { //loop until we break\n nutrerror = false; //this is if the PDF leaves out necessary information in the nutrition facts section\n //initially set this to false at the start of reading each dish (each loop)\n\n //Read in the line that starts a new dish, and create a dish with the string in this line\n if ((line = _bufread.readLine()) != null) {\n //read in the dish name and create a new dish\n if (line.charAt(0) == '\f') { //check for and delete this weird character the PDF to text sometimes gives.\n line = line.substring(1);\n }\n\n //create a new dish of this name\n curdish = new Dish(line);\n curdish.setLocation(new Location(eateryname));\n } else {\n break;\n }\n\n //Read in the line under the name. It should be the ingrediants\n if ((line = _bufread.readLine()) != null) {\n ingrediants = parser.SetIngrediants(curdish, line);\n\n } else {\n break;\n }\n if (ingrediants) { //if ingrediants did not have an issue then read the empty line\n //and then read in the ingrediants header\n // otherwise you don't want to do this as there were no ingrediants\n //and the line you thought was ingrediants is really the nutrition facts header\n\n //Read in the empty line seperator\n if ((line = _bufread.readLine()) != null) { //read in an empty line\n\n } else {\n break;\n }\n //Read in the next line and make sure it is the nutrition facts header\n if ((line = _bufread.readLine()) != null) {\n if (line.compareTo(\"Nutrition Facts\") != 0) {\n //this means things are not formatted as expected\n }\n } else {\n break;\n }\n }\n //Under the nutrition facts header is the list of nutrition facts\n if ((line = _bufread.readLine()) != null) {\n nutrerror = parser.setNutritionFacts(curdish, line);\n } else {\n break;\n }\n\n //read in empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //read in the location line\n if ((line = _bufread.readLine()) != null) {\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //read in the line that should have the date\n //use result to check for error and set newdate\n if ((line = _bufread.readLine()) != null) { //this line should have the date\n Calendar d = parser.setDate(curdish, line, curdate);\n if (d.equals(curdate)) //if the date returned is the same date, then there was no changed\n {\n newdate = false;\n } else { //if the date returned is different, then there is a newdate and curdate should be updated\n newdate = true;\n curdate = d;\n }\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //this line says Breakfast, Lunch, Dinner.... etc\n //check this line and the newdate variable to see if the dish should be added to the current meal\n //or if we need a whole new meal\n if ((line = _bufread.readLine()) != null) {\n //if this is the first dish, so there is no meal create a meal and add the dish && set the date\n if (curmeal == null) {\n curmeal = new Meal(line.toLowerCase());\n curdish.setDate(curdate);\n curdish.setMeal(curmeal);\n _dishes.add(curdish);\n } else if (curmeal.getMeal().equals(line) == false || newdate == true) {\n //this is the beginning of a new meal, add the cur meal to eatery and create a new one with the most recent date\n curmeal = new Meal(line.toLowerCase());\n curdish.setMeal(curmeal);\n curdish.setDate(curdate);\n } else { //this is just part of the current meal, add it and move on to the next one\n curdish.setMeal(curmeal);\n curdish.setDate(curdate);\n }\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n _dishes.add(curdish);\n //move on to the next dish in the text file\n }\n \n } catch (FileNotFoundException e) {\n return -1;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n } finally {\n if (_instream != null) {\n try {\n _instream.close();\n } catch (IOException e) {\n\n }\n }\n\n if (_bufread != null) {\n try {\n _bufread.close();\n } catch (IOException e) {\n\n }\n }\n\n if (_stream != null) {\n try {\n _stream.close();\n } catch (IOException e) {\n\n }\n }\n }\n return 1;\n }", "public void ownRead();", "private void getCustomerData() {\r\n\t\t// get next customer data : from file or random number generator\r\n\t\t// set anyNewArrival and transactionTime\r\n\t\t// see readme file for more info\r\n\r\n\t\tif (dataSource == 1) { // file\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0/1 random or file input\r\n\t\t\t\t\tif (dataFile.hasNextInt()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checks for a line of information\r\n\t\t\t\t\t\tint data1 = dataFile.nextInt();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// every line has 2 numbers of info\r\n\t\t\t\t\t\tint data2 = dataFile.nextInt();\r\n\t\t\t\t\t\tanyNewArrival \t= (((data1%100)+1)<= chancesOfArrival);\t\t// computes anyNewArrival boolean\r\n\t\t\t\t transactionTime = (data2%maxTransactionTime)+1;\t\t\t\t\t// computes transactionTime integer\r\n\t\t\t\t\t}\r\n\t\t} else { // random\r\n\t\t\tdataRandom = new Random();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// generates random boolean and int\r\n\t\t\tanyNewArrival \t= ((dataRandom.nextInt(100) + 1) <= chancesOfArrival);\r\n\t\t\ttransactionTime = dataRandom.nextInt(maxTransactionTime) + 1;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onSkipInRead(Throwable t) {\n\t\t\n\t}", "@Override\r\n public void next() {\r\n\r\n LogEntryBuffer l_observable = new LogEntryBuffer();\r\n LogFile l_observer = new LogFile();\r\n l_observable.addObserver(l_observer);\r\n\r\n for(String l_player: d_playerList.keySet())\r\n {\r\n if (d_playerList.get(l_player).d_owned.size()==0)\r\n {\r\n d_playerList.remove(l_player);\r\n d_message = l_player+\" you have lost the game. So you're out of the game!!!\";\r\n System.out.println(d_message);\r\n l_observable.setMsg(d_message);\r\n break;\r\n }\r\n }\r\n if(d_playerList.size()==1)\r\n {\r\n for(String player: d_playerList.keySet()) {\r\n d_message = player + \" is the winner of the game!!!!!!!!\";\r\n System.out.println(d_message);\r\n l_observable.setMsg(d_message);\r\n }\r\n d_ge1.setPhase(new End(d_ge1));\r\n }\r\n else\r\n {\r\n d_ge1.setPhase(new OrderIssuePhase(d_playerList, d_country, d_ge1));\r\n }\r\n }", "public synchronized void finishReading() {\n readerNumber--;\n if (readerNumber == 0) {\n this.notifyAll(); // notify possible waiting writers \n }\n }", "void incrementLinesRead();", "public void start(){\n\t\tterritoryCardsReader.readCards(1,cards);\n\t\tterritoryCardsReader.readCards(2,cards);\n\t\tterritoryCardsReader.readCards(3,cards);\n\t\t\n\t\tbuildingCardsReader.readCards(1, cards);\n\t\tbuildingCardsReader.readCards(2, cards);\n\t\tbuildingCardsReader.readCards(3, cards);\n\t\t\n\t\tcharacterCardsReader.readCards(1, cards);\n\t\tcharacterCardsReader.readCards(2, cards);\n\t\tcharacterCardsReader.readCards(3, cards);\n\t\t\n\t\tventureCardsReader.readCards(1, cards);\n\t\tventureCardsReader.readCards(2, cards);\n\t\tventureCardsReader.readCards(3, cards);\n\t\t\n\t\tleaderCardsReader.readCards(cards);\n\t\t\n\t\tboardResourcesAndStartingPlayerResourcesReader.readResources(bonus);\n\t\tboardResourcesAndStartingPlayerResourcesReader.readStartingPlayerResources(bonus);\n\t\tboardResourcesAndStartingPlayerResourcesReader.readFaithTrack(bonus);\n\t\tboardResourcesAndStartingPlayerResourcesReader.readPersonalBoardTiles(bonus, \"advanced\");\n\t\tboardResourcesAndStartingPlayerResourcesReader.readTimers(timer);\n\t\t\n\t\texcommunicationTilesReader.readCards(1, cards);\n\t\texcommunicationTilesReader.readCards(2, cards);\n\t\texcommunicationTilesReader.readCards(3, cards);\n\t\t\n\t\t\n\t}", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}", "@Override\n public void run() {\n try (BufferedReader reader = new BufferedReader(new FileReader(file.getAbsoluteFile()))) {\n String lineFromFile = reader.readLine();\n String[] splitLine;\n String userName;\n String url;\n long time;\n while ((lineFromFile = reader.readLine()) != null) {\n splitLine = lineFromFile.split(\";\");\n userName = splitLine[3];\n url = splitLine[1];\n time = Long.parseLong(splitLine[2]);\n if (userNamesAndCorrespondingContent.containsKey(userName)) {\n Content content = userNamesAndCorrespondingContent.get(userName);\n if (content.getUrlAndCorrespondingTime().containsKey(url)) {\n content.updateTimeForCorrespondingUrl(url, time);\n } else {\n content.updateUrlAndTimeInfoForCorrespondingUsername(url, time);\n }\n } else {\n Map<String, Long> newUrlAndTime = new ConcurrentSkipListMap<>();\n newUrlAndTime.put(url, time);\n userNamesAndCorrespondingContent.put(userName, new Content(newUrlAndTime));\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public DataChunk getNext() throws RecoverableInputProblem\n\t{\n\t data.setTo( base + amplitude * Math.random());\n\t ++counter;\n\t return data;\n\t}", "private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void run() \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"reading..\" +next.getFileName());\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t//ts1.finalWrite(next.getFileName(),(int)file.length());\n\t\t\t\t\t\t\tInputStream in = new FileInputStream(readFile);\n\t\t\t\t\t\t\tint i;\n\t\t\t\t\t\t\tint fileNameLength =readFile.length();\n\t\t\t\t\t\t\tlong fileLength = file.length();\n\t\t\t\t\t\t\tlong total = (2+fileNameLength+fileLength);\n\t\t\t\t\t\t\t//System.out.println(\"toal length\" +total);\n\t\t\t\t\t\t\tqu.put((byte)total);\n\t\t\t\t\t\t\tqu.put((byte)readFile.length()); // file name length\n\t\t\t\t\t\t\tqu.put((byte)file.length()); //file content length\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int j=0;j<readFile.length();j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)readFile.charAt(j)); //writing file Name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twhile((i=in.read())!=-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)i);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tin.close();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "private static void mFirstSync(Connection con, FileReader fr, String club, boolean clubcorp) {\n\n PreparedStatement pstmt2 = null;\n Statement stmt = null;\n ResultSet rs = null;\n\n\n Member member = new Member();\n\n String line = \"\";\n String password = \"\";\n String temp = \"\";\n\n int i = 0;\n int inact = 0;\n int pri_indicator = 0;\n\n // Values from MFirst records\n //\n String fname = \"\";\n String lname = \"\";\n String mi = \"\";\n String suffix = \"\";\n String posid = \"\";\n String gender = \"\";\n String ghin = \"\";\n String memid = \"\";\n String mNum = \"\";\n String u_hndcp = \"\";\n String c_hndcp = \"\";\n String mship = \"\";\n String mtype = \"\";\n String msub_type = \"\";\n String bag = \"\";\n String email = \"\";\n String email2 = \"\";\n String phone = \"\";\n String phone2 = \"\";\n String mobile = \"\";\n String primary = \"\";\n String webid = \"\";\n String custom1 = \"\";\n String custom2 = \"\";\n String custom3 = \"\";\n\n float u_hcap = 0;\n float c_hcap = 0;\n int birth = 0;\n\n // Values from ForeTees records\n //\n String fname_old = \"\";\n String lname_old = \"\";\n String mi_old = \"\";\n String mship_old = \"\";\n String mtype_old = \"\";\n String email_old = \"\";\n String mNum_old = \"\";\n String ghin_old = \"\";\n String bag_old = \"\";\n String posid_old = \"\";\n String email2_old = \"\";\n String phone_old = \"\";\n String phone2_old = \"\";\n String suffix_old = \"\";\n String msub_type_old = \"\";\n\n float u_hcap_old = 0;\n float c_hcap_old = 0;\n int birth_old = 0;\n\n // Values for New ForeTees records\n //\n String memid_new = \"\";\n String webid_new = \"\";\n String fname_new = \"\";\n String lname_new = \"\";\n String mi_new = \"\";\n String mship_new = \"\";\n String mtype_new = \"\";\n String email_new = \"\";\n String mNum_new = \"\";\n String ghin_new = \"\";\n String bag_new = \"\";\n String posid_new = \"\";\n String email2_new = \"\";\n String phone_new = \"\";\n String phone2_new = \"\";\n String suffix_new = \"\";\n String msub_type_new = \"\";\n String dupuser = \"\";\n String dupwebid = \"\";\n String dupmnum = \"\";\n String emailMF = \"[email protected]\";\n String subject = \"Roster Sync Warning from ForeTees for \" +club;\n\n float u_hcap_new = 0;\n float c_hcap_new = 0;\n int birth_new = 0;\n int errCount = 0;\n int warnCount = 0;\n int totalErrCount = 0;\n int totalWarnCount = 0;\n int email_bounce1 = 0;\n int email_bounce2 = 0;\n\n String errorMsg = \"\";\n String errMemInfo = \"\";\n String errMsg = \"\";\n String warnMsg = \"\";\n String emailMsg1 = \"Duplicate names found in MembersFirst file during ForeTees Roster Sync processing for club: \" +club+ \".\\n\\n\";\n String emailMsg2 = \"\\nThis indicates that either 2 members have the exact same names (not allowed), or MF's member id has changed.\\n\\n\";\n\n ArrayList<String> errList = new ArrayList<String>();\n ArrayList<String> warnList = new ArrayList<String>();\n\n boolean failed = false;\n boolean changed = false;\n boolean skip = false;\n boolean found = false;\n boolean sendemail = false;\n boolean genderMissing = false;\n boolean useWebid = false;\n boolean useWebidQuery = false;\n\n\n // Overwrite log file with fresh one for today's logs\n SystemUtils.logErrorToFile(\"Members First: Error log for \" + club + \"\\nStart time: \" + new java.util.Date().toString() + \"\\n\", club, false);\n\n try {\n\n BufferedReader bfrin = new BufferedReader(fr);\n line = new String();\n\n // format of each line in the file:\n //\n // memid, mNum, fname, mi, lname, suffix, mship, mtype, gender, email, email2,\n // phone, phone2, bag, hndcp#, uhndcp, chndcp, birth, posid, mobile, primary\n //\n //\n while ((line = bfrin.readLine()) != null) { // get one line of text\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord( line );\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 20 ) { // enough data ?\n\n memid = tok.nextToken();\n mNum = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n suffix = tok.nextToken();\n mship = tok.nextToken(); // col G\n mtype = tok.nextToken(); // col H\n gender = tok.nextToken();\n email = tok.nextToken();\n email2 = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n bag = tok.nextToken();\n ghin = tok.nextToken();\n u_hndcp = tok.nextToken();\n c_hndcp = tok.nextToken();\n temp = tok.nextToken();\n posid = tok.nextToken();\n mobile = tok.nextToken();\n primary = tok.nextToken(); // col U\n\n if ( tok.countTokens() > 0 ) {\n\n custom1 = tok.nextToken();\n }\n if ( tok.countTokens() > 0 ) {\n\n custom2 = tok.nextToken();\n }\n if ( tok.countTokens() > 0 ) {\n\n custom3 = tok.nextToken();\n }\n\n\n // trim gender in case followed be spaces\n gender = gender.trim();\n\n //\n // Check for ? (not provided)\n //\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (mNum.equals( \"?\" )) {\n\n mNum = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (suffix.equals( \"?\" )) {\n\n suffix = \"\";\n }\n if (mship.equals( \"?\" )) {\n\n mship = \"\";\n }\n if (mtype.equals( \"?\" )) {\n\n mtype = \"\";\n }\n if (gender.equals( \"?\" ) || (!gender.equalsIgnoreCase(\"M\") && !gender.equalsIgnoreCase(\"F\"))) {\n\n if (gender.equals( \"?\" )) {\n genderMissing = true;\n } else {\n genderMissing = false;\n }\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (email2.equals( \"?\" )) {\n\n email2 = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (bag.equals( \"?\" )) {\n\n bag = \"\";\n }\n if (ghin.equals( \"?\" )) {\n\n ghin = \"\";\n }\n if (u_hndcp.equals( \"?\" )) {\n\n u_hndcp = \"\";\n }\n if (c_hndcp.equals( \"?\" )) {\n\n c_hndcp = \"\";\n }\n if (temp.equals( \"?\" )) {\n\n birth = 0;\n\n } else {\n\n birth = Integer.parseInt(temp);\n }\n if (posid.equals( \"?\" )) {\n\n posid = \"\";\n }\n if (mobile.equals( \"?\" )) {\n\n mobile = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!memid.equals( \"\" ) && !mNum.equals( \"\" ) &&\n !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 && mi.equals( \"\" )) {\n\n mi = tok.nextToken();\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" ) && tok.countTokens() > 0 && club.equals(\"pradera\")) { // Pradera - if suffix AND 2-part lname, use both\n\n String lpart2 = tok.nextToken();\n\n lname = lname + \"_\" + lpart2; // combine them (i.e. Van Ess = Van_Ess)\n\n } else {\n\n if (suffix.equals( \"\" ) && tok.countTokens() > 0) { // if suffix not provided\n\n suffix = tok.nextToken();\n }\n }\n\n //\n // Make sure name is titled (most are already)\n //\n if (!club.equals(\"thereserveclub\")) {\n fname = toTitleCase(fname);\n }\n\n if (!club.equals(\"lakewoodranch\") && !club.equals(\"ballantyne\") && !club.equals(\"pattersonclub\") && !club.equals(\"baldpeak\") && !club.equals(\"pradera\") &&\n !club.equals(\"wellesley\") && !club.equals(\"portlandgc\") && !club.equals(\"trooncc\") && !club.equals(\"pmarshgc\") && !club.equals(\"paloaltohills\") &&\n !club.equals(\"thereserveclub\") && !club.equals(\"castlepines\")) {\n\n lname = toTitleCase(lname);\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n if (!u_hndcp.equals( \"\" ) && !u_hndcp.equalsIgnoreCase(\"NH\") && !u_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n u_hndcp = u_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n u_hndcp = u_hndcp.replace('H', ' '); // or 'H' if present\n u_hndcp = u_hndcp.replace('N', ' '); // or 'N' if present\n u_hndcp = u_hndcp.replace('J', ' '); // or 'J' if present\n u_hndcp = u_hndcp.replace('R', ' '); // or 'R' if present\n u_hndcp = u_hndcp.trim();\n\n u_hcap = Float.parseFloat(u_hndcp); // usga handicap\n\n if ((!u_hndcp.startsWith(\"+\")) && (!u_hndcp.startsWith(\"-\"))) {\n\n u_hcap = 0 - u_hcap; // make it a negative hndcp (normal)\n }\n }\n\n if (!c_hndcp.equals( \"\" ) && !c_hndcp.equalsIgnoreCase(\"NH\") && !c_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n c_hndcp = c_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n c_hndcp = c_hndcp.replace('H', ' '); // or 'H' if present\n c_hndcp = c_hndcp.replace('N', ' '); // or 'N' if present\n c_hndcp = c_hndcp.replace('J', ' '); // or 'J' if present\n c_hndcp = c_hndcp.replace('R', ' '); // or 'R' if present\n c_hndcp = c_hndcp.trim();\n\n c_hcap = Float.parseFloat(c_hndcp); // usga handicap\n\n if ((!c_hndcp.startsWith(\"+\")) && (!c_hndcp.startsWith(\"-\"))) {\n\n c_hcap = 0 - c_hcap; // make it a negative hndcp (normal)\n }\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n \n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n skip = false;\n errCount = 0; // reset error count\n warnCount = 0; // reset warning count\n errMsg = \"\"; // reset error message\n warnMsg = \"\"; // reset warning message\n errMemInfo = \"\"; // reset error member info\n found = false; // init club found\n\n\n //\n // Format member info for use in error logging before club-specific manipulation\n //\n errMemInfo = \"Member Details:\\n\" +\n \" name: \" + lname + \", \" + fname + \" \" + mi + \"\\n\" +\n \" mtype: \" + mtype + \" mship: \" + mship + \"\\n\" +\n \" memid: \" + memid + \" mNum: \" + mNum + \" gender: \" + gender;\n\n // if gender is incorrect or missing, flag a warning in the error log\n if (gender.equals(\"\")) {\n\n // report only if not a club that uses blank gender fields\n if (!club.equals(\"roccdallas\") && !club.equals(\"charlottecc\") && !club.equals(\"sawgrass\") && !clubcorp) {\n\n warnCount++;\n if (genderMissing) {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER missing! (Defaulted to 'M')\";\n } else {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER incorrect! (Defaulted to 'M')\";\n }\n\n gender = \"M\";\n\n } else if (club.equals(\"charlottecc\") || club.equals(\"sawgrass\")) { // default to female instead\n\n warnCount++;\n if (genderMissing) {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER missing! (Defaulted to 'F')\";\n } else {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER incorrect! (Defaulted to 'F)\";\n }\n\n gender = \"F\";\n\n } else if (clubcorp) {\n\n errCount++;\n skip = true;\n if (genderMissing) {\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: GENDER missing!\";\n } else {\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: GENDER incorrect!\";\n }\n }\n }\n\n //\n // Skip entries with first/last names of 'admin'\n //\n if (fname.equalsIgnoreCase(\"admin\") || lname.equalsIgnoreCase(\"admin\")) {\n errCount++;\n skip = true;\n errMsg = errMsg + \"\\n\" +\n \" -INVALID NAME! 'Admin' or 'admin' not allowed for first or last name\";\n }\n\n //\n // *********************************************************************\n //\n // The following will be dependent on the club - customized\n //\n // *********************************************************************\n //\n\n //******************************************************************\n // Saucon Valley Country Club\n //******************************************************************\n //\n if (club.equals( \"sauconvalleycc\" )) {\n\n found = true; // club found\n\n //\n // Determine if we should process this record\n //\n if (!mship.equalsIgnoreCase( \"No Privileges\" ) && !mtype.equalsIgnoreCase( \"Social\" ) &&\n !mtype.equalsIgnoreCase( \"Recreational\" )) {\n\n //\n // determine member type\n //\n if (mtype.equals( \"\" )) { // if not specified\n mtype = \"Staff\"; // they are staff\n }\n if (mship.equals( \"\" )) { // if not specified\n mship = \"Staff\"; // they are staff\n }\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n //\n // The Member Types and Mship Types for this club are backwards.\n // We must set our fields accordingly.\n //\n String memType = mship; // set actual mtype value\n mship = mtype; // set actual mship value\n\n if (memType.equals( \"Full Golf Privileges\" )) {\n\n mtype = \"Full Golf Privileges Men\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Full Golf Privileges Women\";\n }\n }\n\n if (memType.equals( \"Limited Golf Privileges\" )) {\n\n mtype = \"Limited Golf Privileges Men\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Limited Golf Privileges Women\";\n }\n }\n\n if (memType.equals( \"Senior Limited Golf Privileges\" )) {\n\n mtype = \"Senior Limited Golf Privileges\";\n }\n\n //\n // set posid according to mNum\n //\n if (mNum.endsWith( \"-1\" )) { // if spouse\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-1)\n posid = posid + \"1\"; // add a '1' (now 2741)\n\n } else {\n\n if (mNum.endsWith( \"-2\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-2)\n posid = posid + \"2\"; // add a '2' (now 2742)\n\n } else {\n\n if (mNum.endsWith( \"-3\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-3)\n posid = posid + \"3\"; // add a '3' (now 2743)\n\n } else {\n\n if (mNum.endsWith( \"-4\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-4)\n posid = posid + \"4\"; // add a '4' (now 2744)\n\n } else {\n\n posid = mNum; // primary posid = mNum\n }\n }\n }\n }\n\n suffix = \"\"; // done with suffix for now\n\n //\n // Check if member is over 70 yrs old - if so, add '_*' to the end of the last name\n // so proshop will know\n //\n if (birth > 0 && birth < 19500000) { // if worth checking\n\n //\n // Get today's date and then go back 70 years\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 70; // go back 70 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth <= oldDate) { // if member is 70+ yrs old\n\n lname = lname + \"_*\"; // inidicate such\n }\n }\n\n } else {\n\n skip = true; // skip this record\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n } // end of IF club = sauconvalleycc\n\n //******************************************************************\n // Crestmont CC\n //******************************************************************\n //\n if (club.equals( \"crestmontcc\" )) {\n\n found = true; // club found\n\n //\n // determine member type\n //\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n mtype = \"T Designated Male\";\n\n if (gender.equals( \"F\" )) {\n mtype = \"T Designated Female\";\n }\n\n } // end of IF club = crestmontcc\n\n //******************************************************************\n // Black Rock CC\n //******************************************************************\n //\n /*\n if (club.equals( \"blackrock\" )) {\n\n found = true; // club found\n\n //\n // remove the 'A' from spouses mNum\n //\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"C\" ) ||\n mNum.endsWith( \"D\" ) || mNum.endsWith( \"E\" ) || mNum.endsWith( \"F\" )) {\n\n mNum = stripA(mNum); // remove the ending 'A'\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (!mtype.equals( \"Dependents\" )) { // if not a junior\n\n if (gender.equals( \"F\" )) {\n\n if (mtype.equals( \"Primary\" )) {\n\n mtype = \"Member Female\";\n\n } else {\n\n mtype = \"Spouse Female\";\n }\n\n } else { // Male\n\n if (mtype.equals( \"Primary\" )) {\n\n mtype = \"Member Male\";\n\n } else {\n\n mtype = \"Spouse Male\";\n }\n }\n }\n\n } // end of IF club = blackrock\n */\n\n //******************************************************************\n // John's Island CC\n //******************************************************************\n //\n if (club.equals( \"johnsisland\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is not a blank or admin record\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (lname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine membership type\n //\n if (mship.equals( \"Golf Member\" )) {\n mship = \"Golf\";\n } else if (mship.startsWith( \"Golf Swap\" )) {\n mship = \"Golf Swap\";\n lname = lname + \"*\"; // mark these members\n } else if (mship.equals( \"Sport/Social Member\" )) {\n mship = \"Sport Social\";\n lname = lname + \"*\"; // mark these members\n } else if (mship.startsWith( \"Sport/Social Swap\" )) {\n mship = \"Sport Social Swap\";\n } else {\n mship = \"Golf\";\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (gender.equals( \"M\" ) && primary.equals( \"P\" )) {\n mtype = \"Primary Male\";\n } else if (gender.equals( \"F\" ) && primary.equals( \"P\" )) {\n mtype = \"Primary Female\";\n } else if (gender.equals( \"M\" ) && primary.equals( \"S\" )) {\n mtype = \"Spouse Male\";\n } else if (gender.equals( \"F\" ) && primary.equals( \"S\" )) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n } // end of IF club = johnsisland\n\n/*\n //******************************************************************\n // Philadelphia Cricket Club\n //******************************************************************\n //\n if (club.equals( \"philcricket\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is not an admin record or missing mship/mtype\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*Note* mship located in mtype field)\";\n\n } else if (lname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' MEMBERSHIP TYPE!\";\n } else {\n\n if (mtype.equalsIgnoreCase(\"Leave of Absence\")) {\n \n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (mtype.equalsIgnoreCase( \"golf stm family\" ) || mtype.equalsIgnoreCase( \"golf stm ind.\" )) {\n\n lname = lname + \"*\"; // add an astericks\n }\n\n // if mtype = no golf, add ^ to their last name\n if (mtype.equalsIgnoreCase( \"no golf\" )) {\n\n lname += \"^\";\n }\n\n mship = toTitleCase(mtype); // mship = mtype\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n\n /*\n //\n // determine member type\n //\n if (mtype.equalsIgnoreCase( \"2 junior ft golfers\" ) || mtype.equalsIgnoreCase( \"add'l jr. ft golfers\" ) ||\n mtype.equalsIgnoreCase( \"ft golf full 18-20\" ) || mtype.equalsIgnoreCase( \"ft jr. 17 & under\" ) ||\n mtype.equalsIgnoreCase( \"jr 17 & under w/golf\" ) || mtype.equalsIgnoreCase( \"jr 18-20 w/golf\" ) ||\n mtype.equalsIgnoreCase( \"jr. activity/no chg\" )) {\n\n mtype = \"Certified Juniors\";\n\n } else {\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (mtype.equalsIgnoreCase( \"ft assoc golf 21-30\" ) || mtype.equalsIgnoreCase( \"ft assoc ind golf\" ) ||\n mtype.equalsIgnoreCase( \"ft assoc ind/stm fm\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Associate Male\";\n\n } else {\n\n mtype = \"Associate Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"ft full fm/ind 21-30\" ) || mtype.equalsIgnoreCase( \"ft full ind/sm fm\" ) ||\n mtype.equalsIgnoreCase( \"ft golf full fam.\" ) || mtype.equalsIgnoreCase( \"ft golf full ind.\" ) ||\n mtype.equalsIgnoreCase( \"ft golf honorary\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Full Male\";\n\n } else {\n\n mtype = \"Full Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"golf stm family\" ) || mtype.equalsIgnoreCase( \"golf stm ind.\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"STM Male\";\n\n } else {\n\n mtype = \"STM Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"golf stm (17-20)\" ) || mtype.equalsIgnoreCase( \"golf stm 16 & under\" )) {\n\n mtype = \"STM Junior\";\n\n } else {\n\n mtype = \"Non-Golfing\";\n }\n }\n }\n }\n }\n }\n\n } // end of IF club = philcricket\n\n */\n /*\n //******************************************************************\n // Edgewood CC\n //******************************************************************\n //\n if (club.equals( \"edgewood\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase( \"Sport\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Sport' MEMBERSHIP TYPE!\";\n } else if (mship.equalsIgnoreCase( \"Dining\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Dining' MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Strip any leading zeros from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = edgewood\n */\n /*\n //******************************************************************\n // Out Door CC\n //******************************************************************\n //\n if (club.equals( \"outdoor\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Translate the mship value - remove the '00x-' prefix\n //\n tok = new StringTokenizer( mship, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n\n mship = tok.nextToken(); // get prefix\n mship = tok.nextToken(); // get mship without prefix\n }\n\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Member Male\";\n } else {\n mtype = \"Member Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = outdoor\n */\n\n\n //******************************************************************\n // Rhode Island CC\n //******************************************************************\n //\n if (club.equals( \"rhodeisland\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = rhodeisland\n\n //******************************************************************\n // Wellesley CC\n //******************************************************************\n //\n if (club.equals( \"wellesley\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type (mship value plus 'Male' or 'Female' - i.e. 'Golf Male')\n //\n if (gender.equals( \"F\" )) { // if Female\n mtype = mship + \" Female\";\n } else {\n mtype = mship + \" Male\";\n }\n }\n } // end of IF club = wellesley\n\n //******************************************************************\n // Lakewood Ranch CC\n //******************************************************************\n //\n if (club.equals( \"lakewoodranch\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (mship.equalsIgnoreCase(\"SMR Members and Staff\")) {\n mship = \"SMR Members\";\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = lakewoodranch\n\n //******************************************************************\n // Long Cove CC\n //******************************************************************\n //\n if (club.equals( \"longcove\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member sub-type (MGA or LGA)\n //\n msub_type = \"\";\n\n if (!mtype.equals( \"\" )) { // if mtype specified (actually is sub-type)\n\n msub_type = mtype; // set it in case they ever need it\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (gender.equals( \"M\" )) {\n mtype = \"Adult Male\";\n } else {\n mtype = \"Adult Female\";\n }\n }\n } // end of IF club = longcove\n\n //******************************************************************\n // Bellerive CC\n //******************************************************************\n //\n /*\n if (club.equals( \"bellerive\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) { // mship exist ?\n\n skip = true; // no - skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n if (primary.equalsIgnoreCase( \"P\" )) {\n\n gender = \"M\"; // default to Male\n\n } else {\n\n gender = \"F\"; // default to Female\n }\n }\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Adult Male\";\n\n } else {\n\n mtype = \"Adult Female\";\n }\n\n //\n // Strip any extra chars from mNum\n //\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"C\" ) ||\n mNum.endsWith( \"D\" ) || mNum.endsWith( \"E\" ) || mNum.endsWith( \"F\" )) {\n\n mNum = stripA(mNum); // remove the ending 'A'\n }\n\n if (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n // *** see oahucc and common MF processing below if we use this again *****************\n\n webid = memid; // use id from MF\n\n //\n // Set the proper mship type\n //\n if (mship.equalsIgnoreCase( \"Active\" ) || mship.equalsIgnoreCase( \"Associate\" ) ||\n mship.equalsIgnoreCase( \"Junior\" ) || mship.equalsIgnoreCase( \"Life\" )) {\n\n mship = \"Golf\";\n }\n\n if (mship.equalsIgnoreCase( \"Non-Golf\" )) {\n\n mship = \"Non-Golf Senior\";\n }\n\n if (mship.equalsIgnoreCase( \"Non-Res\" )) {\n\n mship = \"Non-Resident\";\n }\n\n if (mship.equalsIgnoreCase( \"Spouse\" )) {\n\n //\n // See if we can locate the primary and use his/her mship (else leave as is, it will change next time)\n //\n pstmt2 = con.prepareStatement (\n \"SELECT m_ship FROM member2b WHERE memNum = ? AND webid != ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, mNum);\n pstmt2.setString(2, webid);\n rs = pstmt2.executeQuery();\n\n if(rs.next()) {\n\n mship = rs.getString(\"m_ship\");\n }\n pstmt2.close(); // close the stmt\n }\n }\n } // end of IF club = bellerive\n */\n\n //******************************************************************\n // Peninsula Club\n //******************************************************************\n //\n if (club.equals( \"peninsula\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals(\"\")) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (!mship.equalsIgnoreCase( \"Full\" ) && !mship.equalsIgnoreCase( \"Sports\" ) && !mship.equalsIgnoreCase( \"Corp Full\" ) &&\n !mship.equalsIgnoreCase( \"Tennis\" )) { // mship ok ?\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (primary.equalsIgnoreCase( \"P\" )) { // if Primary member\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n\n } else { // Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = peninsula\n\n\n //******************************************************************\n // Wilmington CC\n //******************************************************************\n //\n if (club.equals( \"wilmington\" )) {\n\n found = true; // club found\n\n // Make sure this is ok\n if (mship.equals( \"\" )) { // mship missing ?\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n // Set POS Id in case they ever need it\n posid = mNum;\n\n // determine membership type and member type\n if (mship.equalsIgnoreCase( \"Child\" )) { // if child\n\n mship = \"Associate\";\n\n // Check if member is 13 or over\n if (birth > 0) {\n\n // Get today's date and then go back 13 years\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 13; // go back 13 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth <= oldDate) { // if member is 13+ yrs old\n mtype = \"Dependent\";\n } else {\n mtype = \"Dependent - U13\";\n }\n }\n\n } else {\n\n if (mship.equalsIgnoreCase( \"Senior\" ) || mship.equalsIgnoreCase( \"Associate\" ) || mship.equalsIgnoreCase(\"Clerical\")) { // if Senior or spouse\n skip = false; // ok\n } else if (mship.endsWith( \"Social\" )) { // if any Social\n mship = \"Social\"; // convert all to Social\n } else if (mship.equalsIgnoreCase( \"Senior Special\" )) { // if Senior Special\n mship = \"Associate\"; // convert to Associate\n } else if (mship.equalsIgnoreCase( \"Senior Transfer\" )) { // if Senior Special\n mship = \"Senior\"; // convert to Senior\n } else {\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase( \"M\" )) {\n mtype = \"Adult Male\";\n } else {\n mtype = \"Adult Female\";\n }\n }\n\n // Check if member has range privileges\n msub_type = \"\"; // init\n\n if (custom1.equalsIgnoreCase( \"range\" )) {\n msub_type = \"R\"; // yes, indicate this so it can be displayed on Pro's tee sheet\n }\n\n }\n } // end of IF club = wilmington\n\n\n //******************************************************************\n // Awbrey Glen CC\n //******************************************************************\n //\n if (club.equals( \"awbreyglen\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) { // mship missing ?\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (mship.equalsIgnoreCase(\"Employee\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n gender = \"F\"; // assume Female\n }\n }\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end of IF club = awbreyglen\n\n\n //******************************************************************\n // The Pinery CC\n //******************************************************************\n //\n if (club.equals( \"pinery\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase( \"Tennis Dues\" ) || mship.equalsIgnoreCase( \"Social Dues\" ) ||\n mship.equalsIgnoreCase( \"Premier Tennis Dues\" ) || mship.equalsIgnoreCase( \"Premier Social Prepaid\" ) ||\n mship.equalsIgnoreCase( \"Premier Social Dues\" ) || mship.equalsIgnoreCase( \"Premier Dining Dues\" ) ||\n mship.equalsIgnoreCase( \"Dining Dues\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // Set mtype\n //\n if (primary.equals( \"\" )) { // if primary not specified\n\n primary = \"P\"; // default to Primary\n }\n\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n gender = \"F\"; // assume Female\n }\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n }\n } // end of IF club = pinery\n\n\n\n //******************************************************************\n // The Country Club\n //******************************************************************\n //\n if (club.equals( \"tcclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n if (mship.startsWith( \"65 & above \" )) {\n\n mship = \"65 & Above Exempt\"; // remove garbage character\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equals( \"\" )) { // if primary not specified\n\n primary = \"P\"; // default to Primary\n }\n\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Check for dependents\n //\n if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") || mNum.endsWith(\"-5\") ||\n mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") || mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n if (gender.equalsIgnoreCase( \"F \")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n }\n\n }\n } // end of IF club = tcclub\n\n //******************************************************************\n // Navesink Country Club\n //******************************************************************\n //\n if (club.equals( \"navesinkcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else {\n\n useWebid = true;\n webid = memid;\n memid = mNum; // use mNum for username, they are unique!\n\n\n if (mtype.startsWith( \"Member Type\" )) {\n\n mship = mtype.substring(12); // remove garbage character\n\n } else {\n mship = mtype;\n }\n\n if (mship.equalsIgnoreCase(\"SS\") || mship.equalsIgnoreCase(\"SSQ\") || mship.equalsIgnoreCase(\"WMF\") ||\n mship.equalsIgnoreCase(\"WMS\") || mship.equalsIgnoreCase(\"HQ\") || mship.equalsIgnoreCase(\"HM\") ||\n mship.equalsIgnoreCase(\"H\") || mship.equalsIgnoreCase(\"HL\") || mship.equalsIgnoreCase(\"HR\") ||\n mship.equalsIgnoreCase(\"JSQ\") || mship.equalsIgnoreCase(\"SHL\") || mship.equalsIgnoreCase(\"SP\") ||\n mship.equalsIgnoreCase(\"SPJ\") || mship.equalsIgnoreCase(\"SPQ\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n StringTokenizer navTok = null;\n\n // check Primary/Spouse\n if (mNum.endsWith(\"-1\")) {\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 2);\n\n } else if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") ||\n mNum.endsWith(\"-5\") || mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") ||\n mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n primary = \"D\";\n mNum = mNum.substring(0, mNum.length() - 2);\n } else {\n primary = \"P\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else if (primary.equalsIgnoreCase( \"D\" )) {\n\n //\n // Dependent mtype based on age\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 18; // backup 18 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth > oldDate || birth == 0) { // dependent is under 18 or no bday provided\n\n mtype = \"Dependent Under 18\";\n } else {\n mtype = \"Dependent 18-24\";\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n if (mship.equalsIgnoreCase(\"SR\") || mship.equalsIgnoreCase(\"SRQ\")) {\n mship = \"SR\";\n } else if (mship.equalsIgnoreCase(\"JR\") || mship.equalsIgnoreCase(\"JRQ\")) {\n mship = \"JR\";\n } else if (mship.equalsIgnoreCase(\"NR\") || mship.equalsIgnoreCase(\"NRQ\")) {\n mship = \"NR\";\n } else if (mship.equalsIgnoreCase(\"R\") || mship.equalsIgnoreCase(\"RQ\")) {\n mship = \"R\";\n }\n }\n }\n } // end of IF club = navesinkcc\n\n\n //******************************************************************\n // The International\n //******************************************************************\n //\n if (club.equals( \"international\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n mship = \"Unknown\"; // allow for missing mships for now\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n\n //\n // Set mship\n //\n if (mship.equals( \"Other\" ) || mship.equals( \"Social\" ) || mship.startsWith( \"Spouse of\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else {\n\n if (mship.startsWith( \"Corporate\" ) || mship.startsWith( \"ITT\" )) {\n mship = \"Corporate\";\n } else if (mship.equals( \"Individual\" ) || mship.endsWith( \"Individual\" ) || mship.startsWith( \"Honorary\" ) ||\n mship.startsWith( \"Owner\" ) || mship.equals( \"Trade\" )) {\n mship = \"Individual\";\n } else if (mship.startsWith( \"Family\" ) || mship.startsWith( \"Senior Family\" )) {\n mship = \"Family\";\n } else if (mship.startsWith( \"Out of Region\" )) {\n mship = \"Out of Region\";\n } else if (mship.startsWith( \"Associat\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Staff\" )) {\n mship = \"Staff\";\n }\n\n }\n } // end of IF club = international\n\n\n //******************************************************************\n // Blue Hill\n //******************************************************************\n //\n if (club.equals( \"bluehill\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else { // must be Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Set mship\n //\n if (mship.startsWith( \"Social\" )) {\n mship = \"Social Golf\";\n } else if (mship.startsWith( \"Associat\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Corporate\" )) {\n mship = \"Corporate\";\n } else if (!mship.equals( \"Junior\" )) {\n mship = \"Regular Golf\"; // all others (Junior remains as Junior)\n }\n }\n } // end of IF club = bluehill\n\n\n //******************************************************************\n // Oak Lane\n //******************************************************************\n //\n if (club.equals( \"oaklane\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!!!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing or not allowed! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Remove '-n' from mNum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiters are space\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get main mNum\n }\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else { // must be Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Set mship\n //\n if (mship.startsWith( \"Senior Social\" ) || mship.startsWith( \"Social\" )) {\n mship = \"Social\";\n } else if (mship.startsWith( \"Senior Tennis\" ) || mship.startsWith( \"Summer Tennis\" ) || mship.startsWith( \"Tennis\" )) {\n mship = \"Tennis\";\n }\n }\n } // end of IF club = oaklane\n\n\n //******************************************************************\n // Green Hills\n //******************************************************************\n //\n if (club.equals( \"greenhills\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!!!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n mtype = \"Primary Male\"; // default Primary\n\n if (mNum.endsWith( \"-1\" )) { // if Spouse\n mtype = \"Spouse Female\";\n }\n\n //\n // Remove '-n' from mNum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiters are space\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get main mNum\n }\n }\n } // end of IF club = greenhills\n\n\n //******************************************************************\n // Oahu CC\n //******************************************************************\n //\n if (club.equals( \"oahucc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n // This family has a last name consisting of 3 words. If them, just plug in the correct name\n if (memid.equals(\"4081\") || memid.equals(\"4081-1\")) {\n lname = \"de_los_Reyes\";\n }\n\n //\n // Convert some mships\n //\n if (mship.equalsIgnoreCase( \"Surviving Spouse 50 Year Honorary\" )) {\n mship = \"Surv Sp 50 Year Honorary\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse - Non-Resident\" )) {\n mship = \"Surviving Spouse Non-Resident\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Non-Resident - Golf\" )) {\n mship = \"Surv Sp Non-Resident - Golf\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Super Senior - Golf\" )) {\n mship = \"Surv Sp Super Senior - Golf\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Super Senior - Social\" )) {\n mship = \"Surv Sp Super Senior - Social\";\n }\n\n //\n // Set mtype\n //\n if (mship.startsWith(\"Surv\") || mship.equalsIgnoreCase(\"SS50\")) { // if Surviving Spouse\n\n mtype = \"Spouse\"; // always Spouse\n\n } else {\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n mtype = \"Spouse\";\n } else {\n mtype = \"Primary\"; // default to Primary\n }\n }\n\n //\n // Check for Junior Legacy members last\n //\n if (mship.startsWith( \"Jr\" )) {\n\n mship = \"Junior Legacy\";\n mtype = \"Spouse\";\n }\n }\n } // end of IF club = oahucc\n\n\n\n //******************************************************************\n // Ballantyne CC\n //******************************************************************\n //\n if (club.equals( \"ballantyne\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken();\n }\n\n //\n // Convert some mships ************** finish this!!!!!!!!! ************\n //\n if (mtype.equalsIgnoreCase( \"Full Golf\" ) || mship.equalsIgnoreCase(\"Trial Member - Golf\")) {\n\n mship = \"Golf\";\n skip = false;\n\n } else if (mtype.equalsIgnoreCase( \"Limited Golf\" ) || mship.equalsIgnoreCase( \"Master Member\" ) || mship.equalsIgnoreCase(\"Trial Sports Membership\")) {\n\n mship = \"Sports\";\n skip = false;\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n //\n // Set mtype ?????????? **************** and this !!!! **************\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club is ballantyne\n\n\n //******************************************************************\n // Troon CC\n //******************************************************************\n //\n if (club.equals( \"trooncc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken();\n }\n\n if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Intermediate Golf\") ||\n mship.equalsIgnoreCase(\"Social to Golf Upgrade\") || mship.equalsIgnoreCase(\"Founding\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Social from Golf\")) {\n mship = \"Social\";\n } else if (!mship.equalsIgnoreCase(\"Senior\") && !mship.equalsIgnoreCase(\"Dependent\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n try {\n if (mship.equalsIgnoreCase(\"Dependent\") && (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"b\"))) {\n String mNumTemp = mNum.substring(0, mNum.length() - 1);\n PreparedStatement pstmtTemp = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n\n pstmtTemp.clearParameters();\n pstmtTemp.setString(1, mNumTemp);\n\n ResultSet rsTemp = pstmtTemp.executeQuery();\n\n if (rsTemp.next()) {\n mship = rsTemp.getString(\"m_ship\");\n }\n\n pstmtTemp.close();\n }\n } catch (Exception exc) {\n mship = \"Unknown\";\n }\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase( \"F\" )) { // if spouse\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club = trooncc\n\n\n //******************************************************************\n // Imperial GC\n //******************************************************************\n //\n if (club.equals( \"imperialgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.startsWith( \"Account\" ) || mship.equals( \"Dining Full\" ) ||\n mship.equals( \"Dining Honorary\" ) || mship.equals( \"Dining Single\" ) ||\n mship.equals( \"Resigned\" ) || mship.equals( \"Suspended\" )) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n //useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken();\n }\n\n\n //\n // Convert some mships\n //\n if (mship.startsWith( \"Associate\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Dining Summer\" )) {\n mship = \"Dining Summer Golf\";\n } else if (mship.startsWith( \"Golf Royal\" )) {\n mship = \"Golf Royal\";\n } else if (mship.startsWith( \"Golf Single\" ) || mship.equalsIgnoreCase(\"RISINGLE\")) {\n mship = \"Golf Single\";\n } else if (mship.equalsIgnoreCase(\"RIMEMBER\")) {\n mship = \"Golf Full\";\n } else if (mship.startsWith( \"Limited Convert\" )) {\n mship = \"Limited Convertible\";\n } else if (mship.startsWith( \"Resigned\" )) {\n mship = \"Resigned PCD\";\n }\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n\n gender = \"F\";\n }\n }\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club = imperialgc\n\n\n\n /* Disable - Pro wants to maintain roster himself !!!\n *\n //******************************************************************\n // Hop Meadow GC\n //******************************************************************\n //\n if (club.equals( \"hopmeadowcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken(); // keep mnum same for all family members\n }\n\n\n //\n // Convert some mships\n //\n if (mship.startsWith( \"Sporting\" )) {\n\n mship = \"Sporting Member\";\n\n } else {\n\n if (mship.startsWith( \"Dependent\" )) {\n\n mship = \"Dependents\";\n\n } else {\n\n if (mship.startsWith( \"Non-Resid\" )) {\n\n mship = \"Non Resident\";\n\n } else {\n\n if (mship.equals( \"Clergy\" ) || mship.startsWith( \"Full Privilege\" ) ||\n mship.equals( \"Honorary\" ) || mship.startsWith( \"Retired Golf\" )) {\n\n mship = \"Full Privilege Golf\";\n\n } else if (mship.equals(\"Senior\")) {\n\n // let Senior come through as-is\n\n } else {\n\n skip = true; // skip all others\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n }\n }\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n\n mtype = \"Spouse Female\";\n\n if (!gender.equalsIgnoreCase( \"F\")) {\n\n mtype = \"Spouse Male\";\n }\n\n } else {\n\n mtype = \"Primary Male\";\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n\n mtype = \"Primary Female\";\n }\n }\n }\n } // end of IF club = hopmeadowcc\n */\n\n\n\n //******************************************************************\n // Bentwater Yacht & CC\n //******************************************************************\n //\n if (club.equals( \"bentwaterclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n\n //\n // Convert the mships (\"Member Type:xxx\" - just take the xxx)\n //\n tok = new StringTokenizer( mship, \":\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mship = tok.nextToken(); // skip 1st part\n mship = tok.nextToken(); // get actual mship\n }\n\n\n //\n // Set mtype\n //\n mtype = \"Member\"; // same for all\n }\n } // end of IF club = bentwaterclub\n\n\n //******************************************************************\n // Sharon Heights\n //******************************************************************\n //\n if (club.equals( \"sharonheights\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n\n //\n // Set POS Id - leave leading zeros, but strip trailing alpha!!\n //\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n posid = stripA(mNum); // remove trailing alpha for POSID\n }\n\n\n //\n // Strip any leading zeros and from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum w/o zeros for username (each is unique - MUST include the trailing alpha!!)\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n } else {\n\n if (mNum.endsWith(\"B\") || mNum.endsWith(\"b\")) {\n\n mtype = \"Adult Female\";\n }\n }\n\n //\n // Now remove the trainling alpha from mNum\n //\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n }\n } // end of IF club = sharonheights\n\n\n/*\n //******************************************************************\n // Bald Peak\n //******************************************************************\n //\n if (club.equals( \"baldpeak\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use MF's memid\n memid = mNum; // use mNum for username (each is unique)\n\n\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"S\")) {\n\n mtype = \"Adult Female\";\n gender = \"F\";\n }\n }\n }\n } // end of IF club = baldpeak\n*/\n\n //******************************************************************\n // Mesa Verde CC\n //******************************************************************\n //\n if (club.equals( \"mesaverdecc\" )) {\n\n found = true; // club found\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (mship.startsWith( \"Social\" )) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n mtype = \"Member\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Auxiliary\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"S\")) {\n\n mtype = \"Auxiliary\";\n gender = \"F\";\n }\n }\n }\n } // end of IF club = mesaverdecc\n\n\n //******************************************************************\n // Portland CC\n //******************************************************************\n //\n if (club.equals( \"portlandcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n\n if (primary.equalsIgnoreCase(\"P\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"P\")) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Spouse Male\";\n }\n }\n\n //\n // Set mship\n //\n if (mship.endsWith(\"10\") || mship.endsWith(\"11\") || mship.endsWith(\"12\") || mship.endsWith(\"14\") ||\n mship.endsWith(\"15\") || mship.endsWith(\"16\") || mship.endsWith(\"17\")) {\n\n mship = \"Active\";\n\n } else if (mship.endsWith(\"20\") || mship.endsWith(\"21\")) {\n mship = \"Social\";\n } else if (mship.endsWith(\"30\") || mship.endsWith(\"31\")) {\n mship = \"Senior Active\";\n } else if (mship.endsWith(\"40\") || mship.endsWith(\"41\")) {\n mship = \"Junior Active\";\n } else if (mship.endsWith(\"18\") || mship.endsWith(\"19\")) {\n mship = \"Junior Social\";\n } else if (mship.endsWith(\"50\") || mship.endsWith(\"51\") || mship.endsWith(\"60\")) {\n mship = \"Unattached\";\n } else if (mship.endsWith(\"78\") || mship.endsWith(\"79\")) {\n mship = \"Social Non-Resident\";\n } else if (mship.endsWith(\"80\") || mship.endsWith(\"81\")) {\n mship = \"Active Non-Resident\";\n } else if (mship.endsWith(\"70\") || mship.endsWith(\"71\") || mship.endsWith(\"72\")) {\n mship = \"Spousal\";\n } else {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = portlandcc\n\n\n /*\n //******************************************************************\n // Dorset FC - The Pro does not want to use RS - he will maintain the roster\n //******************************************************************\n //\n if (club.equals( \"dorsetfc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n if (!mship.endsWith( \":5\" ) && !mship.endsWith( \":9\" ) && !mship.endsWith( \":17\" ) && !mship.endsWith( \":21\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n //\n // Set mship\n //\n mship = \"Family Full\";\n }\n }\n } // end of IF club = dorsetfc\n */\n\n\n //******************************************************************\n // Baltusrol GC\n //******************************************************************\n //\n if (club.equals( \"baltusrolgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n\n //\n // Set mtype\n //\n if (memid.endsWith(\"-1\")) { // if Spouse\n\n if (gender.equalsIgnoreCase(\"M\")) {\n\n mtype = \"Spouse Male\";\n\n } else {\n\n mtype = \"Spouse Female\";\n\n fname = \"Mrs_\" + fname; // change to Mrs....\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Primary Female\";\n\n } else {\n\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set the mship type\n //\n if (mship.startsWith(\"Junior\")) { // Funnel anything starting with 'Junior' to be simply \"Junior\"\n\n mship = \"Junior\";\n\n } else if (mship.equalsIgnoreCase(\"Staff\") || mship.startsWith(\"Type\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = baultusrolcc\n\n\n\n\n //******************************************************************\n // The Club at Pradera\n //******************************************************************\n //\n if (club.equals( \"pradera\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n if (mNum.endsWith(\"-1\")) { // if Spouse\n mNum = mNum.substring(0, mNum.length()-2);\n if (!genderMissing && gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Spouse\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set the mship type\n //\n mship = \"Golf\"; // default\n\n if (mNum.startsWith(\"I\")) {\n mship = \"Invitational\";\n } else if (mNum.startsWith(\"P\")) {\n mship = \"Prestige\";\n } else if (mNum.startsWith(\"F\")) {\n mship = \"Founding\";\n } else if (mNum.startsWith(\"J\")) {\n mship = \"Junior Executive\";\n } else if (mNum.startsWith(\"C\")) {\n mship = \"Corporate\";\n } else if (mNum.startsWith(\"H\")) {\n mship = \"Honorary\";\n } else if (mNum.startsWith(\"Z\")) {\n mship = \"Employee\";\n } else if (mNum.startsWith(\"S\")) {\n mship = \"Sports\";\n } else if (mNum.startsWith(\"L\") || mNum.startsWith(\"l\")) {\n mship = \"Lifetime\";\n } else if (mNum.startsWith(\"X\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = pradera\n\n\n\n //******************************************************************\n // Scarsdale GC\n //******************************************************************\n //\n if (club.equals( \"scarsdalegolfclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n if (!mNum.endsWith(\"-1\")) {\n\n memid = mNum; // use mNum for username\n\n } else {\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // isolate mnum\n }\n\n memid = mNum + \"A\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase(\"S\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set mship\n //\n if (mship.endsWith(\"egular\")) { // catch all Regulars\n mship = \"Regular\";\n } else if (mship.endsWith(\"ssociate\")) { // catch all Associates\n mship = \"Associate\";\n } else if (mship.endsWith(\"Social\")) { // catch all Socials\n mship = \"House Social\";\n } else if (mship.endsWith(\"Sports\")) { // catch all Sports\n mship = \"House Sports\";\n } else if (mship.equals(\"P\") || mship.equals(\"Privilege\")) {\n mship = \"Privilege\";\n } else if (!mship.equals(\"Special Visitors\") && !mship.equals(\"Non-Resident\") && !mship.equals(\"Honorary\")) {\n\n skip = true; // skip if not one of the above\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club is Scarsdale\n\n\n\n //******************************************************************\n // Patterson Club\n //******************************************************************\n //\n if (club.equals( \"pattersonclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mship.startsWith( \"DS\" ) || mship.startsWith( \"Employee\" ) || mship.equals( \"LOA\" ) ||\n mship.equals( \"Resigned\" ) || mship.equals( \"Honorary\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n\n memid = mNum; // use mNum for username\n\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n /*\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken(); // isolate mnum\n\n if (memid.endsWith(\"-1\")) {\n\n memid = mNum + \"A\"; // use nnnA\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n } else {\n mtype = \"Dependent\";\n }\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n */\n\n if (mNum.endsWith(\"A\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n\n //\n // Set mship - these do not exist any longer, but leave just in case\n //\n if (mship.equalsIgnoreCase(\"FP-Intermediate\")) {\n mship = \"FP\";\n } else {\n if (mship.equalsIgnoreCase(\"HTP Intermediate\")) {\n mship = \"HTP\";\n }\n } // Accept others as is\n }\n } // end of IF club = pattersonclub\n\n\n //******************************************************************\n // Tamarack\n //******************************************************************\n //\n if (club.equals( \"tamarack\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // Set username to mNum (it is unique)\n //\n memid = mNum;\n\n //\n // Remove extension from mNum if not primary\n //\n StringTokenizer tok9 = new StringTokenizer( mNum, \"-\" ); // look for a dash (i.e. 1234-1)\n\n if ( tok9.countTokens() > 1 ) { \n\n mNum = tok9.nextToken(); // get just the mNum if it contains an extension\n }\n\n /*\n if (!primary.equalsIgnoreCase(\"P\")) {\n mNum = stripA(mNum);\n }\n */\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (mship.startsWith(\"SP-\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n mship = mship.substring(3);\n\n } else if (mship.startsWith(\"DEP-\")) {\n\n mtype = \"Dependent\";\n\n mship = mship.substring(4);\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n if (memid.contains(\"-\")) {\n memid = memid.substring(0, memid.length() - 2) + memid.substring(memid.length() - 1);\n }\n \n\n //\n // Set mship\n //\n if (mship.equalsIgnoreCase(\"Associate\") || mship.equalsIgnoreCase(\"Corporate\") || mship.equalsIgnoreCase(\"Dependent\") ||\n mship.equalsIgnoreCase(\"Junior\") || mship.equalsIgnoreCase(\"Non-Resident\") || mship.equalsIgnoreCase(\"Senior\") ||\n mship.equalsIgnoreCase(\"Regular\") || mship.equalsIgnoreCase(\"Sr Cert\") || mship.equalsIgnoreCase(\"Intermed/C\") ||\n mship.equalsIgnoreCase(\"Widow\")) {\n\n // Do nothing\n\n } else if (mship.equalsIgnoreCase(\"Certificate\")) {\n mship = \"Certificat\";\n } else if (mship.equalsIgnoreCase(\"Intermediate\")) {\n mship = \"Intermedia\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = tamarack\n\n //******************************************************************\n // St. Clair Country Club\n //******************************************************************\n //\n if (club.equals( \"stclaircc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n\n // strip \"Member Type:\" from mship if present\n if (mtype.startsWith(\"Member Type:\")) {\n mtype = mtype.substring(12);\n }\n\n // set mship\n if (mtype.equalsIgnoreCase(\"ACTIVE\") || mtype.equalsIgnoreCase(\"VOTING\")) {\n mship = \"Voting\";\n } else if (mtype.equalsIgnoreCase(\"ACTIVESR\") || mtype.equalsIgnoreCase(\"SENIOR\")) {\n mship = \"Senior\";\n } else if (mtype.startsWith(\"INT\")) {\n mship = \"Intermediate\";\n } else if (mtype.equalsIgnoreCase(\"ASSOC20\")) {\n mship = \"Assoc20\";\n } else if (mtype.equalsIgnoreCase(\"ASSOCIATE\")) {\n mship = \"Associate Golf\";\n } else if (mtype.equalsIgnoreCase(\"LTD GOLF\")) {\n mship = \"Limited Golf\";\n } else if (mtype.equalsIgnoreCase(\"SOCGLF\")) {\n mship = \"Social Golf\";\n } else if (mtype.equalsIgnoreCase(\"NRGP\")) {\n mship = \"NR Golf\";\n } else if (mtype.equalsIgnoreCase(\"FAMILY GP\") || mtype.equalsIgnoreCase(\"SPOUSE GP\")) {\n mship = \"Spouse Golf\";\n } else if (mtype.equalsIgnoreCase(\"FAMILYSPGP\") || mtype.equalsIgnoreCase(\"SPOUSESPGP\")) {\n mship = \"Spouse Golf 9\";\n } else if (mtype.equalsIgnoreCase(\"ASSP20GP\")) {\n mship = \"Assoc Spouse20\";\n } else if (mtype.equalsIgnoreCase(\"ASGP\")) {\n mship = \"Assoc/Ltd Spouse\";\n } else if (mtype.equalsIgnoreCase(\"LTDSP GP\") || mtype.equalsIgnoreCase(\"ASGP\")) {\n mship = \"Limited Spouse\";\n } else if (mtype.equalsIgnoreCase(\"ASSSPGP\")) {\n mship = \"Associate Spouse\";\n } else if (mtype.equalsIgnoreCase(\"SOCSP GP\") || mtype.equalsIgnoreCase(\"ASRGP\")) {\n mship = \"Soc Golf Spouse\";\n } else if (mtype.equalsIgnoreCase(\"JR 12-17\") || mtype.equalsIgnoreCase(\"JR 18-24\")) {\n mship = \"Junior Golf\";\n } else if (mtype.equalsIgnoreCase(\"ASSOC20J\") || mtype.equalsIgnoreCase(\"ASSOC20J18\")) {\n mship = \"Assoc Jr20\";\n } else if (mtype.equalsIgnoreCase(\"ASSOCJR\") || mtype.equalsIgnoreCase(\"ASSOCJR18\")) {\n mship = \"Associate Jr\";\n } else if (mtype.startsWith(\"LTD JR\")) {\n mship = \"Limited Jr\";\n } else if (mtype.equalsIgnoreCase(\"SOCJR<18\") || mtype.equalsIgnoreCase(\"SOCJR>18\")) {\n mship = \"Soc Jr Golf\";\n } else if (mtype.equalsIgnoreCase(\"EMERITUS\")) {\n mship = \"Emeritus\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n // set other values\n posid = mNum; // set posid in case we ever need it\n while (mNum.startsWith(\"0\")){\n mNum = remZeroS(mNum);\n }\n\n useWebid = true; // use these webids\n webid = memid;\n memid = mNum;\n\n // set mtype\n if (mNum.endsWith(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n mNum = mNum.substring(0,mNum.length()-1); // remove extension char\n } else if (mNum.endsWith(\"J\") || mNum.endsWith(\"K\") || mNum.endsWith(\"L\") || mNum.endsWith(\"M\") || mNum.endsWith(\"N\") || mNum.endsWith(\"O\") || mNum.endsWith(\"P\")) {\n mtype = \"Dependent\";\n mNum = mNum.substring(0,mNum.length()-1); // remove extension char\n } else {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n }\n }\n\n } // end of IF club = stclaircc\n\n\n //******************************************************************\n // The Trophy Club Country Club\n //******************************************************************\n //\n if (club.equals( \"trophyclubcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n\n } else {\n\n useWebid = true;\n webid = memid;\n posid = mNum;\n\n mship = \"Golf\";\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n } // end of IF club = trophyclubcc\n\n\n\n //******************************************************************\n // Pelican Marsh Golf Club\n //******************************************************************\n //\n if (club.equals( \"pmarshgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true;\n webid = memid;\n memid = mNum;\n\n mNum = stripDash(mNum); // remove the -00 etc from end of mNums\n\n posid = mNum;\n\n // check for proper membership types\n if (mtype.equalsIgnoreCase(\"Equity Golf\") || mtype.equalsIgnoreCase(\"Non-Equity Golf\") ||\n mtype.equalsIgnoreCase(\"Trial Golf\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"Equity Social\")) {\n mship = \"Social\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n } // end of IF club is pmarshgc\n\n\n //******************************************************************\n // Silver Lake Country Club\n //******************************************************************\n //\n if (club.equals( \"silverlakecc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum;\n mNum = remZeroS(mNum);\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mtype.startsWith(\"Social\")) {\n mship = \"Social Elite\";\n } else {\n mship = \"Full Golf\";\n }\n\n //Will need to add \"Social Elite\" eventually!\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n\n }\n } // end of IF club is silverlakecc\n\n\n //******************************************************************\n // Edina Country Club\n //******************************************************************\n //\n if (club.equals(\"edina\") || club.equals(\"edina2010\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n StringTokenizer tempTok = new StringTokenizer(mNum, \"-\");\n String suf = \"0\";\n\n if (tempTok.countTokens() > 1){ // if mNum contains a - then it is a spouse\n mNum = stripDash(mNum);\n suf = \"1\";\n }\n\n posid = mNum; // set posid before zeros are removed\n\n while (mNum.startsWith(\"0\")) {\n mNum = remZeroS(mNum);\n }\n\n memid = mNum + suf; // set memid\n\n // ignore specific membership types\n if (mship.equalsIgnoreCase(\"Other Clubs\") || mship.equalsIgnoreCase(\"Party Account\") ||\n mship.equalsIgnoreCase(\"Resigned with Balance Due\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else if (mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Honorary Social\") || mship.equalsIgnoreCase(\"Clergy\") || mship.equalsIgnoreCase(\"Social Widow\")) {\n\n mship = \"Social\";\n\n } else if (mship.equalsIgnoreCase(\"Pool/Tennis\")) {\n\n mship = \"Pool/Tennis\";\n\n } else { // leave these two as they are, everything else = golf\n \n mship = \"Golf\";\n }\n\n // set member type based on gender\n if (primary.equalsIgnoreCase(\"P\") || primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n } else {\n mtype = \"Dependent\";\n }\n \n \n //\n // Custom to filter out a member's 2nd email address - she doesn't want ForeTees emails on this one, but wants it in MF\n //\n if (webid.equals(\"2720159\")) {\n \n email2 = \"\";\n }\n \n }\n\n } // end if edina\n\n //******************************************************************\n // Seville Golf & Country Club\n //******************************************************************\n //\n if (club.equals(\"sevillegcc\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid before zeros are removed\n\n while (mNum.startsWith(\"0\")) {\n mNum = remZeroS(mNum);\n }\n\n // ignore specific membership types\n if (mtype.startsWith(\"Sports\")) {\n mship = \"Sports Golf\";\n } else {\n mship = \"Full Golf\";\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n\n } // end if sevillegcc\n\n\n //******************************************************************\n // Royal Oaks CC - Dallas\n //******************************************************************\n //\n if (club.equals(\"roccdallas\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase(\"Tennis Member\") || mship.equalsIgnoreCase(\"Tennis Special Member\") ||\n mship.equalsIgnoreCase(\"Junior Tennis Member\") || mship.equalsIgnoreCase(\"Social Member\") ||\n mship.equalsIgnoreCase(\"Dining Member\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid before zeros are removed\n // memid = mNum; // user mNum as memid, mNums ARE UNIQUE! - USE MF's ID !!!!\n\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n\n\n // handle 'Spouse of member' membership type\n if (mship.equalsIgnoreCase(\"Spouse of member\")) {\n\n primary = \"S\"; // they are a Spouse\n\n // if Spouse: determine mship from 2nd character of mNum\n if (!mNum.equals(\"\")) {\n\n if (mNum.charAt(1) == 'P') {\n mship = \"Golf Associate Member\";\n } else if (mNum.charAt(1) == 'E') {\n mship = \"Special Member\";\n } else if (mNum.charAt(1) == 'G') {\n mship = \"Senior Member\";\n } else if (mNum.charAt(1) == 'J') {\n mship = \"Junior Member\";\n } else if (mNum.charAt(1) == 'N') {\n mship = \"Non Resident Member\";\n } else if (mNum.charAt(1) == 'F') {\n mship = \"Temp Non Certificate\";\n } else if (mNum.charAt(1) == 'L') {\n mship = \"Ladies Member\";\n } else if (mNum.charAt(1) == 'K') {\n mship = \"Associate Resident Member\";\n } else if (mNum.charAt(1) == 'H') {\n mship = \"Honorary\";\n } else if (mNum.charAt(1) == 'B') {\n mship = \"Tennis with Golf\";\n } else if (mNum.charAt(1) == 'D' || mNum.charAt(1) == 'T' || mNum.charAt(1) == 'R' || mNum.charAt(1) == 'S') {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else { // no letter for 2nd char of mNum\n mship = \"Resident Member\";\n }\n } else {\n\n skip = true;\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE could not be determined! (mNum missing)\";\n }\n }\n\n // set member type based on gender\n // blank gender and mNum ending with 'A' = female, otherwise male\n if (gender.equalsIgnoreCase(\"F\") || (gender.equalsIgnoreCase(\"\") && mNum.toLowerCase().endsWith(\"a\"))) {\n\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if roccdallas\n\n\n //******************************************************************\n // Hackberry Creek CC - hackberrycreekcc\n //******************************************************************\n //\n if (club.equals(\"hackberrycreekcc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n mship = \"Golf\"; // everyone changed to \"Golf\"\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n } // end if hackberrycreekcc\n\n //******************************************************************\n // Brookhaven CC - brookhavenclub\n //******************************************************************\n //\n if (club.equals(\"brookhavenclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n\n if (mtype.startsWith(\"DFW\")) {\n mship = \"DFWY\";\n } else {\n mship = \"Golf\"; // everyone changed to \"Golf\"\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n } // end if brookhavenclub\n\n //******************************************************************\n // Stonebridge Ranch CC - stonebridgeranchcc\n //******************************************************************\n //\n if (club.equals(\"stonebridgeranchcc\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mtype.equalsIgnoreCase(\"Dual Club\") || mtype.equalsIgnoreCase(\"Dual Club Distant\") || mtype.equalsIgnoreCase(\"Dual Club Society\") ||\n mtype.equalsIgnoreCase(\"Honorary\") || mtype.equalsIgnoreCase(\"Honorary Society\") || mtype.equalsIgnoreCase(\"Prem Charter Select\") ||\n mtype.equalsIgnoreCase(\"Prem Chrtr Sel Scty\") || mtype.equalsIgnoreCase(\"Prem Club Corp Scty\") || mtype.equalsIgnoreCase(\"Prem Mbr Sel Society\") ||\n mtype.equalsIgnoreCase(\"Prem Member Charter\") || mtype.equalsIgnoreCase(\"Prem Member Select\") || mtype.equalsIgnoreCase(\"Prem Mbrshp Society\") ||\n mtype.equalsIgnoreCase(\"Premier Club Corp D\") || mtype.equalsIgnoreCase(\"Premier Club Jr\") || mtype.equalsIgnoreCase(\"Premier Corporate\") ||\n mtype.equalsIgnoreCase(\"Premier Membership\") || mtype.equalsIgnoreCase(\"Premier Nr\") || mtype.equalsIgnoreCase(\"Prem Mbr Chrtr Scty\") ||\n mtype.equalsIgnoreCase(\"Premier Club Jr Scty\") || mtype.equalsIgnoreCase(\"Westerra\") || mtype.equalsIgnoreCase(\"Premier Club C Ppd\") ||\n mtype.equalsIgnoreCase(\"Premier Club Corp Ds\") || mtype.equalsIgnoreCase(\"Preview\")) {\n\n mship = \"Dual\";\n\n } else if (mtype.equalsIgnoreCase(\"Pr SB Sel Scty\") || mtype.equalsIgnoreCase(\"Prem Stnbrdge Select\") || mtype.equalsIgnoreCase(\"Prem Stonbrdg Scty \") ||\n mtype.equalsIgnoreCase(\"Premier Stonebridge\") || mtype.equalsIgnoreCase(\"Stonebridge Assoc.\") || mtype.equalsIgnoreCase(\"Stonebridge Charter\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Golf\") || mtype.equalsIgnoreCase(\"Stonebridge Golf Soc\") || mtype.equalsIgnoreCase(\"Options II\") ||\n mtype.equalsIgnoreCase(\"Options II Society\") || mtype.equalsIgnoreCase(\"Options I \") || mtype.equalsIgnoreCase(\"Options I Society\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Distn Gf\") || mtype.equalsIgnoreCase(\"Sb Premier Nr\") || mtype.equalsIgnoreCase(\"Prem Stonbrdg Scty\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Soc Scty\") || mtype.equalsIgnoreCase(\"Stnbrdge Assoc Scty\") || mtype.equalsIgnoreCase(\"Sb Golf Legacy Soc.\")) {\n\n mship = \"Dye\";\n\n } else if (mtype.equalsIgnoreCase(\"Pr Rcc Pr 6/96 Scty\") || mtype.equalsIgnoreCase(\"Pr Rnch Aft 6/96 Sct\") || mtype.equalsIgnoreCase(\"Prem Rcc Jr Select\") ||\n mtype.equalsIgnoreCase(\"Prem Rcc Prior 6/96\") || mtype.equalsIgnoreCase(\"Prem Rnch After 6/96\") || mtype.equalsIgnoreCase(\"Prem Rnch Select Sty\") ||\n mtype.equalsIgnoreCase(\"Premier Ranch Select\") || mtype.equalsIgnoreCase(\"Prm Rcc Sel Aft\") || mtype.equalsIgnoreCase(\"Prm Rcc Sel Aft 96st\") ||\n mtype.equalsIgnoreCase(\"Ranch Charter\") || mtype.equalsIgnoreCase(\"Ranch Golf\") || mtype.equalsIgnoreCase(\"Ranch Golf Legacy\") ||\n mtype.equalsIgnoreCase(\"Ranch Golf Non-Res\") || mtype.equalsIgnoreCase(\"Ranch Golf Society\") || mtype.equalsIgnoreCase(\"Special Golf\") ||\n mtype.equalsIgnoreCase(\"Prem Rcc Pr Nr\") || mtype.equalsIgnoreCase(\"Prem Rnch Sports Sty\") || mtype.equalsIgnoreCase(\"Ranch Nr Society\") ||\n mtype.equalsIgnoreCase(\"Pr Rcc Aft799 Society\") || mtype.equalsIgnoreCase(\"Ranch Non Resident\") || mtype.equalsIgnoreCase(\"Ranch Ppd Rcc Golf\")) {\n\n mship = \"Hills\";\n\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n\n } // end if stonebridgeranchcc\n\n\n //******************************************************************\n // Charlotte CC - charlottecc\n //******************************************************************\n //\n if (club.equals(\"charlottecc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum.toUpperCase(); // use mNum for memid, they are unique\n\n // Set primary/spouse value\n if (mNum.toUpperCase().endsWith(\"S\")) {\n primary = \"S\";\n mNum = stripA(mNum);\n } else {\n primary = \"P\";\n }\n\n posid = mNum; // set posid in case it's ever needed\n\n // set mtype based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n // if mship starts with 'Spousal-surviving' or 'Spousal', remove the prefix\n if (mship.equalsIgnoreCase(\"Spousal-surviving Resident\")) {\n mship = \"Dependent Spouse\";\n } else {\n if (mship.startsWith(\"Spousal-surviving\")) {\n mship = mship.substring(18, mship.length() - 1);\n }\n if (mship.startsWith(\"Spousal\") && !mship.equalsIgnoreCase(\"Spousal Member\")) {\n mship = mship.substring(8, mship.length() - 1);\n }\n\n // set mship\n if (mship.startsWith(\"Resident\") || mship.equalsIgnoreCase(\"Ministerial-NM\")) {\n mship = \"Resident\";\n } else if (mship.startsWith(\"Non-Resident\")) {\n mship = \"Non Resident\";\n } else if (mship.startsWith(\"Dependant\")) {\n mship = \"Dependent Spouse\";\n } else if (mship.startsWith(\"Honorary\")) {\n mship = \"Honorary\";\n } else if (mship.startsWith(\"Lady\") || mship.equalsIgnoreCase(\"Spousal Member\")) {\n mship = \"Lady\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n }\n } // end if charlottecc\n\n\n //******************************************************************\n // Gleneagles CC - gleneaglesclub\n //******************************************************************\n //\n if (club.equals(\"gleneaglesclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n mship = \"Golf\"; // everyone changed to \"Golf\"\n\n // set member type and memid based on gender\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n memid = mNum + \"A\";\n\n } else if (primary.equalsIgnoreCase(\"P\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Member Female\";\n } else {\n mtype = \"Member Male\";\n }\n memid = mNum;\n } else { // Dependent\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n // use provided memid\n }\n }\n\n } // end if gleneaglesclub\n\n\n\n\n //******************************************************************\n // Portland CC - portlandgc\n //******************************************************************\n //\n if (club.equals(\"portlandgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mNum.length() == 6) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Female Spouse\";\n } else {\n mtype = \"Male Spouse\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of extra number on end of spouse mNums\n primary = \"S\";\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) { // strip leading zeros\n memid = remZeroS(memid);\n }\n memid = memid + \"A\";\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Female Member\";\n } else {\n mtype = \"Male Member\";\n }\n\n primary = \"P\";\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) { // strip leading zeros\n memid = remZeroS(memid);\n }\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (mship.equalsIgnoreCase(\"AAR-FG\") || mship.equalsIgnoreCase(\"NON-RES\") ||\n mship.equalsIgnoreCase(\"REGULAR\") || mship.equalsIgnoreCase(\"TEMPORARY\")) { mship = \"Regular\"; }\n else if (mship.equalsIgnoreCase(\"30YEARS\")) { mship = \"30 Year Social\"; }\n else if (mship.equalsIgnoreCase(\"EMPLOYEE\")) { mship = \"Employee\"; }\n else if (mship.equalsIgnoreCase(\"HONORARY\")) { mship = \"Honorary\"; }\n else if (mship.equalsIgnoreCase(\"JUNIOR\")) { mship = \"Junior Associate\"; }\n else if (mship.equalsIgnoreCase(\"SOCIAL\")) { mship = \"Social\"; }\n else if (mship.startsWith(\"L\")) { mship = \"Leave of Absence\"; }\n else if (mship.equalsIgnoreCase(\"SPOUSE\")) { mship = \"Spouse Associate\"; }\n else if (mship.equalsIgnoreCase(\"Member Status:SENIOR\")) { mship = \"Senior\"; }\n else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if portlandgc\n\n\n //******************************************************************\n // Quechee Club\n //******************************************************************\n //\n if (club.equals(\"quecheeclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of trailing primary indicator # on mNum\n\n if (memid.endsWith(\"0\")) { // Primary\n primary = \"P\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n } else if (memid.endsWith(\"1\")) { // Spouse\n primary = \"S\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else { // Dependent\n primary = \"D\";\n mtype = \"Dependent\";\n }\n\n // Set the posid\n if (primary.equals(\"S\")) {\n posid = mNum + \"1\"; // set posid in case we need it in the future\n } else {\n posid = mNum + \"0\";\n }\n\n if (mship.equalsIgnoreCase(\"ALL-F\")) {\n mship = \"ALL Family\";\n } else if (mship.equalsIgnoreCase(\"ALL-S\")) {\n mship = \"ALL Single\";\n } else if (mship.equalsIgnoreCase(\"GAP-F\")) {\n mship = \"GAP Family\";\n } else if (mship.equalsIgnoreCase(\"GAP-S\")) {\n mship = \"GAP Single\";\n } else if (mship.equalsIgnoreCase(\"GAPM-F\")) {\n mship = \"GAPM Family\";\n } else if (mship.equalsIgnoreCase(\"GAPM-S\")) {\n mship = \"GAPM Single\";\n } else if (mship.equalsIgnoreCase(\"NON-GAP\")) {\n mship = \"NON-GAP\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if quecheeclub\n\n\n\n //******************************************************************\n // Quechee Club - Tennis\n //******************************************************************\n //\n if (club.equals(\"quecheeclubtennis\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of trailing primary indicator # on mNum\n\n if (memid.endsWith(\"0\")) { // Primary\n primary = \"P\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n } else if (memid.endsWith(\"1\")) { // Spouse\n primary = \"S\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else { // Dependent\n primary = \"D\";\n mtype = \"Dependent\";\n }\n\n // Set the posid\n if (primary.equals(\"S\")) {\n posid = mNum + \"1\"; // set posid in case we need it in the future\n } else {\n posid = mNum + \"0\";\n }\n\n if (mship.equalsIgnoreCase(\"ALL-F\")) {\n mship = \"ALL Family\";\n } else if (mship.equalsIgnoreCase(\"ALL-S\")) {\n mship = \"ALL Single\";\n } else if (custom1.equalsIgnoreCase(\"Tennis-F\")) {\n mship = \"TAP Family\";\n } else if (custom1.equalsIgnoreCase(\"Tennis-S\")) {\n mship = \"TAP Single\";\n } else if (custom1.equals(\"?\") || custom1.equals(\"\")) {\n mship = \"NON-TAP\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if quecheeclubtennis\n\n //******************************************************************\n // The Oaks Club\n //******************************************************************\n //\n if (club.equals(\"theoaksclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n\n primary = \"S\";\n gender = \"F\";\n mtype = \"Spouse Female\";\n\n mNum = mNum.substring(0, mNum.length() - 2);\n\n if (mship.startsWith(\"Dependent\")) { // Use the primary's mship\n try {\n ResultSet oaksRS = null;\n PreparedStatement oaksStmt = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n oaksStmt.clearParameters();\n oaksStmt.setString(1, mNum);\n oaksRS = oaksStmt.executeQuery();\n\n if (oaksRS.next()) {\n mship = oaksRS.getString(\"m_ship\");\n } else {\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SPOUSE with DEPENDENT membership type - NO PRIMARY FOUND!\";\n }\n\n oaksStmt.close();\n\n } catch (Exception exc) { }\n }\n\n } else if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") || mNum.endsWith(\"-5\") ||\n mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") || mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n\n primary = \"D\";\n mtype = \"Dependent\";\n mNum = mNum.substring(0, mNum.length() - 2);\n\n } else {\n\n primary = \"P\";\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (mship.equalsIgnoreCase(\"Regular Equity\") || mship.equalsIgnoreCase(\"Member Type:001\")) {\n mship = \"Regular Equity\";\n } else if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Member Type:010\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"Social Property Owner\") || mship.equalsIgnoreCase(\"Member Type:002\")) {\n mship = \"Social Property Owner\";\n } else if (mship.equalsIgnoreCase(\"Tennis Associate\") || mship.equalsIgnoreCase(\"Member Type:020\")) {\n mship = \"Tennis Associate\";\n } else if (mship.equalsIgnoreCase(\"Member Type:022\")) {\n mship = \"Jr Tennis Associate\";\n } else if (mship.startsWith(\"Dependent\")) {\n mship = \"Dependent\";\n } else if (mship.equalsIgnoreCase(\"Member Type:085\")) {\n mship = \"General Manager\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n }\n } // end if theoaksclub\n\n\n //******************************************************************\n // Admirals Cove\n //******************************************************************\n //\n if (club.equals(\"admiralscove\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1);\n\n } else {\n primary = \"P\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n if (mship.equals( \"\" )) {\n //\n // Spouse or Dependent - look for Primary mship type and use that\n //\n try {\n pstmt2 = con.prepareStatement (\n \"SELECT m_ship FROM member2b WHERE username != ? AND m_ship != '' AND memNum = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, memid);\n pstmt2.setString(2, mNum);\n rs = pstmt2.executeQuery();\n\n if(rs.next()) {\n mship = rs.getString(\"m_ship\"); // use primary mship type\n } else { //\n skip = true; // skip this one\n mship = \"\";\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n }\n\n pstmt2.close();\n\n } catch (Exception e1) { }\n\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (!mship.equals(\"\")) {\n\n if (mship.startsWith(\"Golf\") || mship.equals(\"Full Golf\")) {\n mship = \"Full Golf\";\n } else if (mship.startsWith(\"Sports\")) {\n mship = \"Sports\";\n } else if (!mship.equals(\"Social\") && !mship.equals(\"Marina\") && !mship.equals(\"Tennis\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n }\n } // end if admiralscove\n\n\n //******************************************************************\n // Ozaukee CC\n //******************************************************************\n //\n if (club.equals(\"ozaukeecc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"C\") || mNum.endsWith(\"D\")) {\n\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1); // strip trailing 'A'\n\n } else {\n primary = \"P\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n if (mship.equalsIgnoreCase(\"EM\")) {\n mship = \"Emeritus\";\n }\n\n if (mship.equalsIgnoreCase(\"Curler\") || mship.equalsIgnoreCase(\"Resigned\") ||\n mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Summer Social\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n posid = mNum; // set posid in case we need it in the future\n }\n } // end if ozaukeecc\n\n //******************************************************************\n // Palo Alto Hills G&CC - paloaltohills\n //******************************************************************\n //\n if (club.equals(\"paloaltohills\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n // trim off leading zeroes\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (gender.equals(\"F\")) {\n primary = \"S\";\n //mtype = \"Secondary Female\"; // no longer setting mtype with roster sync\n } else {\n primary = \"P\";\n //mtype = \"Primary Male\"; // no longer setting mtype with roster sync\n gender = \"M\";\n }\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (memid.startsWith(\"1\") || memid.startsWith(\"4\") || memid.startsWith(\"6\") || memid.startsWith(\"8\")) {\n mship = \"Golf\";\n } else if (memid.startsWith(\"2\")) {\n mship = \"Social\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n\n } // end if paloaltohills\n\n\n //******************************************************************\n // Woodside Plantation CC - wakefieldplantation\n //******************************************************************\n //\n if (club.equals(\"woodsideplantation\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n\n if (memid.equals(\"399609\")) { // Marvin Cross has an invalid email address ([email protected]) - belongs to a church in FL\n email2 = \"\";\n }\n\n\n if (primary.equalsIgnoreCase(\"P\")) {\n memid = mNum;\n } else {\n memid = mNum + \"A\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n } // end if woodsideplantation\n\n //******************************************************************\n // Timarron CC - timarroncc\n //******************************************************************\n //\n if (club.equals(\"timarroncc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n mship = \"Golf\";\n\n if (primary.equalsIgnoreCase(\"S\")) {\n memid = mNum + \"A\";\n } else {\n memid = mNum;\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if timarroncc\n\n //******************************************************************\n // Fountaingrove Golf & Athletic Club - fountaingrovegolf\n //******************************************************************\n //\n if (club.equals(\"fountaingrovegolf\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n String posSuffix = \"\";\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum;\n \n if (mNum.endsWith(\"A\")) {\n primary = \"P\";\n mNum = mNum.substring(0, mNum.length() - 1);\n memid = mNum;\n } else {\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1);\n memid = mNum + \"A\";\n }\n\n if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Employee\")) {\n mship = \"Golf\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if fountaingrovegolf\n\n\n/* Disabled, left ForeTees\n //******************************************************************\n // Austin Country Club - austincountryclub\n //******************************************************************\n //\n if (club.equals(\"austincountryclub\")) {\n\n found = true; // club found\n\n if (primary.equalsIgnoreCase(\"P\") && mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n if (mNum.toUpperCase().endsWith(\"A\")) {\n mNum = stripA(mNum);\n }\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n posid = mNum; // set posid in case we need it in the future\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n // If a spouse member, retrieve the primary user's membership type to use for them\n if (primary.equalsIgnoreCase(\"S\")) {\n try {\n PreparedStatement pstmtAus = null;\n ResultSet rsAus = null;\n\n pstmtAus = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE memNum = ? AND m_ship<>''\");\n pstmtAus.clearParameters();\n pstmtAus.setString(1, mNum);\n\n rsAus = pstmtAus.executeQuery();\n\n if (rsAus.next()) {\n mship = rsAus.getString(\"m_ship\");\n } else {\n mship = \"\";\n }\n\n pstmtAus.close();\n\n } catch (Exception ignore) {\n\n mship = \"\";\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Membership Type could not be retrieved from Primary Member record!\";\n }\n }\n\n if (mship.equalsIgnoreCase(\"JRF\") || mship.equalsIgnoreCase(\"Former Junior\")) {\n mship = \"Former Junior\";\n } else if (mship.equalsIgnoreCase(\"HON\") || mship.equalsIgnoreCase(\"Honorary\")) {\n mship = \"Honorary\";\n } else if (mship.equalsIgnoreCase(\"JR\") || mship.equalsIgnoreCase(\"Junior\")) {\n mship = \"Junior\";\n } else if (mship.equalsIgnoreCase(\"N-R\") || mship.equalsIgnoreCase(\"Non-Resident\")) {\n mship = \"Non-Resident\";\n } else if (mship.equalsIgnoreCase(\"RES\") || mship.equalsIgnoreCase(\"Resident\")) {\n mship = \"Resident\";\n } else if (mship.equalsIgnoreCase(\"SR\") || mship.equalsIgnoreCase(\"SRD\") || mship.equalsIgnoreCase(\"Senior\")) {\n mship = \"Senior\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n\n }\n } // end if austincountryclub\n */\n\n //******************************************************************\n // Treesdale Golf & Country Club - treesdalegolf\n //******************************************************************\n //\n if (club.equals(\"treesdalegolf\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n posid = mNum; // set posid in case we need it in the future\n\n if (primary.equalsIgnoreCase(\"P\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Primary Female\";\n } else {\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n\n } else if (primary.equalsIgnoreCase(\"S\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Spouse Female\";\n } else {\n gender = \"M\";\n mtype = \"Spouse Male\";\n }\n\n memid += \"A\";\n\n } else {\n mtype = \"Junior\";\n }\n\n mship = \"Golf\";\n\n }\n } // end if treesdalegolf\n\n //******************************************************************\n // Sawgrass Country Club - sawgrass\n //******************************************************************\n //\n if (club.equals(\"sawgrass\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n mNum = mNum.substring(0, mNum.length() - 2);\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n // Still filter on given mships even though using mtype field to determine what mship will be set to\n if (mship.equalsIgnoreCase(\"Associate Member\") || mship.equalsIgnoreCase(\"Complimentary Employee\") || mship.equalsIgnoreCase(\"Complimentary Other\") ||\n mship.startsWith(\"House\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mship)\";\n }\n\n if (mtype.equalsIgnoreCase(\"7DAY\")) {\n mship = \"Sports\";\n } else if (mtype.equalsIgnoreCase(\"3DAY\")) {\n mship = \"Social\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mtype)\";\n }\n\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Member Female\";\n } else {\n mtype = \"Member Male\";\n }\n\n }\n } // end if sawgrass\n\n /*\n //******************************************************************\n // TPC at SnoaQualmie Ridge\n //******************************************************************\n //\n if (club.equals(\"snoqualmieridge\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case it's ever needed\n\n // Set primary/spouse value\n if (mNum.toUpperCase().endsWith(\"A\")) {\n primary = \"P\";\n mNum = stripA(mNum);\n } else {\n if (mNum.toUpperCase().endsWith(\"B\")) {\n primary = \"S\";\n mNum = stripA(mNum);\n } else {\n if (mNum.toUpperCase().endsWith(\"C\") || mNum.toUpperCase().endsWith(\"D\") ||\n mNum.toUpperCase().endsWith(\"E\") || mNum.toUpperCase().endsWith(\"F\") ||\n mNum.toUpperCase().endsWith(\"G\") || mNum.toUpperCase().endsWith(\"H\") ||\n mNum.toUpperCase().endsWith(\"I\") || mNum.toUpperCase().endsWith(\"J\")) {\n primary = \"D\";\n\n memid = mNum.toUpperCase(); // use mNum for memid, they are unique\n\n mNum = stripA(mNum);\n\n } else {\n primary = \"P\"; // if no alpha - assume primary\n }\n }\n }\n\n // set mtype based on gender and relationship\n if (gender.equalsIgnoreCase(\"F\")) {\n\n if (primary.equals(\"P\") || primary.equals(\"S\")) {\n\n mtype = \"Adult Female\";\n\n memid = mNum + \"F\"; // memid for Adult Females\n\n } else {\n\n mtype = \"Dependent Female\";\n }\n\n } else { // Male\n\n if (primary.equals(\"P\") || primary.equals(\"S\")) {\n mtype = \"Adult Male\";\n\n memid = mNum + \"M\"; // memid for Adult Males\n\n } else {\n\n mtype = \"Dependent Male\";\n }\n }\n\n // mships ?????????????\n\n }\n } // end if snoqualmieridge\n */\n\n //******************************************************************\n // Druid Hills Golf Club - dhgc\n //******************************************************************\n //\n if (club.equals(\"dhgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n // Remove leading zeroes\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mship.equalsIgnoreCase(\"House\")) {\n\n skip = true;\n errCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n }\n } // end if dhgc\n\n //******************************************************************\n // The Reserve Club - thereserveclub\n //******************************************************************\n //\n if (club.equals(\"thereserveclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n mNum = mNum.substring(0, mNum.length() - 2);\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n mship = mtype;\n\n if (mship.endsWith(\" - Spouse\")) {\n mship = mship.substring(0, mship.length() - 9);\n }\n\n if (mship.startsWith(\"Social\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mtype)\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end if thereserveclub\n\n\n //******************************************************************\n // Robert Trent Jones - rtjgc\n //******************************************************************\n //\n if (club.equals(\"rtjgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n //\n // use the mnum for memid\n //\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n if (mNum.endsWith(\"-1\")) {\n\n memid = mNum;\n\n while (memid.length() < 5) {\n memid = \"0\" + memid;\n }\n\n if (gender.equals(\"F\")) {\n memid += \"A\"; // spouse or female\n }\n } else {\n memid = mNum; // primary males\n }\n\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n\n }\n\n } // end if rtjgc\n\n\n //******************************************************************\n // Morgan Run - morganrun\n //******************************************************************\n //\n if (club.equals(\"morganrun\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n \n if (primary.equalsIgnoreCase(\"S\")) {\n memid += \"A\";\n }\n\n mship = \"Golf\";\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if morganrun\n\n\n //******************************************************************\n // CC at DC Ranch - ccdcranch\n //******************************************************************\n //\n if (club.equals(\"ccdcranch\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mship.equalsIgnoreCase(\"COR\") || mship.equalsIgnoreCase(\"GOLF\")) {\n mship = \"Full Golf\";\n } else if (mship.equalsIgnoreCase(\"SPS\")) {\n mship = \"Sports/Social\";\n } else if (mship.equalsIgnoreCase(\"SECONDARY\")) {\n if (mNum.startsWith(\"1\") || mNum.startsWith(\"5\")) {\n mship = \"Full Golf\";\n } else if (mNum.startsWith(\"3\")) {\n mship = \"Sports/Social\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if ccdcranch\n\n\n //******************************************************************\n // Oakley CC - oakleycountryclub\n //******************************************************************\n //\n if (club.equals(\"oakleycountryclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (!mtype.equals(\"\")) {\n mship = mtype;\n }\n\n // Set the member type\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if oakleycountryclub\n\n\n //******************************************************************\n // Black Rock CC - blackrockcountryclub\n //******************************************************************\n //\n if (club.equals(\"blackrockcountryclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"D\") || mNum.endsWith(\"Z\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n gender = \"M\";\n }\n }\n\n }\n\n } // end if blackrockcountryclub\n\n/*\n //******************************************************************\n // The Edison Club - edisonclub\n //******************************************************************\n //\n if (club.equals(\"edisonclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n while (posid.startsWith(\"0\")) {\n posid = posid.substring(1);\n }\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n gender = \"M\";\n }\n } \n\n }\n\n } // end if edisonclub\n */\n\n\n //******************************************************************\n // Longue Vue Club - longuevueclub\n //******************************************************************\n //\n if (club.equals(\"longuevueclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mtype.equals(\"\")) {\n mtype = \"Adult Male\";\n }\n\n if (mtype.endsWith(\" Female\")) {\n gender = \"F\";\n } else {\n gender = \"M\";\n }\n }\n } // end if longuevueclub\n\n\n //******************************************************************\n // Happy Hollow Club - happyhollowclub\n //******************************************************************\n //\n if (club.equals(\"happyhollowclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) {\n memid = memid.substring(1);\n }\n\n // If member number does not end with the first letter of member's last name, strip off the last character\n if (!mNum.endsWith(lname.substring(0,1))) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n // Add leading zeroes until mNum has a length of 5\n while (mNum.length() < 5) {\n mNum = \"0\" + mNum;\n }\n\n\n // Remove \"Member Status:\" from beginning of mship\n if (mtype.startsWith(\"Member Status:\")) {\n mtype = mtype.replace(\"Member Status:\", \"\");\n }\n\n // Filter mtypes and mships\n if (mtype.equalsIgnoreCase(\"DEPEND A\") || mtype.equalsIgnoreCase(\"DEPEND B\") || mtype.equalsIgnoreCase(\"DEPEND SOC\")) {\n\n if (mtype.equalsIgnoreCase(\"DEPEND A\") || mtype.equalsIgnoreCase(\"DEPEND B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"DEPEND SOC\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n\n } else if (mtype.equalsIgnoreCase(\"EMPLOYEE\") || mtype.equalsIgnoreCase(\"GOLF A\") || mtype.equalsIgnoreCase(\"GOLF B\") || mtype.equalsIgnoreCase(\"SOCIAL\")) {\n\n if (mtype.equalsIgnoreCase(\"EMPLOYEE\")) {\n mship = \"Employee\";\n } else if (mtype.equalsIgnoreCase(\"GOLF A\") || mtype.equalsIgnoreCase(\"GOLF B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"SOCIAL\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n \n } else if (mtype.equalsIgnoreCase(\"SPOUSE A\") || mtype.equalsIgnoreCase(\"SPOUSE B\") || mtype.equalsIgnoreCase(\"SPOUSE SOC\")) {\n\n if (mtype.equalsIgnoreCase(\"SPOUSE A\") || mtype.equalsIgnoreCase(\"SPOUSE B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"SPOUSE SOC\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n }\n } // end if happyhollowclub\n\n \n \n //******************************************************************\n // CC of Castle Pines\n //******************************************************************\n //\n if (club.equals(\"castlepines\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) { // strip any leading zeros\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n // Isolate the member number\n StringTokenizer tok9 = new StringTokenizer( mNum, \"-\" ); // look for a dash (i.e. 1234-1)\n\n if ( tok9.countTokens() > 1 ) { \n\n mNum = tok9.nextToken(); // get just the mNum if it contains an extension\n }\n\n // Filter mtypes and mships\n if (mship.equalsIgnoreCase(\"golf\") || mship.equalsIgnoreCase(\"corporate\")) {\n\n if (mship.equalsIgnoreCase(\"Corporate\")) {\n mship = \"Corporate\";\n } else {\n mship = \"Regular Member\"; // convert Golf to Regular Member\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n }\n } // end if castlepines\n\n\n\n //******************************************************************\n // Golf Club at Turner Hill - turnerhill\n //******************************************************************\n //\n if (club.equals(\"turnerhill\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n mship = \"Golf\";\n\n if (!gender.equalsIgnoreCase(\"F\")) {\n gender = \"M\";\n }\n\n if (mNum.endsWith(\"A\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 1);\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n }\n } // end if turnerhill\n\n\n //******************************************************************\n // The Club at Mediterra - mediterra\n //******************************************************************\n //\n if (club.equals(\"mediterra\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n // Get ride of all leading zeroes.\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n // Strip off special character\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"b\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mship.equalsIgnoreCase(\"G\") || mship.equalsIgnoreCase(\"GNF\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"S\")) {\n mship = \"Sports\";\n } else if (mship.equalsIgnoreCase(\"D\")) {\n\n try {\n\n pstmt2 = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n pstmt2.clearParameters();\n pstmt2.setString(1, mNum);\n\n rs = pstmt2.executeQuery();\n\n if (rs.next()) {\n mship = rs.getString(\"m_ship\");\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NO PRIMARY MEMBERSHIP TYPE!\";\n }\n\n pstmt2.close();\n\n } catch (Exception exc) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: ERROR WHILE LOOKING UP MEMBERSHIP TYPE!\";\n }\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end if mediterra\n\n\n //******************************************************************\n // Hideaway Beach Club - hideawaybeachclub\n //******************************************************************\n //\n if (club.equals(\"hideawaybeachclub\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mNum.startsWith(\"7\")) {\n mship = \"Renter\";\n } else {\n mship = \"Golf\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n } // end if hideawaybeachclub\n\n\n \n //******************************************************************\n // All clubs\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\") && !memid.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n ghin_old = \"\";\n bag_old = \"\";\n posid_old = \"\";\n email2_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n suffix_old = \"\";\n u_hcap_old = 0;\n c_hcap_old = 0;\n birth_old = 0;\n msub_type_old = \"\";\n email_bounce1 = 0;\n email_bounce2 = 0;\n\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n if (!webid.equals( \"\" )) {\n\n webid = truncate(webid, 15);\n }\n if (!msub_type.equals( \"\" )) {\n\n msub_type = truncate(msub_type, 30);\n }\n\n //\n // Set Gender and Primary values\n //\n if (!gender.equalsIgnoreCase( \"M\" ) && !gender.equalsIgnoreCase( \"F\" )) {\n\n gender = \"\";\n }\n\n pri_indicator = 0; // default = Primary\n\n if (primary.equalsIgnoreCase( \"S\" )) { // Spouse\n\n pri_indicator = 1;\n }\n if (primary.equalsIgnoreCase( \"D\" )) { // Dependent\n\n pri_indicator = 2;\n }\n\n\n //\n // See if a member already exists with this id (username or webid)\n //\n // **** NOTE: memid and webid MUST be set to their proper values before we get here!!!!!!!!!!!!!!!\n //\n //\n // 4/07/2010\n // We now use 2 booleans to indicate what to do with the webid field.\n // useWebid is the original boolean that was used to indicate that we should use the webid to identify the member.\n // We lost track of when this flag was used and why. It was no longer used to indicate the webid should be \n // used in the query, so we don't know what its real purpose is. We don't want to disrupt any clubs that are\n // using it, so we created a new boolean for the query.\n // useWebidQuery is the new flag to indicate that we should use the webid when searching for the member. You should use\n // both flags if you want to use this one.\n //\n try {\n \n if (useWebid == true) { // use webid to locate member?\n\n webid_new = webid; // yes, set new ids\n memid_new = \"\";\n\n } else { // DO NOT use webid\n\n webid_new = \"\"; // set new ids\n memid_new = memid;\n }\n\n if (useWebidQuery == false) {\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n\n } else { // use the webid field\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n }\n\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n memid = rs.getString(\"username\"); // get username in case we used webid (use this for existing members)\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n ghin_old = rs.getString(\"ghin\");\n bag_old = rs.getString(\"bag\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n msub_type_old = rs.getString(\"msub_type\");\n email2_old = rs.getString(\"email2\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n suffix_old = rs.getString(\"name_suf\");\n email_bounce1 = rs.getInt(\"email_bounced\");\n email_bounce2 = rs.getInt(\"email2_bounced\");\n\n if (useWebid == true) { // use webid to locate member?\n memid_new = memid; // yes, get this username\n } else {\n webid_new = rs.getString(\"webid\"); // no, get current webid\n }\n }\n pstmt2.close(); // close the stmt\n\n\n //\n // If member NOT found, then check if new member OR id has changed\n //\n boolean memFound = false;\n boolean dup = false;\n boolean userChanged = false;\n boolean nameChanged = false;\n String dupmship = \"\";\n\n if (fname_old.equals( \"\" )) { // if member NOT found\n\n //\n // New member - first check if name already exists\n //\n pstmt2 = con.prepareStatement (\n \"SELECT username, m_ship, memNum, webid FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next() && !club.equals(\"longcove\")) { // Allow duplicate names for Long Cove for members owning two properties at once\n\n dupuser = rs.getString(\"username\"); // get this username\n dupmship = rs.getString(\"m_ship\");\n dupmnum = rs.getString(\"memNum\");\n dupwebid = rs.getString(\"webid\"); // get this webid\n\n //\n // name already exists - see if this is the same member\n //\n sendemail = true; // send a warning email to us and MF\n\n if ((!dupmnum.equals( \"\" ) && dupmnum.equals( mNum )) || club.equals(\"imperialgc\")) { // if name and mNum match, then memid or webid must have changed\n\n if (useWebid == true) { // use webid to locate member?\n\n webid_new = webid; // set new ids\n memid_new = dupuser;\n memid = dupuser; // update this record\n\n } else {\n\n webid_new = dupwebid; // set new ids\n memid_new = memid;\n memid = dupuser; // update this record\n userChanged = true; // indicate the username has changed\n }\n\n memFound = true; // update the member\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n ghin_old = rs.getString(\"ghin\");\n bag_old = rs.getString(\"bag\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n msub_type_old = rs.getString(\"msub_type\");\n email2_old = rs.getString(\"email2\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n suffix_old = rs.getString(\"name_suf\");\n email_bounce1 = rs.getInt(\"email_bounced\");\n email_bounce2 = rs.getInt(\"email2_bounced\");\n }\n\n //\n // Add this info to the email message text\n //\n emailMsg1 = emailMsg1 + \"Name = \" +fname+ \" \" +mi+ \" \" +lname+ \", ForeTees Member Id has been updated to that received.\\n\\n\";\n\n } else {\n\n //\n // Add this info to the email message text\n //\n emailMsg1 = emailMsg1 + \"Name = \" +fname+ \" \" +mi+ \" \" +lname+ \", ForeTees username = \" +dupuser+ \", ForeTees webid = \" +dupwebid+ \", MF id = \" +memid+ \"\\n\\n\";\n\n dup = true; // dup member - do not add\n }\n\n }\n pstmt2.close(); // close the stmt\n\n } else { // member found\n\n memFound = true;\n }\n\n //\n // Now, update the member record if existing member\n //\n if (memFound == true) { // if member exists\n\n changed = false; // init change indicator\n\n lname_new = lname_old;\n\n // do not change lname for Saucon Valley if lname_old ends with '_*'\n if (club.equals( \"sauconvalleycc\" ) && lname_old.endsWith(\"_*\")) {\n\n lname = lname_old;\n\n } else if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n\n fname_new = fname_old;\n\n //\n // DO NOT change for select clubs\n //\n if (club.equals( \"pinery\" ) || club.equals( \"bellerive\" ) || club.equals( \"greenhills\" ) || club.equals( \"fairbanksranch\" ) ||\n club.equals( \"baltusrolgc\" ) || club.equals(\"charlottecc\") || club.equals(\"castlepines\")) {\n\n fname = fname_old; // do not change fnames\n\n } else {\n\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n }\n\n mi_new = mi_old;\n\n //\n // DO NOT change middle initial for ClubCorp clubs\n //\n if (clubcorp) {\n\n mi = mi_old;\n\n } else {\n if (!mi_old.equals( mi )) {\n\n mi_new = mi; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n }\n\n mship_new = mship_old;\n\n if (!mship.equals( \"\" ) && !mship_old.equals( mship )) {\n\n mship_new = mship; // set value from MFirst record\n changed = true;\n }\n\n mtype_new = mtype_old;\n\n if (club.equals( \"greenhills\" ) || club.equals(\"paloaltohills\") ||\n (club.equals(\"navesinkcc\") && mtype_old.equals(\"Primary Male GP\"))) { // Green Hills - do not change the mtype\n\n mtype = mtype_old;\n\n } else {\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from MFirst record\n changed = true;\n }\n }\n\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from MFirst record\n changed = true;\n }\n\n ghin_new = ghin_old;\n\n if (!ghin.equals( \"\" ) && !ghin_old.equals( ghin )) {\n\n ghin_new = ghin; // set value from MFirst record\n changed = true;\n }\n\n bag_new = bag_old;\n\n if (!club.equals(\"edina\") && !club.equals(\"edina2010\")) { // never change for Edina\n\n if (!bag.equals( \"\" ) && !bag_old.equals( bag )) {\n\n bag_new = bag; // set value from MFirst record\n changed = true;\n }\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from MFirst record\n changed = true;\n }\n\n email_new = email_old;\n\n if (!club.equals(\"mesaverdecc\")) { // never change for Mesa Verde CC\n\n if (!email_old.equals( email )) { // if MF's email changed or was removed\n\n email_new = email; // set value from MFirst record\n changed = true;\n email_bounce1 = 0; // reset bounced flag\n }\n }\n\n email2_new = email2_old;\n\n if (!club.equals(\"mesaverdecc\")) { // never change for Mesa Verde CC\n\n if (!email2_old.equals( email2 )) { // if MF's email changed or was removed\n\n email2_new = email2; // set value from MFirst record\n changed = true;\n email_bounce2 = 0; // reset bounced flag\n }\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from MFirst record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from MFirst record\n changed = true;\n }\n\n suffix_new = suffix_old;\n\n if (!suffix.equals( \"\" ) && !suffix_old.equals( suffix )) {\n\n suffix_new = suffix; // set value from MFirst record\n changed = true;\n }\n\n birth_new = birth_old;\n\n if (!club.equals(\"fountaingrovegolf\")) { // Don't update birthdates for Fountain Grove\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from MFirst record\n changed = true;\n }\n }\n\n if (!mobile.equals( \"\" )) { // if mobile phone provided\n\n if (phone_new.equals( \"\" )) { // if phone1 is empty\n\n phone_new = mobile; // use mobile number\n changed = true;\n\n } else {\n\n if (phone2_new.equals( \"\" )) { // if phone2 is empty\n\n phone2_new = mobile; // use mobile number\n changed = true;\n }\n }\n }\n\n msub_type_new = msub_type_old;\n\n if (!msub_type.equals( \"\" ) && !msub_type_old.equals( msub_type )) {\n\n msub_type_new = msub_type; // set value from MFirst record\n changed = true;\n }\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // Update our record (always now to set the last_sync_date)\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET username = ?, name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, ghin = ?, bag = ?, birth = ?, posid = ?, msub_type = ?, email2 = ?, phone1 = ?, \" +\n \"phone2 = ?, name_suf = ?, webid = ?, inact = 0, last_sync_date = now(), gender = ?, pri_indicator = ?, \" +\n \"email_bounced = ?, email2_bounced = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid_new);\n pstmt2.setString(2, lname_new);\n pstmt2.setString(3, fname_new);\n pstmt2.setString(4, mi_new);\n pstmt2.setString(5, mship_new);\n pstmt2.setString(6, mtype_new);\n pstmt2.setString(7, email_new);\n pstmt2.setString(8, mNum_new);\n pstmt2.setString(9, ghin_new);\n pstmt2.setString(10, bag_new);\n pstmt2.setInt(11, birth_new);\n pstmt2.setString(12, posid_new);\n pstmt2.setString(13, msub_type_new);\n pstmt2.setString(14, email2_new);\n pstmt2.setString(15, phone_new);\n pstmt2.setString(16, phone2_new);\n pstmt2.setString(17, suffix_new);\n pstmt2.setString(18, webid_new);\n pstmt2.setString(19, gender);\n pstmt2.setInt(20, pri_indicator);\n pstmt2.setInt(21, email_bounce1);\n pstmt2.setInt(22, email_bounce2);\n\n pstmt2.setString(23, memid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n\n } else { // member NOT found - add it if we can\n\n if (dup == false) { // if not duplicate member\n\n //\n // New member is ok - add it\n //\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, webid, \" +\n \"last_sync_date, gender, pri_indicator) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,?,?,?,?,'',?,?, now(),?,?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, msub_type);\n pstmt2.setString(17, email2);\n pstmt2.setString(18, phone);\n pstmt2.setString(19, phone2);\n pstmt2.setString(20, suffix);\n pstmt2.setString(21, webid);\n pstmt2.setString(22, gender);\n pstmt2.setInt(23, pri_indicator);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n\n } else { // this member not found, but name already exists\n\n if (dup) {\n errCount++;\n errMsg = errMsg + \"\\n -Dup user found:\\n\" +\n \" new: memid = \" + memid + \" : cur: \" + dupuser + \"\\n\" +\n \" webid = \" + webid + \" : \" + dupwebid + \"\\n\" +\n \" mNum = \" + mNum + \" : \" + dupmnum;\n }\n\n if (club.equals( \"bentwaterclub\" ) && !dupuser.equals(\"\")) {\n\n //\n // Bentwater CC - Duplicate member name found. This is not uncommon for this club.\n // We must accept the member record with the highest priority mship type.\n // Members are property owners and can own multiple properties, each with a\n //\n // Order of Priority:\n // GPM\n // DOP\n // DCC\n // DOC\n // DGC\n // MGM\n // DOM\n // SCM\n // EMP\n // DSS\n // DCL\n // VSG\n // S\n //\n boolean switchMship = false;\n\n if (mship.equals(\"GPM\")) { // if new record has highest mship value\n\n switchMship = true; // update existing record to this mship\n\n } else {\n\n if (mship.equals(\"DOP\")) {\n\n if (!dupmship.equals(\"GPM\")) { // if existing mship is lower than new one\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DCC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\")) { // if existing mship is lower than new one\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DOC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DGC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"MGM\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\") && !dupmship.equals(\"DGC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DOM\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\") && !dupmship.equals(\"DGC\") && !dupmship.equals(\"MGM\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"SCM\")) {\n\n if (dupmship.equals(\"EMP\") || dupmship.equals(\"DSS\") || dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"EMP\")) {\n\n if (dupmship.equals(\"DSS\") || dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DSS\")) {\n\n if (dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DCL\")) {\n\n if (dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"VSG\")) {\n\n if (dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n //\n // If we must switch the mship type, update the existing record to reflect the higher pri mship\n //\n if (switchMship == true) {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET \" +\n \"username = ?, m_ship = ?, memNum = ?, posid = ?, webid = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // use this username so record gets updated correctly next time\n pstmt2.setString(2, mship);\n pstmt2.setString(3, mNum);\n pstmt2.setString(4, posid);\n pstmt2.setString(5, webid);\n pstmt2.setString(6, dupuser); // update existing record - keep username, change others\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n userChanged = true; // indicate username changed\n\n memid_new = memid; // new username\n memid = dupuser; // old username\n fname_new = fname;\n mi_new = mi;\n lname_new = lname;\n }\n\n } // end of IF Bentwater Club and dup user\n }\n } // end of IF Member Found\n\n //\n // Member updated - now see if the username or name changed\n //\n if (userChanged == true || nameChanged == true) { // if username or name changed\n\n //\n // username or name changed - we must update other tables now\n //\n StringBuffer mem_name = new StringBuffer( fname_new ); // get the new first name\n\n if (!mi_new.equals( \"\" )) {\n mem_name.append(\" \" +mi_new); // new mi\n }\n mem_name.append(\" \" +lname_new); // new last name\n\n String newName = mem_name.toString(); // convert to one string\n\n Admin_editmem.updTeecurr(newName, memid_new, memid, con); // update teecurr with new values\n\n Admin_editmem.updTeepast(newName, memid_new, memid, con); // update teepast with new values\n\n Admin_editmem.updLreqs(newName, memid_new, memid, con); // update lreqs with new values\n\n Admin_editmem.updPartner(memid_new, memid, con); // update partner with new values\n\n Admin_editmem.updEvents(newName, memid_new, memid, con); // update evntSignUp with new values\n\n Admin_editmem.updLessons(newName, memid_new, memid, con); // update the lesson books with new values\n }\n }\n catch (Exception e3b) {\n errCount++;\n errMsg = errMsg + \"\\n -Error2 processing roster for \" +club+ \"\\n\" +\n \" line = \" +line+ \": \" + e3b.getMessage(); // build msg\n }\n\n } else {\n\n // Only report errors that AREN'T due to skip == true, since those were handled earlier!\n if (!found) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBER NOT FOUND!\";\n }\n if (fname.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n }\n if (lname.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -LAST NAME missing!\";\n }\n if (memid.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -USERNAME missing!\";\n }\n } // end of IF skip\n\n } // end of IF minimum requirements\n\n } // end of IF tokens\n\n // log any errors and warnings that occurred\n if (errCount > 0) {\n totalErrCount += errCount;\n errList.add(errMemInfo + \"\\n *\" + errCount + \" error(s) found*\" + errMsg + \"\\n\");\n }\n if (warnCount > 0) {\n totalWarnCount += warnCount;\n warnList.add(errMemInfo + \"\\n *\" + warnCount + \" warning(s) found*\" + warnMsg + \"\\n\");\n }\n } // end of while (for each record in club's file)\n\n //\n // Done with this file for this club - now set any members that were excluded from this file inactive\n //\n if (found == true) { // if we processed this club\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET inact = 1 \" +\n \"WHERE last_sync_date != now() AND last_sync_date != '0000-00-00'\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n \n \n //\n // Roster File Found for this club - make sure the roster sync indicator is set in the club table\n //\n setRSind(con, club);\n }\n\n\n //\n // Send an email to us and MF support if any dup names found\n //\n if (sendemail == true) {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host); // set outbound host address\n properties.put(\"mail.smtp.port\", port); // set outbound port\n properties.put(\"mail.smtp.auth\", \"true\"); // set 'use authentication'\n\n Session mailSess = Session.getInstance(properties, SystemUtils.getAuthenticator()); // get session properties\n\n MimeMessage message = new MimeMessage(mailSess);\n\n try {\n\n message.setFrom(new InternetAddress(efrom)); // set from addr\n\n message.setSubject( subject ); // set subject line\n message.setSentDate(new java.util.Date()); // set date/time sent\n }\n catch (Exception ignore) {\n }\n\n //message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailFT)); // set our support email addr\n\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailMF)); // add MF email addr\n\n emailMsg1 = emailMsg1 + emailMsg2; // add trailer msg\n\n try {\n message.setText( emailMsg1 ); // put msg in email text area\n\n Transport.send(message); // send it!!\n }\n catch (Exception ignore) {\n }\n\n }\n\n }\n catch (Exception e3) {\n\n errorMsg = errorMsg + \" Error processing roster for \" +club+ \": \" + e3.getMessage() + \"\\n\"; // build msg\n SystemUtils.logError(errorMsg); // log it\n }\n\n // Print error and warning count totals to error log\n SystemUtils.logErrorToFile(\"\" +\n \"Total Errors Found: \" + totalErrCount + \"\\n\" +\n \"Total Warnings Found: \" + totalWarnCount + \"\\n\", club, true);\n\n // Print errors and warnings to error log\n if (totalErrCount > 0) {\n SystemUtils.logErrorToFile(\"\" +\n \"********************************************************************\\n\" +\n \"****ERRORS FOR \" + club + \" (Member WAS NOT synced!)\\n\" +\n \"********************************************************************\\n\", club, true);\n while (errList.size() > 0) {\n SystemUtils.logErrorToFile(errList.remove(0), club, true);\n }\n }\n if (totalWarnCount > 0) {\n SystemUtils.logErrorToFile(\"\" +\n \"********************************************************************\\n\" +\n \"****WARNINGS FOR \" + club + \" (Member MAY NOT have synced!)\\n\" +\n \"********************************************************************\\n\", club, true);\n while (warnList.size() > 0) {\n SystemUtils.logErrorToFile(warnList.remove(0), club, true);\n }\n }\n\n // Print end tiem to error log\n SystemUtils.logErrorToFile(\"End time: \" + new java.util.Date().toString() + \"\\n\", club, true);\n \n }", "public void next() {\n\t\t}", "private synchronized void sendAdvance(){\r\n\t\t\tfor(PrintWriter p : players){\r\n\t\t\t\tif(p != null){\r\n\t\t\t\t\tp.println(\"5\");\r\n\t\t\t\t\tp.println(Integer.toString(x));\r\n\t\t\t\t\tp.println(Integer.toString(y));\r\n\t\t\t\t\tp.flush();\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t}\t\r\n\t\t}", "public void act() \n {\n if(s == 0)\n {\n lead();\n lookForFood();\n lookForEdge();\n lookForTail();\n }\n else\n {\n follow();\n }\n }", "public void setWhoGoesFirstRandom() {\n Random ran = new Random();\n int i = ran.nextInt(2) + 1;\n if(i == 1) {\n setWhoGoesFirst(humanPlayer);\n } else {\n setWhoGoesFirst(aiPlayer);\n }\n }", "public void endRead() throws ThingsException;", "private void walk() throws MyException{\n try{\n Thread.sleep((long)(1+300*Math.random()));\n }catch(InterruptedException e){\n throw new MyException(\"Error: Not walking.\");\n }\n }", "public synchronized void makeMove() throws NumberFormatException, IOException {\r\n\tboolean check=true;\r\n\twhile(check) {\r\n\tsocketOut.println(name+\", what row should your next \"+mark+\" be placed in ?\");\r\n\trow=Integer.parseInt(socketIn.readLine());\r\n\tsocketOut.println(name+\", what column should your next \"+mark+\" be placed in ?\");\r\n\tcol =Integer.parseInt(socketIn.readLine());\r\n\tif((row>=0 && row<=2)&&((col>=0 && col<=2))) {\r\n\tif (board.getMark(row, col)==' ' ) {\r\n\t\t {\r\n\t\t\tboard.addMark(row, col, mark);\r\n\t\t\topponent.board.addMark(row, col, mark);\r\n\t\t\tcheck=false;\r\n\t\t}\r\n\t\t\r\n\t\r\n\t}\r\n\telse {\r\n\t\tsocketOut.println(\"There is a mark there, choose another location\");\r\n\t\t\r\n\t}}}\r\n}", "private void readObject() {/* default - does nothing empty block */\n\t}", "void tryToFindNextKing()\n {\n if (nodeIds.size() != 0)\n {\n int nextKingId = Collections.max(nodeIds);\n CommunicationLink nextKing = allNodes.get(nextKingId);\n nextKing.sendMessage(new Message(\n Integer.toString(nextKingId), nextKing.getInfo(), myInfo, KING_IS_DEAD));\n }\n }", "public void run()\n\t{\n\t\twhile (!this.isFinished)\n\t\t{\n\t\t\tMessage request = this.mBuff.get(); // get request from own mailbox\n\n\t\t\t// how many times has the follower danced with the requester.\n\t\t\t// might be faster with an array of timesDanced values for each leader known\n\t\t\tint count = 0;\n\t\t\tfor (int i=0; i<mDanceCard.length; i++)\n\t\t\t{\n\t\t\t\tif (mDanceCard[i] == request.dancer.getDancerID())\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(mNumber + \" Being asked to dance: \" + request.dance_number + \" by \" \n\t\t\t//\t\t\t\t\t+ request.dancer.getDancerID());\n\n\t\t\tLeader leader = (Leader)request.dancer;\n\t\t\tif (mDanceCard[request.dance_number] != 0 || count >= 2) // nope.\n\t\t\t{\n\t\t\t\trequest.dance_number = -1;\n\t\t\t\tthis.put(request, leader); \t// send back request with -1 for dance_number\n\t\t\t}\n\t\t\telse // say yes! mark card and see if you're done\n\t\t\t{\n\t\t\t\tthis.markCard(request.dance_number, request.dancer.getDancerID());\n\t\t\t\trequest.dancer = this;\n\t\t\t\tthis.put(request, leader);\t// send back request, but with the follower's own number\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Follower \" + mNumber + \" is finished.\");\n\t\t\n\t\t// still check requests, but refuse them all.\n\t\twhile (this.isFinished)\n\t\t{\n\t\t\tMessage request = this.mBuff.get();\n\n\t\t\tLeader leader = (Leader)request.dancer;\n\t\t\trequest.dance_number = -1;\n\t\t\tthis.put(request, leader);\n\t\t}\n\t}", "private void aimlessScout() {\n\t\ttargetFlower = null;\n\t\t// if bee is sufficiently far from flower, look for other flowers\n\t\tif((clock.time - tempTime) > 0.15) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying\n\t\telse{\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\t//energy -= exhaustionRate;\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n String bigString = \"photo.jpg, Warsaw, 2013-09-05 14:08:15\\n\" +\n \"john.png, London, 2015-06-20 15:13:22\\n\" +\n \"myFriends.png, Warsaw, 2013-09-05 14:07:13\\n\" +\n \"Eiffel.jpg, Paris, 2015-07-23 08:03:02\\n\" +\n \"pisatower.jpg, Paris, 2015-07-22 23:59:59\\n\" +\n \"BOB.jpg, London, 2015-08-05 00:02:03\\n\" +\n \"notredame.png, Paris, 2015-09-01 12:00:00\\n\" +\n \"me.jpg, Warsaw, 2013-09-06 15:40:22\\n\" +\n \"a.png, Warsaw, 2016-02-13 13:33:50\\n\" +\n \"b.jpg, Warsaw, 2016-01-02 15:12:22\\n\" +\n \"c.jpg, Warsaw, 2016-01-02 14:34:30\\n\" +\n \"d.jpg, Warsaw, 2016-01-02 15:15:01\\n\" +\n \"e.png, Warsaw, 2016-01-02 09:49:09\\n\" +\n \"f.png, Warsaw, 2016-01-02 10:55:32\\n\" +\n \"g.jpg, Warsaw, 2016-02-29 22:13:11\";\n bufferedReading(bigString);\n try {\n bufferedReading2(bigString);\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n readAsSkipping();\n }", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "@Override\n public void nextTuple() {\n \tint fileCount = XPathCrawler.getInstance().getFileCount().get();\n \tif(XPathCrawler.getInstance().getFrontier().isEmpty()) { //refill from disk\n \t\tURLSpout.activeThreads.getAndIncrement();\n \t\t//System.out.println(\"refill time\");\n \t\tString url;\n\t\t\ttry {\n\t\t\t\twhile(!reader.ready()) {\n\t\t\t\t\t//System.out.println(\"busy\");\n\t\t\t\t}\n\t\t\t\turl = reader.readLine();\n\t\t\t\tif(url != null) {\n\t\t\t\t\t//System.out.println(\"enqueue: \" + url);\n\t \t\t\tXPathCrawler.getInstance().getFrontier().enqueue(url);\n\t \t\t\twhile(url != null) {\n\t \t\t\t\t//System.out.println(\"reading from file. Size is: \" + XPathCrawler.getInstance().getFrontier().getSize());\n\t \t\t\t\turl = reader.readLine();\n\t \t\t\t\tif(url == null) {\n\t \t\t\t\t\tbreak;\n\t \t\t\t\t}\n\t \t\t\t\t//System.out.println(\"enqueue2: \" + url);\n\t \t\t\t\tXPathCrawler.getInstance().getFrontier().enqueue(url);\n\t \t\t\t\tif(XPathCrawler.getInstance().getFrontier().getSize() >= XPathCrawler.FRONTIER_BUFFER_SIZE) { //buffe\n\t \t\t\t\t\tbreak;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t}\n\t\t\t} catch (IOException e) {\t\t\t\t\n\t\t\t\tSystem.out.println(\"unable to read from URLDisk file\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tURLSpout.activeThreads.getAndDecrement();\n\t\t\t}\t\t\t\n \t}\n \t\n \tif(XPathCrawler.getInstance().getFrontier().isEmpty() || fileCount >= XPathCrawler.getInstance().getMaxFileNum()) { // Handle Shutdown\n \t\tif(URLSpout.getActiveThreads() <= 0 && CrawlerBolt.getActiveThreads() <= 0 && DocumentParserBolt.getActiveThreads() <= 0 && URLFilterBolt.getActiveThreads() <= 0 && \n \t\t\tXPathCrawler.getInstance().getInFlightMessages() <= 0) {\n \t\t\tXPathCrawler.getInstance().shutdown(); //call shutdown\n \t\t\t//System.out.println(\"Spout Called Shutdown\");\n \t\t\treturn;\n \t\t} else {\n \t\t\treturn; //just return and don't emit anything\n \t\t}\n \t\t\n \t} else {\n \t\tURLSpout.activeThreads.getAndIncrement(); //isIdle is now 1, hence this thread is not idle\n \tString url = XPathCrawler.getInstance().getFrontier().dequeue();\n \tif(url.startsWith(\"http://\")) {\n \t\tURLInfo urlInfo = new URLInfo(url);\t\n \t\tif(urlInfo.getHostName() == null) {\n \t\t\tURLSpout.activeThreads.decrementAndGet();\n \t\t\treturn;\n \t\t}\n \t\tString portString = \":\" + Integer.toString(urlInfo.getPortNo());\n \t\t\t if(!url.contains(portString)) { //make sure URL is in the form http://xyz.com:80/\n \t\t\t\t StringBuilder newURL = new StringBuilder(url);\n \t \t\t\t int index = 7 + urlInfo.getHostName().length();\n \t \t\t\t newURL.insert(index, portString);\n \t\t\t\t url = newURL.toString();\n \t\t\t }\n \t\t\t \n \t//log.debug(getExecutorId() + \" emitting \" + url);\n \t this.collector.emit(new Values<Object>(urlInfo.getHostName(), url, \"http\"));\n \t \n \t XPathCrawler.getInstance().incrementInflightMessages(); //signals a message is currently being routed\n \t}else {\n \t\ttry {\n\t\t\t\t\tURL httpsUrl = new URL(url); //emit https url\n\t\t\t\t\tint port = httpsUrl.getPort() == -1 ? 443 : httpsUrl.getPort();\n\t\t\t\t\tString portString = \":\" + Integer.toString(port);\n\t\t\t\t\tif(!url.contains(portString)) { //make sure URL is in the form http://xyz.com:443/\n\t \t\t\t\t StringBuilder newURL = new StringBuilder(url);\n\t \t \t\t\t int index = 8 + httpsUrl.getHost().length();\n\t \t \t\t\t newURL.insert(index, portString);\n\t \t\t\t\t url = newURL.toString();\n\t \t\t\t }\n\t\t\t\t\t//log.debug(getExecutorId() + \" emitting \" + url);\n\t \t this.collector.emit(new Values<Object>(httpsUrl.getHost(), url, \"https\"));\n\t \t XPathCrawler.getInstance().incrementInflightMessages(); //signals a message is currently being routed\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tURLSpout.activeThreads.decrementAndGet();\n\t\t\t\t}\n \t\treturn;\n \t}\n \t\n \tURLSpout.activeThreads.decrementAndGet(); //isIdle is now 0 hence this thread is idle\n \t} \t\n Thread.yield();\n }", "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "public static void AssociaNomeProbe() throws IOException {\n\tList<String> listaProbesComuniConRawData = new ArrayList<String>();\n\tString line;\n\tBufferedReader CommonU133APlus2CoordPlus2completo = new BufferedReader(\n\t\t\tnew FileReader(\n\t\t\t\t\t\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2)completo.txt\"));\n\twhile ((line = CommonU133APlus2CoordPlus2completo.readLine()) != null) {\n\t\tlistaProbesComuniConRawData.add(line);\n\t}\n\tCommonU133APlus2CoordPlus2completo.close();\n\tCollections.sort(listaProbesComuniConRawData);\n\tSystem.out.println(\"numero probes con raw data: \"+listaProbesComuniConRawData.size());\n\t\n\t\n\t//legge il file dei probes comuni col nome del probe e lo riscrive mettendo la colonna dei nomi alla fine\n\tString line1;\n\tBufferedWriter bw = new BufferedWriter(new FileWriter(\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2)daOrdinare.txt\"));\n\tBufferedReader CommonU133APlus2CoordPlus2WithNameDaOrdinare = new BufferedReader(\n\t\t\tnew FileReader(\n\t\t\t\t\t\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2).txt\"));\n\twhile ((line1 = CommonU133APlus2CoordPlus2WithNameDaOrdinare.readLine()) != null) {\n\t\tString[] riga = line1.split(\"\\t\");\n\t\tbw.write(riga[1]+\"\\t\"+riga[2]+\"\\t\"+riga[3]+\"\\t\"+riga[0]+\"\\r\\n\");\n\t\tbw.flush();\n\t}CommonU133APlus2CoordPlus2WithNameDaOrdinare.close(); bw.close();\n\t\n\t\n\t//legge il file con la colonna dei nomi alla fine e lo ordina\n\tList<String> listaProbesComuniConNomeProbe = new ArrayList<String>();\n\tString line2;\n\tBufferedReader CommonU133APlus2CoordPlus2WithName = new BufferedReader(\n\t\t\tnew FileReader(\n\t\t\t\t\t\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2)daOrdinare.txt\"));\n\twhile ((line2 = CommonU133APlus2CoordPlus2WithName.readLine()) != null) {\n\t\t//String[] riga = line.split(\"\\t\");\t\t\t\n\t\tlistaProbesComuniConNomeProbe.add(line2);\n\t\t\n\t}CommonU133APlus2CoordPlus2WithName.close();\n\tCollections.sort(listaProbesComuniConNomeProbe);\n\t\n\tSystem.out.println(\"numero probes con nome: \"+listaProbesComuniConNomeProbe.size());\n\t\n\t//associa i nomi dei probes al file dei probes comuni con i raw data (intensita, dev standard e num pixel)\n\tint i;\n\tString riga1;\n\tString riga2;\n\tBufferedWriter bw1 = new BufferedWriter(new FileWriter(\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2-intensitaPlus2)ordinati.txt\"));\n\tfor(i=0; i<listaProbesComuniConNomeProbe.size(); i++) {\n\t\t\n\t\triga1 = listaProbesComuniConNomeProbe.get(i).toString();\n\t\triga2 = listaProbesComuniConRawData.get(i).toString();\n\t\tString[] field1 = riga1.split(\"\\t\");\n\t\tString[] field2 = riga2.split(\"\\t\");\n\t\tif (field1[0].equalsIgnoreCase(field2[0]) && field1[1].equalsIgnoreCase(field2[1])) {\n\t\t\tSystem.out.println(i);\n\t\t\tbw1.write(field1[3]+\"\\t\"+field2[0]+\"\\t\"+field2[1]+\"\\t\"+field2[2]+\"\\t\"+field2[3]+\"\\t\"+field2[4]+\"\\r\\n\");\n\t\t\tbw1.flush();\n\t\t}\t\t\n\t}\n\tbw1.close();\t\n}", "protected abstract void recombineNext();", "void seekReset() {\n discardQueued(false);\n eofCond = false;\n stickyEofCond = false;\n blocked = false;\n sawCR = false;\n // FIXME: Change needed in Tcl\n //needNL = false;\n }", "public void fordFulkerson() {\r\n\r\n\r\n\t\twhile(true) {\r\n\t\t\tResidualGraph resGraph = new ResidualGraph(net);\r\n\t\t\tLinkedList<Edge> augmentingPath = resGraph.findAugmentingPath();\r\n\t\t\tif(augmentingPath.isEmpty()) {\r\n\t\t\t\tbreak; // found the max flow\r\n\t\t\t} else {\r\n\t\t\t\t// Find the minimum capacity\r\n\t\t\t\tint minCap = Integer.MAX_VALUE;\r\n\t\t\t\tfor (Edge e : augmentingPath) {\r\n\t\t\t\t\tif (e.getCap() < minCap) minCap = e.getCap();\r\n\t\t\t\t}\r\n\t\t\t\t// Edit the path according to what we've found in the augmenting path\r\n\t\t\t\tfor (Edge e : augmentingPath) {\r\n\t\t\t\t\t// if e is a forward edge:\r\n\t\t\t\t\tVertex source = e.getSourceVertex();\r\n\t\t\t\t\tVertex target = e.getTargetVertex();\r\n\t\t\t\t\tEdge originalEdge = net.getAdjMatrixEntry(source, target);\r\n\t\t\t\t\tif (net.getAdjList(source).contains(target) && originalEdge.getFlow() + minCap <= originalEdge.getCap()) {\r\n\t\t\t\t\t\toriginalEdge.setFlow(originalEdge.getFlow() + minCap);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\toriginalEdge = net.getAdjMatrixEntry(target, source);\r\n\t\t\t\t\t\toriginalEdge.setFlow(net.getAdjMatrixEntry(target, source).getFlow() - minCap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tnet.printFlow();\r\n\t\t}\r\n\t}", "public void advance( )\n {\n // Implemented by student.\n }", "@Override\r\n\tpublic void reading() {\n\t\tSystem.out.println(\"reading\");\r\n\t}", "public void run(){\r\n boolean nameGet = false;\r\n try{\r\n ObjectInputStream ois = new ObjectInputStream(mySocket.getInputStream());\r\n oos = new ObjectOutputStream(mySocket.getOutputStream());\r\n\r\n //Listen for messages and RollRequest objects.\r\n while(true){\r\n DataWrapper dw = (DataWrapper) ois.readObject();\r\n //Get the name from the InputStream if not retrieved already\r\n if(!nameGet){\r\n //Store the client's first message, which is always in the format \"<name> connected.\"\r\n String line = \"\";\r\n if(dw.getType() == DataWrapper.STRINGCODE){\r\n line = dw.getMessage();\r\n }\r\n consoleAppend(line);\r\n\r\n /*\r\n * Extract the alias from the String by getting the substring from 0 to the last index of whitespace,\r\n * effectively removing the \" connected.\" part of the String.\r\n */\r\n String alias = line.substring(0, line.lastIndexOf(\" \"));\r\n\r\n //Disconnect the client if the name is already in use\r\n if(getIndex(alias) != -1){\r\n oos.writeObject(\r\n new DataWrapper(\r\n DataWrapper.STRINGCODE, \"Sorry, that name is in use. Disconnecting..\", false));\r\n oos.flush();\r\n mySocket.close();\r\n }\r\n\r\n this.setName(alias);\r\n turnQueue.add(alias);\r\n nameGet = true;\r\n\r\n //If the first client\r\n if(clientThreads.get(0) == this) {\r\n //send the boardLayout for them to unpack\r\n oos.writeObject(new DataWrapper(DataWrapper.BICODE, boardLayout));\r\n }\r\n //If not the first client\r\n if(clientThreads.get(0) != this) {\r\n //request a board from the first client and wait until the updated board is received\r\n requestBoard();\r\n synchronized (waitForBoardLock) {\r\n while (!boardUpdated) {\r\n// System.out.println(\"Thread \" + this.getName() + \" waiting\");\r\n waitForBoardLock.wait();\r\n }\r\n }\r\n oos.writeObject(new DataWrapper(DataWrapper.BICODE, boardLayout));\r\n boardUpdated = false;\r\n }\r\n\r\n //Instruct all clients to add the new player\r\n sendCTToAll(new ControlToken(ControlToken.ADDCODE, alias, rand.nextInt(8)));\r\n\r\n }\r\n //Handle DataWrapper objects\r\n switch(dw.getType()){\r\n //Ensure all clients see each others' messages\r\n case DataWrapper.STRINGCODE:\r\n //Send incoming client chat messages to all clients, and append sender name\r\n String fmtMessage = String.format(\"%s: %s\", this.getName(), dw.getMessage());\r\n sendToAll(fmtMessage);\r\n consoleAppend(fmtMessage);\r\n break;\r\n\r\n //Receive updated board information from the first client in the client list\r\n case DataWrapper.BICODE:\r\n boardLayout = dw.getBoardInformation();\r\n System.out.println(\"Received an updated BoardInformation.\");\r\n System.out.println(boardLayout.toString());\r\n synchronized(waitForBoardLock){\r\n boardUpdated = true;\r\n waitForBoardLock.notify();\r\n// System.out.println(\"Thread \" + this.getName() + \" notified because of receiving a BoardInformation.\");\r\n }\r\n break;\r\n\r\n //Handle ControlToken objects\r\n case DataWrapper.CTCODE:\r\n //Client informs server that they are finished with their turn\r\n if(dw.getCT().getCode() == ControlToken.TURNFINISHEDCODE){\r\n synchronized(turnFinishedLock) {\r\n turnFinished = true;\r\n turnFinishedLock.notify();\r\n }\r\n// System.out.println(\"Thread \" + this.getName() + \" notified because of receiving a turnFinished.\");\r\n }\r\n //Client asks to roll the dice, Server returns a random value from 1-6\r\n if(dw.getCT().getCode() == ControlToken.ROLLREQUESTCODE) {\r\n //Generate the roll result\r\n int rolledResult = rollResult();\r\n //Send it as a game message to all clients\r\n String rolledResultString = String.format(\"%s rolled a %d!\",\r\n dw.getCT().getPlayerName(), rolledResult);\r\n sendGMToAll(rolledResultString);\r\n //Instruct the clients to move the player on all boards\r\n sendCTToAll(new ControlToken(ControlToken.MOVECODE, this.getName(), rolledResult, true));\r\n }\r\n break;\r\n\r\n //Default case\r\n default:\r\n consoleAppend(\"Error: invalid DataWrapper.type\");\r\n break;\r\n } //end of switch statement\r\n } //end of while loop\r\n } catch(ClassNotFoundException cnfe) {\r\n System.err.println(\"Error: class not found \" + cnfe.getMessage());\r\n } catch(SocketException | EOFException se) {\r\n handleDisconnect();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n } catch (InterruptedException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }", "private void readObject() {\n /*default - does nothing empty block */\n }", "private void nextPiece() {\n if (_c == M && _r <= M) {\n _c = 1;\n _r++;\n } else if (_r > M) {\n _move = null;\n } else {\n _c++;\n }\n }", "public void retireLead()\r\n\t{\r\n\t\tisleader = false;\r\n\t}", "private static void grabarYleerCirujano() {\r\n\t\tCirujano cirujano = new Cirujano(\"Raul\", \"NoSe\", \"67\", \"Piso\", \"4\", \"20\");\r\n\t\tDTO<Cirujano> dtoCirujano = new DTO<>(\"src/Almacen/cirujano.dat\");\r\n\t\tif (dtoCirujano.grabar(cirujano) == true) {\r\n\t\t\tSystem.out.println(cirujano.getNombre());\r\n\t\t\tSystem.out.println(cirujano.getDireccion());\r\n\t\t\tSystem.out.println(\"Cirujano grabado\");\r\n\t\t}\r\n\t\t;\r\n\r\n\t\tCirujano cirujanoLeer = dtoCirujano.leer();\r\n\t\tSystem.out.println(cirujanoLeer);\r\n\t\tSystem.out.println(cirujanoLeer.getNombre());\r\n\t}", "private void standByForMessages() throws IOException {\n if (reader.readLine() != null) {\n try {\n JSONObject j = (JSONObject) jps.parse(reader.readLine());\n sequence = Integer.valueOf(j.get(\"sequence\").toString());\n String cmd = (String) j.get(\"command\");\n JSONArray parameter = (JSONArray) j.get(\"parameter\");\n cmdHandler(parameter, cmd);\n } catch (ParseException ex) {\n }\n }\n }", "public void skip()\n {\n skip(1);\n }", "private void readObject() {/* default - does nothing empty block */\n }", "public synchronized void finishWriting() {\n readerNumber++; // readerNumber = -1 + 1 = 0; \n// readerNumber must be 0 at this point \n this.notifyAll(); // notify possible waiting writers or waiting readers \n }", "private void forwardRead(int hash) throws IOException {\n if (forwardRead != null)\n return;\n\n int pos = buf.position();\n\n long nextRecPos = fileIo.position() - buf.remaining();\n\n buf.reset();\n\n int bufPos = buf.position();\n\n long curRecPos = fileIo.position() - buf.remaining();\n\n buf.position(pos);\n\n curHnd = NOOP_HANDLER;\n\n forwardRead = new ForwardRead(hash, curRecPos, nextRecPos, bufPos);\n }", "public abstract void onNext();", "@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }", "public void nextTurn() {\r\n ArrayList<Bomb> copy_bombs = new ArrayList<>(this.bombs);\r\n for (Bomb b : copy_bombs) {\r\n if(b.getDelay() == 1){\r\n this.explode = true;\r\n }\r\n b.tick();\r\n b.explode(this);\r\n }\r\n this.ordering = new LinkedList<>();\r\n this.fillPlayerQueue();\r\n if (this.random_order) {\r\n Collections.shuffle((List)this.ordering);\r\n }\r\n\r\n this.turn_number++;\r\n }", "void mo18920a(Data data) throws IOException;", "public void nextTurn() {\n\t\tLog.d(TAG, \"nextTurn()\");\t\t\n\t\ttickPeople();\n\t\t//doEvents();\n\t\tupdateBar();\n\t}", "public synchronized void reset() throws IOException {\n\t\t\tdata.seek(firstPosition);\n\t\t}" ]
[ "0.5819444", "0.5536669", "0.5516014", "0.5491533", "0.5484433", "0.5479393", "0.54191625", "0.53368264", "0.53344303", "0.53288126", "0.5296532", "0.5277041", "0.5272901", "0.52588964", "0.5252766", "0.5240854", "0.5237513", "0.523113", "0.5202307", "0.5201428", "0.51807284", "0.5175658", "0.51744086", "0.51668143", "0.51666003", "0.51520765", "0.5134899", "0.51341873", "0.511828", "0.5110302", "0.5082067", "0.5080107", "0.5076918", "0.50766665", "0.50722355", "0.5070015", "0.50564575", "0.5054494", "0.5054247", "0.5032365", "0.50308275", "0.50279653", "0.50233823", "0.5022124", "0.50213337", "0.5021294", "0.50207305", "0.5010143", "0.5002968", "0.5001838", "0.4997227", "0.49923217", "0.49880084", "0.49799278", "0.4975349", "0.4972046", "0.4969378", "0.49690133", "0.49614727", "0.49591264", "0.49581248", "0.49428916", "0.4936783", "0.49196613", "0.49102193", "0.490462", "0.48922443", "0.48871177", "0.48871177", "0.48871177", "0.48871177", "0.48871177", "0.48871177", "0.48871177", "0.48871177", "0.48871177", "0.48871177", "0.48869988", "0.48855093", "0.4873074", "0.48713088", "0.48666695", "0.4866592", "0.48651874", "0.48624414", "0.48620528", "0.48617947", "0.48578864", "0.48553044", "0.4837854", "0.48361713", "0.4833048", "0.48327717", "0.4830945", "0.48287928", "0.48283586", "0.48265463", "0.48248446", "0.48194546", "0.48168993", "0.48109543" ]
0.0
-1
ISimpleDateFormat adjustSDFTZ(ISimpleDateFormat sdf, String tz);
ISimpleDateFormat createSDF(String format, String lang, String country, String tz);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLocalTimeZone(DateFormat df) {\n \n }", "private synchronized void initializeTimeZoneFormat(final boolean bForceUpdate) {\n\t\tif (bForceUpdate || tzFormat == null) {\n\t\t\ttzFormat = TimeZoneFormat.getInstance(locale);\n\n\t\t\tString digits = null;\n\t\t\tif (numberFormat instanceof DecimalFormat) {\n\t\t\t\tDecimalFormatSymbols decsym = ((DecimalFormat) numberFormat).getDecimalFormatSymbols();\n\t\t\t\tdigits = new String(decsym.getDigits());\n\t\t\t} else if (numberFormat instanceof DateNumberFormat) {\n\t\t\t\tdigits = new String(((DateNumberFormat) numberFormat).getDigits());\n\t\t\t}\n\n\t\t\tif (digits != null) {\n\t\t\t\tif (!tzFormat.getGMTOffsetDigits().equals(digits)) {\n\t\t\t\t\tif (tzFormat.isFrozen()) {\n\t\t\t\t\t\ttzFormat = tzFormat.cloneAsThawed();\n\t\t\t\t\t}\n\t\t\t\t\ttzFormat.setGMTOffsetDigits(digits);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private synchronized void initializeTimeZoneFormat(boolean bForceUpdate) {\n if (!bForceUpdate) {\n }\n this.tzFormat = TimeZoneFormat.getInstance(this.locale);\n String digits = null;\n if (this.numberFormat instanceof DecimalFormat) {\n digits = new String(((DecimalFormat) this.numberFormat).getDecimalFormatSymbols().getDigits());\n } else if (this.numberFormat instanceof DateNumberFormat) {\n digits = new String(((DateNumberFormat) this.numberFormat).getDigits());\n }\n if (!(digits == null || this.tzFormat.getGMTOffsetDigits().equals(digits))) {\n if (this.tzFormat.isFrozen()) {\n this.tzFormat = this.tzFormat.cloneAsThawed();\n }\n this.tzFormat.setGMTOffsetDigits(digits);\n }\n }", "private TimeZoneFormat tzFormat() {\n\t\tif (tzFormat == null) {\n\t\t\tinitializeTimeZoneFormat(false);\n\t\t}\n\t\treturn tzFormat;\n\t}", "public void setSfyDwtz(Integer sfyDwtz) {\r\n this.sfyDwtz = sfyDwtz;\r\n }", "public void setTimeZone(String strTimeZone) { m_strTimeZone = strTimeZone; }", "public Date parseAsISO8601(String str, ParsePosition parsePosition) {\n DateFormat dateFormat;\n int length = str.length();\n int i = length - 1;\n char charAt = str.charAt(i);\n if (length <= 10 && Character.isDigit(charAt)) {\n dateFormat = this._formatPlain;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_PLAIN);\n this._formatPlain = dateFormat;\n }\n } else if (charAt == 'Z') {\n DateFormat dateFormat2 = this._formatISO8601_z;\n if (dateFormat2 == null) {\n dateFormat2 = _cloneFormat(DATE_FORMAT_ISO8601_Z);\n this._formatISO8601_z = dateFormat2;\n }\n if (str.charAt(length - 4) == ':') {\n StringBuilder sb = new StringBuilder(str);\n sb.insert(i, \".000\");\n str = sb.toString();\n dateFormat = dateFormat2;\n } else {\n dateFormat = dateFormat2;\n }\n } else if (hasTimeZone(str)) {\n int i2 = length - 3;\n char charAt2 = str.charAt(i2);\n if (charAt2 == ':') {\n StringBuilder sb2 = new StringBuilder(str);\n sb2.delete(i2, length - 2);\n str = sb2.toString();\n } else if (charAt2 == '+' || charAt2 == '-') {\n str = str + \"00\";\n }\n int length2 = str.length();\n if (Character.isDigit(str.charAt(length2 - 9))) {\n StringBuilder sb3 = new StringBuilder(str);\n sb3.insert(length2 - 5, \".000\");\n str = sb3.toString();\n }\n dateFormat = this._formatISO8601;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_ISO8601);\n this._formatISO8601 = dateFormat;\n }\n } else {\n StringBuilder sb4 = new StringBuilder(str);\n if ((length - str.lastIndexOf(84)) - 1 <= 8) {\n sb4.append(\".000\");\n }\n sb4.append('Z');\n str = sb4.toString();\n dateFormat = this._formatISO8601_z;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_ISO8601_Z);\n this._formatISO8601_z = dateFormat;\n }\n }\n return dateFormat.parse(str, parsePosition);\n }", "public void setTimeZone(TimeZone tmz)\n {\n this.timeZone = tmz; // may be null\n }", "public static String convertToDateStringWithsdf(String unformateddate, SimpleDateFormat sdf) {\n Date date = null;\n String dateStr = unformateddate;\n try {\n\n date = sdf.parse(unformateddate);\n dateStr = new SimpleDateFormat(\"dd MMM yyyy\").format(date);\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n return dateStr;\n }", "public void setSfyZscq(Integer sfyZscq) {\r\n this.sfyZscq = sfyZscq;\r\n }", "public static void main(String[] args) throws ParseException { 2019-05-30T10:15:16.0Z\n // 2019-05-30T10:18:21\n // SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // String str = \"2019-05-30 18:15:16\";\n // Date date = sdf.parse(str);\n //\n // DateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n // // Date date = Calendar.getInstance().getTime();\n // TimeZone srcTimeZone = TimeZone.getTimeZone(\"GMT+8\");\n // TimeZone destTimeZone = TimeZone.getTimeZone(\"GMT\");\n // System.out.println(DateTransformer.dateTransformBetweenTimeZone(date, formatter, srcTimeZone, destTimeZone));\n //\n\n }", "private synchronized void initializeTimeZoneFormat(boolean r5) {\r\n /*\r\n // Method dump skipped, instructions count: 115\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: ohos.global.icu.text.SimpleDateFormat.initializeTimeZoneFormat(boolean):void\");\r\n }", "abstract public ZonedDateTime getZonedDateTime(String zoneString);", "public static String convertDate(String inputdate, String fromtimezone, String totimezone)\n\n {\n String sDateinto = \"\";\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n\n String dateInString = inputdate.substring(0, 22) ;\n\n formatter.setTimeZone(TimeZone.getTimeZone(fromtimezone));\n Date date = formatter.parse(dateInString);\n Log.i(\"FromDate String : \", formatter.format(date));\n\n\n SimpleDateFormat totime = new SimpleDateFormat(DATE_FORMAT);\n //TimeZone tzlocaltime = TimeZone.getDefault();\n totime.setTimeZone(TimeZone.getTimeZone(totimezone));\n\n sDateinto = totime.format(date); // Convert to String first\n Date dateInTo = formatter.parse(sDateinto); // Create a new Date object\n\n // Log.i(\"ToDate String: \", sDateinto);\n Log.i(\"ToDate Object: \", formatter.format(dateInTo));\n return sDateinto ;\n }\n catch (ParseException e)\n {\n Log.i(\"Date Conversion\" ,\"Error in parsing\" );\n return \"Date parsing error\" ;\n }\n\n }", "public void setdJzsj(Date dJzsj) {\n this.dJzsj = dJzsj;\n }", "public void setTimeZone(TimeZone zone) {\n/* 438 */ ParamChecks.nullNotPermitted(zone, \"zone\");\n/* 439 */ this.timeZone = zone;\n/* 440 */ setStandardTickUnits(createStandardDateTickUnits(zone, this.locale));\n/* 441 */ fireChangeEvent();\n/* */ }", "public final void m15083a(fzs fzs) {\n this.f20407m.add(fzs);\n }", "void setUserTimeZoneCode(int userTimeZoneCode);", "public SDate getLocalTimeFromUTC(int iyear, int imonth, int iday, int ihour, int imin, double dsec,\n\t\t\tdouble d_timezone) {\n\t\t// public SDate swe_utc_time_zone(\n\t\t// int iyear, int imonth, int iday,\n\t\t// int ihour, int imin, double dsec,\n\t\t// double d_timezone) {\n\t\tint iyear_out, imonth_out, iday_out, ihour_out, imin_out;\n\t\tdouble dsec_out;\n\t\tdouble tjd, d;\n\t\tboolean have_leapsec = false;\n\t\tdouble dhour;\n\t\tif (dsec >= 60.0) {\n\t\t\thave_leapsec = true;\n\t\t\tdsec -= 1.0;\n\t\t}\n\t\tdhour = ((double) ihour) + ((double) imin) / 60.0 + dsec / 3600.0;\n\t\ttjd = swe_julday(iyear, imonth, iday, 0, SE_GREG_CAL);\n\t\tdhour -= d_timezone;\n\t\tif (dhour < 0.0) {\n\t\t\ttjd -= 1.0;\n\t\t\tdhour += 24.0;\n\t\t}\n\t\tif (dhour >= 24.0) {\n\t\t\ttjd += 1.0;\n\t\t\tdhour -= 24.0;\n\t\t}\n\t\t// swe_revjul(tjd + 0.001, SE_GREG_CAL, iyear_out, imonth_out, iday_out,\n\t\t// &d);\n\t\tIDate dt = swe_revjul(tjd + 0.001, SE_GREG_CAL);\n\t\tiyear_out = dt.year;\n\t\timonth_out = dt.month;\n\t\tiday_out = dt.day;\n\t\tihour_out = (int) dhour;\n\t\td = (dhour - (double) ihour_out) * 60;\n\t\timin_out = (int) d;\n\t\tdsec_out = (d - (double) imin_out) * 60;\n\t\tif (have_leapsec)\n\t\t\tdsec_out += 1.0;\n\t\treturn new SDate(iyear_out, imonth_out, iday_out, ihour_out, imin_out, dsec_out);\n\t}", "public void setdZjsj(Date dZjsj) {\n this.dZjsj = dZjsj;\n }", "public void markUeTimezoneReplace() throws JNCException {\n markLeafReplace(\"ueTimezone\");\n }", "private void handleTimeZoneUpdate(String str) {\n Assert.isMainThread();\n Log.d(\"KeyguardUpdateMonitor\", \"handleTimeZoneUpdate\");\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onTimeZoneChanged(TimeZone.getTimeZone(str));\n keyguardUpdateMonitorCallback.onTimeChanged();\n }\n }\n }", "public static String displayTimeInJakarta(long timestamp, String pattern) {\n SimpleDateFormat formatOutgoing = new SimpleDateFormat(pattern);\n TimeZone tz = TimeZone.getTimeZone(\"Asia/Jakarta\");\n// System.out.println(tz.getDisplayName(false, TimeZone.SHORT, Locale.ENGLISH)); // WIB\n\n formatOutgoing.setTimeZone(tz);\n String ss = formatOutgoing.format(new Date(timestamp));\n\n return ss;\n// String ss = formatOutgoing.format(formatIncoming.parse(\"Tue Mar 03 00:00:00 WIB 2015\"));\n\n }", "public final void zzb(zzk zzk) {\n zzdxo.zzhwd.zza(this, zzk);\n }", "public /* synthetic */ void lambda$onReceive$0$Clock$2(String str) {\n Clock.this.mCalendar = Calendar.getInstance(TimeZone.getTimeZone(str));\n if (Clock.this.mClockFormat != null) {\n Clock.this.mClockFormat.setTimeZone(Clock.this.mCalendar.getTimeZone());\n }\n }", "public void setTimeZone(TimeZone timeZone)\n {\n this.timeZone = timeZone;\n }", "@Override\r\n\tpublic void updateAllZp(String rczpno, Double sczm, Double scfm) {\n\t\tdao.executeUpdate(\"update ZpngTp set sczm=?,scfm=? where rczpno=?\", sczm, scfm, rczpno);\r\n\t}", "public static SimpleDateFormat createDateFormat() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS\");\n TimeZone myTimeZone = TimeZone.getTimeZone(ZoneId.of(\"UTC\"));\n dateFormat.setTimeZone(myTimeZone);\n dateFormat.setLenient(false);\n return dateFormat;\n }", "public static DateTime parseTimestampWithTimeZone(String str) {\n return DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ssZ\").parseDateTime(str);\n }", "public void setFwsj(Date fwsj) {\n this.fwsj = fwsj;\n }", "private static String trimUTCZoneOffset(String ts) {\n if (ts.endsWith(\"Z\")) {\n return ts.substring(0, ts.length() - 1);\n }\n if (ts.endsWith(\"+00:00\")) {\n return ts.substring(0, ts.length() - 6);\n }\n\n if (!hasSignOfZoneOffset(ts)) {\n return ts;\n }\n return null;\n }", "public Date getUTCDate(String timeZone, Calendar cal);", "public void zza(zzj zzj) {\n this.zzaTY = (zzj) zzu.zzu(zzj);\n }", "@Override\n\tpublic List<Dba02> listValideZsInfoByOpt(String jh, String zsfs,\n\t\t\tString sDate, String eDate) throws WEBException {\n\t\ttry {\n\t\t\tDba02Dao dba02Dao = (Dba02Dao) DaoFactory.instance(null).getDao(Constants.DAO_DBA_02_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\treturn dba02Dao.findValideZsInfoByOpt(sess, jh, zsfs, sDate, eDate);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"根据井号、注水方式、时间段获取水井记录列表(scsj大于0)时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}", "public void setSfyXzcf(Integer sfyXzcf) {\r\n this.sfyXzcf = sfyXzcf;\r\n }", "@Override\n\tpublic StringBuffer format(Calendar cal, final StringBuffer toAppendTo, final FieldPosition pos) {\n\t\tTimeZone backupTZ = null;\n\t\tif (cal != calendar && !cal.getType().equals(calendar.getType())) {\n\t\t\t// Different calendar type\n\t\t\t// We use the time and time zone from the input calendar, but\n\t\t\t// do not use the input calendar for field calculation.\n\t\t\tcalendar.setTimeInMillis(cal.getTimeInMillis());\n\t\t\tbackupTZ = calendar.getTimeZone();\n\t\t\tcalendar.setTimeZone(cal.getTimeZone());\n\t\t\tcal = calendar;\n\t\t}\n\t\tStringBuffer result = format(cal, capitalizationSetting, toAppendTo, pos, null);\n\t\tif (backupTZ != null) {\n\t\t\t// Restore the original time zone\n\t\t\tcalendar.setTimeZone(backupTZ);\n\t\t}\n\t\treturn result;\n\t}", "int getUserTimeZoneCode();", "SimpleDateFormat(final String pattern, final DateFormatSymbols formatData, final Calendar calendar, final ULocale locale,\n\t\t\tfinal boolean useFastFormat, final String override) {\n\t\tthis(pattern, (DateFormatSymbols) formatData.clone(), (Calendar) calendar.clone(), null, locale, useFastFormat, override);\n\t}", "public static android.icu.util.TimeZone getTimeZone(java.lang.String ID) { throw new RuntimeException(\"Stub!\"); }", "public void setSFZH(java.lang.String param) {\r\n localSFZHTracker = param != null;\r\n\r\n this.localSFZH = param;\r\n }", "@Override\n protected String serializeTz(ImmutableList<? extends ImmutableTerm> terms,\n Function<ImmutableTerm, String> termConverter, TermFactory termFactory) {\n return String.format(\"CONVERT(nvarchar(5), DATEADD(minute, DATEPART(TZ, %s), 0), 114)\",\n termConverter.apply(terms.get(0)));\n }", "public static TimeZone getTimeZone(String ID);", "public native final Calendar timeZone(String val) /*-{\n\t\tthis[\"timeZone\"] = val;\n\t\treturn this;\n\t}-*/;", "private void parseUTCString(String str)\n {\n SimpleDateFormat formatter;\n // Treat the sub-second part as optional\n if (str.indexOf(\".\") != -1) {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n } else {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n }\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n try {\n Date date = formatter.parse(str);\n itsValue = date.getTime() * 1000L + DUTC.get() * 1000000L + 3506716800000000L;\n } catch (Exception e) {\n throw new NumberFormatException(\"Couldn't parse date as UTC_STRING\");\n }\n }", "public void setSfyGdcz(Integer sfyGdcz) {\r\n this.sfyGdcz = sfyGdcz;\r\n }", "java.lang.String getTimeZone();", "private static String zuluFormat(String beginTimestamp) {\n\t\tStringBuffer buf = new StringBuffer(beginTimestamp);\n\t\tbuf.insert(4, '-');\n\t\tbuf.insert(7, '-');\n\t\tbuf.insert(10, 'T');\n\t\tbuf.insert(13, ':');\n\t\tbuf.insert(16, ':');\n\t\tbuf.append('Z');\n\t\treturn buf.toString();\n\t}", "@JsMethod(namespace = \"tz\")\n public static native String add(String packedZoneString);", "private static boolean hasTimeZone(String lexicalForm) {\n return matchTimeZone.matcher(lexicalForm).find();\n }", "private long _getUTCSeconds(long dmy, long hms)\n {\n \n /* time of day [TOD] */\n int HH = (int)((hms / 10000L) % 100L);\n int MM = (int)((hms / 100L) % 100L);\n int SS = (int)(hms % 100L);\n long TOD = (HH * 3600L) + (MM * 60L) + SS;\n \n /* current UTC day */\n long DAY;\n if (dmy > 0L) {\n int yy = (int)(dmy % 100L) + 2000;\n int mm = (int)((dmy / 100L) % 100L);\n int dd = (int)((dmy / 10000L) % 100L);\n long yr = ((long)yy * 1000L) + (long)(((mm - 3) * 1000) / 12);\n DAY = ((367L * yr + 625L) / 1000L) - (2L * (yr / 1000L))\n + (yr / 4000L) - (yr / 100000L) + (yr / 400000L)\n + (long)dd - 719469L;\n } else {\n // we don't have the day, so we need to figure out as close as we can what it should be.\n long utc = DateTime.getCurrentTimeSec();\n long tod = utc % DateTime.DaySeconds(1);\n DAY = utc / DateTime.DaySeconds(1);\n long dif = (tod >= TOD)? (tod - TOD) : (TOD - tod); // difference should be small (ie. < 1 hour)\n if (dif > DateTime.HourSeconds(12)) { // 12 to 18 hours\n // > 12 hour difference, assume we've crossed a day boundary\n if (tod > TOD) {\n // tod > TOD likely represents the next day\n DAY++;\n } else {\n // tod < TOD likely represents the previous day\n DAY--;\n }\n }\n }\n \n /* return UTC seconds */\n long sec = DateTime.DaySeconds(DAY) + TOD;\n return sec;\n \n }", "public SweDate(double jd) {\n\t\tinitDateFromJD(jd, jdCO <= jd ? SE_GREG_CAL : SE_JUL_CAL);\n\t}", "public void setJdFzr(String jdFzr) {\r\n\t\tthis.jdFzr = jdFzr;\r\n\t}", "private static\n DateTimeFormatter getDateTimeFormatter(String pattern,\n boolean withZoneUTC,\n boolean optionalFracSecond,\n boolean optionalOffsetId,\n int nFracSecond) {\n\n DateTimeFormatterBuilder dtfb = new DateTimeFormatterBuilder();\n dtfb.appendPattern(pattern);\n if (optionalFracSecond) {\n dtfb.optionalStart();\n dtfb.appendFraction(ChronoField.NANO_OF_SECOND,\n 0, MAX_PRECISION, true);\n dtfb.optionalEnd();\n } else {\n if (nFracSecond > 0) {\n dtfb.appendFraction(ChronoField.NANO_OF_SECOND,\n nFracSecond, nFracSecond, true);\n }\n }\n if (optionalOffsetId) {\n dtfb.optionalStart();\n dtfb.appendOffset(\"+HH:MM\",\"Z\");\n dtfb.optionalEnd();\n }\n return dtfb.toFormatter().withZone\n (withZoneUTC ? UTCZone : ZoneId.systemDefault());\n }", "public String getUTCTime(String timeZone, Calendar cal);", "private void constructVssDateTimeFormat() {\n vssDateTimeFormat = new SimpleDateFormat(\"'Date: '\" + this.dateFormat + \" 'Time: 'hh:mma\"); \n }", "public final void setD2zon(java.math.BigDecimal d2zon)\n\t{\n\t\tsetD2zon(getContext(), d2zon);\n\t}", "public void setZonename(java.lang.String newZonename) {\n\tzonename = newZonename;\n}", "@Override\n public ZonedDateTime getZonedDateTime(String zoneString) {\n return null;\n }", "public abstract void zza(zzk zzk, zzk zzk2);", "@Deprecated\n protected void subFormat(StringBuffer buf, char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, Calendar cal) {\n int bufstart = buf.length();\n TimeZone tz = cal.getTimeZone();\n long date = cal.getTimeInMillis();\n String result = null;\n int patternCharIndex = getIndexFromChar(ch);\n if (patternCharIndex != -1) {\n int field = PATTERN_INDEX_TO_CALENDAR_FIELD[patternCharIndex];\n int value = 0;\n if (field >= 0) {\n value = patternCharIndex != 34 ? cal.get(field) : cal.getRelatedYear();\n }\n NumberFormat currentNumberFormat = getNumberFormat(ch);\n CapitalizationContextUsage capContextUsageType = CapitalizationContextUsage.OTHER;\n String toAppend;\n switch (patternCharIndex) {\n case 0:\n if (!cal.getType().equals(\"chinese\") && !cal.getType().equals(\"dangi\")) {\n if (count != 5) {\n if (count != 4) {\n safeAppend(this.formatData.eras, value, buf);\n capContextUsageType = CapitalizationContextUsage.ERA_ABBREV;\n break;\n }\n safeAppend(this.formatData.eraNames, value, buf);\n capContextUsageType = CapitalizationContextUsage.ERA_WIDE;\n break;\n }\n safeAppend(this.formatData.narrowEras, value, buf);\n capContextUsageType = CapitalizationContextUsage.ERA_NARROW;\n break;\n }\n zeroPaddingNumber(currentNumberFormat, buf, value, 1, 9);\n break;\n break;\n case 1:\n case 18:\n if (this.override != null && ((this.override.compareTo(\"hebr\") == 0 || this.override.indexOf(\"y=hebr\") >= 0) && value > HEBREW_CAL_CUR_MILLENIUM_START_YEAR && value < HEBREW_CAL_CUR_MILLENIUM_END_YEAR)) {\n value -= 5000;\n }\n if (count != 2) {\n zeroPaddingNumber(currentNumberFormat, buf, value, count, Integer.MAX_VALUE);\n break;\n } else {\n zeroPaddingNumber(currentNumberFormat, buf, value, 2, 2);\n break;\n }\n case 2:\n case 26:\n if (cal.getType().equals(\"hebrew\")) {\n boolean isLeap = HebrewCalendar.isLeapYear(cal.get(1));\n if (isLeap && value == 6 && count >= 3) {\n value = 13;\n }\n if (!isLeap && value >= 6 && count < 3) {\n value--;\n }\n }\n int isLeapMonth = (this.formatData.leapMonthPatterns == null || this.formatData.leapMonthPatterns.length < 7) ? 0 : cal.get(22);\n if (count != 5) {\n if (count != 4) {\n if (count == 3) {\n if (patternCharIndex != 2) {\n safeAppendWithMonthPattern(this.formatData.standaloneShortMonths, value, buf, isLeapMonth != 0 ? this.formatData.leapMonthPatterns[4] : null);\n capContextUsageType = CapitalizationContextUsage.MONTH_STANDALONE;\n break;\n }\n safeAppendWithMonthPattern(this.formatData.shortMonths, value, buf, isLeapMonth != 0 ? this.formatData.leapMonthPatterns[1] : null);\n capContextUsageType = CapitalizationContextUsage.MONTH_FORMAT;\n break;\n }\n zeroPaddingNumber(currentNumberFormat, new StringBuffer(), value + 1, count, Integer.MAX_VALUE);\n safeAppendWithMonthPattern(new String[]{new StringBuffer().toString()}, 0, buf, isLeapMonth != 0 ? this.formatData.leapMonthPatterns[6] : null);\n break;\n } else if (patternCharIndex != 2) {\n safeAppendWithMonthPattern(this.formatData.standaloneMonths, value, buf, isLeapMonth != 0 ? this.formatData.leapMonthPatterns[3] : null);\n capContextUsageType = CapitalizationContextUsage.MONTH_STANDALONE;\n break;\n } else {\n safeAppendWithMonthPattern(this.formatData.months, value, buf, isLeapMonth != 0 ? this.formatData.leapMonthPatterns[0] : null);\n capContextUsageType = CapitalizationContextUsage.MONTH_FORMAT;\n break;\n }\n }\n if (patternCharIndex == 2) {\n safeAppendWithMonthPattern(this.formatData.narrowMonths, value, buf, isLeapMonth != 0 ? this.formatData.leapMonthPatterns[2] : null);\n } else {\n safeAppendWithMonthPattern(this.formatData.standaloneNarrowMonths, value, buf, isLeapMonth != 0 ? this.formatData.leapMonthPatterns[5] : null);\n }\n capContextUsageType = CapitalizationContextUsage.MONTH_NARROW;\n break;\n break;\n case 4:\n if (value != 0) {\n zeroPaddingNumber(currentNumberFormat, buf, value, count, Integer.MAX_VALUE);\n break;\n } else {\n zeroPaddingNumber(currentNumberFormat, buf, cal.getMaximum(11) + 1, count, Integer.MAX_VALUE);\n break;\n }\n case 8:\n this.numberFormat.setMinimumIntegerDigits(Math.min(3, count));\n this.numberFormat.setMaximumIntegerDigits(Integer.MAX_VALUE);\n if (count == 1) {\n value /= 100;\n } else if (count == 2) {\n value /= 10;\n }\n FieldPosition fieldPosition = new FieldPosition(-1);\n this.numberFormat.format((long) value, buf, fieldPosition);\n if (count > 3) {\n this.numberFormat.setMinimumIntegerDigits(count - 3);\n this.numberFormat.format(0, buf, fieldPosition);\n break;\n }\n break;\n case 9:\n if (count != 5) {\n if (count != 4) {\n if (count == 6 && this.formatData.shorterWeekdays != null) {\n safeAppend(this.formatData.shorterWeekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_FORMAT;\n break;\n }\n safeAppend(this.formatData.shortWeekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_FORMAT;\n break;\n }\n safeAppend(this.formatData.weekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_FORMAT;\n break;\n }\n safeAppend(this.formatData.narrowWeekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_NARROW;\n break;\n case 14:\n if (count >= 5 && this.formatData.ampmsNarrow != null) {\n safeAppend(this.formatData.ampmsNarrow, value, buf);\n break;\n } else {\n safeAppend(this.formatData.ampms, value, buf);\n break;\n }\n break;\n case 15:\n if (value != 0) {\n zeroPaddingNumber(currentNumberFormat, buf, value, count, Integer.MAX_VALUE);\n break;\n } else {\n zeroPaddingNumber(currentNumberFormat, buf, cal.getLeastMaximum(10) + 1, count, Integer.MAX_VALUE);\n break;\n }\n case 17:\n if (count < 4) {\n result = tzFormat().format(Style.SPECIFIC_SHORT, tz, date);\n capContextUsageType = CapitalizationContextUsage.METAZONE_SHORT;\n } else {\n result = tzFormat().format(Style.SPECIFIC_LONG, tz, date);\n capContextUsageType = CapitalizationContextUsage.METAZONE_LONG;\n }\n buf.append(result);\n break;\n case 19:\n if (count < 3) {\n zeroPaddingNumber(currentNumberFormat, buf, value, count, Integer.MAX_VALUE);\n break;\n }\n value = cal.get(7);\n case 23:\n if (count < 4) {\n result = tzFormat().format(Style.ISO_BASIC_LOCAL_FULL, tz, date);\n } else if (count == 5) {\n result = tzFormat().format(Style.ISO_EXTENDED_FULL, tz, date);\n } else {\n result = tzFormat().format(Style.LOCALIZED_GMT, tz, date);\n }\n buf.append(result);\n break;\n case 24:\n if (count == 1) {\n result = tzFormat().format(Style.GENERIC_SHORT, tz, date);\n capContextUsageType = CapitalizationContextUsage.METAZONE_SHORT;\n } else if (count == 4) {\n result = tzFormat().format(Style.GENERIC_LONG, tz, date);\n capContextUsageType = CapitalizationContextUsage.METAZONE_LONG;\n }\n buf.append(result);\n break;\n case 25:\n if (count >= 3) {\n value = cal.get(7);\n if (count != 5) {\n if (count != 4) {\n if (count == 6 && this.formatData.standaloneShorterWeekdays != null) {\n safeAppend(this.formatData.standaloneShorterWeekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_STANDALONE;\n break;\n }\n safeAppend(this.formatData.standaloneShortWeekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_STANDALONE;\n break;\n }\n safeAppend(this.formatData.standaloneWeekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_STANDALONE;\n break;\n }\n safeAppend(this.formatData.standaloneNarrowWeekdays, value, buf);\n capContextUsageType = CapitalizationContextUsage.DAY_NARROW;\n break;\n }\n zeroPaddingNumber(currentNumberFormat, buf, value, 1, Integer.MAX_VALUE);\n break;\n break;\n case 27:\n if (count < 4) {\n if (count != 3) {\n zeroPaddingNumber(currentNumberFormat, buf, (value / 3) + 1, count, Integer.MAX_VALUE);\n break;\n } else {\n safeAppend(this.formatData.shortQuarters, value / 3, buf);\n break;\n }\n }\n safeAppend(this.formatData.quarters, value / 3, buf);\n break;\n case 28:\n if (count < 4) {\n if (count != 3) {\n zeroPaddingNumber(currentNumberFormat, buf, (value / 3) + 1, count, Integer.MAX_VALUE);\n break;\n } else {\n safeAppend(this.formatData.standaloneShortQuarters, value / 3, buf);\n break;\n }\n }\n safeAppend(this.formatData.standaloneQuarters, value / 3, buf);\n break;\n case 29:\n if (count == 1) {\n result = tzFormat().format(Style.ZONE_ID_SHORT, tz, date);\n } else if (count == 2) {\n result = tzFormat().format(Style.ZONE_ID, tz, date);\n } else if (count == 3) {\n result = tzFormat().format(Style.EXEMPLAR_LOCATION, tz, date);\n } else if (count == 4) {\n result = tzFormat().format(Style.GENERIC_LOCATION, tz, date);\n capContextUsageType = CapitalizationContextUsage.ZONE_LONG;\n }\n buf.append(result);\n break;\n case 30:\n if (this.formatData.shortYearNames != null && value <= this.formatData.shortYearNames.length) {\n safeAppend(this.formatData.shortYearNames, value - 1, buf);\n break;\n }\n case 31:\n if (count == 1) {\n result = tzFormat().format(Style.LOCALIZED_GMT_SHORT, tz, date);\n } else if (count == 4) {\n result = tzFormat().format(Style.LOCALIZED_GMT, tz, date);\n }\n buf.append(result);\n break;\n case 32:\n if (count == 1) {\n result = tzFormat().format(Style.ISO_BASIC_SHORT, tz, date);\n } else if (count == 2) {\n result = tzFormat().format(Style.ISO_BASIC_FIXED, tz, date);\n } else if (count == 3) {\n result = tzFormat().format(Style.ISO_EXTENDED_FIXED, tz, date);\n } else if (count == 4) {\n result = tzFormat().format(Style.ISO_BASIC_FULL, tz, date);\n } else if (count == 5) {\n result = tzFormat().format(Style.ISO_EXTENDED_FULL, tz, date);\n }\n buf.append(result);\n break;\n case 33:\n if (count == 1) {\n result = tzFormat().format(Style.ISO_BASIC_LOCAL_SHORT, tz, date);\n } else if (count == 2) {\n result = tzFormat().format(Style.ISO_BASIC_LOCAL_FIXED, tz, date);\n } else if (count == 3) {\n result = tzFormat().format(Style.ISO_EXTENDED_LOCAL_FIXED, tz, date);\n } else if (count == 4) {\n result = tzFormat().format(Style.ISO_BASIC_LOCAL_FULL, tz, date);\n } else if (count == 5) {\n result = tzFormat().format(Style.ISO_EXTENDED_LOCAL_FULL, tz, date);\n }\n buf.append(result);\n break;\n case 35:\n toAppend = null;\n if (cal.get(11) == 12 && ((!this.hasMinute || cal.get(12) == 0) && (!this.hasSecond || cal.get(13) == 0))) {\n value = cal.get(9);\n toAppend = count == 3 ? this.formatData.abbreviatedDayPeriods[value] : (count == 4 || count > 5) ? this.formatData.wideDayPeriods[value] : this.formatData.narrowDayPeriods[value];\n }\n if (toAppend != null) {\n buf.append(toAppend);\n break;\n } else {\n subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal);\n break;\n }\n break;\n case 36:\n DayPeriodRules ruleSet = DayPeriodRules.getInstance(getLocale());\n if (ruleSet == null) {\n subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal);\n break;\n }\n DayPeriod periodType;\n int hour = cal.get(11);\n int minute = 0;\n int second = 0;\n if (this.hasMinute) {\n minute = cal.get(12);\n }\n if (this.hasSecond) {\n second = cal.get(13);\n }\n if (hour == 0 && minute == 0 && second == 0 && ruleSet.hasMidnight()) {\n periodType = DayPeriod.MIDNIGHT;\n } else if (hour == 12 && minute == 0 && second == 0 && ruleSet.hasNoon()) {\n periodType = DayPeriod.NOON;\n } else {\n periodType = ruleSet.getDayPeriodForHour(hour);\n }\n if (-assertionsDisabled || periodType != null) {\n int index;\n toAppend = null;\n if (!(periodType == DayPeriod.AM || periodType == DayPeriod.PM || periodType == DayPeriod.MIDNIGHT)) {\n index = periodType.ordinal();\n toAppend = count <= 3 ? this.formatData.abbreviatedDayPeriods[index] : (count == 4 || count > 5) ? this.formatData.wideDayPeriods[index] : this.formatData.narrowDayPeriods[index];\n }\n if (toAppend == null && (periodType == DayPeriod.MIDNIGHT || periodType == DayPeriod.NOON)) {\n periodType = ruleSet.getDayPeriodForHour(hour);\n index = periodType.ordinal();\n if (count <= 3) {\n toAppend = this.formatData.abbreviatedDayPeriods[index];\n } else if (count == 4 || count > 5) {\n toAppend = this.formatData.wideDayPeriods[index];\n } else {\n toAppend = this.formatData.narrowDayPeriods[index];\n }\n }\n if (periodType != DayPeriod.AM && periodType != DayPeriod.PM && toAppend != null) {\n buf.append(toAppend);\n break;\n } else {\n subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal);\n break;\n }\n }\n throw new AssertionError();\n break;\n case 37:\n buf.append(this.formatData.getTimeSeparatorString());\n break;\n default:\n zeroPaddingNumber(currentNumberFormat, buf, value, count, Integer.MAX_VALUE);\n break;\n }\n if (fieldNum == 0 && capitalizationContext != null && UCharacter.isLowerCase(buf.codePointAt(bufstart))) {\n boolean titlecase = false;\n switch (-getandroid-icu-text-DisplayContextSwitchesValues()[capitalizationContext.ordinal()]) {\n case 1:\n titlecase = true;\n break;\n case 2:\n case 3:\n if (this.formatData.capitalization != null) {\n boolean[] transforms = (boolean[]) this.formatData.capitalization.get(capContextUsageType);\n if (capitalizationContext != DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU) {\n titlecase = transforms[1];\n break;\n } else {\n titlecase = transforms[0];\n break;\n }\n }\n break;\n }\n if (titlecase) {\n if (this.capitalizationBrkIter == null) {\n this.capitalizationBrkIter = BreakIterator.getSentenceInstance(this.locale);\n }\n buf.replace(bufstart, buf.length(), UCharacter.toTitleCase(this.locale, buf.substring(bufstart), this.capitalizationBrkIter, 768));\n }\n }\n if (pos.getBeginIndex() == pos.getEndIndex()) {\n if (pos.getField() == PATTERN_INDEX_TO_DATE_FORMAT_FIELD[patternCharIndex]) {\n pos.setBeginIndex(beginOffset);\n pos.setEndIndex((buf.length() + beginOffset) - bufstart);\n } else if (pos.getFieldAttribute() == PATTERN_INDEX_TO_DATE_FORMAT_ATTRIBUTE[patternCharIndex]) {\n pos.setBeginIndex(beginOffset);\n pos.setEndIndex((buf.length() + beginOffset) - bufstart);\n }\n }\n } else if (ch != 'l') {\n throw new IllegalArgumentException(\"Illegal pattern character '\" + ch + \"' in \\\"\" + this.pattern + '\\\"');\n }\n }", "public abstract void zzf(Object obj);", "@Override\n\tpublic List<Dba02> listSjInfoByOpt(String jh, String zsfs, String sDate,\n\t\t\tString eDate) throws WEBException {\n\t\ttry {\n\t\t\tDba02Dao dba02Dao = (Dba02Dao) DaoFactory.instance(null).getDao(Constants.DAO_DBA_02_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\treturn dba02Dao.findSjInfoByOpt(sess, jh, zsfs, sDate, eDate);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"根据井号、注水方式、时间段获取合格的水井记录列表时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}", "@Override\n protected DBFunctionSymbol createTzFunctionSymbol() {\n return super.createTzFunctionSymbol();\n }", "public ZonedDateTime convertToSystemZonedDateTime(LocalDateTime ldt){\n return ZonedDateTime.of(ldt, ZoneId.systemDefault());\n }", "public static String formatDateWithTimezone(Date date, String zone) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss z\");\n sdf.setTimeZone(TimeZone.getTimeZone(zone));\n return sdf.format(date);\n }", "public static android.icu.util.TimeZone getTimeZone(java.lang.String ID, int type) { throw new RuntimeException(\"Stub!\"); }", "private void setDate(String headerName, long date)\r\n/* 329: */ {\r\n/* 330:483 */ SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMATS[0], Locale.US);\r\n/* 331:484 */ dateFormat.setTimeZone(GMT);\r\n/* 332:485 */ set(headerName, dateFormat.format(new Date(date)));\r\n/* 333: */ }", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "private synchronized IDate swe_revjul(double jd, boolean calType) {\n\t\tIDate dt = new IDate();\n\t\tdouble u0, u1, u2, u3, u4;\n\n\t\tu0 = jd + 32082.5;\n\t\tif (calType == SE_GREG_CAL) {\n\t\t\tu1 = u0 + SMath.floor(u0 / 36525.0) - SMath.floor(u0 / 146100.0) - 38.0;\n\t\t\tif (jd >= 1830691.5) {\n\t\t\t\tu1 += 1;\n\t\t\t}\n\t\t\tu0 = u0 + SMath.floor(u1 / 36525.0) - SMath.floor(u1 / 146100.0) - 38.0;\n\t\t}\n\t\tu2 = SMath.floor(u0 + 123.0);\n\t\tu3 = SMath.floor((u2 - 122.2) / 365.25);\n\t\tu4 = SMath.floor((u2 - SMath.floor(365.25 * u3)) / 30.6001);\n\t\tdt.month = (int) (u4 - 1.0);\n\t\tif (dt.month > 12) {\n\t\t\tdt.month -= 12;\n\t\t}\n\t\tdt.day = (int) (u2 - SMath.floor(365.25 * u3) - SMath.floor(30.6001 * u4));\n\t\tdt.year = (int) (u3 + SMath.floor((u4 - 2.0) / 12.0) - 4800);\n\t\tdt.hour = (jd - SMath.floor(jd + 0.5) + 0.5) * 24.0;\n\t\treturn dt;\n\t}", "@Deprecated\n\t@SuppressWarnings(\"fallthrough\")\n\tprotected void subFormat(final StringBuffer buf, final char ch, final int count, final int beginOffset, final int fieldNum,\n\t\t\tfinal DisplayContext capitalizationContext, final FieldPosition pos, final Calendar cal) {\n\n\t\tfinal int maxIntCount = Integer.MAX_VALUE;\n\t\tfinal int bufstart = buf.length();\n\t\tTimeZone tz = cal.getTimeZone();\n\t\tlong date = cal.getTimeInMillis();\n\t\tString result = null;\n\n\t\t// final int patternCharIndex = DateFormatSymbols.patternChars.indexOf(ch);\n\t\tint patternCharIndex = -1;\n\t\tif ('A' <= ch && ch <= 'z') {\n\t\t\tpatternCharIndex = PATTERN_CHAR_TO_INDEX[(int) ch - PATTERN_CHAR_BASE];\n\t\t}\n\n\t\tif (patternCharIndex == -1) {\n\t\t\tif (ch == 'l') { // (SMALL LETTER L) deprecated placeholder for leap month marker, ignore\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Illegal pattern character \" + \"'\" + ch + \"' in \\\"\" + pattern + '\"');\n\t\t\t}\n\t\t}\n\n\t\tfinal int field = PATTERN_INDEX_TO_CALENDAR_FIELD[patternCharIndex];\n\t\tint value = cal.get(field);\n\n\t\tNumberFormat currentNumberFormat = getNumberFormat(ch);\n\t\tDateFormatSymbols.CapitalizationContextUsage capContextUsageType = DateFormatSymbols.CapitalizationContextUsage.OTHER;\n\n\t\tswitch (patternCharIndex) {\n\t\tcase 0: // 'G' - ERA\n\t\t\tif (cal.getType().equals(\"chinese\")) {\n\t\t\t\t// moved from ChineseDateFormat\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, 1, 9);\n\t\t\t} else {\n\t\t\t\tif (count == 5) {\n\t\t\t\t\tsafeAppend(formatData.narrowEras, value, buf);\n\t\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.ERA_NARROW;\n\t\t\t\t} else if (count == 4) {\n\t\t\t\t\tsafeAppend(formatData.eraNames, value, buf);\n\t\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.ERA_WIDE;\n\t\t\t\t} else {\n\t\t\t\t\tsafeAppend(formatData.eras, value, buf);\n\t\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.ERA_ABBREV;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 30: // 'U' - YEAR_NAME_FIELD\n\t\t\tif (formatData.shortYearNames != null && value <= formatData.shortYearNames.length) {\n\t\t\t\tsafeAppend(formatData.shortYearNames, value - 1, buf);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// else fall through to numeric year handling, do not break here \n\t\tcase 1: // 'y' - YEAR\n\t\tcase 18: // 'Y' - YEAR_WOY\n\t\t\tif (override != null && (override.compareTo(\"hebr\") == 0 || override.indexOf(\"y=hebr\") >= 0)\n\t\t\t\t\t&& value > HEBREW_CAL_CUR_MILLENIUM_START_YEAR && value < HEBREW_CAL_CUR_MILLENIUM_END_YEAR) {\n\t\t\t\tvalue -= HEBREW_CAL_CUR_MILLENIUM_START_YEAR;\n\t\t\t}\n\t\t\t/* According to the specification, if the number of pattern letters ('y') is 2,\n\t\t\t * the year is truncated to 2 digits; otherwise it is interpreted as a number.\n\t\t\t * But the original code process 'y', 'yy', 'yyy' in the same way. and process\n\t\t\t * patterns with 4 or more than 4 'y' characters in the same way.\n\t\t\t * So I change the codes to meet the specification. [Richard/GCl]\n\t\t\t */\n\t\t\tif (count == 2) {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, 2, 2); // clip 1996 to 96\n\t\t\t} else { //count = 1 or count > 2\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, count, maxIntCount);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2: // 'M' - MONTH\n\t\tcase 26: // 'L' - STANDALONE MONTH\n\t\t\tif (cal.getType().equals(\"hebrew\")) {\n\t\t\t\tboolean isLeap = HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR));\n\t\t\t\tif (isLeap && value == 6 && count >= 3) {\n\t\t\t\t\tvalue = 13; // Show alternate form for Adar II in leap years in Hebrew calendar.\n\t\t\t\t}\n\t\t\t\tif (!isLeap && value >= 6 && count < 3) {\n\t\t\t\t\tvalue--; // Adjust the month number down 1 in Hebrew non-leap years, i.e. Adar is 6, not 7.\n\t\t\t\t}\n\t\t\t}\n\t\t\tint isLeapMonth = (formatData.leapMonthPatterns != null && formatData.leapMonthPatterns.length >= DateFormatSymbols.DT_MONTH_PATTERN_COUNT) ? cal\n\t\t\t\t\t.get(Calendar.IS_LEAP_MONTH) : 0;\n\t\t\t// should consolidate the next section by using arrays of pointers & counts for the right symbols...\n\t\t\tif (count == 5) {\n\t\t\t\tif (patternCharIndex == 2) {\n\t\t\t\t\tsafeAppendWithMonthPattern(formatData.narrowMonths, value, buf,\n\t\t\t\t\t\t\t(isLeapMonth != 0) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_FORMAT_NARROW] : null);\n\t\t\t\t} else {\n\t\t\t\t\tsafeAppendWithMonthPattern(formatData.standaloneNarrowMonths, value, buf,\n\t\t\t\t\t\t\t(isLeapMonth != 0) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_STANDALONE_NARROW]\n\t\t\t\t\t\t\t\t\t: null);\n\t\t\t\t}\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.MONTH_NARROW;\n\t\t\t} else if (count == 4) {\n\t\t\t\tif (patternCharIndex == 2) {\n\t\t\t\t\tsafeAppendWithMonthPattern(formatData.months, value, buf,\n\t\t\t\t\t\t\t(isLeapMonth != 0) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_FORMAT_WIDE] : null);\n\t\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.MONTH_FORMAT;\n\t\t\t\t} else {\n\t\t\t\t\tsafeAppendWithMonthPattern(formatData.standaloneMonths, value, buf,\n\t\t\t\t\t\t\t(isLeapMonth != 0) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_STANDALONE_WIDE]\n\t\t\t\t\t\t\t\t\t: null);\n\t\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.MONTH_STANDALONE;\n\t\t\t\t}\n\t\t\t} else if (count == 3) {\n\t\t\t\tif (patternCharIndex == 2) {\n\t\t\t\t\tsafeAppendWithMonthPattern(formatData.shortMonths, value, buf,\n\t\t\t\t\t\t\t(isLeapMonth != 0) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_FORMAT_ABBREV] : null);\n\t\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.MONTH_FORMAT;\n\t\t\t\t} else {\n\t\t\t\t\tsafeAppendWithMonthPattern(formatData.standaloneShortMonths, value, buf,\n\t\t\t\t\t\t\t(isLeapMonth != 0) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_STANDALONE_ABBREV]\n\t\t\t\t\t\t\t\t\t: null);\n\t\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.MONTH_STANDALONE;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tStringBuffer monthNumber = new StringBuffer();\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, monthNumber, value + 1, count, maxIntCount);\n\t\t\t\tString[] monthNumberStrings = new String[1];\n\t\t\t\tmonthNumberStrings[0] = monthNumber.toString();\n\t\t\t\tsafeAppendWithMonthPattern(monthNumberStrings, 0, buf,\n\t\t\t\t\t\t(isLeapMonth != 0) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_NUMERIC] : null);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 4: // 'k' - HOUR_OF_DAY (1..24)\n\t\t\tif (value == 0) {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, cal.getMaximum(Calendar.HOUR_OF_DAY) + 1, count, maxIntCount);\n\t\t\t} else {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, count, maxIntCount);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 8: // 'S' - FRACTIONAL_SECOND\n\t\t\t// Fractional seconds left-justify\n\t\t{\n\t\t\tnumberFormat.setMinimumIntegerDigits(Math.min(3, count));\n\t\t\tnumberFormat.setMaximumIntegerDigits(maxIntCount);\n\t\t\tif (count == 1) {\n\t\t\t\tvalue /= 100;\n\t\t\t} else if (count == 2) {\n\t\t\t\tvalue /= 10;\n\t\t\t}\n\t\t\tFieldPosition p = new FieldPosition(-1);\n\t\t\tnumberFormat.format((long) value, buf, p);\n\t\t\tif (count > 3) {\n\t\t\t\tnumberFormat.setMinimumIntegerDigits(count - 3);\n\t\t\t\tnumberFormat.format(0L, buf, p);\n\t\t\t}\n\t\t}\n\t\t\tbreak;\n\t\tcase 19: // 'e' - DOW_LOCAL (use DOW_LOCAL for numeric, DAY_OF_WEEK for format names)\n\t\t\tif (count < 3) {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, count, maxIntCount);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// For alpha day-of-week, we don't want DOW_LOCAL,\n\t\t\t// we need the standard DAY_OF_WEEK.\n\t\t\tvalue = cal.get(Calendar.DAY_OF_WEEK);\n\t\t\t// fall through, do not break here\n\t\tcase 9: // 'E' - DAY_OF_WEEK\n\t\t\tif (count == 5) {\n\t\t\t\tsafeAppend(formatData.narrowWeekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_NARROW;\n\t\t\t} else if (count == 4) {\n\t\t\t\tsafeAppend(formatData.weekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_FORMAT;\n\t\t\t} else if (count == 6 && formatData.shorterWeekdays != null) {\n\t\t\t\tsafeAppend(formatData.shorterWeekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_FORMAT;\n\t\t\t} else {// count <= 3, use abbreviated form if exists\n\t\t\t\tsafeAppend(formatData.shortWeekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_FORMAT;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 14: // 'a' - AM_PM\n\t\t\tsafeAppend(formatData.ampms, value, buf);\n\t\t\tbreak;\n\t\tcase 15: // 'h' - HOUR (1..12)\n\t\t\tif (value == 0) {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, cal.getLeastMaximum(Calendar.HOUR) + 1, count, maxIntCount);\n\t\t\t} else {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, count, maxIntCount);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 17: // 'z' - TIMEZONE_FIELD\n\t\t\tif (count < 4) {\n\t\t\t\t// \"z\", \"zz\", \"zzz\"\n\t\t\t\tresult = tzFormat().format(Style.SPECIFIC_SHORT, tz, date);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.METAZONE_SHORT;\n\t\t\t} else {\n\t\t\t\tresult = tzFormat().format(Style.SPECIFIC_LONG, tz, date);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.METAZONE_LONG;\n\t\t\t}\n\t\t\tbuf.append(result);\n\t\t\tbreak;\n\t\tcase 23: // 'Z' - TIMEZONE_RFC_FIELD\n\t\t\tif (count < 4) {\n\t\t\t\t// RFC822 format - equivalent to ISO 8601 local offset fixed width format\n\t\t\t\tresult = tzFormat().format(Style.ISO_BASIC_LOCAL_FULL, tz, date);\n\t\t\t} else if (count == 5) {\n\t\t\t\t// ISO 8601 extended format\n\t\t\t\tresult = tzFormat().format(Style.ISO_EXTENDED_FULL, tz, date);\n\t\t\t} else {\n\t\t\t\t// long form, localized GMT pattern\n\t\t\t\tresult = tzFormat().format(Style.LOCALIZED_GMT, tz, date);\n\t\t\t}\n\t\t\tbuf.append(result);\n\t\t\tbreak;\n\t\tcase 24: // 'v' - TIMEZONE_GENERIC_FIELD\n\t\t\tif (count == 1) {\n\t\t\t\t// \"v\"\n\t\t\t\tresult = tzFormat().format(Style.GENERIC_SHORT, tz, date);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.METAZONE_SHORT;\n\t\t\t} else if (count == 4) {\n\t\t\t\t// \"vvvv\"\n\t\t\t\tresult = tzFormat().format(Style.GENERIC_LONG, tz, date);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.METAZONE_LONG;\n\t\t\t}\n\t\t\tbuf.append(result);\n\t\t\tbreak;\n\t\tcase 29: // 'V' - TIMEZONE_SPECIAL_FIELD\n\t\t\tif (count == 1) {\n\t\t\t\t// \"V\"\n\t\t\t\tresult = tzFormat().format(Style.ZONE_ID_SHORT, tz, date);\n\t\t\t} else if (count == 2) {\n\t\t\t\t// \"VV\"\n\t\t\t\tresult = tzFormat().format(Style.ZONE_ID, tz, date);\n\t\t\t} else if (count == 3) {\n\t\t\t\t// \"VVV\"\n\t\t\t\tresult = tzFormat().format(Style.EXEMPLAR_LOCATION, tz, date);\n\t\t\t} else if (count == 4) {\n\t\t\t\t// \"VVVV\"\n\t\t\t\tresult = tzFormat().format(Style.GENERIC_LOCATION, tz, date);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.ZONE_LONG;\n\t\t\t}\n\t\t\tbuf.append(result);\n\t\t\tbreak;\n\t\tcase 31: // 'O' - TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD\n\t\t\tif (count == 1) {\n\t\t\t\t// \"O\" - Short Localized GMT format\n\t\t\t\tresult = tzFormat().format(Style.LOCALIZED_GMT_SHORT, tz, date);\n\t\t\t} else if (count == 4) {\n\t\t\t\t// \"OOOO\" - Localized GMT format\n\t\t\t\tresult = tzFormat().format(Style.LOCALIZED_GMT, tz, date);\n\t\t\t}\n\t\t\tbuf.append(result);\n\t\t\tbreak;\n\t\tcase 32: // 'X' - TIMEZONE_ISO_FIELD\n\t\t\tif (count == 1) {\n\t\t\t\t// \"X\" - ISO Basic/Short\n\t\t\t\tresult = tzFormat().format(Style.ISO_BASIC_SHORT, tz, date);\n\t\t\t} else if (count == 2) {\n\t\t\t\t// \"XX\" - ISO Basic/Fixed\n\t\t\t\tresult = tzFormat().format(Style.ISO_BASIC_FIXED, tz, date);\n\t\t\t} else if (count == 3) {\n\t\t\t\t// \"XXX\" - ISO Extended/Fixed\n\t\t\t\tresult = tzFormat().format(Style.ISO_EXTENDED_FIXED, tz, date);\n\t\t\t} else if (count == 4) {\n\t\t\t\t// \"XXXX\" - ISO Basic/Optional second field\n\t\t\t\tresult = tzFormat().format(Style.ISO_BASIC_FULL, tz, date);\n\t\t\t} else if (count == 5) {\n\t\t\t\t// \"XXXXX\" - ISO Extended/Optional second field\n\t\t\t\tresult = tzFormat().format(Style.ISO_EXTENDED_FULL, tz, date);\n\t\t\t}\n\t\t\tbuf.append(result);\n\t\t\tbreak;\n\t\tcase 33: // 'x' - TIMEZONE_ISO_LOCAL_FIELD\n\t\t\tif (count == 1) {\n\t\t\t\t// \"x\" - ISO Local Basic/Short\n\t\t\t\tresult = tzFormat().format(Style.ISO_BASIC_LOCAL_SHORT, tz, date);\n\t\t\t} else if (count == 2) {\n\t\t\t\t// \"x\" - ISO Local Basic/Fixed\n\t\t\t\tresult = tzFormat().format(Style.ISO_BASIC_LOCAL_FIXED, tz, date);\n\t\t\t} else if (count == 3) {\n\t\t\t\t// \"xxx\" - ISO Local Extended/Fixed\n\t\t\t\tresult = tzFormat().format(Style.ISO_EXTENDED_LOCAL_FIXED, tz, date);\n\t\t\t} else if (count == 4) {\n\t\t\t\t// \"xxxx\" - ISO Local Basic/Optional second field\n\t\t\t\tresult = tzFormat().format(Style.ISO_BASIC_LOCAL_FULL, tz, date);\n\t\t\t} else if (count == 5) {\n\t\t\t\t// \"xxxxx\" - ISO Local Extended/Optional second field\n\t\t\t\tresult = tzFormat().format(Style.ISO_EXTENDED_LOCAL_FULL, tz, date);\n\t\t\t}\n\t\t\tbuf.append(result);\n\t\t\tbreak;\n\n\t\tcase 25: // 'c' - STANDALONE DAY (use DOW_LOCAL for numeric, DAY_OF_WEEK for standalone)\n\t\t\tif (count < 3) {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, 1, maxIntCount);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// For alpha day-of-week, we don't want DOW_LOCAL,\n\t\t\t// we need the standard DAY_OF_WEEK.\n\t\t\tvalue = cal.get(Calendar.DAY_OF_WEEK);\n\t\t\tif (count == 5) {\n\t\t\t\tsafeAppend(formatData.standaloneNarrowWeekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_NARROW;\n\t\t\t} else if (count == 4) {\n\t\t\t\tsafeAppend(formatData.standaloneWeekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_STANDALONE;\n\t\t\t} else if (count == 6 && formatData.standaloneShorterWeekdays != null) {\n\t\t\t\tsafeAppend(formatData.standaloneShorterWeekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_STANDALONE;\n\t\t\t} else { // count == 3\n\t\t\t\tsafeAppend(formatData.standaloneShortWeekdays, value, buf);\n\t\t\t\tcapContextUsageType = DateFormatSymbols.CapitalizationContextUsage.DAY_STANDALONE;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 27: // 'Q' - QUARTER\n\t\t\tif (count >= 4) {\n\t\t\t\tsafeAppend(formatData.quarters, value / 3, buf);\n\t\t\t} else if (count == 3) {\n\t\t\t\tsafeAppend(formatData.shortQuarters, value / 3, buf);\n\t\t\t} else {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, (value / 3) + 1, count, maxIntCount);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 28: // 'q' - STANDALONE QUARTER\n\t\t\tif (count >= 4) {\n\t\t\t\tsafeAppend(formatData.standaloneQuarters, value / 3, buf);\n\t\t\t} else if (count == 3) {\n\t\t\t\tsafeAppend(formatData.standaloneShortQuarters, value / 3, buf);\n\t\t\t} else {\n\t\t\t\tzeroPaddingNumber(currentNumberFormat, buf, (value / 3) + 1, count, maxIntCount);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// case 3: // 'd' - DATE\n\t\t\t// case 5: // 'H' - HOUR_OF_DAY (0..23)\n\t\t\t// case 6: // 'm' - MINUTE\n\t\t\t// case 7: // 's' - SECOND\n\t\t\t// case 10: // 'D' - DAY_OF_YEAR\n\t\t\t// case 11: // 'F' - DAY_OF_WEEK_IN_MONTH\n\t\t\t// case 12: // 'w' - WEEK_OF_YEAR\n\t\t\t// case 13: // 'W' - WEEK_OF_MONTH\n\t\t\t// case 16: // 'K' - HOUR (0..11)\n\t\t\t// case 20: // 'u' - EXTENDED_YEAR\n\t\t\t// case 21: // 'g' - JULIAN_DAY\n\t\t\t// case 22: // 'A' - MILLISECONDS_IN_DAY\n\n\t\t\tzeroPaddingNumber(currentNumberFormat, buf, value, count, maxIntCount);\n\t\t\tbreak;\n\t\t} // switch (patternCharIndex)\n\n\t\tif (fieldNum == 0) {\n\t\t\tboolean titlecase = false;\n\t\t\tif (capitalizationContext != null) {\n\t\t\t\tswitch (capitalizationContext) {\n\t\t\t\tcase CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE:\n\t\t\t\t\ttitlecase = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CAPITALIZATION_FOR_UI_LIST_OR_MENU:\n\t\t\t\tcase CAPITALIZATION_FOR_STANDALONE:\n\t\t\t\t\tif (formatData.capitalization != null) {\n\t\t\t\t\t\tboolean[] transforms = formatData.capitalization.get(capContextUsageType);\n\t\t\t\t\t\ttitlecase = (capitalizationContext == DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU) ? transforms[0]\n\t\t\t\t\t\t\t\t: transforms[1];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (titlecase) {\n\t\t\t\tString firstField = buf.substring(bufstart); // bufstart or beginOffset, should be the same\n\t\t\t\tString firstFieldTitleCase = UCharacter.toTitleCase(locale, firstField, null, UCharacter.TITLECASE_NO_LOWERCASE\n\t\t\t\t\t\t| UCharacter.TITLECASE_NO_BREAK_ADJUSTMENT);\n\t\t\t\tbuf.replace(bufstart, buf.length(), firstFieldTitleCase);\n\t\t\t}\n\t\t}\n\n\t\t// Set the FieldPosition (for the first occurrence only)\n\t\tif (pos.getBeginIndex() == pos.getEndIndex()) {\n\t\t\tif (pos.getField() == PATTERN_INDEX_TO_DATE_FORMAT_FIELD[patternCharIndex]) {\n\t\t\t\tpos.setBeginIndex(beginOffset);\n\t\t\t\tpos.setEndIndex(beginOffset + buf.length() - bufstart);\n\t\t\t} else if (pos.getFieldAttribute() == PATTERN_INDEX_TO_DATE_FORMAT_ATTRIBUTE[patternCharIndex]) {\n\t\t\t\tpos.setBeginIndex(beginOffset);\n\t\t\t\tpos.setEndIndex(beginOffset + buf.length() - bufstart);\n\t\t\t}\n\t\t}\n\t}", "public Timestamp convertZDT(ZonedDateTime zdt){\n return Timestamp.valueOf(zdt.withZoneSameInstant(ZoneOffset.UTC).toLocalDateTime());\n }", "public void setPzwhyxq(Date pzwhyxq) {\n this.pzwhyxq = pzwhyxq;\n }", "public String changeDateTimeFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy hh:mm a\";\n String outputPattern = \"MMMM dd, yyyy hh:mm a\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "public final Field zzf() {\n int i = (this.zzaa << 1) + 1;\n Object obj = this.zzb[i];\n if (obj instanceof Field) {\n return (Field) obj;\n }\n Field zza2 = zza(this.zzc, (String) obj);\n this.zzb[i] = zza2;\n return zza2;\n }", "public void setDateFormat(String dateFormatString) {\n dateFormat = new SimpleDateFormat(dateFormatString);\n }", "public void setTimeZone(Integer timeZone) {\n this.timeZone = timeZone;\n }", "public String getDateTime(Calendar cal, int GMT_OFFSET_SECONDS, String DATE_TIME_FORMAT) throws Exception {\n\n String sRetVal = \"\";\n String DefaultFormat = \"yyyyMMddHHmmss\";\n int GMT_OFFSET_DIFF = 0;\n try {\n\n //check for valid Calender values\n if (cal == null) {\n cal = Calendar.getInstance();\n }\n\n //check for valid FORMAT values\n if (DATE_TIME_FORMAT == null) {\n DATE_TIME_FORMAT = DefaultFormat;\n }\n if (DATE_TIME_FORMAT.trim().toUpperCase().equalsIgnoreCase(\"\")) {\n DATE_TIME_FORMAT = DefaultFormat;\n }\n\n //check GMT RAW OFF SET difference\n int CURR_GMT_OFFSET = TimeZone.getDefault().getRawOffset() / 1000;\n //in case Current GMT is GREATER THAN provided GMT\n if (CURR_GMT_OFFSET > GMT_OFFSET_SECONDS && GMT_OFFSET_SECONDS != 0) {\n if (GMT_OFFSET_SECONDS < 0) {\n GMT_OFFSET_DIFF = GMT_OFFSET_SECONDS - CURR_GMT_OFFSET;\n } else {\n GMT_OFFSET_DIFF = GMT_OFFSET_SECONDS - CURR_GMT_OFFSET;\n }\n\n //in case Current GMT is SMALLER THAN provided GMT\n } else if (CURR_GMT_OFFSET < GMT_OFFSET_SECONDS && GMT_OFFSET_SECONDS != 0) {\n if (GMT_OFFSET_SECONDS < 0) {\n GMT_OFFSET_DIFF = GMT_OFFSET_SECONDS - CURR_GMT_OFFSET;\n } else {\n GMT_OFFSET_DIFF = GMT_OFFSET_SECONDS - CURR_GMT_OFFSET;\n }\n }\n\n if (CURR_GMT_OFFSET == GMT_OFFSET_SECONDS) {\n GMT_OFFSET_DIFF = 0;\n }\n\n //setting calender datetime as per GMT\n cal.add(Calendar.SECOND, GMT_OFFSET_DIFF);\n\n //using SimpleDateFormat class\n sRetVal = new SimpleDateFormat(DATE_TIME_FORMAT).format(cal.getTime());\n return sRetVal;\n\n } catch (Exception e) {\n println(\"getDateTime : \" + GMT_OFFSET_SECONDS + \" : \" + e.toString());\n throw new Exception(\"getDateTime : \" + GMT_OFFSET_SECONDS + \" : \" + e.toString());\n } finally {\n }\n\n }", "public synchronized static DateFormat getTimeZoneDateTimeFormat()\n\t{\n\t\treturn TIME_ZONE_DATE_TIME_FORMAT;\n\t}", "@Override\n public DateFormat getDateFormat(Integer optionalDateStyle, Integer optionalTimeStyle, Locale locale, boolean currentUserTimezone) {\n return null;\n }", "public final void zza(zzk zzk, zzk zzk2) {\n zzhwj.putObject(zzk, zzhwo, zzk2);\n }", "private static Date parseTimestampWithSecondsWithTimeZone(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n if(!containsT && containsSpace){\r\n try {\r\n Date date = formatSecsTZ.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace){\r\n try {\r\n Date date = formatSecsTZwT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "private String dateFormat(String date) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.ENGLISH);\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date serverDate = null;\n String formattedDate = null;\n try {\n serverDate = df.parse(date);\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"MMM dd yyyy, hh:mm\");\n\n outputFormat.setTimeZone(TimeZone.getDefault());\n\n formattedDate = outputFormat.format(serverDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return formattedDate;\n }", "public void setDateFormat(String format) {\n dateFormat = format;\n constructVssDateTimeFormat();\n }", "public final /* synthetic */ void zza(Api.zzb zzb) throws RemoteException {\n ((GamesClientImpl) zzb).zzf(this);\n }", "public static String getJavaDateFormat(String sDateformat)\r\n\t{\r\n\t\tString jDateFormat = null;\r\n\t\tDateFormatConfig dateFormat = null;\r\n\t\tdateFormat = getDateFormat(sDateformat);\r\n\t\tjDateFormat = dateFormat.getJavaDateFormat();\r\n\t\treturn jDateFormat;\r\n\r\n\t}", "public boolean isLocalDstDate(JwTimestamp ts)\n {\n return false;\n }", "public static void dateFormat() {\n }", "public void zzf(ConnectionResult connectionResult) {\n zzasu();\n zzbr(!connectionResult.hasResolution());\n this.f600zA.zzh(connectionResult);\n this.f600zA.f675AC.zzc(connectionResult);\n }", "public String convertToLocalTime(Calendar eventDate, String timezone) throws ParseException;", "public final zzdym zzf(byte[] bArr, int i) {\n return new zzdxj(bArr, i);\n }", "void addHasZCoordinate(Object newHasZCoordinate);", "public Day(TimeZone tz, Date date)\n\t{\n\t\tCalendar cal = Calendar.getInstance(tz, Locale.US);\n\t\tcal.setTime(date);\n\t\tthis.year = cal.get(Calendar.YEAR);\n\t\tthis.month = cal.get(Calendar.MONTH)+1;\n\t\tthis.day = cal.get(Calendar.DAY_OF_MONTH);\n\t}", "protected void reflectFormalizedDatetimeToDto(Member entity, MemberDto dto) {\r\n dto.setFormalizedDatetime(extractFormalizedDatetimeFromEntity(entity));\r\n }", "public String format (Date date , String dateFormat) ;", "public void setZhxgsj(LocalDateTime zhxgsj) {\n this.zhxgsj = zhxgsj;\n }", "private SimpleDateFormat(final String pattern, final DateFormatSymbols formatData, final Calendar calendar,\n\t\t\tfinal NumberFormat numberFormat, final ULocale locale, final boolean useFastFormat, final String override) {\n\t\tthis.pattern = pattern;\n\t\tthis.formatData = formatData;\n\t\tthis.calendar = calendar;\n\t\tthis.numberFormat = numberFormat;\n\t\tthis.locale = locale; // time zone formatting\n\t\tthis.useFastFormat = useFastFormat;\n\t\tthis.override = override;\n\t\tinitialize();\n\t}", "void mo28717a(zzc zzc);", "public void convertDateTimeFromUTCtoPlaceTimeZone(BookingDto bookingDto) {\n\t\tPlaceDto portOfLoad = bookingDto.getPortOfLoad();\r\n\t\tif (portOfLoad != null && portOfLoad.getCity() != null) {\r\n\t\t\tString timeZonePortOfLoad = portOfLoad.getCity().getTimeZone();\r\n\t\t\tif (timeZonePortOfLoad != null && !timeZonePortOfLoad.isEmpty()) {\r\n\t\t\t\tbookingDto.setPortCutOffDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getPortCutOffDate(), timeZonePortOfLoad));\r\n\t\t\t\tbookingDto.setDocsCutOffDateTime(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getDocsCutOffDateTime(), timeZonePortOfLoad));\r\n\t\t\t\tbookingDto.setSailDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getSailDate(), timeZonePortOfLoad));\r\n\t\t\t\tbookingDto.setDocsReceivedDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getDocsReceivedDate(), timeZonePortOfLoad));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto portOfDischarge = bookingDto.getPortOfDischarge();\r\n\t\tif (portOfDischarge != null && portOfDischarge.getCity() != null) {\r\n\t\t\tString tzPortOfDischarge = portOfDischarge.getCity().getTimeZone();\r\n\t\t\tif (tzPortOfDischarge != null && !tzPortOfDischarge.isEmpty()) {\r\n\t\t\t\tbookingDto.setEta(dateUtil.convertDateToSpecificTimeZone(bookingDto.getEta(), tzPortOfDischarge));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto emptyPickupDepot = bookingDto.getEmptyContainerPickup();\r\n\t\tif (emptyPickupDepot != null && emptyPickupDepot.getCity() != null) {\r\n\t\t\tString tzEmptyPickupDepot = emptyPickupDepot.getCity().getTimeZone();\r\n\t\t\tif (tzEmptyPickupDepot != null && !tzEmptyPickupDepot.isEmpty()) {\r\n\t\t\t\tbookingDto.setEmptyPickupDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getEmptyPickupDate(), tzEmptyPickupDepot));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto ingateTerminal = bookingDto.getIngateAtTerminal();\r\n\t\tif (ingateTerminal != null && ingateTerminal.getCity() != null) {\r\n\t\t\tString tzIngateTerminal = ingateTerminal.getCity().getTimeZone();\r\n\t\t\tif (tzIngateTerminal != null && !tzIngateTerminal.isEmpty()) {\r\n\t\t\t\tbookingDto.setEarlyReceivingDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getEarlyReceivingDate(), tzIngateTerminal));\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlaceDto placeOfReceipt = bookingDto.getPlaceOfReceipt();\r\n\t\tif (placeOfReceipt != null && placeOfReceipt.getCity() != null) {\r\n\t\t\tString tzPlaceOfReceipt = placeOfReceipt.getCity().getTimeZone();\r\n\t\t\tif (tzPlaceOfReceipt != null && !tzPlaceOfReceipt.isEmpty()) {\r\n\t\t\t\tbookingDto.setCargoMovingDate(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getCargoMovingDate(), tzPlaceOfReceipt));\r\n\t\t\t\tbookingDto.setRailCutOffDateTime(\r\n\t\t\t\t\t\tdateUtil.convertDateToSpecificTimeZone(bookingDto.getRailCutOffDateTime(), tzPlaceOfReceipt));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@JsMethod(namespace = \"tz\")\n public static native String offset(double timestamp);", "public Date getMidDay(TimeZone tz, int hr, int min, int sec)\n\t{\n\t\tCalendar cal = Calendar.getInstance(tz, Locale.US);\n\t\tcal.set(this.year, this.month-1, this.day, hr, min, sec);\n\t\tcal.set(Calendar.MILLISECOND, 0);\n\t\treturn cal.getTime();\n\t}" ]
[ "0.57140446", "0.5567535", "0.5458987", "0.52224404", "0.5130011", "0.51218563", "0.50483984", "0.4997565", "0.4988597", "0.49778304", "0.49358797", "0.49106726", "0.4879166", "0.487044", "0.4864493", "0.47923383", "0.47885254", "0.47556457", "0.47294578", "0.4705799", "0.47044218", "0.46869272", "0.46676254", "0.46635655", "0.46507654", "0.46309757", "0.4622512", "0.46015587", "0.45963022", "0.45878598", "0.4577969", "0.45778504", "0.45713234", "0.45413196", "0.4539276", "0.45108396", "0.45059875", "0.45011982", "0.44922912", "0.44907945", "0.44802916", "0.44732386", "0.44582877", "0.44572577", "0.44553244", "0.44536975", "0.44515738", "0.44147694", "0.44099557", "0.4401531", "0.43944606", "0.43792844", "0.43751016", "0.43706608", "0.43655136", "0.43643662", "0.4360592", "0.43528625", "0.43393144", "0.43275684", "0.43266812", "0.42783552", "0.42721617", "0.426849", "0.42645106", "0.4260914", "0.42607075", "0.4252569", "0.42477557", "0.42428955", "0.423775", "0.42343256", "0.423294", "0.42284662", "0.42240536", "0.42217278", "0.4214529", "0.42064703", "0.42053", "0.42049423", "0.42028892", "0.41943708", "0.41923583", "0.4187104", "0.41804144", "0.41769177", "0.417255", "0.41659334", "0.41658676", "0.41636685", "0.41556266", "0.41514885", "0.4137706", "0.4128432", "0.41277763", "0.41275775", "0.41263467", "0.41143733", "0.410909", "0.41073924" ]
0.6475592
0
TODO Autogenerated method stub
public static void main(String[] args) { int a, b, c; Scanner S1 = new Scanner(System.in); System.out.println("Enter the value of A:"); a = S1.nextInt(); System.out.println("Enter the value of B:"); b = S1.nextInt(); System.out.println("Enter the value of c:"); c = S1.nextInt(); if (a > b && a > c) { System.out.println("A is greater."); } else if (b > a && b > c) { System.out.println("B is greater:"); } else { System.out.println("C is greater."); } }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Initialize this behaviour component, binding class behaviour.
public void init() { this.onContentPropertyUpdate = new JavaBehaviour(this, "onContentPropertyUpdate", Behaviour.NotificationFrequency.TRANSACTION_COMMIT); this.beforeDeleteNode = new JavaBehaviour(this, "beforeDeleteNode", Behaviour.NotificationFrequency.FIRST_EVENT); this.onMoveNode = new JavaBehaviour(this, "onMoveNode", Behaviour.NotificationFrequency.TRANSACTION_COMMIT); this.onAddAspect = new JavaBehaviour(this, "onAddAspect", Behaviour.NotificationFrequency.TRANSACTION_COMMIT); this.policyComponent.bindClassBehaviour( ContentServicePolicies.OnContentPropertyUpdatePolicy.QNAME, QName.createQName( NamespaceService.CONTENT_MODEL_1_0_URI, "content"), this.onContentPropertyUpdate); this.policyComponent.bindClassBehaviour( NodeServicePolicies.BeforeDeleteNodePolicy.QNAME, QName.createQName( NamespaceService.CONTENT_MODEL_1_0_URI, "cmobject"), this.beforeDeleteNode); this.policyComponent.bindClassBehaviour( NodeServicePolicies.OnMoveNodePolicy.QNAME, QName.createQName( NamespaceService.CONTENT_MODEL_1_0_URI, "cmobject"), this.onMoveNode); this.policyComponent.bindClassBehaviour( NodeServicePolicies.OnAddAspectPolicy.QNAME, FolderQuotaConstants.ASPECT_FQ_QUOTA, this.onAddAspect); //set up transaction listener to run code after transaction this.transactionListener = new FolderSizeTransactionListener(); logger.info("[FolderQuota] - Bound FolderQuotaBehaviour"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "public void init()\n {\n policyComponent.bindClassBehaviour(NodeServicePolicies.OnUpdatePropertiesPolicy.QNAME,\n WebSiteModel.TYPE_WEB_SITE, new JavaBehaviour(this, \"onUpdatePropertiesEveryEvent\"));\n }", "@Override\r\n public void initComponent() {\n }", "private void initcomponent() {\n\r\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "private void init() {\n listeners = new PropertyChangeSupport(this);\n }", "public void init() {\n \n }", "@Override\n public void init() {\n }", "void initializeImpl() {\n // note that these methods can be overridden by the user and\n // can return some strange values like null.\n setBackground(target.getBackground());\n setForeground(target.getForeground());\n setFont(target.getFont());\n setBounds(target.getBounds());\n setEnabled(target.isEnabled());\n }", "@Override\n public void init() {}", "public AndroidModelParameterManager(IInstantiationBehavior behaviour) {\n this.behaviour = behaviour;\n this.description = \" based on behaviours of \" + behaviour;\n// this.forMethod = null; // XXX\n }", "@Override\r\n\tpublic void init() {}", "public BehaviourFactoryImpl() {\n\t\tsuper();\n\t}", "@OnInit\n public void init() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n public void initComponent() {\n ActionManager am = ActionManager.getInstance();\n }", "@Override\n public void activate() {\n init();\n }", "public BindingConfigurationPanel() {\n initComponents();\n initGUI();\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void init() {\n }", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void autonomousInit() {\n \n }", "@Override\n public void initialize() {\n \n }", "public void init(){\n \n }", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public void initialize()\n {\n }", "public Behavior() \r\n\t{ \r\n\t\tm_influence = 0; \r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n public void robotInit() {\r\n // Instantiate our RobotContainer. This will perform all our button bindings\r\n robotContainer = new RobotContainer();\r\n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "protected abstract ActivityComponent setupComponent();", "@Override\n void init() {\n }", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "@Override\n\tpublic void init() {\n\t}", "protected void init() {\n }", "private void init() {\n initView();\n setListener();\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "public Component() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "@Override\n public void initialize() {\n\n }", "@Override\n public void initialize() {\n\n }", "public Interaction() {\n }", "public final void initialize() {\n platformComponent.initialize(getPlatformWindow());\n initializeImpl();\n setVisible(target.isVisible());\n }", "public void init() {\n\t\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t}", "@Override\n public void initialize() {\n }", "protected void init(){\n }", "protected void initialize() {\n\t\tRobot.motor.getPIDController().setPID(SmartDashboard.getDouble(\"MotorP\"), SmartDashboard.getDouble(\"MotorI\"), SmartDashboard.getDouble(\"MotorD\"));\n\t\tRobot.motor.setOutputRange(0, 1);\n\t\tRobot.motor.setSetpoint(SmartDashboard.getDouble(\"MotorSpeed\"));\n \tRobot.motor.enable();\n }", "public void init() { }", "public void init() { }", "protected void initialize() {\n \t\n }", "@Override\n public void init() {\n\n }" ]
[ "0.6560591", "0.6560591", "0.6498756", "0.6487901", "0.6269344", "0.6229981", "0.6087703", "0.607612", "0.6069175", "0.6046107", "0.60458535", "0.60410565", "0.6033309", "0.6009467", "0.5999834", "0.59964305", "0.59889585", "0.5976972", "0.59694624", "0.5967238", "0.5941303", "0.5941303", "0.5941303", "0.59399503", "0.59399503", "0.59392774", "0.5935202", "0.59303594", "0.59251076", "0.59226245", "0.59199566", "0.5919851", "0.59089494", "0.5908239", "0.5908239", "0.5906011", "0.5899441", "0.5897116", "0.5895465", "0.589297", "0.589297", "0.589297", "0.5888046", "0.58879554", "0.5881702", "0.58814526", "0.5865522", "0.5865522", "0.58574605", "0.58564585", "0.58539116", "0.58497274", "0.58424836", "0.58424836", "0.58424836", "0.58424836", "0.58424836", "0.58424836", "0.58424836", "0.58424836", "0.58424836", "0.58424836", "0.5842449", "0.5836812", "0.5836812", "0.5836812", "0.5836812", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5831068", "0.5818936", "0.5818936", "0.581341", "0.5812569", "0.58076304", "0.580722", "0.580722", "0.580722", "0.5806779", "0.5806449", "0.5805788", "0.58037126", "0.5802467", "0.5802467", "0.5800549", "0.57989454" ]
0.0
-1
ContentPropertyUpdate fails on actual updates. When an update (upload new version) comes through, the parent node quota check fails.
public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) { //if the change size will push the folder over quota, roll back the current transaction final UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction(); AuthenticationUtil.runAsSystem(new RunAsWork<Object>() { @Override public Object doWork() throws Exception { logger.debug("[FolderQuota] - onContentPropertyUpdate"); long change = 0; //beforeValue can be null on new item creation if(beforeValue == null) change = afterValue.getSize(); else change = afterValue.getSize() - beforeValue.getSize(); NodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef); if(change > 0) { if(quotaParent != null) { NodeService nodeService = serviceRegistry.getNodeService(); Long quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA); Long currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT); //quotaSize can be null if the aspect has been added but the quota has not yet been set if(quotaSize != null) { if(currentSize + change > quotaSize) { try { tx.rollback(); } catch(SystemException ex) { logger.warn(String.format("[FolderQuota] - An upload to folder %s failed due to quota", quotaParent)); } } else { //queue.enqueueEvent(quotaParent, change); updateSize(quotaParent, change); logger.debug(String.format("[FolderQuota] - Added nodeRef %s to the queue; size change %s", nodeRef, change)); } } else { logger.warn(String.format("[FolderQuota] - Folder %s has the quota aspect added but no quota set", quotaParent)); } } } return null; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean canUpdate()\n {\n return cacheable.getParentNode() != null && cacheable.getPropertyBoolean(PROPERTY_DIRTY);\n }", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "@Override\r\n\tprotected void checkUpdate(Fingerprint entity) throws BusinessException {\n\t}", "@Override\r\n\tpublic void validateUpdate() throws Exception {\n\r\n\t}", "@Override\n\tpublic void updateEntity()\n\t{\n\t\tif (structureComplete() && checkCountdown >= CHECK_MAX)\n\t\t{\n\t\t\tcheckCountdown = 0;\n\t\t\t\n\t\t\t// Refresh the core structure.\n\t\t\tupdateStructure();\n\t\t}\n\t\telse checkCountdown++;\n\t}", "@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n public void errorOnUpdate(String buxError) {\n }", "@Override\n\tpublic int update(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundXml() throws Exception {\n\t}", "void updateSize() {\n setMeAndMyParentsAsDirty();\n }", "DefinedProperty nodeChangeProperty( long nodeId, int propertyKey, Object value );", "public void attemptToUpdate();", "private void checkValidTree(Node node) {\n node.walk(store::updateObject);\n assertTrue(service.validateTree(node));\n }", "@Test\n public void testCounterProducingTooLargeValueFails() {\n DocumentFragment<Long> delta = DocumentFragment.create(key, \"int\", Long.MAX_VALUE - 123L);\n\n //first increment should work\n DocumentFragment<Long> result = ctx.bucket().counterIn(delta, false, PersistTo.NONE, ReplicateTo.NONE);\n assertNotNull(result);\n assertEquals(Long.MAX_VALUE, result.fragment().longValue());\n\n //second increment should fail\n try {\n result = ctx.bucket().counterIn(delta, false, PersistTo.NONE, ReplicateTo.NONE);\n fail(\"second counter increment should have made the counter value too big\");\n } catch (DeltaTooBigException e) {\n //success\n }\n }", "@Override\n\tpublic void checkUpdateClient() {\n\t}", "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "@Test\n public void shouldMarkNonTransientReplicasWithWrongSizeAsBroken()\n throws Exception\n {\n givenStoreHasFileOfSize(PNFSID, 17);\n\n // and given the meta data indicates a different size, but is\n // otherwise in a valid non-transient state\n StorageInfo info = createStorageInfo(20);\n givenMetaDataStoreHas(PNFSID, CACHED, info);\n\n // and given that the name space provides the same storage info\n given(_pnfs.getFileAttributes(eq(PNFSID), Mockito.anySet()))\n .willReturn(fileAttributes(PNFSID, info));\n\n // when reading the meta data record\n MetaDataRecord record = _consistentStore.get(PNFSID);\n\n // then the replica is marked broken\n assertThat(record.getState(), is(EntryState.BROKEN));\n\n // and the storage info size is unaltered\n assertThat(record.getFileAttributes().getSize(), is(20L));\n\n // and no attributes are updated in the name space\n verify(_pnfs, never())\n .setFileAttributes(eq(PNFSID), Mockito.any(FileAttributes.class));\n verify(_pnfs, never())\n .clearCacheLocation(PNFSID);\n }", "@Override\n public void forceIncrementModificationCounter(SideDishEntity entity) {\n\n }", "@SmallTest\n public void testUpdate() {\n int result = -1;\n if (this.entity != null) {\n Settings settings = SettingsUtils.generateRandom(this.ctx);\n settings.setId(this.entity.getId());\n\n result = (int) this.adapter.update(settings);\n\n Assert.assertTrue(result >= 0);\n }\n }", "@Override\n\tpublic int update(Subordination entity) throws DBOperationException {\n\t\treturn 0;\n\t}", "DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );", "@Override\r\n public boolean hasContentModified(ContainerUser context)\r\n {\n return hasDescriptorPropertyChanged(ReportDescriptor.Prop.json.name());\r\n }", "public void defaultUpdateCount(AcProperty e)\n {\n }", "@Override\n\tpublic int update(TestPoEntity entity) {\n\t\treturn 0;\n\t}", "void updateIfNeeded()\n throws Exception;", "private static boolean checkIfToUpdateAfterCreateFailed(LocalRegion rgn, EntryEventImpl ev) {\n boolean doUpdate = true;\n if (ev.oldValueIsDestroyedToken()) {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n doUpdate = false;\n }\n if (ev.isConcurrencyConflict()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"basicUpdate failed with CME, not to retry:\" + ev);\n }\n doUpdate = false;\n }\n return doUpdate;\n }", "@Override\n public void update() throws UpdateException {\n try {\n final StandardUpdate task = new StandardUpdate();\n if (task.isUpdateNeeded()) {\n task.update();\n }\n } catch (MalformedURLException ex) {\n LOGGER.log(Level.WARNING,\n \"NVD CVE properties files contain an invalid URL, unable to update the data to use the most current data.\");\n LOGGER.log(Level.FINE, null, ex);\n } catch (DownloadFailedException ex) {\n LOGGER.log(Level.WARNING,\n \"Unable to download the NVD CVE data; the results may not include the most recent CPE/CVEs from the NVD.\");\n if (Settings.getString(Settings.KEYS.PROXY_SERVER) == null) {\n LOGGER.log(Level.INFO,\n \"If you are behind a proxy you may need to configure dependency-check to use the proxy.\");\n }\n LOGGER.log(Level.FINE, null, ex);\n }\n }", "@Test\n public void shouldMarkMissingEntriesWithWrongSizeAsBroken()\n throws Exception\n {\n givenStoreHasFileOfSize(PNFSID, 17);\n\n // and given the name space entry reports a different size\n StorageInfo info = createStorageInfo(20);\n given(_pnfs.getFileAttributes(eq(PNFSID), Mockito.anySet()))\n .willReturn(fileAttributes(PNFSID, info));\n\n // when reading the meta data record\n MetaDataRecord record = _consistentStore.get(PNFSID);\n\n // then the replica is marked broken\n assertThat(record.getState(), is(EntryState.BROKEN));\n\n // and the name space entry is untouched\n verify(_pnfs, never())\n .setFileAttributes(eq(PNFSID), Mockito.any(FileAttributes.class));\n }", "protected void updateValidity(){}", "@Test\r\n public void test_OUM_UPOU_3_2() throws Exception {\r\n\r\n Class<OptimisticLockingException> ec = OptimisticLockingException.class;\r\n final String createdXml = createSuccessfully(\"escidoc_ou_create.xml\");\r\n final String id = getObjidValue(createdXml);\r\n final String toBeUpdatedXml = retrieveParents(id);\r\n\r\n final Document toBeUpdatedDocument =\r\n (Document) substitute(getDocument(toBeUpdatedXml), XPATH_PARENTS + \"/\" + PART_LAST_MODIFICATION_DATE,\r\n getNowAsTimestamp());\r\n\r\n try {\r\n updateParentOus(id, toString(toBeUpdatedDocument, false));\r\n failMissingException(\"No exception occured on update with wrong time stamp.\", ec);\r\n }\r\n catch (final Exception e) {\r\n assertExceptionType(ec, e);\r\n }\r\n }", "ManagementLockObject.Update update();", "@DISPID(-2147412091)\n @PropGet\n java.lang.Object onbeforeupdate();", "private void ensureChangesAllowed() {\n if (lifecycle.started() == false) {\n throw new IllegalStateException(\"Can't make changes to indices service, node is closed\");\n }\n }", "public void checkWriteLock() {\n checkNotDeleted();\n super.checkWriteLock();\n }", "public void beforeDeleteNode(NodeRef deleted) {\n\t\t\n logger.debug(\"[FolderQuota] - beforeDeleteNode\");\n \n NodeRef quotaParent = usage.getParentFolderWithQuota(deleted);\n \n \tif(quotaParent != null)\n \t{\n \t\tLong size = usage.getChangeSize(deleted);\n \t\tupdateSize(quotaParent, size * -1);\n\t\t\t//queue.enqueueEvent(quotaParent, size * -1);\n \t}\t\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void updateValuesSizeException() {\n\n\t\tset.updateValues(new float[] {1f, 2f});\n\t}", "@Override\n\tprotected List<Message> validateUpdate(SecUser entity) {\n\t\treturn null;\n\t}", "public ItemNotAvailableForUpdateException() {\r\n\t\tsuper();\r\n\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectWrongIdXml() throws Exception {\n\t}", "public void updateCacheForParent(CanopyCrum childCrum, CanopyCrum parentCrum) {\n\tif (myCachedPath.hasMember(childCrum)) {\n\t\tmyCachedPath.store(parentCrum);\n\t\tif ((myCachedRoot) == childCrum) {\n\t\t\tmyCachedRoot = parentCrum;\n\t\t}\n\t}\n/*\nudanax-top.st:13149:CanopyCache methodsFor: 'operations'!\n{void} updateCache: childCrum {CanopyCrum} forParent: parentCrum {CanopyCrum} \n\t\"If the cache contains childCrum it must be made \n\tto contain childCrum's new parent: parentCrum. \n\tAlso update CachedRoot.\" \n\t(myCachedPath hasMember: childCrum) ifTrue: \n\t\t[myCachedPath store: parentCrum.\n\t\t (myCachedRoot basicCast: Heaper star) == childCrum \n\t\t\tifTrue: [myCachedRoot _ parentCrum]]!\n*/\n}", "@Test(description = \"negative test for interface update to check if removing of parent does not work\")\n public void exceptionUpdateRemovingParent()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final InterfaceData parent1 = data.getInterface(\"TestInterfaceParent1\");\n final InterfaceData parent2 = data.getInterface(\"TestInterfaceParent2\");\n final InterfaceData inter = data.getInterface(\"TestInterface\")\n .addParent(parent1)\n .addParent(parent2);\n data.create();\n\n inter.removeParents()\n .addParent(parent1);\n\n this.updateFailure(inter, UpdateException_mxJPO.Error.DM_INTERFACE_UPDATE_REMOVING_PARENT);\n }", "private void checkValidity() throws FileSystemException {\n\t\tif ( invalidated || cachedCurrentDirectory == null ) {\n\t\t\t\n\t\t\tfillCache();\n\t\t\tinvalidated = false;\n\t\t} \n\t\t\n\t}", "public void onMoveNode(ChildAssociationRef before, ChildAssociationRef after) {\n logger.debug(\"[FolderQuota] - onMoveNode\");\n NodeRef quotaParentBefore = usage.getParentFolderWithQuota(before.getParentRef());\n NodeRef quotaParentAfter = usage.getParentFolderWithQuota(after.getParentRef());\n long change = 0L;\n \n //only calculate the change size once, if either the before or after parent have a quota.\n if(quotaParentBefore != null || quotaParentAfter != null)\n {\n \tchange = usage.getChangeSize(before.getChildRef());\n }\n \n \tif(quotaParentBefore != null)\n \t{\n \t\t//queue.enqueueEvent(quotaParentBefore, change * -1);\n \t\tupdateSize(quotaParentBefore, change * -1);\n logger.debug(String.format(\"[FolderQuota] - Node %s moved from a quota folder, added to the queue; size %s\", quotaParentBefore, change * -1));\n \t}\n \tif(quotaParentAfter != null)\n \t{\n \t\t//queue.enqueueEvent(quotaParentAfter, change);\n \t\tupdateSize(quotaParentAfter, change);\n \t\tlogger.debug(String.format(\"[FolderQuota] - Node %s moved to a quota folder, added to the queue; size %s\", quotaParentBefore, change));\n \t}\n\t}", "@Override\r\n public void publishPropertyViolation (Publisher publisher) {\n }", "public void checkUpdateFileComment() {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tif (this.fileCommentTabItem != null && this.fileCommentTabItem.isFileCommentChanged()) this.fileCommentTabItem.setFileComment();\r\n\t\t}\r\n\t\telse { // if the percentage is not up to date it will updated later\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif (DataExplorer.this.fileCommentTabItem != null && DataExplorer.this.fileCommentTabItem.isFileCommentChanged()) DataExplorer.this.fileCommentTabItem.setFileComment();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public void testUpdateContentValues() {\n String accountType = SimUtils.ACCOUNT_TYPE_USIM;\n String text = null;\n ContentValues values = new ContentValues();\n int type = 0;// 1,2,3anr,---\n\n // 01--right type,not null text,put sne success\n text = \"nicknameofme\";\n if (mOpContactAccountExtension.updateContentValues(accountType, values, null, text, type, Utils.COMMD_FOR_SNE)) {\n assertEquals(text, values.get(\"sne\"));\n }\n // 02-sim\n accountType = SimUtils.ACCOUNT_TYPE_SIM;\n assertFalse(mOpContactAccountExtension.updateContentValues(accountType, values, null, text, type, Utils.COMMD_FOR_SNE));\n\n // 03-the type is not right,super\n accountType = SimUtils.ACCOUNT_TYPE_USIM;\n type = 1;// do not CONTENTVALUE_ANR_UPDATE\n assertFalse(mOpContactAccountExtension.updateContentValues(accountType, values, null, text, type, Utils.COMMD_FOR_SNE));\n }", "@Override\r\n\tpublic int validatePullDown(MMkEntity entity) {\n\t\treturn 0;\r\n\t}", "@Test\r\n public void test_OUM_UPOU_3_1() throws Exception {\r\n\r\n Class<OptimisticLockingException> ec = OptimisticLockingException.class;\r\n final String createdXml = createSuccessfully(\"escidoc_ou_create.xml\");\r\n final String id = getObjidValue(createdXml);\r\n final String toBeUpdatedXml = retrieveParents(id);\r\n\r\n final Document toBeUpdatedDocument =\r\n (Document) substitute(getDocument(toBeUpdatedXml), XPATH_PARENTS + \"/\" + PART_LAST_MODIFICATION_DATE,\r\n \"2005-01-30T11:36:42.015Z\");\r\n try {\r\n updateParentOus(id, toString(toBeUpdatedDocument, false));\r\n failMissingException(\"No exception occured on update with wrong time stamp.\", ec);\r\n }\r\n catch (final Exception e) {\r\n assertExceptionType(ec, e);\r\n }\r\n }", "@Test(expectedExceptions = DataAccessException.class)\r\n public void testUpdateWrongDistance() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(recordDao.findActivityRecord(record.getId()));\r\n\r\n record.setDistance(-5);\r\n recordDao.update(record);\r\n }", "@Test\r\n\tpublic void testUpdateQuantity() throws IdNotContainedException { \r\n\t\tint initialQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t int expectedQuantity = 2;\r\n\t processOrder.updateItemQuantity(currentOrder);\r\n\t int actualQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t String message =\"Value updated succesfully\";\r\n\t\tassertEquals(message, actualQuantity, expectedQuantity ); \r\n assertTrue(actualQuantity > initialQuantity); //make sure that when updating the value has increased\r\n\r\n\t}", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "@Test\r\n\tpublic void setRelatedFieldError() {\r\n\t\ttry {\r\n\t\t\ttestObj.setRelatedField(0, 1);\r\n\t\t \tfail(\"Expected an IndexOutOfBoundsException to be thrown for setRelatedField\");\r\n\t\t} \r\n\t\tcatch (IndexOutOfBoundsException anIndexOutOfBoundsException) {\r\n\t\t \treturn;\r\n\t\t}\r\n\t}", "@Test\n public void testCheckExternalIdUniquenessForUpdate() {\n\n try {\n user.setUserId(\"456456\");\n user.getExternalIds().get(0).put(JsonKey.OPERATION, JsonKey.DELETE);\n Util.checkExternalIdUniqueness(user, JsonKey.UPDATE);\n } catch (Exception ex) {\n System.out.println(\"2\" + ex.getMessage());\n assertTrue(\n ex.getMessage()\n .equalsIgnoreCase(\n \"External ID (id: 123209-453445934-23128u3423-dsafsa32c43-few43-wesc49cjkf, idType: AAADHAR, provider: AP) not found for given user.\"));\n }\n }", "@Test\n public void testExceedsQuotaOnStartup() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user\", ConfigFactory.empty());\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n // Should not be throwing the exception\n this._quotaManager.init(dags);\n }", "@Override\r\n\tpublic boolean canUpdate() {\r\n\t\treturn true;\r\n\t}", "public void onUpdateFailure();", "@Override\n public boolean update(EmailNotification entity) {\n return false;\n }", "public void testSetPropertyConvertValue() throws RepositoryException {\n Node content = testRootNode.addNode(\"jcr:content\", \"nt:resource\");\n content.setProperty(\"jcr:lastModified\", Calendar.getInstance());\n content.setProperty(\"jcr:mimeType\", \"text/plain\");\n content.setProperty(\"jcr:data\", \"Hello\");\n superuser.save();\n }", "@Override\n public DomainMessage update(DomainMessage entity) {\n throw new UnsupportedOperationException();\n }", "private void checkForUpdates(){\n\t\tlong now = System.currentTimeMillis();\r\n\t\tif(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){\r\n\t\t\tlong lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));\r\n\t\t\tlong day = 86400000; // milli-seconds in a day\r\n\t\t\tif((now - lastUpdateTime) < day){\r\n\t\t\t\treturn; // Don't need to check as a check has been made in the last 24hrs. \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetStatusBarText(\"Checking for updates...\"); \r\n\t\t\r\n HttpClient webConnection = new HttpClient();\r\n \t\tProperties webSideProps; \r\n \t\ttry{\r\n \t\t\twebSideProps = webConnection.getProperties(\"http://www.zygomeme.com/version_prop.txt\");\r\n \t\t}\r\n \t\tcatch(SocketTimeoutException ste){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + ste);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tcatch(UnknownHostException uhe){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + uhe);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tif(webSideProps == null || webSideProps.isEmpty()){\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tint latestVersionAvailable = Integer.parseInt(webSideProps.get(\"version_number\").toString());\r\n \t\tif(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){\r\n \t\t\tsetStatusBarText(\"A new version of ZygoMeme York is now available. You can now upgrade to Version \" + webSideProps.getProperty(\"version_string\") + \" \" + \r\n \t\t\t\t\twebSideProps.get(\"stage\")); \r\n \t\t}\r\n \t\telse{\r\n \t\t\tsetStatusBarText(\"Update check has been made - application is up to date.\"); \r\n \t\t}\r\n\r\n \t\t// To get here the properties will have been updated\r\n\t\tpropertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, \"\" + now);\r\n\r\n\t\t// Save the properties straight away so that the new last \"check for update\" time is recorded\r\n\t\ttry {\r\n\t\t\tpropertiesMemento.saveProperties(this);\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(\"Unable to save properties\");\r\n\t\t}\r\n\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_QuotaBump() {\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_ADDITIONAL_DURATION_MS, MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_WINDOW_SIZE_MS, 8 * HOUR_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Close to RARE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS),\n 30 * SECOND_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 16 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 12 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 8 * HOUR_IN_MILLIS));\n // Far away from FREQUENT boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n // Overlap WORKING_SET boundary.\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 2 * HOUR_IN_MILLIS));\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 15 * MINUTE_IN_MILLIS));\n // Close to ACTIVE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS + 30 * SECOND_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectOKXml() throws Exception {\n\t}", "public void checkReadLock() {\n checkNotDeleted();\n super.checkReadLock();\n }", "@Override\n public void updateProperties() {\n // unneeded\n }", "@Override\n protected void updateProperties() {\n }", "@Override\n\tprotected void updateInner(KeyCacheObjectTest obj)\n\t\t\tthrows DaoManagerException {\n\t\t\n\t}", "@Test\n public void checkUuidIndexUpdatedOnMove() throws Exception {\n // create the node to move\n Node parent = adminSession.getNode(temp1Path);\n String childName = \"child\" + System.currentTimeMillis();\n Node child = parent.addNode(childName, \"sling:Folder\");\n child.addMixin(\"mix:referenceable\");\n adminSession.save();\n \n // verify the id and lookup by id and query works \n String id = child.getIdentifier();\n assertThat(adminSession.getNodeByIdentifier(id), notNullValue());\n verifyLookupByIdentifier(id);\n\n // move it\n adminSession.move(child.getPath(), temp2Path + childName);\n adminSession.save();\n \n // verify the id and lookup by id and query works \n verifyLookupByIdentifier(id);\n }", "DefinedProperty graphChangeProperty( int propertyKey, Object value );", "@Override\n public boolean canUpdate() { return false; }", "void nodeUpdated(Node n) throws RepositoryException;", "@SuppressWarnings(\"PMD.UnusedPrivateMethod\")\n private void updateMetadata(final PolicyRefsMetadata childPolicyRefsMetadata)\n {\n assert childPolicyRefsMetadata != null;\n\n // Modify refPolicies\n refPolicies.addAll(childPolicyRefsMetadata.getRefPolicies());\n\n /*\n * update the longest policy ref chain depending on the length of the longest in this child policy element\n */\n final List<String> childLongestPolicyRefChain = childPolicyRefsMetadata.getLongestPolicyRefChain();\n if (childLongestPolicyRefChain.size() > longestPolicyRefChain.size())\n {\n longestPolicyRefChain.clear();\n longestPolicyRefChain.addAll(childLongestPolicyRefChain);\n }\n }", "void checkAndUpdateBoundary(Integer requiredChange);", "@DISPID(1611005968) //= 0x60060010. The runtime will prefer the VTID if present\n @VTID(43)\n short relationsUpdateInPartContextEvaluateDuringUpdate();", "@Test(description = \"negative test for interface update with wrong parameters for TCL procedure 'testParents'\")\n public void exceptionUpdateWrongParentParameter()\n {\n final DataCollection data = new DataCollection(this);\n final InterfaceData inter = data.getInterface(\"TestInterface\");\n this.updateFailure(inter.getCIFileName(),\n \"mql mod interface \\\"${NAME}\\\"\\ntestParents -hallo\",\n UpdateException_mxJPO.Error.DM_INTERFACE_UPDATE_UKNOWN_PARAMETER);\n }", "@Test\n public void testCheckExternalIdUniquenessForUpdate2() {\n\n try {\n user.setUserId(\"456456\");\n user.getExternalIds().get(0).put(JsonKey.OPERATION, JsonKey.UPDATE);\n Util.checkExternalIdUniqueness(user, JsonKey.UPDATE);\n } catch (Exception ex) {\n System.out.println(\"3\" + ex.getMessage());\n assertTrue(\n ex.getMessage()\n .equalsIgnoreCase(\n \"External ID (id: 123209-453445934-23128u3423-dsafsa32c43-few43-wesc49cjkf, idType: AAADHAR, provider: AP) not found for given user.\"));\n }\n }", "public void test_UpdateDocument_Failure4() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Document document = createDocumentForTest();\r\n beanUnderTest.addDocument(document);\r\n\r\n entityManager.enablePersistenceException(true);\r\n beanUnderTest.updateDocument(document);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }", "void reportProgress(List<Node> update);", "@Test(expected=IndexOutOfBoundsException.class)\n\tpublic void testSettingTheLargeValue()\n\t{\n\t\tData d = new Data();\n\t\t\n\t\td.set(100, 10); //the index is 100, way more than the number of pieces\n\t}", "protected void checkUpdate() {\n \t\t// only update from remote server every so often.\n \t\tif ( ( System.currentTimeMillis() - lastUpdated ) > refreshInterval ) return;\n \t\t\n \t\tClusterTask task = getSessionUpdateTask();\n \t\tObject o = CacheFactory.doSynchronousClusterTask( task, this.nodeId );\n \t\tthis.copy( (Session) o );\n \t\t\n \t\tlastUpdated = System.currentTimeMillis();\n \t}", "private static void checkUpdate() throws Exception {\n\t\tfinal Properties updateProperties = new CachedResource<Properties>(getApplicationProperty(\"update.url\"), Properties.class, CachedResource.ONE_DAY, 0, 0) {\n\n\t\t\t@Override\n\t\t\tpublic Properties process(ByteBuffer data) {\n\t\t\t\ttry {\n\t\t\t\t\tProperties properties = new Properties();\n\t\t\t\t\tNodeList fields = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteBufferInputStream(data)).getFirstChild().getChildNodes();\n\t\t\t\t\tfor (int i = 0; i < fields.getLength(); i++) {\n\t\t\t\t\t\tproperties.setProperty(fields.item(i).getNodeName(), fields.item(i).getTextContent().trim());\n\t\t\t\t\t}\n\t\t\t\t\treturn properties;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}.get();\n\n\t\t// check if update is required\n\t\tint latestRev = Integer.parseInt(updateProperties.getProperty(\"revision\"));\n\t\tint currentRev = getApplicationRevisionNumber();\n\n\t\tif (latestRev > currentRev && currentRev > 0) {\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfinal JDialog dialog = new JDialog(JFrame.getFrames()[0], updateProperties.getProperty(\"title\"), ModalityType.APPLICATION_MODAL);\n\t\t\t\t\tfinal JPanel pane = new JPanel(new MigLayout(\"fill, nogrid, insets dialog\"));\n\t\t\t\t\tdialog.setContentPane(pane);\n\n\t\t\t\t\tpane.add(new JLabel(ResourceManager.getIcon(\"window.icon.medium\")), \"aligny top\");\n\t\t\t\t\tpane.add(new JLabel(updateProperties.getProperty(\"message\")), \"gap 10, wrap paragraph:push\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Download\", ResourceManager.getIcon(\"dialog.continue\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"download\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag ok\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Details\", ResourceManager.getIcon(\"action.report\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"discussion\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag help2\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Ignore\", ResourceManager.getIcon(\"dialog.cancel\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag cancel\");\n\n\t\t\t\t\tdialog.pack();\n\t\t\t\t\tdialog.setLocation(getOffsetLocation(dialog.getOwner()));\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "private void checkUpdateCheckFailed(PackageVersions packageVersions) {\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n\n // Assert the storage was updated.\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE, packageVersions);\n }", "@Override\n public void rootRPClassUpdate(RPObject entity) {\n }", "public void validateRelationshipField(Context context, JsonValue oldValue, JsonValue newValue)\n throws ResourceException {\n if (oldValue.isNull() && newValue.isNull()) {\n logger.debug(\"not validating relationship as old and new values are both null.\");\n } else if (oldValue.isNull() || !oldValue.getObject().equals(newValue.getObject())) {\n relationshipValidator.validateRelationship(newValue, context);\n }\n }", "@Test\n\tpublic void testDeveFalharAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveFalharAlterarDocumentoExistente());\n\t\tAssert.assertEquals(0, d, 0.0001);\t\n\t}", "@Test(enabled = false)\n public void addUpdateDeleteSimplePropertiesToDCAEAssetTest() throws Exception {\n createDCAEAsset();\n\n ResourceGeneralPage.getLeftMenu().moveToPropertiesScreen();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = PropertiesPage.getElemenetsFromTable().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> PropertiesPage.getElemenetsFromTable()));\n VfVerificator.verifyPropertiesInUI(propertyList);\n PropertiesPage.verifyTotalProperitesField(propertiesCount + propertyList.size());\n\n PropertyTypeEnum prop = propertyList.get(0);\n prop.setDescription(\"updatedDescription\");\n prop.setValue(\"value\");\n PropertiesUIUtils.updateProperty(prop);\n\n PropertiesPage.clickDeletePropertyArtifact(prop.getName());\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size() - 1, () -> PropertiesPage.getElemenetsFromTable()));\n }", "private void updateResourceMetaInfo(COElementAbstract element) {\r\n\telement.setId(UUID.uuid());\r\n\telement.setIdParent(null);\r\n\tif (element.isCOContentResourceProxy()) {\r\n\t COContentResourceProxy coResProxy =\r\n\t\t (COContentResourceProxy) element;\r\n\t if (COContentResourceType.DOCUMENT.equals(coResProxy.getResource()\r\n\t\t .getType())) {\r\n\t\tContentResourceEdit newResource;\r\n\t\ttry {\r\n\t\t String uri =\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.IDENTIFIER,\r\n\t\t\t\t COPropertiesType.IDENTIFIER_TYPE_URI);\r\n\t\t newResource = contentHostingService.editResource(uri);\r\n\r\n\t\t newResource.getPropertiesEdit().addProperty(\r\n\t\t\t ResourceProperties.PROP_DESCRIPTION,\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.DESCRIPTION));\r\n\t\t newResource.getPropertiesEdit().addProperty(\r\n\t\t\t ResourceProperties.PROP_COPYRIGHT_CHOICE,\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.LICENSE));\r\n\t/*\r\n\t * SAKAI 11: check for \t ResourceProperties.PROP_TYPE_RESOURCE\r\n\t * \r\n\t * newResource.getPropertiesEdit().addProperty(\r\n\t\t\t ResourceProperties.PROP_TYPE_RESOURCE,\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.ASM_RESOURCE_TYPE));*/\r\n\r\n\t\t contentHostingService.commitResource(newResource,\r\n\t\t\t NotificationService.NOTI_NONE);\r\n\t\t} catch (PermissionException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (IdUnusedException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (TypeException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (InUseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (OverQuotaException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (ServerOverloadException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t }\r\n\t} else {\r\n\t for (int i = 0; i < element.getChildrens().size(); i++) {\r\n\t\tCOElementAbstract childElement =\r\n\t\t\t(COElementAbstract) element.getChildrens().get(i);\r\n\t\tupdateResourceMetaInfo(childElement);\r\n\t }\r\n\t}\r\n }", "@Test\n public void updateDecline() throws Exception {\n }", "@Override\r\n protected void updateTask(RepositoryAction action, boolean preview)\r\n throws DataFormatException, IOException, SQLException, IllegalArgumentException {\r\n action.assertHasProperty(OLD_VALUE);\r\n action.assertHasProperty(NEW_VALUE);\r\n action.assertHasProperty(TASK_PARENT_TYPE);\r\n List<ContentActionXLR> contentActions = action.getXlrContentActions();\r\n // Validate ContentActions\r\n validateContentActions(contentActions);\r\n\r\n String oldValue = action.getProperties().get(OLD_VALUE);\r\n String newValue = action.getProperties().get(NEW_VALUE);\r\n String taskParentTypeStr = action.getProperties().get(TASK_PARENT_TYPE);\r\n int cnt = 0;\r\n\r\n if (!preview) {\r\n String sql = lookupSql(action, preview);\r\n /*\r\n * update TASK for XLR requires a select from XLR_TASK which returns a result\r\n * set of release_uids. For each, get content blob from XLR_RELEASE_DATA,\r\n * modify content blob then update the XLR_RELEASE_DATA. \r\n * Then, get task_id, content blob from XLR_TASK_BACKUPS for that release_id.\r\n * Modify the content blob and then update XLR_TASK_BACKUPS.\r\n * Update task_type in XLR_TASK\r\n * \r\n * After completeing XLR database update, update tasks in the report database\r\n */\r\n\r\n PreparedStatement pstmtReleaseId = null;\r\n PreparedStatement pstmtContent = null;\r\n PreparedStatement pstmtContent2 = null;\r\n\r\n ResultSet rsRelease = null;\r\n ResultSet rsContent = null;\r\n ResultSet rsContent2 = null;\r\n\r\n PreparedStatement pstmtUpdateContent = null;\r\n PreparedStatement pstmtUpdateContent2 = null;\r\n PreparedStatement pstmtUpdateTask = null;\r\n Boolean origCommitState = dbconn.getAutoCommit();\r\n\r\n String[] stringArray = createSqlArray(sql);\r\n \r\n /*\r\n * ensure we have ten sql statments We expect something like the following\r\n * \"SELECT DISTINCT release_uid FROM XLR_TASKS WHERE task_type = ?\";\r\n * \"SELECT content FROM XLR_RELEASES_DATA WHERE ci_uid = ?\";\r\n * \"UPDATE XLR_RELEASES_DATA SET content = ? WHERE ci_uid = ?\";\r\n * \"SELECT task_id, content FROM XLR_TASK_BACKUPS WHERE ci_uid = ?\";\r\n * \"UPDATE XLR_TASK_BACKUPS SET content = ? WHERE task_id = ?\";\r\n * \"UPDATE XLR_TASKS SET task_type = ? where task_type = ?\";\r\n * \r\n * the following sql will be run against the report database\r\n * \"SELECT DISTINCT releaseid FROM TASKS WHERE tasktype = ?\"\r\n * \"SELECT releasejson FROM RELEASES WHERE releaseid = ?\";\r\n * \"UPDATE RELEASES SET releasejson = ? WHERE releaseid = ?\";\r\n * \"UPDATE TASKS SET tasktype = ? where tasktype = ?\";\r\n */\r\n\r\n if (stringArray != null && stringArray.length == 10) {\r\n try {\r\n // Turn autocommit off\r\n dbconn.setAutoCommit(false);\r\n\r\n pstmtReleaseId = dbconn.prepareStatement(stringArray[0]);\r\n pstmtReleaseId.setString(1, oldValue);\r\n rsRelease = pstmtReleaseId.executeQuery();\r\n\r\n if (rsRelease != null) {\r\n while (rsRelease != null && rsRelease.next()) {\r\n\r\n int release_uid = rsRelease.getInt(\"release_uid\");\r\n pstmtContent = dbconn.prepareStatement(stringArray[1]);\r\n pstmtContent.setInt(1, release_uid);\r\n // Get all content blobs from the XLR_RELEASES_DATA table for this release_uid\r\n rsContent = pstmtContent.executeQuery();\r\n\r\n while (rsContent != null && rsContent.next()) {\r\n byte [] currentBytes = null;\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n currentBytes = rsContent.getBytes(\"content\");\r\n }\r\n else {\r\n Blob blobContent = rsContent.getBlob(\"content\");\r\n currentBytes = convertBlobToByteArray(blobContent);\r\n }\r\n\r\n String blobString = new String(CompressionUtils.decompress(currentBytes));\r\n\r\n // Now, update blob\r\n String updatedBlobString = updateReleaseDataBlob(blobString, taskParentTypeStr, oldValue, \r\n contentActions, action);\r\n\r\n //System.out.println(\"******BEGIN - this is the updated content blob for xlr - update task\");\r\n //System.out.println(updatedBlobString);\r\n //System.out.println(\"******END - this is the updated content blob for xlr - update task\");\r\n\r\n // We now have the updated blobString, commit it to the database\r\n byte[] newByteArray = CompressionUtils.compress(updatedBlobString.getBytes());\r\n\r\n pstmtUpdateContent = dbconn.prepareStatement(stringArray[2]);\r\n \r\n if (dbType == DbType.POSTGRESQL){\r\n pstmtUpdateContent.setBytes(1, newByteArray);\r\n }\r\n else {\r\n Blob blobFromBytes = dbconn.createBlob();\r\n int numWritten = blobFromBytes.setBytes(1, newByteArray);\r\n //System.out.println(\"******END - numWritten to blob = \"+numWritten+\", size = \"+blobFromBytes.length()+\", this is the updated content blob for xlr - update task\");\r\n // old way Blob blobFromBytes = new javax.sql.rowset.serial.SerialBlob(newByteArray); \r\n pstmtUpdateContent.setBlob(1, blobFromBytes); \r\n }\r\n \r\n pstmtUpdateContent.setInt(2, release_uid);\r\n int resultUpdateContent = pstmtUpdateContent.executeUpdate();\r\n } // end of while content\r\n\r\n // Now requery the database to get info from the XLR_TASK_BACKUPS table\r\n pstmtContent2 = dbconn.prepareStatement(stringArray[3]);\r\n pstmtContent2.setInt(1, release_uid);\r\n rsContent2 = pstmtContent2.executeQuery();\r\n while (rsContent2 != null && rsContent2.next()) {\r\n //get Task_ID\r\n String task_id = rsContent2.getString(\"task_id\");\r\n\r\n Blob blobContent2 = null;\r\n byte [] currentBytes2 = null;\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n currentBytes2 = rsContent2.getBytes(\"content\");\r\n }\r\n else {\r\n blobContent2 = rsContent2.getBlob(\"content\");\r\n currentBytes2 = convertBlobToByteArray(blobContent2);\r\n }\r\n\r\n String blobString2 = new String(CompressionUtils.decompress(currentBytes2));\r\n JsonParser jsonParser = new JsonParser();\r\n JsonObject parentObject2 = null;\r\n \r\n JsonObject objectFromString2 = jsonParser.parse(blobString2).getAsJsonObject();\r\n // process content to get all task JsonObjects\r\n if (taskParentTypeStr != null && !taskParentTypeStr.isEmpty() \r\n && objectFromString2.has(taskParentTypeStr)) {\r\n parentObject2 = objectFromString2.getAsJsonObject(taskParentTypeStr);\r\n if (parentObject2.has(\"type\")) {\r\n if (oldValue.equals(parentObject2.get(\"type\").getAsString())) {\r\n // NOTE: the type will come from the properties of action\r\n // (NOT the xlrContentActions)\r\n updateParentObject(parentObject2, contentActions, jsonParser, action);\r\n\r\n //System.out.println(\"******BEGIN - this is the updated content blob for xlr - update task - backup\");\r\n //System.out.println(objectFromString2.toString());\r\n //System.out.println(\"******END - this is the updated content blob for xlr - update update task - backup\");\r\n\r\n byte[] newByteArray2 = CompressionUtils.compress(objectFromString2.toString().getBytes());\r\n \r\n pstmtUpdateContent2 = dbconn.prepareStatement(stringArray[4]);\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n pstmtUpdateContent2.setBytes(1, newByteArray2);\r\n }\r\n else {\r\n Blob blobFromBytes2 = dbconn.createBlob();\r\n int numWritten = blobFromBytes2.setBytes(1, newByteArray2);\r\n //System.out.println(\"******END - numWritten to blob = \"+numWritten+\", size = \"+blobFromBytes.length()+\", this is the updated content blob for xlr - update task\");\r\n // old way Blob blobFromBytes2 = new javax.sql.rowset.serial.SerialBlob(newByteArray2); \r\n pstmtUpdateContent2.setBlob(1, blobFromBytes2); \r\n }\r\n\r\n pstmtUpdateContent2.setString(2, task_id);\r\n int resultUpdateContent2 = pstmtUpdateContent2.executeUpdate();\r\n } // end of if type = oldValue\r\n } // end of if has type\r\n } // end of if has parent\r\n }// end of second blob cycle \r\n } // end of while release_uid\r\n\r\n\r\n // Now update XLR_TASKS table\r\n pstmtUpdateTask = dbconn.prepareStatement(stringArray[5]);\r\n pstmtUpdateTask.setString(1, newValue);\r\n pstmtUpdateTask.setString(2, oldValue);\r\n cnt = pstmtUpdateTask.executeUpdate();\r\n\r\n // Now update the report database for this action\r\n updateReportTasks(stringArray, action);\r\n\r\n os.println(String.format(\"\\n%sUpdate TASK from %s to %s. %d row(s) altered.\",\r\n (preview ? \"[PREVIEW] \" : \"\"), action.getProperties().get(OLD_VALUE),\r\n action.getProperties().get(NEW_VALUE), cnt));\r\n if(cnt>0 && action.getMessage() != null && !action.getMessage().isEmpty()){\r\n os.println(\"\\tAttention: \"+action.getMessage());\r\n }\r\n\r\n } else {\r\n os.println(String.format(\"\\n%sUpdate TASK from %s to %s. 0 row(s) altered. %s\",\r\n (preview ? \"[PREVIEW] \" : \"\"), action.getProperties().get(OLD_VALUE),\r\n action.getProperties().get(NEW_VALUE), \"No records found to update.\"));\r\n }\r\n\r\n // successfully reached the end, so commit\r\n //os.println(\"About to commit the database transaction.\");\r\n dbconn.commit(); \r\n\r\n } catch (SQLException se){\r\n dbconn.rollback();\r\n os.println(\"\\nERROR: SQLExecption thrown, so database transcaction has been rolled back.\");\r\n throw se;\r\n } catch (IllegalArgumentException ie){\r\n dbconn.rollback();\r\n os.println(\"\\nERROR: IllegalArgumentExecption thrown, so database transcaction has been rolled back.\");\r\n throw ie;\r\n } finally {\r\n try {\r\n if(dbconn != null) dbconn.setAutoCommit(origCommitState);\r\n if (pstmtReleaseId != null) pstmtReleaseId.close();\r\n if (pstmtContent != null) pstmtContent.close();\r\n if (pstmtContent2 != null) pstmtContent2.close();\r\n if (rsRelease != null) rsRelease.close();\r\n if (rsContent != null) rsContent.close();\r\n if (rsContent2 != null) rsContent2.close();\r\n if (pstmtUpdateContent != null) pstmtUpdateContent.close();\r\n if (pstmtUpdateContent2 != null) pstmtUpdateContent2.close();\r\n if (pstmtUpdateTask != null) pstmtUpdateTask.close();\r\n } catch (SQLException e) {\r\n //os.println(\"Exception thrown while closing prepared statements and result sets\");\r\n //throw e;\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\r\n \"updateTask SQL mapping must contain ten SQL statements, a SELECT, SELECT, UPDATE, SELECT, UPDATE, UPDATE, SELECT, SELECT, UPDATE, UPDATE.\");\r\n }\r\n } else {\r\n // perform preview action\r\n cnt = processAction(action, preview);\r\n\r\n os.println(String.format(\"\\n%sUpdate TASK from %s to %s. %d row(s) altered.\", (preview ? \"[PREVIEW] \" : \"\"),\r\n action.getProperties().get(OLD_VALUE), action.getProperties().get(NEW_VALUE), cnt));\r\n }\r\n }", "@Test\r\n public void testUpdateParentRelation02() throws Exception {\r\n\r\n // prepare\r\n // create OU 1\r\n String ou1xml = createSuccessfully(\"escidoc_ou_create.xml\");\r\n String ou1id = getObjidValue(getDocument(ou1xml));\r\n\r\n // create OU 2\r\n String ou2xml = createSuccessfully(\"escidoc_ou_create.xml\");\r\n String ou2id = getObjidValue(getDocument(ou2xml));\r\n\r\n String parentsXml = retrieveParents(ou2id);\r\n Document ou2parents = getDocument(parentsXml);\r\n\r\n String srelPrefix = determineSrelNamespacePrefix(ou2parents);\r\n String xlinkPrefix = determineXlinkNamespacePrefix(ou2parents);\r\n Element parent =\r\n ou2parents.createElementNS(\"http://escidoc.de/core/01/structural-relations/\", srelPrefix + \":parent\");\r\n parent.setAttribute(xlinkPrefix + \":href\", \"/oum/organizational-unit/\" + ou1id);\r\n\r\n Node parents = selectSingleNode(ou2parents, \"/parents\");\r\n parents.appendChild(parent);\r\n\r\n String tmp = toString(ou2parents, true);\r\n String ou2parentsXml = updateParentOus(ou2id, tmp);\r\n ou2parents = getDocument(ou2parentsXml);\r\n\r\n // assert updated values\r\n assertXmlExists(\"Missing one parent\", ou2parents, \"/parents/parent[@href='/oum/organizational-unit/\" + ou1id\r\n + \"']\");\r\n assertXmlExists(\"Wrong number of parents\", ou2parents, \"/parents[count(./parent)='1']\");\r\n }", "public long saveupdateProperty(Property property, MultipartFile file) {\n\t\treturn 0;\n\t}", "public void updateDocument(Document arg0) throws ContestManagementException {\r\n }", "@Test\n\tpublic void testdeveAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveAlterarDocumentoExistente());\n\t\tAssert.assertEquals(1, d, 0.0001);\t\n\t}", "@Test\n public void testUpdateCheckpointBadConcurrencyToken() throws LeasingException {\n TestHarnessBuilder builder = new TestHarnessBuilder();\n builder.withLease(leaseKey, null).build();\n\n coordinator.runLeaseTaker();\n coordinator.runLeaseRenewer();\n Lease lease = coordinator.getCurrentlyHeldLease(leaseKey);\n\n assertNotNull(lease);\n\n ExtendedSequenceNumber newCheckpoint = new ExtendedSequenceNumber(\"newCheckpoint\");\n assertFalse(dynamoDBCheckpointer.setCheckpoint(lease.leaseKey(), newCheckpoint, UUID.randomUUID()));\n\n Lease fromDynamo = leaseRefresher.getLease(lease.leaseKey());\n\n // Owner should be the only thing that changed.\n lease.leaseOwner(coordinator.workerIdentifier());\n assertEquals(lease, fromDynamo);\n }", "boolean hasUpdateInode();", "public void test_UpdateDocument_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Document document = createDocumentForTest();\r\n beanUnderTest.addDocument(document);\r\n\r\n entityManager.enableTransactionException(true);\r\n\r\n beanUnderTest.updateDocument(document);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }", "private boolean isSizeConsistent() { return isSizeConsistent(root); }", "@Test\n public void overlappingSync() throws RepositoryException, PersistenceException {\n ResourceBuilder builder = context.build().withIntermediatePrimaryType(TYPE_UNSTRUCTURED);\n ResourceBuilder fromBuilder = builder.resource(\"/s/from\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED, \"attrroot\", \"rootval\");\n Resource toResource = fromBuilder.resource(\"a\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED).getCurrentParent();\n fromBuilder.resource(\"b\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED, \"attrb\", \"valb\");\n builder.commit();\n\n // JcrTestUtils.printResourceRecursivelyAsJson(context.resourceResolver().getResource(\"/s\"));\n syncronizer.update(fromBuilder.getCurrentParent(), toResource);\n toResource.getResourceResolver().adaptTo(Session.class).save();\n // JcrTestUtils.printResourceRecursivelyAsJson(context.resourceResolver().getResource(\"/s\"));\n\n assertEquals(\"rootval\", ResourceHandle.use(toResource).getProperty(\"attrroot\"));\n assertEquals(\"valb\", ResourceHandle.use(toResource).getProperty(\"b/attrb\"));\n // no infinite recursion:\n assertNull(ResourceHandle.use(toResource).getChild(\"a/a\"));\n // from/a/a exists, but that's a bit hard to prevent and\n }", "@Override\n public void onProgress(PutObjectRequest request, long currentSize, long totalSize) {\n }", "public void requestUpdate(){\n shouldUpdate = true;\n }" ]
[ "0.5610679", "0.55800796", "0.53529984", "0.5261109", "0.51708317", "0.51386636", "0.5058435", "0.50116", "0.4999462", "0.49720082", "0.49690825", "0.49462077", "0.4910151", "0.49073768", "0.4893423", "0.4871029", "0.4867176", "0.48641935", "0.4864053", "0.48517987", "0.4851183", "0.48500043", "0.48487452", "0.48304686", "0.48237193", "0.48227495", "0.4813223", "0.48036388", "0.47943112", "0.47884735", "0.47827315", "0.47801077", "0.47530136", "0.47488022", "0.4740171", "0.47311577", "0.47287983", "0.47270617", "0.47255766", "0.47237968", "0.4702507", "0.470042", "0.469852", "0.46976972", "0.46928093", "0.4691586", "0.46900067", "0.46851364", "0.46758577", "0.46757272", "0.4669879", "0.46662968", "0.4663461", "0.46613857", "0.46583116", "0.46549433", "0.464434", "0.4633262", "0.46245372", "0.46221173", "0.46112484", "0.46049753", "0.46022162", "0.46021423", "0.45994642", "0.45980483", "0.45914954", "0.4571356", "0.45708236", "0.45702028", "0.45691007", "0.4567663", "0.4562803", "0.45616642", "0.45545468", "0.45497528", "0.45475236", "0.4539891", "0.4536737", "0.45354468", "0.45312148", "0.4531121", "0.45237288", "0.45212692", "0.4514054", "0.45110077", "0.45057538", "0.45055583", "0.4505456", "0.450467", "0.45026302", "0.449464", "0.44929937", "0.4490915", "0.44903335", "0.44896448", "0.448634", "0.44860366", "0.4482765", "0.4482687" ]
0.65781325
0
Handles updating the various folder sizes when a node is moved. Old folder gets its size decremented, new one gets incremented (only if quotas are applied).
public void onMoveNode(ChildAssociationRef before, ChildAssociationRef after) { logger.debug("[FolderQuota] - onMoveNode"); NodeRef quotaParentBefore = usage.getParentFolderWithQuota(before.getParentRef()); NodeRef quotaParentAfter = usage.getParentFolderWithQuota(after.getParentRef()); long change = 0L; //only calculate the change size once, if either the before or after parent have a quota. if(quotaParentBefore != null || quotaParentAfter != null) { change = usage.getChangeSize(before.getChildRef()); } if(quotaParentBefore != null) { //queue.enqueueEvent(quotaParentBefore, change * -1); updateSize(quotaParentBefore, change * -1); logger.debug(String.format("[FolderQuota] - Node %s moved from a quota folder, added to the queue; size %s", quotaParentBefore, change * -1)); } if(quotaParentAfter != null) { //queue.enqueueEvent(quotaParentAfter, change); updateSize(quotaParentAfter, change); logger.debug(String.format("[FolderQuota] - Node %s moved to a quota folder, added to the queue; size %s", quotaParentBefore, change)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateSize() {\n setMeAndMyParentsAsDirty();\n }", "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long execute() throws Throwable\n \t\t\t\t{\n \t\t\t\t\tLong currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n \t\t\t\t\tif (currentSize == null) {\n \t\t\t\t\t\tcurrentSize=0L;\n \t\t\t\t\t}\n \t\t\t\t\tLong newSize = currentSize + sizeChange;\n \t\t\t\t\tserviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize);\n \t\t\t\t\tlogger.debug(String.format(\"Property %s set to %s\",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize));\n \t\t\t\t\treturn newSize;\n \t\t\t\t}\n \t\t\t};\n \t\t\ttry\n \t\t\t{\n \t\t\t\tRetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper();\n \t\t\t\tLong newSize = txnHelper.doInTransaction(callback, false, true);\n\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\n \t\t\t\t\t\t\t\"Incremented folder size on quota folder node: \\n\" +\n \t\t\t\t\t\t\t\t\t\" Node: \" + quotaFolder + \"\\n\" +\n \t\t\t\t\t\t\t\t\t\" New Size: \" + newSize);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (InvalidNodeRefException e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\"Unable to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (Throwable e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(e);\n \t\t\t\t}\n \t\t\t\tlogger.error(\"Failed to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t}\n \t\t\treturn \"\";\n \t\t}\n \t}, AuthenticationUtil.getSystemUserName());\n }", "public void updateSize() {\n\t\t\tthis.setSize();\n\t\t\tif (this.checkRoot()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tparent.updateSize();\n\t\t}", "@Override\n public void run() {\n updateTotalSizeOfFilesInDir(child);\n }", "public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) {\n\t\t//if the change size will push the folder over quota, roll back the current transaction\n\t\tfinal UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction();\n\n\t\tAuthenticationUtil.runAsSystem(new RunAsWork<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object doWork() throws Exception {\n\t\t\t\tlogger.debug(\"[FolderQuota] - onContentPropertyUpdate\");\n\t\t\t\tlong change = 0;\n\n\t\t\t\t//beforeValue can be null on new item creation\n\t\t\t\tif(beforeValue == null) change = afterValue.getSize();\n\t\t\t\telse change = afterValue.getSize() - beforeValue.getSize();\n\n\t\t\t\tNodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef);\n\n\t\t\t\tif(change > 0) {\n\t\t\t\t\tif(quotaParent != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tNodeService nodeService = serviceRegistry.getNodeService();\n\t\t\t\t\t\tLong quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA);\n\t\t\t\t\t\tLong currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n\t\t\t\t\t\t//quotaSize can be null if the aspect has been added but the quota has not yet been set\n\t\t\t\t\t\tif(quotaSize != null) {\n\t\t\t\t\t\t\tif(currentSize + change > quotaSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(SystemException ex)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - An upload to folder %s failed due to quota\", quotaParent));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//queue.enqueueEvent(quotaParent, change);\n\t\t\t\t\t\t\t\tupdateSize(quotaParent, change);\n\t\t\t\t\t\t\t\tlogger.debug(String.format(\"[FolderQuota] - Added nodeRef %s to the queue; size change %s\", nodeRef, change));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - Folder %s has the quota aspect added but no quota set\", quotaParent));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n }", "public abstract void adjustSize(long size);", "private void SizesUpdate(IAVLNode parent) { \r\n\t\t\tIAVLNode curr = parent;\r\n\t\t\t\r\n\t\t\t//down check\r\n\t\t\tif(curr != null && curr.getRight().isRealNode())\r\n\t\t\t\tcurr.getRight().setSize(curr.getRight().getRight().getSize() + curr.getRight().getLeft().getSize() + 1);\r\n\t\t\tif(curr != null && curr.getLeft().isRealNode())\r\n\t\t\t\tcurr.getLeft().setSize(curr.getLeft().getRight().getSize() + curr.getLeft().getLeft().getSize() + 1);\r\n\t\t\t\r\n\t\t\twhile(curr != null)\r\n\t\t\t {\r\n\t\t\t\t int newSize = curr.getRight().getSize() + curr.getLeft().getSize() + 1;\r\n\t\t\t\t if(curr.getSize() != newSize)\r\n\t\t\t\t \t curr.setSize(newSize);\r\n\t\t\t\t\tcurr = curr.getParent(); \r\n\t\t\t }\r\n\t\t}", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "public synchronized void updateFileSize( long passedSize ){\n \n fileSize = passedSize;\n if( fileSize >= 0 && fileByteCounter >= fileSize )\n finishFileTransfer(); \n }", "protected void updateSubtreeSizePath(BSTNode n) {\n\t\tif (n == null)\n\t\t\treturn;\n\n\t\twhile (true) {\n\t\t\tupdateSubtreeSize(n);\n\n\t\t\tif (n.parent == null) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tn = n.parent;\n\t\t\t}\n\t\t}\n\t}", "protected void updateSubtreeSize(BSTNode n) {\n\t\tn.size = 1;\n\n\t\tif (n.left != null)\n\t\t\tn.size += n.left.size;\n\n\t\tif (n.right != null)\n\t\t\tn.size += n.right.size;\n\t}", "private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}", "private long getSize(String securedFolderPath) {\n\n logger.info(\"Current secured folder size in FolderMonitor\");\n\n long size = 0;\n\n File folder = new File(securedFolderPath);\n\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles.length > 0) {\n\n for (File file : listOfFiles) {\n\n if (file.toString().contains(CommonConstants.BATCH)\n || file.toString().contains(CommonConstants.SH)) {\n\n file.delete();\n logger.info(\"File deleted :\" + file.getName());\n continue;\n }\n if (file.isFile()) {\n\n size += file.length();\n }\n }\n }\n return size;\n\n }", "public void beforeDeleteNode(NodeRef deleted) {\n\t\t\n logger.debug(\"[FolderQuota] - beforeDeleteNode\");\n \n NodeRef quotaParent = usage.getParentFolderWithQuota(deleted);\n \n \tif(quotaParent != null)\n \t{\n \t\tLong size = usage.getChangeSize(deleted);\n \t\tupdateSize(quotaParent, size * -1);\n\t\t\t//queue.enqueueEvent(quotaParent, size * -1);\n \t}\t\n\t}", "@Override\n public void msrpTransferProgress(long currentSize, long totalSize) {\n }", "public void setTreeSize(Double newtreesize)\n {\n treesize = newtreesize; \n }", "public void setSize() {\n\t\t\tthis.size = 1;\n\t\t\tint leftSize = 0;\n\t\t\tint rightSize = 0;\n\t\t\tif (this.getLeft().getKey() != -1) {\n\t\t\t\tleftSize = this.getLeft().getSize();\n\t\t\t}\n\t\t\tif (this.getRight().getKey() != -1) {\n\t\t\t\trightSize = this.getRight().getSize();\n\t\t\t}\n\t\t\tthis.size += leftSize + rightSize;\n\n\t\t\t/**\n\t\t\t * this.size = 1; int leftSize = 0; int rightSize = 0; try { leftSize =\n\t\t\t * this.getLeft().getSize(); this.size += leftSize; } catch\n\t\t\t * (NullPointerException e) { this.size += leftSize; } try { rightSize =\n\t\t\t * this.getRight().getSize(); this.size += rightSize; } catch\n\t\t\t * (NullPointerException e) { this.size += rightSize; } if (this.getSize() >\n\t\t\t * 990) { System.out.println(\"actual size is:\" + this.getSize()); }\n\t\t\t */\n\t\t}", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }", "private void recalculateFilesAvailable() {\n Collection<Folder> folders = getController().getFolderRepository()\n .getFolders();\n long count = 0;\n for (Folder folder : folders) {\n count += folder.getStatistic().getIncomingFilesCount();\n if (isFiner()) {\n logFiner(\"Folder: \" + folder.getName() + \", incoming: \"\n + folder.getStatistic().getIncomingFilesCount());\n }\n }\n filesAvailableLine.setValue(count);\n }", "@Override\n public void onPopulateSdFilesTaskProgressUpdated(\n ExternalFileInfo savedRoot,\n ExternalFileInfo savedFolder,\n ExternalFileInfo savedLeaf) {\n\n // at this point breadcrum bar should be updated\n Context context = getContext();\n if (context == null) {\n return;\n }\n if (savedFolder != null && savedRoot != null) {\n // load the new built folder\n mCurrentFolder = savedFolder;\n mCurrentRoot = savedRoot;\n } else {\n // folder could not be built, so load root folder\n mCurrentFolder = null;\n mCurrentRoot = null;\n }\n if (savedLeaf != null) {\n rebuildBreadcrumbBar(context, savedLeaf);\n }\n if (mCurrentFolder != null) {\n setCurrentBreadcrumb(findBreadcrumb(mCurrentFolder));\n }\n\n // no need to build saved folder anymore. the relevant settings will be\n // updated in pauseFragment\n mSavedFolderUri = null;\n mSavedLeafUri = null;\n\n }", "long getSize() throws FileSystemException;", "private long getFolderSize(String filePath)\n {\n // Source/Inspiration for codeblock below: http://www.baeldung.com/java-folder-size\n File dir = new File(filePath);\n\n File[] filesinDir = dir.listFiles();\n\n long directorySize = 0;\n\n // traverse through dir structure\n if (filesinDir != null) {\n for (File currentFile : filesinDir) {\n if (currentFile.isFile()) {\n directorySize += currentFile.length();\n } else {\n // Recursive call for subdirectories\n directorySize += getFolderSize(currentFile.getPath());\n }\n }\n }\n return directorySize;\n }", "float computeSize() {\n if (dirtyS) {\n size = modelRoot.getCSize().getSize(node);\n dirtyBufS = true;\n modelRoot.decrementNumberOfDirtySNodes();\n dirtyS = false;\n }\n return size;\n }", "@Override\r\n\tpublic boolean renameFolder(String oldDirName, String newDirName) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\r\n\r\n\t}", "public void increaseSize(int delta){\n\t\tif(scale < scaleMax)\n\t\t\tscale += enlarge * delta;\n\t}", "@Test\n public void checkUuidIndexUpdatedOnMove() throws Exception {\n // create the node to move\n Node parent = adminSession.getNode(temp1Path);\n String childName = \"child\" + System.currentTimeMillis();\n Node child = parent.addNode(childName, \"sling:Folder\");\n child.addMixin(\"mix:referenceable\");\n adminSession.save();\n \n // verify the id and lookup by id and query works \n String id = child.getIdentifier();\n assertThat(adminSession.getNodeByIdentifier(id), notNullValue());\n verifyLookupByIdentifier(id);\n\n // move it\n adminSession.move(child.getPath(), temp2Path + childName);\n adminSession.save();\n \n // verify the id and lookup by id and query works \n verifyLookupByIdentifier(id);\n }", "@Override\n public void transferred(long num) {\n publishProgress((int) ((num / (float) totalSize) * 100));\n }", "public abstract void sizeChanged(SizeChangedEvent event);", "public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }", "public static void checkDirSize(final List<String> pathList, final Handler handler) {\n new Thread() {\n @Override\n public void run() {\n long cacheSize = 0;\n try {\n if(pathList != null) {\n for (String path : pathList) {\n cacheSize += getDirSize(path);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n if(handler != null) {\n int sizeK = (int) (cacheSize / SIZE_UNIT_K);\n notifyHandler(handler, CACHE_SIZE_CHECK_CODE, 0, sizeK, null);\n }\n };\n }.start();\n }", "@Override public long getSize() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "public void updateRecordCurrentSize(final Record record) {\n String recordPath = getPathForRecord(record);\n File recordFolder = new File(recordPath);\n if (recordFolder.exists()) {\n File[] recordFiles = recordFolder.listFiles();\n long totalSizeKB = 0;\n for (File eachRecordFile : recordFiles) {\n totalSizeKB += (eachRecordFile.length() / 1024);\n }\n record.recordSizeKB = totalSizeKB;\n record.totalSizeKB = Math.max(record.totalSizeKB, record.recordSizeKB);\n }\n }", "private void workerUpdate(final File newFolder, final boolean isReloadFolder) {\r\n\r\n\t\tif (newFolder == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (isReloadFolder == false && _workerNextFolder != null && _workerNextFolder.equals(newFolder)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsynchronized (_workerLock) {\r\n\r\n\t\t\t_workerNextFolder = newFolder;\r\n\r\n\t\t\t_workerStopped = false;\r\n\t\t\t_workerCancelled = true;\r\n\r\n\t\t\t_workerLock.notifyAll();\r\n\t\t}\r\n\r\n\t\tif (_workerThread == null) {\r\n\t\t\t_workerThread = new Thread(_workerRunnable, \"PicDirImages: Retrieving folder image files\");//$NON-NLS-1$\r\n\t\t\t_workerThread.start();\r\n\t\t}\r\n\t}", "private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }", "private void selectedFolderMovedFromNavTree(Folder selectedFolder, Folder destinationFolder) {\n Folder parentFolder = view.getParentFolder(selectedFolder);\n\n if (DiskResourceUtil.isDescendantOfFolder(parentFolder, destinationFolder)) {\n // The destination is under the parent, so if we prune the parent and set the destination\n // as the selected folder, the parent will lazy-load down to the destination.\n view.removeChildren(parentFolder);\n } else if (DiskResourceUtil.isDescendantOfFolder(destinationFolder, parentFolder)) {\n // The parent is under the destination, so we only need to view the destination folder's\n // contents and refresh its children.\n presenter.doRefreshFolder(destinationFolder);\n } else {\n // Refresh the parent folder since it has lost a child.\n presenter.doRefreshFolder(parentFolder);\n // Refresh the destination folder since it has gained a child.\n presenter.doRefreshFolder(destinationFolder);\n }\n\n // View the destination folder's contents.\n presenter.setSelectedFolderByPath(destinationFolder);\n }", "private void updateFoldersText() {\n // #2002: Hide\n numberOfFoldersLine.setValue(0);\n sizeOfFoldersLine.setValue(0);\n }", "void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}", "int move(int pileSize) ;", "void gotStorageChange(EventType event, Node oldNode, Node newNode);", "protected void changeFolder(Folder newFolder, AjaxRequestTarget target) {\n\t\tcurrentFolder = newFolder;\n\t\tcurrentResource = null;\n\t\tsend(getPage(), Broadcast.BREADTH, new FolderChangeEvent(target));\n\t}", "private static void calculateSizes() {\n for(EmailTypes type : EmailTypes.values()){\n File f = unpackedFiles.get(type);\n setSizes.put(type, Objects.requireNonNull(f.listFiles()).length);\n }\n }", "private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }", "public void onChildMoved(GuiElementBase element) {\n\t\tfor (Direction direction : Direction.values()) {\n\t\t\tupdateChildSizes(direction);\n\t\t\texpandToFitChildren(direction);\n\t\t}\n\t}", "public void sizeIncrease1() {\n\t\t _size++;\n\t}", "public void changeSize(int width, int height) {\n this.width = width;\n this.height = height;\n updateBounds();\n updateChildren();\n }", "@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}", "public void onChildSizeChanged(GuiElementBase element, Direction direction)\n\t\t{ expandToFitChildren(direction); }", "public void update_height() {\r\n int tmp_height = 0;\r\n int tmp_left = -1;\r\n int tmp_right = -1;\r\n\r\n // set height of null children to -1\r\n if (leftChild != null) {\r\n tmp_left = leftChild.height;\r\n }\r\n if (rightChild != null) {\r\n tmp_right = rightChild.height;\r\n }\r\n\r\n // find highest child\r\n if (tmp_left > tmp_right) {\r\n tmp_height = tmp_left;\r\n }\r\n else {\r\n tmp_height = tmp_right;\r\n }\r\n\r\n // update this node's height\r\n height = tmp_height + 1;\r\n }", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\twidth = w;\n\t\theigth = h;\n\t\tajestPosition();\n\t\tthis.invalidate();\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t}", "@Test\n public void testMoveFolder() {\n System.out.println(\"moveFolder\");\n String folderToMove = \"\";\n String destinationFolder = \"\";\n FileSystemStorage instance = null;\n instance.moveFolder(folderToMove, destinationFolder);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int getSize() throws MessagingException {\n/* */ try {\n/* 111 */ synchronized (this) {\n/* */ \n/* 113 */ if (this.msgSize > 0) {\n/* 114 */ return this.msgSize;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 132 */ if (this.headers == null) {\n/* 133 */ loadHeaders();\n/* */ }\n/* 135 */ synchronized (this) {\n/* 136 */ if (this.msgSize < 0)\n/* 137 */ this.msgSize = this.folder.getProtocol().list(this.msgnum) - this.hdrSize; \n/* 138 */ return this.msgSize;\n/* */ } \n/* 140 */ } catch (EOFException eex) {\n/* 141 */ this.folder.close(false);\n/* 142 */ throw new FolderClosedException(this.folder, eex.toString());\n/* 143 */ } catch (IOException ex) {\n/* 144 */ throw new MessagingException(\"error getting size\", ex);\n/* */ } \n/* */ }", "public abstract long getSize();", "public synchronized int resize(int newBytesPerId, int newBytesPerType, int newBytesPerPath)\n throws IOException {\n if (this.bytesPerId > newBytesPerId && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per id when there are entries in the index\");\n if (this.bytesPerType > newBytesPerType && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per type when there are entries in the index\");\n if (this.bytesPerPath > newBytesPerPath && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per path when there are entries in the index\");\n if (this.isReadOnly)\n throw new IllegalStateException(\"This index is readonly\");\n \n int newBytesPerSlot = newBytesPerId + newBytesPerType + newBytesPerPath;\n \n logger.info(\"Resizing uri index to {} ({}) slots and {} ({}) bytes per entry\", new Object[] { slots, this.slots, newBytesPerSlot, this.bytesPerSlot });\n \n String fileName = FilenameUtils.getBaseName(idxFile.getName());\n String fileExtension = FilenameUtils.getExtension(idxFile.getName());\n String idxFilenameNew = fileName + \"_resized.\" + fileExtension;\n File idxNewFile = new File(idxFile.getParentFile(), idxFilenameNew);\n long time = System.currentTimeMillis();\n \n logger.debug(\"Creating resized index at \" + idxNewFile);\n \n // Create the new index\n RandomAccessFile idxNew = null;\n try {\n idxNew = new RandomAccessFile(idxNewFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n // Write header\n idxNew.seek(IDX_START_OF_HEADER);\n idxNew.writeInt(indexVersion);\n idxNew.writeInt(newBytesPerId);\n idxNew.writeInt(newBytesPerType);\n idxNew.writeInt(newBytesPerPath);\n idxNew.writeLong(slots);\n idxNew.writeLong(entries);\n \n // Position to read the whole content\n idx.seek(IDX_START_OF_CONTENT);\n \n // Write entries\n for (int i = 0; i < slots; i++) {\n byte[] bytes = new byte[newBytesPerSlot];\n if (i < this.slots) {\n idx.read(bytes, 0, this.bytesPerSlot);\n idxNew.write(bytes);\n } else {\n // Write an empty line\n idxNew.write(bytes);\n }\n }\n \n logger.debug(\"Removing old index at \" + idxFile);\n \n // Close and delete the old index\n idx.close();\n if (!idxFile.delete())\n throw new IOException(\"Unable to delete old index file \" + idxFile);\n \n // Close the new index, and move it into the old index' place\n logger.debug(\"Moving resized index into regular position at \" + idxFile);\n idxNew.close();\n if (!idxNewFile.renameTo(idxFile))\n throw new IOException(\"Unable to move new index file to \" + idxFile);\n \n try {\n idx = new RandomAccessFile(idxFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n this.bytesPerSlot = newBytesPerSlot;\n this.bytesPerId = newBytesPerId;\n this.bytesPerType = newBytesPerType;\n this.bytesPerPath = newBytesPerPath;\n \n time = System.currentTimeMillis() - time;\n logger.info(\"Uri index resized in {}\", ConfigurationUtils.toHumanReadableDuration(time));\n return newBytesPerSlot;\n }", "public void directoryChange( int type, Set fileSet );", "private void updateByteCount(Label byteCountLabel, Label byteCountUnit, String unit, Number newByteCount, double offset) {\n double byteCount = newByteCount.longValue() + offset;\n /*\n The size of a kilobyte in bytes\n */\n long kilobyte = 1024;\n double KBCount = byteCount / kilobyte;\n double displayedCount = KBCount;\n if(KBCount > 1024){\n double MBCount = KBCount / kilobyte;\n if(MBCount > 1024){\n displayedCount = MBCount / kilobyte;\n if(unit.compareTo(\"GB\")!=0){\n unit = \"GB\";\n byteCountUnit.setText(unit);\n }\n } else {\n displayedCount = MBCount;\n if(unit.compareTo(\"MB\")!=0){\n unit = \"MB\";\n byteCountUnit.setText(unit);\n }\n }\n }\n byteCountLabel.setText(String.valueOf(df.format(displayedCount)));\n }", "private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }", "@Override\n public void folderChanged(IProject project, ResourceFolder folder, int eventType) {\n }", "private long directorySize(String name) {\n\t\tFile directory = new File(name);\n\t\tif (!directory.exists())\n\t\t\treturn 0;\n\t\tif (directory.isFile()) \n\t\t\treturn directory.length();\n\t\tlong length = 0;\n\t\tfor (File file : directory.listFiles()) {\n\t\t\tif (file.isFile())\n\t\t\t\tlength += file.length();\n\t\t\telse if (file.isDirectory())\n\t\t\t\tlength += directorySize(file.getPath());\n\t\t}\n\t\treturn length;\n\t}", "private void updateRecordCount() {\n // Set the count to 0, if the storage can not be accessed then the stored record count\n // will be left as 0\n mStoredRecordCount = 0;\n File rootFolder = getBaseFolder();\n if (rootFolder == null) {\n return;\n }\n\n // Each directory in this folder represents one record.\n File[] fileList = rootFolder.listFiles();\n if (fileList != null) {\n for (File eachFile : fileList) {\n if (eachFile.isDirectory()) {\n mStoredRecordCount++;\n }\n }\n }\n }", "protected void resizePanel() {\n\t\tif (drawingAreaIsBlank) { // may have become blank after deleting the last node manually, so panel must still be shrunk\n\t\t\tsetPreferredSize(new Dimension(0,0)); // put back to small size so scrollbars disappear\n\t\t\trevalidate();\n\t\t\treturn;\n\t\t}\n\t\tgetMaxMin(); // get the extent of the tree to the left, right, bottom\n\t\tsetPreferredSize(new Dimension(maxX, maxY));\n\t\trevalidate();\n\t}", "@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n mId = w / 2;\n mId = mId - mViewsCount * 9;\n }", "public void newFolderButtonClicked() {\n TreePath[] paths = _fileSystemTree.getSelectionPaths();\r\n List selection = getSelectedFolders(paths);\r\n if (selection.size() > 1 || selection.size() == 0)\r\n return; // should never happen\r\n \r\n File parent = (File) selection.get(0);\r\n \r\n final ResourceBundle resourceBundle = FolderChooserResource.getResourceBundle(Locale.getDefault());\r\n String folderName = JOptionPane.showInputDialog(_folderChooser, resourceBundle.getString(\"FolderChooser.new.folderName\"),\r\n resourceBundle.getString(\"FolderChooser.new.title\"), JOptionPane.OK_CANCEL_OPTION | JOptionPane.QUESTION_MESSAGE);\r\n \r\n if (folderName != null) {\r\n File newFolder = new File(parent, folderName);\r\n boolean success = newFolder.mkdir();\r\n \r\n TreePath parentPath = paths[0];\r\n boolean isExpanded = _fileSystemTree.isExpanded(parentPath);\r\n if (!isExpanded) { // expand it first\r\n _fileSystemTree.expandPath(parentPath);\r\n }\r\n \r\n LazyMutableTreeNode parentTreeNode = (LazyMutableTreeNode) parentPath.getLastPathComponent();\r\n BasicFileSystemTreeNode child = BasicFileSystemTreeNode.createFileSystemTreeNode(newFolder, _folderChooser);\r\n // child.setParent(parentTreeNode);\r\n if (success) {\r\n parentTreeNode.clear();\r\n int insertIndex = _fileSystemTree.getModel().getIndexOfChild(parentTreeNode, child);\r\n if (insertIndex != -1) {\r\n // ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).insertNodeInto(child, parentTreeNode, insertIndex);\r\n ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).nodeStructureChanged(parentTreeNode);\r\n // ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).addPath(parentPath, insertIndex, child);\r\n }\r\n }\r\n TreePath newPath = parentPath.pathByAddingChild(child);\r\n _fileSystemTree.setSelectionPath(newPath);\r\n _fileSystemTree.scrollPathToVisible(newPath);\r\n }\r\n }", "private void reFixForDel(WAVLNode y) { // in a case of deletion of a node that doesnt exist in the tree, the method will fix the size all the way to the root\r\n\t y.sizen++;\r\n\t while(y.parent!=null) {\r\n\t\t y=y.parent;\r\n\t\t y.sizen++;\r\n\t }\r\n }", "void onUpdate(long diskUsageSample);", "@Test\n \tpublic void testSize() throws FileNotFoundException {\n \n \t\tMain.main(new String[]{\n \t\t\t\tArgs.TEST_STYLE_ARG,\n \t\t\t\t\"--preserve-element-order\",\n \t\t\t\tArgs.TEST_RESOURCE_OSM + \"uk-test-1.osm.gz\"\n \t\t});\n \n \t\tFileSystem fs = ImgFS.openFs(Args.DEF_MAP_ID + \".img\");\n \t\tassertNotNull(\"file exists\", fs);\n \n \t\tList<DirectoryEntry> entries = fs.list();\n \t\tint count = 0;\n \t\tfor (DirectoryEntry ent : entries) {\n \t\t\tString ext = ent.getExt();\n \n \t\t\tint size = ent.getSize();\n \t\t\tif (ext.equals(\"RGN\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"RGN size\", 153466, size);\n \t\t\t} else if (ext.equals(\"TRE\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"TRE size\", 1897, size);\n \t\t\t} else if (ext.equals(\"LBL\")) {\n \t\t\t\tcount++;\n\t\t\t\tassertEquals(\"LBL size\", 28351, size);\n \t\t\t}\n \t\t}\n \t\tassertTrue(\"enough checks run\", count >= 3);\n \t}", "int getCurrentSize();", "public double getTreeSize()\n {\n return treesize; \n }", "@Override\n public FileStorageResult<String> updateLastKnownFolder(FileStorageFolder folder, boolean ignoreWarnings, FileStorageFolder toUpdate) throws OXException {\n if (SetterAwareFileStorageFolder.class.isInstance(toUpdate) && ((SetterAwareFileStorageFolder) toUpdate).containsSubscribed()) {\n\n //Check for un-subscription and check if the last folder is going to be unscubscribed\n if (false == toUpdate.isSubscribed()) {\n List<FileStorageFolder> subscribedFolders = getVisibleRootFolders();\n Optional<FileStorageFolder> folderToUnsubscibe = subscribedFolders.stream().filter(f -> f.getId().equals(folder.getId())).findFirst();\n if (folderToUnsubscibe.isPresent()) {\n subscribedFolders.removeIf(f -> f == folderToUnsubscibe.get());\n if (subscribedFolders.isEmpty()) {\n //The last folder is going to be unsubscribed\n if (ignoreWarnings) {\n //Delete\n getService().getAccountManager().deleteAccount(getAccount(), session);\n } else {\n //Throw a warning\n String folderName = folderToUnsubscibe.get().getName();\n String accountName = getAccount().getDisplayName();\n return FileStorageResult.newFileStorageResult(null, Arrays.asList(ShareSubscriptionExceptions.ACCOUNT_WILL_BE_REMOVED.create(folderName, accountName)));\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }\n }\n }\n\n //Do the update\n getSubscribedHelper().setSubscribed(session, folder, B(toUpdate.isSubscribed()));\n return FileStorageResult.newFileStorageResult(folder.getId(), null);\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }", "private void recalculate()\n {\n this.totalPages = this.contents.size() > 54 ? this.contents.size() / 45 : 1;\n }", "public static long getAllSize2(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) && !file.getPath().equals(path.getPath()))\n \t\t\t{\n\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\treturn size;\n\t}", "public void nodeSize(String str) { setSelected(node_sizes, str); }", "public folderize() {\n }", "protected void moveNode( String workspaceName,\n NodeKey key,\n Name primaryType,\n Set<Name> mixinTypes,\n NodeKey oldParent,\n NodeKey newParent,\n Path newPath,\n Path oldPath ) {\n\n }", "@Override\n protected void sizeChanged () {\n }", "@Override\n protected void execute() {\n if (leftOld.next != null) leftOld.next.prev = leftNew;\n if (rightOld.prev != null) rightOld.prev.next = rightNew;\n \n // Update the first and last nodes.\n if (rightOld.prev == null) first = rightNew;\n if (leftOld.next == null) last = leftNew;\n \n // Update the width.\n width = Math.max(rightNew.point.x, width);\n }", "private void updateHeight() {\n int leftHeight = height(this.leftChild);\n int rightHeight = height(this.rightChild);\n this.height = (rightHeight > leftHeight ? rightHeight : leftHeight) + 1;\n }", "private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}", "public void updateNodeBoundsChanges(Object src) {\n\t\t\n\t\tif (src == group) {\n\t\t\t\n\t\t\tint numToAdd = nodeAddList.size();\n\t\t\tif (numToAdd > 0) {\n\t\t\t\tfor (int i = 0; i < numToAdd; i++) {\n\t\t\t\t\tNode node = nodeAddList.get(i);\n\t\t\t\t\tgroup.addChild(node);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint numToRemove = nodeRemoveList.size();\n\t\t\tif (numToRemove > 0) {\n\t\t\t\tfor (int i = 0; i < numToRemove; i++) {\n\t\t\t\t\tNode node = nodeRemoveList.get(i);\n\t\t\t\t\tgroup.removeChild(node);\n\t\t\t\t}\n\t\t\t\tnodeRemoveList.clear();\n\t\t\t}\n\t\t\t\n\t\t\tnodeRemoveList.addAll(nodeAddList);\n\t\t\tnodeAddList.clear();\n\t\t\t\n\t\t\tconfig = false;\n\t\t}\n\t}", "private void updateQueueSize() {\n\t\tsims.minQS = state.queueSize < sims.minQS ? state.queueSize : sims.minQS;\n\t\tsims.maxQS = state.queueSize > sims.maxQS ? state.queueSize : sims.maxQS;\n\t}", "public void UpNumberOfVisitedNodes() {\n NumberOfVisitedNodes++;\n }", "Update withFolderPath(String folderPath);", "public void enlargeSquare()\n {\n squareSize++;\n }", "public int actualSize(final Context<BTree, BTreeLeaf> context)\n\t{\n\t\treturn SIEntry.size(context.fileFormat);\n\t}", "private void onFolderChange(FolderChangeEvent event) {\n\t\tthis.currentResource = null;\n\t}", "private static long dirSize(File dir) {\n\t long result = 0;\n\t File[] fileList = dir.listFiles();\n\n\t for(int i = 0; i < fileList.length; i++) {\n\t // Recursive call if it's a directory\n\t if(fileList[i].isDirectory()) {\n\t result += dirSize(fileList[i]);\n\t } else {\n\t // Sum the file size in bytes\n\t result += fileList[i].length();\n\t }\n\t }\n\t return result; // return the file size\n\t}", "private int decreaseDistanceBetweenChildren(NodeAlignment newAlignment,\n\t\t\tList<DrawMindMap> children) {\n\t\tif (children.size() == 1) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (newAlignment.isVertical()) {\n\t\t\tif (children.size() == 2) {\n\t\t\t\tdouble toMove = -view.getInvXscale() * HORIZONTAL_DISTANCE_3;\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(1).node),\n\t\t\t\t\t\tnew Coords(toMove, 0, 0), null, null, view);\n\t\t\t\treturn HORIZONTAL_DISTANCE_3;\n\t\t\t}\n\t\t} else {\n\t\t\tif (children.size() == 2) {\n\t\t\t\tdouble toMove = view.getInvYscale() * VERTICAL_DISTANCE_3;\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(1).node),\n\t\t\t\t\t\tnew Coords(0, toMove, 0), null, null, view);\n\t\t\t\treturn VERTICAL_DISTANCE_3;\n\t\t\t} else if (children.size() == 3) {\n\t\t\t\tdouble toMove1 = view.getInvYscale() * VERTICAL_DISTANCE_4;\n\t\t\t\tdouble toMove2 = view.getInvYscale() * 2 * VERTICAL_DISTANCE_4;\n\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(1).node),\n\t\t\t\t\t\tnew Coords(0, toMove1, 0), null, null, view);\n\t\t\t\tMoveGeos.moveObjects(Collections.singletonList(children.get(2).node),\n\t\t\t\t\t\tnew Coords(0, toMove2, 0), null, null, view);\n\t\t\t\treturn 2 * VERTICAL_DISTANCE_4;\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "private void changeLayoutSize(Dimension newSize, RepType rtype) {\n layoutPanel.inhNList = repPattern(newSize, layoutPanel.inhNList, rtype);\n layoutPanel.activeNList = repPattern(newSize, layoutPanel.activeNList,\n rtype);\n layoutPanel.probedNList = repPattern(newSize, layoutPanel.activeNList,\n rtype);\n\n layoutPanel.changeLayoutSize(newSize);\n }", "public static void runFolders(File srcDir, String strSkinFolderName, String _relativePath,\n String folderContentType) {\n\n String relativePath = _relativePath;\n\n File[] list = srcDir.listFiles();\n\n for (int i = 0; i < list.length; i++) {\n File fileItem = list[i];\n if (fileItem.isDirectory()) {\n String prevRelativePath = new String(relativePath);\n relativePath += \"/\" + fileItem.getName();\n runFolders(fileItem, strSkinFolderName, relativePath, folderContentType);\n relativePath = prevRelativePath;\n } else {\n try {\n if (log4j.isDebugEnabled())\n log4j.debug(list[i] + \" Parent: \" + fileItem.getParent() + \" getName() \"\n + fileItem.getName() + \" canonical: \" + fileItem.getCanonicalPath());\n if (folderContentType == \"RTL\") {\n count++;\n modifySkin(list[i]);\n } else if (folderContentType == \"LTR\") {\n count++;\n }\n } catch (Exception e) {\n log4j.error(\"IOException: \" + e);\n }\n }\n }\n }", "private void updateStorageInfo(){\n\n long cacheSize = updateStoragePrefreneces(this);\n //cache management ends here\n\n TextView tv = (TextView) findViewById(R.id.sdcardstate_value);\n final String state = Environment.getExternalStorageState();\n\n boolean mSdCardAvailable = Environment.MEDIA_MOUNTED.equals(state);\n tv.setText((mSdCardAvailable ? \"Mounted\" : \"Not Available\") );\n if (!mSdCardAvailable) {\n tv.setTextColor(Color.RED);\n tv.setTypeface(null, Typeface.BOLD);\n }\n\n tv = (TextView) findViewById(R.id.version_text);\n tv.setText(BuildConfig.VERSION_NAME + \" \" + BuildConfig.BUILD_TYPE);\n\n tv = (TextView) findViewById(R.id.mainstorageInfo);\n tv.setText(Configuration.getInstance().getOsmdroidTileCache().getAbsolutePath() + \"\\n\" +\n \"Cache size: \" + Formatter.formatFileSize(this,cacheSize));\n }", "private void getSizeDfs(int nodeIdx, int parentNodeIdx){\r\n\t\tsubTreeSize[nodeIdx] = 1;\t\t//include this node\r\n\t\tmaxSubTreeSize[nodeIdx] = 0;\t//exclude this node\r\n\t\t\r\n\t\t//recursively get the size of children and add up\r\n\t\tfor(Integer idx: cities[nodeIdx].adjacentNodeIndices){\r\n\t\t\tif(parentNodeIdx == idx || visited[idx]) continue;\r\n\t\t\t\r\n\t\t\tgetSizeDfs(idx, nodeIdx);\r\n\t\t\tsubTreeSize[nodeIdx] += subTreeSize[idx];\r\n\t\t\t\r\n\t\t\tif(subTreeSize[idx] > maxSubTreeSize[nodeIdx])\r\n\t\t\t\tmaxSubTreeSize[nodeIdx] = subTreeSize[idx];\r\n\t\t}\r\n\t}", "public void setThumbnailSize(final int newImageSize) {\r\n\r\n\t\tint newGalleryItemSize = newImageSize + _photoBorderSize;\r\n\r\n\t\tif (newGalleryItemSize == _galleryMT20.getItemWidth()) {\r\n\t\t\t// nothing has changed\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfinal int prevGalleryItemSize = _galleryMT20.getItemWidth();\r\n\r\n\t\t// update gallery\r\n\t\tfinal int adjustedItemSize = _galleryMT20.zoomGallery(newGalleryItemSize, false);\r\n\r\n\t\tif (adjustedItemSize == -1 || adjustedItemSize == prevGalleryItemSize) {\r\n\t\t\t// nothing has changed\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tPhotoLoadManager.stopImageLoading(false);\r\n\r\n\t\tif (adjustedItemSize != newGalleryItemSize) {\r\n\r\n\t\t\t/*\r\n\t\t\t * size has been modified, this case can occure when the gallery is switching the\r\n\t\t\t * scrollbars on/off depending on the content\r\n\t\t\t */\r\n\r\n\t\t\tnewGalleryItemSize = adjustedItemSize;\r\n\t\t}\r\n\r\n\t\tupdateUI_AfterZoomInOut(newGalleryItemSize);\r\n\t}", "public void decreaseSize(int delta){\n\t\tif(scale > scaleMin)\n\t\t\tscale -= enlarge *delta;\n\t}", "public int calculateSize(NoArvore tree)\n {\n int size = 0;\n if (tree == null)\n return 0;\n else {\n size = calculateSize (tree.getEsquerda()) + calculateSize (tree.getDireita()) + 1;\n return size;\n }\n }", "@Override\n public Object change(MutableServerEntry entry) {\n Long oldValue = (Long)entry.getPathValue(path);\n Long newValue = oldValue.longValue() * multiplier;\n entry.setPathValue(path, newValue);\n return newValue;\n }", "public void updateUsedStorage(long consumedStorage) {\n this.usedStorage = consumedStorage;\n }", "private void processFolders(List<File> folderList, java.io.File parentFolder) {\n // process each folder to see if it needs to be updated;\n for (File f : folderList) {\n String folderName = f.getTitle();\n java.io.File localFolder = new java.io.File(parentFolder, folderName);\n Log.e(\"folder\",localFolder.getAbsolutePath());\n if (!localFolder.exists())\n localFolder.mkdirs();\n getFolderContents(f, localFolder);\n }\n }", "@Override\n\t\tprotected void onProgressUpdate(String... values) {\n\t\t\tlong total = Long.parseLong(values[0]);\n\t\t\tdialog.setProgress((int) ((total * 100) / lengthOfFile));\n\t\t\tdialog.setMessage((total / (1024 * 1014)) + \"MB/\"\n\t\t\t\t\t+ (lengthOfFile / (1024 * 1024)) + \"MB\");\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "public void _increaseTableSize(){\n\t\tNode[] largerBuckets = new Node[_numBuckets * 2 + 1];\r\n\t\tNode[] oldBuckets = _buckets;\r\n\t\t_buckets = largerBuckets;\r\n\t\t_numBuckets = _numBuckets * 2 + 1;\r\n\t\t_count = 0;\r\n\t\t_loadFactor = 0.0;\r\n\t\tint i = 0;\r\n\t\tfor(Node eachNode : oldBuckets){\r\n\t\t\t_buckets[i] = eachNode;\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public long size(String path);" ]
[ "0.63455915", "0.6331331", "0.6309591", "0.62930495", "0.61523443", "0.6149189", "0.61231667", "0.6091547", "0.58058023", "0.57322407", "0.57189256", "0.57060975", "0.5582808", "0.5561512", "0.55607325", "0.5525001", "0.55084723", "0.5499414", "0.53192896", "0.53126323", "0.52665234", "0.52260494", "0.51614565", "0.51577747", "0.5144763", "0.5136301", "0.51361567", "0.5119447", "0.507578", "0.5068592", "0.50557417", "0.5054638", "0.50304365", "0.50298226", "0.5029613", "0.50130635", "0.5001092", "0.49922532", "0.49724865", "0.49686742", "0.4966286", "0.49649394", "0.49596563", "0.49463046", "0.4935493", "0.49174568", "0.49150684", "0.4914508", "0.49017403", "0.48961085", "0.48952922", "0.48861623", "0.48825186", "0.48795706", "0.48793852", "0.48703796", "0.48658213", "0.48645723", "0.48489943", "0.48484966", "0.4848237", "0.48477077", "0.48404393", "0.4836216", "0.48335195", "0.4830037", "0.4822499", "0.48194587", "0.48170504", "0.48068807", "0.48038098", "0.48027903", "0.47974494", "0.47958648", "0.47914806", "0.4787109", "0.47807872", "0.47782415", "0.47744936", "0.4773582", "0.47697866", "0.47626823", "0.47573376", "0.47556168", "0.47523028", "0.4737002", "0.473376", "0.47282678", "0.47272295", "0.47244084", "0.47201288", "0.47192657", "0.47085455", "0.47024933", "0.4700585", "0.46984935", "0.4690903", "0.4690279", "0.46866098", "0.46854815" ]
0.66805696
0
Called before the node is deleted, decrements the parent quota folder size
public void beforeDeleteNode(NodeRef deleted) { logger.debug("[FolderQuota] - beforeDeleteNode"); NodeRef quotaParent = usage.getParentFolderWithQuota(deleted); if(quotaParent != null) { Long size = usage.getChangeSize(deleted); updateSize(quotaParent, size * -1); //queue.enqueueEvent(quotaParent, size * -1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onMoveNode(ChildAssociationRef before, ChildAssociationRef after) {\n logger.debug(\"[FolderQuota] - onMoveNode\");\n NodeRef quotaParentBefore = usage.getParentFolderWithQuota(before.getParentRef());\n NodeRef quotaParentAfter = usage.getParentFolderWithQuota(after.getParentRef());\n long change = 0L;\n \n //only calculate the change size once, if either the before or after parent have a quota.\n if(quotaParentBefore != null || quotaParentAfter != null)\n {\n \tchange = usage.getChangeSize(before.getChildRef());\n }\n \n \tif(quotaParentBefore != null)\n \t{\n \t\t//queue.enqueueEvent(quotaParentBefore, change * -1);\n \t\tupdateSize(quotaParentBefore, change * -1);\n logger.debug(String.format(\"[FolderQuota] - Node %s moved from a quota folder, added to the queue; size %s\", quotaParentBefore, change * -1));\n \t}\n \tif(quotaParentAfter != null)\n \t{\n \t\t//queue.enqueueEvent(quotaParentAfter, change);\n \t\tupdateSize(quotaParentAfter, change);\n \t\tlogger.debug(String.format(\"[FolderQuota] - Node %s moved to a quota folder, added to the queue; size %s\", quotaParentBefore, change));\n \t}\n\t}", "public void deleteMin() {\n root = deleteMin(root);\n }", "public void deleteMin() {\n root = deleteMin(root);\n }", "@Override\n\t\tprotected void _delete() {\n\t\t\toldValue = 0;\n\t\t\tnewValue = 0;\n\t\t}", "void deleteTreeRef(Node nodeRef) {\n\t\tSystem.out.println(\"\\nSize of given Tree before delete : \" + sizeOfTreeWithRecursion(nodeRef));\n\t\tdeleteTree(nodeRef);\n\t\tnodeRef = null;\n\n\t\tSystem.out.println(\"\\nSize of given Tree after delete : \" + sizeOfTreeWithRecursion(nodeRef));\n\t}", "private void reFixForDel(WAVLNode y) { // in a case of deletion of a node that doesnt exist in the tree, the method will fix the size all the way to the root\r\n\t y.sizen++;\r\n\t while(y.parent!=null) {\r\n\t\t y=y.parent;\r\n\t\t y.sizen++;\r\n\t }\r\n }", "public void delete() {\n this.root = null;\n }", "public void deleteMax() {\n root = deleteMax(root);\n }", "public void deleteMax() {\n root = deleteMax(root);\n }", "public synchronized void cleanup() {\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) { // children will be null if the directory does\n\t\t\t\t\t\t\t\t// not exist.\n\t\t\tfor (int i = 0; i < children.length; i++) { // remove too small file\n\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\tif (!child.equals(new File(mStorageDirectory, NOMEDIA))\n\t\t\t\t\t\t&& child.length() <= MIN_FILE_SIZE_IN_BYTES) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) {\n\t\t//if the change size will push the folder over quota, roll back the current transaction\n\t\tfinal UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction();\n\n\t\tAuthenticationUtil.runAsSystem(new RunAsWork<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object doWork() throws Exception {\n\t\t\t\tlogger.debug(\"[FolderQuota] - onContentPropertyUpdate\");\n\t\t\t\tlong change = 0;\n\n\t\t\t\t//beforeValue can be null on new item creation\n\t\t\t\tif(beforeValue == null) change = afterValue.getSize();\n\t\t\t\telse change = afterValue.getSize() - beforeValue.getSize();\n\n\t\t\t\tNodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef);\n\n\t\t\t\tif(change > 0) {\n\t\t\t\t\tif(quotaParent != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tNodeService nodeService = serviceRegistry.getNodeService();\n\t\t\t\t\t\tLong quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA);\n\t\t\t\t\t\tLong currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n\t\t\t\t\t\t//quotaSize can be null if the aspect has been added but the quota has not yet been set\n\t\t\t\t\t\tif(quotaSize != null) {\n\t\t\t\t\t\t\tif(currentSize + change > quotaSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(SystemException ex)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - An upload to folder %s failed due to quota\", quotaParent));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//queue.enqueueEvent(quotaParent, change);\n\t\t\t\t\t\t\t\tupdateSize(quotaParent, change);\n\t\t\t\t\t\t\t\tlogger.debug(String.format(\"[FolderQuota] - Added nodeRef %s to the queue; size change %s\", nodeRef, change));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - Folder %s has the quota aspect added but no quota set\", quotaParent));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n }", "@objid (\"808c0839-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public void delete() {\n // List children from the end to avoid reordering of the other GMs\n for (int i = this.children.size() - 1; i >= 0; i--) {\n GmNodeModel child = this.children.get(i);\n child.delete();\n \n // When several elements have been deleted consecutively, fix the next index\n if (i > this.children.size()) {\n i = this.children.size();\n }\n }\n \n assert (this.children.isEmpty()) : \"All children should have been deleted:\" + this.children;\n \n super.delete();\n }", "@Override\n\tpublic void onPreNodeDelete(NodeModel oldParent, NodeModel selectedNode, int index) {\n\n\t}", "void updateSize() {\n setMeAndMyParentsAsDirty();\n }", "public void deallocateNode(){\n this.processId = NO_PROCESS;\n this.full = false;\n }", "public void delete() {\n URL url = DELETE_FOLDER_LOCK_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID());\n BoxAPIRequest request = new BoxAPIRequest(this.getAPI(), url, \"DELETE\");\n request.send().close();\n }", "public void deleteMin()\t\t\t\t//delete smallest key\n\t{\n\t\troot=deleteMin(root);\n\t}", "public void updateSize() {\n\t\t\tthis.setSize();\n\t\t\tif (this.checkRoot()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tparent.updateSize();\n\t\t}", "public void deleteNode() {\n TreeNode pNode = this.getParentNode();\n int id = this.getSelfId();\n\n if (pNode != null) {\n pNode.deleteChildNode(id);\n }\n }", "public void deleteNode ()\n {\n ConfigTreeNode node = _tree.getSelectedNode();\n ConfigTreeNode parent = (ConfigTreeNode)node.getParent();\n int index = parent.getIndex(node);\n ((DefaultTreeModel)_tree.getModel()).removeNodeFromParent(node);\n int ccount = parent.getChildCount();\n node = (ccount > 0) ?\n (ConfigTreeNode)parent.getChildAt(Math.min(index, ccount - 1)) : parent;\n if (node != _tree.getModel().getRoot()) {\n _tree.setSelectionPath(new TreePath(node.getPath()));\n }\n DirtyGroupManager.setDirty(group, true);\n }", "public static int size_parent() {\n return (8 / 8);\n }", "public synchronized void cleanupSimple() {\n\t\tfinal int maxNumFiles = 1000;\n\t\tfinal int numFilesToDelete = 50;\n\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) {\n\t\t\tif (children.length > maxNumFiles) {\n\t\t\t\tfor (int i = children.length - 1, m = i - numFilesToDelete; i > m; i--) {\n\t\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void delete(E e) {\n\t\tNode node = getNode(root, e);\n\t\tif (node == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tif (parentOfLast.right != null) {\n\t\t\tnode.data = parentOfLast.right.data;\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tnode.data = parentOfLast.left.data;\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t\tsize--;\n\t}", "public void delete(int data) {\n root = delete(root, data);\n size--;\n }", "public void decreaseDegreeOfUsedNodes() {\n\t\tthis.v0.decreseDegree();\n\t\tthis.v1.decreseDegree();\n\t}", "@Override\n\tpublic int delete() {\n\t\treturn 0;\n\t}", "protected void trimToSize() {\n\tnodeList.trimToSize();\n\tedgeList.trimToSize();\n }", "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long execute() throws Throwable\n \t\t\t\t{\n \t\t\t\t\tLong currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n \t\t\t\t\tif (currentSize == null) {\n \t\t\t\t\t\tcurrentSize=0L;\n \t\t\t\t\t}\n \t\t\t\t\tLong newSize = currentSize + sizeChange;\n \t\t\t\t\tserviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize);\n \t\t\t\t\tlogger.debug(String.format(\"Property %s set to %s\",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize));\n \t\t\t\t\treturn newSize;\n \t\t\t\t}\n \t\t\t};\n \t\t\ttry\n \t\t\t{\n \t\t\t\tRetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper();\n \t\t\t\tLong newSize = txnHelper.doInTransaction(callback, false, true);\n\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\n \t\t\t\t\t\t\t\"Incremented folder size on quota folder node: \\n\" +\n \t\t\t\t\t\t\t\t\t\" Node: \" + quotaFolder + \"\\n\" +\n \t\t\t\t\t\t\t\t\t\" New Size: \" + newSize);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (InvalidNodeRefException e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\"Unable to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (Throwable e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(e);\n \t\t\t\t}\n \t\t\t\tlogger.error(\"Failed to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t}\n \t\t\treturn \"\";\n \t\t}\n \t}, AuthenticationUtil.getSystemUserName());\n }", "public Builder clearTotalFreeSpaceInBytes() {\n \n totalFreeSpaceInBytes_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearTotalFreeSpaceInBytes() {\n \n totalFreeSpaceInBytes_ = 0L;\n onChanged();\n return this;\n }", "public void trimToSize() {\n }", "public void delete() {\r\n\t\t\tif (!isDeleted && handles.remove(this)) {\r\n\t\t\t\telementsUsed -= count;\r\n\t\t\t\tisDeleted = true;\r\n\t\t\t\tif (elementsUsed < numElements / 4) {\r\n\t\t\t\t\tcompact();\r\n\t\t\t\t\tnumElements = Math.max(10, elementsUsed * 2);\r\n\t\t\t\t}\r\n\t\t\t\tshapePeer.vboHandle = null;\r\n\t\t\t}\r\n\t\t}", "public void delete(int index) {\n\t\tNode node = getNode(index+1);\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tnode.data = parentOfLast.right != null ? parentOfLast.right.data : parentOfLast.left.data;\n\t\tif (parentOfLast.right != null) {\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t}", "public void MarkForDeletion();", "public abstract int deleteMin();", "public void delete(Integer data) {\n ArrayList<Node> parents = new ArrayList<>();\n Node nodeDel = this.root;\n Node parent = this.root;\n Node imBalance;\n Integer balanceFactor;\n boolean isLeftChild = false;\n if (nodeDel == null) {\n return;\n }\n while (nodeDel != null && !nodeDel.getData().equals(data)) {\n parent = nodeDel;\n if (data < nodeDel.getData()) {\n nodeDel = nodeDel.getLeftChild();\n isLeftChild = true;\n } else {\n nodeDel = nodeDel.getRightChild();\n isLeftChild = false;\n }\n parents.add(nodeDel);\n }\n\n if (nodeDel == null) {\n return;\n// delete a leaf node\n } else if (nodeDel.getLeftChild() == null && nodeDel.getRightChild() == null) {\n if (nodeDel == root) {\n root = null;\n } else {\n if (isLeftChild) {\n parent.setLeftChild(null);\n } else {\n parent.setRightChild(null);\n }\n }\n }\n// deleting a node with degree of one\n else if (nodeDel.getRightChild() == null) {\n if (nodeDel == root) {\n root = nodeDel.getLeftChild();\n } else if (isLeftChild) {\n parent.setLeftChild(nodeDel.getLeftChild());\n } else {\n parent.setRightChild(nodeDel.getLeftChild());\n }\n } else if (nodeDel.getLeftChild() == null) {\n if (nodeDel == root) {\n root = nodeDel.getRightChild();\n } else if (isLeftChild) {\n parent.setLeftChild(nodeDel.getRightChild());\n } else {\n parent.setRightChild(nodeDel.getRightChild());\n }\n }\n // deleting a node with degree of two\n else {\n Integer minimumData = minimumData(nodeDel.getRightChild());\n delete(minimumData);\n nodeDel.setData(minimumData);\n }\n parent.setHeight(maximum(height(parent.getLeftChild()), height(parent.getRightChild())));\n balanceFactor = getBalance(parent);\n if (balanceFactor <= 1 && balanceFactor >= -1) {\n for (int i = parents.size() - 1; i >= 0; i--) {\n imBalance = parents.get(i);\n balanceFactor = getBalance(imBalance);\n if (balanceFactor > 1 || balanceFactor < -1) {\n if (imBalance.getData() > parent.getData()) {\n parent.setRightChild(rotateCase(imBalance, data, balanceFactor));\n } else\n parent.setLeftChild(rotateCase(imBalance, data, balanceFactor));\n break;\n }\n }\n }\n }", "private void SizesUpdate(IAVLNode parent) { \r\n\t\t\tIAVLNode curr = parent;\r\n\t\t\t\r\n\t\t\t//down check\r\n\t\t\tif(curr != null && curr.getRight().isRealNode())\r\n\t\t\t\tcurr.getRight().setSize(curr.getRight().getRight().getSize() + curr.getRight().getLeft().getSize() + 1);\r\n\t\t\tif(curr != null && curr.getLeft().isRealNode())\r\n\t\t\t\tcurr.getLeft().setSize(curr.getLeft().getRight().getSize() + curr.getLeft().getLeft().getSize() + 1);\r\n\t\t\t\r\n\t\t\twhile(curr != null)\r\n\t\t\t {\r\n\t\t\t\t int newSize = curr.getRight().getSize() + curr.getLeft().getSize() + 1;\r\n\t\t\t\t if(curr.getSize() != newSize)\r\n\t\t\t\t \t curr.setSize(newSize);\r\n\t\t\t\t\tcurr = curr.getParent(); \r\n\t\t\t }\r\n\t\t}", "public void delete(int time) {\n\t\troot = delete(root, time);\n\t}", "@Override\n public void run() {\n updateTotalSizeOfFilesInDir(child);\n }", "public int Delete_Min()\n {\n \tthis.array[0]=this.array[this.getSize()-1];\n \tthis.size--; \n \tthis.array[0].setPos(0);\n \tint numOfCompares = heapifyDown(this, 0);\n \treturn numOfCompares;\n }", "public void unsetQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(QUANTITY$10, 0);\n }\n }", "public void delete(Node<T> x) {\n decreaseKey(x, min.key);\n extractMin();\n }", "private Node deleteMin(Node n)\n {\n if (n.left == null) \n return n.right;\n n.left = deleteMin(n.left); \n n.count= 1 + size(n.left)+ size(n.right); \n return n;\n }", "public void markMaxRecordsPerFileDelete() throws JNCException {\n markLeafDelete(\"maxRecordsPerFile\");\n }", "@Override\r\n\tpublic int delete() throws Exception {\n\t\treturn 0;\r\n\t}", "public void markForDeletion() {\n\t\tthis.mustBeDeleted = true;\n\t}", "public void deleteMin();", "@Override\n public void clear() {\n size = 0;\n root = null;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "public synchronized void delete() {\n if (this.agpCptr != 0) {\n if (this.isAgpCmemOwn) {\n this.isAgpCmemOwn = false;\n CoreJni.deleteCoreRenderNodeDescArrayView(this.agpCptr);\n }\n this.agpCptr = 0;\n }\n }", "public void trimToSize();", "public void sizeDecrease1() {\n\t\t _size--;\n\t}", "private void reclaimSpace(int space)\r\n/* 269: */ {\r\n/* 270:295 */ assert (space >= 0);\r\n/* 271:296 */ this.availableSharedCapacity.addAndGet(space);\r\n/* 272: */ }", "public void deleteMax()\t\t\t\t//delete largest key\n\t{\n\t\troot=deleteMax(root);\n\t}", "private int deleteMax() {\n int ret = heap[0];\n heap[0] = heap[--size];\n\n // Move root back down\n int pos = 0;\n while (pos < size / 2) {\n int left = getLeftIdx(pos), right = getRightIdx(pos);\n\n // Compare left and right child elements and swap accordingly\n if (heap[pos] < heap[left] || heap[pos] < heap[right]) {\n if (heap[left] > heap[right]) {\n swap(pos, left);\n pos = left;\n } else {\n swap(pos, right);\n pos = right;\n }\n } else {\n break;\n }\n }\n\n return ret;\n }", "private void decrementBucketSize(int bucket) {\n bucketsSize.decrementAndGet(bucket);\n }", "public static int size_parentId() {\n return (16 / 8);\n }", "public void delete() throws AlreadyDeletedException{\r\n\tif (this.isDeleted() == false) {\r\n\t\tDirectory ref = this.getDir();\r\n \tref.remove(this);\r\n \tthis.setDelete(true);\t\r\n \tthis.setModificationTime();\r\n\t}\r\n\telse {\r\n\t\tthrow new AlreadyDeletedException(this);\t\r\n\t\t\r\n\t}\r\n}", "void delete(int deleteSize);", "private int cleanupSegmentsToMaintainSize(Log log) {\n if (log.config.retentionSize < 0 || log.size() < log.config.retentionSize)\n return 0;\n\n final AtomicLong diff = new AtomicLong(log.size() - log.config.retentionSize);\n\n return log.deleteOldSegments(new Predicate<LogSegment>() {\n @Override\n public boolean apply(LogSegment segment) {\n if (diff.get() - segment.size() >= 0) {\n diff.addAndGet(-segment.size());\n return true;\n } else {\n return false;\n }\n }\n });\n }", "private void deleteNode(Cat valueToDelete, Node root){\n Node temp = findNode(valueToDelete, root);\n if(temp.getRight()==null){\n Node parent = temp.getParent();\n if(temp.getLeft()==null){\n temp.setParent(null);\n if(temp==parent.getRight()){\n parent.setRight(null);\n fixBalanceValues(parent,-1);\n }\n else{\n parent.setLeft(null);\n fixBalanceValues(parent,1);\n }\n \n }\n else{\n //copy value of leftchild into the node to deletes data and delete it's leftchild\n temp.setData(temp.getLeft().getData());\n temp.setLeft(null);\n fixBalanceValues(temp, 1);\n }\n }\n Node nodeToDelete = temp.getRight();\n if(nodeToDelete.getLeft()==null){\n temp.setData(nodeToDelete.getData());\n temp.setRight(null);\n nodeToDelete.setParent(null);\n fixBalanceValues(temp,-1);\n }\n else{\n while(nodeToDelete.getLeft()!=null){\n nodeToDelete=nodeToDelete.getLeft(); \n } \n temp.setData(nodeToDelete.getData());\n Node parent = nodeToDelete.getParent();\n parent.setLeft(null);\n nodeToDelete.setParent(null);\n fixBalanceValues(parent,1);\n }\n \n \n }", "@Test\n public void testExceedsQuotaOnStartup() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user\", ConfigFactory.empty());\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n // Should not be throwing the exception\n this._quotaManager.init(dags);\n }", "private void removePrecious(CacheRepositoryEntry entry)\n {\n try {\n long size = entry.getSize();\n synchronized (_precious) {\n if (_precious.remove(entry.getPnfsId())) {\n _preciousSpace -= size;\n }\n }\n } catch (CacheException e) {\n _log.error(\"failed to get entry size : \" + e.getMessage());\n }\n }", "public T deleteMin()\n\t{\t\n\t\t//declating variables\n\t\tint minIndex = 0;\n\t\tboolean flag = false;\n\t\tboolean flag2 = false;\n\t\t//if size == 0; returns null\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t//if checks size and deletes accordingly.\n\t\tif(size == 1)\n\t\t{\n\t\t\tT tempo = array[0];\n\t\t\tarray[0] = null;\n\t\t\tsize--;\n\t\t\treturn tempo;\n\n\t\t}\n\n\t\tif(size == 2)\n\t\t{\n\t\t\tT temp = array[0];\n\t\t\tarray[0] = array[1];\n\t\t\tarray[1] = null;\n\t\t\tsize--;\n\t\t\treturn temp;\n\n\t\t}\n\t\tif(size == 3)\n\t\t{\n\t\t\tT tempo = array[0];\n\t\t\tint small = grandChildMin(1, 2);\n\t\t\tarray[0] = array[small];\n\t\t\tif(small == 2)\n\t\t\t{\n\t\t\t\tarray[small] = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tarray[1] = array[2];\n\t\t\t\tarray[2] = null;\n\t\t\t}\n\n\t\t\tsize--;\n\t\t\treturn tempo;\n\t\t}\n\n\t\t//if size > 3 does sophisticated deleting\n\t\tT temp = array[0];\n\t\tarray[0] = array[size-1];\n\t\tarray[size-1] = null;\n\t\tsize--;\n\t\tint index = 0;\n\n\t\t//gets the smallest of the children & grandchildren\n\t\tint smallest = min(index).get(0);\n\t\t//while it has grandchildren, keeps going\n\t\twhile(smallest != 0)\n\t\t{\n\t\t\t//doesn't switch if im less than the smallest grandchild\n\t\t\t//& breaks\n\t\t\tif(object.compare(array[index], array[smallest]) <= 0 )\n\t\t\t{\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//special case when i could switch with child or grandchild\n\t\t\tif( min(index).size() > 1)\n\t\t\t{\n\t\t\t\tflag2 = true;\n\t\t\t}\n\n\t\t\t//switches the locations and updates index\n\t\t\tT lemp = array[index];\n\t\t\tarray[index] = array[smallest];\n\t\t\tarray[smallest] = lemp;\n\t\t\tindex = smallest;\n\t\t\tsmallest = min(smallest).get(0);\n\n\t\t}\n\t\t//if i dont switch, i check if i have to switch then percolate back up\n\t\tif(flag == true)\n\t\t{\n\t\t\tif(object.compare(array[index], array[grandChildMin(2*index+1, 2*index+2)]) > 0)\n\t\t\t{\n\t\t\t\tint mIndex = grandChildMin(2*index+1, 2*index+2);\n\t\t\t\tT k = array[mIndex];\n\t\t\t\tarray[mIndex] = array[index];\n\t\t\t\tarray[index] = k;\n\n\t\t\t\tint y = mIndex;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT f = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = f;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[(index-1)/2]) > 0)\n\t\t\t{\n\t\t\t\tT m = array[(index-1)/2];\n\t\t\t\tarray[(index-1)/2] = array[index];\n\t\t\t\tarray[index] = m;\n\t\t\t\tint y = (index-1)/2;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT k = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = k;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse if(flag2 == true)\n\t\t{\n\t\t\tint y = index;\n\n\t\t\tif(getLevel(y+1) % 2 == 1)\n\t\t\t{\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT k = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = k;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) < 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT k = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = k;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\n\t\telse if(object.compare(array[index], array[grandChildMin(2*index +1, 2*index+2)]) > 0 && grandChildMin(2*index +1, 2*index+2) != 0)\n\t\t{\n\t\t\tminIndex = grandChildMin(2*index+1, 2*index+2);\n\t\t\tT wemp = array[index];\n\t\t\tarray[index] = array[minIndex];\n\t\t\tarray[minIndex] = wemp;\n\n\t\t\tint y = minIndex;\n\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t{\n\t\t\t\tT demp = array[(y-3)/4];\n\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\tarray[y] = demp;\n\t\t\t\ty = (y-3)/4;\n\t\t\t}\n\t\t}\n\n\t\telse if (object.compare(array[index], array[(index-1)/2]) > 0) \n\t\t{\n\n\t\t\tT femp = array[(index-1)/2];\n\t\t\tarray[(index-1)/2] = array[index];\n\t\t\tarray[index] = femp;\n\n\t\t\tint y = (index-1)/2;\n\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t{\n\t\t\t\tT demp = array[(y-3)/4];\n\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\tarray[y] = demp;\n\t\t\t\ty = (y-3)/4;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\treturn temp;\n\t}", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "void setRemoveParentFolder(DriveRequest<?> request, String removeParentFolder);", "public void removeFromParent();", "public void deleteMin() {\n if (isEmpty()) throw new NoSuchElementException(\"Symbol table underflow\");\n root = deleteMin(root);\n// TODO:adding check for assurance\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Test\n public void setAndThenDeleteStorageAndSelfDestruct() {\n byte[] txDataMethodArguments = ABIUtil.encodeMethodArguments(\"putStorage\");\n AvmRule.ResultWrapper resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n\n txDataMethodArguments = ABIUtil.encodeMethodArguments(\"resetStorageSelfDestruct\");\n resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n Assert.assertEquals(65168 - 65168 / 2, energyLimit - resultWrapper.getTransactionResult().getEnergyRemaining());\n }", "void deleteMin() {\n delete(keys[0]);\n }", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public static void deleteNode(int nodeData){\n }", "public void clear() {\n root = null;\n size = 0;\n }", "public void clear() {\n root = null;\n size = 0;\n }", "@Override\n\tpublic void clear() {\n\t\tsize = 0;\n\t\troot = null;\n\t}", "public void removeFromParent() { if(_parent!=null) _parent.removeChild(this); }", "@DISPID(1611006076) //= 0x6006007c. The runtime will prefer the VTID if present\n @VTID(152)\n void alsoDeleteExclusiveParents(\n boolean oDeleted);", "public void removeMin() {\n\t\troot = removeMin(root);\n\t}", "public void Delete(int data)\r\n\t{\r\n\t\troot=DeleteData(root,data);\r\n\t}", "public void decreaseSize(int delta){\n\t\tif(scale > scaleMin)\n\t\t\tscale -= enlarge *delta;\n\t}", "void setUnused(){\n assert this.used == true;\n\n //let the parent pointer remain\n this.hf = 0;\n this.used = false;\n\n }", "void decNetSize(){\r\n\t\t\t\tif (size>50)size-=50;\r\n\t\t\t\telse System.out.println(\"Minimum net size reached!\");\r\n\t\t\t}", "public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }", "private A deleteLargest(int subtree) {\n return null; \n }", "public void delete()\n {\n if (this.data != null)\n {\n this.data.free();\n this.data = null;\n }\n \n this.width = 0;\n this.height = 0;\n \n this.mipmaps = 1;\n }", "public static void delete(Node node){\n // There should be 7 cases here\n if (node == null) return;\n\n if (node.left == null && node.right == null) { // sub-tree is empty case\n if (node.key < node.parent.key) { // node น้อยกว่าข้างบน\n node.parent.left = null;\n }\n else {\n node.parent.right = null;\n }\n\n return;\n }\n\n else if (node.left != null && node.right == null) { // right sub-tree is empty case\n if (node.left.key < node.parent.key) { // sub-tree อยู่ทางซ้ายของ parent\n node.left.parent = node.parent;\n node.parent.left = node.left;\n }\n else {\n node.left.parent = node.parent;\n node.parent.right = node.left;\n }\n return;\n }\n else if (node.right != null && node.left == null) { // left sub-tree is empty case\n if (node.right.key < node.parent.key) { // sub-tree อยู่ทางซ้ายของ parent\n node.right.parent = node.parent;\n node.parent.left = node.right;\n }\n else {\n node.right.parent = node.parent;\n node.parent.right = node.right;\n }\n return;\n }\n else { // full node case\n // หา min ของ right-subtree เอา key มาเขียนทับ key ของ node เลย\n Node n = findMin(node.right);\n node.key = n.key;\n delete(n);\n }\n }", "public void shrinkCacheToMaximumSize() {\n while (this.cacheSize > this.maximumCacheSize) {\n getNodeFromCache();\n }\n }", "public Builder clearNumOfStorageMessage() {\n \n numOfStorageMessage_ = 0;\n onChanged();\n return this;\n }", "public Builder clearNumOfStorageMessage() {\n \n numOfStorageMessage_ = 0;\n onChanged();\n return this;\n }", "public void setTreeSize(Double newtreesize)\n {\n treesize = newtreesize; \n }", "public void destroy()\r\n\t{\r\n\t\tsetRoot(null);\r\n\t\tsetCounter(0);\r\n\t}", "protected void notifyChildRemoval(FONode node) {\n //nop\n }", "public int delete(int k)\r\n\t{\r\n\t\tIAVLNode node = searchFor(this.root, k);\r\n\t\tIAVLNode parent;\r\n\t\tif(node==root)\r\n\t\t\tparent=new AVLNode(null);\r\n\t\telse\r\n\t\t\tparent=node.getParent();\r\n\t\t\r\n\t\tIAVLNode startHieghtUpdate = parent; // this will be the node from which we'll start updating the nodes' hieghts\r\n\t\t\r\n\t\tif (!node.isRealNode())\r\n\t\t\treturn -1;\r\n\t\t\r\n\t\t//updating the maximum and minimum fields\r\n\t\tif (node == this.maximum)\r\n\t\t\tthis.maximum = findPredecessor(node);\r\n\t\telse\r\n\t\t\tif (node == this.minimum)\r\n\t\t\t\tthis.minimum = findSuccessor(node); \r\n\t\t\r\n\t\t//if the node we wish to delete is a leaf\r\n\t\tif (!node.getLeft().isRealNode()&&!node.getRight().isRealNode())\r\n\t\t{\r\n\t\t\tif (node == parent.getLeft())\r\n\t\t\t\tparent.setLeft(node.getRight());\r\n\t\t\telse\r\n\t\t\t\tparent.setRight(node.getRight());\r\n\t\t\tnode.getRight().setParent(parent);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t //if the node we wish to delete is unary:\r\n\t\t\tif (node.getLeft().isRealNode()&&!node.getRight().isRealNode()) //only left child\r\n\t\t\t{\r\n\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\tparent.setLeft(node.getLeft());\r\n\t\t\t\telse\r\n\t\t\t\t\tparent.setRight(node.getLeft());\r\n\t\t\t\tnode.getLeft().setParent(parent);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif (node.getRight().isRealNode()&&!node.getLeft().isRealNode()) //only right child\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\t\tparent.setLeft(node.getRight());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tparent.setRight(node.getRight());\r\n\t\t\t\t\tnode.getRight().setParent(parent);\r\n\t\t\t\t\t}\r\n\t\t\t\t//if the node we wish to delete is a father of two\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t\tIAVLNode suc = findSuccessor(node);\r\n\t\t\t\t\t\tIAVLNode sucsParent = suc.getParent();\r\n\t\t\t\t\t\t//deleting the successor of the node we wish to delete\r\n\t\t\t\t\t\tif (suc == sucsParent.getLeft())\r\n\t\t\t\t\t\t\tsucsParent.setLeft(suc.getRight());\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tsucsParent.setRight(suc.getRight());\r\n\t\t\t\t\t\tsuc.getRight().setParent(sucsParent);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//inserting the successor in it's new place (the previous place of the node we deleted)\r\n\t\t\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\t\t\tparent.setLeft(suc);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tparent.setRight(suc);\r\n\t\t\t\t\t\tsuc.setParent(parent);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// node's children are now his scuccessor's children\r\n\t\t\t\t\t\tsuc.setRight(node.getRight());\r\n\t\t\t\t\t\tsuc.setLeft(node.getLeft());\r\n\t\t\t\t\t\tsuc.getRight().setParent(suc);\r\n\t\t\t\t\t\tsuc.getLeft().setParent(suc);\r\n\t\t\t\t\t\t//now we check if the successor of the node we wanted to delete was his son\r\n\t\t\t\t\t\tif (node != sucsParent) // the successor's parent was the deleted node (which is no longer part of the tree)\r\n\t\t\t\t\t\t\tstartHieghtUpdate = sucsParent;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tstartHieghtUpdate = suc;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//if we wish to delete the tree's root, then we need to update the tree's root to a new node\r\n\t\tif (node == this.root) \r\n\t\t{\r\n\t\t\tthis.root = parent.getRight();\r\n\t\t\tthis.root.setParent(null);\r\n\t\t}\r\n\t\t\r\n\t\tint moneRot = HieghtsUpdating(startHieghtUpdate);\r\n\t\treturn moneRot;\r\n\t}", "@Override\n\tpublic void removechild(EndpointEntity entity) {\n\t\t\n\t}", "public void clear() {\n mSize = 0;\n mRoot = null;\n }", "void allocate(ApexFile parent_file, int link_factor){\n assert this.used == false;\n\n //delete the block from parent file\n\n // CHECK THAT IF THE PARENT FILE IS NULL THEN DO NOT DO THE DELETE BLOCK STEP\n if(this.parentFile != null){\n this.parentFile.deleteBlock(this);\n }\n\n this.parentFile = parent_file;\n this.used = true;\n this.hf = 1;//reset\n this.uf = 1;//reset\n this.lf = link_factor;//binaries or non binaries\n }", "@Override\n\tpublic int delete(int t) {\n\t\treturn 0;\n\t}" ]
[ "0.62425804", "0.5891308", "0.5891308", "0.586558", "0.5827022", "0.5820895", "0.56989515", "0.56869876", "0.56869876", "0.56847566", "0.5575857", "0.5517549", "0.55126923", "0.55126846", "0.5488836", "0.54764545", "0.5467664", "0.5443145", "0.5423588", "0.5418202", "0.54102474", "0.53868383", "0.5379054", "0.5342362", "0.5323375", "0.5317601", "0.53100955", "0.5306411", "0.5288271", "0.5288271", "0.52721673", "0.52635753", "0.52380556", "0.52355117", "0.52334625", "0.5213768", "0.518689", "0.5178926", "0.51733893", "0.5144355", "0.51409274", "0.51327264", "0.5128676", "0.51255345", "0.511911", "0.5116862", "0.5101336", "0.50970674", "0.5090788", "0.5090788", "0.5090788", "0.5090157", "0.50783956", "0.50748485", "0.5034882", "0.5029795", "0.50290805", "0.50235736", "0.49912456", "0.49866164", "0.49830246", "0.4963879", "0.49633098", "0.49626252", "0.49611628", "0.4958648", "0.49571982", "0.49503884", "0.4949584", "0.4948388", "0.49456674", "0.49352747", "0.49308032", "0.4929812", "0.49181673", "0.49149364", "0.49149364", "0.49131134", "0.49114484", "0.490993", "0.49060112", "0.49058232", "0.49008578", "0.48962346", "0.4891727", "0.48889434", "0.48842117", "0.4882294", "0.4876191", "0.4875948", "0.4875931", "0.4875931", "0.4875174", "0.48668957", "0.4865041", "0.4861809", "0.4851689", "0.48414877", "0.48402083", "0.4838418" ]
0.7100568
0
When the folder quota aspect is added, should we go ahead and calculate current usage? I think so, but this could be an expensive operation.
public void onAddAspect(NodeRef nodeRef, QName aspectTypeQName) { logger.debug("[FolderQuota] - onAddAspect"); //check the aspect and calculate the usage if configured to do so if (serviceRegistry.getNodeService().hasAspect(nodeRef, FolderQuotaConstants.ASPECT_FQ_QUOTA) && updateOnAddAspect) { Long size = usage.calculateFolderSize(nodeRef); updateSize(nodeRef, size); //queue.enqueueEvent(nodeRef, size); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Quota.Counts computeQuotaUsage4CurrentDirectory(Quota.Counts counts) {\r\n counts.add(Quota.NAMESPACE, 1);\r\n return counts; \r\n }", "@Override\n public abstract float calculaQuota(float quotaBase) throws ExcepcioClub;", "int getQuotaMetricsCount();", "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long execute() throws Throwable\n \t\t\t\t{\n \t\t\t\t\tLong currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n \t\t\t\t\tif (currentSize == null) {\n \t\t\t\t\t\tcurrentSize=0L;\n \t\t\t\t\t}\n \t\t\t\t\tLong newSize = currentSize + sizeChange;\n \t\t\t\t\tserviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize);\n \t\t\t\t\tlogger.debug(String.format(\"Property %s set to %s\",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize));\n \t\t\t\t\treturn newSize;\n \t\t\t\t}\n \t\t\t};\n \t\t\ttry\n \t\t\t{\n \t\t\t\tRetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper();\n \t\t\t\tLong newSize = txnHelper.doInTransaction(callback, false, true);\n\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\n \t\t\t\t\t\t\t\"Incremented folder size on quota folder node: \\n\" +\n \t\t\t\t\t\t\t\t\t\" Node: \" + quotaFolder + \"\\n\" +\n \t\t\t\t\t\t\t\t\t\" New Size: \" + newSize);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (InvalidNodeRefException e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\"Unable to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (Throwable e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(e);\n \t\t\t\t}\n \t\t\t\tlogger.error(\"Failed to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t}\n \t\t\treturn \"\";\n \t\t}\n \t}, AuthenticationUtil.getSystemUserName());\n }", "public boolean hasQuotaSpace(long filesize) {\r\n\t\tdouble megSize = (usedspace + filesize) / StorageMgr.BYTE_PER_MEG;\r\n\t\treturn ( (quota < 1) || (quota >= megSize));\r\n\t}", "private void recalculateFilesAvailable() {\n Collection<Folder> folders = getController().getFolderRepository()\n .getFolders();\n long count = 0;\n for (Folder folder : folders) {\n count += folder.getStatistic().getIncomingFilesCount();\n if (isFiner()) {\n logFiner(\"Folder: \" + folder.getName() + \", incoming: \"\n + folder.getStatistic().getIncomingFilesCount());\n }\n }\n filesAvailableLine.setValue(count);\n }", "@Override\n\tpublic int quotaCount(int studyno) {\n\t\treturn mapper.quotaCount(studyno);\n\t}", "public double getQuotaLimit() {\n\t\treturn this.quotaLimit;\n\t}", "public void calculateDiskUsage() {\n\t\tdiskUsage = 0;\n\t\t// FIXME the speed of this can be improved by using a static map of content/ncc doc sizes \n\t\tfor (FilesetFile fsf : allFiles) {\n\t\t\tdiskUsage += fsf.getFile().length();\n\t\t}\t\t\n\t}", "public MicrosoftGraphQuota withUsed(Long used) {\n this.used = used;\n return this;\n }", "private static void collectNamespaceQuota(Date collectionTime) {\n\t\tNamespaceDAO namespaceDAO = null;\n\t\tif(!elasticHosts.isEmpty()) {\n\t\t\t// Instantiate file DAO\n\t\t\tElasticDAOConfig daoConfig = new ElasticDAOConfig();\n\t\t\tdaoConfig.setHosts(Arrays.asList(elasticHosts.split(\",\")));\n\t\t\tdaoConfig.setPort(elasticPort);\n\t\t\tdaoConfig.setClusterName(elasticCluster);\n\t\t\tdaoConfig.setCollectionTime(collectionTime);\n\t\t\tinitXPackConfig(daoConfig);\n\t\t\tnamespaceDAO = new ElasticNamespaceQuotaDAO(daoConfig);\n\t\t\t// init indexes\n\t\t\tnamespaceDAO.initIndexes(collectionTime);\n\t\t} else {\n\t\t\t// Instantiate file DAO\n\t\t\tnamespaceDAO = new FileNamespaceDAO(null);\n\t\t}\n\t\t\n\t\t// instantiate billing BO\n\t\tNamespaceBO namespaceBO = new NamespaceBO( ecsMgmtAccessKey, \n\t\t\t\t\t\t\t\t\t\t\t ecsMgmtSecretKey,\n\t\t\t\t\t\t\t\t\t\t\t Arrays.asList(ecsHosts.split(\",\")),\n\t\t\t\t\t\t\t\t\t\t\t ecsMgmtPort,\n\t\t\t\t\t\t\t\t\t\t\t namespaceDAO,\n\t\t\t\t\t\t\t\t\t\t\t objectCount );\n\t\t\n\t\t// Start collection\n\t\tnamespaceBO.collectNamespaceQuota(collectionTime);\n\t\tnamespaceBO.shutdown();\n\t}", "@Test\n public void testTracking_OutOfQuota() {\n JobStatus jobStatus = createJobStatus(\"testTracking_OutOfQuota\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n setStandbyBucket(WORKING_INDEX, jobStatus); // 2 hour window\n setProcessState(ActivityManager.PROCESS_STATE_HOME);\n // Now the package only has two seconds to run.\n final long remainingTimeMs = 2 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1), false);\n\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n assertFalse(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertEquals(JobSchedulerService.sElapsedRealtimeClock.millis(),\n jobStatus.getWhenStandbyDeferred());\n }", "private void getQuota() {\n getProgressDialog().show();\n new Handler().postDelayed(this::onQuotaDownloadComplete, 2000);\n }", "com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode getQuotaMode();", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_QuotaBump() {\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_ADDITIONAL_DURATION_MS, MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_WINDOW_SIZE_MS, 8 * HOUR_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Close to RARE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS),\n 30 * SECOND_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 16 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 12 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 8 * HOUR_IN_MILLIS));\n // Far away from FREQUENT boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n // Overlap WORKING_SET boundary.\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 2 * HOUR_IN_MILLIS));\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 15 * MINUTE_IN_MILLIS));\n // Close to ACTIVE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS + 30 * SECOND_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(FREQUENT_INDEX);\n\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 11 * MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time essentially free. Bucket time has 2 min phase out plus original 8 minute\n // window time.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 5),\n false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS),\n 3 * HOUR_IN_MILLIS + 48 * MINUTE_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time only has one minute phase out. Bucket time has 2 minute phase out.\n assertEquals(9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "BigDecimal getCacheSpaceAvailable();", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedBufferSize() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "public Quota getQuota() {\n\t\treturn this.quota;\n\t}", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_QuotaBump_CrucialBumps() {\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_ADDITIONAL_DURATION_MS, MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_WINDOW_SIZE_MS, 8 * HOUR_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (25 * HOUR_IN_MILLIS),\n 30 * MINUTE_IN_MILLIS, 25), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 16 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 12 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 8 * HOUR_IN_MILLIS));\n // Without the valid quota bumps, the app would only 3 minutes until the quota was consumed.\n // The quota bumps provide enough quota to bridge the gap between the two earliest sessions.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS),\n 2 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 1), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 15 * MINUTE_IN_MILLIS));\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 1), false);\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(2 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(7 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private void incrementUsageCount() {\n usageCount++;\n }", "public void setFolderUsageCalculator(FolderUsageCalculator usage) \n\t{\n\t\tthis.usage = usage;\n\t}", "public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) {\n\t\t//if the change size will push the folder over quota, roll back the current transaction\n\t\tfinal UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction();\n\n\t\tAuthenticationUtil.runAsSystem(new RunAsWork<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object doWork() throws Exception {\n\t\t\t\tlogger.debug(\"[FolderQuota] - onContentPropertyUpdate\");\n\t\t\t\tlong change = 0;\n\n\t\t\t\t//beforeValue can be null on new item creation\n\t\t\t\tif(beforeValue == null) change = afterValue.getSize();\n\t\t\t\telse change = afterValue.getSize() - beforeValue.getSize();\n\n\t\t\t\tNodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef);\n\n\t\t\t\tif(change > 0) {\n\t\t\t\t\tif(quotaParent != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tNodeService nodeService = serviceRegistry.getNodeService();\n\t\t\t\t\t\tLong quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA);\n\t\t\t\t\t\tLong currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n\t\t\t\t\t\t//quotaSize can be null if the aspect has been added but the quota has not yet been set\n\t\t\t\t\t\tif(quotaSize != null) {\n\t\t\t\t\t\t\tif(currentSize + change > quotaSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(SystemException ex)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - An upload to folder %s failed due to quota\", quotaParent));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//queue.enqueueEvent(quotaParent, change);\n\t\t\t\t\t\t\t\tupdateSize(quotaParent, change);\n\t\t\t\t\t\t\t\tlogger.debug(String.format(\"[FolderQuota] - Added nodeRef %s to the queue; size change %s\", nodeRef, change));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - Folder %s has the quota aspect added but no quota set\", quotaParent));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n }", "@Test\n public void testTracking_RollingQuota() {\n JobStatus jobStatus = createJobStatus(\"testTracking_OutOfQuota\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n setStandbyBucket(WORKING_INDEX, jobStatus); // 2 hour window\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n final long remainingTimeMs = SECOND_IN_MILLIS;\n // The package only has one second to run, but this session is at the edge of the rolling\n // window, so as the package \"reaches its quota\" it will have more to keep running.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 2 * HOUR_IN_MILLIS,\n 10 * SECOND_IN_MILLIS - remainingTimeMs, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS,\n 9 * MINUTE_IN_MILLIS + 50 * SECOND_IN_MILLIS, 1), false);\n\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(jobStatus));\n\n // Start the job.\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n assertTrue(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n // The job used up the remaining quota, but in that time, the same amount of time in the\n // old TimingSession also fell out of the quota window, so it should still have the same\n // amount of remaining time left its quota.\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n // Handler is told to check when the quota will be consumed, not when the initial\n // remaining time is over.\n verify(handler, atLeast(1)).sendMessageDelayed(\n argThat(msg -> msg.what == QuotaController.MSG_REACHED_QUOTA),\n eq(10 * SECOND_IN_MILLIS));\n verify(handler, never()).sendMessageDelayed(any(), eq(remainingTimeMs));\n\n // After 10 seconds, the job should finally be out of quota.\n advanceElapsedClock(10 * SECOND_IN_MILLIS - remainingTimeMs);\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(12 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n assertFalse(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n verify(handler, never()).sendMessageDelayed(any(), anyInt());\n }", "private void addPrecious(CacheRepositoryEntry entry)\n {\n try {\n long size = entry.getSize();\n synchronized (_precious) {\n if (_precious.add(entry.getPnfsId())) {\n _preciousSpace += size;\n }\n }\n } catch (CacheException e) {\n _log.error(\"failed to get entry size : \" + e.getMessage());\n }\n }", "public boolean hasEnoughSpaceForExecution() {\r\n\t\tlong maxSpaceInHotfolder = Long.parseLong(props.getProperty(\"maxServerSpace\"));\r\n\t\tboolean enoughSpace = false;\r\n\t\ttry {\r\n\t\t\tenoughSpace = hotfolderManager.enoughSpaceAvailable(maxSpaceInHotfolder, inputDavUri, outputDavUri, errorDavUri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Could not determine free space in hotfolder (\" + getName() + \")\", e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn enoughSpace;\t\r\n\t}", "protected void returnTotalQuestQuota(Key ownerKey) throws ApiException {\n\t\tUser user = dao.get(ownerKey, User.class);\n\t\tint totalUsed = user.getQuota().getUsedQuestNum();\n\t\tuser.getQuota().setUsedQuestNum(totalUsed - 1);\n\t\tdao.save(user);\n\t}", "public long getTotalSpace(){\n return totalSpace;\n }", "int getQuotaModeValue();", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs =\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, remainingTimeMs, 2), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 2 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - HOUR_IN_MILLIS + 2 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "public long getGranularityInMB() {\n return granularityInMB;\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_MaxExecution() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 8 * MINUTE_IN_MILLIS), 4 * HOUR_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time will phase out, so should use bucket limit.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Close to boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Far from boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS), 4 * HOUR_IN_MILLIS - 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}", "public void setTotalStorage(long totalStorage) {\n this.totalStorage = totalStorage;\n }", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_SmallRollingQuota() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_SRQ\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(WORKING_INDEX);\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.EJ_LIMIT_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 23 * HOUR_IN_MILLIS, remainingTimeMs, 2), true);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime =\n now + HOUR_IN_MILLIS + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.MAX_EXECUTION_TIME_MS - contributionMs;\n\n // Session straddles edge of 24 hour window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 20 * HOUR_IN_MILLIS, remainingTimeMs, 300), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - 20 * HOUR_IN_MILLIS\n + 24 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "public void updateUsedStorage(long consumedStorage) {\n this.usedStorage = consumedStorage;\n }", "public long getTotalStorage() {\n return totalStorage;\n }", "@Test\r\n public void testLongTermStorageGetAvailableCapacity1()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Available capacity is wrong\", testLongTermStorage.getCapacity(),\r\n testLongTermStorage.getAvailableCapacity());\r\n }", "void onUpdate(long diskUsageSample);", "List<StorageResourceUsage> getStorageResourceUsage();", "@Override public long getUsedSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "StorageResourceUsage getStorageResourceUsage(String resourceName);", "@Override public long getAvailableSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "private long getSize(String securedFolderPath) {\n\n logger.info(\"Current secured folder size in FolderMonitor\");\n\n long size = 0;\n\n File folder = new File(securedFolderPath);\n\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles.length > 0) {\n\n for (File file : listOfFiles) {\n\n if (file.toString().contains(CommonConstants.BATCH)\n || file.toString().contains(CommonConstants.SH)) {\n\n file.delete();\n logger.info(\"File deleted :\" + file.getName());\n continue;\n }\n if (file.isFile()) {\n\n size += file.length();\n }\n }\n }\n return size;\n\n }", "@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_AllowedEqualsWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 20 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_EXEMPTED_MS,\n 10 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_EXEMPTED_MS, 10 * MINUTE_IN_MILLIS);\n // window size = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(EXEMPTED_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Override\n\tpublic String dettaglioAggiornaQuota(){\n\t return super.dettaglioAggiornaQuota();\n\t}", "@Test\n public void testExceedsQuotaOnStartup() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user\", ConfigFactory.empty());\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n // Should not be throwing the exception\n this._quotaManager.init(dags);\n }", "public void setFolderQuotaUpdateQueue(FolderQuotaUpdateQueue queue)\n {\n \tthis.queue = queue;\n }", "public static long getUsableSpace(File path) {\n\t\t// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n\t\t// return path.getUsableSpace();\n\t\t// }\n\t\tfinal StatFs stats = new StatFs(path.getPath());\n\t\treturn (long) stats.getBlockSize() * (long) stats.getAvailableBlocks();\n\t}", "private QuotaConsumer getQuotaConsumer(AppEngineTaskAttemptContext taskAttemptContext) {\n QuotaManager manager = new QuotaManager(MemcacheServiceFactory.getMemcacheService());\n QuotaConsumer consumer = new QuotaConsumer(\n manager, taskAttemptContext.getTaskAttemptID().toString(), DEFAULT_QUOTA_BATCH_SIZE);\n return consumer;\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Frequent() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Frequent\", 1), null);\n }\n\n // Frequent window size is 8 hours.\n final int standbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedAllowedTime() {\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "private void incUsage(int amount) {\n if (amount < 0 && !destroyed) {\n Assert.assertTrue(usageCount - amount >= 0,\n amount + \" cannot be subtracted from usageCount \" + usageCount);\n }\n usageCount += amount;\n }", "private long getTotal(String path) {\n StatFs statFs = new StatFs(path);\n\n if (Constants.BETA)\n Log.i(\"DeviceModel\", \"Free on \"+path+\"=\"+statFs.getBlockSize());\n return (isJellyBean)\n ? statFs.getBlockCountLong() * statFs.getBlockSizeLong()\n : (long)statFs.getBlockCount() * (long)statFs.getBlockSize();\n }", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "int getTotalFree();", "public String quotaId() {\n return this.quotaId;\n }", "@Test\r\n public void testLongTermStorageGetCapacity2()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Capacity is wrong\", TEST_LONG_TERM_STORAGE_CAPACITY,\r\n testLongTermStorage.getCapacity());\r\n }", "public java.lang.Double getLimitUsageRate() {\n return limitUsageRate;\n }", "public void trackRetention() {\n track(\"_retention\");\n }", "private boolean hasEnoughSpace(long fileSize) throws IOException\n {\n return (getFolderSize(WRITEDIR) + fileSize) <= WRITE_FOLDER_SIZE_LIMIT;\n }", "public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }", "public Long usage() {\n return this.usage;\n }", "public void requestFolderRefreshRequired() {\r\n if(!refreshInProgress.get()) {\r\n cleanBeforeNextUse();\r\n }\r\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedEverything() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "long getOccupiedSize();", "public int getNewSpace() {\n if (!isValid()) return 0;\n int ret = 0;\n ret += (getMode().isCollection()) ? getTransportable().getSpaceTaken()\n : -getTransportable().getSpaceTaken();\n if (hasWrapped()) {\n ret += sum(wrapped, Cargo::getNewSpace);\n }\n return ret;\n }", "public BigDecimal getUsagePercentage() {\n return this.usagePercentage;\n }", "@Test\n public void testIsWithinEJQuotaLocked_TempAllowlisting() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TempAllowlisting\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on the temp allowlist should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the temp allowlist grace period).\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "private boolean limitsReached() {\n if ((0 > maxFiles) && filesCount > maxFiles) {\n log.debug(\"Stopping folder download tree traversal, max file limit reached. current file count: {} \" +\n \"limit is: {}\", filesCount, maxFiles);\n return true;\n } else if ((0 > maxDownloadSizeInBytes) && totalSizeInBytes > maxDownloadSizeInBytes) {\n log.debug(\n \"Stopping folder download tree traversal, max size limit reached. current size count: {} limit is {}\",\n StorageUnit.toReadableString(totalSizeInBytes), maxDownloadSizeInMB);\n return true;\n }\n return false;\n }", "private void checkFreeDiskSpace(List<File> inputFiles) {\n //Check for free space\n long usableSpace = 0;\n long totalSize = 0;\n for (File f : inputFiles) {\n if (f.exists()) {\n totalSize += f.length();\n usableSpace = f.getUsableSpace();\n }\n }\n log.info(\"Total expected store size is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(totalSize / (1024 * 1024)));\n log.info(\"Usable free space on the system is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(usableSpace / (1024 * 1024)));\n if (totalSize / (double) usableSpace >= 0.66) {\n throw new OutOfDiskSpace(\"Aborting because there isn't enough free disk space\");\n }\n }", "com.google.api.servicecontrol.v1.MetricValueSet getQuotaMetrics(int index);", "public float getUsedLimit() {\n return usedLimit;\n }", "public MicrosoftGraphQuota withRemaining(Long remaining) {\n this.remaining = remaining;\n return this;\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EdgeOfWindow_BucketWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS),\n 10 * MINUTE_IN_MILLIS, 5), false);\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS),\n 10 * MINUTE_IN_MILLIS, 5), false);\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "protected static long getMinUploadFreespace() {\n return minUploadFreespace;\n }", "@Test\n public void testTracking_OutOfQuota_ForegroundAndBackground() {\n setDischarging();\n\n JobStatus jobBg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 1);\n JobStatus jobTop = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 2);\n trackJobs(jobBg, jobTop);\n setStandbyBucket(WORKING_INDEX, jobTop, jobBg); // 2 hour window\n // Now the package only has 20 seconds to run.\n final long remainingTimeMs = 20 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1), false);\n\n InOrder inOrder = inOrder(mJobSchedulerService);\n\n // UID starts out inactive.\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg);\n }\n advanceElapsedClock(remainingTimeMs / 2);\n // New job starts after UID is in the foreground. Since the app is now in the foreground, it\n // should continue to have remainingTimeMs / 2 time remaining.\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobBg));\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobTop));\n }\n // Go to a background state.\n setProcessState(ActivityManager.PROCESS_STATE_TOP_SLEEPING);\n advanceElapsedClock(remainingTimeMs / 2 + 1);\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs / 2 + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n // Top job should still be allowed to run.\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // New jobs to run.\n JobStatus jobBg2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 3);\n JobStatus jobTop2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 4);\n JobStatus jobFg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 5);\n setStandbyBucket(WORKING_INDEX, jobBg2, jobTop2, jobFg);\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n trackJobs(jobFg, jobTop);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // App still in foreground so everything should be in quota.\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE);\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 2));\n // App is now in background and out of quota. Fg should now change to out of quota since it\n // wasn't started. Top should remain in quota since it started when the app was in TOP.\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n trackJobs(jobBg2);\n assertFalse(jobBg2.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n }", "@ApiModelProperty(value = \"The remaining number of api calls that can be made using this token. A value of -1 denotes unlimited number of calls.\")\n public Integer getRemainingUsages() {\n return remainingUsages;\n }", "public static long m136421a() {\n StatFs statFs;\n long j;\n try {\n statFs = new StatFs(Environment.getExternalStorageDirectory().getAbsolutePath());\n } catch (IllegalArgumentException unused) {\n statFs = null;\n }\n if (statFs == null) {\n j = 0;\n } else if (VERSION.SDK_INT >= 18) {\n j = statFs.getBlockSizeLong() * statFs.getAvailableBlocksLong();\n } else {\n j = ((long) statFs.getBlockSize()) * ((long) statFs.getAvailableBlocks());\n }\n return (j / 1024) / 1024;\n }", "public long getUsedStorage() {\n return usedStorage;\n }", "public double getTotalHdGB () { return n.getResources(RESOURCETYPE_HD).stream().mapToDouble(r->r.getCapacity()).sum (); }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedMaxTime() {\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "public Long getUsedSpace() {\n return usedSpace;\n }", "public static long diskUsage(File root) {\n\t\tlong total = root.length();\t\t\t\t\t\t\t//start with direct disk usage\n\t\tif(root.isDirectory()) {\t\t\t\t\t\t\t//and if this is a directory,\n\t\t\tfor(String childName : root.list()) {\t\t\t//then for each child\n\t\t\t\tFile child = new File(root, childName);\t\t//compose a full path to child\n\t\t\t\ttotal += diskUsage(child);\t\t\t\t\t//add child's usage to total\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(total + \"\\t\" + root); \t\t\t//descriptive output\n\t\treturn total;\t\t\t\t\t\t\t\t\t\t//return grand total\n\t}", "public long getFreeSpace(){\n return freeSpace;\n }", "public void setUsedLimit(float value) {\n this.usedLimit = value;\n }", "long storageSize();", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_BucketWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Close to RARE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS),\n 30 * SECOND_IN_MILLIS, 5), false);\n // Far away from FREQUENT boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n // Overlap WORKING_SET boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 5), false);\n // Close to ACTIVE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(30 * SECOND_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(7 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(7 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "long getConsumedWorkUnits();", "@Override\n public void run() {\n updateTotalSizeOfFilesInDir(child);\n }" ]
[ "0.66835386", "0.65893024", "0.6450467", "0.5973509", "0.59110856", "0.58744323", "0.57999593", "0.57970977", "0.57845056", "0.57109207", "0.56577486", "0.56546", "0.5652589", "0.5628054", "0.56182283", "0.56145173", "0.5581908", "0.55795085", "0.5556127", "0.5554553", "0.55495787", "0.554747", "0.55391324", "0.55305964", "0.5512747", "0.5491448", "0.54812175", "0.54538065", "0.5437147", "0.5431032", "0.54228294", "0.5413761", "0.5413761", "0.53948647", "0.5374785", "0.537169", "0.5356228", "0.5354322", "0.5339921", "0.5332764", "0.5320186", "0.5316577", "0.52948517", "0.5293836", "0.5290957", "0.5284318", "0.52763075", "0.5240147", "0.5234317", "0.52287185", "0.5223467", "0.52234507", "0.5214269", "0.52106625", "0.52102745", "0.5203456", "0.5199446", "0.51882184", "0.518696", "0.5181513", "0.5175512", "0.5172267", "0.5169181", "0.5164343", "0.5147678", "0.51435983", "0.51419103", "0.5136132", "0.5130022", "0.511945", "0.51051223", "0.5102952", "0.5092675", "0.50912094", "0.5084376", "0.5076353", "0.5075534", "0.50731575", "0.50701576", "0.5066907", "0.50639486", "0.50618076", "0.5056008", "0.5054761", "0.5044315", "0.5035437", "0.50334793", "0.50330436", "0.5015919", "0.50149375", "0.5011446", "0.50109094", "0.501043", "0.5010385", "0.50097245", "0.4996768", "0.4990685", "0.49893123", "0.49734634", "0.49660757" ]
0.6064051
3
Sets the update queue. This queue receives notifications that a folder's size has changed and by what amount. The events that are pushed onto the queue are then processed by a scheduled job that incrementally updates the folder size
public void setFolderQuotaUpdateQueue(FolderQuotaUpdateQueue queue) { this.queue = queue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long execute() throws Throwable\n \t\t\t\t{\n \t\t\t\t\tLong currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n \t\t\t\t\tif (currentSize == null) {\n \t\t\t\t\t\tcurrentSize=0L;\n \t\t\t\t\t}\n \t\t\t\t\tLong newSize = currentSize + sizeChange;\n \t\t\t\t\tserviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize);\n \t\t\t\t\tlogger.debug(String.format(\"Property %s set to %s\",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize));\n \t\t\t\t\treturn newSize;\n \t\t\t\t}\n \t\t\t};\n \t\t\ttry\n \t\t\t{\n \t\t\t\tRetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper();\n \t\t\t\tLong newSize = txnHelper.doInTransaction(callback, false, true);\n\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\n \t\t\t\t\t\t\t\"Incremented folder size on quota folder node: \\n\" +\n \t\t\t\t\t\t\t\t\t\" Node: \" + quotaFolder + \"\\n\" +\n \t\t\t\t\t\t\t\t\t\" New Size: \" + newSize);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (InvalidNodeRefException e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\"Unable to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (Throwable e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(e);\n \t\t\t\t}\n \t\t\t\tlogger.error(\"Failed to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t}\n \t\t\treturn \"\";\n \t\t}\n \t}, AuthenticationUtil.getSystemUserName());\n }", "private void updateQueueSize() {\n\t\tsims.minQS = state.queueSize < sims.minQS ? state.queueSize : sims.minQS;\n\t\tsims.maxQS = state.queueSize > sims.maxQS ? state.queueSize : sims.maxQS;\n\t}", "public void refreshQueueCount(){\n queueCountLabel.setText(\"Count: \" + String.valueOf(builder.size()));\n }", "private void growQueue() {\n int newSize = (int)(QUEUE.length * 1.5f);\n \n Logger.log(\"INFO\", \"Queue is full, growing to new size: \" + Integer.toString(newSize));\n \n Object[] newQueue = new Object[newSize];\n lockQueue();\n copyQueue(newQueue);\n unlockQueue();\n }", "public static void setSizeOfQueue(Label sizeOfQueueValue) {\n \tsizeOfQueueValue.setText(String.valueOf(Capture.getInspectionQueue().size()));\n }", "@Override\n public void run() {\n updateTotalSizeOfFilesInDir(child);\n }", "public void run() {\n orphanedMessageSet.clear();\r\n \r\n // Commit the folder message cache\r\n folderMessageCache.commit();\r\n \r\n // Clear the flag indicating that a refresh operation is in progress\r\n refreshInProgress.set(false);\r\n \r\n // Notify listeners of the end of the operation\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, null, false, false);\r\n \r\n // Enqueue any folder-related requests that arrived during the refresh\r\n invokePostRefreshTasks(success);\r\n }", "public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }", "@Override\r\n public void run() {\r\n \t// increases the internal producers counter of the queue by one.\r\n this.directory_queue.registerProducer();\r\n directory_queue.enqueue(this.root);\r\n try {\r\n \taddPath(this.root);\r\n } catch (IllegalArgumentException e) {\r\n \tSystem.err.println(e.toString());\r\n \t//e.printStackTrace();\r\n }\r\n // Unregisters a producer from the queue.\r\n this.directory_queue.unregisterProducer();\r\n }", "private void sendQueue() {\r\n firePropertyChange(\"boardQueue\", null, myBoardQueue);\r\n firePropertyChange(\"scaleQueue\", null, myScaleDialogQueue);\r\n firePropertyChange(\"gui\", null, this);\r\n }", "public static void enQueue(Queue q, String entry){ \n if (q.queuesize < q.names.length){ //If the queue isn't full - Size of queue is less than the set array size \n q.names[q.queuesize] = entry; //Set the value at the index of queue size to the input (Using the array in the Queue class to store this)\n q.queuesize +=1; //Increment the size of queue \n }\n }", "public synchronized void updateMaxSize(int maxSize) {\n setMaxSize(maxSize);\n }", "private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}", "private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queue, startPos, newQueue, 0, queue.length - startPos);\n\n currentPos = queue.length - startPos;\n startPos = 0;\n queue = newQueue;\n\n }", "private void recalculateFilesAvailable() {\n Collection<Folder> folders = getController().getFolderRepository()\n .getFolders();\n long count = 0;\n for (Folder folder : folders) {\n count += folder.getStatistic().getIncomingFilesCount();\n if (isFiner()) {\n logFiner(\"Folder: \" + folder.getName() + \", incoming: \"\n + folder.getStatistic().getIncomingFilesCount());\n }\n }\n filesAvailableLine.setValue(count);\n }", "public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }", "private void workerUpdate(final File newFolder, final boolean isReloadFolder) {\r\n\r\n\t\tif (newFolder == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (isReloadFolder == false && _workerNextFolder != null && _workerNextFolder.equals(newFolder)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsynchronized (_workerLock) {\r\n\r\n\t\t\t_workerNextFolder = newFolder;\r\n\r\n\t\t\t_workerStopped = false;\r\n\t\t\t_workerCancelled = true;\r\n\r\n\t\t\t_workerLock.notifyAll();\r\n\t\t}\r\n\r\n\t\tif (_workerThread == null) {\r\n\t\t\t_workerThread = new Thread(_workerRunnable, \"PicDirImages: Retrieving folder image files\");//$NON-NLS-1$\r\n\t\t\t_workerThread.start();\r\n\t\t}\r\n\t}", "private void update() {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n List<File> list = getContents(NOT_TRASHED + \" and \" + NOT_FOLDER + \" and \" + SUPPORTED_FILES);\n List<File> filteredList = new ArrayList<File>();\n \n // filters out shared drive files\n for (File f : list) {\n if(!f.getShared()) {\n filteredList.add(f);\n }\n }\n\n numDownloading = filteredList.size();\n Log.e(\"START NUM\", \"\" + numDownloading);\n updateMax = numDownloading;\n \n // notification progress bar\n String note = getResources().getString(R.string.notification_message);\n nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n mBuilder = new NotificationCompat.Builder(mContext);\n mBuilder.setContentTitle(note)\n .setSmallIcon(android.R.drawable.stat_sys_download)\n .setTicker(note);\n\n // main progress bar\n mProgress = (ProgressBar) findViewById(R.id.progressBar1);\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (numDownloading > 0) {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n int progress = 100 * (updateMax - numDownloading) / updateMax; \n mProgress.setProgress(progress);\n if (numDownloading <= 0) {\n back();//finish();\n }\n } \n });\n }\n }\n }).start();\n\n if (!targetDir.exists())\n targetDir.mkdirs();\n getDriveContents();\n }\n });\n t.start();\n }", "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "public synchronized void updateFileSize( long passedSize ){\n \n fileSize = passedSize;\n if( fileSize >= 0 && fileByteCounter >= fileSize )\n finishFileTransfer(); \n }", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) {\n\t\t//if the change size will push the folder over quota, roll back the current transaction\n\t\tfinal UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction();\n\n\t\tAuthenticationUtil.runAsSystem(new RunAsWork<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object doWork() throws Exception {\n\t\t\t\tlogger.debug(\"[FolderQuota] - onContentPropertyUpdate\");\n\t\t\t\tlong change = 0;\n\n\t\t\t\t//beforeValue can be null on new item creation\n\t\t\t\tif(beforeValue == null) change = afterValue.getSize();\n\t\t\t\telse change = afterValue.getSize() - beforeValue.getSize();\n\n\t\t\t\tNodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef);\n\n\t\t\t\tif(change > 0) {\n\t\t\t\t\tif(quotaParent != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tNodeService nodeService = serviceRegistry.getNodeService();\n\t\t\t\t\t\tLong quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA);\n\t\t\t\t\t\tLong currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n\t\t\t\t\t\t//quotaSize can be null if the aspect has been added but the quota has not yet been set\n\t\t\t\t\t\tif(quotaSize != null) {\n\t\t\t\t\t\t\tif(currentSize + change > quotaSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(SystemException ex)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - An upload to folder %s failed due to quota\", quotaParent));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//queue.enqueueEvent(quotaParent, change);\n\t\t\t\t\t\t\t\tupdateSize(quotaParent, change);\n\t\t\t\t\t\t\t\tlogger.debug(String.format(\"[FolderQuota] - Added nodeRef %s to the queue; size change %s\", nodeRef, change));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - Folder %s has the quota aspect added but no quota set\", quotaParent));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n }", "void updateSize() {\n setMeAndMyParentsAsDirty();\n }", "public void setSize(int size) {\n\t\tif (size < 0) {\n\t\t throw new IllegalArgumentException(\"Log cache size can't be negative\");\n\t\t}\n\t\tint delta = this.size - size;\n\t\tthis.size = size;\n\t\tif (delta <= 0) {\n\t\t return;\n\t\t}\n\t\tif (messages.size() < size) {\n\t\t return;\n\t\t}\n\t\twhile (delta-- > 0) {\n\t\t messages.removeFirst();\n\t\t}\n\t}", "public void onQueueChanged(@Nullable List<MediaSession.QueueItem> queue) {\n }", "@Override\n\tpublic void setWriteQueueMaxSize(int maxSize) {\n\t\t\n\t}", "public abstract void sizeChanged(SizeChangedEvent event);", "private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }", "int getQueueSize();", "public abstract void adjustSize(long size);", "@ApiModelProperty(value = \"The size of the FlowFiles queued across the entire flow\")\r\n public Long getBytesQueued() {\r\n return bytesQueued;\r\n }", "public long getQueueSize(){\n return queue.size();\n }", "public void setInputQueueSize(int aInputQueueSize) {\n inputQueueSize = aInputQueueSize;\n }", "public void setSize(long value) {\n this.size = value;\n }", "public void updateSize() {\n\t\t\tthis.setSize();\n\t\t\tif (this.checkRoot()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tparent.updateSize();\n\t\t}", "protected void fireQueueComplete() {\n for (UploadListener uploadListener : uploadListeners) {\n uploadListener.queueUploadComplete();\n }\n }", "public int getQueueSize() {\n return queue.getQueueSize();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tMessage msg=new Message();\n\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\tbundle.putInt(\"percent\",(int) (100*downLoadFileSize/totalsize));\n\t\t\t\tmsg.setData(bundle);\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t\n\t\t\t}", "public void newQueue(){\r\n\t\tgenerateQueue();\r\n\t\trefreshLeft = true;\r\n\t}", "@Async\r\n void processEvents() {\r\n for (;;) {\r\n \r\n // wait for key to be signalled\r\n WatchKey key;\r\n try {\r\n key = watcher.take();\r\n } catch (InterruptedException x) {\r\n log.error(\"interrupted exception: \" + x);\r\n return;\r\n }\r\n\r\n FolderConfig config = keys.get(key);\r\n Path dir = Paths.get(config.getDirectory());\r\n \r\n if (dir == null) {\r\n \r\n continue;\r\n }\r\n\r\n for (WatchEvent<?> event : key.pollEvents()) {\r\n WatchEvent.Kind kind = event.kind();\r\n\r\n // TBD - provide example of how OVERFLOW event is handled\r\n if (kind == OVERFLOW) {\r\n continue;\r\n }\r\n if (kind == StandardWatchEventKinds.ENTRY_CREATE) {\r\n insertIntoSDE(config, event.context().toString());\r\n }\r\n\r\n }\r\n\r\n // reset key and remove from set if directory no longer accessible\r\n boolean valid = key.reset();\r\n if (!valid) {\r\n keys.remove(key);\r\n\r\n // all directories are inaccessible\r\n if (keys.isEmpty()) {\r\n break;\r\n }\r\n }\r\n }\r\n }", "public int getQueueSize() {\r\n\t\treturn this.queue.size();\r\n\t}", "public synchronized int getSize() {\r\n\t\treturn queueManagers.size();\r\n\t}", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public int queueSize() {\n\t\treturn queue.size();\t\n\t}", "public Builder setMaxEnvelopeQueueSize(long value) {\n \n maxEnvelopeQueueSize_ = value;\n onChanged();\n return this;\n }", "public void run() {\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = Msg_SetProgress;\n\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t}", "public void actionPerformed(ActionEvent oEvent) {\n try {\n if (oEvent.getActionCommand().equals(\"UpdateSizeClasses\")) {\n\n //Make sure the values in the size classes are recognizable,\n //greater-than-zero numbers\n int iNumSizeClasses = 0;\n float fSizeClassSize = 0;\n try {\n JPanel jControls = (JPanel)DataGrapher.findNamedComponent(\n m_oChartFrame.getContentPane(), PANEL_NAME);\n JTextField jField = (JTextField)DataGrapher.findNamedComponent(\n jControls, NUMBER_SIZE_CLASS_NAME);\n Integer oNumSizeClasses = Integer.valueOf(jField.getText());\n jField = (JTextField)DataGrapher.findNamedComponent(jControls, \n SIZE_CLASS_SIZE_NAME);\n Float oSizeClassSize = Float.valueOf(jField.getText());\n iNumSizeClasses = oNumSizeClasses.intValue();\n fSizeClassSize = oSizeClassSize.floatValue();\n }\n catch (java.lang.NumberFormatException oErr) {\n JOptionPane.showMessageDialog(m_oChartFrame, \"The value for number \" +\n \t\t\"of size classes or size class size is not a recognized number.\");\n return;\n }\n\n if (iNumSizeClasses <= 0 || fSizeClassSize <= 0) {\n JOptionPane.showMessageDialog(m_oChartFrame, \"The values for number\" +\n \t\t\" of size classes or size class size must be greater than zero.\");\n return;\n }\n\n if (m_bFirstTime ||\n iNumSizeClasses != m_iNumSizeClasses ||\n fSizeClassSize != m_fSizeClassSize) {\n m_bFirstTime = false;\n m_iNumSizeClasses = iNumSizeClasses;\n m_fSizeClassSize = fSizeClassSize;\n\n //Make the size classes array\n mp_fSizeClasses = null;\n mp_fSizeClasses = new double [m_iNumSizeClasses];\n for (int i = 0; i < m_iNumSizeClasses; i++) {\n mp_fSizeClasses[i] = m_fSizeClassSize * (i + 1);\n }\n\n getDataAndMakeTables();\n }\n return;\n }\n else if (oEvent.getSource() instanceof JCheckBox) {\n JCheckBox jCheckBox = (JCheckBox)oEvent.getSource();\n if (jCheckBox.getName().equals(INCLUDE_LIVE_NAME))\n m_bIncludeLive = jCheckBox.isSelected();\n else if (jCheckBox.getName().equals(INCLUDE_SNAGS_NAME))\n m_bIncludeSnags = jCheckBox.isSelected();\n if (m_bFirstTime) return;\n JPanel jContentPanel = new JPanel(new BorderLayout());\n JComboBox<String> jComboBox = (JComboBox<String>)DataGrapher.findNamedComponent(\n m_oChartFrame.getContentPane(), SPECIES_COMBO_BOX_NAME);\n jContentPanel.add(makeSizeClassPanel(this, mp_sSpeciesNames, \n m_iNumSizeClasses, m_fSizeClassSize, jComboBox.getSelectedIndex(),\n m_bIncludeLive, m_bIncludeSnags), BorderLayout.NORTH); \n jContentPanel.add(makeTablePanel(jComboBox.getSelectedIndex()), \n BorderLayout.CENTER);\n m_oChartFrame.setContentPane(jContentPanel);\n //Create our menu\n m_oChartFrame = DataGrapher.addFileMenu(m_oChartFrame, this, m_bShowOneTimestep);\n m_oChartFrame.pack();\n return; \n }\n else if (oEvent.getActionCommand().equals(\"DisplayNewSpecies\")) {\n //Don't do anything if no tables have yet been created\n if (mp_iLiveTreeCounts == null) return;\n JPanel jContentPanel = new JPanel(new BorderLayout());\n JComboBox<String> jComboBox = (JComboBox<String>)DataGrapher.findNamedComponent(\n m_oChartFrame.getContentPane(), SPECIES_COMBO_BOX_NAME);\n jContentPanel.add(makeSizeClassPanel(this, mp_sSpeciesNames, \n m_iNumSizeClasses, m_fSizeClassSize, jComboBox.getSelectedIndex(),\n m_bIncludeLive, m_bIncludeSnags), BorderLayout.NORTH); \n jContentPanel.add(makeTablePanel(jComboBox.getSelectedIndex()), \n BorderLayout.CENTER);\n m_oChartFrame.setContentPane(jContentPanel);\n //Create our menu\n m_oChartFrame = DataGrapher.addFileMenu(m_oChartFrame, this, m_bShowOneTimestep);\n m_oChartFrame.pack();\n return;\n }\n super.actionPerformed(oEvent);\n }\n catch (sortie.data.simpletypes.ModelException oErr) {\n ErrorGUI oHandler = new ErrorGUI(m_oChartFrame);\n oHandler.writeErrorMessage(oErr);\n }\n }", "public Scouter(SynchronizedQueue<File> directoryQueue, File root ){\n this.m_DirectoryQueue = directoryQueue;\n this.f_Root = root;\n }", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void setGlobusAccountQueueSize(String systemAccountId, int queueSize) {\n logger.info(\n String.format(\n \"setGlobusAccountQueueSize: Entered with systemAccountId = %s, queueSize = %s\",\n systemAccountId, Integer.toString(queueSize)));\n boolean scoreUpdated = false;\n final Map<String, List<PooledSystemAccountWrapper>> classifier2ListMap =\n multiDataTransferAccounts.get(HpcDataTransferType.GLOBUS);\n if (null == classifier2ListMap || classifier2ListMap.isEmpty()) {\n logger.warn(\n \"setGlobusAccountQueueSize: There are no pools of GLOBUS app accounts, so do nothing.\");\n } else {\n for (Map.Entry<String, List<PooledSystemAccountWrapper>> mapEntry :\n classifier2ListMap.entrySet()) {\n final List<PooledSystemAccountWrapper> thePool = mapEntry.getValue();\n final String poolClassifier = mapEntry.getKey();\n if (null == thePool) {\n logger.warn(\n String.format(\n \"setGlobusAccountQueueSize: Globus app accounts for classifier \\\"%s\\\" is null.\"),\n poolClassifier);\n } else if (thePool.isEmpty()) {\n logger.warn(\n String.format(\n \"setGlobusAccountQueueSize: Globus app accounts for classifier \\\"%s\\\" is empty.\"),\n poolClassifier);\n } else if (scoreUpdated =\n updateAppAccountUtilizationScore(thePool, systemAccountId, queueSize)) {\n logger.info(\n String.format(\n \"setGlobusAccountQueueSize: Updated Globus app account's utilization score; found it in pool having classifier \\\"%s\\\"\",\n poolClassifier));\n break;\n } else {\n // do nothing, pool was neither null nor empty and didn't have the app account\n }\n }\n }\n logger.info(\n \"setGlobusAccountQueueSize: About to exit. Score was \"\n + (scoreUpdated ? \"\" : \"NOT\")\n + \" updated.\");\n }", "public void update () {\n synchronized (this) {\n messagesWaiting.add\n (new OleThreadRequest(UPDATE,\n 0, 0, 0, 0));\n notify();\n }\n }", "public void update() {\n\n if (waitingQueue == null)\n return;\n else if (waitingQueue.owner == null)\n return;\n else if (waitingQueue.pickNextThread() == null)\n return;\n\n if (waitingQueue.transferPriority && waitingQueue.pickNextThread().getWinningPriority() > waitingQueue.owner.getWinningPriority())\n {\n waitingQueue.owner.effectivePriority = waitingQueue.pickNextThread().getWinningPriority();\n waitingQueue.owner.recalculateThreadScheduling();\n waitingQueue.owner.update();\n }\n }", "public void setSizeMessage(String sizeMessage) {\n\t\tthis.sizeMessage = sizeMessage;\n\t}", "public synchronized final void setQueued(boolean qd) {\n\t\tsetFlag(RequestQueued, qd);\n\t}", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "public void updateValues() {\n\t\tThread thread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tdo {\n\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!mp3player.isPaused() && !mp3player.isStopped()) {\n\t\t\t\t\t\t\t\tcurrTime = System.currentTimeMillis() / 1000;\n\t\t\t\t\t\t\t\tcurrentDuration.setText(secToMin((long) (currTime - startTime + playedTime)));\n\t\t\t\t\t\t\t\tupdateSongProgress(currTime - startTime + playedTime);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (!playlist.isEmpty());\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\n\t}", "@Override\n public FileStorageResult<String> updateLastKnownFolder(FileStorageFolder folder, boolean ignoreWarnings, FileStorageFolder toUpdate) throws OXException {\n if (SetterAwareFileStorageFolder.class.isInstance(toUpdate) && ((SetterAwareFileStorageFolder) toUpdate).containsSubscribed()) {\n\n //Check for un-subscription and check if the last folder is going to be unscubscribed\n if (false == toUpdate.isSubscribed()) {\n List<FileStorageFolder> subscribedFolders = getVisibleRootFolders();\n Optional<FileStorageFolder> folderToUnsubscibe = subscribedFolders.stream().filter(f -> f.getId().equals(folder.getId())).findFirst();\n if (folderToUnsubscibe.isPresent()) {\n subscribedFolders.removeIf(f -> f == folderToUnsubscibe.get());\n if (subscribedFolders.isEmpty()) {\n //The last folder is going to be unsubscribed\n if (ignoreWarnings) {\n //Delete\n getService().getAccountManager().deleteAccount(getAccount(), session);\n } else {\n //Throw a warning\n String folderName = folderToUnsubscibe.get().getName();\n String accountName = getAccount().getDisplayName();\n return FileStorageResult.newFileStorageResult(null, Arrays.asList(ShareSubscriptionExceptions.ACCOUNT_WILL_BE_REMOVED.create(folderName, accountName)));\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }\n }\n }\n\n //Do the update\n getSubscribedHelper().setSubscribed(session, folder, B(toUpdate.isSubscribed()));\n return FileStorageResult.newFileStorageResult(folder.getId(), null);\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }", "public void setOutputQueueSize(int aOutputQueueSize) {\n outputQueueSize = aOutputQueueSize;\n }", "@Override\n public int queueLength() {\n return this.job_queue.size();\n }", "public void setBarSize(int aValue)\n {\n if (aValue==_barSize) return;\n firePropChange(BarSize_Prop, _barSize, _barSize = aValue);\n }", "public void setFileSize(long fileSize) {\n \t\n \t// Check if the file size has changed\n \t\n \tif ( getFileSize() != fileSize) {\n \t\t\n \t\t// Update the file size\n \t\t\n \t\tsuper.setFileSize( fileSize);\n \t\t\n \t\t// Queue a low priority state update\n \t\t\n \t\tqueueLowPriorityUpdate( UpdateFileSize);\n \t}\n }", "public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }", "public FireSize getSize() {\n return size;\n }", "public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}", "public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue );\r\n }", "@Override\n public void flush() {\n new QueueConsumer().run();\n }", "public Builder setFileSize(float value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }", "@Override\n public void folderChanged(IProject project, ResourceFolder folder, int eventType) {\n }", "public void setSize(int value) {\n\t\tthis.size = value;\n\t}", "public int eventQueueCapacity() {\n return eventQueueCapacity_;\n }", "public void setLogCollectionMaxFileSize(int size);", "private void sendQueuedNotifications() {\n Notification n;\n while ((n = pendingNotifs.poll()) != null) {\n broadcaster.sendNotification(n);\n }\n }", "@ApiModelProperty(value = \"The number of FlowFiles queued across the entire flow\")\r\n public Integer getFlowFilesQueued() {\r\n return flowFilesQueued;\r\n }", "@Override\n\t\tprotected void onProgressUpdate(String... values) {\n\t\t\tlong total = Long.parseLong(values[0]);\n\t\t\tdialog.setProgress((int) ((total * 100) / lengthOfFile));\n\t\t\tdialog.setMessage((total / (1024 * 1014)) + \"MB/\"\n\t\t\t\t\t+ (lengthOfFile / (1024 * 1024)) + \"MB\");\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "public void setSize(ReactSwipeRefreshLayout view, int value) {\n view.setSize(value);\n }", "private void workOnQueue() {\n }", "public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }", "public Queue(int size){\r\n\t\tthis.maxSize = size;\r\n\t\tthis.queueArray = new long[size];\r\n\t\tthis.front = 0; //index pos of the first slot of array\r\n\t\tthis.rear = -1; // there's no item in the array yet to be considered last item.\r\n\t\tthis.nItems = 0; //don't have elements in array yet\r\n\t}", "public void onQueue();", "@Override\n public void transferred(long num) {\n publishProgress((int) ((num / (float) totalSize) * 100));\n }", "@Override\n\tpublic void update()\n\t{\n\t\tfor (int i = 0; i < 16 && !processQueue.isEmpty(); i++)\n\t\t{\n\t\t\tProcessEntry entry = processQueue.remove();\n\t\t\tprocessPacket(entry.packet, entry.sourceClient);\n\t\t}\n\t\t\n\t\t// Flush pending packets\n\t\tclientChannels.flush();\n\t}", "public void increaseSize(int delta){\n\t\tif(scale < scaleMax)\n\t\t\tscale += enlarge * delta;\n\t}", "public interface OnQueueDataChangedListener {\n\n void onQueueDataChanged();\n }", "private static void start_write_action_from_ui_thread_and_refresh_folder(final VirtualFile folder) {\r\n // com.intellij.openapi.vfs.VirtualFile\r\n // public void refresh(boolean asynchronous, boolean recursive) ...\r\n // This method should be only called within write-action.\r\n ApplicationManager.getApplication().runWriteAction(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n folder.refresh(/*asynchronous*/ false, /*recursive*/ true);\r\n } catch (Throwable e) {\r\n e.printStackTrace();\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n });\r\n }", "private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n if(highPriorityMode) {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, HighPriorityModeComparator.COMPARATOR);\n } else {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, NoPriorityModeComparator.COMPARATOR);\n }\n this.queue.drainTo(newQueue);\n this.queue = newQueue;\n latch.countDown();\n }", "public void updateList()\r\n\t{\r\n\t\tclientQueue.offer(name);\r\n\t}", "public Scouter(SynchronizedQueue<java.io.File> directoryQueue, java.io.File root) {\r\n this.root = root;\r\n this.directory_queue = directoryQueue;\r\n }", "public void setQueueBand(String newValue) {\n String oldValue = _queueBand;\n if (!oldValue.equals(newValue)) {\n _queueBand = newValue;\n firePropertyChange(QUEUE_BAND_PROP, oldValue, newValue);\n }\n }", "public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}", "public int getQueueSize(String walGroupId) {\n Queue<Path> queue = queues.get(walGroupId);\n if (queue == null) {\n return 0;\n }\n return queue.size();\n }", "private void updateRunnable() {\n updateSeekBar = new Runnable() {\n @Override\n public void run() {\n playerSeekBar.setProgress(mediaPlayer.getCurrentPosition());\n seekBarHandler.postDelayed(this, 500);\n }\n };\n }", "private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }", "static synchronized void schedule(Event event) {\n if (ENABLED || QUEUE.size() <= MAX_QUEUE_SIZE) {\n QUEUE.add(event);\n }\n\n if (ENABLED) {\n if (QUEUE.size() >= MAX_QUEUE_SIZE) {\n sendAllScheduled();\n } else {\n //The arrival of a new item interrupts the timer and resets the countdown.\n WikipediaApp.getInstance().getMainThreadHandler().removeCallbacks(SEND_RUNNABLE);\n WikipediaApp.getInstance().getMainThreadHandler().postDelayed(SEND_RUNNABLE, WAIT_MS);\n }\n }\n }", "public void setSizeQty(Number value) {\n setAttributeInternal(SIZEQTY, value);\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedBufferSize() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "public void requestFolderRefreshRequired() {\r\n if(!refreshInProgress.get()) {\r\n cleanBeforeNextUse();\r\n }\r\n }", "@Override\n public void onPopulateSdFilesTaskProgressUpdated(\n ExternalFileInfo savedRoot,\n ExternalFileInfo savedFolder,\n ExternalFileInfo savedLeaf) {\n\n // at this point breadcrum bar should be updated\n Context context = getContext();\n if (context == null) {\n return;\n }\n if (savedFolder != null && savedRoot != null) {\n // load the new built folder\n mCurrentFolder = savedFolder;\n mCurrentRoot = savedRoot;\n } else {\n // folder could not be built, so load root folder\n mCurrentFolder = null;\n mCurrentRoot = null;\n }\n if (savedLeaf != null) {\n rebuildBreadcrumbBar(context, savedLeaf);\n }\n if (mCurrentFolder != null) {\n setCurrentBreadcrumb(findBreadcrumb(mCurrentFolder));\n }\n\n // no need to build saved folder anymore. the relevant settings will be\n // updated in pauseFragment\n mSavedFolderUri = null;\n mSavedLeafUri = null;\n\n }", "public void setPackageSize(int size){\r\n }", "private synchronized void onUpdate() {\n if (pollingJob == null || pollingJob.isCancelled()) {\n int refresh;\n\n try {\n refresh = getConfig().as(OpenSprinklerConfig.class).refresh;\n } catch (Exception exp) {\n refresh = this.refreshInterval;\n }\n\n pollingJob = scheduler.scheduleWithFixedDelay(refreshService, DEFAULT_WAIT_BEFORE_INITIAL_REFRESH, refresh,\n TimeUnit.SECONDS);\n }\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }" ]
[ "0.6317872", "0.6196343", "0.57652247", "0.5608452", "0.55968225", "0.556732", "0.54937387", "0.54356086", "0.5400373", "0.53578717", "0.5268364", "0.5257533", "0.52394044", "0.5226206", "0.52245885", "0.52194643", "0.5207639", "0.52018094", "0.5189358", "0.51826924", "0.5141193", "0.51354706", "0.5106702", "0.5059048", "0.50469154", "0.50024563", "0.5000054", "0.49676797", "0.49504268", "0.4947375", "0.49325076", "0.49122617", "0.4904204", "0.48843977", "0.48797148", "0.48714468", "0.48305383", "0.48239827", "0.48042208", "0.48005533", "0.47834432", "0.47703165", "0.47575575", "0.47557306", "0.47527853", "0.47479212", "0.47456387", "0.47423092", "0.472624", "0.4723544", "0.47158363", "0.47062415", "0.46992767", "0.4689922", "0.46869737", "0.4680884", "0.46781844", "0.46777117", "0.46709383", "0.46653974", "0.4664797", "0.4662985", "0.46626768", "0.46294266", "0.462708", "0.4610515", "0.46045774", "0.46016294", "0.4593497", "0.45874533", "0.4576962", "0.45746073", "0.45682195", "0.45673972", "0.45645967", "0.4555904", "0.45545825", "0.45530787", "0.45514444", "0.45512322", "0.45493308", "0.45480788", "0.45476136", "0.45449117", "0.4544865", "0.45445478", "0.45386094", "0.45380843", "0.45374587", "0.45344898", "0.45332715", "0.45305774", "0.4526604", "0.45180547", "0.45162997", "0.4514862", "0.45143056", "0.45142943", "0.45138952", "0.45136306" ]
0.709365
0
The folder usage calculator is used to calculate the initial size of a folder when the "quota" aspect is added.
public void setFolderUsageCalculator(FolderUsageCalculator usage) { this.usage = usage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long execute() throws Throwable\n \t\t\t\t{\n \t\t\t\t\tLong currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n \t\t\t\t\tif (currentSize == null) {\n \t\t\t\t\t\tcurrentSize=0L;\n \t\t\t\t\t}\n \t\t\t\t\tLong newSize = currentSize + sizeChange;\n \t\t\t\t\tserviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize);\n \t\t\t\t\tlogger.debug(String.format(\"Property %s set to %s\",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize));\n \t\t\t\t\treturn newSize;\n \t\t\t\t}\n \t\t\t};\n \t\t\ttry\n \t\t\t{\n \t\t\t\tRetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper();\n \t\t\t\tLong newSize = txnHelper.doInTransaction(callback, false, true);\n\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\n \t\t\t\t\t\t\t\"Incremented folder size on quota folder node: \\n\" +\n \t\t\t\t\t\t\t\t\t\" Node: \" + quotaFolder + \"\\n\" +\n \t\t\t\t\t\t\t\t\t\" New Size: \" + newSize);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (InvalidNodeRefException e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\"Unable to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (Throwable e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(e);\n \t\t\t\t}\n \t\t\t\tlogger.error(\"Failed to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t}\n \t\t\treturn \"\";\n \t\t}\n \t}, AuthenticationUtil.getSystemUserName());\n }", "private long getSize(String securedFolderPath) {\n\n logger.info(\"Current secured folder size in FolderMonitor\");\n\n long size = 0;\n\n File folder = new File(securedFolderPath);\n\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles.length > 0) {\n\n for (File file : listOfFiles) {\n\n if (file.toString().contains(CommonConstants.BATCH)\n || file.toString().contains(CommonConstants.SH)) {\n\n file.delete();\n logger.info(\"File deleted :\" + file.getName());\n continue;\n }\n if (file.isFile()) {\n\n size += file.length();\n }\n }\n }\n return size;\n\n }", "public void calculateDiskUsage() {\n\t\tdiskUsage = 0;\n\t\t// FIXME the speed of this can be improved by using a static map of content/ncc doc sizes \n\t\tfor (FilesetFile fsf : allFiles) {\n\t\t\tdiskUsage += fsf.getFile().length();\n\t\t}\t\t\n\t}", "public Quota.Counts computeQuotaUsage4CurrentDirectory(Quota.Counts counts) {\r\n counts.add(Quota.NAMESPACE, 1);\r\n return counts; \r\n }", "public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}", "@Override\n public abstract float calculaQuota(float quotaBase) throws ExcepcioClub;", "private void recalculateFilesAvailable() {\n Collection<Folder> folders = getController().getFolderRepository()\n .getFolders();\n long count = 0;\n for (Folder folder : folders) {\n count += folder.getStatistic().getIncomingFilesCount();\n if (isFiner()) {\n logFiner(\"Folder: \" + folder.getName() + \", incoming: \"\n + folder.getStatistic().getIncomingFilesCount());\n }\n }\n filesAvailableLine.setValue(count);\n }", "public static long getAllSize2(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) && !file.getPath().equals(path.getPath()))\n \t\t\t{\n\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\treturn size;\n\t}", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "public static long getAllSize(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) || file.getPath().equals(path.getPath()))\n \t\t\t{\n \t\t\t\tif(file.canRead())\n \t\t\t\t{\n\t\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tStatFs stat = new StatFs(path.getPath()); \n\t\t\tlong blockSize = stat.getBlockSize(); \n\t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t\tsize = availableBlocks * blockSize; \n\t\t}\n\t\treturn size;\n\t}", "private long getFolderSize(String filePath)\n {\n // Source/Inspiration for codeblock below: http://www.baeldung.com/java-folder-size\n File dir = new File(filePath);\n\n File[] filesinDir = dir.listFiles();\n\n long directorySize = 0;\n\n // traverse through dir structure\n if (filesinDir != null) {\n for (File currentFile : filesinDir) {\n if (currentFile.isFile()) {\n directorySize += currentFile.length();\n } else {\n // Recursive call for subdirectories\n directorySize += getFolderSize(currentFile.getPath());\n }\n }\n }\n return directorySize;\n }", "public Long getFolderSize(long id, String filter, boolean visibleOnly) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n List<Predicate> predicates = getPredicates(entry, filter);\n\n if (visibleOnly) {\n predicates.add(entry.get(\"visibility\").in(Arrays.asList(Visibility.OK.getValue(),\n Visibility.REMOTE.getValue())));\n }\n\n predicates.add(getBuilder().equal(from.get(\"id\"), id));\n query.select(getBuilder().countDistinct(entry.get(\"id\")));\n query.where(predicates.toArray(new Predicate[0]));\n return currentSession().createQuery(query).uniqueResult();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "public static String m578g() {\r\n long j = 0;\r\n try {\r\n if (\"mounted\".equals(Environment.getExternalStorageState())) {\r\n StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n }\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }", "int getQuotaMetricsCount();", "public long getTotalSpace(){\n return totalSpace;\n }", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "public folderize() {\n }", "private static void calculateSizes() {\n for(EmailTypes type : EmailTypes.values()){\n File f = unpackedFiles.get(type);\n setSizes.put(type, Objects.requireNonNull(f.listFiles()).length);\n }\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "public int getTotalSize();", "public static long diskUsage(File root) {\n\t\tlong total = root.length();\t\t\t\t\t\t\t//start with direct disk usage\n\t\tif(root.isDirectory()) {\t\t\t\t\t\t\t//and if this is a directory,\n\t\t\tfor(String childName : root.list()) {\t\t\t//then for each child\n\t\t\t\tFile child = new File(root, childName);\t\t//compose a full path to child\n\t\t\t\ttotal += diskUsage(child);\t\t\t\t\t//add child's usage to total\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(total + \"\\t\" + root); \t\t\t//descriptive output\n\t\treturn total;\t\t\t\t\t\t\t\t\t\t//return grand total\n\t}", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}", "@Override\n\tpublic int totalPathLength() {\n\t\treturn totalPathLength(root, sum);// returns total path lenght number\n\t}", "private long getTotal(String path) {\n StatFs statFs = new StatFs(path);\n\n if (Constants.BETA)\n Log.i(\"DeviceModel\", \"Free on \"+path+\"=\"+statFs.getBlockSize());\n return (isJellyBean)\n ? statFs.getBlockCountLong() * statFs.getBlockSizeLong()\n : (long)statFs.getBlockCount() * (long)statFs.getBlockSize();\n }", "int getTotalSize();", "public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }", "public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }", "public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }", "public static long getUsableSpace(File path) {\n\t\t// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n\t\t// return path.getUsableSpace();\n\t\t// }\n\t\tfinal StatFs stats = new StatFs(path.getPath());\n\t\treturn (long) stats.getBlockSize() * (long) stats.getAvailableBlocks();\n\t}", "@Override\n public void run() {\n updateTotalSizeOfFilesInDir(child);\n }", "public void setTotalStorage(long totalStorage) {\n this.totalStorage = totalStorage;\n }", "@Override public long getUsedSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "private long directorySize(String name) {\n\t\tFile directory = new File(name);\n\t\tif (!directory.exists())\n\t\t\treturn 0;\n\t\tif (directory.isFile()) \n\t\t\treturn directory.length();\n\t\tlong length = 0;\n\t\tfor (File file : directory.listFiles()) {\n\t\t\tif (file.isFile())\n\t\t\t\tlength += file.length();\n\t\t\telse if (file.isDirectory())\n\t\t\t\tlength += directorySize(file.getPath());\n\t\t}\n\t\treturn length;\n\t}", "public String numFoldersMIOptionTipText() {\n return \"Sets the number of folder for mutual information.\";\n }", "public long getTotalSize() {\n return totalSize;\n }", "long getOccupiedSize();", "public static long m136421a() {\n StatFs statFs;\n long j;\n try {\n statFs = new StatFs(Environment.getExternalStorageDirectory().getAbsolutePath());\n } catch (IllegalArgumentException unused) {\n statFs = null;\n }\n if (statFs == null) {\n j = 0;\n } else if (VERSION.SDK_INT >= 18) {\n j = statFs.getBlockSizeLong() * statFs.getAvailableBlocksLong();\n } else {\n j = ((long) statFs.getBlockSize()) * ((long) statFs.getAvailableBlocks());\n }\n return (j / 1024) / 1024;\n }", "public int getNumFoldersMIOption() {\n return m_NumFoldersMI;\n }", "Integer diskSizeGB();", "private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }", "public long getTotalStorage() {\n return totalStorage;\n }", "@Override\r\n protected Double doInBackground(Void... params) {\n try {\r\n double size1 = FileSizeUtil.getFileOrFilesSize(MyString.maps_cache_google_img_folder_path, FileSizeUtil.SIZETYPE_MB);\r\n double size2 = FileSizeUtil.getFileOrFilesSize(MyString.maps_cache_google_img_anno_folder_path, FileSizeUtil.SIZETYPE_MB);\r\n double storage = size1 + size2;\r\n //存入数据\r\n MySharedPreferences.putOfflineTileSize(storage);\r\n return storage;\r\n } catch (Exception e) {\r\n return 0.0;\r\n }\r\n }", "public static long getTotalExternalStorageSize() {\n StatFs stat = new StatFs(getExternalStoragePath());\n return stat.getBlockSize() * stat.getBlockCount();\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public long getGranularityInMB() {\n return granularityInMB;\n }", "@ApiModelProperty(required = true, value = \"Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\\\"local\\\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\\\"not available\\\")\")\n\n public Long getSize() {\n return size;\n }", "public long getTotalAmountUploaded();", "private static long dirSize(File dir) {\n\t long result = 0;\n\t File[] fileList = dir.listFiles();\n\n\t for(int i = 0; i < fileList.length; i++) {\n\t // Recursive call if it's a directory\n\t if(fileList[i].isDirectory()) {\n\t result += dirSize(fileList[i]);\n\t } else {\n\t // Sum the file size in bytes\n\t result += fileList[i].length();\n\t }\n\t }\n\t return result; // return the file size\n\t}", "public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) {\n\t\t//if the change size will push the folder over quota, roll back the current transaction\n\t\tfinal UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction();\n\n\t\tAuthenticationUtil.runAsSystem(new RunAsWork<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object doWork() throws Exception {\n\t\t\t\tlogger.debug(\"[FolderQuota] - onContentPropertyUpdate\");\n\t\t\t\tlong change = 0;\n\n\t\t\t\t//beforeValue can be null on new item creation\n\t\t\t\tif(beforeValue == null) change = afterValue.getSize();\n\t\t\t\telse change = afterValue.getSize() - beforeValue.getSize();\n\n\t\t\t\tNodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef);\n\n\t\t\t\tif(change > 0) {\n\t\t\t\t\tif(quotaParent != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tNodeService nodeService = serviceRegistry.getNodeService();\n\t\t\t\t\t\tLong quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA);\n\t\t\t\t\t\tLong currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n\t\t\t\t\t\t//quotaSize can be null if the aspect has been added but the quota has not yet been set\n\t\t\t\t\t\tif(quotaSize != null) {\n\t\t\t\t\t\t\tif(currentSize + change > quotaSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(SystemException ex)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - An upload to folder %s failed due to quota\", quotaParent));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//queue.enqueueEvent(quotaParent, change);\n\t\t\t\t\t\t\t\tupdateSize(quotaParent, change);\n\t\t\t\t\t\t\t\tlogger.debug(String.format(\"[FolderQuota] - Added nodeRef %s to the queue; size change %s\", nodeRef, change));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - Folder %s has the quota aspect added but no quota set\", quotaParent));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n }", "private void checkFreeDiskSpace(List<File> inputFiles) {\n //Check for free space\n long usableSpace = 0;\n long totalSize = 0;\n for (File f : inputFiles) {\n if (f.exists()) {\n totalSize += f.length();\n usableSpace = f.getUsableSpace();\n }\n }\n log.info(\"Total expected store size is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(totalSize / (1024 * 1024)));\n log.info(\"Usable free space on the system is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(usableSpace / (1024 * 1024)));\n if (totalSize / (double) usableSpace >= 0.66) {\n throw new OutOfDiskSpace(\"Aborting because there isn't enough free disk space\");\n }\n }", "long getConsumedWorkUnits();", "public void onAddAspect(NodeRef nodeRef, QName aspectTypeQName) \n\t{\n\t\tlogger.debug(\"[FolderQuota] - onAddAspect\");\n\t\t//check the aspect and calculate the usage if configured to do so\n\t\tif (serviceRegistry.getNodeService().hasAspect(nodeRef, FolderQuotaConstants.ASPECT_FQ_QUOTA) && updateOnAddAspect) \n\t\t{\n\t\t\tLong size = usage.calculateFolderSize(nodeRef);\n\t\t\tupdateSize(nodeRef, size);\n\t\t\t//queue.enqueueEvent(nodeRef, size);\n\t\t}\n\t}", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "@Override\n\tpublic int quotaCount(int studyno) {\n\t\treturn mapper.quotaCount(studyno);\n\t}", "protected int calculateUnits(Object oValue)\n {\n OldOldCache map = OldOldCache.this;\n Object oKey = getKey();\n switch (map.getUnitCalculatorType())\n {\n case UNIT_CALCULATOR_BINARY:\n return BinaryMemoryCalculator.INSTANCE.calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_EXTERNAL:\n return map.getUnitCalculator().calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_FIXED:\n default:\n return 1;\n }\n }", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "private void updateByteCount(Label byteCountLabel, Label byteCountUnit, String unit, Number newByteCount, double offset) {\n double byteCount = newByteCount.longValue() + offset;\n /*\n The size of a kilobyte in bytes\n */\n long kilobyte = 1024;\n double KBCount = byteCount / kilobyte;\n double displayedCount = KBCount;\n if(KBCount > 1024){\n double MBCount = KBCount / kilobyte;\n if(MBCount > 1024){\n displayedCount = MBCount / kilobyte;\n if(unit.compareTo(\"GB\")!=0){\n unit = \"GB\";\n byteCountUnit.setText(unit);\n }\n } else {\n displayedCount = MBCount;\n if(unit.compareTo(\"MB\")!=0){\n unit = \"MB\";\n byteCountUnit.setText(unit);\n }\n }\n }\n byteCountLabel.setText(String.valueOf(df.format(displayedCount)));\n }", "public int getnumFolders() {\r\n\t\t//initialize the variable numFolders \r\n\t\tthis.numFolders=0;\r\n\r\n\t\t//an enhanced for loop is used to iterate through the array DirectoryList\r\n\t\tfor(DirectoryComponent item: DirectoryList){\r\n\r\n\t\t\t/*this IF condition is used to check if the object in the current index \r\n\t\t\tof the array is of type Directory\r\n\t\t\t */\r\n\t\t\tif(item instanceof Directory){\r\n\r\n\t\t\t\t/*if the object is a directory the numfolder is incremented by 1, \r\n\t\t\t\t\tand the method is called again to check for folders in that folder.\r\n\t\t\t\t */\r\n\t\t\t\tthis.numFolders ++;\r\n\t\t\t\tthis.numFolders += item.getnumFolders();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//the method then returns the total number of folders\r\n\t\treturn numFolders;\r\n\t}", "public double getUnitsPerPercent()\n {\n return unitsPerPercent;\n }", "long storageSize();", "public float sizeMultiplier();", "public double getTotalHdGB () { return n.getResources(RESOURCETYPE_HD).stream().mapToDouble(r->r.getCapacity()).sum (); }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "int getTotalFree();", "public int getTotalSize() {\n return totalSize_;\n }", "public long size(String path);", "public int getSize(){\n //To be written by student\n return localSize;\n }", "Long diskSizeBytes();", "@Override public long getAvailableSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "private int getDisk_wrapper() {\n int result = WsResultType.Success;\n ArrayList<WsFolder> r_wsFolder = new ArrayList<WsFolder>();\n result = ClientWS.getInstance(mContext).getDisk(r_wsFolder);\n for (WsFolder ws_f : r_wsFolder) {\n CloudFile f = new CloudFile();\n f.setFileType(CloudFileType.TYPE_FOLDER);\n f.setRemote_id(ws_f.ID);\n f.setFilePath(ws_f.Name);\n mFolderList.add(f);\n }\n return result;\n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "public long estimateSize() {\n/* 1448 */ return this.est;\n/* */ }", "public int getDiskUtil() {\n\t\treturn getSize();\n\t}", "long getUsedSpace() throws IOException;", "double getCapacityRatioByMountAndStorageType(String mount,\n StorageType storageType) {\n if (mountVolumeMapping.containsKey(mount)) {\n return mountVolumeMapping.get(mount).getCapacityRatio(storageType);\n }\n return 1;\n }", "public static int deleteFolder(String filePath) {\n File file = new File(filePath);\n if (!file.exists()) {\n return 0;\n } else {\n if (file.isFile()) {\n boolean del = deleteFile(file);\n return (int) (del ? file.length() / SIZE_UNIT_K : 0);\n } else {\n long delSize = deleteDirectory(file.getAbsolutePath());\n return (int) (delSize / SIZE_UNIT_K);\n }\n }\n }", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "private void incrementUsageCount() {\n usageCount++;\n }", "public void calcPerfMeasure(View view) {\n \tPerfMeasure.Calculate();\n \talertbox(\"HTTP Download Performance\",PerfMeasure.toString());\n }", "@Override public long getSize() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "BigDecimal getCacheSpaceAvailable();", "@ApiModelProperty(required = true, value = \"The length of the file/folder.\")\n public Long getLength() {\n return length;\n }", "@Test\n \tpublic void testSize() throws FileNotFoundException {\n \n \t\tMain.main(new String[]{\n \t\t\t\tArgs.TEST_STYLE_ARG,\n \t\t\t\t\"--preserve-element-order\",\n \t\t\t\tArgs.TEST_RESOURCE_OSM + \"uk-test-1.osm.gz\"\n \t\t});\n \n \t\tFileSystem fs = ImgFS.openFs(Args.DEF_MAP_ID + \".img\");\n \t\tassertNotNull(\"file exists\", fs);\n \n \t\tList<DirectoryEntry> entries = fs.list();\n \t\tint count = 0;\n \t\tfor (DirectoryEntry ent : entries) {\n \t\t\tString ext = ent.getExt();\n \n \t\t\tint size = ent.getSize();\n \t\t\tif (ext.equals(\"RGN\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"RGN size\", 153466, size);\n \t\t\t} else if (ext.equals(\"TRE\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"TRE size\", 1897, size);\n \t\t\t} else if (ext.equals(\"LBL\")) {\n \t\t\t\tcount++;\n\t\t\t\tassertEquals(\"LBL size\", 28351, size);\n \t\t\t}\n \t\t}\n \t\tassertTrue(\"enough checks run\", count >= 3);\n \t}", "private int computePreferredMinimumSize(boolean width,\r\n\t\t\tint availablePerpendicular) {\r\n\t\tint minSize;\r\n\t\tint hint = availablePerpendicular == INFINITE ? SWT.DEFAULT\r\n\t\t\t\t: availablePerpendicular;\r\n\t\tif (width) {\r\n\t\t\tminSize = folder.getTabFolder().computeSize(SWT.DEFAULT, hint).x;\r\n\t\t} else {\r\n\t\t\tminSize = folder.getTabFolder().computeSize(hint, SWT.DEFAULT).y;\r\n\t\t}\r\n\t\treturn minSize;\r\n\t}", "public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}", "public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "private void getQuota() {\n getProgressDialog().show();\n new Handler().postDelayed(this::onQuotaDownloadComplete, 2000);\n }", "private void calcAndSetImageSize() {\r\n\t\tint alphabetSize = ((Number) jSpinnerAlphabetSize.getValue()).intValue();\r\n\t\tint subWordLength = ((Number) jSpinnerSubWordLength.getValue()).intValue();\r\n\t\tint mag = ((Number) jSpinnerMag.getValue()).intValue();\t\r\n\t\tint imageSize = ((int) (Math.sqrt(alphabetSize))) * (int) Math.pow(2, subWordLength-1) * mag;\r\n\t\tjLabelImageSize.setText(\"Image size: \" + imageSize + \"x\" + imageSize);\r\n\t}", "private int getSizeForNonResourceType(final int t) {\n\n if (t == VueMetadataElement.RESOURCE_CATEGORY) {\n Log.warn(\"impl never searched RESOURCE_CATEGORY\");\n return 0;\n }\n if (t == VueMetadataElement.CATEGORY)\n return getCategoryListSize();\n else if (t == VueMetadataElement.ONTO_TYPE)\n return getOntologyListSize();\n else\n return getOtherListSize();\n }", "public long getDiskUsage() {\n\t\treturn diskUsage;\n\t}", "public float getFileSize() {\n return fileSize_;\n }", "public int getAclSize() {\n return dataTree.aclCacheSize();\n }", "private void addFolder(){\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }" ]
[ "0.6396282", "0.6229638", "0.6131152", "0.6007567", "0.5780042", "0.5775353", "0.570056", "0.5680387", "0.5635247", "0.5635247", "0.55432034", "0.5534387", "0.55341035", "0.5530752", "0.55171585", "0.5504063", "0.5468513", "0.5459951", "0.5457673", "0.5436457", "0.5412694", "0.5397025", "0.537813", "0.53718436", "0.5371778", "0.5336219", "0.5278462", "0.5273996", "0.52292883", "0.52292883", "0.5222251", "0.521343", "0.518641", "0.51759917", "0.51580894", "0.5155626", "0.5151907", "0.5140826", "0.51249534", "0.5101108", "0.509216", "0.5090241", "0.5088197", "0.50535476", "0.5033277", "0.5028238", "0.50273365", "0.5022855", "0.50146496", "0.5000496", "0.49976844", "0.4987214", "0.49785873", "0.4945873", "0.492935", "0.49251303", "0.49152687", "0.4914944", "0.49061018", "0.4902667", "0.4882964", "0.48786896", "0.48708472", "0.48692444", "0.48663747", "0.48661444", "0.48661444", "0.48571098", "0.48566747", "0.484883", "0.4844814", "0.48439485", "0.48394322", "0.48375157", "0.4834608", "0.4831966", "0.4829809", "0.482789", "0.4821362", "0.48070517", "0.48047656", "0.4799763", "0.47992113", "0.47960374", "0.47947782", "0.47940248", "0.47906598", "0.47902596", "0.47819802", "0.4781715", "0.4773035", "0.47665417", "0.476504", "0.47586375", "0.47484228", "0.47416377", "0.4736938", "0.47367093", "0.47366548", "0.47366548" ]
0.69170755
0
Should the folder usage be automatically updated when the quota aspect is added?
public void setUpdateUsageOnAddAspect(boolean updateOnAddAspect) { this.updateOnAddAspect = updateOnAddAspect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Quota.Counts computeQuotaUsage4CurrentDirectory(Quota.Counts counts) {\r\n counts.add(Quota.NAMESPACE, 1);\r\n return counts; \r\n }", "@Override\n public abstract float calculaQuota(float quotaBase) throws ExcepcioClub;", "int getQuotaMetricsCount();", "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long execute() throws Throwable\n \t\t\t\t{\n \t\t\t\t\tLong currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n \t\t\t\t\tif (currentSize == null) {\n \t\t\t\t\t\tcurrentSize=0L;\n \t\t\t\t\t}\n \t\t\t\t\tLong newSize = currentSize + sizeChange;\n \t\t\t\t\tserviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize);\n \t\t\t\t\tlogger.debug(String.format(\"Property %s set to %s\",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize));\n \t\t\t\t\treturn newSize;\n \t\t\t\t}\n \t\t\t};\n \t\t\ttry\n \t\t\t{\n \t\t\t\tRetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper();\n \t\t\t\tLong newSize = txnHelper.doInTransaction(callback, false, true);\n\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\n \t\t\t\t\t\t\t\"Incremented folder size on quota folder node: \\n\" +\n \t\t\t\t\t\t\t\t\t\" Node: \" + quotaFolder + \"\\n\" +\n \t\t\t\t\t\t\t\t\t\" New Size: \" + newSize);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (InvalidNodeRefException e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(\"Unable to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (Throwable e)\n \t\t\t{\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tlogger.debug(e);\n \t\t\t\t}\n \t\t\t\tlogger.error(\"Failed to update folder size on quota folder node: \" + quotaFolder);\n \t\t\t}\n \t\t\treturn \"\";\n \t\t}\n \t}, AuthenticationUtil.getSystemUserName());\n }", "public void setFolderUsageCalculator(FolderUsageCalculator usage) \n\t{\n\t\tthis.usage = usage;\n\t}", "@Override\n\tpublic int quotaCount(int studyno) {\n\t\treturn mapper.quotaCount(studyno);\n\t}", "private void incrementUsageCount() {\n usageCount++;\n }", "public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}", "public void onAddAspect(NodeRef nodeRef, QName aspectTypeQName) \n\t{\n\t\tlogger.debug(\"[FolderQuota] - onAddAspect\");\n\t\t//check the aspect and calculate the usage if configured to do so\n\t\tif (serviceRegistry.getNodeService().hasAspect(nodeRef, FolderQuotaConstants.ASPECT_FQ_QUOTA) && updateOnAddAspect) \n\t\t{\n\t\t\tLong size = usage.calculateFolderSize(nodeRef);\n\t\t\tupdateSize(nodeRef, size);\n\t\t\t//queue.enqueueEvent(nodeRef, size);\n\t\t}\n\t}", "private void getQuota() {\n getProgressDialog().show();\n new Handler().postDelayed(this::onQuotaDownloadComplete, 2000);\n }", "void onUpdate(long diskUsageSample);", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedBufferSize() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode getQuotaMode();", "private void recalculateFilesAvailable() {\n Collection<Folder> folders = getController().getFolderRepository()\n .getFolders();\n long count = 0;\n for (Folder folder : folders) {\n count += folder.getStatistic().getIncomingFilesCount();\n if (isFiner()) {\n logFiner(\"Folder: \" + folder.getName() + \", incoming: \"\n + folder.getStatistic().getIncomingFilesCount());\n }\n }\n filesAvailableLine.setValue(count);\n }", "public void setFolderQuotaUpdateQueue(FolderQuotaUpdateQueue queue)\n {\n \tthis.queue = queue;\n }", "List<StorageResourceUsage> getStorageResourceUsage();", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) {\n\t\t//if the change size will push the folder over quota, roll back the current transaction\n\t\tfinal UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction();\n\n\t\tAuthenticationUtil.runAsSystem(new RunAsWork<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object doWork() throws Exception {\n\t\t\t\tlogger.debug(\"[FolderQuota] - onContentPropertyUpdate\");\n\t\t\t\tlong change = 0;\n\n\t\t\t\t//beforeValue can be null on new item creation\n\t\t\t\tif(beforeValue == null) change = afterValue.getSize();\n\t\t\t\telse change = afterValue.getSize() - beforeValue.getSize();\n\n\t\t\t\tNodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef);\n\n\t\t\t\tif(change > 0) {\n\t\t\t\t\tif(quotaParent != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tNodeService nodeService = serviceRegistry.getNodeService();\n\t\t\t\t\t\tLong quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA);\n\t\t\t\t\t\tLong currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT);\n\t\t\t\t\t\t//quotaSize can be null if the aspect has been added but the quota has not yet been set\n\t\t\t\t\t\tif(quotaSize != null) {\n\t\t\t\t\t\t\tif(currentSize + change > quotaSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(SystemException ex)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - An upload to folder %s failed due to quota\", quotaParent));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//queue.enqueueEvent(quotaParent, change);\n\t\t\t\t\t\t\t\tupdateSize(quotaParent, change);\n\t\t\t\t\t\t\t\tlogger.debug(String.format(\"[FolderQuota] - Added nodeRef %s to the queue; size change %s\", nodeRef, change));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.warn(String.format(\"[FolderQuota] - Folder %s has the quota aspect added but no quota set\", quotaParent));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n }", "public double getQuotaLimit() {\n\t\treturn this.quotaLimit;\n\t}", "int getQuotaModeValue();", "public void calculateDiskUsage() {\n\t\tdiskUsage = 0;\n\t\t// FIXME the speed of this can be improved by using a static map of content/ncc doc sizes \n\t\tfor (FilesetFile fsf : allFiles) {\n\t\t\tdiskUsage += fsf.getFile().length();\n\t\t}\t\t\n\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_QuotaBump() {\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_ADDITIONAL_DURATION_MS, MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_WINDOW_SIZE_MS, 8 * HOUR_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Close to RARE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS),\n 30 * SECOND_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 16 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 12 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 8 * HOUR_IN_MILLIS));\n // Far away from FREQUENT boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n // Overlap WORKING_SET boundary.\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 2 * HOUR_IN_MILLIS));\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 15 * MINUTE_IN_MILLIS));\n // Close to ACTIVE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS + 30 * SECOND_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}", "private static void collectNamespaceQuota(Date collectionTime) {\n\t\tNamespaceDAO namespaceDAO = null;\n\t\tif(!elasticHosts.isEmpty()) {\n\t\t\t// Instantiate file DAO\n\t\t\tElasticDAOConfig daoConfig = new ElasticDAOConfig();\n\t\t\tdaoConfig.setHosts(Arrays.asList(elasticHosts.split(\",\")));\n\t\t\tdaoConfig.setPort(elasticPort);\n\t\t\tdaoConfig.setClusterName(elasticCluster);\n\t\t\tdaoConfig.setCollectionTime(collectionTime);\n\t\t\tinitXPackConfig(daoConfig);\n\t\t\tnamespaceDAO = new ElasticNamespaceQuotaDAO(daoConfig);\n\t\t\t// init indexes\n\t\t\tnamespaceDAO.initIndexes(collectionTime);\n\t\t} else {\n\t\t\t// Instantiate file DAO\n\t\t\tnamespaceDAO = new FileNamespaceDAO(null);\n\t\t}\n\t\t\n\t\t// instantiate billing BO\n\t\tNamespaceBO namespaceBO = new NamespaceBO( ecsMgmtAccessKey, \n\t\t\t\t\t\t\t\t\t\t\t ecsMgmtSecretKey,\n\t\t\t\t\t\t\t\t\t\t\t Arrays.asList(ecsHosts.split(\",\")),\n\t\t\t\t\t\t\t\t\t\t\t ecsMgmtPort,\n\t\t\t\t\t\t\t\t\t\t\t namespaceDAO,\n\t\t\t\t\t\t\t\t\t\t\t objectCount );\n\t\t\n\t\t// Start collection\n\t\tnamespaceBO.collectNamespaceQuota(collectionTime);\n\t\tnamespaceBO.shutdown();\n\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_QuotaBump_CrucialBumps() {\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_ADDITIONAL_DURATION_MS, MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_WINDOW_SIZE_MS, 8 * HOUR_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (25 * HOUR_IN_MILLIS),\n 30 * MINUTE_IN_MILLIS, 25), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 16 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 12 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 8 * HOUR_IN_MILLIS));\n // Without the valid quota bumps, the app would only 3 minutes until the quota was consumed.\n // The quota bumps provide enough quota to bridge the gap between the two earliest sessions.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS),\n 2 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 1), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 15 * MINUTE_IN_MILLIS));\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 1), false);\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(2 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(7 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "public boolean hasQuotaSpace(long filesize) {\r\n\t\tdouble megSize = (usedspace + filesize) / StorageMgr.BYTE_PER_MEG;\r\n\t\treturn ( (quota < 1) || (quota >= megSize));\r\n\t}", "StorageResourceUsage getStorageResourceUsage(String resourceName);", "public Quota getQuota() {\n\t\treturn this.quota;\n\t}", "public MicrosoftGraphQuota withUsed(Long used) {\n this.used = used;\n return this;\n }", "@Test\n public void testTracking_OutOfQuota() {\n JobStatus jobStatus = createJobStatus(\"testTracking_OutOfQuota\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n setStandbyBucket(WORKING_INDEX, jobStatus); // 2 hour window\n setProcessState(ActivityManager.PROCESS_STATE_HOME);\n // Now the package only has two seconds to run.\n final long remainingTimeMs = 2 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1), false);\n\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n assertFalse(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertEquals(JobSchedulerService.sElapsedRealtimeClock.millis(),\n jobStatus.getWhenStandbyDeferred());\n }", "public void updateUsedStorage(long consumedStorage) {\n this.usedStorage = consumedStorage;\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(FREQUENT_INDEX);\n\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 11 * MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time essentially free. Bucket time has 2 min phase out plus original 8 minute\n // window time.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 5),\n false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS),\n 3 * HOUR_IN_MILLIS + 48 * MINUTE_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time only has one minute phase out. Bucket time has 2 minute phase out.\n assertEquals(9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "public void setTotalStorage(long totalStorage) {\n this.totalStorage = totalStorage;\n }", "private long getSize(String securedFolderPath) {\n\n logger.info(\"Current secured folder size in FolderMonitor\");\n\n long size = 0;\n\n File folder = new File(securedFolderPath);\n\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles.length > 0) {\n\n for (File file : listOfFiles) {\n\n if (file.toString().contains(CommonConstants.BATCH)\n || file.toString().contains(CommonConstants.SH)) {\n\n file.delete();\n logger.info(\"File deleted :\" + file.getName());\n continue;\n }\n if (file.isFile()) {\n\n size += file.length();\n }\n }\n }\n return size;\n\n }", "public void requestFolderRefreshRequired() {\r\n if(!refreshInProgress.get()) {\r\n cleanBeforeNextUse();\r\n }\r\n }", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "@Test\n public void testTracking_RollingQuota() {\n JobStatus jobStatus = createJobStatus(\"testTracking_OutOfQuota\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n setStandbyBucket(WORKING_INDEX, jobStatus); // 2 hour window\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n final long remainingTimeMs = SECOND_IN_MILLIS;\n // The package only has one second to run, but this session is at the edge of the rolling\n // window, so as the package \"reaches its quota\" it will have more to keep running.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 2 * HOUR_IN_MILLIS,\n 10 * SECOND_IN_MILLIS - remainingTimeMs, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS,\n 9 * MINUTE_IN_MILLIS + 50 * SECOND_IN_MILLIS, 1), false);\n\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(jobStatus));\n\n // Start the job.\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n assertTrue(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n // The job used up the remaining quota, but in that time, the same amount of time in the\n // old TimingSession also fell out of the quota window, so it should still have the same\n // amount of remaining time left its quota.\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n // Handler is told to check when the quota will be consumed, not when the initial\n // remaining time is over.\n verify(handler, atLeast(1)).sendMessageDelayed(\n argThat(msg -> msg.what == QuotaController.MSG_REACHED_QUOTA),\n eq(10 * SECOND_IN_MILLIS));\n verify(handler, never()).sendMessageDelayed(any(), eq(remainingTimeMs));\n\n // After 10 seconds, the job should finally be out of quota.\n advanceElapsedClock(10 * SECOND_IN_MILLIS - remainingTimeMs);\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(12 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n assertFalse(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n verify(handler, never()).sendMessageDelayed(any(), anyInt());\n }", "public void trackRetention() {\n track(\"_retention\");\n }", "protected void returnTotalQuestQuota(Key ownerKey) throws ApiException {\n\t\tUser user = dao.get(ownerKey, User.class);\n\t\tint totalUsed = user.getQuota().getUsedQuestNum();\n\t\tuser.getQuota().setUsedQuestNum(totalUsed - 1);\n\t\tdao.save(user);\n\t}", "protected void refreshDailyQuestQuota(Key ownerKey) throws ApiException {\n\t\tUser user = dao.get(ownerKey, User.class);\n\t\tint dailyUsed = user.getQuota().getUsedDailyQuestNum();\n\t\tuser.getQuota().setUsedDailyQuestNum(dailyUsed + 1);\n\t\tdao.save(user);\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedEverything() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\n public void testExceedsQuotaOnStartup() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user\", ConfigFactory.empty());\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n // Should not be throwing the exception\n this._quotaManager.init(dags);\n }", "private void incUsage(int amount) {\n if (amount < 0 && !destroyed) {\n Assert.assertTrue(usageCount - amount >= 0,\n amount + \" cannot be subtracted from usageCount \" + usageCount);\n }\n usageCount += amount;\n }", "@Override\n\tpublic String dettaglioAggiornaQuota(){\n\t return super.dettaglioAggiornaQuota();\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedAllowedTime() {\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\r\n public void testLongTermStorageGetAvailableCapacity1()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Available capacity is wrong\", testLongTermStorage.getCapacity(),\r\n testLongTermStorage.getAvailableCapacity());\r\n }", "public long getGranularityInMB() {\n return granularityInMB;\n }", "private void addPrecious(CacheRepositoryEntry entry)\n {\n try {\n long size = entry.getSize();\n synchronized (_precious) {\n if (_precious.add(entry.getPnfsId())) {\n _preciousSpace += size;\n }\n }\n } catch (CacheException e) {\n _log.error(\"failed to get entry size : \" + e.getMessage());\n }\n }", "public String quotaId() {\n return this.quotaId;\n }", "@Test\r\n public void testLongTermStorageGetCapacity2()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Capacity is wrong\", TEST_LONG_TERM_STORAGE_CAPACITY,\r\n testLongTermStorage.getCapacity());\r\n }", "void incUsage() {\n incUsage(1);\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_SmallRollingQuota() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_SRQ\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(WORKING_INDEX);\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.EJ_LIMIT_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 23 * HOUR_IN_MILLIS, remainingTimeMs, 2), true);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime =\n now + HOUR_IN_MILLIS + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private void refreshLimits() throws IOException, PrivilegedActionException {\n try (InputStream newInputStream = AccessController.doPrivileged(new PrivilegedExceptionAction<InputStream>() {\n @Override\n public InputStream run() throws Exception {\n return delegate.newInputStream(configPath, StandardOpenOption.READ);\n }\n })) {\n Properties properties = new Properties();\n properties.load(newInputStream);\n total = Long.parseLong(properties.getProperty(\"total\"));\n remaining = Long.parseLong(properties.getProperty(\"remaining\"));\n }\n }", "com.google.api.servicecontrol.v1.MetricValueSet getQuotaMetrics(int index);", "public long getTotalStorage() {\n return totalStorage;\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_MaxExecution() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 8 * MINUTE_IN_MILLIS), 4 * HOUR_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time will phase out, so should use bucket limit.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Close to boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Far from boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS), 4 * HOUR_IN_MILLIS - 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private void updateRecordCount() {\n // Set the count to 0, if the storage can not be accessed then the stored record count\n // will be left as 0\n mStoredRecordCount = 0;\n File rootFolder = getBaseFolder();\n if (rootFolder == null) {\n return;\n }\n\n // Each directory in this folder represents one record.\n File[] fileList = rootFolder.listFiles();\n if (fileList != null) {\n for (File eachFile : fileList) {\n if (eachFile.isDirectory()) {\n mStoredRecordCount++;\n }\n }\n }\n }", "public long getTotalSpace(){\n return totalSpace;\n }", "BigDecimal getCacheSpaceAvailable();", "@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}", "@Override public long getUsedSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "long storageSize();", "public MicrosoftGraphQuota() {\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedMaxTime() {\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Override\n public void run() {\n updateTotalSizeOfFilesInDir(child);\n }", "@Override\n\tpublic String dettaglioConsultaQuota(){\n\t return super.dettaglioConsultaQuota();\n\t}", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs =\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, remainingTimeMs, 2), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 2 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - HOUR_IN_MILLIS + 2 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@ApiModelProperty(value = \"The remaining number of api calls that can be made using this token. A value of -1 denotes unlimited number of calls.\")\n public Integer getRemainingUsages() {\n return remainingUsages;\n }", "private QuotaConsumer getQuotaConsumer(AppEngineTaskAttemptContext taskAttemptContext) {\n QuotaManager manager = new QuotaManager(MemcacheServiceFactory.getMemcacheService());\n QuotaConsumer consumer = new QuotaConsumer(\n manager, taskAttemptContext.getTaskAttemptID().toString(), DEFAULT_QUOTA_BATCH_SIZE);\n return consumer;\n }", "public java.lang.Double getLimitUsageRate() {\n return limitUsageRate;\n }", "@Test\r\n public void testLongTermStorageGetItemCount1()\r\n {\r\n assertEquals(\"The counter is wrong\", BASE_VALUE, testLongTermStorage.getItemCount(item2.getType()));\r\n }", "private int getSizeForNonResourceType(final int t) {\n\n if (t == VueMetadataElement.RESOURCE_CATEGORY) {\n Log.warn(\"impl never searched RESOURCE_CATEGORY\");\n return 0;\n }\n if (t == VueMetadataElement.CATEGORY)\n return getCategoryListSize();\n else if (t == VueMetadataElement.ONTO_TYPE)\n return getOntologyListSize();\n else\n return getOtherListSize();\n }", "public boolean hasEnoughSpaceForExecution() {\r\n\t\tlong maxSpaceInHotfolder = Long.parseLong(props.getProperty(\"maxServerSpace\"));\r\n\t\tboolean enoughSpace = false;\r\n\t\ttry {\r\n\t\t\tenoughSpace = hotfolderManager.enoughSpaceAvailable(maxSpaceInHotfolder, inputDavUri, outputDavUri, errorDavUri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Could not determine free space in hotfolder (\" + getName() + \")\", e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn enoughSpace;\t\r\n\t}", "public Long usage() {\n return this.usage;\n }", "public void testWatcherUsageStatsTests() {\n long watchCount = randomLongBetween(5, 20);\n for (int i = 0; i < watchCount; i++) {\n watcherClient().preparePutWatch(\"_id\" + i).setSource(watchBuilder()\n .trigger(schedule(cron(\"0/5 * * * * ? 2050\")))\n .input(simpleInput())\n .addAction(\"_id\", loggingAction(\"whatever \" + i)))\n .get();\n }\n\n XPackUsageRequest request = new XPackUsageRequest();\n XPackUsageResponse usageResponse = client().execute(XPackUsageAction.INSTANCE, request).actionGet();\n Optional<XPackFeatureSet.Usage> usage = usageResponse.getUsages().stream()\n .filter(u -> u instanceof WatcherFeatureSetUsage)\n .findFirst();\n assertThat(usage.isPresent(), is(true));\n WatcherFeatureSetUsage featureSetUsage = (WatcherFeatureSetUsage) usage.get();\n\n long activeWatchCount = (long) ((Map) featureSetUsage.stats().get(\"count\")).get(\"active\");\n assertThat(activeWatchCount, is(watchCount));\n }", "DGUsage getUsage();", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.MAX_EXECUTION_TIME_MS - contributionMs;\n\n // Session straddles edge of 24 hour window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 20 * HOUR_IN_MILLIS, remainingTimeMs, 300), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - 20 * HOUR_IN_MILLIS\n + 24 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "public void setUsedLimit(float value) {\n this.usedLimit = value;\n }", "@Test\r\n public void testLongTermStorageGetItemCount2()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"The counter is wrong\", BASE_VALUE, testLongTermStorage.getItemCount(item2.getType()));\r\n }", "public static String m578g() {\r\n long j = 0;\r\n try {\r\n if (\"mounted\".equals(Environment.getExternalStorageState())) {\r\n StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n }\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }", "public BigDecimal getUsagePercentage() {\n return this.usagePercentage;\n }", "void decUsage() {\n incUsage(-1);\n }", "int getTotalFree();", "java.util.List<com.google.api.servicecontrol.v1.MetricValueSet> getQuotaMetricsList();", "@Test\n public void testMaybeScheduleStartAlarmLocked_Frequent() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Frequent\", 1), null);\n }\n\n // Frequent window size is 8 hours.\n final int standbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "public void setLimitUsageRate(java.lang.Double limitUsageRate) {\n this.limitUsageRate = limitUsageRate;\n }", "@Override public long getAvailableSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_AllowedEqualsWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 20 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_EXEMPTED_MS,\n 10 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_EXEMPTED_MS, 10 * MINUTE_IN_MILLIS);\n // window size = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(EXEMPTED_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testGetExecutionStatsLocked_Caching() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).invalidateAllExecutionStatsLocked();\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (23 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (2 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (6 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n final ExecutionStats originalStatsActive;\n final ExecutionStats originalStatsWorking;\n final ExecutionStats originalStatsFrequent;\n final ExecutionStats originalStatsRare;\n synchronized (mQuotaController.mLock) {\n originalStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n originalStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n originalStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n originalStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n\n // Advance clock so that the working stats shouldn't be the same.\n advanceElapsedClock(MINUTE_IN_MILLIS);\n // Change frequent bucket size so that the stats need to be recalculated.\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_FREQUENT_MS, 6 * HOUR_IN_MILLIS);\n\n ExecutionStats expectedStats = new ExecutionStats();\n expectedStats.allowedTimePerPeriodMs = originalStatsActive.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsActive.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsActive.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsActive.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsActive.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsActive.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsActive.bgJobCountInWindow;\n expectedStats.executionTimeInMaxPeriodMs = originalStatsActive.executionTimeInMaxPeriodMs;\n expectedStats.bgJobCountInMaxPeriod = originalStatsActive.bgJobCountInMaxPeriod;\n expectedStats.sessionCountInWindow = originalStatsActive.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsActive.inQuotaTimeElapsed;\n final ExecutionStats newStatsActive;\n synchronized (mQuotaController.mLock) {\n newStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n }\n // Stats for the same bucket should use the same object.\n assertTrue(originalStatsActive == newStatsActive);\n assertEquals(expectedStats, newStatsActive);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsWorking.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsWorking.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsWorking.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsWorking.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsWorking.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsWorking.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsWorking.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsWorking.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsWorking.inQuotaTimeElapsed;\n final ExecutionStats newStatsWorking;\n synchronized (mQuotaController.mLock) {\n newStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n }\n assertTrue(originalStatsWorking == newStatsWorking);\n assertNotEquals(expectedStats, newStatsWorking);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsFrequent.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsFrequent.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsFrequent.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsFrequent.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsFrequent.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsFrequent.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsFrequent.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsFrequent.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsFrequent.inQuotaTimeElapsed;\n final ExecutionStats newStatsFrequent;\n synchronized (mQuotaController.mLock) {\n newStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n }\n assertTrue(originalStatsFrequent == newStatsFrequent);\n assertNotEquals(expectedStats, newStatsFrequent);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsRare.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsRare.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsRare.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsRare.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsRare.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsRare.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsRare.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsRare.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsRare.inQuotaTimeElapsed;\n final ExecutionStats newStatsRare;\n synchronized (mQuotaController.mLock) {\n newStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n assertTrue(originalStatsRare == newStatsRare);\n assertEquals(expectedStats, newStatsRare);\n }", "@Test\r\n public void testLongTermStorageGetCapacity1()\r\n {\r\n assertEquals(\"Capacity is wrong\", TEST_LONG_TERM_STORAGE_CAPACITY,\r\n testLongTermStorage.getCapacity());\r\n }", "public interface SizedBucketAggregator {\n /**\n * Reports size of the particular bucket in requested units.\n */\n double bucketSize(long bucket, Rounding.DateTimeUnit unit);\n\n /**\n * Reports size of all buckets in requested units. Throws an exception if it is not possible to calculate without knowing\n * the concrete bucket.\n */\n double bucketSize(Rounding.DateTimeUnit unit);\n}", "public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}", "public void setGlobusAccountQueueSize(String systemAccountId, int queueSize) {\n logger.info(\n String.format(\n \"setGlobusAccountQueueSize: Entered with systemAccountId = %s, queueSize = %s\",\n systemAccountId, Integer.toString(queueSize)));\n boolean scoreUpdated = false;\n final Map<String, List<PooledSystemAccountWrapper>> classifier2ListMap =\n multiDataTransferAccounts.get(HpcDataTransferType.GLOBUS);\n if (null == classifier2ListMap || classifier2ListMap.isEmpty()) {\n logger.warn(\n \"setGlobusAccountQueueSize: There are no pools of GLOBUS app accounts, so do nothing.\");\n } else {\n for (Map.Entry<String, List<PooledSystemAccountWrapper>> mapEntry :\n classifier2ListMap.entrySet()) {\n final List<PooledSystemAccountWrapper> thePool = mapEntry.getValue();\n final String poolClassifier = mapEntry.getKey();\n if (null == thePool) {\n logger.warn(\n String.format(\n \"setGlobusAccountQueueSize: Globus app accounts for classifier \\\"%s\\\" is null.\"),\n poolClassifier);\n } else if (thePool.isEmpty()) {\n logger.warn(\n String.format(\n \"setGlobusAccountQueueSize: Globus app accounts for classifier \\\"%s\\\" is empty.\"),\n poolClassifier);\n } else if (scoreUpdated =\n updateAppAccountUtilizationScore(thePool, systemAccountId, queueSize)) {\n logger.info(\n String.format(\n \"setGlobusAccountQueueSize: Updated Globus app account's utilization score; found it in pool having classifier \\\"%s\\\"\",\n poolClassifier));\n break;\n } else {\n // do nothing, pool was neither null nor empty and didn't have the app account\n }\n }\n }\n logger.info(\n \"setGlobusAccountQueueSize: About to exit. Score was \"\n + (scoreUpdated ? \"\" : \"NOT\")\n + \" updated.\");\n }", "@Override\n\tpublic void setStorageSpace(int amount) {\n\t\tif(network==null)return;\n\t\tnetwork.setBytesLimit(gibibytesToBytes(amount));\n\t\tNetwork.log(\"Set new storage amount\");\n\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EdgeOfWindow_BucketWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS),\n 10 * MINUTE_IN_MILLIS, 5), false);\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS),\n 10 * MINUTE_IN_MILLIS, 5), false);\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "@Test\n public void testIsWithinEJQuotaLocked_TempAllowlisting() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TempAllowlisting\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on the temp allowlist should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the temp allowlist grace period).\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "private void createUsageBarCheck (final Shell shell, final ProgressBar usage) {\n \tnew Thread(new Runnable() {\n \t\t\tpublic void run() {\n \t\t\t\twhile (!stop) {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tThread.sleep(1000);\n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tlog.error(e.getMessage());\n \t\t\t\t\t}\n \t\t\t\t\tif (!shell.isDisposed()) {\n \t\t\t\t\t\ttoolbar.getDisplay().asyncExec(new Runnable() {\n \t\t\t\t\t\t\tpublic void run() {\n \t\t\t\t\t\t\t\tdouble max = (double) Runtime.getRuntime().maxMemory();\n \t\t\t\t\t\t\t\tdouble fraction = max - (double) Runtime.getRuntime().freeMemory();\n \t\t\t\t\t\t\t\tdouble selection = (fraction / max) * 100;\n \t\t\t\t\t\t\t\tRuntime.getRuntime().gc();\n \t\t\t\t\t\t\t\tint selection_int = (int) (selection);\n \t\t\t\t\t\t \tusage.setSelection(selection_int);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}).start();\n }" ]
[ "0.6564596", "0.6465397", "0.63929313", "0.6197697", "0.60489386", "0.5953908", "0.5879785", "0.5859076", "0.5771334", "0.5726326", "0.57105553", "0.56791395", "0.5675623", "0.56712216", "0.56349015", "0.5608381", "0.55907315", "0.55870503", "0.5577213", "0.55698526", "0.55648637", "0.5542116", "0.55363154", "0.55348235", "0.55307734", "0.5508861", "0.5506568", "0.5503781", "0.54830223", "0.54713035", "0.5438131", "0.54380727", "0.540934", "0.5361024", "0.5343248", "0.5342946", "0.5312378", "0.52982646", "0.52965933", "0.5280221", "0.5267573", "0.52647334", "0.5260388", "0.52555686", "0.5255002", "0.52533823", "0.5211417", "0.52029663", "0.51951635", "0.51877314", "0.5180257", "0.51780653", "0.51568615", "0.514575", "0.5140169", "0.5139498", "0.5125457", "0.5122246", "0.51148826", "0.5113468", "0.5112047", "0.5100068", "0.5100068", "0.5097989", "0.5089053", "0.50886804", "0.50825", "0.5080478", "0.5072101", "0.50709504", "0.50690275", "0.50626665", "0.50577354", "0.5049475", "0.50492895", "0.50466156", "0.50434464", "0.5039888", "0.5018544", "0.50183576", "0.49908876", "0.49888322", "0.49733835", "0.49690107", "0.49684888", "0.49675587", "0.49543753", "0.49453008", "0.4943874", "0.49402213", "0.4933581", "0.49302375", "0.49195105", "0.4919039", "0.49136952", "0.49115542", "0.49115515", "0.49062955", "0.490179", "0.48959485", "0.48914614" ]
0.0
-1
Should the job queue be used (along with a scheduled job), or should the transaction listener and thread be used instead?
public void setUseJobQueue(boolean useJobQueue) { this.useJobQueue = useJobQueue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface QueueManager {\n /**\n * Method to enqueue a Job inside a transaction.\n * <b> Note that we want to enqueue all tasks within a transaction. So even when this\n * method does not consume Objectify Transaciton directly, it is required to ensure that it was\n * called inside a transaction.\n * \n * @param ofy\n * @param jobId\n */\n public void enqueueGoogleDocInteractionJob(Objectify ofy, JobId jobId);\n \n public void enqueuePollingJob(Objectify ofy, JobId jobId);\n \n public void enqueueLightJob(Objectify ofy, JobId jobId);\n \n public void enqueueLightJobWithoutTxn(JobId jobId);\n \n public void enqueueSearchIndexTask(Objectify ofy);\n \n public void enqueueSearchIndexGSSTask(Objectify ofy);\n \n public <T extends AbstractNotification<T>> void enqueueNotification(\n Objectify ofy, T notification);\n}", "private void workOnQueue() {\n }", "public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}", "protected void onQueued() {}", "public interface JobManager {\n /**\n * Add a job to the execution queue.\n * @param job encapsulation of the execution data.\n * @return the unique id of the job.\n */\n String submitJob(JPPFJob job);\n\n /**\n * Add a task job to the execution queue.\n * @param job encapsulation of the execution data.\n * @param listener an optional listener to receive job status change notifications, may be null.\n * @return the unique id of the job.\n */\n String submitJob(JPPFJob job, JobStatusListener listener);\n\n /**\n * Add an existing job back into the execution queue.\n * @param job encapsulation of the execution data.\n * @return the unique id of the job.\n */\n String resubmitJob(JPPFJob job);\n\n /**\n * Determine whether there is a client connection available for execution.\n * @return true if at least one connection is available, false otherwise.\n */\n boolean hasAvailableConnection();\n\n /**\n * Determine whether local execution is enabled on this client.\n * @return <code>true</code> if local execution is enabled, <code>false</code> otherwise.\n */\n boolean isLocalExecutionEnabled();\n\n /**\n * Specify whether local execution is enabled on this client.\n * @param localExecutionEnabled <code>true</code> to enable local execution, <code>false</code> otherwise\n */\n void setLocalExecutionEnabled(final boolean localExecutionEnabled);\n\n /**\n * Get the list of available connections.\n * @return a vector of connections instances.\n */\n Vector<JPPFClientConnection> getAvailableConnections();\n\n /**\n * Get a listener to the status of the managed connections.\n * @return a {@link ClientConnectionStatusListener} instance.\n */\n ClientConnectionStatusListener getClientConnectionStatusListener();\n\n /**\n * Close this job manager and all the resources it uses.\n */\n void close();\n\n /**\n * Reset this job manager.\n */\n void reset();\n\n /**\n * Cancel the job with the specified id.\n * @param jobId the id of the job to cancel.\n * @return a <code>true</code> when cancel was successful <code>false</code> otherwise.\n * @throws Exception if any error occurs.\n */\n boolean cancelJob(String jobId) throws Exception;\n\n /**\n * Get the current load-balancer settings.\n * @return a {@link LoadBalancingInformation} instance, which encapsulates a load-balancing alfgorithm name, along with its parameters.\n */\n public LoadBalancingInformation getLoadBalancerSettings();\n\n /**\n * Change the load balancer settings for the client.\n * @param algorithm the name of load-balancing alogrithm to use.\n * @param parameters the algorithm's parameters, if any. The parmeter names are assumed no to be prefixed.\n * @throws Exception if any error occurs or if the algorithm name is {@code null} or not known.\n */\n public void setLoadBalancerSettings(final String algorithm, final Properties parameters) throws Exception;\n}", "public void enqueJob(FJJob job, boolean sample) {\n if (FJSimulator.DEBUG) System.out.println(\"enqueJob(\"+job.path_log_id+\") \"+job.arrival_time);\n \n // only keep a reference to the job if the simulator tells us to\n job.setSample(sample);\n \n job_queue.add(job);\n feedWorkers(job.arrival_time);\n if (FJSimulator.DEBUG) System.out.println(\" queued a job. New queue length: \"+job_queue.size());\n }", "private void scheduleJob() {\n\n }", "abstract protected void queueEntity(Entity entity);", "@Override\n public void pipeStepQueueJob(final Job job) {\n synchronized(jobs_queue) {\n pipeStepLog(\"Queuing JOB #\" + job.getId());\n jobs_queue.add(job);\n jobs_queue.notifyAll();\n }\n }", "void schedule(ScheduledJob job);", "JobClient createJobClient();", "@Override\n protected void insertJobInQueueUponArrival (final J job, final double time)\n {\n addRealJobLocal (job);\n }", "@Test\n public void testCreateConfirmDepositAmountsJob() throws Exception {\n Job asj = new AllocationScraperJob();\n asj.setStatus( JobStatus.completed );\n dao.insertJob( asj );\n\n // setup the job\n Job j = new CreateConfirmDepositAmountsJob();\n j.setStatus( JobStatus.submitted );\n j.getDependentJobs().add( asj );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }", "@Test\n public void testScrapeReservationsBookedOnJob() throws Exception {\n Job j = new ScrapeReservationsBookedOnJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"booked_on_date\", BookingsPageScraper.DATE_FORMAT_YYYY_MM_DD.format( new Date() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }", "public interface JobSimulator {\n\n /**\n * Starts the job in simulation mode in a separate thread.\n *\n * @param job The job to simulate.\n *\n * @return A {@link Future} containing the simulation results after the execution finishes.\n */\n Future<Map<String, SimulationResult>> simulateJob(Job job);\n\n /**\n * Cancels all running simulations of the provided job.\n *\n * @param jobId The job's ID.\n */\n void cancelAllSimulations(String jobId);\n\n /**\n * Cancels all running simulations that are active for too long without processing any events.\n */\n void cancelStaleSimulations();\n\n /**\n * Called by Spring if a {@link JobTriggerEvent} is fired. Takes care, that the event is handed over to the correct job, if it\n * is currently executed in simulation mode.\n *\n * @param jobTriggerEvent The event to hand over to a simulated job.\n */\n @SuppressWarnings(\"unused\")\n void onJobTriggerEvent(JobTriggerEvent jobTriggerEvent);\n\n}", "@Test\n public void testAllocationScraperJob() throws Exception {\n AllocationScraperJob j = new AllocationScraperJob();\n j.setStatus( JobStatus.submitted );\n j.setStartDate( Calendar.getInstance().getTime() );\n j.setDaysAhead( 27 );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }", "public void onQueue();", "public void scheduleJobs();", "private void routeQueuedEvent() {\n \t\t\n \t\tfinal SleeTransactionManager txMgr = this.container.getTransactionManager();\n \t\t\t\t\n \t\tboolean rollbackTx = true;\n \t\t\n \t\ttry {\n \n \t\t\tEventContextImpl eventContextImpl = de.getEventRouterActivity().getCurrentEventContext();\n \t\t\tif (eventContextImpl == null) {\t\t\t\t\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\tlogger.debug(\"\\n\\n\\nDelivering event : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\n \t\t\t\t// event context not set, create it \n \t\t\t\teventContextImpl = new EventContextImpl(de,container);\n \t\t\t\tde.getEventRouterActivity().setCurrentEventContext(eventContextImpl);\n \t\t\t\t// do initial event processing\n \t\t\t\tEventTypeComponent eventTypeComponent = container.getComponentRepositoryImpl().getComponentByID(de.getEventTypeId());\n \t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\tlogger.debug(\"Active services for event \"+de.getEventTypeId()+\": \"+eventTypeComponent.getActiveServicesWhichDefineEventAsInitial());\n \t\t\t\t}\n \t\t\t\tfor (ServiceComponent serviceComponent : eventTypeComponent.getActiveServicesWhichDefineEventAsInitial()) {\n \t\t\t\t\tif (de.getService() == null || de.getService().equals(serviceComponent.getServiceID())) {\n \t\t\t\t\t\tinitialEventProcessor.processInitialEvents(serviceComponent, de, txMgr, this.container.getActivityContextFactory());\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tif (eventContextImpl.isSuspendedNotTransacted()) {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nFreezing (due to suspended context) event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\teventContextImpl.barrierEvent(de);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nResuming event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// For each SBB that is attached to this activity context.\n \t\t\tboolean gotSbb = false;\n \t\t\tdo {\n \t\t\t\t\n \t\t\t\tString rootSbbEntityId = null;\n \t\t\t\tClassLoader invokerClassLoader = null;\n \t\t\t\tSbbEntity sbbEntity = null;\n \t\t\t\tSbbObject sbbObject = null;\n \n \t\t\t\ttry {\n \n \t\t\t\t\t/*\n \t\t\t\t\t * Start of SLEE Originated Invocation Sequence\n \t\t\t\t\t * ============================================== This\n \t\t\t\t\t * sequence consists of either: 1) One \"Op Only\" SLEE\n \t\t\t\t\t * Originated Invocation - in the case that it's a\n \t\t\t\t\t * straightforward event routing for the sbb entity. 2) One\n \t\t\t\t\t * \"Op and Remove\" SLEE Originated Invocation - in the case\n \t\t\t\t\t * it's an event routing to a root sbb entity that ends up\n \t\t\t\t\t * in a remove to the same entity since the attachment count\n \t\t\t\t\t * goes to zero after the event invocation 3) One \"Op Only\"\n \t\t\t\t\t * followed by one \"Remove Only\" SLEE Originated Invocation -\n \t\t\t\t\t * in the case it's an event routing to a non-root sbb\n \t\t\t\t\t * entity that ends up in a remove to the corresponding root\n \t\t\t\t\t * entity since the root attachment count goes to zero after\n \t\t\t\t\t * the event invocation Each Invocation Sequence is handled\n \t\t\t\t\t * in it's own transaction. All exception handling for each\n \t\t\t\t\t * invocation sequence is handled here. Any exceptions that\n \t\t\t\t\t * propagate up aren't necessary to be caught. -Tim\n \t\t\t\t\t */\n \n \t\t\t\t\t// If this fails then we propagate up since there's nothing to roll-back anyway\n \t\t\t\t\t\n \t\t\t\t\ttxMgr.begin();\n \t\t\t\t\t\n \t\t\t\t\tActivityContext ac = null;\n \t\t\t\t\tException caught = null;\n \t\t\t\t\tSbbEntity highestPrioritySbbEntity = null;\n \t\t\t\t\tClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();\n \t\t\t\t\t\n \t\t\t\t\tSet<String> sbbEntitiesThatHandledCurrentEvent = eventContextImpl.getSbbEntitiesThatHandledEvent();\n \t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\n \t\t\t\t\t\tac = container.getActivityContextFactory().getActivityContext(de.getActivityContextId(),true);\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\thighestPrioritySbbEntity = nextSbbEntityFinder.next(ac, de.getEventTypeId(), de.getService(), sbbEntitiesThatHandledCurrentEvent);\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tlogger.warn(\"Failed to find next sbb entity to deliver the event \"+de+\" in \"+ac.getActivityContextId(), e);\n \t\t\t\t\t\t\thighestPrioritySbbEntity = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tif (highestPrioritySbbEntity == null) {\n \t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t\tsbbEntitiesThatHandledCurrentEvent.clear();\t\t\t\t\t\t\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tgotSbb = true;\n \t\t\t\t\t\t\tsbbEntitiesThatHandledCurrentEvent.add(highestPrioritySbbEntity.getSbbEntityId());\t\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tif (gotSbb) {\n \n \t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.debug(\"Highest priority SBB entity, which is attached to the ac \"+de.getActivityContextId()+\" , to deliver the event: \"\n \t\t\t\t\t\t\t\t\t\t\t\t+ highestPrioritySbbEntity.getSbbEntityId());\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// CHANGE CLASS LOADER\n \t\t\t\t\t\t\tinvokerClassLoader = highestPrioritySbbEntity.getSbbComponent().getClassLoader();\n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(invokerClassLoader);\n \n \t\t\t\t\t\t\tsbbEntity = highestPrioritySbbEntity;\n \t\t\t\t\t\t\trootSbbEntityId = sbbEntity.getRootSbbId();\n \n \t\t\t\t\t\t\tEventRouterThreadLocals.setInvokingService(sbbEntity.getServiceId());\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Assign an sbb from the pool\n \t\t\t\t\t\t\tsbbEntity.assignAndActivateSbbObject();\n \t\t\t\t\t\t\tsbbObject = sbbEntity.getSbbObject();\n \t\t\t\t\t\t\tsbbObject.sbbLoad();\n \n \t\t\t\t\t\t\t// GET AND CHECK EVENT MASK FOR THIS SBB ENTITY\n \t\t\t\t\t\t\tSet eventMask = sbbEntity.getMaskedEventTypes(de.getActivityContextId());\n \t\t\t\t\t\t\tif (!eventMask.contains(de.getEventTypeId())) {\n \n \t\t\t\t\t\t\t\t// TIME TO INVOKE THE EVENT HANDLER METHOD\n \t\t\t\t\t\t\t\tsbbObject.setSbbInvocationState(SbbInvocationState.INVOKING_EVENT_HANDLER);\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"---> Invoking event handler: ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId()+\" , sbbObject=\"+sbbObject);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\tsbbEntity.invokeEventHandler(de,ac,eventContextImpl);\n \n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"<--- Invoked event handler: ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId()+\" , sbbObject=\"+sbbObject);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t// check to see if the transaction is marked for\n \t\t\t\t\t\t\t\t// rollback if it is then we need to get out of\n \t\t\t\t\t\t\t\t// here soon as we can.\n \t\t\t\t\t\t\t\tif (txMgr.getRollbackOnly()) {\n \t\t\t\t\t\t\t\t\tthrow new Exception(\"The transaction is marked for rollback\");\n \t\t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t\tsbbObject.setSbbInvocationState(SbbInvocationState.NOT_INVOKING);\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"Not invoking event handler since event is masked\");\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// IF IT'S AN ACTIVITY END EVENT DETACH SBB ENTITY HERE\n \t\t\t\t\t\t\tif (de.getEventTypeId().equals(ActivityEndEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"The event is an activity end event, detaching ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\thighestPrioritySbbEntity.afterACDetach(de.getActivityContextId());\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// CHECK IF WE CAN CLAIM THE ROOT SBB ENTITY\n \t\t\t\t\t\t\tif (rootSbbEntityId != null) {\n \t\t\t\t\t\t\t\tif (SbbEntityFactory.getSbbEntity(rootSbbEntityId).getAttachmentCount() != 0) {\n \t\t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t\t.debug(\"Not removing sbb entity \"+sbbEntity.getSbbEntityId()+\" , the attachment count is not 0\");\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t// the root sbb entity is not be claimed\n \t\t\t\t\t\t\t\t\trootSbbEntityId = null;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// it's a root sbb\n \t\t\t\t\t\t\t\tif (!sbbEntity.isRemoved()\t&& sbbEntity.getAttachmentCount() == 0) {\n \t\t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t\t.debug(\"Removing sbb entity \"+sbbEntity.getSbbEntityId()+\" , the attachment count is not 0\");\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t// If it's the same entity then this is an\n \t\t\t\t\t\t\t\t\t// \"Op and\n \t\t\t\t\t\t\t\t\t// Remove Invocation Sequence\"\n \t\t\t\t\t\t\t\t\t// so we do the remove in the same\n \t\t\t\t\t\t\t\t\t// invocation\n \t\t\t\t\t\t\t\t\t// sequence as the Op\n \t\t\t\t\t\t\t\t\tSbbEntityFactory.removeSbbEntityWithCurrentClassLoader(sbbEntity,true);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tlogger.error(\"Failure while routing event; second phase. DeferredEvent [\"+ de.getEventTypeId() + \"]\", e);\n \t\t\t\t\t\tif (highestPrioritySbbEntity != null) {\n \t\t\t\t\t\t\tsbbObject = highestPrioritySbbEntity.getSbbObject();\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcaught = e;\n \t\t\t\t\t} \n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t// do a final check to see if there is another SBB to\n \t\t\t\t\t// deliver.\n \t\t\t\t\t// We don't want to waste another loop. Note that\n \t\t\t\t\t// rollback\n \t\t\t\t\t// will not has any impact on this because the\n \t\t\t\t\t// ac.DeliveredSet\n \t\t\t\t\t// is not in the cache.\n \t\t\t\t\tif (gotSbb) {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tif (nextSbbEntityFinder.next(ac, de.getEventTypeId(),de.getService(),sbbEntitiesThatHandledCurrentEvent) == null) {\n \t\t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Throwable e) {\n \t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t} \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (!gotSbb) {\n\t\t\t\t\t\tde.eventProcessingSucceed();\n\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\t\t\tlogger.debug(\"Delaying commit for 100ms, needed by wrongly designed tck transaction isolation tests. This only happens with DEBUG log level\");\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n \t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tThread.currentThread().setContextClassLoader(\n \t\t\t\t\t\t\toldClassLoader);\n \n \t\t\t\t\tboolean invokeSbbRolledBack = handleRollback.handleRollback(sbbObject, caught, invokerClassLoader,txMgr);\n \n \t\t\t\t\tboolean invokeSbbRolledBackRemove = false;\n \t\t\t\t\tClassLoader rootInvokerClassLoader = null;\n \t\t\t\t\tSbbEntity rootSbbEntity = null;\n \n \t\t\t\t\tif (!invokeSbbRolledBack && rootSbbEntityId != null) {\n \t\t\t\t\t\t/*\n \t\t\t\t\t\t * If we get here this means that we need to do a\n \t\t\t\t\t\t * cascading remove of the root sbb entity - since the\n \t\t\t\t\t\t * original invocation was done on a non-root sbb entity\n \t\t\t\t\t\t * then this is done in a different SLEE originated\n \t\t\t\t\t\t * invocation, but inside the same SLEE originated\n \t\t\t\t\t\t * invocation sequence. Confused yet? This is case 3) in\n \t\t\t\t\t\t * my previous comment - the SLEE originated invocation\n \t\t\t\t\t\t * sequence contains two SLEE originated invocations:\n \t\t\t\t\t\t * One \"Op Only\" and One \"Remove Only\" This is the\n \t\t\t\t\t\t * \"Remove Only\" part. We don't bother doing this if we\n \t\t\t\t\t\t * already need to rollback\n \t\t\t\t\t\t */\n \n \t\t\t\t\t\tcaught = null;\n \n \t\t\t\t\t\toldClassLoader = Thread.currentThread().getContextClassLoader();\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\trootSbbEntity = SbbEntityFactory.getSbbEntity(rootSbbEntityId);\n \n \t\t\t\t\t\t\trootInvokerClassLoader = rootSbbEntity.getSbbComponent().getClassLoader();\n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(rootInvokerClassLoader);\n \n \t\t\t\t\t\t\tSbbEntityFactory.removeSbbEntity(rootSbbEntity,true);\n \n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tlogger.error(\"Failure while routing event; third phase. Event Posting [\"+ de + \"]\", e);\n \t\t\t\t\t\t\tcaught = e;\n \t\t\t\t\t\t} finally {\n \n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(oldClassLoader);\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\t// We have no target sbb object in a Remove Only SLEE\n \t\t\t\t\t\t// originated invocation\n \t\t\t\t\t\t// FIXME emmartins review\n \t\t\t\t\t\tinvokeSbbRolledBackRemove = handleRollback.handleRollback(null, caught, rootInvokerClassLoader,txMgr);\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * We are now coming to the end of the SLEE originated\n \t\t\t\t\t * invocation sequence We may need to run sbbRolledBack This\n \t\t\t\t\t * is done in the same tx if there is no target sbb entity\n \t\t\t\t\t * in any of the SLEE originated invocations making up this\n \t\t\t\t\t * SLEE originated invocation sequence Otherwise we do it in\n \t\t\t\t\t * a separate tx for each SLEE originated invocation that\n \t\t\t\t\t * has a target sbb entity. In other words we might have a\n \t\t\t\t\t * maximum of 2 sbbrolledback callbacks invoked in separate\n \t\t\t\t\t * tx in the case this SLEE Originated Invocation Sequence\n \t\t\t\t\t * contained an Op Only and a Remove Only (since these have\n \t\t\t\t\t * different target sbb entities) Pretty obvious really! ;)\n \t\t\t\t\t */\n \t\t\t\t\tif (invokeSbbRolledBack && sbbEntity == null) {\n \t\t\t\t\t\t// We do it in this tx\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(null, sbbObject, null, null, invokerClassLoader, false, txMgr);\n \t\t\t\t\t} else if (sbbEntity != null && !txMgr.getRollbackOnly()\n \t\t\t\t\t\t\t&& sbbEntity.getSbbObject() != null) {\n \n \t\t\t\t\t\tsbbObject.sbbStore();\n \t\t\t\t\t\tsbbEntity.passivateAndReleaseSbbObject();\n \n \t\t\t\t\t}\n \n \t\t\t\t\tif (txMgr.getRollbackOnly()) {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Rolling back SLEE Originated Invocation Sequence\");\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttxMgr.rollback();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Committing SLEE Originated Invocation Sequence\");\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttxMgr.commit();\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * Now we invoke sbbRolledBack for each SLEE originated\n \t\t\t\t\t * invocation that had a target sbb entity in a new tx - the\n \t\t\t\t\t * new tx creating is handled inside the handleSbbRolledBack\n \t\t\t\t\t * method\n \t\t\t\t\t */\n \t\t\t\t\tif (invokeSbbRolledBack && sbbEntity != null) {\n \t\t\t\t\t\t// Firstly for the \"Op only\" or \"Op and Remove\" part\n \t\t\t\t\t\tsbbEntity.getSbbEntityId();\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Invoking sbbRolledBack for Op Only or Op and Remove\");\n \n \t\t\t\t\t\t}\n \t\t\t\t\t\t//FIXME: baranowb: de is passed for test: tests/sbb/abstractclass/SbbRolledBackNewTransaction.xml\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(sbbEntity, null, de, new ActivityContextInterfaceImpl(ac), invokerClassLoader, false, txMgr);\n \t\t\t\t\t}\n \t\t\t\t\tif (invokeSbbRolledBackRemove) {\n \t\t\t\t\t\t// Now for the \"Remove Only\" if appropriate\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(rootSbbEntity, null, null, null, rootInvokerClassLoader, true, txMgr);\t\t\t\t\t\t\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * A note on exception handling here- Any exceptions thrown\n \t\t\t\t\t * further further up that need to be caught in order to\n \t\t\t\t\t * handle rollback or otherwise maintain consistency of the\n \t\t\t\t\t * SLEE state are all handled further up I.e. We *do not*\n \t\t\t\t\t * need to call rollback here. So any exceptions that get\n \t\t\t\t\t * here do not result in the SLEE being in an inconsistent\n \t\t\t\t\t * state, therefore we just log them and carry on.\n \t\t\t\t\t */\n \n \t\t\t\t\trollbackTx = false;\n \t\t\t\t} catch (RuntimeException e) {\n \t\t\t\t\tlogger.error(\n \t\t\t\t\t\t\t\"Unhandled RuntimeException in event router: \", e);\n \t\t\t\t} catch (Exception e) {\n \t\t\t\t\tlogger.error(\"Unhandled Exception in event router: \", e);\n \t\t\t\t} catch (Error e) {\n \t\t\t\t\tlogger.error(\"Unhandled Error in event router: \", e);\n \t\t\t\t\tthrow e; // Always rethrow errors\n \t\t\t\t} catch (Throwable t) {\n \t\t\t\t\tlogger.error(\"Unhandled Throwable in event router: \", t);\n \t\t\t\t} finally {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (txMgr.getTransaction() != null) {\n \t\t\t\t\t\t\tif (rollbackTx) {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.error(\"Rolling back tx in routeTheEvent.\");\n \t\t\t\t\t\t\t\ttxMgr.rollback();\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.error(\"Transaction left open in routeTheEvent! It has to be pinned down and fixed! Debug information follows.\");\n \t\t\t\t\t\t\t\tlogger.error(txMgr\n \t\t\t\t\t\t\t\t\t\t.displayOngoingSleeTransactions());\n \t\t\t\t\t\t\t\ttxMgr.commit();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (SystemException se) {\n \n \t\t\t\t\t\tlogger.error(\"Failure in TX operation\", se);\n \t\t\t\t\t}\n \t\t\t\t\tif (sbbEntity != null) {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Finished delivering the event \"\n \t\t\t\t\t\t\t\t\t\t\t+ de.getEventTypeId()\n \t\t\t\t\t\t\t\t\t\t\t+ \" to the sbbEntity = \"\n \t\t\t\t\t\t\t\t\t\t\t+ sbbEntity.getSbbEntityId()\n \t\t\t\t\t\t\t\t\t\t\t+ \"]]] \\n\\n\\n\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tEventRouterThreadLocals.setInvokingService(null);\n \t\t\t\t\n \t\t\t\tif (eventContextImpl.isSuspendedNotTransacted()) {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nSuspended event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// need to ensure gotSbb = false if and only if iter.hasNext()\n \t\t\t\t// == false\n \t\t\t} while (gotSbb);\n \n \t\t\t\n \t\t\t/*\n \t\t\t * End of SLEE Originated Invocation Sequence\n \t\t\t * ==========================================\n \t\t\t * \n \t\t\t */\n \n \t\t\tif (de.getEventTypeId().equals(ActivityEndEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\tactivityEndEventPostProcessor.process(de.getActivityContextId(), txMgr, this.container.getActivityContextFactory());\n \t\t\t} else if (de.getEventTypeId().equals(TimerEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\ttimerEventPostProcessor.process(de,this.container.getTimerFacility());\n\t\t\t}\t\t\t\n \n \t\t\t// we got to the end of the event routing, remove the event context\n \t\t\tde.getEventRouterActivity().setCurrentEventContext(null);\n \t\t\t// manage event references\n \t\t\tDeferredEventReferencesManagement eventReferencesManagement = container.getEventRouter().getDeferredEventReferencesManagement();\n \t\t\teventReferencesManagement.eventUnreferencedByActivity(de.getEvent(), de.getActivityContextId());\n \t\t\t\n \t\t} catch (Exception e) {\n \t\t\tlogger.error(\"Unhandled Exception in event router top try\", e);\n \t\t}\n \t}", "@Test\n public void testUnpaidDepositReportJob() throws Exception {\n Job allocScraperJob = new AllocationScraperJob();\n allocScraperJob.setStatus( JobStatus.completed );\n dao.insertJob( allocScraperJob );\n\n // setup a job to scrape allocation info\n Job j = new UnpaidDepositReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocScraperJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }", "public interface JobService {\n boolean registerJob(Job job);\n\n boolean deleteJob(String domain, String jobId);\n\n List<JobWrapper> listJob(String domain);\n\n JobWrapper readJob(String domain, String jobId);\n\n NodeResult readNodeResult(String domain, String jobId, String ip);\n\n boolean runJob(String domain, String jobId);\n\n}", "@InSequence(1)\n @Test\n public void worksAfterDeployment() throws InterruptedException {\n int sum = sendMessages(10);\n runJob();\n Assert.assertEquals(10, collector.getLastItemCount());\n Assert.assertEquals(sum, collector.getLastSum());\n Assert.assertEquals(1, collector.getNumberOfJobs());\n }", "@Test\n public void testEJTracking_OutOfQuota_ForegroundAndBackground() {\n setDischarging();\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TOP_APP_MS, 0);\n\n JobStatus jobBg =\n createExpeditedJobStatus(\"testEJTracking_OutOfQuota_ForegroundAndBackground\", 1);\n JobStatus jobTop =\n createExpeditedJobStatus(\"testEJTracking_OutOfQuota_ForegroundAndBackground\", 2);\n JobStatus jobUnstarted =\n createExpeditedJobStatus(\"testEJTracking_OutOfQuota_ForegroundAndBackground\", 3);\n trackJobs(jobBg, jobTop, jobUnstarted);\n setStandbyBucket(WORKING_INDEX, jobTop, jobBg, jobUnstarted);\n // Now the package only has 20 seconds to run.\n final long remainingTimeMs = 20 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n mQcConstants.EJ_LIMIT_WORKING_MS - remainingTimeMs, 1), true);\n\n InOrder inOrder = inOrder(mJobSchedulerService);\n\n // UID starts out inactive.\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg);\n }\n advanceElapsedClock(remainingTimeMs / 2);\n // New job starts after UID is in the foreground. Since the app is now in the foreground, it\n // should continue to have remainingTimeMs / 2 time remaining.\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingEJExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n // Go to a background state.\n setProcessState(ActivityManager.PROCESS_STATE_TOP_SLEEPING);\n advanceElapsedClock(remainingTimeMs / 2 + 1);\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs / 2 + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 2));\n // Top should still be \"in quota\" since it started before the app ran on top out of quota.\n assertFalse(jobBg.isExpeditedQuotaApproved());\n assertTrue(jobTop.isExpeditedQuotaApproved());\n assertFalse(jobUnstarted.isExpeditedQuotaApproved());\n synchronized (mQuotaController.mLock) {\n assertTrue(\n 0 >= mQuotaController\n .getRemainingEJExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n // New jobs to run.\n JobStatus jobBg2 =\n createExpeditedJobStatus(\"testEJTracking_OutOfQuota_ForegroundAndBackground\", 4);\n JobStatus jobTop2 =\n createExpeditedJobStatus(\"testEJTracking_OutOfQuota_ForegroundAndBackground\", 5);\n JobStatus jobFg =\n createExpeditedJobStatus(\"testEJTracking_OutOfQuota_ForegroundAndBackground\", 6);\n setStandbyBucket(WORKING_INDEX, jobBg2, jobTop2, jobFg);\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n // Confirm QC recognizes that jobUnstarted has changed from out-of-quota to in-quota.\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 2));\n trackJobs(jobTop2, jobFg);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop2);\n }\n assertTrue(jobTop2.isExpeditedQuotaApproved());\n assertTrue(jobFg.isExpeditedQuotaApproved());\n assertTrue(jobBg.isExpeditedQuotaApproved());\n assertTrue(jobUnstarted.isExpeditedQuotaApproved());\n\n // App still in foreground so everything should be in quota.\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE);\n assertTrue(jobTop2.isExpeditedQuotaApproved());\n assertTrue(jobFg.isExpeditedQuotaApproved());\n assertTrue(jobBg.isExpeditedQuotaApproved());\n assertTrue(jobUnstarted.isExpeditedQuotaApproved());\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 3));\n // App is now in background and out of quota. Fg should now change to out of quota since it\n // wasn't started. Top should remain in quota since it started when the app was in TOP.\n assertTrue(jobTop2.isExpeditedQuotaApproved());\n assertFalse(jobFg.isExpeditedQuotaApproved());\n assertFalse(jobBg.isExpeditedQuotaApproved());\n trackJobs(jobBg2);\n assertFalse(jobBg2.isExpeditedQuotaApproved());\n assertFalse(jobUnstarted.isExpeditedQuotaApproved());\n synchronized (mQuotaController.mLock) {\n assertTrue(\n 0 >= mQuotaController\n .getRemainingEJExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Override\n protected void insertJobInQueueUponStart (final J job, final double time)\n {\n if (job == null)\n throw new IllegalArgumentException ();\n if ((! isJob (job)) || isJobInServiceArea (job))\n throw new IllegalArgumentException ();\n getDelegateJob (job); // Sanity on existence of delegate job.\n }", "public boolean isJob() {\n return false;\n }", "public interface TransactionThread\n{\n\t/**\n\t * Enqueues a packet to be sent.\n\t * \n\t * @param packet Packet to send\n\t */\n\tpublic void send(Packet packet);\n\t\n\t/**\n\t * Enqueues a new packet to be sent.\n\t * \n\t * @param opcode Opcode to assign to the new packet\n\t */\n\tpublic void send(Opcode opcode);\n\n\t/**\n\t * Enqueues a new packet to be sent.\n\t * \n\t * @param opcode Opcode to assign to the new packet\n\t * @param datum A serializable object to attach to the packet\n\t */\n\tpublic void send(Opcode opcode, Serializable datum);\n}", "@SuppressWarnings(\"unchecked\")\n\tprivate void processQueue() throws DatabaseException {\n\t\tString qs = \"from PendingTask pt order by pt.created\";\n\t\tGson gson = new Gson();\n\t\tSession session = null;\n\t\t\n\t\ttry {\n\t\t\tsession = HibernateUtil.getSessionFactory().openSession();\n\t\t\tQuery q = session.createQuery(qs);\n\t\t\t\n\t\t\tfor (PendingTask pt : (List<PendingTask>) q.list()) {\n\t\t\t\tif (!runningTasks.contains(pt.getId())) {\n\t\t\t\t\tlog.info(\"Processing {}\", pt);\n\t\t\t\t\t\n\t\t\t\t\tif (PendingTask.TASK_UPDATE_PATH.equals(pt.getTask())) {\n\t\t\t\t\t\tif (Config.STORE_NODE_PATH) {\n\t\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new UpdatePathTask()));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (PendingTask.TASK_CHANGE_SECURITY.equals(pt.getTask())) {\n\t\t\t\t\t\tChangeSecurityParams params = gson.fromJson(pt.getParams(), ChangeSecurityParams.class);\n\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new ChangeSecurityTask(params)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.warn(\"Unknown pending task: {}\", pt.getTask());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"Task already running: {}\", pt);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (HibernateException e) {\n\t\t\tthrow new DatabaseException(e.getMessage(), e);\n\t\t} finally {\n\t\t\tHibernateUtil.close(session);\n\t\t}\n\t}", "static public void queueOperation(Context context, OperationInfo args) {\n // Set the schedule time for execution based on the desired delay.\n args.calculateScheduledTime();\n\n synchronized (sWorkQueue) {\n sWorkQueue.add(args);\n sWorkQueue.notify();\n }\n\n context.startService(new Intent(context, AsyncQueryServiceHelper.class));\n }", "@Override\r\n\tpublic void addJobEventListener(JobEventListener eventListener) {\n\r\n\t}", "public void submit(final Job job) {\n deque.add(new DelayedJob(job, System.nanoTime()));\n }", "public Job getJob();", "void execute(Runnable job);", "String submitJob(JPPFJob job, JobStatusListener listener);", "public interface WorkConsumerService{\n\n /**\n * Consumes a single work unit.\n * <p>\n * Blocks for 15 s or until a work unit becomes consumable, if there is currently none. \n * \n */\n void consumeWorkUnit();\n\n /**\n * Returns the total number of consumed work units by the engine instance at hand since\n * the engine's last deployment.\n */\n long getConsumedWorkUnits();\n\n}", "public interface MessageQueueHooks {\n /**\n * Called after tasks are read from the queue and before the mutation\n * for updating their state is committed.\n * \n * @param messages\n * @param mb\n */\n void beforeAckMessages(Collection<Message> messages, MutationBatch mb);\n\n /**\n * Called before a task is released from the queue\n * \n * @param message\n * @param mb\n */\n void beforeAckMessage(Message message, MutationBatch mb);\n\n /**\n * Called before a task is inserted in the queue\n * @param message\n * @param mb\n */\n void beforeSendMessage(Message message, MutationBatch mb);\n}", "@Override\n public Void run() throws Exception {\n Callable<Job> jobCreator = ReflectionUtils.newInstance(jobConfig.getJobCreator(), jobConfiguration);\n Job job = jobCreator.call();\n job.submit();\n\n // Blocking mode is only for testing\n if(waitForCompletition) {\n job.waitForCompletion(true);\n }\n\n // And generate event with further job details\n EventRecord event = getContext().createEventRecord(\"job-created\", 1);\n Map<String, Field> eventMap = ImmutableMap.of(\n \"tracking-url\", Field.create(job.getTrackingURL()),\n \"job-id\", Field.create(job.getJobID().toString())\n );\n event.set(Field.create(eventMap));\n getContext().toEvent(event);\n return null;\n }", "@Transactional(readOnly=false)\t\n public void save(JobEntity job, boolean isSaveToDb) {\t\n block5 : {\t\n block6 : {\t\n if (!ObjectUtils.toBoolean(F.ALLATORIxDEMO().get(\"fnJob\")).booleanValue()) {\t\n return;\t\n }\t\n v0 = job;\t\n a = com.jeesite.modules.job.j.E.ALLATORIxDEMO(v0);\t\n a = com.jeesite.modules.job.j.E.ALLATORIxDEMO(v0, a);\t\n if (!isSaveToDb) break block5;\t\n if (!job.getIsNewRecord()) break block6;\t\n v1 = this;\t\n v2 = v1;\t\n super.insert(job);\t\n ** GOTO lbl17\t\n }\t\n super.update(job);\t\n }\t\n try {\t\n v2 = this;\t\nlbl17: // 2 sources:\t\n v2.getScheduler().addJob(a, true);\t\n v3 = this;\t\n if (this.getScheduler().checkExists(a.getKey())) {\t\n v3.getScheduler().pauseTrigger(a.getKey());\t\n this.getScheduler().rescheduleJob(a.getKey(), (Trigger)a);\t\n } else {\t\n v3.getScheduler().scheduleJob((Trigger)a);\t\n }\t\n if (\"2\".equals(job.getStatus()) == false) return;\t\n v4 = this;\t\n v4.getScheduler().pauseJob(a.getJobKey());\t\n v4.getScheduler().pauseTrigger(a.getKey());\t\n return;\t\n }\t\n catch (Exception a) {\t\n throw new ServiceException(\"添加计划任务失败!\", a);\t\n }\t\n }\t\n\t\n private /* synthetic */ SchedulerFactoryBean getFactoryBean() {\t\n return this.scheduler;\t\n }\t\n\t\n @Override\t\n public List<JobEntity> findList(JobEntity job) {\t\n ArrayList a2 = ListUtils.newArrayList();\t\n if (!ObjectUtils.toBoolean(F.ALLATORIxDEMO().get(\"fnJob\")).booleanValue()) {\t\n return a2;\t\n }\t\n try {\t\n Scheduler a3 = this.getScheduler();\t\n Iterator iterator = a3.getTriggerGroupNames().iterator();\t\n while (iterator.hasNext()) {\t\n GroupMatcher a4 = GroupMatcher.groupEquals((String)((String)iterator.next()));\t\n for (TriggerKey a5 : a3.getTriggerKeys(a4)) {\t\n Trigger a6 = a3.getTrigger(a5);\t\n if (!(a6 instanceof CronTriggerImpl)) continue;\t\n a2.add(new JobEntity().convert(a3, (CronTriggerImpl)a6));\t\n }\t\n }\t\n }\t\n catch (Exception a7) {\t\n this.logger.error(\"查询任务列表失败!\", (Throwable)a7);\t\n }\t\n return a2;\t\n }\t\n\t\n @Transactional(readOnly=false)\t\n public void resume(JobEntity job) {\t\n if (!ObjectUtils.toBoolean(F.ALLATORIxDEMO().get(\"fnJob\")).booleanValue()) {\t\n return;\t\n }\t\n job.setStatus(\"0\");\t\n super.updateStatus(job);\t\n try {\t\n TriggerKey a2 = TriggerKey.triggerKey((String)job.getJobName(), (String)job.getJobGroup());\t\n JobService jobService = this;\t\n Trigger a3 = jobService.getScheduler().getTrigger(a2);\t\n jobService.getScheduler().resumeJob(a3.getJobKey());\t\n jobService.getScheduler().resumeTrigger(a3.getKey());\t\n return;\t\n }\t\n catch (SchedulerException a4) {\t\n throw new ServiceException(\"恢复运行失败!\", (Throwable)a4);\t\n }\t\n }\t\n\t\n @PreDestroy\t\n private /* synthetic */ void destroy() throws SchedulerException {\t\n if (this.scheduler != null) {\t\n this.scheduler.destroy();\t\n }\t\n }", "public interface IJobService {\n\n void process();\n\n}", "public schedulerJob() {\n }", "@Test\n public void testTracking_OutOfQuota_ForegroundAndBackground() {\n setDischarging();\n\n JobStatus jobBg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 1);\n JobStatus jobTop = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 2);\n trackJobs(jobBg, jobTop);\n setStandbyBucket(WORKING_INDEX, jobTop, jobBg); // 2 hour window\n // Now the package only has 20 seconds to run.\n final long remainingTimeMs = 20 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1), false);\n\n InOrder inOrder = inOrder(mJobSchedulerService);\n\n // UID starts out inactive.\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg);\n }\n advanceElapsedClock(remainingTimeMs / 2);\n // New job starts after UID is in the foreground. Since the app is now in the foreground, it\n // should continue to have remainingTimeMs / 2 time remaining.\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobBg));\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobTop));\n }\n // Go to a background state.\n setProcessState(ActivityManager.PROCESS_STATE_TOP_SLEEPING);\n advanceElapsedClock(remainingTimeMs / 2 + 1);\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs / 2 + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n // Top job should still be allowed to run.\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // New jobs to run.\n JobStatus jobBg2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 3);\n JobStatus jobTop2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 4);\n JobStatus jobFg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 5);\n setStandbyBucket(WORKING_INDEX, jobBg2, jobTop2, jobFg);\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n trackJobs(jobFg, jobTop);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // App still in foreground so everything should be in quota.\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE);\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 2));\n // App is now in background and out of quota. Fg should now change to out of quota since it\n // wasn't started. Top should remain in quota since it started when the app was in TOP.\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n trackJobs(jobBg2);\n assertFalse(jobBg2.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n }", "void consumeWorkUnit();", "public void executePendingTransactions()\n\t{\n\t\twhile(!transactionQueue.isEmpty())\n\t\t\ttransactionQueue.poll().doTransaction();\n\t}", "public static void tick() {\n\t\tString[] queue_order = { CANNON_QUEUE, DECK_QUEUE };\n\n\t\tfor (String queue : queue_order) {\n\t\t\tString job = redis_client.rpop(queue);\n\t\t\tif (job != null) { // check not empty\n\t\t\t\tString[] job_split = job.split(\"#\");\n\t\t\t\tint time = Integer.parseInt(job_split[2]);\n\t\t\t\ttime--;\n\t\t\t\tif (time <= 0) { // if time reaches 0 , the job is complete\n\t\t\t\t\tDefenseController.job_complete(Integer.parseInt(job_split[0]), DefenseStatus.valueOf(job_split[1]));\n\t\t\t\t} else { // job still goes -> return to the queue\n\t\t\t\t\tredis_client.rpush(queue, job_split[0] + \"#\" + job_split[1] + \"#\" + time);\n\t\t\t\t}\n\t\t\t\tbreak; // only work in one queue per tick\n\t\t\t}\n\t\t}\n\t}", "private static void scheduleJob(Context context, JobInfo job) {\n JobScheduler jobScheduler =\n (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);\n int result = jobScheduler.schedule(job);\n Assert.assertEquals(JobScheduler.RESULT_SUCCESS, result);\n if (DEBUG) {\n Log.d(TAG, \"Scheduling result is \" + result);\n }\n }", "@Test\n public void testSplitRoomReservationReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find all bookings spanning different rooms\n Job j = new SplitRoomReservationReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }", "protected static Future<Job> checkAndAddJobToQueueFuture(Marker marker, Job job, HApiParam.HQuery.Command command){\n\n return checkRunningImportJobs(marker, job, command)\n .compose( runningJobs -> {\n if(runningJobs == null){\n CService.importQueue.addJob(job);\n return Future.succeededFuture(job);\n }else{\n return Future.failedFuture(new HttpException(CONFLICT, \"Job '\"+runningJobs+\"' is already running on target!\"));\n }\n });\n }", "public interface JobScheduleService {\n void addJobScheduleHistory(JobContext jobInfo, ScheduleStatusEnum scheduleStatus);\n}", "public AbstractJob(){\n \n }", "public interface Job {\n\n public enum Status {\n IDLE,\n RUNNING,\n SUCCESS,\n ERROR,\n FAIL\n }\n\n /**\n * @return the job ID.\n */\n public default JobId getId() {\n return getContext().getId();\n }\n\n /**\n * @return the job status\n */\n public Status getStatus();\n\n /**\n * @return the job priority\n */\n public Priority getPriority();\n\n /**\n * @return The context of this job.\n */\n public JobContext getContext();\n\n /**\n * Run the job using the {@link XProcEngine}.\n */\n public void run(XProcEngine engine);\n\n}", "private void produceWorker(Class<? extends WorkerWatch> jobClass, String groupName, Long queueTaskId) \n throws SchedulerException \n {\n JobDetail jobDetail = org.quartz.JobBuilder.newJob(jobClass)\n .usingJobData(\"queueTaskId\", queueTaskId)\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .build();\n\n SimpleTrigger trigger = (SimpleTrigger)newTrigger()\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .startNow()\n .withSchedule(simpleSchedule()\n .withMisfireHandlingInstructionNextWithExistingCount()\n .withIntervalInSeconds(1)\n .withRepeatCount(0))\n .build();\n\n Scheduler sched = new StdSchedulerFactory().getScheduler(\"AgaveConsumerTransferScheduler\");\n if (!sched.isStarted()) {\n sched.start();\n }\n \n log.debug(\"Assigning \" + jobClass.getSimpleName() + \" \" + queueTaskId + \" for processing\");\n \n sched.scheduleJob(jobDetail, trigger);\n }", "@Override\n public boolean onStartJob(JobParameters job) {\n\n String id = job.getTag();\n Log.d(\"TAG+++\", \"Job id: \" + id);\n\n Uri uri = ToDoContract.ToDoEntry.CONTENT_URI.buildUpon().appendPath(id).build();\n Cursor mCursor = getContentResolver().query(uri, null, null, null, null);\n if(mCursor != null){\n if(mCursor.getCount() > 0){\n mCursor.moveToFirst();\n String info = mCursor.getString(mCursor.getColumnIndex(ToDoContract.ToDoEntry.COLUMN_INFO));\n String desc = mCursor.getString(mCursor.getColumnIndex(ToDoContract.ToDoEntry.COLUMN_DESC));\n int priority = mCursor.getInt(mCursor.getColumnIndex(ToDoContract.ToDoEntry.COLUMN_PRIORITY));\n Log.d(\"TAG+++\", \"Info: \" + info + \" | Desc: \" + desc + \" | Priority: \" + priority);\n\n //send notification\n MyNotificationUtil.sendNotification(getApplicationContext(), Integer.valueOf(id), info, desc, priority);\n }\n }\n\n\n //is there anything else to do, any background work still running?\n return false;\n }", "public interface IUploadJobNeedReplyDataListener {\n public void finishAllJobNeedReplyUpload();\n public void finishJobNeedReplyUpload(int status);\n}", "void deschedule(ScheduledJob job);", "@Override\n\tpublic boolean isJobRunning() {\n\t\treturn false;\n\t}", "public static void scheduleJob() {\n Set<JobRequest> jobRequests = JobManager.instance().getAllJobRequestsForTag(MobssJob.TAG);\n if (!jobRequests.isEmpty()) {\n return;\n }\n\n new JobRequest.Builder(MobssJob.TAG)\n .setPeriodic(AlarmManager.INTERVAL_DAY)\n .setUpdateCurrent(true) // cancel any preexisting job with the same tag while being scheduled.\n// .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED) // since the sync service needs network connection\n// .setRequirementsEnforced(true) // makes sure that all the requirements are met before starting the sync service, if at least one of the requirements is not met then the sync service will be rescheduled and not run\n .build()\n .schedule();\n }", "private synchronized void createJob\n\t\t(Channel theChannel)\n\t\t{\n\t\t// Create Job Frontend proxy object for the channel.\n\t\tJobFrontendRef frontend =\n\t\t\tnew JobFrontendProxy (myChannelGroup, theChannel);\n\t\ttheChannel.info (frontend);\n\n\t\t// Create job information record.\n\t\tJobInfo jobinfo = getJobInfo (frontend);\n\n\t\t// Start lease timers.\n\t\tjobinfo.renewTimer.start\n\t\t\t(Constants.LEASE_RENEW_INTERVAL,\n\t\t\t Constants.LEASE_RENEW_INTERVAL);\n\t\tjobinfo.expireTimer.start\n\t\t\t(Constants.LEASE_EXPIRE_INTERVAL);\n\t\t}", "private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }", "public interface Queue {\r\n\r\n\t/**\r\n\t * This method will return the first activity from the queue.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Activity poll();\r\n\r\n\t/**\r\n\t * This method will push the activity to the queue.\r\n\t * \r\n\t * @param activity\r\n\t */\r\n\tpublic void push(Object activity);\r\n\r\n\t/**\r\n\t * This method will tell that the queue is closed or not.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isQueueClosed();\r\n\r\n\t/**\r\n\t * This method will on the queue to available.\r\n\t */\r\n\tpublic void onQueue();\r\n\r\n\t/**\r\n\t * this method will off the queue so not available.\r\n\t */\r\n\tpublic void closeQueue();\r\n\r\n\t/**\r\n\t * Returns true if the queue is empty.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n}", "@TransactionTimeout(value = 3, unit = TimeUnit.HOURS)\n public <T, R> void trigger(\n final BiFunction<Supplier<Boolean>, Consumer<T>, R> longJob,\n final Consumer<T> smallTaskConsumer,\n final Consumer<R> resultConsumer) {\n if (longJobFuture == null || longJobFuture.isDone()) {\n logger.info(\"No async jobs in progress. Run a new long running job.\");\n longJobFuture = asyncInternalHelper.asyncTrigger(longJob, smallTaskConsumer, resultConsumer);\n } else {\n logger.info(\"Nothing is triggered. Async job is still in progress.\");\n }\n }", "LocalJobQueue(final Session session, final Scheduler scheduler, final SystemInfo localSystemInfo) {\n this.jobExecuter = new JobExecutor(session);\n this.systemInfo = localSystemInfo;\n final QueueProcessor queueProcessor = new QueueProcessor();\n try {\n \tfinal ScheduleOptions settings = scheduler.AT(new Date(), -1, QUEUE_PROCESSING_INTERVAL).name(queueProcessor.getClass().getName()).canRunConcurrently(false);\n scheduler.schedule(queueProcessor, settings);\n } catch (Exception e) {\n throw new IllegalStateException(\"QueueProcessor job could not be scheduled.\");\n }\n }", "public interface JobManager {\n void startJob(JobConfig<String, JsonRecord> name);\n}", "@Test\n public void testNewJobHistoryProcessing()\n {\n Job job = jobFakery.makeFakeJob();\n JobHistory newJobHistory = jobHistoryTx.newJobHistoryProcessing(job, START_TIME);\n\n verify(mockJobHistoryDAO).persist(newJobHistory);\n assertEquals(newJobHistory.getStatus(), JobStatus.PROCESSING);\n assertNull(newJobHistory.getEndTime());\n }", "void runQueue();", "public void ServiceJob(FJJob job, double time) {\n if (job == null) return;\n if (remaining_workers == 0) return;\n if (FJSimulator.DEBUG) System.out.println(\"begin service on job: \"+job.path_log_id+\" \"+time);\n\n // if the patience flag is set, then check the job queue to see if\n // this job can wait for more workers to become idle\n /*\n if (this.patient_job==null && patience) {\n \tif (this.job_queue.size() <= JOB_QUEUE_PATIENCE_THRESHOLD) {\n \t\tthis.patient_job = job;\n \t\t// compute how many workers we want to have idle before we start\n \t\t//this.idle_workers_needed = Math.min(job.num_tasks, Math.min(remaining_workers+1, num_workers));\n \t\t/**\n \t\t * Just waiting for one more worker, always, is kind-of dumb. If there is only\n \t\t * one worker available, waiting for a 2nd doubles the parallelism of the next job.\n \t\t * Also, if a lot of jobs are in service, the expected waiting time until the\n \t\t * next departure is shorter. OTOH, if almost all workers are already idle, then\n \t\t * the benefit of one more worker is negligible, and less jobs in progress means a\n \t\t * longer expected wait until another becomes available. So when deciding whether\n \t\t * to be patient or not, we should consider:\n \t\t * - the number of currently idle workers\n \t\t * - the fraction of currently idle workers\n \t\t * - the number of jobs in progress (and how many workers they have)\n \t\t * - \n \t\t * /\n \t\tint num_jobs_in_progress = this.activeJobs.size();\n \t\tdouble idle_fraction = (1.0*remaining_workers)/(1.0*num_workers);\n \t\tint busy_workers = num_workers - remaining_workers;\n \t\tdouble workers_per_job = (1.0*busy_workers)/(1.0*num_jobs_in_progress);\n \t\t\n \t\t// the expected factor to be gained by a job departing\n \t\tdouble rr = workers_per_job / remaining_workers;\n \t\t\n \t\tif ((rr >= 1.5) && (num_jobs_in_progress >= num_workers/4.0)) {\n \t\t\tthis.idle_workers_needed = Math.min(job.num_tasks, Math.min(remaining_workers+1, num_workers));\n \t\t\tSystem.out.println(\"** Setting a job to be patient rr=\"+rr);\n \t\t} else {\n \t\t\tSystem.out.println(\"-- J=\"+num_jobs_in_progress+\"\\t I=\"+remaining_workers+\"\\t B=\"+busy_workers+\"\\t rr=\"+rr);\n \t\t\tthis.idle_workers_needed = remaining_workers;\n \t\t}\n \t}\n }\n */\n\n /*\n * Try a really restrictive version of BackPressure and Patience.\n * Jobs are only patient in the case where there is only one available\n * worker, and at least k/2 jobs in progress. Also the only time the job\n * takes all workers is the case of a patient job.\n */\n if (this.patient_job==null && patience) {\n \tif ((this.job_queue.size() <= JOB_QUEUE_PATIENCE_THRESHOLD) \n \t\t\t&& (remaining_workers==1)\n \t\t\t&& (activeJobs.size() >= num_workers/2)) {\n \t\tthis.patient_job = job;\n \t\t\tthis.idle_workers_needed = remaining_workers + 1;\n \t}\n }\n\n \n // if we are going to wait for more workers, just return\n //TODO: if the job queue is no longer empty, should just start the job?\n boolean servicing_patient_job = false;\n if (patience && this.patient_job!=null) {\n \tif (this.patient_job != job) {\n \t\tSystem.err.println(\"ERROR: trying to service a job when another is being patient!\");\n \t\tSystem.exit(1);\n \t}\n \t\n \tif (remaining_workers < idle_workers_needed) {\n \t\t//System.out.println(\"Being patient for job remaining_workers=\"+remaining_workers+\" idle_workers_needed=\"+idle_workers_needed);\n \t\treturn;\n \t}\n \t\n \t// we're going to service the job that's been waiting\n \tthis.patient_job = null;\n \tidle_workers_needed = 0;\n \tservicing_patient_job = true;\n \t//System.out.println(\"Servicing a patient job \"+remaining_workers);\n }\n \n // pick out some number of workers to use\n // if the job queue is below some threshold, take all the workers\n int nworkers = (remaining_workers == 1) ? 1 : remaining_workers/2;\n //if (this.job_queue.isEmpty()) {\n if (this.job_queue.isEmpty() && servicing_patient_job) {\n \t//System.out.println(\" ** giving a patient job all the workers: \"+remaining_workers);\n \tnworkers = remaining_workers;\n }\n \n activeJobs.add(job);\n Vector<Integer> worker_pool = new Vector<Integer>();\n job2workers.put(job, worker_pool);\n for (int w=0; (w<num_workers && worker_pool.size()<nworkers); w++) {\n if (worker2job[w] == null) {\n worker_pool.add(w);\n worker2job[w] = job;\n remaining_workers--;\n }\n }\n \n //System.out.println(\"worker_pool.size() = \"+worker_pool.size()+\" nworkers = \"+nworkers+\" activeJobs.size() = \"+activeJobs.size()+\" queue size = \"+this.job_queue.size());\n \n // assign the job's tasks to the workers\n int worker_index = 0;\n FJTask t = null;\n while ((t = job.nextTask()) != null) {\n workers[0][worker_pool.get(worker_index)].queue.add(t);\n //System.out.println(\"assigning task \"+t+\" to worker \"+worker_pool.get(worker_index));\n worker_index = (worker_index + 1) % nworkers;\n }\n \n // These newly allocated workers will be idle. Put them to work.\n feedWorkers(time);\n }", "@Test\n public void testJobOverviewHandler() throws Exception {\n // this only works if there is no active job at this point\n assertTrue(getRunningJobs(CLUSTER.getClusterClient()).isEmpty());\n\n // Create a task\n final JobVertex sender = new JobVertex(\"Sender\");\n sender.setParallelism(2);\n sender.setInvokableClass(BlockingInvokable.class);\n\n final JobGraph jobGraph = JobGraphTestUtils.streamingJobGraph(sender);\n\n ClusterClient<?> clusterClient = CLUSTER.getClusterClient();\n clusterClient.submitJob(jobGraph).get();\n\n // wait for job to show up\n while (getRunningJobs(CLUSTER.getClusterClient()).isEmpty()) {\n Thread.sleep(10);\n }\n\n // wait for tasks to be properly running\n BlockingInvokable.latch.await();\n\n final Duration testTimeout = Duration.ofMinutes(2);\n\n String json =\n TestBaseUtils.getFromHTTP(\"http://localhost:\" + getRestPort() + \"/jobs/overview\");\n\n ObjectMapper mapper = new ObjectMapper();\n JsonNode parsed = mapper.readTree(json);\n ArrayNode jsonJobs = (ArrayNode) parsed.get(\"jobs\");\n assertEquals(1, jsonJobs.size());\n assertThat(\"Duration must be positive\", jsonJobs.get(0).get(\"duration\").asInt() > 0);\n\n clusterClient.cancel(jobGraph.getJobID()).get();\n\n // ensure cancellation is finished\n while (!getRunningJobs(CLUSTER.getClusterClient()).isEmpty()) {\n Thread.sleep(20);\n }\n\n BlockingInvokable.reset();\n }", "public interface TransactionRunnable {\n /** Runs with transaction. */\n void runWithTransaction(SurfaceControl.Transaction t);\n }", "@Test\n public void testEJTracking_RollingQuota() {\n JobStatus jobStatus = createExpeditedJobStatus(\"testEJTracking_RollingQuota\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n setStandbyBucket(WORKING_INDEX, jobStatus);\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n final long remainingTimeMs = SECOND_IN_MILLIS;\n // The package only has one second to run, but this session is at the edge of the rolling\n // window, so as the package \"reaches its quota\" it will have more to keep running.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - mQcConstants.EJ_WINDOW_SIZE_MS,\n 10 * SECOND_IN_MILLIS - remainingTimeMs, 1), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS,\n mQcConstants.EJ_LIMIT_WORKING_MS - 10 * SECOND_IN_MILLIS, 1), true);\n\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingEJExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Start the job.\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n assertTrue(jobStatus.isExpeditedQuotaApproved());\n // The job used up the remaining quota, but in that time, the same amount of time in the\n // old TimingSession also fell out of the quota window, so it should still have the same\n // amount of remaining time left its quota.\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingEJExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n // Handler is told to check when the quota will be consumed, not when the initial\n // remaining time is over.\n verify(handler, atLeast(1)).sendMessageDelayed(\n argThat(msg -> msg.what == QuotaController.MSG_REACHED_EJ_QUOTA),\n eq(10 * SECOND_IN_MILLIS));\n verify(handler, never()).sendMessageDelayed(any(), eq(remainingTimeMs));\n }", "public interface MonitorTransaction {\n\n void success();\n\n void failure(Throwable cause);\n\n void complete();\n}", "protected abstract long waitOnQueue();", "public void scheduleJob() {\n JobInfo.Builder builder = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n builder = new JobInfo.Builder(mJobId++, mServiceComponent);\n builder.setMinimumLatency(1000);\n builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);\n // Extras, work duration.\n PersistableBundle extras = new PersistableBundle();\n extras.putLong(WORK_DURATION_KEY, Long.valueOf(1) * 1000);\n extras.putString(\"gsonData\", gsonDataa);\n extras.putInt(\"servicetype\", 1);\n builder.setExtras(extras);\n // Schedule job\n Log.d(TAG, \"Scheduling job\");\n JobScheduler tm = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n tm.schedule(builder.build());\n\n }\n\n\n\n }", "public void run() {\n\n\t\tQueueObject qO = null;\n\t\tQueueRUNNING = true;\n\t\tint iNext = -1;\n\t\t// if not RUNNING, then check queue\n\t\t// get next object\n\t\t// set to running\n\n\t\twhile (TRUE) {\n\n\t\t\tif (QueueRUNNING) {\n\t\t\t\t//date = new Date();\n\n\t\t\t\t// don't get next job until free in run queue, except for\n\t\t\t\t// standard jobs\n\t\t\t\tif (!bRunning)\n\t\t\t\t\tiNext = Queue.getNextJobToRun();\n\n\t\t\t\tif ((!bRunning) && (iNext != Globals.NOT_FOUND)) {\n\t\t\t\t\tqO = Queue.get(iNext);\n\n\t\t\t\t\tint id = qO.getID();\n\t\t\t\t\tqO.setStart(); // update the object\n\t\t\t\t\tQueue.set(iNext, qO); // update the object in the queue\n\n\t\t\t\t\tif (id == SITEMAP) {\n\t\t\t\t\t\tbRunning = true;\n\t\t\t\t\t\tsiteMap = new SiteMapThread(qO.getJobID());\n\t\t\t\t\t\tsiteMap.start();\n\t\t\t\t\t}\n//\t\t\t\t\tif (id == CHECK_NEW_PHOTOS) {\n//\t\t\t\t\t\tcheck = new CheckDirectoryStructure(qO.getJobID());\n//\t\t\t\t\t\tcheck.start();\n//\t\t\t\t\t}\n//\t\t\t\t\tif (id == RASTERIZE) {\n//\t\t\t\t\t\trasterize = new WatchRastQueue(qO.getJobID());\n//\t\t\t\t\t\trasterize.start();\n//\t\t\t\t\t}\n\n//\t\t\t\t\tif (id == XMLUPDATE) {\n//\t\t\t\t\t\txmlUpdate = new WatchXMLQueue(qO.getJobID());\n//\t\t\t\t\t\txmlUpdate.start();\n//\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLogging.info(this.getClass().getName(), \"Queue is not running.\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tLogging.error(e);\n\t\t\t}\n\n\t\t\tif (ABORT_ID != -100) {\n\t\t\t\tQueueObject qTemp = Queue.get(ABORT_ID);\n\t\t\t\tif (qTemp.getJobID() == ABORT_ID) {\n\t\t\t\t\tLogging.info(this.getClass().getName(), \"Aborting: \" + ABORT_ID);\n\t\t\t\t\tLogging.info(this.getClass().getName(), \"Type: \" + qO.getID());\n\t\t\t\t\tswitch (qTemp.getID()) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tsiteMap.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n//\t\t\t\t\t\tcheck.interrupt();\n//\t\t\t\t\t\tcheck.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n//\t\t\t\t\t\trasterize.interrupt();\n//\t\t\t\t\t\trasterize.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n//\t\t\t\t\t\txmlUpdate.interrupt();\n//\t\t\t\t\t\txmlUpdate.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tABORT_ID = -100; // reset ID\n\t\t\t}\n\n\t\t}\n\n\t}", "private void run()\n\t\t{\n\t\tObjectItemBuf<JobSchedulerMessage> buf =\n\t\t\tObjectBuf.buffer ((JobSchedulerMessage) null);\n\t\tStatus status = null;\n\t\tJobSchedulerMessage message = null;\n\t\tJobFrontendRef frontend = null;\n\n\t\treceiveloop : for (;;)\n\t\t\t{\n\t\t\t// Receive a message from any channel.\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\tstatus = myChannelGroup.receive (null, null, buf);\n\t\t\t\t}\n\t\t\tcatch (ChannelGroupClosedException exc)\n\t\t\t\t{\n\t\t\t\t// Normal termination.\n\t\t\t\tbreak receiveloop;\n\t\t\t\t}\n\t\t\tcatch (Throwable exc)\n\t\t\t\t{\n\t\t\t\tmyLog.log (\"Exception while receiving message\", exc);\n\t\t\t\tbreak receiveloop;\n\t\t\t\t}\n\t\t\tmessage = buf.item;\n\n\t\t\t// Get job frontend proxy associated with channel.\n\t\t\tfrontend = (JobFrontendRef) status.channel.info();\n\n\t\t\t// Process message.\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\tmessage.invoke (this, frontend);\n\t\t\t\t}\n\t\t\tcatch (Throwable exc)\n\t\t\t\t{\n\t\t\t\tmyLog.log (\"Exception while processing message\", exc);\n\t\t\t\t}\n\n\t\t\t// Enable garbage collection of no-longer-needed objects while\n\t\t\t// waiting to receive next message.\n\t\t\tbuf.item = null;\n\t\t\tstatus = null;\n\t\t\tmessage = null;\n\t\t\tfrontend = null;\n\t\t\t}\n\t\t}", "public interface JobTrackingReporter {\n\n /**\n * Reports the progress of a job task to the Job Database.\n * @param jobTaskId identifies the job task whose progress is to be reported\n * @param estimatedPercentageCompleted an indication of progress on the job task\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n void reportJobTaskProgress(final String jobTaskId, final int estimatedPercentageCompleted) throws JobReportingException;\n\n\n /**\n * Reports the completion of a job task to the Job Database.\n * @param jobTaskId identifies the completed job task\n * @return JobTrackingWorkerDependency list containing any dependent jobs that are now available for processing\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n List<JobTrackingWorkerDependency> reportJobTaskComplete(final String jobTaskId) throws JobReportingException;\n\n\n /**\n * Reports the completion of a list of job tasks to the Job Database.\n * @param partitionId identifies the partition\n * @param jobId identifies the job\n * @param jobTaskIds identifies the task ids\n * @return JobTrackingWorkerDependency list containing any dependent jobs that are now available for processing\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n List<JobTrackingWorkerDependency> reportJobTasksComplete(final String partitionId, final String jobId,\n final List<String> jobTaskIds) throws JobReportingException;\n\n\n /**\n * Reports the failure and retry of a job task to the Job Database.\n * @param jobTaskId identifies the failed job task\n * @param retryDetails an explanation of the retry of this job task\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n void reportJobTaskRetry(final String jobTaskId, final String retryDetails) throws JobReportingException;\n\n\n /**\n * Reports the failure and rejection of a job task to the Job Database.\n * @param jobTaskId identifies the rejected job task\n * @param rejectionDetails an explanation of the failure and rejection of the job task\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n void reportJobTaskRejected(final String jobTaskId, final JobTrackingWorkerFailure rejectionDetails) throws JobReportingException;\n\n\n /**\n * Verifies that the Job Database can be contacted.\n * @return true if connection can be established with the Job Database, false otherwise\n */\n boolean verifyJobDatabase();\n}", "public boolean isTransactionRunning();", "public void submitJob(Job job) {\n\t\tthis.jobs.add(job);\n\t}", "public interface EnqueueCallback {\n /**\n * Called when an enqueue finishes.\n *\n * @param success Whether the enqueue was successful.\n * @param rowCount The new database size\n */\n void onEnqueue(boolean success, long rowCount);\n }", "@Test\n\tpublic void simpleSubmitAndWaitWithTimeoutTest() {\n\t\ttry {\n\t\t\tSession session = SessionFactory.getFactory().getSession();\n\n\t\t\tsession.init(contactName);\n\t\t\tJobTemplate jt = session.createJobTemplate();\n\t\t\t\n\t\t\t// Note: The test will fail if the user's home directory does not\n\t\t\t// exist on the execute node.\n\t\t\tjt.setWorkingDirectory(System.getProperty(\"user.home\"));\n\t\t\tjt.setRemoteCommand(\"/bin/sleep\");\n\t\t\tjt.setArgs(Collections.singletonList(\"10\"));\n\t\t\tjt.setJobName(SimpleTest.class.getSimpleName());\n\t\t\tString jobId = session.runJob(jt);\n\t\t\t\n\t\t\tassertNotNull(jobId);\n\t\t\tassertTrue(jobId.length() > 0);\n\t\t\t\n\t\t\t// Delete the template\n\t\t\tsession.deleteJobTemplate(jt);\n\n\t\t\t// Wait for the job to complete for (5 minutes at most)...\n\t\t\tJobInfo jobInfo = session.wait(jobId, 300);\n\n\t\t\tassertNotNull(jobInfo);\n\t\t\t\n\t\t\t// Exit the session\n\t\t\tsession.exit();\n\t\t} catch (DrmaaException de) {\n\t\t\tde.printStackTrace();\n\t\t\tfail(de.getMessage());\n\t\t}\n\t}", "public void submit(final Job job, final long runAt) {\n deque.add(new DelayedJob(job, runAt));\n }", "@InSequence(2)\n @Test\n public void worksInMultipleRuns() throws InterruptedException {\n int sum = sendMessages(14);\n runJob();\n Assert.assertEquals(14, collector.getLastItemCount());\n Assert.assertEquals(sum, collector.getLastSum());\n Assert.assertEquals(2, collector.getNumberOfJobs());\n sum = sendMessages(8);// <1> Sending messages from separate connections makes no difference\n\n sum += sendMessages(4);\n runJob();\n Assert.assertEquals(12, collector.getLastItemCount());\n Assert.assertEquals(sum, collector.getLastSum());\n Assert.assertEquals(3, collector.getNumberOfJobs());\n }", "@Test\n public void testGroupBookingsReportJob() throws Exception {\n Job allocJob = new AllocationScraperJob();\n allocJob.setStatus( JobStatus.completed );\n dao.insertJob( allocJob );\n\n // setup a job to find reservations with more than X guests\n Job j = new GroupBookingsReportJob();\n j.setStatus( JobStatus.submitted );\n j.setParameter( \"allocation_scraper_job_id\", String.valueOf( allocJob.getId() ) );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }", "myQueue(){\n }", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface QueueService {\n void saveQueue(Queue queue);\n\n Queue getQueueByIdQueue(int idQueue);\n\n List<Queue> getAllQueueToStudent(int idTimetable);\n\n boolean checkIfExists(Queue queue);\n\n List<Queue> getQueueToSubject(int idTimetable, int idStudent);\n\n List<Queue> tryToGetQueue(int idUser);\n\n void deleteByIdTimetableIdWorkIdStudent(int timetableId, int idOfWork, int studentId);\n}", "public interface QueueServiceProvider {\n /**\n * Returns the name of the Queue implementation.\n * @return Name of the queue implementation.\n */\n String name();\n\n /**\n * Places an object on the end of the queue.\n * @param object Object to place on the queue.\n */\n void enqueue(String object);\n\n /**\n * Retrieves an object from the front of the queue.\n * @return Object from the queue.\n */\n String dequeue();\n}", "void onEnqueue(boolean success, long rowCount);", "public interface ISchedulerManager {\n //\n void registerJob(String profileId, int period) throws SchedulerException;\n void quitScheduler() throws SchedulerException;\n void pauseJobList() throws SchedulerException;\n void restartJobList() throws SchedulerException;\n void pauseJob(String profileId) throws SchedulerException;\n void restartJob(String profileId) throws SchedulerException;\n List<ProfileForDB> retrieveExecuteJobList();\n List<ProfileForDB> retrieveReadyJobList();\n void updateJob(String profileId, int period) throws SchedulerException;\n void stopJobListAndChangeStatus();\n}", "public interface Transaction {\n void Execute();\n}", "public Dsjob getJobObject() { return job; }", "@Override\n public boolean onStartJob(final JobParameters jobParameters) {\n // Here's where we make an AsyncTask so that this is no longer on the main thread\n mBackgroundTask = new BackgroundAsyncTask(new JobCallback() {\n @Override\n public void resultCallback(ArrayList<News> news) {\n Context context = NewsJobService.this;\n // Prepare to show notification\n NotificationUtils.generateNotificationLayout(context, news);\n //Override onPostExecute and called jobFinished. Pass the job parameters\n // and false to jobFinished. This will inform the JobManager that your job is done\n // and that you do not want to reschedule the job.\n\n /*\n * Once the AsyncTask is finished, the job is finished. To inform JobManager that\n * you're done, you call jobFinished with the jobParamters that were passed to your\n * job and a boolean representing whether the job needs to be rescheduled. This is\n * usually if something didn't work and you want the job to try running again.\n */\n jobFinished(jobParameters, false);\n }\n });\n // Execute the AsyncTask\n mBackgroundTask.execute();\n return true;\n }", "public ClientQueueEvent(final JPPFClient client, final JPPFJob job, final JPPFPriorityQueue queue) {\n super(client);\n this.job = job;\n this.queue = queue;\n }", "abstract void doJob();", "@Override\n public boolean onStartJob(JobParameters job) {\n Log.d(LOG_TAG, \"Sync job started...\");\n new Thread(new SyncRunnable(job)).start();\n return true;\n }", "@Test\n\tpublic void send_LetExpire_Listen() throws Exception {\n\t\trmqBroker.drainLoggingQueue();\n\t\t\n\t\tEnvelope e;\n\t\t\n\t\te = publisher.publish( jimi, 1000L );\t\t\t\t\t\t// jimi will expire\n\t\tSystem.out.println( \">>> Sent: \" + e );\n\t\te = publisher.publish( freddie );\t\t\t\t\t\t\t// freddie will not expire\n\t\tSystem.out.println( \">>> Sent: \" + e );\n\t\n\t\tMessageBroker.sleep( 1100 );\t// Let the first message expire\n\t\n\t\tMessageConsumer mc = (message) -> {\n\t\t\tsetReceivedMessage( message );\n\t\t\tSystem.out.println( \">>> Received: \" + message );\n\t\t};\n\t\t\n\t\ttry {\n\t\t\tsubscriber.listen( mc, 50 );\t// terminate after timeout\n\t\t} \n\t\tcatch( TimeLimitExceededException te ) {\n\t\t\t// no-op, expected\n\t\t}\n\t\tfinally {\n\t\t\tMessageBroker.sleep( 500L );\t// Give some time to the background thread to catch up\n\t\t}\n\t\n\t\tassertNotNull( receivedMessage );\n\t\tassertEquals( freddie, receivedMessage );\n\t\t\n\t\t// Process all pending log messages because we need to \n\t\t// interrogate the database\n\t\tRunnable messageLogListener = rmqBroker.getMessageArchiver();\n\t\tThread messageLogThread = new Thread( messageLogListener );\n\t\tmessageLogThread.start();\t\t\t\n\t\tMessageBroker.sleep( 500L );\t// Give some time to the background thread to catch up\n\t\tmessageLogThread.join();\n\t\t\n\t\tfor( PersistedEnvelope pe: envelopeRepository.findAll() ) {\n\t\t\tSystem.out.println( \">>> \" + pe );\n\t\t}\n\t\t\n\t\tList<PersistedEnvelope> found = envelopeRepository.findByState( \"Expired\" );\n\t\tassertEquals( 1, found.size() );\n\t\tEnvelope expired = found.get(0).asSimpleEnvelope();\n\t\tassertEquals( State.Expired, expired.getState() );\n\t\tassertNotNull( expired.getExpiredTimestamp() );\n\t\tassertEquals( jimi, expired.getMessage() );\n\t\t\n\n\t\tfound = envelopeRepository.findByState( \"Consumed\" );\n\t\tassertEquals( 1, found.size() );\n\t\tEnvelope consumed = found.get(0).asSimpleEnvelope();\n\t\tassertEquals( State.Consumed, consumed.getState() );\n\t\tassertNotNull( consumed.getConsumedTimestamp() );\n\t\tassertEquals( jimi, expired.getMessage() );\n\t}", "@Override\n public synchronized void run() {\n while (true) {\n int nodesInQueue = 0;\n //find nodes for jobs to run on\n Iterator<AmuseJob> iterator = queue.iterator();\n while (iterator.hasNext()) {\n AmuseJob job = iterator.next();\n\n if (job.isPending()) {\n //find nodes to run this job on. Always only a single pilot, but may contain multiple nodes per pilot.\n PilotManager target = pilots.getSuitablePilot(job);\n\n //If suitable nodes are found\n if (target != null) {\n job.start(target);\n //remove this job from the queue\n iterator.remove();\n } else {\n nodesInQueue++;\n }\n } else {\n //remove this job from the queue\n iterator.remove();\n }\n }\n\n if (nodesInQueue > 0) {\n logger.info(\"Now \" + nodesInQueue + \" waiting in queue\");\n }\n \n try {\n wait(5000);\n } catch (InterruptedException e) {\n logger.debug(\"Scheduler thread interrupted, time to quit\");\n return;\n }\n \n \n }\n }", "public interface Scheduler\r\n{\r\n /**\r\n * Schedules the given job with the given delay.\r\n * \r\n * @param job\r\n * The job to schedule.\r\n * @param delay\r\n * The delay in units of time.\r\n * @param unit\r\n * The units of time.\r\n */\r\n public void schedule(Runnable job, long delay, TimeUnit unit);\r\n\r\n /**\r\n * Schedules the given job and returns a future for observing it's success.\r\n * \r\n * @param job\r\n * The job to schedule.\r\n * @param delay\r\n * The delay in units of time.\r\n * @param unit\r\n * The units of time.\r\n * @return A future to observe the status of the job.\r\n */\r\n public <T> ValueFuture<T> schedule(Callable<T> job, long delay, TimeUnit unit);\r\n}", "public JobManager(){\n //Initialize the job manager for use of the system\n }", "@Test\n\tpublic void simpleSubmitAndWaitForeverTest() {\n\t\ttry {\n\t\t\tSession session = SessionFactory.getFactory().getSession();\n\n\t\t\tsession.init(contactName);\n\t\t\tJobTemplate jt = session.createJobTemplate();\n\t\t\t\n\t\t\t// Note: The test will fail if the user's home directory does not\n\t\t\t// exist on the execute node.\n\t\t\tjt.setWorkingDirectory(System.getProperty(\"user.home\"));\n\t\t\tjt.setRemoteCommand(\"/bin/sleep\");\n\t\t\tjt.setArgs(Collections.singletonList(\"10\"));\n\t\t\tjt.setJobName(SimpleTest.class.getSimpleName());\n\t\t\tString jobId = session.runJob(jt);\n\t\t\t\n\t\t\tassertNotNull(jobId);\n\t\t\tassertTrue(jobId.length() > 0);\n\t\t\t\n\t\t\t// Delete the template\n\t\t\tsession.deleteJobTemplate(jt);\n\n\t\t\t// Wait for the job to complete\n\t\t\tJobInfo jobInfo = session.wait(jobId, Session.TIMEOUT_WAIT_FOREVER);\n\n\t\t\tassertNotNull(jobInfo);\n\t\t\t\n\t\t\t// Exit the session\n\t\t\tsession.exit();\n\t\t} catch (Exception de) {\n\t\t\tde.printStackTrace();\n\t\t\tfail(de.getMessage());\n\t\t}\n\t}", "@Override\n protected String getQueueName() {return _queueName;}" ]
[ "0.6145402", "0.6088626", "0.6083686", "0.59478706", "0.5938379", "0.5873491", "0.5856215", "0.5832326", "0.5790816", "0.5702037", "0.56874305", "0.56828666", "0.5653077", "0.5649086", "0.56108737", "0.56047916", "0.5602311", "0.5557017", "0.5511031", "0.5496988", "0.5492428", "0.5475884", "0.5455264", "0.5454302", "0.5446451", "0.54351693", "0.54196674", "0.5417802", "0.5390542", "0.53820246", "0.5376179", "0.5375751", "0.5369676", "0.5367354", "0.5365012", "0.53629386", "0.53501815", "0.53451836", "0.5333738", "0.5314178", "0.53094757", "0.5309355", "0.52968085", "0.52866393", "0.5266504", "0.52653384", "0.52632964", "0.5262906", "0.52535045", "0.52511", "0.5247451", "0.5244257", "0.5243239", "0.5236574", "0.5231185", "0.5226069", "0.5216802", "0.52140087", "0.520531", "0.5201382", "0.5195895", "0.51941764", "0.5177881", "0.5177434", "0.5172242", "0.51666474", "0.5155746", "0.51527125", "0.5147794", "0.5145788", "0.5145528", "0.5130125", "0.5126311", "0.5118605", "0.5116643", "0.5116476", "0.5108518", "0.5101081", "0.50961393", "0.50818855", "0.5080738", "0.5076791", "0.5076791", "0.5076791", "0.507626", "0.5067569", "0.50668", "0.5064918", "0.5055914", "0.50486225", "0.504423", "0.5043868", "0.5036849", "0.503248", "0.50309587", "0.50295174", "0.5029158", "0.5024098", "0.5020802", "0.50073963" ]
0.5852745
7
Sets the thread pool executor, this is built by org.alfresco.util.ThreadPoolExecutorFactoryBean, see Spring config for details
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) { this.threadPoolExecutor = threadPoolExecutor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}", "@Bean\n @ConditionalOnMissingBean(Executor.class)\n @ConditionalOnProperty(name = \"async\", prefix = \"slack\", havingValue = \"true\")\n public Executor threadPool() {\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(5);\n executor.setMaxPoolSize(30);\n executor.setQueueCapacity(20);\n executor.setThreadNamePrefix(\"slack-thread\");\n return executor;\n }", "public void setWorkerpool(Executor workerpool) {\n\t pool.setWorkerpool(workerpool);\n\t}", "void setExecutorService(ExecutorService executorService);", "@Bean(destroyMethod = \"shutdown\")\n public Executor threadPoolTaskExecutor(@Value(\"${thread.size}\") String argThreadSize) {\n this.threadSize = Integer.parseInt(argThreadSize);\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(this.threadSize);\n executor.setKeepAliveSeconds(15);\n executor.initialize();\n return executor;\n }", "public NetconfServerConfigurationBuilder setExecutorService(ExecutorService executorService) {// NOSONAR\n this.m_executorService = executorService;\n return this;\n }", "@Bean(name = \"process-response\")\n\tpublic Executor threadPoolTaskExecutor() {\n\t\tThreadPoolTaskExecutor x = new ThreadPoolTaskExecutor();\n\t\tx.setCorePoolSize(poolProcessResponseCorePoolSize);\n\t\tx.setMaxPoolSize(poolProcessResponseMaxPoolSize);\n\t\treturn x;\n\t}", "public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }", "public void setExecutor(Executor e) {\n addReference(\"ant.executor\", e);\n }", "public void setThreadPoolSize(int size) {\r\n if(size <= 0) {\r\n throw new IllegalArgumentException(\"size invalid: \" + size + \". The size of the threadpool must be greater than 0.\");\r\n }\r\n threadPoolSize = size;\r\n }", "public ExecutorProxy(final ExecutorService executor) {\n\t\tthis.executor = executor;\n\t}", "public void setTaskExecutor(Executor taskExecutor) {\n this.taskExecutor = taskExecutor;\n }", "@Override\n\tpublic ThreadPoolExecutor getThreadPool(final HystrixThreadPoolKey threadPoolKey,\n\t\t\tfinal HystrixProperty<Integer> corePoolSize, final HystrixProperty<Integer> maximumPoolSize,\n\t\t\tfinal HystrixProperty<Integer> keepAliveTime, final TimeUnit unit,\n\t\t\tfinal BlockingQueue<Runnable> workQueue) {\n\n\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - default [threadPoolKey=\" + threadPoolKey.name() + \", corePoolSize=\"\n\t\t\t\t+ corePoolSize.get() + \", maximumPoolSize=\" + maximumPoolSize.get() + \", keepAliveTime=\"\n\t\t\t\t+ keepAliveTime.get() + \", unit=\" + unit.name() + \"], override with [threadPoolKey=\"\n\t\t\t\t+ threadPoolKey.name() + \", corePoolSize=\" + CORE_POOL_SIZE + \", maximumPoolSize=\" + MAX_POOL_SIZE\n\t\t\t\t+ \", keepAliveTime=\" + KEEP_ALIVE_TIME + \", unit=\" + TimeUnit.SECONDS.name() + \"]\");\n\n\t\tif (threadFactory != null) {\n\t\t\t// All threads will run as part of this application component.\n\t\t\tfinal ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE,\n\t\t\t\t\tKEEP_ALIVE_TIME, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(BLOCKING_QUEUE_SIZE),\n\t\t\t\t\tthis.threadFactory);\n\n\t\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - initialized threadpool executor [threadPoolKey=\"\n\t\t\t\t\t+ threadPoolKey.name() + \"]\");\n\n\t\t\treturn threadPoolExecutor;\n\t\t} else {\n\t\t\tLOGGER.warn(LOG_PREFIX + \"getThreadPool - fallback to Hystrix default thread pool executor.\");\n\n\t\t\treturn super.getThreadPool(threadPoolKey, corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n\t\t}\n\t}", "public void setThreadPoolChooser(String componentId, ThreadPoolChooser aThreadPoolChooser);", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "public void setExecutor(QueryExecutor executor) {\r\n\t\tthis.executor = executor;\r\n\t}", "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "public void setPoolSize(final int poolSize) {\n this.poolSize = poolSize;\n }", "int getExecutorPoolSize();", "public static void setPool(Configuration conf, String pool) {\n conf.set(\"mapred.fairscheduler.pool\", pool);\n }", "public SynapseNotebookActivity setExecutorSize(Object executorSize) {\n this.executorSize = executorSize;\n return this;\n }", "void setThreadedAsyncMode(boolean useExecutor);", "public RequestHandler(ThreadPoolExecutor taskExecutor) {\n super();\n this.taskExecutor = taskExecutor;\n }", "@ProviderType\npublic interface ThreadPoolMBean {\n\n /**\n * Retrieve the block policy of the thread pool.\n * \n * @return the block policy\n */\n String getBlockPolicy();\n\n /**\n * Retrieve the active count from the pool's Executor.\n * \n * @return the active count or -1 if the thread pool does not have an Executor\n */\n int getExecutorActiveCount();\n\n /**\n * Retrieve the completed task count from the pool's Executor.\n * \n * @return the completed task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorCompletedTaskCount();\n\n /**\n * Retrieve the core pool size from the pool's Executor.\n * \n * @return the core pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorCorePoolSize();\n\n /**\n * Retrieve the largest pool size from the pool's Executor.\n * \n * @return the largest pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorLargestPoolSize();\n\n /**\n * Retrieve the maximum pool size from the pool's Executor.\n * \n * @return the maximum pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorMaximumPoolSize();\n\n\n /**\n * Retrieve the pool size from the pool's Executor.\n * \n * @return the pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorPoolSize();\n\n\n /**\n * Retrieve the task count from the pool's Executor. This is the total number of tasks, which\n * have ever been scheduled to this threadpool. They might have been processed yet or not.\n * \n * @return the task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorTaskCount();\n \n \n /**\n * Retrieve the number of tasks in the work queue of the pool's Executor. These are the\n * tasks which have been already submitted to the threadpool, but which are not yet executed.\n * @return the number of tasks in the work queue -1 if the thread pool does not have an Executor\n */\n long getExcutorTasksInWorkQueueCount();\n\n /**\n * Return the configured max thread age.\n *\n * @return The configured max thread age.\n * @deprecated Since version 1.1.1 always returns -1 as threads are no longer retired\n * but instead the thread locals are cleaned up (<a href=\"https://issues.apache.org/jira/browse/SLING-6261\">SLING-6261</a>)\n */\n @Deprecated\n long getMaxThreadAge();\n\n /**\n * Return the configured keep alive time.\n * \n * @return The configured keep alive time.\n */\n long getKeepAliveTime();\n\n /**\n * Return the configured maximum pool size.\n * \n * @return The configured maximum pool size.\n */\n int getMaxPoolSize();\n\n /**\n * Return the minimum pool size.\n * \n * @return The minimum pool size.\n */\n int getMinPoolSize();\n\n /**\n * Return the name of the thread pool\n * \n * @return the name\n */\n String getName();\n\n /**\n * Return the configuration pid of the thread pool.\n * \n * @return the pid\n */\n String getPid();\n\n /**\n * Return the configured priority of the thread pool.\n * \n * @return the priority\n */\n String getPriority();\n\n /**\n * Return the configured queue size.\n * \n * @return The configured queue size.\n */\n int getQueueSize();\n\n /**\n * Return the configured shutdown wait time in milliseconds.\n * \n * @return The configured shutdown wait time.\n */\n int getShutdownWaitTimeMs();\n\n /**\n * Return whether or not the thread pool creates daemon threads.\n * \n * @return The daemon configuration.\n */\n boolean isDaemon();\n\n /**\n * Return whether or not the thread pool is configured to shutdown gracefully.\n * \n * @return The graceful shutdown configuration.\n */\n boolean isShutdownGraceful();\n\n /**\n * Return whether or not the thread pool is in use.\n * \n * @return The used state of the pool.\n */\n boolean isUsed();\n\n}", "int getExecutorCorePoolSize();", "public Executor getExecutor() {\n return executor;\n }", "public AbstractParallelAlgorithm(\n final ThreadPoolExecutor threadPool)\n {\n super();\n\n this.setThreadPool(threadPool);\n }", "private void initExecService() {\n try {\n executorService = Executors.newFixedThreadPool(NO_OF_THREADS);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "public static Executor buildExecutor() {\n GrpcRegisterConfig config = Singleton.INST.get(GrpcRegisterConfig.class);\n if (null == config) {\n return null;\n }\n final String threadpool = Optional.ofNullable(config.getThreadpool()).orElse(Constants.CACHED);\n switch (threadpool) {\n case Constants.SHARED:\n try {\n return SpringBeanUtils.getInstance().getBean(ShenyuThreadPoolExecutor.class);\n } catch (NoSuchBeanDefinitionException t) {\n throw new ShenyuException(\"shared thread pool is not enable, config ${shenyu.sharedPool.enable} in your xml/yml !\", t);\n }\n case Constants.FIXED:\n case Constants.EAGER:\n case Constants.LIMITED:\n throw new UnsupportedOperationException();\n case Constants.CACHED:\n default:\n return null;\n }\n }", "@Override\n public ExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory) {\n if (profile.isDefaultProfile()) {\n return vertxExecutorService;\n } else {\n return super.newThreadPool(profile, threadFactory);\n }\n }", "ActorThreadPool getThreadPool();", "public void setExecutorName(String executorName) {\n this.executorName = executorName;\n }", "public int getExecutors() {\r\n return executors;\r\n }", "protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n this.transactionProvider = new SimpleTransactionProvider(this.connectionPool);\n }", "public void setOrderedThreadPoolExecutor(boolean orderedThreadPoolExecutor) {\n this.orderedThreadPoolExecutor = orderedThreadPoolExecutor;\n }", "public ThreadPool getDefaultThreadPool();", "public interface ThreadPool {\n /**\n * Returns the number of threads in the thread pool.\n */\n int getPoolSize();\n /**\n * Returns the maximum size of the thread pool.\n */\n int getMaximumPoolSize();\n /**\n * Returns the keep-alive time until the thread suicides after it became\n * idle (milliseconds unit).\n */\n int getKeepAliveTime();\n\n void setMaximumPoolSize(int maximumPoolSize);\n void setKeepAliveTime(int keepAliveTime);\n\n /**\n * Starts thread pool threads and starts forwarding events to them.\n */\n void start();\n /**\n * Stops all thread pool threads.\n */\n void stop();\n \n\n}", "public ProcessAccountThreadPoolVisitor(final Context ctx, final int threads, final int queueSize,\r\n final ContextAgent delegate, final LifecycleAgentSupport agent)\r\n\t{\r\n\t\tsetContext(ctx);\r\n threadPool_ = new ThreadPool(POOL_NAME, queueSize, threads, new PMContextAgent(POOL_NAME, ProcessAccountThreadPoolVisitor.class.getSimpleName(), delegate));\r\n agent_ = agent;\r\n\t}", "public void setExecutorId(Long executorId) {\n this.executorId = executorId;\n }", "public void setExecutorId(Long executorId) {\n this.executorId = executorId;\n }", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "@Bean\n public ThreadPoolTaskScheduler iotTaskScheduler(){\n ThreadPoolTaskScheduler threadPoolTaskScheduler\n = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(10);\n threadPoolTaskScheduler.setThreadNamePrefix(\n \"iotTaskScheduler\");\n return threadPoolTaskScheduler;\n }", "public String getExecutorName() {\n return executorName;\n }", "public WorkerPool(IWorkerPoolConfiguration config) {\n this(config.getName());\n setConfiguration(config);\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "@Bean(APPLICATION_TASK_EXECUTOR_BEAN_NAME)\n @ConditionalOnMissingBean\n public AsyncTaskExecutor asyncTaskExecutor() {\n return new TaskExecutorAdapter(Executors\n .newVirtualThreadPerTaskExecutor());\n }", "public Builder setExecutorProvider(ExecutorProvider executorProvider) {\n this.executorProvider =\n Preconditions.checkNotNull(executorProvider, \"ExecutorProvider is null.\");\n return this;\n }", "public ThreadPool getTimeoutThreadPool()\n {\n synchronized (timeoutThreadPoolLock)\n {\n if (timeoutThreadPool == null)\n {\n int maxNumberThreads = MAX_NUM_TIMEOUT_THREADS_DEFAULT;\n int maxTimeoutQueueSize = -1;\n \n BasicThreadPool pool = new BasicThreadPool(\"HTTP timeout\");\n log.debug(this + \" created new simulated timeout thread pool: \" + pool);\n Object param = configuration.get(MAX_NUM_TIMEOUT_THREADS);\n if (param instanceof String)\n {\n try\n {\n maxNumberThreads = Integer.parseInt((String) param);\n }\n catch (NumberFormatException e)\n {\n log.warn(\"maxNumberThreads parameter has invalid format: \" + param);\n }\n }\n else if (param != null)\n {\n log.warn(\"maxNumberThreads parameter must be a string in integer format: \" + param);\n }\n\n param = configuration.get(MAX_TIMEOUT_QUEUE_SIZE);\n if (param instanceof String)\n {\n try\n {\n maxTimeoutQueueSize = Integer.parseInt((String) param);\n }\n catch (NumberFormatException e)\n {\n log.warn(\"maxTimeoutQueueSize parameter has invalid format: \" + param);\n }\n }\n else if (param != null)\n {\n log.warn(\"maxTimeoutQueueSize parameter must be a string in integer format: \" + param);\n }\n\n pool.setMaximumPoolSize(maxNumberThreads);\n if (maxTimeoutQueueSize > 0)\n {\n pool.setMaximumQueueSize(maxTimeoutQueueSize);\n }\n pool.setBlockingMode(BlockingMode.RUN);\n timeoutThreadPool = pool;\n }\n }\n \n return timeoutThreadPool;\n }", "public ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException;", "int getExecutorMaximumPoolSize();", "@NonNull\n public Executor getExecutor() {\n return mExecutor;\n }", "public Executor getExecutor() {\n Object o = getReference(\"ant.executor\");\n if (o == null) {\n String classname = getProperty(\"ant.executor.class\");\n if (classname == null) {\n classname = DefaultExecutor.class.getName();\n }\n log(\"Attempting to create object of type \" + classname, MSG_DEBUG);\n try {\n o = Class.forName(classname, true, coreLoader).newInstance();\n } catch (ClassNotFoundException seaEnEfEx) {\n //try the current classloader\n try {\n o = Class.forName(classname).newInstance();\n } catch (Exception ex) {\n log(ex.toString(), MSG_ERR);\n }\n } catch (Exception ex) {\n log(ex.toString(), MSG_ERR);\n }\n if (o == null) {\n throw new BuildException(\n \"Unable to obtain a Target Executor instance.\");\n }\n setExecutor((Executor) o);\n }\n return (Executor) o;\n }", "public Builder setThreadFactory(ThreadFactory threadFactory) {\n threadFactory_ = (threadFactory != null) ? threadFactory : Executors.defaultThreadFactory();\n return this;\n }", "public ClientExecutionManager(final TypedProperties config, final JPPFProperty<Integer> nbThreadsProperty) {\n super(config, nbThreadsProperty);\n }", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }", "public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }", "int getExecutorLargestPoolSize();", "protected synchronized ExecutorService getService() {\r\n if(service == null) {\r\n //System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\r\n service = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() {\r\n private int count = 0;\r\n \r\n public Thread newThread(Runnable r) {\r\n Thread t = new Thread(r, \"tile-pool-\" + count++);\r\n t.setPriority(Thread.MIN_PRIORITY);\r\n t.setDaemon(true);\r\n return t;\r\n }\r\n });\r\n }\r\n return service;\r\n }", "public Long getExecutorId() {\n return executorId;\n }", "public Long getExecutorId() {\n return executorId;\n }", "public ThreadedListenerManager(ExecutorService pool) {\n\t\tmanagerNumber = MANAGER_COUNT.getAndIncrement();\n\t\tthis.pool = pool;\n\t}", "public static void main(String[] args) {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new LinkedBlockingQueue<Runnable>());\r\n System.out.println(executor.getCorePoolSize());\r\n System.out.println(executor.getMaximumPoolSize());\r\n System.out.println(\"***************************\");\r\n ThreadPoolExecutor executor2 = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new SynchronousQueue<Runnable>());\r\n System.out.println(executor2.getCorePoolSize());\r\n System.out.println(executor2.getMaximumPoolSize());\r\n\r\n// 7\r\n// 8\r\n// ***************************\r\n// 7\r\n// 8\r\n\r\n // 熟悉下api,查询线程池中保存的core线程数量为7,最大为8\r\n }", "@PostConstruct\r\n\tprivate void init() {\n\t threadPool = Executors.newCachedThreadPool();\r\n\t}", "public Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}", "private ExecutorTransformer(Executor executor) {\n super();\n iExecutor = executor;\n }", "@Singleton\n\t@Provides\n\tExecutorService provideExecutorService() {\n\t\tThreadFactory threadFactory = new ThreadFactory() {\n\t\t\tprivate final AtomicInteger threadNumber = new AtomicInteger(1);\n\n\t\t\t@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\t// Two-digit counter, used in load test.\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}\n\t\t};\n\t\treturn threadCount >= 0\n\t\t\t\t? Executors.newFixedThreadPool(threadCount, threadFactory)\n\t\t\t\t: Executors.newCachedThreadPool(threadFactory);\n\t}", "public ThreadPool(SongValidator validator,int poolSize,int threadTimeout) {\n \t\tif(validator==null) {\n \t\t\tthrow new NullPointerException(\"Validator cannot be null\");\n \t\t} else if (poolSize<1) {\n \t\t\tthrow new IllegalArgumentException(\"Pool size must be greater than one\");\n \t\t} else if (threadTimeout<1) {\n \t\t\tthrow new IllegalArgumentException(\"Timeout must be greater than one\");\n \t\t}\n \t\tthis.validator = validator;\n \t\tthis.threadTimeout = threadTimeout;\n \t\tthreadCount = poolSize;\n \t\texpirators = new ArrayList<Expirator>(threadCount);\n \t\t\n \t\t//Needed for matching threads to their runnable expirators in the exception handler\n \t\tMap<Thread,Expirator> threadMap = new HashMap<Thread,Expirator>(); \n \t\t\n \t\t//Start up all of the threads\n \t\tfor(int i=0;i<threadCount;i++) {\n \t\t\tExpirator e = new Expirator(validator, this.threadTimeout);\n \t\t\tThread t = new Thread(e);\n \t\t\texpirators.add(e);\n \t\t\tthreadMap.put(t, e);\n \t\t\tt.start();\n \t\t}\n \t}", "public ResteasyServiceBuilder withThreadPoolSize(int size) {\n return withExecutor(Executors.newFixedThreadPool(size));\n }", "Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}", "public SynapseNotebookActivity setNumExecutors(Object numExecutors) {\n this.numExecutors = numExecutors;\n return this;\n }", "private static synchronized Executor getDefaultExecutor() {\n return sDefaultExecutor == null ? sDefaultExecutor = new Executor(1)\n : sDefaultExecutor;\n }", "@Override\n public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {\n final ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(scheduledTaskPoolSize);\n threadPoolTaskScheduler.setThreadNamePrefix(scheduledTaskThreadPrefix);\n threadPoolTaskScheduler.initialize();\n scheduledTaskRegistrar.setTaskScheduler(threadPoolTaskScheduler);\n }", "public TaskThread(ThreadPool threadPool) {\n super(threadPool.getThreadGroup(), \"Task: Idle\");\n this.threadPool = threadPool;\n threadId = ThreadPool.getUniqueThreadId();\n System.out.println(\"threadId Created:\" + threadId);\n }", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "@Override\n protected ExecutorService createDefaultExecutorService() {\n return null;\n }", "protected EventExecutorFactory getExecutorFactory() {\n\t\treturn executorFactory;\n\t}", "@Bean\n @ConditionalOnMissingBean\n public TomcatProtocolHandlerCustomizer<?> protocolHandlerVirtualThreadExecutorCustomizer() {\n return protocolHandler -> {\n protocolHandler\n .setExecutor(Executors.newVirtualThreadPerTaskExecutor());\n };\n }", "@Override\n\tpublic Executor getExecutor() {\n\t\treturn null;\n\t}", "public void setSelectorThread(SelectorThread selectorThread){\n this.selectorThread = selectorThread;\n }", "public WildflyHystrixConcurrencyStrategy(final ManagedThreadFactory threadFactory) {\n\t\t//\n\t\t// Used by CDI provider.\n\t\t\n\t\tthis.threadFactory = threadFactory;\n\t}", "public Executor getExecutor() {\n return execution.getExecutor();\n }", "public ThreadPool getThreadPool(String threadpoolId) throws NoSuchThreadPoolException;", "public void testCreateThreadPool_int()\n {\n System.out.println( \"createThreadPool\" );\n int numRequestedThreads = 0;\n ThreadPoolExecutor result = ParallelUtil.createThreadPool( ParallelUtil.OPTIMAL_THREADS );\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool( -1 );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n \n result = ParallelUtil.createThreadPool( -1 );\n assertTrue( result.getMaximumPoolSize() > 0 );\n \n numRequestedThreads = 10;\n result = ParallelUtil.createThreadPool( numRequestedThreads );\n assertEquals( numRequestedThreads, result.getMaximumPoolSize() );\n }", "protected TransportMasterNodeOperationAction(Settings settings, TransportService transportService,\n\t\t\tClusterService clusterService, ThreadPool threadPool) {\n\t\tsuper(settings, threadPool);\n\t\tthis.transportService = transportService;\n\t\tthis.clusterService = clusterService;\n\n\t\tthis.transportAction = transportAction();\n\t\tthis.executor = executor();\n\n\t\ttransportService.registerHandler(transportAction, new TransportHandler());\n\t}", "public void setHighWaterThreadCount(int threads)\n { _threadPool.setMaxSize(threads);\n }", "public static Executor m13822l() {\n synchronized (f12483o) {\n if (f12471c == null) {\n f12471c = AsyncTask.THREAD_POOL_EXECUTOR;\n }\n }\n return f12471c;\n }", "public static void setConnectionPool(BoneCP connectionPool) {\n\t\tSQLDataBaseConnector.connectionPool = connectionPool;\n\t}", "public void setMaximumPoolSize(int maximumPoolSize) {\n this.maximumPoolSize = maximumPoolSize;\n }", "public void testGetNumThreads_ThreadPoolExecutor()\n {\n System.out.println( \"getNumThreads\" );\n int numThreads = 10;\n PA pa = new PA();\n assertEquals( 0, ParallelUtil.getNumThreads( pa.getThreadPool() ) );\n \n pa.threadPool = ParallelUtil.createThreadPool( 10 ); \n \n int result = ParallelUtil.getNumThreads( pa.getThreadPool() );\n assertEquals( numThreads, result );\n }", "public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }", "public Evaluator(Runtime context, ExecutorService executor) {\n\t\t\tsuper(\"evaluator\", SCHEMA);\n\t\t\tthis.context = context;\n\t\t\tthis.executor = executor;\n\t\t}", "public CacheThreadPool(final int size)\n {\n synchronized (m_lock)\n {\n m_pool = new PooledThread[size];\n \n // We assume that a list is expanded once it reaches half of its capacity\n // and it doesn't harm if the assumption is wrong.\n m_index = new ArrayList(size + 1 + (size / 2));\n }\n }", "public static ThreadPool getInstance()\r\n {\r\n if(instance == null)\r\n {\r\n instance = new ThreadPool();\r\n }\r\n return instance;\r\n }", "void setPoolName(java.lang.String poolName);", "public void setCredentialsForCurrentThread(String username, String password) {\n\t\tthis.threadBoundCredentials.set(new String[] {username, password});\n\t}", "public Render setMultithreading(int threads) {\r\n\t\tif (threads < 0)\r\n\t\t\tthrow new IllegalArgumentException(\"Multithreading patameter must be 0 or higher\");\r\n\t\tif (threads != 0)\r\n\t\t\t_threads = threads;\r\n\t\telse {\r\n\t\t\tint cores = Runtime.getRuntime().availableProcessors() - SPARE_THREADS;\r\n\t\t\tif (cores <= 2)\r\n\t\t\t\t_threads = 1;\r\n\t\t\telse\r\n\t\t\t\t_threads = cores;\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public void setConcurrentExecutions(Long ConcurrentExecutions) {\n this.ConcurrentExecutions = ConcurrentExecutions;\n }" ]
[ "0.65447044", "0.6443947", "0.63533604", "0.6328348", "0.62540686", "0.61309636", "0.61217326", "0.59380674", "0.59090257", "0.58965915", "0.58322644", "0.58065593", "0.57125044", "0.5641045", "0.55627996", "0.5538113", "0.5495962", "0.5487572", "0.5476924", "0.54389566", "0.5394074", "0.53875804", "0.53440595", "0.5279981", "0.5246658", "0.5239588", "0.522672", "0.5216308", "0.51991963", "0.5190744", "0.5139993", "0.5129813", "0.5118735", "0.5113132", "0.5103391", "0.5102818", "0.50910336", "0.50855404", "0.50490505", "0.50490505", "0.50231194", "0.49959213", "0.49761832", "0.49544582", "0.49520242", "0.49520242", "0.49520242", "0.49520242", "0.49519056", "0.4945334", "0.49313906", "0.49297705", "0.49228075", "0.49022546", "0.4869764", "0.48402843", "0.48358756", "0.48263532", "0.48175946", "0.4814337", "0.48081613", "0.4786943", "0.4786943", "0.47843742", "0.47829205", "0.4778858", "0.4768171", "0.476442", "0.47389448", "0.47244912", "0.47234774", "0.47045082", "0.46953806", "0.46868074", "0.46618074", "0.46547392", "0.46515965", "0.46465126", "0.4643491", "0.46068203", "0.46054995", "0.45998064", "0.4591552", "0.45782065", "0.45570162", "0.45521668", "0.45380455", "0.45367038", "0.4536679", "0.4534921", "0.45302394", "0.45289806", "0.45278838", "0.45274743", "0.4521931", "0.4505479", "0.4491804", "0.44892573", "0.44857252", "0.44825414" ]
0.7556735
0
Increments the read count on the node
public void run() { AuthenticationUtil.runAs(new RunAsWork<String>() { public String doWork() throws Exception { RetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>() { public Long execute() throws Throwable { Long currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT); if (currentSize == null) { currentSize=0L; } Long newSize = currentSize + sizeChange; serviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize); logger.debug(String.format("Property %s set to %s",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize)); return newSize; } }; try { RetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper(); Long newSize = txnHelper.doInTransaction(callback, false, true); if (logger.isDebugEnabled()) { logger.debug( "Incremented folder size on quota folder node: \n" + " Node: " + quotaFolder + "\n" + " New Size: " + newSize); } } catch (InvalidNodeRefException e) { if (logger.isDebugEnabled()) { logger.debug("Unable to update folder size on quota folder node: " + quotaFolder); } } catch (Throwable e) { if (logger.isDebugEnabled()) { logger.debug(e); } logger.error("Failed to update folder size on quota folder node: " + quotaFolder); } return ""; } }, AuthenticationUtil.getSystemUserName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrHedgedReadOps() {\n hedgedReadOps.inc();\n }", "void incrementLinesRead();", "public final void incrementRowsReadEvent() {\n rowsRead_++;\n }", "public final void incNodeCount() {\n nodeCount++;\n if (depth > maxDepth) {\n maxDepth = depth;\n }\n }", "public long getReadCounter () {\n\t\treturn readCounter;\n\t}", "@Override\n public synchronized void increment() {\n count++;\n }", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}", "public int getNbr_read() {\r\n\t\treturn nbrRead;\r\n\t}", "public void fireBeforeRead(State state, int data_addr) {\n rcount++;\n }", "public void incrementCount() {\n\t\tcount++;\n\t}", "public void updateReadCount(String num){\r\n\t\tString sql=\"update board_notice set readcount=readcount+1 where num=?\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, num);\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn,pstmt);\r\n\t\t}\r\n\t}", "public void incrHedgedReadWin() {\n hedgedReadWin.inc();\n }", "private synchronized void increment() {\n ++count;\n }", "public void incrRefCounter() {\n\t\tthis.refCounter++;\n\t}", "private synchronized void increment() {\n count++;\n atomicInteger.incrementAndGet();\n }", "public void incrementCount() {\n count++;\n }", "void incCount() {\n ++refCount;\n }", "public void incrementCount(){\n count+=1;\n }", "public void setNbr_read(int nbr_read) {\r\n\t\tthis.nbrRead = nbr_read;\r\n\t}", "void incrementAccessCounter();", "public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}", "public void incCount() { }", "public static synchronized void increment() {\r\n\t\tcount++;\r\n\t}", "void mark(@Nonnegative int readLimit);", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public synchronized void incrementCount() {\r\n\t\tcount++;\r\n\t\tnotifyAll();\r\n\t}", "public void addCount()\n {\n \tcount++;\n }", "public static void increment() {\n\t\tcount.incrementAndGet();\n//\t\tcount++;\n\t}", "public static synchronized void increment(){\n count++;\n }", "void incrementCount();", "public void incrementNumModifyRequests() {\n this.numModifyRequests.incrementAndGet();\n }", "@Override\r\n\tpublic int increase() throws Exception {\n\t\treturn 0;\r\n\t}", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public void increase()\n {\n setCount(getCount() + 1);\n }", "private void incrConnectionCount() {\n connectionCount.inc();\n }", "public void increment() {\n sync.increment();\n }", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "public void setNextToRead(int nextToRead) {\n\t\t// Overrides\n\t}", "public void counter(Topology tp, Node node)\n {\n index[x] = node.getID();\n x++;\n if (x > 1)\n {\n addlink(tp);\n }\n }", "public void incrementNumModifyDNRequests() {\n this.numModifyDNRequests.incrementAndGet();\n }", "void setAccessCounter(int cnt);", "public void incCounter()\n {\n counter++;\n }", "public void incFileCount(){\n\t\tthis.num_files++;\n\t}", "public void increment() {\n this.data++;\n }", "int getNodeCount();", "int getNodeCount();", "public RingBuffer<T> publishReadIndex(int num_elements_read) {\n this.ri=realIndex(this.ri + num_elements_read);\n\n lock.lock();\n try {\n this.count-=num_elements_read;\n not_full.signalAll(); // wake up all writers\n return this;\n }\n finally {\n lock.unlock();\n }\n }", "public void increaseCount(){\n myCount++;\n }", "public int getNodeCount() {\n return nodeCount;\n }", "private static void setCounter() {++counter;}", "private void counting(MyBinNode<Type> r){\n if(r != null){\n this.nodes++;\n this.counting(r.left);\n this.counting(r.right);\n }\n }", "public void incrementNumCompareRequests() {\n this.numCompareRequests.incrementAndGet();\n }", "public void incrementNumAddRequests() {\n this.numAddRequests.incrementAndGet();\n }", "public void increaseScore(){\n this.inc.seekTo(0);\n this.inc.start();\n this.currentScore++;\n }", "public void UpNumberOfVisitedNodes() {\n NumberOfVisitedNodes++;\n }", "public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}", "private void incrementUsageCount() {\n usageCount++;\n }", "public void incCounter(){\n counter++;\n }", "public void incrementRefusals() {\n\t}", "public void incrementNumSearchRequests() {\n this.numSearchRequests.incrementAndGet();\n }", "public /*synchronized*/ void increment() {\n counter++;\n }", "@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}", "public static synchronized void increment() {\n counter++;\n }", "public void increase(int number) {\r\n this.count += number;\r\n }", "public void increase(int number) {\r\n this.count += number;\r\n }", "public void inc(){\n this.current += 1;\n }", "public void incrementNumExtendedRequests() {\n this.numExtendedRequests.incrementAndGet();\n }", "private synchronized static void upCount() {\r\n\t\t++count;\r\n\t}", "public final void addRef() { refCount.incrementAndGet(); }", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public final synchronized int incrementOpenCount() {\n\t\tm_openCount++;\n\t\t\n\t\t//\tDebug\n\t\t\n//\t\tif ( m_openCount > 1)\n//\t\t\tDebug.println(\"@@@@@ File open name=\" + getPath() + \", count=\" + m_openCount);\n\t\treturn m_openCount;\n\t}", "public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}", "private static void increaseReference(Counter counter) {\n counter.advance(1);\n }", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "public abstract void setCntRod(int cntRod);", "public void incrementNumConnects() {\n this.numConnects.incrementAndGet();\n }", "public void setCount() {\n\t\tLinkedListIterator iter = new LinkedListIterator(this.head);\n\t\tint currentSize = 1;\n\t\twhile (iter.hasNext()) {\n\t\t\titer.next();\n\t\t\tcurrentSize++;\n\t\t}\n\t\tthis.size = currentSize;\n\t}", "public void incrementActiveRequests() \n {\n ++requests;\n }", "@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}", "public void increase() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count++;\r\n\t\t\t\tLog.d(LOGTAG, \"Incremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}", "public void incrank() {\n\t\trank++;\n\t}", "public short getNextNodeID() {\n\t\treturn nodeIdCounter++;\n\t}", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public void Increase()\n {\n Increase(1);\n }", "public void setTicks(int readSoFar) {\n\t\t\n\t}", "public void increment() {\n\t\tsynchronized (this) {\n\t\t\tCounter.count++;\n\t\t\tSystem.out.print(Counter.count + \" \");\n\t\t}\n\t\n\t}", "void recount();", "public synchronized void finishWriting() {\n readerNumber++; // readerNumber = -1 + 1 = 0; \n// readerNumber must be 0 at this point \n this.notifyAll(); // notify possible waiting writers or waiting readers \n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "@Test\n public void readWaiteForWriteTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(6);\n final Set<Integer> readResult = new HashSet<Integer>();\n readResult.add(999);\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountInWriteLock();\n countDownLatch.countDown();\n }\n }).start();\n Thread.sleep(2000);\n for (int i = 0; i < readThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n readResult.add(testUse.getCountInReadLock());\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(1, readResult.size());\n }", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "public void increment() {\n mNewNotificationCount.setValue(mNewNotificationCount.getValue() + 1);\n }", "public void like() {\n this.likes += 1;\n }", "public void increment() {\n increment(1);\n }", "public void Increase(int key, int incVal){\n\t\tNode res = increaseKey(root,key,incVal);\n\t\tif(res==nil){\n\t\t\tinsert(key,incVal);\n\t\t\tres = getNode(root,key);\n\t\t\tSystem.out.println(res.count);\n\t\t}else{\n\t\t\n\t\t\tSystem.out.println(res.count);\n\t\t}\n\t}", "@Override\n\tpublic void count() {\n\t\t\n\t}", "@Override\r\n\tpublic boolean incrementToken() throws IOException {\n\t\treturn false;\r\n\t}", "@Test\n public void writeWaitForReadTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 5;\n int writeThreadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(10);\n final Set<Integer> readResult = new HashSet<Integer>();\n readResult.add(1000);\n for (int i = 0; i < readThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n readResult.add(testUse.getCountAndSleepInReadLock(500));\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }\n Thread.sleep(2000);\n for (int i = 0; i < writeThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountInWriteLock();\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(1, readResult.size());\n Assert.assertEquals(995, testUse.count);\n }", "private synchronized static void incrementNumberOfOpenSockets() {\r\n\r\n\t\tnumberOfOpenSockets++;\r\n\t}", "public void incrementNumBindRequests() {\n this.numBindRequests.incrementAndGet();\n }", "public void changeCount(final int c) {\n\t\tcount += c;\n\t}" ]
[ "0.69405115", "0.66799974", "0.6619006", "0.647825", "0.63735604", "0.63143414", "0.6308353", "0.62866026", "0.62624824", "0.62553114", "0.6228407", "0.6222949", "0.6220039", "0.6200607", "0.6194414", "0.6193846", "0.6191321", "0.6164122", "0.61306685", "0.6117141", "0.60943955", "0.60640633", "0.60560083", "0.6014219", "0.59837556", "0.5983109", "0.59528166", "0.5926886", "0.59036565", "0.5883614", "0.5879798", "0.58773094", "0.5874747", "0.5835066", "0.5833326", "0.58054835", "0.58003616", "0.5774598", "0.5771502", "0.57694614", "0.5752641", "0.5752565", "0.5743349", "0.57403857", "0.57215625", "0.57215625", "0.5715627", "0.57138145", "0.57019603", "0.5700346", "0.56872076", "0.56693435", "0.5668497", "0.5652813", "0.56443954", "0.5643781", "0.5639009", "0.5635288", "0.56105345", "0.56092733", "0.56047344", "0.56022936", "0.5595744", "0.55901605", "0.55901605", "0.5588056", "0.5586482", "0.5581926", "0.55727065", "0.557151", "0.55712146", "0.55667275", "0.55562", "0.5551636", "0.554266", "0.5542129", "0.5541383", "0.5540732", "0.5535039", "0.55222666", "0.5507237", "0.5502709", "0.54900813", "0.5475379", "0.5475113", "0.5474409", "0.547111", "0.5467932", "0.54639566", "0.54581964", "0.5458111", "0.5452823", "0.5451577", "0.5435066", "0.5432028", "0.54236734", "0.5419375", "0.5417356", "0.5409883", "0.5409423", "0.54068995" ]
0.0
-1
En este metodo se crea una instancia de o para pasarlo a String De esta forma se separa los strings con split y se crea un hilo Runnable
@Override public void update(Observable observable, Object o) { if(o instanceof String){ String m = (String)o; String[] partes = m.split(":"); if(m.contains("num") && partes.length == 2){ final int value = Integer.parseInt(partes[1]); runOnUiThread(new Runnable() { @Override public void run() { numberOfRects.setText(""+value); } }); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void m2251c(String str) {\n if (this.f1831d == null || !this.f1831d.isAlive()) {\n this.f1831d = new Thread(new Oa(this, str));\n this.f1831d.start();\n }\n }", "Task1(String c){\n\t\n}", "public interface CommandParser {\n String[] splitStringIntoCommands(String string);\n String[] splitCommandIntoParams(String string);\n String convertArrayToString(String... stringArray);\n}", "public Command parse(String[] s) {\n\t\t\n\t\tif(s.length == 1 && s[0].equalsIgnoreCase(\"RUN\"))\n\t\t\treturn new Run();\n\t\telse return null;\n\t}", "public static GlideExecutor m21514a(int i, String str, UncaughtThrowableStrategy uncaughtThrowableStrategy) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(i, i, 0, TimeUnit.MILLISECONDS, new PriorityBlockingQueue(), new C8962a(str, uncaughtThrowableStrategy, true));\n return new GlideExecutor(threadPoolExecutor);\n }", "public static void main(String[] args) {\n\t String str = \"esto es un ejemplo de como funciona split\";\n\t Integer var=null;\n\t String regex;\n\t regex=Leer.pedirCadena(\"Expresión regular\", null);\n\t if(regex.equals(\"\")){\n\t \t regex=null;\n\t }\n\t var=Leer.pedirEntero(\"Pedir un entero\", regex);\n\t Leer.mostrarEnPantalla(\"El dato \"+var);\n\n\t}", "Object mo12923a(String str, Continuation<? super Unit> continuation);", "public Task(String original, @Nullable String other) {\n this(original, other, -1, -1);\n \n }", "public static GlideExecutor m21516b(int i, String str, UncaughtThrowableStrategy uncaughtThrowableStrategy) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(i, i, 0, TimeUnit.MILLISECONDS, new PriorityBlockingQueue(), new C8962a(str, uncaughtThrowableStrategy, false));\n return new GlideExecutor(threadPoolExecutor);\n }", "private Task cleanData(String data) {\n String[] dataParts = data.split(\"[|]\");\n assert dataParts.length > 2 : \"Your task data has been corrupted.\";\n Task tempTask = new ToDo(\"\");\n if (dataParts.length == 3) {\n tempTask = new ToDo(dataParts[2]);\n } else if (dataParts[0].equals(\"D\")) {\n tempTask = new Deadline(dataParts[2], dataParts[3]);\n } else if (dataParts[0].equals(\"E\")) {\n tempTask = new Event(dataParts[2], dataParts[3]);\n }\n\n if (dataParts[1].equals(\"1\")) {\n tempTask.markAsDone();\n }\n\n assert !tempTask.toString().equals(new ToDo(\"\").toString()) : \"Could not get task from data\";\n return tempTask;\n }", "private static Command<?> getCommand(@NonNull String inputStr) {\n int seperatorIndex = inputStr.indexOf(' ');\n String commandStr = seperatorIndex == -1 ? inputStr : inputStr.substring(0, seperatorIndex);\n String paramStr = seperatorIndex == -1 ? \"\" : inputStr.substring(seperatorIndex + 1).trim();\n\n if (\"Tag\".equalsIgnoreCase(commandStr)) {\n List<String> tagList = Splitter.on(\",\")\n .trimResults()\n .omitEmptyStrings()//可以 选择是否对 空字符串 做处理\n .splitToList(paramStr.replace(',', ','));\n return new TagCommand(tagList.toArray(new String[]{}));\n } else if (\"Name\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify file path\");\n }\n return new NameCommand(paramStr);\n } else if (\"Where\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify search criteria\");\n }\n return new WhereCommand(paramStr);\n } else if (\"Analyze\".equalsIgnoreCase(commandStr)) {\n return new AnalyzeCommand();\n } else if (\"Export\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify export file path\");\n }\n return new ExportCommand(paramStr);\n } else {\n throw new IllegalArgumentException(\"Use either Tag, Where, Name, Export, or Analyze\");\n }\n }", "public IStrStream(String str) {\n\t// the second parameter is the set of token delimeter characters\n\ttokenizer = new StringTokenizer(str, \" \\n\\t\");\n }", "public Task(String original) {\n this(original, null);\n }", "public void onPostExecute(String s) {\n new ParserTask().execute(new String[]{s});\n }", "public void inputStringWithParser(String str, Parser parser) throws InvalidInputException {\r\n Task task = parser.parseTask(str, this); // the only place to call StringParser\r\n if (task != null) {\r\n if (task.aboveThreshold()) { // set a threshold?\r\n report(task.getSentence(), true); // report input\r\n newTasks.add(task); // wait to be processed in the next cycle\r\n }\n }\r\n }", "private void tokenizar(){\r\n String patron = \"(?<token>[\\\\(]|\\\\d+|[-+\\\\*/%^]|[\\\\)])\";\r\n Pattern pattern = Pattern.compile(patron);\r\n Matcher matcher = pattern.matcher(this.operacion);\r\n \r\n String token;\r\n \r\n while(matcher.find()){\r\n token = matcher.group(\"token\");\r\n tokens.add(token);\r\n \r\n }\r\n \r\n }", "Runnable mk();", "@Override\n public void run(String... strings) throws Exception {\n }", "private Runnable createRunnable(final int start, final int end, final String text, final Document document){\n return new Runnable() {\n @Override\n public void run() {\n document.replaceString(start, end, text);\n }\n };\n\n }", "protected abstract T prepareObject(String extracted);", "public abstract T parse(String str);", "public static void main(String[] args){\n subThing st = new subThing(\"RAWR\");\n st.ep.start(Executors.newCachedThreadPool());\n for(;;){\n // try {\n // Thread.sleep(1);\n // } catch (InterruptedException e) {\n // e.printStackTrace();\n // }\n st.ep.execute();\n Thread.yield();\n }\n/*\n try {\n st.ep.listen(Constants.PROXY_PORT);\n // System.out.println((String) t.p.invoke(\"roar\"));\n for(;;) {\n st.ep.accept();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n */\n /*Command cmdTwo = null;\n Command cmd = new Command(\"concat\",\"-nyan\");\n\n Method[] m = String.class.getMethods();\n Map<String,Method> coolMap = new HashMap<String,Method>();\n for (Method M: m){\n coolMap.put(M.getName(),M);\n }\n\n Object o = \" and again\";\n\n try {\n ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(\"./cmd.ser\")));\n oos.writeObject(cmd);\n oos.flush();\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new FileInputStream(\"./cmd.ser\")));\n cmdTwo = (Command)ois.readObject();\n System.out.println(coolMap.get(cmdTwo.method).invoke(\"rawr\", cmdTwo.args));\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n */\n }", "private void readCommand(String[] splitRequest, TaskManager taskManager) {\n if (splitRequest.length >= 2) {\n ArrayList list = new ArrayList<Task>();\n switch (splitRequest[1]) {\n case \"all\":\n output.println(\"READ COMMAND\");\n list = taskManager.getTaskList();\n sendTasks(list);\n break;\n case \"today\":\n output.println(\"READ COMMAND\");\n list = taskManager.getTaskListForToday();\n sendTasks(list);\n break;\n case \"before\":\n output.println(\"READ COMMAND\");\n list = taskManager.getTaskListBeforeToday();\n sendTasks(list);\n break;\n case \"after\":\n output.println(\"READ COMMAND\");\n list = taskManager.getTaskListAfterToday();\n sendTasks(list);\n break;\n default:\n output.println(\"WRONG PARAMETER\");\n output.println(\"To read task enter: 'r all/today/before/after'\");\n }\n } else {\n output.println(\"WRONG PARAMETER\");\n output.println(\"To read task enter: 'r all/today/before/after'\");\n }\n }", "private void run(String schaltflaeche) {\n switch(schaltflaeche) {\n case \"es\":\n spielRunnable = new SPIELTHREAD(size, einzelspieler, serverIP, hauptport);\n spielThread = new Thread(spielRunnable);\n spielThread.start();\n break;\n \n case \"ms\":\n spielRunnable = new SPIELTHREAD(size, mehrspieler, serverIP, hauptport);\n spielThread = new Thread(spielRunnable);\n spielThread.start();\n break;\n \n case \"ns\":\n spielRunnable = new SPIELTHREAD(size, netzwerkspiel, serverIP, hauptport);\n spielThread = new Thread(spielRunnable);\n spielThread.start();\n break;\n \n case \"ip\": break;\n case \"hp\": break;\n default: break;\n }\n\n listen();\n }", "@Test\n void labTask() {\n String s = \"abczefoh\";\n List<String> result = StringSplitter.labTask(s);\n\n String first = result.get(0);\n assertEquals(3, first.length());\n assertEquals('a', first.charAt(0));\n assertFalse(\"abc\".contains(String.valueOf(first.charAt(1))));\n assertEquals('c', first.charAt(2));\n\n String second = result.get(1);\n assertEquals(2, second.length());\n assertEquals('o', second.charAt(0));\n assertFalse(\"oh\".contains(String.valueOf(second.charAt(1))));\n\n String third = result.get(2);\n assertEquals(3, third.length());\n assertEquals('z', third.charAt(0));\n assertFalse(\"zef\".contains(String.valueOf(second.charAt(1))));\n assertEquals('f', third.charAt(2));\n }", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public C3226k4(C3248m4 m4Var, Runnable runnable, boolean z, String str) {\n super(runnable, (Object) null);\n this.f5682j = m4Var;\n long andIncrement = C3248m4.f5728k.getAndIncrement();\n this.f5679g = andIncrement;\n this.f5681i = str;\n this.f5680h = z;\n if (andIncrement == RecyclerView.FOREVER_NS) {\n m4Var.f5638a.mo14329d().f5799f.mo14414a(\"Tasks index overflow\");\n }\n }", "public void run(String... strings) throws Exception {\n }", "private CommandFactory( ThreadGroup mainThreadGroup ) {\n this.mainThreadGroup = mainThreadGroup;\n \n map = new HashMap<String, String>();\n\n map.put( \"LS\", \"org.ajstark.LinuxShell.Command.LsCommand\" );\n map.put( \"GREP\", \"org.ajstark.LinuxShell.Command.GrepCommand\" );\n map.put( \"PWD\", \"org.ajstark.LinuxShell.Command.PwdCommand\" );\n map.put( \"CD\", \"org.ajstark.LinuxShell.Command.CdCommand\" );\n map.put( \"ENV_VAR\", \"org.ajstark.LinuxShell.Command.SetEnvVarCommand\" );\n map.put( \"ENV\", \"org.ajstark.LinuxShell.Command.EnvCommand\" );\n map.put( \"HISTORY\", \"org.ajstark.LinuxShell.Command.HistoryCommand\" );\n }", "private Task readTask(String input) throws DukeException {\n String[] splitInput = input.split(\"\\\\|\", -1);\n String identifier = splitInput[0];\n boolean isComplete = parseInt(splitInput[1]) == 1;\n Task task;\n switch (identifier) {\n case Todo.IDENTIFIER:\n task = new Todo(splitInput[2]);\n break;\n case Deadline.IDENTIFIER:\n task = new Deadline(splitInput[2], parseDate(splitInput[3]));\n break;\n case Event.IDENTIFIER:\n task = new Event(splitInput[2], parseDate(splitInput[3]));\n break;\n default:\n throw new DukeException(\"Imported task with invalid type.\");\n }\n if (isComplete) {\n task.setDone();\n }\n return task;\n }", "public static Task createTask(final String[] tokens) throws Exception {\n String title = tokens[1];\n String assignedTo = tokens[2];\n int timeToComplete = Integer.parseInt(tokens[THR]);\n boolean important = tokens[FOU].equals(\"y\");\n boolean urgent = tokens[FIV].equals(\"y\");\n String status = tokens[SIX];\n return new Task(\n title, assignedTo, timeToComplete, important, urgent, status);\n }", "private static void m119216b(String str, int i) {\n C1592h.m7853a((Callable<TResult>) new C37077g<TResult>(str, 0));\n }", "Object run(Callback<String> callback, String input);", "public Bitmap[] doInBackground(String... strArr) {\n Bitmap[] bitmapArr = new Bitmap[strArr.length];\n int i = 0;\n while (i < strArr.length) {\n try {\n if (!a(strArr[i])) {\n bitmapArr[i] = b(strArr[i]);\n if (bitmapArr[i] == null) {\n bitmapArr[i] = c(strArr[i]);\n a(bitmapArr[i], strArr[i]);\n }\n } else {\n bitmapArr[i] = b(strArr[i]);\n }\n i++;\n } catch (IOException unused) {\n }\n }\n return bitmapArr;\n }", "public void run() {\n /*\n r12 = this;\n java.lang.String r0 = \"param_sensortag_poll.html\"\n java.lang.String r1 = \"/\"\n java.lang.String r2 = \"com.ti.sensortag.wifiDeviceActivity.WIFI_DEVICE_POLL_DATA_IP_ADDR\"\n java.lang.String r3 = \"com.ti.sensortag.wifiDeviceActivity.WIFI_DEVICE_POLL_DATA_RESPONSE_VALUE\"\n java.lang.String r4 = \"com.ti.sensortag.wifiDeviceActivity.WIFI_DEVICE_POLL_DATA_RESPONSE\"\n java.lang.String r5 = \"wifiDeviceActivity\"\n java.lang.String r6 = \"WiFi Periodic read thread started !\"\n android.util.Log.d(r5, r6)\n L_0x0011:\n java.net.URL r6 = new java.net.URL // Catch:{ MalformedURLException -> 0x0179 }\n java.lang.StringBuilder r7 = new java.lang.StringBuilder // Catch:{ MalformedURLException -> 0x0179 }\n r7.<init>() // Catch:{ MalformedURLException -> 0x0179 }\n java.lang.String r8 = \"http://\" // Catch:{ MalformedURLException -> 0x0179 }\n r7.append(r8) // Catch:{ MalformedURLException -> 0x0179 }\n com.ti.wifi.wifiDeviceActivity r8 = com.p004ti.wifi.wifiDeviceActivity.this // Catch:{ MalformedURLException -> 0x0179 }\n java.lang.String r8 = r8.ipAddress // Catch:{ MalformedURLException -> 0x0179 }\n r7.append(r8) // Catch:{ MalformedURLException -> 0x0179 }\n r7.append(r1) // Catch:{ MalformedURLException -> 0x0179 }\n r7.append(r0) // Catch:{ MalformedURLException -> 0x0179 }\n java.lang.String r7 = r7.toString() // Catch:{ MalformedURLException -> 0x0179 }\n r6.<init>(r7) // Catch:{ MalformedURLException -> 0x0179 }\n r7 = 0\n java.lang.String r8 = \"\"\n java.net.URLConnection r6 = r6.openConnection() // Catch:{ IOException -> 0x00f2, Exception -> 0x00bc, all -> 0x00b8 }\n java.net.HttpURLConnection r6 = (java.net.HttpURLConnection) r6 // Catch:{ IOException -> 0x00f2, Exception -> 0x00bc, all -> 0x00b8 }\n com.ti.wifi.wifiDeviceActivity r7 = com.p004ti.wifi.wifiDeviceActivity.this // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n com.ti.wifi.wifiDeviceActivity r7 = r7.mThis // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n com.ti.wifi.wifiDeviceActivity$WiFiPeriodicDataReadThread$1 r9 = new com.ti.wifi.wifiDeviceActivity$WiFiPeriodicDataReadThread$1 // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r9.<init>() // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r7.runOnUiThread(r9) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.String r7 = \"GET\" // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r6.setRequestMethod(r7) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.String r7 = \"Connection\" // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.String r9 = \"close\" // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r6.setRequestProperty(r7, r9) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r7 = 1 // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r6.setDoInput(r7) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.io.InputStream r7 = r6.getInputStream() // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.String r8 = com.p004ti.wifi.wifiDeviceActivity.readStream(r7) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n int r7 = r6.getResponseCode() // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r9.<init>() // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.String r10 = \"HTTP Response : \" // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r9.append(r10) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r9.append(r7) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.String r7 = \" Length : \" // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r9.append(r7) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n int r7 = r8.length() // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n r9.append(r7) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n java.lang.String r7 = r9.toString() // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n android.util.Log.d(r5, r7) // Catch:{ IOException -> 0x00b6, Exception -> 0x00b4 }\n int r7 = r8.length()\n if (r7 <= 0) goto L_0x0127\n android.content.Intent r7 = new android.content.Intent\n r7.<init>()\n r7.setAction(r4)\n r7.putExtra(r3, r8)\n com.ti.wifi.wifiDeviceActivity r8 = com.p004ti.wifi.wifiDeviceActivity.this\n java.lang.String r8 = r8.ipAddress\n r7.putExtra(r2, r8)\n com.ti.wifi.wifiDeviceActivity r8 = com.p004ti.wifi.wifiDeviceActivity.this\n com.ti.wifi.wifiDeviceActivity r8 = r8.mThis\n r8.sendBroadcast(r7)\n r6.disconnect() // Catch:{ NullPointerException -> 0x00ae }\n goto L_0x0127\n L_0x00ae:\n r6 = move-exception\n r6.printStackTrace()\n goto L_0x0127\n L_0x00b4:\n r7 = move-exception\n goto L_0x00c0\n L_0x00b6:\n r7 = move-exception\n goto L_0x00f6\n L_0x00b8:\n r0 = move-exception\n r6 = r7\n goto L_0x014d\n L_0x00bc:\n r6 = move-exception\n r11 = r7\n r7 = r6\n r6 = r11\n L_0x00c0:\n r7.printStackTrace() // Catch:{ all -> 0x014c }\n r6.disconnect() // Catch:{ NullPointerException -> 0x00c7 }\n goto L_0x00cb\n L_0x00c7:\n r7 = move-exception\n r7.printStackTrace() // Catch:{ all -> 0x014c }\n L_0x00cb:\n int r7 = r8.length()\n if (r7 <= 0) goto L_0x0127\n android.content.Intent r7 = new android.content.Intent\n r7.<init>()\n r7.setAction(r4)\n r7.putExtra(r3, r8)\n com.ti.wifi.wifiDeviceActivity r8 = com.p004ti.wifi.wifiDeviceActivity.this\n java.lang.String r8 = r8.ipAddress\n r7.putExtra(r2, r8)\n com.ti.wifi.wifiDeviceActivity r8 = com.p004ti.wifi.wifiDeviceActivity.this\n com.ti.wifi.wifiDeviceActivity r8 = r8.mThis\n r8.sendBroadcast(r7)\n r6.disconnect() // Catch:{ NullPointerException -> 0x00ae }\n goto L_0x0127\n L_0x00f2:\n r6 = move-exception\n r11 = r7\n r7 = r6\n r6 = r11\n L_0x00f6:\n r7.printStackTrace() // Catch:{ all -> 0x014c }\n r6.disconnect() // Catch:{ NullPointerException -> 0x00fd }\n goto L_0x0101\n L_0x00fd:\n r7 = move-exception\n r7.printStackTrace() // Catch:{ all -> 0x014c }\n L_0x0101:\n int r7 = r8.length()\n if (r7 <= 0) goto L_0x0127\n android.content.Intent r7 = new android.content.Intent\n r7.<init>()\n r7.setAction(r4)\n r7.putExtra(r3, r8)\n com.ti.wifi.wifiDeviceActivity r8 = com.p004ti.wifi.wifiDeviceActivity.this\n java.lang.String r8 = r8.ipAddress\n r7.putExtra(r2, r8)\n com.ti.wifi.wifiDeviceActivity r8 = com.p004ti.wifi.wifiDeviceActivity.this\n com.ti.wifi.wifiDeviceActivity r8 = r8.mThis\n r8.sendBroadcast(r7)\n r6.disconnect() // Catch:{ NullPointerException -> 0x00ae }\n L_0x0127:\n r6 = 0\n r7 = 0\n L_0x0129:\n int r8 = r12.secToSleep\n if (r7 >= r8) goto L_0x0011\n r8 = 0\n L_0x012e:\n r9 = 10\n if (r8 >= r9) goto L_0x0149\n r9 = 100\n java.lang.Thread.sleep(r9, r6) // Catch:{ InterruptedException -> 0x0138 }\n goto L_0x013c\n L_0x0138:\n r9 = move-exception\n r9.printStackTrace()\n L_0x013c:\n boolean r9 = r12.shouldStop\n if (r9 == 0) goto L_0x0146\n java.lang.String r0 = \"WiFi Periodic read thread stopped !\"\n android.util.Log.d(r5, r0)\n return\n L_0x0146:\n int r8 = r8 + 1\n goto L_0x012e\n L_0x0149:\n int r7 = r7 + 1\n goto L_0x0129\n L_0x014c:\n r0 = move-exception\n L_0x014d:\n int r1 = r8.length()\n if (r1 <= 0) goto L_0x0178\n android.content.Intent r1 = new android.content.Intent\n r1.<init>()\n r1.setAction(r4)\n r1.putExtra(r3, r8)\n com.ti.wifi.wifiDeviceActivity r3 = com.p004ti.wifi.wifiDeviceActivity.this\n java.lang.String r3 = r3.ipAddress\n r1.putExtra(r2, r3)\n com.ti.wifi.wifiDeviceActivity r2 = com.p004ti.wifi.wifiDeviceActivity.this\n com.ti.wifi.wifiDeviceActivity r2 = r2.mThis\n r2.sendBroadcast(r1)\n r6.disconnect() // Catch:{ NullPointerException -> 0x0174 }\n goto L_0x0178\n L_0x0174:\n r1 = move-exception\n r1.printStackTrace()\n L_0x0178:\n throw r0\n L_0x0179:\n r2 = move-exception\n r2.printStackTrace()\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"URL \\\"http://\"\n r2.append(r3)\n com.ti.wifi.wifiDeviceActivity r3 = com.p004ti.wifi.wifiDeviceActivity.this\n java.lang.String r3 = r3.ipAddress\n r2.append(r3)\n r2.append(r1)\n r2.append(r0)\n java.lang.String r0 = \"\\\" is malformed !\"\n r2.append(r0)\n java.lang.String r0 = r2.toString()\n android.util.Log.d(r5, r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p004ti.wifi.wifiDeviceActivity.WiFiPeriodicDataReadThread.run():void\");\n }", "StringOperation createStringOperation();", "public MyRunnable(){\t\n\t}", "public void run() {\n\t\tfinal Reader r1 = new InputStreamReader(System.in);\r\n\t\tfinal BufferedReader teclado = new BufferedReader(r1);\r\n\t\tString linea;\r\n\t\ttry {\r\n\t\twhile ((linea = teclado.readLine()) != null) { \r\n\t\t\t// lee un String del teclado\r\n\t\t\tthis.sincronizarPila.addDato(linea);\r\n\t\t}\r\n\t\t} catch (final IOException x) { x.printStackTrace(System.err); }\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 100;\n\t\t\t\t\tmsg.obj = split[1]+\",\"+split[2];\n\t\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t\t}", "private RunnerThread getData(String line) {\n \tString name = null;\n \ttry \n \t{\n \t\tString[] lineParse = line.split(\"\\t\");\n \t\tname = lineParse[0];\n \t\tString speedString = lineParse[1];\n \t\tString restString = lineParse[2];\n \t\tint speed = Integer.parseInt(speedString);\n \t\tint rest = Integer.parseInt(restString);\n \t\treturn (new RunnerThread(name,speed,rest));\n \t}\n \tcatch (NumberFormatException num) {\n \t\tSystem.out.println(\"The data entered for the speed/rest is not correct for the runner : \" + name);\t\n \t\tSystem.exit(1);\n \t}\n \tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"An error occured while reading the data from the file\");\n\t\t\tSystem.exit(1);\n \t}\n\t\treturn null; \t\n }", "@Override\r\n\tpublic void run(String... paramArrayOfString) throws Exception {\r\n\t\t\r\n\t}", "private static Runnable makeStreamGang(String[] wordList, TestsToRun choice) {\n\t\tswitch (choice) {\n\t\tcase SEQUENTIAL_STREAM:\n\t\t\treturn new SearchWithSequentialStream(wordList, mInputStrings);\n\t\tcase PARALLEL_STREAM:\n\t\t\treturn new SearchWithParallelStream(wordList, mInputStrings);\n\t\t}\n\t\treturn null;\n\t}", "public Task loadTaskFromFile(String taskString) throws ChandlerException {\n String[] taskStringArr = taskString.split(\"\\\\|\");\n CommandName commandName = null;\n try {\n commandName = CommandName.valueOf(taskStringArr[0]);\n } catch (IllegalArgumentException e) {\n throw new ChandlerException(ui.corruptFileDataError());\n }\n switch (commandName) {\n case TODO:\n return loadTodoFromFile(taskStringArr);\n case EVENT:\n return loadEventFromFile(taskStringArr);\n case DEADLINE:\n return loadDeadlineFromFile(taskStringArr);\n default:\n throw new ChandlerException(ui.corruptFileDataError());\n }\n }", "private static TriNode buildTri(String[] str) {\r\n TriNode n = new TriNode();\r\n for (String s : str) {\r\n n.append(s);\r\n }\r\n return n;\r\n }", "public static Command parse(String str) throws DukeException {\n\n String[] arr = str.split(\" \", 2);\n if (arr.length < 1) {\n throw new DukeException(\"No command was given.\");\n }\n String firstWord = arr[0];\n if (str.equalsIgnoreCase(\"bye\")) {\n return new ExitCommand();\n } else if (str.equalsIgnoreCase(\"list\")) {\n return new ListCommand();\n } else {\n Action action = parseFirstWord(firstWord.toLowerCase());\n\n if (arr.length < 2 && (action == Action.Done || action == Action.Delete)) {\n throw new DukeException(\"duke.task.Task number for \" + firstWord + \" is not given.\");\n } else if (arr.length < 2 || arr[1].isBlank()) {\n throw new DukeException(\"The description of \" + firstWord + \" cannot be empty\");\n } else {\n return actionToCommand(action, arr[1]);\n }\n }\n }", "private static void parse_todo(String string){\n String[] split_string = string.split(\",\");\n String task = split_string[0];\n\n Todo todo = new Todo(task);\n\n int count = 0;\n for (int i = 0; i < todos.size(); i++){\n if(todo.todo.equals(todos.get(i).todo)){\n count ++;\n }\n }\n if(count == 0){\n todos.add(todo);\n }\n }", "public static Task createTask(String command) throws IllegalInstructionException {\r\n switch (command.split(\"\\\\s+\")[0]) {\r\n case Parser.COMMAND_TODO:\r\n return createTodoTask(command);\r\n case Parser.COMMAND_DEADLINE:\r\n return createDeadlineTask(command);\r\n case Parser.COMMAND_EVENT:\r\n return createEventTask(command);\r\n default:\r\n throw new IllegalInstructionException(\"String is in invalid form.\");\r\n }\r\n }", "public static void main(String[] args) throws InterruptedException {\n String fermate = \"\";\r\n Scanner scanner = new Scanner(System.in);\r\n System.out.println(\"Inserisci le fermate:(ogni fermata deve essere diviso da una ,)\");\r\n fermate = scanner.nextLine();\r\n fermate+=\", \";\r\n String[] fermateBus = fermate.split(\",\");\r\n ArrayList<String[]> elencoCorse = new ArrayList<String[]>();\r\n elencoCorse.add (AddCorsa(1));\r\n elencoCorse.add (AddCorsa(2));\r\n elencoCorse.add (AddCorsa(3));\r\n elencoCorse.add (AddCorsa(4));\r\n elencoCorse.add (AddCorsa(5));\r\n String ComunePartenza = \"\";\r\n String ComuneArrivo = \"\";\r\n System.out.println(\"Inserisci il comune di partenza\");\r\n ComunePartenza = scanner.nextLine();\r\n System.out.println(\"Inserisci il comune di arrivo\");\r\n ComuneArrivo = scanner.nextLine();\r\n //Thread\r\n DatiCondivisi datiCon = new DatiCondivisi(ComunePartenza, ComuneArrivo, fermateBus, elencoCorse);\r\n CercaTh th1 = new CercaTh(datiCon, 0);\r\n CercaTh th2 = new CercaTh(datiCon, 1);\r\n CercaTh th3 = new CercaTh(datiCon, 2);\r\n CercaTh th4 = new CercaTh(datiCon, 3);\r\n CercaTh th5 = new CercaTh(datiCon, 4);\r\n th1.start();\r\n th2.start();\r\n th3.start();\r\n th4.start();\r\n th5.start();\r\n th1.join();\r\n th2.join();\r\n th3.join();\r\n th4.join();\r\n th5.join();\r\n //al termine il programma visualizzerà il numero di corse trovate e gli orari di ogni corsa\r\n if (datiCon.getCountCorseTrovate() > 0) {\r\n System.out.println(\"Corse trovate:\" + datiCon.getCountCorseTrovate());\r\n visualizza(datiCon.getOrePartArr());\r\n } else {\r\n System.out.println(\"Corse non trovate\");\r\n }\r\n }", "@Test\n public void test_singleParametersToArity() throws Exception {\n new Thread(MultiProcessor::processStrings);\n\n // Same but with one value\n ListSequence.fromList(ListSequence.fromList(new ArrayList<String>())).select((values) -> MultiProcessor.processStrings(values));\n\n // Same but with more than one value\n Arrays.sort(new String[]{}, MultiProcessor::processStrings);\n }", "public abstract T parse(String s);", "public static String parse(String command) throws IOException {\n assert tasks.size() >= 0;\n\n if (command.equals(\"bye\")) {\n return executeExit();\n } else if (command.equals(\"list\")) {\n return executeList();\n } else if (command.equals(\"yes\") || command.equals(\"no\")) {\n return executeDuplicateHandling(command);\n } else if (command.startsWith(\"done\")) {\n return executeDone(command);\n } else if (command.startsWith(\"delete\")) {\n return executeDelete(command);\n } else if (command.startsWith(\"find\")) {\n return executeFind(command);\n } else {\n return executeTask(command);\n }\n }", "public Loup(String ligne){\n String delimiteur = \" \";\n StringTokenizer tokenizer = new StringTokenizer(ligne, delimiteur);\n String inutile = tokenizer.nextToken();\n this.ptVie = Integer.parseInt(tokenizer.nextToken());\n this.pourcentageAtt = Integer.parseInt(tokenizer.nextToken());\n this.pourcentagePar = Integer.parseInt(tokenizer.nextToken());\n this.degAtt = Integer.parseInt(tokenizer.nextToken());\n this.ptPar = Integer.parseInt(tokenizer.nextToken());\n this.pos = new Point2D(Integer.parseInt(tokenizer.nextToken()),Integer.parseInt(tokenizer.nextToken()));\n }", "String processing();", "private void m7634a(String str) {\n getAsyncTaskQueue().a(new GridExploreActivity$1(this, str), new String[0]);\n }", "static Task createTaskFromFileFormattedString(String fileFormattedString)\r\n throws DukeException {\r\n String type = fileFormattedString.split(\"\\\\s+\\\\|\\\\s+\")[0];\r\n switch (type) {\r\n case \"T\":\r\n return TaskTodo.ofFileFormattedForm(fileFormattedString);\r\n case \"D\":\r\n return TaskDeadline.ofFileFormattedForm(fileFormattedString);\r\n case \"E\":\r\n return TaskEvent.ofFileFormattedForm(fileFormattedString);\r\n default:\r\n throw new DukeException(\"String is in invalid form.\");\r\n }\r\n }", "public static void main(String[] args) {\r\n\t// challenge #1: anonymous to lambda expression\r\n\r\n Runnable runnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n String myString = \"Let's split this up into an string\";\r\n String[] parts = myString.split(\" \");\r\n for (String part : parts) {\r\n System.out.println(part);\r\n }\r\n }\r\n };\r\n\r\n Runnable runable = () -> {\r\n String myString = \"Let's split this up into an string\";\r\n String[] parts = myString.split(\" \");\r\n for (String part : parts) {\r\n System.out.println(part);\r\n }\r\n };\r\n\r\n /*challenge #2: write the following method as a lambda expression*/\r\n Function<String,String> lambdaFunction = s -> {\r\n StringBuilder returnVal = new StringBuilder();\r\n for (int i=0; i<s.length(); i++) {\r\n if (i % 2 == 1) {\r\n returnVal.append(s.charAt(i));\r\n }\r\n }\r\n return returnVal.toString();\r\n };\r\n\r\n /* challenge #3: execute the function with the argument of \"123456789\"*/\r\n\r\n// System.out.println(lambdaFunction.apply(\"123456789\"));\r\n\r\n // challenge #5\r\n String result = everySecondCharacter(lambdaFunction,\"123456789\");\r\n System.out.println(result);\r\n\r\n // challenge #6\r\n// Supplier<String> iLoveJava = () -> \"i love java\";\r\n Supplier<String> iLoveJava = () -> {return \"i love java\";};\r\n\r\n // challenge #7\r\n String supplierResult = iLoveJava.get();\r\n System.out.println(supplierResult);\r\n\r\n\r\n List<String> topNames2015 = Arrays.asList(\r\n \"Amelia\",\r\n \"Olivia\",\r\n \"emily\",\r\n \"Isla\",\r\n \"Ava\",\r\n \"oliver\",\r\n \"Jack\",\r\n \"Charlie\",\r\n \"harry\",\r\n \"Jacob\"\r\n );\r\n\r\n List<String> firstUpperCaseList = new ArrayList<>();\r\n topNames2015.forEach(name -> {\r\n firstUpperCaseList.add(name.substring(0,1).toUpperCase() + name.substring(1));\r\n });\r\n firstUpperCaseList.sort(String::compareTo);\r\n firstUpperCaseList.forEach(System.out::println);\r\n\r\n System.out.println(\"-----------\");\r\n topNames2015.stream()\r\n .map(name -> name.substring(0,1).toUpperCase() + name.substring(1))\r\n .sorted()\r\n .forEach(System.out::println);\r\n\r\n long namesBeginningWithA = topNames2015.stream()\r\n .map(name -> name.substring(0,1).toUpperCase() + name.substring(1))\r\n .filter(name ->name.startsWith(\"A\"))\r\n .count();\r\n\r\n System.out.println(\"Numbers of name begining with A\" + namesBeginningWithA);\r\n\r\n // Stream chain is lazy evaluated\r\n topNames2015\r\n .stream()\r\n .map(name -> name.substring(0,1).toUpperCase() + name.substring(1))\r\n .peek(System.out::println)\r\n .sorted(String::compareTo)\r\n .collect(Collectors.toList());\r\n\r\n\r\n\r\n\r\n }", "public void run_v1(String clase){\n\t\tObject\toc=null;\n\t\ttry {\n\t\t\tClass c=Class.forName(clase);\n\t\t\toc=c.newInstance();\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tif (oc!=null){\n\t\t\tTask_Model T=(Task_Model) oc;\n\t\t\tboolean b=true;//esta_autorizado(iduser,clase);\n\t\t\tif (b){\n\t\t\t\t\n\t\t\t\tfor (int i=0;i<this.getConstructor().getParametros().size();i++){\n\t\t\t\t\ttry {\n\t\t\t\t\tObject[] p=(Object[]) this.getConstructor().getParametros().get(i);\n\t\t\t\t\tString id=(String)p[0];\n\t\t\t\t\tObject o=p[1];\n\t\t\t\t\tT.setParameter(id, o);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"No se pudo Cargar el parametro \"+i+\" >\"+clase+\" \"+e.getMessage());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (javax.swing.SwingUtilities.isEventDispatchThread()){\n\t\t\t\t\tT.run(getConstructor());\n\t\t\t\t}else{\n\t\t\t\t\tfinal Task_Model _T=T;\n\t\t\t\t\tRunnable _execute=new Runnable(){\n\t\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t\t_T.run(getConstructor());\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tjavax.swing.SwingUtilities.invokeLater(_execute);\t\n\t\t\t\t}\t\n\t\t\t}else {\n\t\t\t\terror(\"(\"+this.getConstructor().getIduser()+\") No esta Autorizado\");\n\t\t\t\tT=null;\n\t\t\t}\t\n\t\t}\n\t\t\n\t}", "public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }", "public t_$J_ doInBackground(String... strArr) {\n t_$J_ t__j_ = new t_$J_();\n InputStream inputStream = null;\n try {\n HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(strArr[0]).openConnection();\n for (Map.Entry next : this.R$$r_.entrySet()) {\n httpURLConnection.setRequestProperty((String) next.getKey(), (String) next.getValue());\n }\n httpURLConnection.setRequestMethod(this.d__1_);\n if (this.a_$P$ != null) {\n httpURLConnection.setDoOutput(true);\n httpURLConnection.getOutputStream().write(this.a_$P$.getBytes(\"UTF-8\"));\n }\n httpURLConnection.setConnectTimeout(15000);\n httpURLConnection.setReadTimeout(20000);\n httpURLConnection.connect();\n int responseCode = httpURLConnection.getResponseCode();\n t__j_.Q_$2$(responseCode);\n InputStream errorStream = responseCode >= 400 ? httpURLConnection.getErrorStream() : httpURLConnection.getInputStream();\n t__j_.Q_$2$(httpURLConnection.getHeaderFields());\n t__j_.d__1_(G__G_(errorStream));\n if (errorStream != null) {\n try {\n errorStream.close();\n } catch (Exception e) {\n AnalyticsUtil.reportError(e, \"error\", e.getMessage());\n }\n }\n } catch (Exception e2) {\n e2.getLocalizedMessage();\n AnalyticsUtil.reportError(e2, \"error\", e2.getMessage());\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (Throwable th) {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (Exception e3) {\n AnalyticsUtil.reportError(e3, \"error\", e3.getMessage());\n }\n }\n throw th;\n }\n return t__j_;\n }", "protected void init(String command){\n\t\tStringTokenizer st = new StringTokenizer(command);\n\t\t\n\t\tthis.numberOfTokens = st.countTokens() ;\n\t\tthis.tokens = new String[this.numberOfTokens];\n\t\t\n\t\tString currentToken;\n\t\tint tokenNumber = 0;\n\t\t\n\t\t/*inizialize the entire array or cannot concatenate strings\n\t\tin the while belowe: looks like null!Command nullArgument1 ...*/\n\t\t//for(int i = 0; i < this.numberOfTokens; i++) this.tokens[i] = \"\";\n\t\t\n\t\twhile (st.hasMoreTokens()) {\n\t\t\tcurrentToken = st.nextToken();\n\t\t\t//System.out.println(\"token\"+tokenNumber+\": \"+currentToken);\n\t\t\t\n\t\t\tthis.tokens[tokenNumber] = currentToken;\n\t\t\tif(tokenNumber>1)\n\t\t\t\tmiscParam += \" \"+currentToken;\n\t\t\tif(tokenNumber>0 && !currentToken.startsWith(\"$\")) \n\t\t\t\tallParam += \" \"+currentToken;\n\t\t\t\n\t\t\ttokenNumber++;\n\t\t}\n\t\t/*this is just for remove the first <space> from the second param of the command*/\n\t\t//if(this.hasAllParam()) this.tokens[2] = this.tokens[2].substring(1);\n\t}", "protected TabTokenizer(String str, String firstDelimiters, String secondDelimiters) {\n\t\tthis.str =\tstr;\n\t\tthis.firstDelimiters=firstDelimiters;\n\t\tthis.secondDelimiters=secondDelimiters;\n\t\tmax = str.length()-1;\n\t}", "public final TaskHolderBuilder mo93069d(String str) {\n C32569u.m150519b(str, C6969H.m41409d(\"G7B86C615AA22A82CCF0A\"));\n TaskHolderBuilder tVar = this;\n tVar.f72237f = str;\n return tVar;\n }", "public static Command parse(String input) throws DukeException {\r\n String[] inputArr = input.split(\" \", 2);\r\n String command = inputArr[0];\r\n\r\n switch (command) {\r\n case \"bye\":\r\n return new ExitCommand();\r\n case \"list\":\r\n return new ListCommand();\r\n case \"done\":\r\n try {\r\n return new DoneCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n mark as done!\");\r\n }\r\n case \"delete\":\r\n try {\r\n return new DeleteCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n delete!\");\r\n }\r\n case \"todo\":\r\n try {\r\n return new AddCommand(new Todo(inputArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"The description of a todo cannot be empty.\");\r\n }\r\n case \"deadline\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /by \");\r\n return new AddCommand(new Deadline(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n deadline <description> /by <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"event\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /at \");\r\n return new AddCommand(new Event(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n event <description> /at <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"find\":\r\n try {\r\n return new FindCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify what you are searching for!\");\r\n }\r\n default:\r\n throw new DukeException(\"I'm sorry, but I don't know what that means!\");\r\n }\r\n }", "public interface Parser<T> {\n\t\n\t/**\n\t * Il metodo che deve essere completato per poter analizzare la stringa\n\t * @param value la stringa da analizzare\n\t * @return il tipo di dato voluto\n\t */\n\tpublic T parse(String value);\n\t\n}", "public OperationStFactory(String input, String oper) {\r\n\t\tthis.inputList = u.toInputList(input);\r\n\t\tthis.operator = u.toCharList(oper);\r\n\t}", "public interface Tokenizer {\n\n List<Token> parse(String text);\n}", "public Task(String line) throws ParseException {\r\n\t\tthis.content = line;\r\n\t\tparseTask(line);\r\n\t}", "private static String execute(SplitUrlEvent event) throws Exception {\n long startTime = System.currentTimeMillis();\n for (int i = 0; i < 10000; i++) {\n event.execute();\n }\n long endTime = System.currentTimeMillis();\n return String.format(\"%s: %s\",\n event.getClass().getName().equals(\n com.playtech.assignment.regex.event.RegexSplit.class.getName()) ? \"Regex\" : \"State\",\n (endTime - startTime) * 0.001 + \" s\");\n\n }", "private ExecutableReader() {}", "void LoesungAusgeben (String strA) { createOutput ()\n //\n // println(\"strA = \"+strA);\n //\n String[] list1 = { \n strA\n };\n list1=split(strA, ',');\n // now write the strings to a file, each on a separate line\n // saveStrings (\"c:\\\\soft\\\\SolProcess\\\\result\" + Date1() + \"_\" + Now1() + \".txt\", list1);\n // saveStrings (\"result\" + Date1() + \"_\" + Now1() + \".txt\", list1);\n saveStrings (\"result.txt\", list1);\n}", "public Task parseLine(String line) {\n assert(line != null && !line.equals(\"\"));\n\n String[] x = line.split(\"\\\\|\");\n String taskType = x[0].strip();\n boolean isDone = !x[1].strip().equals(\"0\");\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d MMM yyyy HH:mm\");\n\n if (taskType.equals(\"T\")) {\n return new ToDo(x[2].strip(), isDone);\n } else if (taskType.equals(\"D\")) {\n String by = x[x.length - 1].strip();\n LocalDateTime byy = LocalDateTime.parse(by, formatter);\n return new Deadline(x[2].strip(), isDone, byy);\n } else { // Event\n String at = x[x.length - 1].strip();\n LocalDateTime att = LocalDateTime.parse(at, formatter);\n return new Event(x[2].strip(), isDone, att);\n }\n }", "private Tasks createKeywordTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray) {\n timeArray.set(0, timeArray.get(0).toLowerCase());\n ArrayList<String> formattedTimeArray = new ArrayList<String>();\n createFormattedTimeArray(timeArray, formattedTimeArray);\n assert(formattedTimeArray.size() < 5);\n if (formattedTimeArray.size() == 2) { //deadline task\n createFormattedTimeArray(timeArray, formattedTimeArray);\n task = createDeadlineTask(task, descriptionOfTask, formattedTimeArray);\n } else if (formattedTimeArray.size() == 4) { //duration task\n createFormattedTimeArray(timeArray, formattedTimeArray);\n task = createDurationTask(task, descriptionOfTask, formattedTimeArray);\n }\n return task;\n }", "public void mo8814a(final String str) {\n C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {\n public void run() {\n if (C3720a.this.f12125b == null) {\n return;\n }\n if (str.equalsIgnoreCase(\"ia\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_ia_icon));\n } else if (str.equalsIgnoreCase(\"manual\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_manual_icon));\n } else if (str.equalsIgnoreCase(\"4kphoto\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_4kphoto_icon));\n } else if (str.equalsIgnoreCase(\"slowzoom\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_slow_zoom_icon));\n } else {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(false));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(0));\n }\n }\n });\n }", "public void Mini_Parser(){\n Lista_ER Nuevo=null;\n String Nombre=\"\";\n String Contenido=\"\";\n ArrayList<String> tem = new ArrayList<String>();\n //este boleano sirve para concatenar la expresion regular\n int Estado=0;\n for (int x = 0; x < L_Tokens.size(); x++) {\n switch(Estado){\n //ESTADO 0\n case 0:\n //Conjuntos\n if(L_Tokens.get(x).getLexema().equals(\"CONJ\")){\n if(L_Tokens.get(x+1).getLexema().equals(\":\")){\n if(L_Tokens.get(x+2).getDescripcion().equals(\"Identificador\")){\n //Son conjuntos \n Nombre=L_Tokens.get(x+2).getLexema();\n Estado=1;\n x=x+4;\n }\n }\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n //pasaa estado de expresion regular\n Nombre=L_Tokens.get(x).getLexema();\n Estado=2;\n }\n break;\n \n case 1:\n //ESTADO 1\n //Concatena los conjuntos\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Digito\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n for(int i=6;i<=37;i++){\n if(L_Tokens.get(x).getID()==i){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n }\n //conjunto sin llaves\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n if(L_Tokens.get(x-1).getLexema().equals(\",\")){\n }else{\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n Estado=0;\n Contenido=\"\";\n\n }\n }else{\n Contenido+=L_Tokens.get(x).getLexema();\n }\n \n\n break;\n case 2:\n //ESTADO 2\n if(L_Tokens.get(x).getLexema().equals(\"-\")){\n if(L_Tokens.get(x+1).getLexema().equals(\">\")){\n //se mira que es expresion regular\n \n Lista_ER nuevo=new Lista_ER(L_Tokens.get(x-1).getLexema());\n Nuevo=nuevo;\n L_Tokens_ER.add(nuevo);\n x++;\n Estado=3;\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\":\")){\n //se mira que es lexema\n Estado=4;\n }\n break;\n case 3: \n //ESTADO 3\n //Concatenacion de Expresion Regular\n \n //System.out.println(\"---------------------------------\"+ L_Tokens.get(x).getLexema());\n if(L_Tokens.get(x).getDescripcion().equals(\"Punto\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Barra Vetical\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Interrogacion\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Asterisco\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Signo Mas\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Lexema de Entrada\")){ \n String tem1='\"'+L_Tokens.get(x).getLexema()+'\"';\n Nuevo.setER(tem1);\n \n }\n if(L_Tokens.get(x).getLexema().equals(\"{\")){ \n String tem1=\"\";\n if(L_Tokens.get(x+2).getLexema().equals(\"}\")){\n tem1=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n Nuevo.setER(tem1);\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n Estado=0;\n }\n break;\n case 4:\n// System.out.println(L_Tokens.get(x).getLexema());\n Contenido=L_Tokens.get(x+1).getLexema();\n L_Tokens_Lex.add(new Lista_LexemasE(L_Tokens.get(x-2).getLexema(), Contenido));\n Estado=0;\n \n break;\n }//fin switch\n }//Fin for\n }", "public static Action parseLine(String string){\n String[] arr = string.split(\"\\\\.\");\n String[] command = arr[1].split(\"\\\\(\"); //[\"move\", \"3);\"]\n String method = command[0];\n String value = command[1].split(\"\\\\)\")[0];\n\n if (method.equals(\"move\")) {\n return new Action(Action.ActionType.MOVE, Integer.parseInt(value));\n } else if (method.equals(\"turn\")) {\n if (value.equals(\"right\")) {\n return new Action(Action.ActionType.TURN_RIGHT, -1);\n } else {\n return new Action(Action.ActionType.TURN_LEFT, -1);\n }\n }\n\n return null;\n\n }", "public static void parseLoad(String loadData, ArrayList<Task> tasks) throws DukeException {\n String[] args = loadData.split(\" \\0 \");\n String taskType = args[0];\n Task t;\n\n switch (taskType) {\n case \"T\":\n t = createTodo(args);\n break;\n case \"D\":\n t = createDeadline(args);\n break;\n default:\n assert false;\n t = createEvent(args);\n }\n\n assert t != null;\n tasks.add(t);\n }", "private Command parseCommand(String input) {\r\n\r\n String[] splittedInput = input.toUpperCase().split(\" \");\r\n String command = splittedInput[0];\r\n\r\n switch (command) {\r\n case \"PLACE\":\r\n return new PlaceCommand(input);\r\n case \"MOVE\":\r\n return new MoveCommand();\r\n case \"LEFT\":\r\n return new RotateLeftCommand();\r\n case \"RIGHT\":\r\n return new RotateRightCommand();\r\n case \"REPORT\":\r\n return new ReportCommand();\r\n default:\r\n return new IgnoreCommand();\r\n }\r\n }", "private Turno parseTurno(CharBuffer registro) {\n Turno t = new Turno();\n String codigo = registro.subSequence(0, CODIGO_LONGITUD).toString().trim();\n registro.position(CODIGO_LONGITUD);\n registro = registro.slice();\n t.setCodigo(codigo);\n\n String horario = registro.subSequence(0, HORARIO_LONGITUD).toString().trim();\n registro.position(HORARIO_LONGITUD);\n registro = registro.slice();\n t.setHorario(horario);\n\n String horas = registro.subSequence(0, HORAS_LONGITUD).toString().trim();\n registro.position(HORAS_LONGITUD);\n registro = registro.slice();\n t.setHoras(horas);\n\n String placaTaxi = registro.toString().trim();\n t.setPlacaTaxi(placaTaxi);\n\n return t;\n }", "public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n * @param connectionCommand commands\n * @return true if a valid commands, otherwise false\n */\n default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }\n\n /**\n * Executes the given commands, returning its success\n *\n * @param sender ource of the commands\n * @param command Command which was executed\n * @param args Passed commands arguments\n * @param objects Objects\n * @return true if a valid commands, otherwise false\n */\n boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);\n\n}", "public static ExecutableReader create(ExecutableStream str) throws Exception {\n\t\tint identify = identify(str);\n\t\tExecutableReader reader = null;\n\t\tswitch(identify) {\n\t\t\tcase TYPEID_PE_x86:\n\t\t\t\treader = new ExecutableReader(str);\n\t\t\tbreak;\n\t\t\tcase TYPEID_PE_x64:\n\t\t\t\treader = new ExecutableReader64(str);\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"[!] Arch not supported (Error: \"+identify+\")\");\n\t\t}\n\t\treturn reader;\n\t}", "public SEDataThread(String storElement)\n {\n nodeChoice = storElement;\n }", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "public static void main(String[] args) {\n String obj=new String();\n obj.getData();\n obj.operation1();\n obj.operation2();\n obj.operation3();\n obj.operation4();\n }", "public interface CommandFactory {\n Command fromString(String s) throws UnknownCommandException;\n}", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "public void interpretBrick(String s) throws InterruptedException{\n \t\r\n\t\t\r\n\t\tString[] splitStr = s.split(\" \");\r\n\t\tint len = splitStr.length;\r\n\r\n\t\tswitch (len){\r\n\t\t\r\n\t\tcase 1:\r\n\t\t\tif(s.equals(\"defused\"))\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Bomb Defused !\");\r\n\t\t\t\tsetBombDefused(true);\r\n\t\t\t\tsetTimeLeft(0);\r\n\t\t\t\tsetTimeStart(System.currentTimeMillis());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 2:\r\n\r\n\t\t\tif (splitStr[0].equalsIgnoreCase(\"IRD\"))\r\n\t\t\t{\r\n\t\t\t\tint arg1 = Integer.parseInt(splitStr[1]);\r\n\r\n\t\t\t\tgetGg().getM_irRadar().setDirection(arg1);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (splitStr[0].equalsIgnoreCase(\"CP\"))\r\n\t\t\t{\r\n\t\t\t\tdouble arg1 = Double.parseDouble(splitStr[1]);\r\n\r\n\t\t\t\tgetGg().getM_obstacleRadar().setCompassAngle(arg1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 3:\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tif (splitStr[0].equalsIgnoreCase(\"IRV\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tint arg1 = Integer.parseInt(splitStr[1]);\r\n\t\t\t\t\tint arg2 = Integer.parseInt(splitStr[2]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tgetGg().getM_irRadar().setSensor(arg1, arg2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (splitStr[0].equalsIgnoreCase(\"RC\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tint arg1 = Integer.parseInt(splitStr[1]);\r\n\t\t\t\t\tint arg2 = Integer.parseInt(splitStr[2]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tgetGg().getM_obstacleRadar().addObstacle(arg1, arg2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tSystem.err.println(\"Player IRV msg: \" + e.getMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static Task createTask(final String[] tokens) throws Exception {\n String title = tokens[1];\n if (title.length() == 0) {\n throw new Exception(\"Title not provided\");\n }\n String assignedTo = tokens[2];\n int timeToComplete = Integer.parseInt(tokens[2 + 1]);\n if (timeToComplete < 0) {\n throw new Exception(\n \"Invalid timeToComplete\" + \" \" + timeToComplete);\n }\n boolean important = tokens[2 + 2].equals(\"y\");\n boolean urgent = tokens[2 + 2 + 1].equals(\"y\");\n String status = tokens[2 + 2 + 2];\n if (!(status.equals(\"todo\") || status.equals(\"done\"))) {\n throw new Exception(\"Invalid status dud\");\n }\n return new Task(\n title, assignedTo, timeToComplete,\n important, urgent, status);\n }", "public abstract String construct();", "public static ThreadFactory m66052a(String str, boolean z) {\n return new C14912b(str, z);\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tCocos2dxJavascriptJavaBridge.evalString(rStr);\n\t\t\t\t\t}", "@Override\n protected String doInBackground(String... strings) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(strings[0]);\n InputStreamReader inputStream = new InputStreamReader(url.openConnection().getInputStream());\n BufferedReader bufferedReader = new BufferedReader(inputStream);\n String line = \"\" ;\n while ((line = bufferedReader.readLine()) != null) {\n content.append(line);\n }\n bufferedReader.close();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return content.toString();\n }", "private CommandWord(String commandString)\n {\n this.commandString = commandString;\n }", "@Override\n protected String doInBackground(Object... perams) {\n urll = perams[0].toString();//perams is an array of the vribles or things passed\n //place for html to go within scope of doinbackground\n String html2 = \"\";// html2 will have the html code filled within it\n String htmlt;\n try {\n InputStreamReader haha = new InputStreamReader(((URL) perams[0]).openStream());//input stream reader takes in an input stream!\n BufferedReader read = new BufferedReader(haha);// put the IO stream into the buffer for conversion from bytes to chars\n while ((htmlt = read.readLine()) != null) {\n if (isCancelled()) {\n html2 = \"\";\n break;\n }\n html2 = html2 + htmlt;\n }\n read.close();//closes the buffered stream\n urlandstring urlstr = new urlandstring(urll, html2);//creates a new urlandstringobject\n Message msg = Message.obtain();//creates and saves a new message instance\n msg.obj = urlstr;//puts the html variable into an object within the message\n msg.setTarget((Handler) perams[1]);//sets target to basic handler\n msg.sendToTarget(); //sends to target\n return html2;\n } catch (IOException e) {\n e.printStackTrace();\n // toast.toastpush(\"1\",urll);\n // Toast err= Toast.makeText(getApplicationContext(),\"ERROR cant open IO stream\",Toast.LENGTH_SHORT);//error message for if the io stream does not work\n // err.show();\n // Looper.loop();//for the correct implementation of thread message handling!\n return \"nope\";\n }\n }", "public Protocol(String data)\r\n {\r\n char cData[] = data.toCharArray();\r\n msgType = cData[1];\r\n numArgs = cData[2] - '0';\r\n \r\n if (numArgs > 0)\r\n {\r\n args = new String[numArgs];\r\n int pos = 3;\r\n for (int i = 0; i < numArgs; ++i)\r\n {\r\n args[i] = \"\";\r\n while (cData[pos] != fieldEnd)\r\n {\r\n args[i] += cData[pos];\r\n ++pos;\r\n }\r\n ++pos;\r\n }\r\n }\r\n else\r\n {\r\n args = null;\r\n }\r\n }", "public void processCommand(String userInput){\n if (userInput.contains(\" \")){ \n processSingleToken(userInput.split(\" \")); //Splits strings based on \" \" \n }\n \n else{\n List<String> tempStore = new ArrayList<String>();\n tempStore.add(userInput);\n String[] token = tempStore.toArray(new String[tempStore.size()]);\n processSingleToken(token);\n }\n }", "void stampaMessaggio(String messaggio);", "private Command parseCommand(String s) {\n\t\tif (constantMatch.matcher(s).matches()) {\n\t\t\treturn new Constant(Double.parseDouble(s));\n\t\t}\n\t\tif (variableMatch.matcher(s).matches()) {\n\t\t\treturn myDictionary.getVariable(s);\n\t\t}\n\t\tif (s.equals(START_LIST)) {\n\t\t\treturn createListCommand();\n\t\t}\n\t\tif(s.equals(START_GROUP)) {\n\t\t\tCommand c = getCommandOrFunction(codeReader.next());\n\t\t\tif(c.howManyArguments() <= 0) {\n\t\t\t\tthrow new SLogoException(\"Attempting to group command that takes no arguments\");\n\t\t\t}\n\t\t\tcreateGroupCommand(c); \n\t\t\treturn c;\n\t\t}\n\t\treturn findTrueCommand(s);\n\t}", "public static void m6(ArrayList<? super Runnable> al)\n\t{\n\t\tRunnable r= new Thread();\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(345);\n\t\tal.add(r);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}", "public Slogan (String str)\n\t{\n\t\tpharse = str; //This can replace str \n\t\tcount++; //Don't forget iterate count variable here\n\t}", "public final synchronized Task<Void> zza(String str) {\n String zzak;\n TaskCompletionSource taskCompletionSource;\n synchronized (this.zzar) {\n zzak = this.zzar.zzak();\n zzax zzax = this.zzar;\n StringBuilder sb = new StringBuilder(String.valueOf(zzak).length() + 1 + String.valueOf(str).length());\n sb.append(zzak);\n sb.append(\",\");\n sb.append(str);\n zzax.zzh(sb.toString());\n }\n taskCompletionSource = new TaskCompletionSource();\n this.zzdx.put(Integer.valueOf(this.zzdw + (TextUtils.isEmpty(zzak) ? 0 : zzak.split(\",\").length - 1)), taskCompletionSource);\n return taskCompletionSource.getTask();\n }", "public static Command parse(String fullCommand) throws DukeException {\n String[] arr = fullCommand.split(\"\\\\s+\", 2);\n String command = arr[0];\n if (command.equals(\"todo\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of a todo cannot be empty.\");\n } else {\n Task task = new Todo(arr[1]);\n return new AddCommand(task);\n }\n } else if (command.equals(\"deadline\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of a deadline cannot be empty.\");\n } else {\n String[] deadlineArr = arr[1].split(\" /by \", 2);\n if (deadlineArr.length == 1) {\n throw new DukeException(\"OOPS!!! You forgot to specify a date/time for the deadline.\");\n } else {\n Task task = new Deadline(deadlineArr[0], deadlineArr[1]);\n return new AddCommand(task);\n }\n }\n } else if (command.equals(\"event\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of an event cannot be empty.\");\n } else {\n String[] eventArr = arr[1].split(\" /at \", 2);\n if (eventArr.length == 1) {\n throw new DukeException(\"OOPS!!! You forgot to specify a date/time for the event.\");\n } else {\n Task task = new Event(eventArr[0], eventArr[1]);\n return new AddCommand(task);\n }\n }\n } else if (command.equals(\"done\")) {\n String[] array = arr[1].split(\"\\\\s+\");\n int[] options = new int[array.length];\n for (int i = 0; i < options.length; i++) {\n options[i] = Integer.parseInt(array[i]);\n }\n return new DoneCommand(options);\n } else if (command.equals(\"delete\")) {\n String[] array = arr[1].split(\"\\\\s+\");\n int[] options = new int[array.length];\n for (int i = 0; i < options.length; i++) {\n options[i] = Integer.parseInt(array[i]);\n }\n return new DeleteCommand(options);\n } else if (command.equals(\"list\")) {\n return new ListCommand();\n } else if (command.equals(\"find\")) {\n return new FindCommand(arr[1]);\n } else if (command.equals(\"bye\")) {\n return new ExitCommand();\n } else {\n throw new DukeException(\"OOPS!!! I'm sorry, but I don't know what that means :-(\");\n }\n }" ]
[ "0.5615274", "0.5326744", "0.52884686", "0.52839845", "0.52305883", "0.51486564", "0.50917846", "0.5041867", "0.502805", "0.5017037", "0.5006482", "0.4998517", "0.49796823", "0.4973234", "0.4958135", "0.49469885", "0.49433458", "0.4919947", "0.49002823", "0.48926887", "0.4871297", "0.4865432", "0.48618212", "0.48582935", "0.4853755", "0.48457664", "0.48372352", "0.4825384", "0.48189208", "0.48183855", "0.4799838", "0.47824067", "0.47704428", "0.47626972", "0.4755236", "0.4753644", "0.47344393", "0.4733819", "0.47333667", "0.47281536", "0.47184226", "0.47161415", "0.47147697", "0.47140107", "0.47044823", "0.4701993", "0.46986398", "0.4698199", "0.4684053", "0.46830007", "0.4682753", "0.4667", "0.46668056", "0.46665397", "0.46630806", "0.46621972", "0.46611577", "0.46526587", "0.46460402", "0.46423748", "0.4639228", "0.46347645", "0.4630818", "0.46204758", "0.46095216", "0.4606371", "0.4605987", "0.46042788", "0.4599537", "0.45986035", "0.4596827", "0.45885664", "0.45863616", "0.4576804", "0.45753404", "0.45752767", "0.45674393", "0.45622173", "0.45583948", "0.45484897", "0.4547974", "0.45450276", "0.45370108", "0.45319155", "0.45309603", "0.45309168", "0.45241842", "0.4521241", "0.4516673", "0.451397", "0.4512975", "0.44976246", "0.44964147", "0.4495247", "0.4494473", "0.44919968", "0.44892478", "0.44832134", "0.44784847", "0.44710913", "0.4469793" ]
0.0
-1
The constructor for the ray tracer. Currently, the only client of this class is VolumeRenderer.
public RayCastColorMIP (ModelImage kImage, int iRBound, int[] aiRImage) { super(kImage, iRBound, aiRImage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RayTracer() {\n\t\tspheres = new ArrayList<Sphere>();\n\t\tspheres.add(new Sphere(-2.0f, 0.0f, -15.0f, 4.0f, 1.00f, 0.32f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(5.0f, 5.0f, -15.0f, 2.0f, 0.00f, 0.92f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(10.0f, -8.0f, -30.0f, 6.0f, 0.36f, 0.32f, 1.00f, 0.1f, 0.8f, 100.0f));\n\n\t\tlight = new Light(5.0f, 10.0f, 10.0f, 1.0f); // (x, y, z, intensity).\n\t\tcamera = new Camera(512, 512, 50.0f); // (width, height, fov).\n\t}", "public RayTracerBasic(Scene scene)\r\n\t{\r\n\t\tsuper(scene);\r\n\t}", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public Ray(Point3D p0, Vector dir) {\n _p0 = p0;\n _dir = dir.normalized();\n }", "public RayTracerEngine(Dimension image_size) {\n\t\tthis(image_size, null, null);\n\t}", "public void addRayTrajectories()\n\t{\n\t\tclear();\n\t\t\n\t\tdouble sin = Math.sin(hyperboloidAngle);\n\n\t\t// Three vectors which form an orthogonal system.\n\t\t// a points in the direction of the axis and is of length cos(coneAngle);\n\t\t// u and v are both of length sin(coneAngle).\n\t\tVector3D\n\t\ta = axisDirection.getWithLength(Math.cos(hyperboloidAngle)),\n\t\tu = Vector3D.getANormal(axisDirection).getNormalised(),\n\t\tv = Vector3D.crossProduct(axisDirection, u).getNormalised();\n\t\t\n\t\tfor(int i=0; i<numberOfRays; i++)\n\t\t{\n\t\t\tdouble\n\t\t\t\tphi = 2*Math.PI*i/numberOfRays,\n\t\t\t\tcosPhi = Math.cos(phi),\n\t\t\t\tsinPhi = Math.sin(phi);\n\t\t\taddSceneObject(\n\t\t\t\t\tnew EditableRayTrajectory(\n\t\t\t\t\t\t\t\"trajectory of ray #\" + i,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\tstartPoint,\n\t\t\t\t\t\t\t\t\tu.getProductWith(waistRadius*cosPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith(waistRadius*sinPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tstartTime,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\tu.getProductWith(-sin*sinPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith( sin*cosPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\trayRadius,\n\t\t\t\t\t\t\tsurfaceProperty,\n\t\t\t\t\t\t\tmaxTraceLevel,\n\t\t\t\t\t\t\tfalse,\t// reportToConsole\n\t\t\t\t\t\t\tthis,\t// parent\n\t\t\t\t\t\t\tgetStudio()\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\t}", "public Ray(double d) {\n setOrigin(50, 200);\n setMatrix(d, 0);\n }", "public GeometryRay(final Vec3 origin, final Vec3 direction) {\n super(origin, direction);\n }", "public Ray(Point3D head, Vector direction, Vector normal) {\n\t\tthis(head, direction);\n\t\tdouble nv = normal.dotProduct(_dir);\n\t\tif (!Util.isZero(nv)) {\n\t\t\tVector epsVector = normal.scale(nv > 0 ? DELTA : -DELTA);\n\t\t\t_p0 = head.add(epsVector);\n\t\t}\n\t}", "public RayTracerEngine(Dimension image_size, Scene scene, Camera camera) {\n\t\tthis.scene = scene;\n\t\tthis.camera = camera;\n\t\tthis.width = image_size.width;\n\t\tthis.height = image_size.height;\n\t\tforward = new Vector(0, 0, 1);\n\t\tforward.normalise();\n\t\t\n\t}", "public Tube(double _radius, Ray _ray) {\n this(Color.BLACK, new Material(0,0,0), _radius, _ray);\n }", "public Ray(Point3D p0, Vector dir, Vector n) {\n if (n.dotProduct(dir) >= 0){\n Vector delta = n.scale(DELTA);\n _p0 = p0.add(delta);\n _dir = dir.normalized();\n }\n else{\n Vector delta = n.scale(-DELTA);\n _p0 = p0.add(delta);\n _dir = dir.normalized();\n }\n }", "Reflexion(final Ray ray, final Raytracer tracer){\n\t\tthis.ray = ray;\n\t\tthis.tracer = tracer;\n\t}", "public Ray(Point3D point, Vector lightDirection, Vector n, double DELTA) {\n /**\n * if n.dotProduct(lightDirection) it`s positive (bigger then zero)\n * then add DELTA , else minus DELTA\n */\n Vector delta = n.scale(n.dotProduct(lightDirection) > 0 ? DELTA : - DELTA);\n _p0 = point.add(delta);\n _dir= lightDirection.normalized();\n }", "public abstract Color traceRay(Ray ray);", "public abstract Color traceRay(Ray ray);", "public Light(){\n this(0.0, 0.0, 0.0);\n }", "public Tube(Ray axisRay, double radius) {\r\n\t\tthis.axisRay = axisRay;\r\n\t\tthis.radius = radius;\r\n\t}", "public GL4JRenderer()\r\n\t{\r\n\t\t//gl = this;\r\n\t\tsuper(256,256);\r\n\t\tActorSet = new Vector();\r\n\t\tLightSet = new Vector();\r\n\t\tCameraSet = new Vector();\r\n\t\tActions = new Vector();\r\n\t\tinitLess = true;\r\n\t\tMouseDown = 0;\r\n\t\tLastMouse = new int[2];\r\n\t\tInternalTexture = new int[1];\r\n\t\tInternalTexture[0] = 0;\r\n\t\tKeyHandler = null;\r\n\t\tClockThread = null;\r\n\t\tglut = new GLUTFuncLightImpl(gl, glu);\r\n\t\taddMouseMotionListener(this);\r\n\t\taddKeyListener(this);\r\n\t\tcurrTime = 0;\r\n\t}", "private Ray constructReflectedRay(Vector normal, Point3D point, Ray inRay){\n Vector R = inRay.get_direction();\n normal.scale(2*inRay.get_direction().dotProduct(normal));\n R.subtract(normal);\n Vector epsV = new Vector(normal);\n if (normal.dotProduct(R) < 0) {\n epsV.scale(-2);\n }\n else {\n epsV.scale(2);\n }\n //Vector epsV = new Vector(EPS, EPS, EPS);\n Point3D eps = new Point3D(point);\n\n eps.add(epsV);\n R.normalize();\n return new Ray(eps, R);\n }", "private LineSystem()\r\n {\r\n super(sleepTime);\r\n \r\n left = new DigitalInput(1);\r\n middle = new DigitalInput(3);\r\n right = new DigitalInput(2);\r\n }", "public LinearRenderer2D() {\n\t}", "public Viewer() {\r\n\t\tzoom = DEFAULT_ZOOM;\r\n\t\tisWireframe = false;\r\n\t\tisAxes = true;\r\n\t\tnextRotationAngle = 0;\r\n\t\tnextRotationAxis = null;\r\n\t\trotationMatrix = null;\r\n\t\tscreenWidth = 0;\r\n\t\tscreenHeight = 0;\r\n\t}", "public void raycast(VrState state);", "private Ray constructRefractedRay(Vector n, Point3D p, Ray l) {\r\n\t\treturn new Ray(p, l.get_dir(), n);\r\n\t}", "public Ray(Point origin, Vector direction) throws NullPointerException {\n\t\tif (origin == null)\n\t\t\tthrow new NullPointerException(\"the given origin is null!\");\n\t\tif (direction == null)\n\t\t\tthrow new NullPointerException(\"the given direction is null!\");\n\t\tthis.origin = origin;\n\t\tthis.direction = direction;\n\t}", "public ADSR()\n\t{\n\t\tthis(1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 0.0f);\n\t}", "public Astrocylinders() {\r\n\t\tsuper(CompartmentType.ASTROCYLINDERS.numParams);\r\n\t}", "public Ray3D(Vector start, Vector direction) {\n if(direction.magnitude() != 1) {\n direction = direction.normalize();\n }\n this.start = new Vector(start.getX(), start.getY(), start.getZ(), 1);\n this.direction = new Vector(direction.getX(), direction.getY(), direction.getZ(), 0);\n }", "private Ray constructReflectedRay(Vector n, Point3D p, Ray l) { // hish\r\n\t\tVector _n = n;// normal at point\r\n\t\tVector _v = l.get_dir(); // direction of vector camera ->geometry\r\n\t\tdouble vn = _v.dotProduct(_n);\r\n\t\tif (vn == 0)\r\n\t\t\treturn null;\r\n\r\n\t\tVector _r = _v.add(_n.scale(-2 * vn));\r\n\t\treturn new Ray(p, _r, _n);\r\n\t}", "public RenderSystem() {\n super(SystemType.RENDER);\n bufferBuffer =\n new MasterBuffer(\n voide.resources.Resources\n .get()\n .getResource(\"voide.packed_texture\", Texture.class)\n .getTextureId()\n );\n master =\n new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT);\n }", "public ColorRenderer() {\r\n\t}", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "public Color ray_trace(Ray ray) {\r\n int index = -1;\r\n float t = Float.MAX_VALUE;\r\n \r\n for(int i = 0; i < spheres.size(); i++) {\r\n float xd, yd, zd, xo, yo, zo, xc, yc, zc, rc, A, B, C, disc, t0, t1;\r\n \r\n xd = ray.getDirection().getX();\r\n yd = ray.getDirection().getY();\r\n zd = ray.getDirection().getZ();\r\n xo = ray.getOrigin().getX();\r\n yo = ray.getOrigin().getY();\r\n zo = ray.getOrigin().getZ();\r\n xc = spheres.get(i).getCenter().getX();\r\n yc = spheres.get(i).getCenter().getY();\r\n zc = spheres.get(i).getCenter().getZ();\r\n rc = spheres.get(i).getRadius();\r\n \r\n A = xd*xd + yd*yd + zd*zd;\r\n B = 2*(xd*(xo-xc) + yd*(yo-yc) + zd*(zo-zc));\r\n C = (xo-xc)*(xo-xc) + (yo-yc)*(yo-yc) + (zo-zc)*(zo-zc) - rc*rc;\r\n \r\n disc = B*B - (4*A*C);\r\n \r\n if(disc < 0) {\r\n continue;\r\n }\r\n\r\n if(disc == 0) {\r\n t0 = -B/(2*A);\r\n if(t0 < t && t0 > 0) {\r\n t=t0;\r\n index = i;\r\n }\r\n } else {\r\n t0 = (-B + (float) Math.sqrt(disc))/(2*A);\r\n t1 = (-B - (float) Math.sqrt(disc))/(2*A);\r\n\r\n if( t0 > t1) {\r\n float flip = t0;\r\n t0 = t1;\r\n t1 = flip;\r\n }\r\n\r\n if(t1 < 0) {\r\n continue;\r\n }\r\n\r\n if(t0 < 0 && t1 < t) {\r\n t = t1;\r\n index = i;\r\n } else if(t0 > 0 && t0 < t) {\r\n t = t0;\r\n index = i;\r\n }\r\n }\r\n }// end of for loop\r\n if(index < 0) {\r\n return background;\r\n } else {\r\n Point intersect = (ray.getDirection().const_mult(t)).point_add(window.getEye());\r\n return shade_ray(index, intersect);\r\n } \r\n }", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }", "public FractalTrace(GeglFilter parent)\n {\n super(parent, \"gegl:fractal-trace\");\n }", "public Sphere(){\n\t\tradius = 128;\n\t\tlightScale = 1;\n\t\tambientLight = 0.3;\t\t\t// Amount of ambient light\n\t\tdiffuseLight = 0.7;\t\t\t// Amount of diffuse light\n\t\tlightSource = new double[]{0, 0, 128};\t// Place light 128 units away from origin\n\t}", "public FractalTrace(GeglNode container)\n {\n super(container, \"gegl:fractal-trace\");\n }", "private Ray constructReflectedRay(Point3D point, Ray inRay, Vector n) {\n Vector v = inRay.getDir();\n /**If crossProduct with v from camera to n normal=0\n * so the camera eny way will not see the color because the ray goes to the side*/\n double vn = v.dotProduct(n);\n if (vn == 0) {\n return null;\n }\n /**will calculate the r*/\n Vector r = v.subtract(n.scale(2 * vn)); //𝒓=𝒗−𝟐∙𝒗∙𝒏∙𝒏\n return new Ray(point, r, n);\n }", "public Object3D() {\n objectVectors = new ArrayList<>();\n linesToDraw = new ArrayList<>();\n }", "public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}", "public Hit(double t, Ray ray, Geometry geo){\n if(ray == null){\n throw new IllegalArgumentException(\"ray must not be null\");\n }\n if(geo == null){\n throw new IllegalArgumentException(\"geo must not be null\");\n }\n \n this.t = t;\n this.ray = ray;\n this.geo = geo;\n \n }", "@Action\n public void addRay() {\n Point2D p1 = randomPoint(), p2 = randomPoint();\n TwoPointGraphic ag = new TwoPointGraphic(p1, p2, MarkerRenderer.getInstance());\n MarkerRendererToClip rend = new MarkerRendererToClip();\n rend.setRayRenderer(new ArrowPathRenderer(ArrowLocation.END));\n ag.getStartGraphic().setRenderer(rend);\n ag.setDefaultTooltip(\"<html><b>Ray</b>: <i>\" + p1 + \", \" + p2 + \"</i>\");\n ag.setDragEnabled(true);\n root1.addGraphic(ag); \n }", "private Ray constructRefractedRay(Point3D point, Ray inRay, Vector n) {\n return new Ray(point, inRay.getDir(), n);\n }", "public RayTrajectoryHyperboloid(String description, Vector3D startPoint, double startTime, Vector3D axisDirection, double hyperboloidAngle, double waistRadius, int numberOfRays, double rayRadius, SurfaceProperty surfaceProperty, int maxTraceLevel, SceneObject parent, Studio studio)\n\t{\n\t\tsuper(description, parent, studio);\n\t\t\n\t\tthis.startPoint = startPoint;\n\t\tthis.startTime = startTime;\n\t\tthis.axisDirection = axisDirection.getNormalised();\n\t\tthis.hyperboloidAngle = hyperboloidAngle;\n\t\tthis.waistRadius = waistRadius;\n\t\tthis.numberOfRays = numberOfRays;\n\t\tthis.rayRadius = rayRadius;\n\t\tthis.surfaceProperty = surfaceProperty;\n\t\tthis.maxTraceLevel = maxTraceLevel;\n\t\t\n\t\taddRayTrajectories();\n\t}", "public Renderer() {\n this.addGLEventListener(this);\n }", "public Sphere(Point3D c, double r)\r\n\t{\r\n\t\tsuper(r);\r\n\t\t_center = c;\r\n\t}", "public LiteRenderer() {\n LOGGER.fine(\"creating new lite renderer\");\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public void init(RenderContext r)\n\t\t{\n\t\t\trenderContext = r;\n\t\t\trenderContext.setSceneManager(sceneManager);\n\t\n\t\t\t// Register a timer task\n\t\t Timer timer = new Timer();\n\t\t angle = 0.01f;\n\t\t timer.scheduleAtFixedRate(new AnimationTask(), 0, 40);\n\t\t}", "public static void main(String[] args) {\r\n\r\n\t\tRayTracerViewer.show(getIRayTracerProducer(), new Point3D(10, 0, 0), new Point3D(0, 0, 0),\r\n\t\t\t\tnew Point3D(0, 0, 10), 20, 20);\r\n\r\n\t}", "public VMKernel()\n {\n super();\n }", "public DiscMesh() {\n this(1f, 25);\n }", "private CircleSampler() {\n\t}", "private Ray constructRefractedRay(Geometry geometry, Point3D point, Ray inRay){\n Vector N = geometry.getNormal(point);\n Vector direct = inRay.get_direction();\n double cosOi = N.dotProduct(direct);\n if (cosOi < 0) {\n N.scale(-2);\n }\n else{\n N.scale(2);\n }\n Point3D pointEps = new Point3D(point);\n pointEps.add(N);\n return new Ray(pointEps, direct);\n }", "public static void main(String[] args) {\r\n\r\n try {\r\n\r\n RayTracer tracer = new RayTracer();\r\n\r\n // Default values:\r\n tracer.imageWidth = 500;\r\n tracer.imageHeight = 500;\r\n\r\n if (args.length < 2)\r\n throw new RayTracerException(\"Not enough arguments provided. Please specify an input scene file and an output image file for rendering.\");\r\n\r\n String sceneFileName = args[0];\r\n String outputFileName = args[1];\r\n\r\n if (args.length > 3)\r\n {\r\n tracer.imageWidth = Integer.parseInt(args[2]);\r\n tracer.imageHeight = Integer.parseInt(args[3]);\r\n }\r\n\r\n // Parse scene file:\r\n tracer.parseScene(sceneFileName);\r\n\r\n // Render scene:\r\n tracer.renderScene(outputFileName);\r\n\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n } catch (RayTracerException e) {\r\n System.out.println(e.getMessage());\r\n } /*catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }*/\r\n }", "public Cylinder() {\n\t\tthis(1.0);\n\t}", "public Ray(double d, double theta) {\n setOrigin(50, 200);\n setMatrix(d, theta);\n }", "public ViewerPosition3D()\n {\n }", "private Vec3 trace(Ray ray) {\n\t\tSphere sphere = null;\n\n\t\tfor (int i = 0; i < spheres.size(); i++) {\n\t\t\tif (spheres.get(i).intersect(ray)) {\n\t\t\t\tsphere = spheres.get(i);\n\t\t\t}\n\t\t}\n\n\t\tif (sphere == null) {\n\t\t\treturn new Vec3(0.0f); // Background color.\n\t\t}\n\n\t\tVec3 p = ray.getIntersection(); // Intersection point.\n\t\tVec3 n = sphere.normal(p); // Normal at intersection.\n\n\t\treturn light.phong(sphere, p, n);\n\t}", "public Scene() {}", "public StartAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n renderer = initRenderer;\r\n }", "private Camera() {\n viewport = new Rectangle();\n dirtyAreas = new ArrayList<Rectangle>();\n renderedAreas = new ArrayList<Rectangle>();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }", "public Emrld() {\n super(\n new Color(211, 242, 163),\n new Color(151, 225, 150),\n new Color(108, 192, 139),\n new Color(76, 155, 130),\n new Color(33, 122, 121),\n new Color(16, 89, 101),\n new Color(7, 64, 80)\n\n );\n\n\n }", "public Ray(double x, double y, double theta) {\n setOrigin(x, y);\n setMatrix(y, theta);\n }", "public AbstractDemo(String title) {\n this.title = title;\n pressed = new HashSet<Integer>();\n foreground = Color.black;\n background = Color.white;\n bodyColor = Color.black;\n rayColor = Color.red;\n\n BruteForce bf = new BruteForce();\n ConfigurableBodyOverlapper overlapper = new ConfigurableBodyOverlapper();\n overlapper.registerDefaults();\n space = new Space(bf, overlapper);\n\n ConfigurableRayBodyIntersector intersector = new ConfigurableRayBodyIntersector();\n intersector.registerDefaults();\n space.equipForRays(bf, intersector);\n }", "FractalTree() {\r\n }", "@Override\n protected void initialize() {\n rightTarget = this.distanceInches + Robot.driveTrain.getRightEncoderDistanceInches();\n leftTarget = this.distanceInches + Robot.driveTrain.getLeftEncoderDistanceInches();\n Robot.driveTrain.tankDrive(0, 0);\n this.direction = distanceInches > 0;\n turnPID.resetPID();\n }", "public interface Ray3 extends Path3, Serializable, Cloneable {\r\n\r\n /**\r\n * Creates a new ray from 3 coordinates for the origin point and 3 coordinates for the direction vector.\r\n *\r\n * @param xo the x-coordinate of the origin\r\n * @param yo the y-coordinate of the origin\r\n * @param zo the z-coordinate of the origin\r\n * @param xd the x-coordinate of the direction\r\n * @param yd the y-coordinate of the direction\r\n * @param zd the z-coordinate of the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(double xo, double yo, double zo, double xd, double yd, double zd) {\r\n return new Ray3Impl(xo, yo, zo, xd, yd, zd);\r\n }\r\n\r\n /**\r\n * Creates a new ray from an origin point and a direction vector.\r\n *\r\n * @param origin the origin\r\n * @param dir the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n * The origin will be a copy of the point {@code from}.\r\n * The directional vector will be a new vector from {@code from} to {@code to}.\r\n *\r\n * @param from the first point\r\n * @param to the second point\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(Vector3 from, Vector3 to) {\r\n return fromOD(from, Vector3.between(from, to));\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n *\r\n * @param ox the origin x\r\n * @param oy the origin x\r\n * @param oz the origin x\r\n * @param tx the target x\r\n * @param ty the target x\r\n * @param tz the target x\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(double ox, double oy, double oz, double tx, double ty, double tz) {\r\n return fromOD(ox, oy, oz, tx-ox, ty-oy, tz-oz);\r\n }\r\n\r\n // GETTERS\r\n\r\n /**\r\n * Returns the x-coordinate of the origin of this ray.\r\n *\r\n * @return the x-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgX();\r\n\r\n /**\r\n * Returns the y-coordinate of the origin of this ray.\r\n *\r\n * @return the y-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgY();\r\n\r\n /**\r\n * Returns the z-coordinate of the origin of this ray.\r\n *\r\n * @return the z-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgZ();\r\n\r\n /**\r\n * Returns the x-coordinate of the direction of this ray.\r\n *\r\n * @return the x-coordinate of the direction of this ray\r\n */\r\n abstract double getDirX();\r\n\r\n /**\r\n * Returns the y-coordinate of the direction of this ray.\r\n *\r\n * @return the y-coordinate of the direction of this ray\r\n */\r\n abstract double getDirY();\r\n\r\n /**\r\n * Returns the z-coordinate of the direction of this ray.\r\n *\r\n * @return the z-coordinate of the direction of this ray\r\n */\r\n abstract double getDirZ();\r\n\r\n /**\r\n * Returns the length of this ray.\r\n *\r\n * @return the length of this ray\r\n */\r\n abstract double getLength();\r\n\r\n /**\r\n * Returns the squared length of this ray.\r\n *\r\n * @return the squared length of this ray\r\n */\r\n abstract double getLengthSquared();\r\n \r\n /**\r\n * Returns the origin of this ray in a new vector.\r\n *\r\n * @return the origin of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }\r\n \r\n /**\r\n * Returns the direction of this ray in a new vector.\r\n *\r\n * @return the direction of this ray in a new vector\r\n */\r\n default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }\r\n \r\n default AxisAlignedBB getBoundaries() {\r\n return AxisAlignedBB.between(getOrigin(), getEnd());\r\n }\r\n\r\n // PATH IMPL\r\n \r\n /**\r\n * Returns the end of this ray in a new vector. This is equal to the sum of the origin and direction of the vector.\r\n *\r\n * @return the end of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getEnd() {\r\n return Vector3.fromXYZ(getOrgX() + getDirX(), getOrgY() + getDirY(), getOrgZ() + getDirZ());\r\n }\r\n\r\n @Override\r\n default Vector3[] getControlPoints() {\r\n return new Vector3[] {getOrigin(), getEnd()};\r\n }\r\n\r\n // CHECKERS\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(double x, double y, double z) {\r\n return Vector3.between(getOrgX(), getOrgY(), getOrgZ(), x, y, z).isMultipleOf(getDirection());\r\n }\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param point the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(Vector3 point) {\r\n return contains(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Returns whether this ray is equal to another ray. This condition is true\r\n * if both origin and direction are equal.\r\n *\r\n * @param ray the ray\r\n * @return whether this ray is equal to the ray\r\n */\r\n default boolean equals(Ray3 ray) {\r\n return\r\n getOrigin().equals(ray.getOrigin()) &&\r\n getDirection().isMultipleOf(ray.getDirection());\r\n }\r\n\r\n // SETTERS\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n */\r\n abstract void setOrigin(double x, double y, double z);\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param point the point\r\n */\r\n default void setOrigin(Vector3 point) {\r\n setOrigin(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param x the x-coordinate of the vector\r\n * @param y the y-coordinate of the vector\r\n * @param z the z-coordinate of the vector\r\n */\r\n abstract void setDirection(double x, double y, double z);\r\n \r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param v the vector\r\n */\r\n default void setDirection(Vector3 v) {\r\n setDirection(v.getX(), v.getY(), v.getZ());\r\n }\r\n\r\n /**\r\n * Sets the length of this ray to a given length.\r\n *\r\n * @param t the new hypot\r\n */\r\n default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }\r\n\r\n default void normalize() {\r\n setLength(1);\r\n }\r\n \r\n //TRANSFORMATIONS\r\n \r\n default void scaleOrigin(double x, double y, double z) {\r\n setDirection(getOrgX()*x, getOrgY()*y, getOrgZ()*z);\r\n }\r\n \r\n default void scaleDirection(double x, double y, double z) {\r\n setDirection(getDirX()*x, getDirY()*y, getDirZ()*z);\r\n }\r\n \r\n default void scaleOrigin(double factor) {\r\n scaleOrigin(factor, factor, factor);\r\n }\r\n \r\n default void scaleDirection(double factor) {\r\n scaleDirection(factor, factor, factor);\r\n }\r\n \r\n default void scale(double x, double y, double z) {\r\n scaleOrigin(x, y, z);\r\n scaleDirection(x, y, z);\r\n }\r\n \r\n default void scale(double factor) {\r\n scale(factor, factor, factor);\r\n }\r\n \r\n /**\r\n * Translates the ray origin by a given amount on each axis.\r\n *\r\n * @param x the x-coordinate\r\n * @param y the y-coordinate\r\n * @param z the z-coordinate\r\n */\r\n abstract void translate(double x, double y, double z);\r\n\r\n // MISC\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @param interval the interval of iteration\r\n * @return a new interval iterator\r\n */\r\n default Iterator<Vector3> intervalIterator(double interval) {\r\n return new IntervalIterator(this, interval);\r\n }\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @return a new interval iterator\r\n */\r\n default Iterator<BlockVector> blockIntervalIterator() {\r\n return new BlockIntervalIterator(this);\r\n }\r\n\r\n /**\r\n * Returns a given amount of equally distributed points on this ray.\r\n *\r\n * @param amount the amount\r\n * @return an array containing points on this ray\r\n */\r\n @Override\r\n default Vector3[] getPoints(int amount) {\r\n if (amount < 0) throw new IllegalArgumentException(\"amount < 0\");\r\n if (amount == 0) return new Vector3[0];\r\n if (amount == 1) return new Vector3[] {getOrigin()};\r\n if (amount == 2) return new Vector3[] {getOrigin(), getEnd()};\r\n\r\n int t = amount - 1, i = 0;\r\n Vector3[] result = new Vector3[amount];\r\n\r\n Iterator<Vector3> iter = intervalIterator(getLengthSquared() / t*t);\r\n while (iter.hasNext())\r\n result[i++] = iter.next();\r\n\r\n return result;\r\n }\r\n\r\n abstract Ray3 clone();\r\n\r\n}", "private DMarlinRenderingEngine() {\n }", "public PlotDrawer() {\n\n\t}", "private RadiusSector() {}", "protected void init() {\n/* 35 */ super.init();\n/* */ \n/* 37 */ this.mRenderer = new BubbleChartRenderer(this, this.mAnimator, this.mViewPortHandler);\n/* */ }", "@Override\n public void initialize() {\n\n distanceTraveled = 0.0;\n timer.start();\n startTime = timer.get();\n\n leftEncoderStart = drivetrain.getMasterLeftEncoderPosition();\n rightEncoderStart = drivetrain.getMasterRightEncoderPosition();\n\n angleCorrection = 0;\n angleError = 0;\n speedCorrection = 1;\n\n shifter.shiftUp();\n\n }", "public FieldLineNode(){\n\t\tthis(1, new Vector3f(0,1,0));\n\t}", "public Light(double xPos, double yPos, double zPos, double r, double g, double b, int radPix){\n pos[0] = xPos;\n pos[1] = yPos;\n pos[2] = zPos;\n ir = (float)r;\n ig = (float)g;\n ib = (float)b;\n radiusPix = radPix;\n }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "public Sphere(final Material m) {\n super(m);\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public BaseShadowSystem (NearFarAnalyzer nearFarAnalyzer, ShadowMapAllocator allocator,\n\t\tDirectionalAnalyzer directionalAnalyzer, LightFilter lightFilter) {\n\t\tthis.nearFarAnalyzer = nearFarAnalyzer;\n\t\tthis.allocator = allocator;\n\t\tthis.directionalAnalyzer = directionalAnalyzer;\n\t\tthis.lightFilter = lightFilter;\n\t}", "protected void initialize() {\n Robot.limelight.setPipeline(0.0);\n }", "public Camera() {\r\n this(1, 1);\r\n }", "public VMKernel() {\n }", "private void setUp2SpheresScene() {\n camera = new Camera(\n new Point3D(0, 0, 9),\n new Point3D(0,0,0),\n new Point3D(0,1,0),\n Math.PI * 0.5, width, height\n );\n camera.moveForward(1.0);\n\n exposure = 1.0;\n ambientLight = new LightIntensity();\n ambientLight.red = 0.2;\n ambientLight.green = 0.2;\n ambientLight.blue = 0.2;\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.7, .7, .3),\n new RectFace(\n new Point3D(-1.1, 9.99, -5.0),\n new Point3D(1.1, 9.99, -5.0),\n new Point3D(-1.1, 9.99, -6.1)\n )\n ));\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.4, .3, .7),\n new RectFace(\n new Point3D(-4.1, 2.99, -5.0),\n new Point3D(-2.9, 2.99, -5.0),\n new Point3D(-4.1, 2.99, -6.1)\n )\n ));\n\n Material reflective = new Material();\n reflective.diffuseReflectivity.red = 0.2;\n reflective.diffuseReflectivity.green = 0.2;\n reflective.diffuseReflectivity.blue = 0.2;\n reflective.directReflectivity = LightIntensity.makeUniformRGB(0.5);\n\n Material glass = new Material();\n glass.diffuseReflectivity.red = 0.0;\n glass.diffuseReflectivity.green = 0.0;\n glass.diffuseReflectivity.blue = 0.0;\n glass.passthroughIntensity.red = 0.9;\n glass.passthroughIntensity.green = 0.9;\n glass.passthroughIntensity.blue = 0.9;\n glass.directReflectivity = LightIntensity.makeUniformRGB(0.1);\n glass.refractionIndex = 1.33;\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-5, -3, -5), 2.5), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(5, -3, -5), 2.5), new Material()));\n\n Box boundingBox = new Box(\n new Point3D(-10,10, 10),\n new Point3D(-10,10, -10),\n new Point3D(10,10, 10),\n new Point3D(-10,-10, 10)\n );\n\n Material leftWallMaterial = new Material();\n leftWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, 0.3);\n\n Material rightWallMaterial = new Material();\n rightWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, .7);\n\n Material frontWallMaterial = new Material();\n frontWallMaterial.diffuseReflectivity = new LightIntensity(0.3,0.3, 0.3);\n\n Material backWallMaterial = new Material();\n backWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, 0.3);\n\n Material topWallMaterial = new Material();\n topWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n\n Material bottomWallMaterial = new Material();\n bottomWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n\n try {\n bottomWallMaterial.texture = ImageIO.read(new File(\"C:\\\\Class_work\\\\checkerboard.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n solids.add(new RectFace.FaceSolid(boundingBox.left, leftWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.right, rightWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.front, frontWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.back, backWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.top, topWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.bottom, bottomWallMaterial));\n }", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "private Ray constructReflectedRay(Vector n, Point3D point, Ray ray) {\n Vector v = ray.getDirection();\n Vector r = null;\n try {\n r = v.subtract(n.scale(v.dotProduct(n)).scale(2)).normalized();\n }\n catch (Exception e) {\n return null;\n }\n return new Ray(point, r, n);\n }", "public ViewfinderView(Context context, AttributeSet attrs) {\n super(context, attrs);\n paint = new Paint(Paint.ANTI_ALIAS_FLAG);\n laserCornerLength = getResources().getDimension(R.dimen.laserCornerLength);\n laserCornerWidth = getResources().getDimension(R.dimen.laserCornerWidth);\n drawTextSize = getResources().getDimension(R.dimen.scanTipTextSize);\n drawTextTop = getResources().getDimension(R.dimen.scanTipTextMargin);\n LaserFrameWidth = getResources().getDimension(R.dimen.laserBoundWidth);\n }", "private D3() {\n super(3);\n }", "protected void initialize() {\n\t\tL.ogInit(this);\n\t\t_timesRumbled = 0;\n\t}", "public Sphere (final Material material) {\n super(material);\n\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public Drive() {\r\n leftFrontDrive = new Talon(Constants.DRIVE_LEFT_FRONT);\r\n leftRearDrive = new Talon(Constants.DRIVE_LEFT_REAR);\r\n rightFrontDrive = new Talon(Constants.DRIVE_RIGHT_FRONT);\r\n rightRearDrive = new Talon(Constants.DRIVE_RIGHT_REAR);\r\n \r\n robotDrive = new RobotDrive(\r\n leftFrontDrive,\r\n leftRearDrive, \r\n rightFrontDrive, \r\n rightRearDrive);\r\n \r\n driveDirection = 1.0;\r\n \r\n arcadeYRamp = new CarbonRamp();\r\n arcadeXRamp = new CarbonRamp();\r\n tankLeftRamp = new CarbonRamp();\r\n tankRightRamp = new CarbonRamp();\r\n \r\n ui = CarbonUI.getUI();\r\n }", "public Livre() {\r\n super();\r\n }", "public Wander() \t\r\n\t{ \r\n\t\tm_pos = new Point2d(30,0); \r\n\t\tm_r = 20; \r\n\t\tm_influence = 1; \r\n\t\tm_seekPoint = new Point2d(0,0);\r\n\t\tm_rate = 10;\r\n\t\tinit();\r\n\t}", "public BufferVisualization() {\n initComponents();\n }", "public LarvaSkeleton() {\n\n }", "private void constructor(){\n\t\tdp_scale = getResources().getDisplayMetrics().density;\n\t\t\n\t\tfloat font_size = 16;\n\t\t\n\t\t// Initialize paints\n\t\tpaint = new Paint();\n\t\tpaint.setColor(Color.GRAY);\n\t\tpaint.setAntiAlias(true);\n\t\tpaint.setStrokeWidth(1);\n\t\t\n\t\tpaint.setTextSize(font_size*dp_scale);\n\t\ttext_paint = new TextPaint(paint);\n\t\t\n\t\t// setup listeners\n\t\t/*\n\t\tsetOnTouchListener(new OnTouchListener() {\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\tswitch(arg1.getAction()){\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\tentry.select();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tsetOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tactivity.view_entry(entry);\n\t\t\t}\n\t\t});\n\t\t\n\t\tif (camera == null){\n\t\t\tcamera = ((BitmapDrawable)this.getResources().getDrawable(R.drawable.camera)).getBitmap();\n\t\t}\n\t}", "public SpriteRenderer() {\n this(1000);\n }", "@Override\n public void setup() {\n strokeWeight(1);\n smooth();\n textMode(SHAPE);\n origin = new PVector(width / 2, height / 2,0);\n size = 2000;\n zoom = 1.5f;\n rX = -0.51f;\n rY = -0.65f;\n arm = new Arm(this);\n ik = new InverseK(arm.getL());\n angles = new double[]{0,0,0};\n }", "@Override\r\n\tpublic String toString(\r\n\t) {\r\n\t\treturn( \"Ray: \" + mDirection + \", Origin: \" + mOrigin );\r\n\t}", "public String toString()\n {\n return \"Ray Origin: \" + origin + \"; Direction: \" + direction + \" T: \" + VSDK.formatDouble(t);\n }" ]
[ "0.77307385", "0.7149889", "0.70936435", "0.70936435", "0.6642516", "0.6400224", "0.6141719", "0.6121709", "0.6099924", "0.60366607", "0.60300475", "0.6026968", "0.59497464", "0.5905856", "0.58123994", "0.5787121", "0.5787121", "0.5758808", "0.5756933", "0.56944233", "0.5687321", "0.5640293", "0.56069994", "0.5573397", "0.554782", "0.5534995", "0.54972863", "0.5494595", "0.5477415", "0.54765064", "0.5428436", "0.5418837", "0.5409538", "0.54083455", "0.5403924", "0.53968966", "0.53604686", "0.5332095", "0.5326404", "0.53235567", "0.53202826", "0.5314909", "0.5304971", "0.5302478", "0.5296353", "0.5284364", "0.5276714", "0.5272399", "0.5272239", "0.52596223", "0.52420944", "0.52319133", "0.5230362", "0.5218686", "0.5212848", "0.52128285", "0.5199482", "0.51861787", "0.51854306", "0.51845115", "0.51799184", "0.5169343", "0.51668537", "0.5166105", "0.51547587", "0.5153951", "0.51518756", "0.514882", "0.512848", "0.51223373", "0.51160854", "0.51122415", "0.51038647", "0.509778", "0.5097212", "0.5096848", "0.50916535", "0.50895315", "0.5085497", "0.50842744", "0.50823534", "0.5064072", "0.5063232", "0.5054695", "0.50465417", "0.50463235", "0.5041075", "0.5029937", "0.50268793", "0.50159353", "0.50143754", "0.5010059", "0.5000477", "0.49994335", "0.49990556", "0.4998508", "0.49972972", "0.49938938", "0.499271", "0.49912554", "0.49895456" ]
0.0
-1
Return indication as to whether or not the particular renderer uses normal vectors as part of its implementation.
public boolean usesNormals() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean isOmitNorms();", "boolean isAlwaysvectorfont();", "boolean hasNormal();", "@java.lang.Override\n public boolean hasNormal() {\n return normal_ != null;\n }", "boolean getNormal();", "public boolean isNormal()\n {\n return Native.fpaIsNumeralNormal(getContext().nCtx(), getNativeObject());\n }", "public boolean isVector() {\n return mat.getNumRows() == 1 || mat.getNumCols() == 1;\n }", "public boolean isSurfaceWorld()\n {\n return false;\n }", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "public boolean isSurfaceWorld() {\n\t\treturn false;\n\t}", "public boolean useNormsTracer() {\n\t\treturn true;\n\t}", "public boolean isNormal()\n\t{\n\t\treturn !( isBold || isItalic );\n\t}", "public boolean hasNormals() {\n if (normals != null) {\n return normals.length > 0;\n }\n return false;\n }", "public boolean renderAsNormalBlock()\n\t {\n\t return false;\n\t }", "protected void setForceNormalVector() {\n\t\tvn = forceNormalVector(v1, v2);\n\t}", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "@java.lang.Override\n public boolean hasVector2Value() {\n return typeCase_ == 6;\n }", "public boolean isNormal() {\r\n\t\ttry {\r\n\t\t\treturn \"NORMAL\".equals(getOperationMode());\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean getNormal() {\n return normal_;\n }", "@java.lang.Override\n public boolean hasVector2Value() {\n return typeCase_ == 6;\n }", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock()\n {\n return false;\n }", "public boolean renderAsNormalBlock()\r\n {\r\n return false;\r\n }", "public boolean getNormal() {\n return normal_;\n }", "public boolean renderAsNormalBlock(){\r\n return false;\r\n }", "public boolean hasNormal() {\n return normalBuilder_ != null || normal_ != null;\n }", "@java.lang.Override\n public boolean hasVector3Value() {\n return typeCase_ == 8;\n }", "boolean hasVector2Value();", "float[][] getCameraVectorsNormal(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vectors[j*resX+i]=normalize(vectors[j*resX+i]);\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }", "public boolean hasINVALIDNORMALORDERS() {\n return fieldSetFlags()[9];\n }", "@java.lang.Override\n public boolean hasVector3Value() {\n return typeCase_ == 8;\n }", "public boolean isSubnormal()\n {\n return Native.fpaIsNumeralSubnormal(getContext().nCtx(), getNativeObject());\n }", "public boolean isVertical(){\n return !isHorizontal();\n }", "public boolean isTranslationPainting ()\r\n {\r\n return constants.translationPainting.getValue();\r\n }", "@Override\n Vector calculate_normal_vector(Point hitPoint, int surface) {\n Point origin = new Point(0, 0, 0);\n return getInternalTransformer().substraction_to_vector(hitPoint, origin);\n }", "@Override\n\t@SideOnly(Side.CLIENT)\n\tpublic boolean isInRangeToRenderDist(double p_70112_1_)\n\t{\n\t\tdouble d1 = this.getEntityBoundingBox().getAverageEdgeLength() * 4.0D;\n\t\td1 *= 64.0D;\n\t\treturn p_70112_1_ < (d1 * d1);\n\t}", "@Override\n\tpublic final boolean renderAsNormalBlock()\n\t{\n\t\treturn false;\n\t}", "public boolean isNormalSize() {\n\t\treturn isLenWithin(5, 10);\n\t}", "@Override\n public boolean isTransforming() {\n return super.isTransforming() || desiredWorldPosition != null;\n }", "public boolean isNormal() {\n\t\tif (decideNorm)\n\t\t\treturn isNorm;\n\t\t// normal form means all children of tree are singletons\n\t\tisNorm = true;\n\t\tdecideNorm = false;\n\t\tfor (int i = 0; i < numChildren; i++)\n\t\t\tif (children[i].numChildren > 0) {\n\t\t\t\tisNorm = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\treturn isNorm;\n\t}", "public void calculateNormals() {\n // TODO!\n }", "public boolean renderAsNormalBlock()\r\n/* 166: */ {\r\n/* 167:184 */ return false;\r\n/* 168: */ }", "public boolean isVertical() {\n\t\tfinal Double slope = getSlope();\n\t\treturn slope.equals( NaN );\n\t}", "@Test\n void getNormal() {\n Plane pl = new Plane(new Point3D(-1,2,1), new Point3D(0,-3,2), new Point3D(1,1,-4)\n );\n\n assertEquals(new Vector(26,7,9).normalize(),\n pl.getNormal(),\n \"Bad normal to trinagle\");\n\n }", "public void unitize() {\n \t\tdouble len = this.len();\n \t\t// avoid division by zero\n\t\tif (len<vecPrecision) return;\n \t\t// don't unitize roughly unit vectors\n \t\tif (Math.abs(len-1)<vecPrecision) return;\n \t\t// divide dimensions by length to unitize\n \t\tfloat invlen = (float) (1.0 / len);\n \t\tthis.x *= invlen;\n \t\tthis.y *= invlen;\n \t\tthis.z *= invlen;\n \t}", "public Vector normalize ( );", "public float[] getHitNormal();", "public boolean isRenderable() {\n return vboIdList != null;\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getNormal() {\n return normal_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : normal_;\n }", "boolean hasVector3Value();", "public boolean hasUniformLineMetrics() {\n return false; // REMIND always safe, but prevents caller optimize\n }", "public boolean needsVtable() {\n return !isStatic();\n }", "public boolean isUntrustedVirtualDisplay() {\n return this.mDisplay.getType() == 5 && this.mDisplay.getOwnerUid() != 1000;\n }", "public boolean hasMajorVisualEffect() {\n return this.hasMajorVisualEffect;\n }", "public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }", "public boolean isDirect() {\n\t\treturn !isVirtual();\n\t}", "public boolean atVelocity() {\n return false;\n }", "public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "private boolean isCustomRenderer(ModelBlock p_177587_1_) {\n/* 741 */ if (p_177587_1_ == null)\n/* */ {\n/* 743 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 747 */ ModelBlock var2 = p_177587_1_.getRootModel();\n/* 748 */ return (var2 == MODEL_ENTITY);\n/* */ }", "public final static boolean getNormalizationState()\n { return(activeNormalization != null); }", "public boolean isInvertible() {\r\n\t\t// If the\r\n\t\t// determinant is near enough to zero then inverse transform operations\r\n\t\t// might not carry enough precision to produce meaningful results. so we\r\n\t\t// are using EPSILON\r\n\t\treturn (Math.abs(getDeterminant()) > EPSILON);\r\n\t}", "@DISPID(1611006028) //= 0x6006004c. The runtime will prefer the VTID if present\n @VTID(103)\n boolean onlyCurrentSolidSetInGeometry();", "@DISPID(1611006024) //= 0x60060048. The runtime will prefer the VTID if present\n @VTID(99)\n boolean onlyCurrentOperatedSolidSetInGeometry();", "@Test\n void normalize() {\n\n Vector v = new Vector(1, 2, 3);\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n if (vCopy != vCopyNormalize)\n fail(\"ERROR: normalize() function creates a new vector\");\n if (!isZero(vCopyNormalize.length() - 1))\n fail(\"ERROR: normalize() result is not a unit vector\");\n Vector u = v.normalized();\n if (u == v)\n fail(\"ERROR: normalized() function does not create a new vector\");\n }", "public boolean isHardwareAccelerated() {\n\t\treturn false;\n\t}", "public boolean getHasVisualEffectObfuscated() {\n return this.hasVisualEffectObfuscated;\n }", "public boolean isFull3D()\r\n {\r\n return true;\r\n }", "public SbVec3f getNormal() { return worldNormal; }", "boolean usesVisualizationStyles();", "public float[] getNormals() {\r\n\t\treturn normals;\r\n\t}", "public boolean isVmotionSupported() {\r\n return vmotionSupported;\r\n }", "@Test //test normalize\n public void testNormalize() {\n double[] tempDoubleA = new double[]{3.1, 4.1};\n MyVector actualDoubleNorm = (new MyVector(tempDoubleA)).normalize();\n double normal = sqrt(3.1 * 3.1 + 4.1 * 4.1);\n MyVector expectDoubleNorm = new MyVector(new double[]{(3.1 / normal), (4.1 / normal)});\n\n assertTrue(actualDoubleNorm.equal(expectDoubleNorm), \"test int v mult int\");\n\n int[] tempIntA = new int[]{3, 4};\n MyVector actualIntNorm = (new MyVector(tempIntA)).normalize();\n MyVector expectIntNorm = new MyVector(new double[]{3 / (double) 5, 4 / (double) 5});\n assertTrue(actualIntNorm.equal(expectIntNorm), \"test int v mult int\");\n\n MyVector emptyNorm = EMPTYVECTOR.normalize();\n assertTrue(EMPTYVECTOR.equal(emptyNorm), \"test on empty vector normalization\");\n }", "public boolean isEnableBatchRendering()\n {\n return enableBatchRendering;\n }", "public boolean isCalibrated() {\n return ( clicked1!=null && clicked2!=null );\n }", "void normalizeSafe (Vector3f kVector)\r\n {\r\n set(kVector);\r\n normalizeSafe();\r\n }", "public boolean solid()\n {\n return false;\n }", "public Vector[] getNormals() {\n\t\treturn this.normals;\n\t}", "public boolean isHorizontalMode() throws PDFNetException {\n/* 627 */ return IsHorizontalMode(this.a);\n/* */ }", "public abstract Vector4fc zero();", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }", "@Override\n public boolean is2D()\n {\n return false;\n }", "public boolean isCheckingNormalization() {\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n if (ch instanceof NormalizationChecker) {\n return true;\n }\n }\n return false;\n }", "public boolean isUseGlobalRtlAttribute() {\n return getElement().isUseGlobalRtlAttribute();\n }", "public boolean isPerpendicular() {\n\t\tVector3D u1 = new Vector3D(A1, B1);\n\t\tVector3D u2 = new Vector3D(B1, C1);\n\t\treturn (u1.getX() * u2.getX() + u1.getY() * u2.getY() + u1.getZ() * u2.getZ()) == 0;\n\t}", "public boolean getNormalizationState();", "public abstract Vector4fc normalize(float length);", "protected boolean shouldUseVBOs(DrawContext dc)\n {\n return dc.getGLRuntimeCapabilities().isUseVertexBufferObject();\n }", "public boolean isUnsharedSwapVMotionSupported() {\r\n return unsharedSwapVMotionSupported;\r\n }", "public void normalise(Vector2 normVector) {\n\t\tposition.subtract(normVector);\n\t\tsetX(getX() - normVector.getX());\n\t\tsetY(getY() - normVector.getY());\n\t}", "@Override\n public boolean workaroundBySurfaceProcessing() {\n return isHuaweiMate20() || isHuaweiMate20Pro() || isHuaweiP40Lite();\n }", "public Vector2D unitVector()\n {\n if (this.getR() != 0)\n return new Vector2D(this.x / this.getR(), this.y / this.getR());\n return new Vector2D(0, 0);\n }", "public boolean isLunas() {\n return isLunas;\n }", "private static boolean isUnsafeVelocity(Vector vel) {\n/* 448 */ double x = vel.getX();\n/* 449 */ double y = vel.getY();\n/* 450 */ double z = vel.getZ();\n/* */ \n/* 452 */ if (x > 4.0D || x < -4.0D || y > 4.0D || y < -4.0D || z > 4.0D || z < -4.0D) {\n/* 453 */ return true;\n/* */ }\n/* */ \n/* 456 */ return false;\n/* */ }", "public boolean isInRangeToRenderDist(double distance) {\n/* 38 */ return (distance < 4096.0D);\n/* */ }", "@Override\n\tpublic void setOrientation(Vector o)\n\t{\n\t\tsuper.setOrientation(o);\n\t\tif (position != null && normal != null)\n\t\t{\n\t\t\toX = o.dup().norm();\n\t\t\toY = normal.cross(oX).norm();\n\t\t\toX = oY.cross(normal).norm();\n\t\t}\n\t}" ]
[ "0.65667796", "0.6550887", "0.62894386", "0.62079805", "0.60499537", "0.6038092", "0.60296303", "0.59169936", "0.5909858", "0.59082985", "0.57869506", "0.5765789", "0.5717202", "0.5711623", "0.56736517", "0.56573856", "0.56517106", "0.56485486", "0.56187993", "0.55951804", "0.5579022", "0.5579022", "0.5579022", "0.5579022", "0.5578118", "0.5547902", "0.5520373", "0.5493933", "0.5492823", "0.5444298", "0.54336905", "0.5428997", "0.54036844", "0.53968", "0.53801167", "0.53723425", "0.5361346", "0.53477836", "0.53401196", "0.5335384", "0.5312704", "0.5299667", "0.52970016", "0.5282518", "0.52788585", "0.52630436", "0.5258007", "0.52167076", "0.5184714", "0.51806086", "0.5174672", "0.5166718", "0.5158067", "0.5148148", "0.51476467", "0.51384926", "0.5133917", "0.5129976", "0.51243114", "0.51210046", "0.51090497", "0.5101085", "0.5099657", "0.5093804", "0.50897986", "0.5073508", "0.5073171", "0.50579196", "0.50547063", "0.5051919", "0.5047275", "0.5041872", "0.5036643", "0.502761", "0.5026801", "0.5024701", "0.50141555", "0.50066346", "0.50006324", "0.499648", "0.49846268", "0.4984339", "0.49801418", "0.4966142", "0.49595433", "0.4959016", "0.4957992", "0.4953459", "0.49457887", "0.49433866", "0.49420956", "0.49381936", "0.4931455", "0.49204266", "0.4917186", "0.4911888", "0.49053064", "0.48978293", "0.48931512", "0.48869315" ]
0.69051015
0
Specify the input volume to use for rendering. The image data stored in order of slice indices, each slice stored in rowmajor order. That is, slice z=0 is stored first, slice z=1 is stored next, and so on. In slice z=0, the y=0 row is stored first, the y=1 row is stored next, and so on.
public void setInput(byte[] acImageR, byte[] acImageG, byte[] acImageB, byte[] acImageA) { super.setInput(acImageR, acImageG, acImageB, acImageA); // Reset the intensity image which corresponds to the RGB channels // so that it can be recomputed. m_acImageI = null; // Input color values are scaled by alpha values representing opacity. for (int i = 0; i < acImageA.length; i++) { m_acImageR[i] = (byte) ( ( (int) (m_acImageR[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255); m_acImageG[i] = (byte) ( ( (int) (m_acImageG[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255); m_acImageB[i] = (byte) ( ( (int) (m_acImageB[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double volume()\n\t{\n\t\t\n\t\treturn width*height*depth;\n\t\t\n\t}", "public double volume() {\n\t\treturn this.iWidth * this.iLength * this.iDepth\r\n\t}", "double volume() {\n\treturn width*height*depth;\n}", "void setFluidContents(int volume);", "@Override\n public void display(GLAutoDrawable drawable) {\n if (ds == null) {\n return;\n }\n\n //VolumetricDataSet ds = new VolumetricDataSet(FileReader.class.getResourceAsStream(\"/marschnerlobb.raw\"), 41, 41, 41);\n int[][][] allDimensions = ds.getVolumeData();\n\n int[] dimensions = ds.getDimensions();\n\n int x = dimensions[0];\n int y = dimensions[1];\n int z = dimensions[2];\n\n System.out.println(\"x = \" + x);\n System.out.println(\"y = \" + y);\n System.out.println(\"z = \" + z);\n\n GL gl = drawable.getGL();\n\n gl.glClear(GL.GL_COLOR_BUFFER_BIT);\n\n// gl.glColor3f(0.94f, 0.94f, 0.94f);\n// gl.glBegin(GL.GL_POLYGON);\n// gl.glVertex2f(330, 0);\n// gl.glVertex2f(330, 720);\n// gl.glVertex2f(333, 0);\n// gl.glVertex2f(333, 720);\n// gl.glEnd();\n//\n// gl.glBegin(GL.GL_POLYGON);\n// gl.glVertex2f(165, 0);\n// gl.glVertex2f(165, 720);\n// gl.glVertex2f(168, 0);\n// gl.glVertex2f(168, 720);\n// gl.glEnd();\n// gl.glPushMatrix();\n// gl.glTranslated(-200.0, 0.0, 0.0);\n gl.glBegin(GL.GL_QUADS);\n\n for (int i = 0; i < z; i++) {\n for (int j = 0; j < y; j++) {\n float col = (float) allDimensions[j][100][i] / 255f;\n System.out.println(allDimensions[100][j][i] + \": \" + col);\n gl.glColor3f(col, col, col);\n\n gl.glVertex2d(i, j);\n gl.glVertex2d((i + 1), j);\n gl.glVertex2d((i + 1), (j + 1));\n gl.glVertex2d(i, (j + 1));\n System.out.println(\"x \" + i + \": y \" + j);\n }\n\n }\n gl.glEnd();\n //gl.glPopMatrix();\n\n// gl.glPushMatrix();\n// gl.glTranslated(0.0, 0.0, 0.0);\n// gl.glBegin(GL.GL_POLYGON);\n//\n// for (int i = 1; i < 41; i++) {\n// for (int j = 0; j < 41; j++) {\n// if (allDimensions[j][i][0] <= 225) {\n// gl.glColor3f(0, 1, 0);\n// } else {\n// gl.glColor3f(1, 1, 1);\n// }\n//\n// gl.glVertex2d(allDimensions[0][j][i], allDimensions[0][i][j]);\n// }\n//\n// }\n// gl.glEnd();\n// gl.glPopMatrix();\n gl.glFlush();\n }", "double volume(){\n return width*height*depth;\n }", "public VectorFieldSliceRenderer2D(ImageData img,\r\n\t\t\tVisualizationProcessing applet) {\r\n\t\tsuper(img, applet);\r\n\t\tif (img.getComponents() < 2) {\r\n\t\t\tslices = 1;\r\n\t\t} else {\r\n\t\t\tslice = slices / 2;\r\n\t\t}\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "double volume(){\n\n return widgh*height*depth;\n\n }", "public void updateData(ImageComponent3D imageComponent,\n\t\t\t int index,\n\t\t\t int x, int y,\n\t\t\t int width, int height);", "public int volume() {\r\n int xLength = this.getMaximumPoint().getBlockX() - this.getMinimumPoint().getBlockX() + 1;\r\n int yLength = this.getMaximumPoint().getBlockY() - this.getMinimumPoint().getBlockY() + 1;\r\n int zLength = this.getMaximumPoint().getBlockZ() - this.getMinimumPoint().getBlockZ() + 1;\r\n\r\n int volume = xLength * yLength * zLength;\r\n return volume;\r\n }", "private void readBuffer(int slice, float buffer[]) throws IOException {\r\n int i = 0;\r\n int b1,b2;\r\n int j;\r\n int nBytes;\r\n long progress, progressLength, mod;\r\n\r\n switch (dataType) {\r\n case ModelStorageBase.UBYTE:\r\n nBytes = xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n for ( j = 0; j < nBytes; j++, i++) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), false);\r\n buffer[i] = byteBuffer[j] & 0xff;\r\n }\r\n break;\r\n case ModelStorageBase.SHORT:\r\n nBytes = 2*xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n for (j = 0; j < nBytes; j+=2, i++ ) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), false);\r\n b1 = getUnsignedByte(byteBuffer, j);\r\n b2 = getUnsignedByte(byteBuffer, j+1);\r\n buffer[i] = (short)((b2 << 8) + b1); // little endian\r\n }\r\n break;\r\n case ModelStorageBase.ARGB:\r\n // from 2 color merged psuedocolor\r\n nBytes = 2*xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n //For the moment I compress RGB images to unsigned bytes.\r\n for (j = 0; j < nBytes; j+=2, i+=4 ) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), true);\r\n buffer[i] = 255;\r\n buffer[i+1] = getUnsignedByte(byteBuffer, j);\r\n buffer[i+2] = getUnsignedByte(byteBuffer, j+1);\r\n buffer[i+3] = 0;\r\n }\r\n break;\r\n } // switch(dataType)\r\n }", "public void setVolume(int volume);", "public void setVolume(float volume) {\n }", "@Override\r\n\tpublic void setVolume(float volume) {\n\t\t\r\n\t}", "public void InitiateImageData (int channel, int slice)\n\t{\n\t\t// get current slice properties\n\t\tImageStack stack1 = i1.getStack();\n\t\tcurrentSlice = slice;\n\t\tipWallSegment = stack1.getProcessor(currentSlice);\n\t\tcurrentStage[currentSlice-1] = -1;\n\n\t\t// Stretch the Histogram\n\t\t//float s2 = (float)(16);\n\t\t//float[] kernelSm = {1/s2,2/s2,1/s2,2/s2,4/s2,2/s2,1/s2,2/s2,1/s2};\n\t\t//ipWallSegment.convolve( kernelSm, 3, 3);\n\t\t//IJ.run(\"Enhance Contrast\", \"saturated=0.0 normalize_all\");\n\t\ti1.updateAndDraw();\n\t\tint w = ipWallSegment.getWidth();\n\t\tint h = ipWallSegment.getHeight();\n\t}", "public double getVolume() {\n\t\treturn height * depth * length;\n\n\t}", "void setVolume(float volume);", "public void setVolume(float volume) {\r\n\t\tthis.volume = volume;\r\n\t}", "@Override\n\tpublic void render() {\n\t\tgl.glEnableClientState(GL2.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_NORMAL_ARRAY);\n\t\tfloat posx = startxPos;\n\t\tint[] vboIds;\n\t\tfor(int i=0;i<nbWidth;i++) {\n//\t\t\tindexBuffer = cacheBands.getDataLocalIndex(i); // mapIndexBands[i]\n//\t\t\tindexBuffer.rewind();\n\t\t\tvboIds = cacheBands.getDataLocalIndex(i);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n\t\t\tgl.glVertexPointer(3, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n\t\t\tgl.glTexCoordPointer(2, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n\t\t\tgl.glNormalPointer(GL.GL_FLOAT, 0, 0);\n\n\t\t\t\n\t\t\tgl.glPushMatrix();\n\t\t\tgl.glTranslatef(posx, startyPos,0);\n\t\t\t//gl.glCallList(cacheBands.getDataLocalIndex(i));\n\t // gl.glDrawElements(GL2.GL_QUADS, indices.capacity(), GL.GL_UNSIGNED_SHORT, 0);\n\t gl.glDrawArrays(GL2.GL_QUADS, 0, vboIds[0]); \n\t\t\tgl.glPopMatrix();\n\t\t\tposx+=blockWidth;\n\t\t}\n\t\t// unbind vbo\n\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\tgl.glDisableClientState(GL2.GL_NORMAL_ARRAY);\n gl.glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n gl.glDisableClientState(GL2.GL_VERTEX_ARRAY);\n\n\t}", "public void setVolume(float volume) {\n\t alSourcef(musicSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(reverseSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(flangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(revFlangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(wahSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(revWahSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(wahFlangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(revWahFlangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(distortSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(revDistortSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(distortFlangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(revDistortFlangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(wahDistortSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(revWahDistortSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(wahDistortFlangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t alSourcef(revWahDistortFlangeSourceIndex, AL_GAIN, volume / 100.0f);\n\t}", "public void setVolume(int volume) {\n\t\tthis.volume = volume;\n\t}", "public abstract float volume();", "public void setVolume(int level);", "ImageComponent3D() {}", "public void setVolume(final int volume) {\r\n\t\tthis.volume = volume;\r\n\t}", "private void setGeometryData() {\n // allocate vertices\n final int factorK = (innerRadius == 0 ? 1 : 2);\n final int verts = factorK * ((zSamples - 2) * (radialSamples) + 2); // rs + 1\n setVertexCoordsSize (verts);\n setNormalCoordsSize (verts);\n\n // generate geometry\n final double fInvRS = 1.0 / (radialSamples);\n final double fZFactor = 1.0 / (zSamples - 1); // 2.0 / (zSamples - 1);\n\n // Generate points on the unit circle to be used in computing the mesh\n // points on a sphere slice.\n final double[] afSin = new double[(radialSamples + 1)];\n final double[] afCos = new double[(radialSamples + 1)];\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fAngle = phi0 + dPhi * fInvRS * iR;\n afCos[iR] = Math.cos (fAngle);\n afSin[iR] = Math.sin (fAngle);\n }\n // afSin[radialSamples] = afSin[0];\n // afCos[radialSamples] = afCos[0];\n\n double radDiff = Math.abs (outerRadius - innerRadius);\n\n for ( int icnt = 0; icnt < 2; icnt++ ) {\n radius = (icnt == 0 ? innerRadius : outerRadius);\n if ( radius == 0.0 ) {\n continue;\n }\n double zNP = centerZ; // 0.0;\n double zSP = centerZ; // 0.0;\n\n // generate the sphere itself\n int i = 0;\n Vector3D tempVa;\n Vector3D kSliceCenter;\n\n for ( int iZ = 1; iZ < (zSamples - 1); iZ++ ) { // -1\n //final double fAFraction = 0.5 * Math.PI * (-1.0f + fZFactor * iZ); // in (-pi/2, pi/2)\n final double fAFraction = theta1 - iZ * fZFactor * dTheta;\n final double fZFraction = Math.sin (fAFraction); // in (-1,1)\n final double fZ = radius * fZFraction;\n\n // compute center of slice\n kSliceCenter = new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + fZ\n );\n\n // compute radius of slice\n final double fSliceRadius = Math.sqrt (\n Math.abs (\n radius * radius - fZ * fZ\n )\n );\n\n // compute slice vertices with duplication at end point\n Vector3D kNormal;\n final int iSave = i;\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fRadialFraction = iR * fInvRS; // in [0,1)\n final Vector3D kRadial = new Vector3D (\n afCos[iR],\n afSin[iR],\n 0\n );\n tempVa = new Vector3D (\n fSliceRadius * kRadial.getX (),\n fSliceRadius * kRadial.getY (),\n fSliceRadius * kRadial.getZ ()\n );\n\n zNP = Math.\n max (kSliceCenter.getZ (), zNP);\n zSP = Math.\n min (kSliceCenter.getZ (), zSP);\n\n putVertex (\n (kSliceCenter.getX () + tempVa.getX ()),\n (kSliceCenter.getY () + tempVa.getY ()),\n (kSliceCenter.getZ () + tempVa.getZ ())\n );\n tempVa = getVertexCoord (i);\n\n kNormal = new Vector3D (\n tempVa.getX () - center.getX (),\n tempVa.getY () - center.getY (),\n tempVa.getZ () - center.getZ ()\n );\n double mag = Math.sqrt (\n Math.pow (kNormal.getX (), 2) +\n Math.pow (kNormal.getY (), 2) +\n Math.pow (kNormal.getZ (), 2)\n );\n kNormal = new Vector3D (\n kNormal.getX () / mag,\n kNormal.getY () / mag,\n kNormal.getZ () / mag\n );\n if ( !viewInside ) {\n putNormal (\n kNormal.getX (),\n kNormal.getY (),\n kNormal.getZ ()\n );\n } else {\n putNormal (\n -kNormal.getX (),\n -kNormal.getY (),\n -kNormal.getZ ()\n );\n }\n i++;\n }\n\n// setVertexCoord(i, getVertexCoord(iSave));\n// setNormalCoord(i, getNormalCoord(iSave));\n putVertex (getVertexCoord (iSave));\n putNormal (getNormalCoord (iSave));\n i++;\n }\n\n // south pole\n if ( theta0 == -0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n (center.getZ () - radius)\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, -1));\n } else {\n putNormal (new Vector3D (0, 0, 1));\n }\n setNormalCount (i + 1);\n i++;\n }\n\n // north pole\n if ( theta1 == 0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + radius\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, 1));\n } else {\n putNormal (new Vector3D (0, 0, -1));\n }\n setNormalCount (i + 1);\n i++;\n }\n }\n\n }", "public void showVirtualSlice(int z, int t, int c, int axis) {\n int index = db.getIndex(z - 1, t - 1, c - 1);\n if (LociDataBrowser.DEBUG) {\n db.log(\"showVirtualSlice: index=\" + index +\n \"; z=\" + z + \"; t=\" + t + \"; c=\" + c);\n }\n }", "void setTrafficVolumeArray(int i, org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume trafficVolume);", "public void updateVolume() {\n\t\tMixer.Info[] mixerInfos = AudioSystem.getMixerInfo();\n\n\t\tfor (Mixer.Info mixerInfo : mixerInfos) {\n\t\t\tMixer mixer = AudioSystem.getMixer(mixerInfo);\n\t\t\tLine.Info[] lineInfos = mixer.getTargetLineInfo();\n\n\t\t\tfor (Line.Info lineInfo : lineInfos) {\n\t\t\t\ttry {\n\t\t\t\t\tLine line = mixer.getLine(lineInfo);\n\t\t\t\t\tline.open();\n\t\t\t\t\tif (line.isControlSupported(FloatControl.Type.VOLUME)) {\n\t\t\t\t\t\tFloatControl volumeControl = (FloatControl) line.getControl(FloatControl.Type.VOLUME);\n\t\t\t\t\t\tvolumeControl.setValue((float) volume);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void createCube(float x, float y, float z){\r\n\t\tboolean[] sides = checkCubeSides((int)x,(int)y,(int)z);\r\n\t\tfloat[] color = BlockType.color(blocks[(int)x][(int)y][(int)z]);\r\n\t\t\r\n//\t\t gl.glNormal3f(0.0f, 1.0f, 0.0f);\r\n\t\tif(sides[0]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t \r\n//\t // Bottom-face\r\n//\t gl.glNormal3f(0.0f, -1.0f, 0.0f);\r\n\t\t\r\n\t\tif(sides[1]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Back-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, -1.0f);\r\n\t\tif(sides[2]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Front-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, 1.0f);\r\n\t\tif(sides[3]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t \r\n//\t // Left-face\r\n//\t gl.glNormal3f(-1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[4]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t // Right-face\r\n//\t gl.glNormal3f(1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[5]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void changeVolume(int volume) {\n\t\tSystem.out.println(\"볼륨을 조절하다\");\r\n\t}", "protected AbstractMatrix3D vSliceFlip() {\n\tif (slices>0) {\n\t\tsliceZero += (slices-1)*sliceStride;\n\t\tsliceStride = -sliceStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "@Override\n\tpublic void volume() {\n\t\tsolido.volume = (solido.areaBase * altura) / 3;\n\t}", "@Override\n public void buildView(IModelForm form) {\n FormSection general = form.addSection(\"SEG-Y Volume Properties\");\n\n // Add an editor for each of the model properties.\n LabelField directory = general.addLabelField(VolumeMapperModel.DIRECTORY);\n directory.setTooltip(\"The storage directory for the SEG-Y volume file\");\n\n LabelField fileName = general.addLabelField(VolumeMapperModel.FILE_NAME);\n fileName.setTooltip(\"The SEG-Y volume file name\");\n //fileName.setRequired(true);\n\n LabelField fileExtn = general.addLabelField(VolumeMapperModel.FILE_EXTN);\n fileExtn.setTooltip(\"The SEG-Y volume file extension\");\n\n general.addCommentField(\"The SEG-Y format contains no information as to \"\n + \"what type of volume is represented (PostStack3d, PreStack3d, etc), so this must \"\n + \"be specified upon loading. \");\n\n IndexType[] volumeTypes = { IndexType.POSTSTACK_3D };\n ComboField volumeType = general.addComboField(VolumeMapperModel.VOLUME_TYPE, volumeTypes);\n volumeType.setTooltip(\"The type of SEG-Y volume.\");\n\n LabelField storageOrder = general.addLabelField(VolumeMapperModel.STORAGE_ORDER);\n storageOrder.setTooltip(\"The storage order of the SEG-Y volume\");\n\n general.addCommentField(\"Due to the inherent restrictions of the format, which limits the maximum sample rate, \"\n + \"the sample rate field has been made editable to allow for arbitrary values.\");\n\n TextField sampleRate = general.addTextField(VolumeMapperModel.SAMPLE_RATE);\n sampleRate.setTooltip(\"The sample rate of the SEG-Y volume.\");\n\n general.addCommentField(\"Unit information for z, x/y, and the data is also editable, as the SEG-Y format is \"\n + \"often not properly defined when files are written.\");\n\n Unit[] zUnits = { Unit.MILLISECONDS, Unit.US_SURVEY_FOOT, Unit.FOOT, Unit.METER };\n ComboField zUnit = general.addComboField(VolumeMapperModel.UNIT_OF_Z, zUnits);\n zUnit.setTooltip(\"The unit of measurement for z values in SEG-Y volume file\");\n\n Unit[] xyUnits = { Unit.METER, Unit.FOOT, Unit.US_SURVEY_FOOT };\n ComboField xyUnit = general.addComboField(VolumeMapperModel.UNIT_OF_XY, xyUnits);\n xyUnit.setTooltip(\"The unit of measurement for x,y values in SEG-Y volume file\");\n\n Unit[] someUnits = Unit.getCommonUnitsByDomain(new Domain[] { Domain.VELOCITY, Domain.DIMENSIONLESS,\n Domain.VELOCITY_GRADIENT, Domain.DISTANCE, Domain.TIME });\n Unit[] allUnits = Unit.getUnitsByDomain(null);\n EnhancedComboField dataUnit = general.addEnhancedComboField(VolumeMapperModel.DATA_UNIT, someUnits, allUnits);\n dataUnit.setTooltip(\"The unit of measurement for data values values in SEG-Y volume file\");\n\n LabelField sampleFormat = general.addLabelField(VolumeMapperModel.SAMPLE_FORMAT);\n sampleFormat.setTooltip(\"The sample format of the SEG-Y volume file\");\n\n FormSection traceHeaders = form.addSection(\"SEG-Y Volume Trace Headers\");\n\n traceHeaders\n .addCommentField(\"An option has been supplied below to allow for previewing the EBCDIC, binary and trace headers, so that these \"\n + \"byte locations can be determined, if not already known.\");\n\n Button button = new Button(traceHeaders.getComposite(), SWT.PUSH);\n button.setText(\"Preview...\");\n button.setLayoutData(TableWrapLayoutHelper.createLayoutData(false, false, SWT.FILL, SWT.FILL, 4, 1));\n button.addListener(SWT.Selection, new Listener() {\n\n @Override\n public void handleEvent(Event event) {\n Shell shell = Display.getDefault().getActiveShell();\n SegyPreviewDialog dialog = new SegyPreviewDialog(shell);\n dialog.create();\n dialog.getShell().setSize(500, 500);\n dialog.setBlockOnOpen(true);\n VolumeMapperModel model = (VolumeMapperModel) getModel();\n dialog.getShell().setText(\"SEG-Y Preview: \" + model.getFileName() + model.getFileExtension());\n dialog.setFile(model);\n dialog.open();\n }\n\n });\n\n traceHeaders\n .addCommentField(\"The SEG-Y format does not provide definite trace header locations for storing the inline and crossline numbers. \"\n + \"These locations must be specified upon loading.\\nFor SEG-Y rev1, the inline,xline coordinates are stored \"\n + \"at following bytes # locations:\\nInline = 189\\nX-line = 193\");\n\n TextField inlineByteLoc = traceHeaders.addTextField(VolumeMapperModel.INLINE_BYTE_LOC);\n inlineByteLoc.setTooltip(\"The byte location of the inline # in the SEG-Y trace headers.\");\n\n TextField xlineByteLoc = traceHeaders.addTextField(VolumeMapperModel.XLINE_BYTE_LOC);\n xlineByteLoc.setTooltip(\"The byte location of the xline # in the SEG-Y trace headers.\");\n\n traceHeaders.addCommentField(\"For SEG-Y rev1, the x,y coordinates are stored \"\n + \" at the following byte # locations:\\nX-Coordinate = 181\\nY-Coordinate = 185\");\n\n TextField xcoordByteLoc = traceHeaders.addTextField(VolumeMapperModel.X_COORD_BYTE_LOC);\n xcoordByteLoc.setTooltip(\"The byte location of the x-coordinate in the SEG-Y trace headers.\");\n\n TextField ycoordByteLoc = traceHeaders.addTextField(VolumeMapperModel.Y_COORD_BYTE_LOC);\n ycoordByteLoc.setTooltip(\"The byte location of the y-coordinate in the SEG-Y trace headers.\");\n\n traceHeaders\n .addCommentField(\"If the volume being loaded is prestack, then the field for specifying the offset is enabled. \"\n + \"This is defined in the SEG-Y header as being at byte 37, but has been made editable to allow for flexibility. \");\n\n TextField offsetByteLoc = traceHeaders.addTextField(VolumeMapperModel.OFFSET_BYTE_LOC);\n offsetByteLoc.setTooltip(\"The byte location of the offset # in the SEG-Y trace headers.\");\n\n FormSection geometry3d = form.addSection(\"SEG-Y Volume 3D Geometry\");\n\n String comment = \"The geometry of a 3D SEG-Y volume can be automatically determined by scanning \";\n comment += \"the x/y coordinates of the trace headers. This approach requires that the 4 corner traces \";\n comment += \"exist in the file. If this is not the case, then the auto-calculate option should be turned off \";\n comment += \"and the corner coordinates can then be entered manually.\";\n geometry3d.addCommentField(comment);\n\n CheckboxField autoGeometry = geometry3d.addCheckboxField(VolumeMapperModel.AUTO_CALCULATE_GEOMETRY);\n autoGeometry.setTooltip(\"Calculates the geometry from the x,y coordinates of the 4 corner traces.\");\n\n TextField inlineStart = geometry3d.addTextField(VolumeMapperModel.INLINE_START);\n inlineStart.setTooltip(\"The starting inline number\");\n\n TextField inlineEnd = geometry3d.addTextField(VolumeMapperModel.INLINE_END);\n inlineEnd.setTooltip(\"The ending inline number\");\n\n TextField inlineDelta = geometry3d.addTextField(VolumeMapperModel.INLINE_DELTA);\n inlineDelta.setTooltip(\"The increment of the inline numbers\");\n\n TextField xlineStart = geometry3d.addTextField(VolumeMapperModel.XLINE_START);\n xlineStart.setTooltip(\"The starting xline number\");\n\n TextField xlineEnd = geometry3d.addTextField(VolumeMapperModel.XLINE_END);\n xlineEnd.setTooltip(\"The ending xline number\");\n\n TextField xlineDelta = geometry3d.addTextField(VolumeMapperModel.XLINE_DELTA);\n xlineDelta.setTooltip(\"The increment of the xline numbers\");\n\n TextField x0 = geometry3d.addTextField(Volume3dMapperModel.X0);\n x0.setTooltip(\"The x-coordinate @ inline start, xline start\");\n\n TextField y0 = geometry3d.addTextField(Volume3dMapperModel.Y0);\n y0.setTooltip(\"The y-coordinate @ inline start, xline start\");\n\n TextField x1 = geometry3d.addTextField(Volume3dMapperModel.X1);\n x1.setTooltip(\"The x-coordinate @ inline end, xline start\");\n\n TextField y1 = geometry3d.addTextField(Volume3dMapperModel.Y1);\n y1.setTooltip(\"The y-coordinate @ inline end, xline start\");\n\n TextField x2 = geometry3d.addTextField(Volume3dMapperModel.X2);\n x2.setTooltip(\"The x-coordinate @ inline start, xline end\");\n\n TextField y2 = geometry3d.addTextField(Volume3dMapperModel.Y2);\n y2.setTooltip(\"The y-coordinate @ inline start, xline end\");\n\n TextField x3 = geometry3d.addTextField(Volume3dMapperModel.X3);\n x3.setTooltip(\"The x-coordinate @ inline end, xline end\");\n\n TextField y3 = geometry3d.addTextField(Volume3dMapperModel.Y3);\n y3.setTooltip(\"The y-coordinate @ inline end, xline end\");\n }", "public abstract double volume();", "public void calcVolume() {\n this.vol = (0.6666666666666667 * Math.PI) * Math.pow(r, 3);\n }", "public IntVec3Volume(IntVec3 start, IntVec3 end){\n this.start=start;\n this.end=end;\n }", "public float getVolume()\n {\n return volume;\n }", "public double getVolume() { return volume; }", "public int slices() {\n\treturn slices;\n}", "int getVolume() {\n return this.volume;\n }", "public void setVolume(int v) {\n volume = v;\n }", "@Override\n protected void putImageBuffer(BufferedImage input) \n {\n // Load data in. \n for (int y = 0; y < height; y++) \n {\n for (int x = 0; x < width; x++) \n {\n\t\tdouble h = getHeight(input, x, y);\n\t\tdouble du = 0;\n\t\tdouble dv = 0;\n\t\t\n\t\tif(x > 0)\n\t\t{\t\n\t\t du += h - getHeight(input, x-1, y);\n\t\t}\n\t\tif(x < width - 1)\n\t\t{\n\t\t du += getHeight(input, x+1, y) - h;\n\t\t}\n\t\tif(y > 0)\n\t\t{\n\t\t dv += h - getHeight(input, x , y-1);\n\t\t}\n\t\tif(y < height - 1)\n\t\t{\n\t\t dv += getHeight(input, x, y+1) - h;\n\t\t}\n\t\t\n\t\tdouble u = -du;\n\t\tdouble v = -dv;\n\t\tdouble w = 0.25;\n \n\t\tdouble n = Math.sqrt(u*u + v*v + w*w);\n\n byte a = (byte)(h * 255.0);\n byte r = (byte)((u / n + 1.0) / 2.0 * 255.0);\n byte g = (byte)((v / n + 1.0) / 2.0 * 255.0);\n byte b = (byte)((w / n + 1.0) / 2.0 * 255.0);\n \n int index = (x + y * allocatedWidth) * 4;\n pixelData.put(index++, r);\n pixelData.put(index++, g);\n pixelData.put(index++, b);\n pixelData.put(index , a);\n }\n }\n }", "org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume getTrafficVolumeArray(int i);", "public void setVolume(int volume) {\n mBundle.putInt(KEY_VOLUME, volume);\n }", "public void setVolumeArray(int i, org.landxml.schema.landXML11.VolumeDocument.Volume volume)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.VolumeDocument.Volume target = null;\r\n target = (org.landxml.schema.landXML11.VolumeDocument.Volume)get_store().find_element_user(VOLUME$4, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(volume);\r\n }\r\n }", "public interface VicarInput extends VicarIOBase\n{\n\n/***********************************************************************\n * Low-level read function, returns a byte array for the given record.\n * The most normal call, to read an entire record, would be\n * <code>x.readRecord(data, 0, 0, 0, 1, line, band);</code>\n * @param data The array to read into\n * @param start Starting position in the record. Normally 0 to read the whole\n * record.\n * @param length Number of pixels to read. If 0, the rest of the record is\n * read.\n * @param offset Offset into the data array at which to put the data.\n * @param pixelStride Offset from one pixel to the next in the array. For\n * example, a stride of 1 has all pixels contiguous while a stride of 3\n * allows band interleaved pixels in the array (pixels read from the file\n * will be put 3 elements apart in the array). This has nothing to do with\n * what is read from the file - only where the data is put in the array.\n * Note that this value is measured in pixels or array elements - not bytes.\n * @param n2 \"Line number\" to read (for BSQ organization). (For BIL: band\n * number, for BIP: sample number). The second dimension's index.\n * @param n3 \"Band number\" to read (for BSQ organization). (For BIL or BIP:\n * line number). The third dimension's index.\n * @throws NonSequentialAccessException (subclass of IOException)\n * @throws IOException\n */\n public void readRecord(byte[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns a short array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecord(short[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns an unsigned short array for the given\n * record. Although unsigned short is not a VICAR data type, it is useful\n * for some other formats which use this library. Note that a short array\n * must be used, although the data should be interepreted as unsigned.\n * For this reason, a different method name is needed.\n * <p>\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecordUshort(short[] data, int start, int length,\n\t\tint offset, int pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns an int array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecord(int[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns a float array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecord(float[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns a double array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(double[], int, int, int, int, int, int)\n */\n public void readRecord(double[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns complex data in a float array for the\n * given record. Each complex value is stored in two consecutive float\n * elements in the array, so it must be twice as long as you would normally\n * expect, and <code>offset</code> must be multiplied by 2. <code>length</code>\n * is still measured in <em>pixels</em>, so there are 2*<code>length</code>\n * values filled in the array.\n * <p>\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecordComp(float[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n////////////////////////////////////////////////////////////////////////\n\n/***********************************************************************\n * Provides access to the binary header, which is NLB records at the beginning\n * of the file. This function returns a <code>VicarBinaryLabel</code> object\n * which contains the entire header. From it, you can get a limited-length\n * stream which implements <code>DataInput</code>. This stream automatically\n * translates data types based on BINTFMT and BREALFMT, so e.g. if you call\n * <code>readFloat()</code>, the stream will either return the next four\n * bytes as a float (BREALFMT=IEEE), byte-swap them (BREALFMT=RIEEE), or\n * convert them from VAX format (BREALFMT=VAX). So a typical binary header\n * might be read like this:\n * <pre>\n * VicarBinaryLabel bh = file.getBinaryHeader();\n * DataInput di = bh.getDataInput();\n * int first = di.readInt();\n * short second = di.readShort();\n * byte b[8];\n * for (i=0; i<8; i++) b[i] = di.readByte();\n * String third(b);\n * ... etc ...\n * </pre>\n * The returned stream will signal EOF when the end of the binary header area\n * is reached. You can also access the label buffer directly via\n * <code>VicarBinaryLabel.getBuffer()</code>, but this is not recommended\n * (because no data type translation is done).\n * <p>\n * Internally, the header is copied to a buffer, so the\n * <code>VicarBinaryLabel</code> object will stay valid as long as you\n * need it (i.e., you can read data from the file and the header will still\n * stay valid).\n * <p>\n * If this routine is used with a strictly sequential file, it must be called\n * before any pixel data (or binary prefixes) are read.\n *\n * @return A VicarBinaryLabel that contains the header, or NULL if there is\n * header.\n * @throws NonSequentialAccessException (subclass of IOException)\n * @throws IOException\n * @see VicarBinaryLabel\n */\n public VicarBinaryLabel getBinaryHeader() throws IOException;\n\n/***********************************************************************\n * Provides access to the binary prefix, which is NBB <em>bytes</em> at the\n * beginning of each record. This function returns a\n * <code>VicarBinaryLabel</code> object which contains the entire prefix.\n * From it, you can get a limited-length stream which implements\n * <code>DataInput</code>, and behaves as described in\n * <code>getBinaryHeader()</code>. The stream will signal EOF at the end\n * of the prefix for this record. A buffer is maintained, as with the\n * header, so the <code>VicarBinaryLabel</code> object will stay valid in\n * the future. Direct access to the buffer is possibly but strongly\n * discouraged.\n * <p>\n * If this routine is used with a strictly sequential file, it must be called\n * before the pixel data for this record is read (and of course, after the\n * previous record's data). For this reason, this routine is incompatible\n * with the Tile read functions for strictly sequential files (unless the\n * tile height is 1).\n *\n * @param n2 \"Line number\" to read (for BSQ organization). (For BIL: band\n * number, for BIP: sample number). The second dimension's index.\n * @param n3 \"Band number\" to read (for BSQ organization). (For BIL or BIP:\n * line number). The third dimension's index.\n * @return A VicarBinaryLabel that contains the prefix, or NULL if there is no\n * prefix.\n * @throws NonSequentialAccessException (subclass of IOException)\n * @throws IOException\n * @see #getBinaryHeader()\n * @see VicarBinaryLabel\n */\n public VicarBinaryLabel getBinaryPrefix(int n2, int n3) throws IOException;\n\n////////////////////////////////////////////////////////////////////////\n\n/***********************************************************************\n * High-level read function. Given an x/y position in the file, read a\n * complete tile (size specified by the SampleModel) into the DataBuffer.\n * Data is placed in the SM starting at its origin. If the file does not\n * contain enough data to fill the SM, then only the parts that can be read,\n * are read. No error is returned in this case (it is up to the caller to\n * check the boundary conditions if needed).\n * @throws IOException if there are problems reading the file\n */\n public void readTile(int x, int y, SampleModel m, DataBuffer b)\n\t\t\tthrows IOException;\n\n/***********************************************************************\n * High-level read function. Given an x/y position in the file, and a\n * width/height, read that portion of the file into the given DataBuffer.\n * Data is placed starting at an origin of x_off/y_off within the SampleModel\n * (i.e. x/y is the position in the file to read, x_off/y_off is the position\n * within the buffer to place the data). If the file does not contain enough\n * data to satisfy width/height, then only the parts that can be read, are\n * read. No error is returned in this case (it is up to the caller to\n * check the boundary conditions if needed). However, if the requested\n * width/height (combined with x_off/y_off) will not fit within the SampleModel,\n * an ArrayIndexOutOfBoundsException is thrown.\n * @throws IOException if there are problems reading the file\n */\n public void readTile(int x, int y, int w, int h, int x_off, int y_off,\n\t\t\tSampleModel m, DataBuffer b)\n\t\t\tthrows IOException;\n\n/***********************************************************************\n * High-level read function. Just like the previous readTile, except that\n * an array of band numbers is also provided. Only bands in this array are\n * read. On output, the number of bands actually read will equal the size\n * of this array, i.e. original band numbers are not preserved. If too many\n * bands, or an out-of-range band number is specified, an\n * ArrayIndexOutOfBoundsException is thrown.\n * <p>\n * bandList may be null, in which case all bands are read. Note that for\n * Complex data, each part (real/imaginary) is treated as a separate band.\n * So, a multi-banded Complex file with have 2*nb bands. The bands requested\n * in bandList take this into account, e.g. band 2 in the list is the real\n * part of the file's band 1 (counting from 0), band 5 in the list is the\n * imaginary part of the file's band 3, etc.\n * <p>\n * For BIP data (Band Interleaved by Pixel), it is much more efficient to\n * read all bands at once (i.e. pass bandList as null).\n * @see #readTile(int,int,int,int,int,int,SampleModel,DataBuffer)\n * @throws IOException if there are problems reading the file\n */\n public void readTile(int x, int y, int w, int h, int x_off, int y_off,\n\t\t\tint bandList[],\n\t\t\tSampleModel m, DataBuffer b)\n\t\t\tthrows IOException;\n}", "private void setupSliceOffsets(boolean withUV, boolean withNormals) {\n\t\tsliceLength = COORDS_SIZE;\n\t\tuvOffset = 0;\n\t\tnormalOffset = 0;\n\t\tif (withUV) {\n\t\t\tuvOffset = sliceLength;\n\t\t\t// and 2 coords for uv map, if available\n\t\t\tsliceLength += UVCOORDS_SIZE;\n\t\t}\n\t\tif (withNormals) {\n\t\t\tnormalOffset = sliceLength;\n\t\t\t// and 3 coords for the normal vector if available\n\t\t\tsliceLength += NORMAL_SIZE;\n\t\t}\n\t}", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "@Override\n public List<Uri> getSlices() {\n final List<Uri> uris = new ArrayList<>();\n\n uris.add(REMOTE_MEDIA_SLICE_URI);\n uris.add(VOLUME_MEDIA_URI);\n Uri controlUri = getExtraControlUri();\n if (controlUri != null) {\n Log.d(TAG, \"add extra control slice\");\n uris.add(controlUri);\n }\n uris.add(MEDIA_OUTPUT_INDICATOR_SLICE_URI);\n uris.add(VOLUME_CALL_URI);\n uris.add(VOLUME_RINGER_URI);\n uris.add(VOLUME_SEPARATE_RING_URI);\n uris.add(VOLUME_NOTIFICATION_URI);\n uris.add(VOLUME_ALARM_URI);\n return uris;\n }", "public int getVolume() {\r\n\t\treturn volume;\r\n\t}", "public Long[] getVolumes() { return this.volumes; }", "private void volumePointInCanvas(final Canvas3D canvas,\n\t\tfinal Transform3D volToIP, final int x, final int y, final int z,\n\t\tfinal Point2d ret)\n\t{\n\n\t\tfinal VoltexVolume vol = renderer.volume;\n\t\tfinal double px = x * vol.pw;\n\t\tfinal double py = y * vol.ph;\n\t\tfinal double pz = z * vol.pd;\n\t\tfinal Point3d locInImagePlate = new Point3d(px, py, pz);\n\n\t\tvolToIP.transform(locInImagePlate);\n\n\t\tcanvas.getPixelLocationFromImagePlate(locInImagePlate, ret);\n\t}", "private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ this._prismoidsSectionsAreas.get(i+1).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ Math.sqrt(\n\t\t\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i)\n\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsSectionsAreas.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue()\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.CUBIC_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\tthis._fuelVolume = this._fuelVolume\n\t\t\t\t\t\t\t\t\t\t.plus(this._prismoidsVolumes.get(i));\n\t\tthis._fuelVolume = this._fuelVolume.times(2);\n\t\t\n\t}", "@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}", "ModuleComponent volume();", "public int getVolume() {\n return volume_;\n }", "protected AbstractMatrix3D vPart(int slice, int row, int column, int depth, int height, int width) {\n\tcheckBox(slice,row,column,depth,height,width);\n\t\n\tthis.sliceZero += this.sliceStride * slice;\n\tthis.rowZero += this.rowStride * row;\n\tthis.columnZero += this.columnStride * column;\n\t\n\tthis.slices = depth;\n\tthis.rows = height;\n\tthis.columns = width;\n\t\n\tthis.isNoView = false;\n\treturn this;\n}", "public float getVolume() {\n return 1.0f;\n }", "void renderImages(String imageCategory) {\n\t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n//\t\tboolean focusOnCmdSeq = true;\n//\t\tString selectedCmdSeq = MerUtils.cmdSeqFromFilename(selectedPanImageEntry.imageListEntry.getFilename());\t\t\n\t\tfor (int i=0; i<panImageList.length; i++) {\n\t\t\tPanImageEntry panEntry = panImageList[i];\n\t\t\tImageEntry entry = panEntry.imageListEntry;\n\t\t\tif ((!entry.enabled) || (!panEntry.draw))\n\t\t\t\tcontinue;\n\t\t\tif (!entry.getImageCategory().equalsIgnoreCase(imageCategory))\n\t\t\t\tcontinue;\n\t\t\tImageMetadataEntry metadataEntry = entry.getImageMetadataEntry();\n\t\t\tif (metadataEntry == null)\n\t\t\t\tcontinue;\n\t\t\tString filename = entry.getFilename();\n\t\t\tchar spacecraftIdChar = MerUtils.spacecraftIdCharFromFilename(filename);\n\t\t\tchar camera = MerUtils.cameraFromFilename(filename);\n\t\t\tchar cameraEye = MerUtils.cameraEyeFromFilename(filename);\n\t\t\tdouble twist = 0.0;\n\t\t\tdouble imageFOV = 10.0;\n\t\t\tdouble radius = 50.0;\n\t\t\tdouble toeInAz = 0.0;\n\t\t\tdouble\ttoeInEl = 0.0;\n\t\t\tint left = (metadataEntry.first_line_sample - 1) /* * metadataEntry.pixel_averaging_width*/;\n\t\t\tint width = metadataEntry.n_line_samples * metadataEntry.pixel_averaging_width;\n\t\t\tint top = (metadataEntry.first_line - 1) /* * metadataEntry.pixel_averaging_height*/;\n\t\t\tint height = metadataEntry.n_lines * metadataEntry.pixel_averaging_height;\n\t\t\t\n\t\t\t// Move downsampled images back\n\t\t\tif (metadataEntry.pixel_averaging_width > 1) {\n\t\t\t\tradius = 75.0;\n\t\t\t}\n/* needs to be activited by a key command\t\t\t\n\t\t\telse if ((focusOnCmdSeq) \n\t\t\t\t\t&& (!MerUtils.cmdSeqFromFilename(panEntry.imageListEntry.getFilename()).equalsIgnoreCase(selectedCmdSeq))) {\n\t\t\t\tradius = 75.0;\n\t\t\t}\t\t\t\n\t\t\t*/\n\t\t\t\n\t\t\tif (panEntry == selectedPanImageEntry) {\n\t\t\t\tif (focusMode)\n\t\t\t\t\tradius = 25.0;\n\t\t\t}\n\t\t\t\n\t\t\tif (camera == 'N') {\n\t\t\t\timageFOV = 45.1766; // the \"official\" FOV\n\t\t\t\tif (spacecraftIdChar == MerUtils.SPACECRAFT_ID_CHAR_OPPORTUNITY) {\n\t\t\t\t\tif (cameraEye == 'R' || cameraEye == 'r') {\n\t\t\t\t\t\ttwist = 0.25;\n\t\t\t\t\t\timageFOV = imageFOV * 1.012;\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\ttwist = -0.1;\n\t\t\t\t\t\timageFOV = imageFOV * 1.006;\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (spacecraftIdChar == MerUtils.SPACECRAFT_ID_CHAR_SPIRIT) {\n\t\t\t\t\t//if (params.viewMode != PanParams.VIEWMODE_RIGHT_RAW) {\n\t\t\t\t\t\ttwist = -0.7;\n\t\t\t\t\t//}\n\t\t\t\t\timageFOV = imageFOV * 1.012; //1.015;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (camera == 'P') {\n\t\t\t\timageFOV = 15.8412; // the official value\n\t\t\t\t/*if (params.viewMode != PanParams.VIEWMODE_RIGHT_RAW) {\n\t\t\t\t\t// compensate for toe-in left\n\t\t\t\t\tazimuthDeg += 1.0;\n\t\t\t\t\televationDeg += 0.3;\n\t\t\t\t}*/\t\t\t\t\t\n\t\t\t\t// TODO reverse toe in for right camera\n\t\t\t\t//toeInComp = 0.6;\n\t\t\t\tif (spacecraftIdChar == MerUtils.SPACECRAFT_ID_CHAR_OPPORTUNITY) {\n//\t\t\t\t\t\ttwistDeg = 0.3; // was 0.4;\n\t\t\t\t\ttwist = 0.3;\n\t\t\t\t\timageFOV = imageFOV * 1.015;\n\t\t\t\t\ttoeInAz = 1.1;\t\t\n\t\t\t\t\ttoeInEl = -0.35;\n\t\t\t\t}\n\t\t\t\telse if (spacecraftIdChar == MerUtils.SPACECRAFT_ID_CHAR_SPIRIT) {\n\t\t\t\t\ttwist = +0.0;\n\t\t\t\t\timageFOV = imageFOV * 1.015;\n\t\t\t\t\t//fovDeg = fovDeg * 1.015;\n\t\t\t\t\ttoeInAz = 0.0;\n\t\t\t\t\ttoeInEl = 0.0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdouble tranWidth = Math.sin(imageFOV * Math.PI / 360) * radius;\n\t\t\tfloat floatDistance = (float) (Math.cos(imageFOV * Math.PI / 360) * radius);\n\t\t\tfloat floatLeft = (float)(tranWidth * (left - 512) / 512);\n\t\t\tfloat floatTop = (float)(tranWidth * (512-(top+height)) / 512);\n\t\t\tfloat floatRight = (float)(tranWidth * (left+width-512) / 512);\n\t\t\tfloat floatBottom = (float)(tranWidth * (512-top) / 512);\n\t\t\t\n\t\t\tsetImageRotation((float)(metadataEntry.inst_az_rover + toeInAz), (float)(metadataEntry.inst_el_rover + toeInEl), (float)twist);\n\t\t\t\n\t\t\tif (panEntry.textureNumber >= 0) {\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, panEntry.textureNumber);\t\t\t\t\n\t\t\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\t\tGL11.glTexCoord2f(0.0f, 0.0f);\n\t\t\t\tGL11.glVertex3f(floatLeft, floatTop, -floatDistance);\n\t\t\t\tGL11.glTexCoord2f(1.0f, 0.0f);\n\t\t\t\tGL11.glVertex3f(floatRight, floatTop, -floatDistance);\n\t\t\t\tGL11.glTexCoord2f(1.0f, 1.0f);\n\t\t\t\tGL11.glVertex3f(floatRight, floatBottom, -floatDistance);\n\t\t\t\tGL11.glTexCoord2f(0.0f, 1.0f);\n\t\t\t\tGL11.glVertex3f(floatLeft, floatBottom, -floatDistance);\t\t\t\t\n\t\t GL11.glEnd();\n\t\t \n\t\t if ((panEntry == selectedPanImageEntry) && focusMode) {\n\t\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\t\t// no texture\n\t\t\t\t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n\t\t\t\t\tGL11.glBegin(GL11.GL_LINES);\n\t\t\t\t\tGL11.glVertex3f(floatLeft, floatTop, -floatDistance);\n\t\t\t\t\tGL11.glVertex3f(floatRight, floatTop, -floatDistance);\n\t\t\t\t\tGL11.glVertex3f(floatRight, floatTop, -floatDistance);\n\t\t\t\t\tGL11.glVertex3f(floatRight, floatBottom, -floatDistance);\n\t\t\t\t\tGL11.glVertex3f(floatRight, floatBottom, -floatDistance);\n\t\t\t\t\tGL11.glVertex3f(floatLeft, floatBottom, -floatDistance);\t\t\t\t\n\t\t\t\t\tGL11.glVertex3f(floatLeft, floatBottom, -floatDistance);\t\t\t\t\n\t\t\t\t\tGL11.glVertex3f(floatLeft, floatTop, -floatDistance);\n\t\t\t GL11.glEnd();\n\t\t }\n\t\t\t}\n\t\t\telse {\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\t\t// no texture\n\t\t\t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n\t\t\t\tGL11.glBegin(GL11.GL_LINES);\n\t\t\t\tGL11.glVertex3f(floatLeft, floatTop, -floatDistance);\n\t\t\t\tGL11.glVertex3f(floatRight, floatTop, -floatDistance);\n\t\t\t\tGL11.glVertex3f(floatRight, floatTop, -floatDistance);\n\t\t\t\tGL11.glVertex3f(floatRight, floatBottom, -floatDistance);\n\t\t\t\tGL11.glVertex3f(floatRight, floatBottom, -floatDistance);\n\t\t\t\tGL11.glVertex3f(floatLeft, floatBottom, -floatDistance);\t\t\t\t\n\t\t\t\tGL11.glVertex3f(floatLeft, floatBottom, -floatDistance);\t\t\t\t\n\t\t\t\tGL11.glVertex3f(floatLeft, floatTop, -floatDistance);\n\t\t GL11.glEnd();\n\t\t\t}\n\t\t}\t\t\n\t}", "private static double[] getVolumes(final ImageStack aInputStack, final int[] aLables, final double[] aResol)\r\n\t{\r\n\t\tfinal double[] volumes = GeometricMeasures3D.volume(aInputStack, aLables, aResol);\r\n\t\treturn volumes;\r\n\t}", "@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}", "public int getVolume() {\n return volume;\n }", "public int getVolume() {\n return volume_;\n }", "private void setIndexData() {\n // allocate connectivity\n final int tris = 4 * ((zSamples - 2) * (radialSamples) + 2);\n setTriangleIndicesSize (tris);\n\n // generate connectivity\n int index = 0;\n for ( int iZ = 0, iZStart = 0; iZ < (zSamples - 3); iZ++ ) {\n int i0 = iZStart;\n int i1 = i0 + 1;\n iZStart += (radialSamples + 1);\n int i2 = iZStart;\n int i3 = i2 + 1;\n for ( int i = 0; i < radialSamples; i++, index += 6 ) {\n if ( !viewInside ) {\n putTriangleIndex (i0++, i1, i2);\n putTriangleIndex (i1++, i3++, i2++);\n } else // inside view\n {\n putTriangleIndex (i0++, i2, i1);\n putTriangleIndex (i1++, i2++, i3++);\n }\n }\n }\n\n /*\n * // south pole triangles for ( int i = 0; i < radialSamples; i++,\n * index += 3 ) { if ( !viewInside ) { putTriangleIndex (i,\n * getVertexCount () - 2, i + 1); } else // inside view {\n * putTriangleIndex (i, i + 1, getVertexCount () - 2); } }\n *\n * // north pole triangles final int iOffset = (zSamples - 3) *\n * (radialSamples + 1); // (zSamples - 3) * (radialSamples + 1); // +1\n * for ( int i = 0; i < radialSamples; i++, index += 3 ) { if (\n * !viewInside ) { putTriangleIndex (i + iOffset, i + 1 + iOffset,\n * getVertexCount () - 1); } else // inside view { putTriangleIndex (i +\n * iOffset, getVertexCount () - 1, i + 1 + iOffset); } }\n */\n }", "public byte getVolume(){\r\n\t\treturn volume;\r\n\t}", "public void showSlice(int z, int t, int c) {\n int index = db.getIndex(z - 1, t - 1, c - 1);\n if (LociDataBrowser.DEBUG) {\n db.log(\"showSlice: index=\" + index +\n \"; z=\" + z + \"; t=\" + t + \"; c=\" + c);\n }\n showSlice(index);\n }", "@Override\n\tpublic float volume() {\n\t\treturn 0;\n\t}", "int getOriginalVolume();", "public void setDimensionFromCubicMesh(){\r\n\t\t\r\n\t\t\r\n\t}", "public void setVolume(Float volume) throws DynamicCallException, ExecutionException {\n call(\"setVolume\", volume).get();\n }", "public double getVolume()\n {\n return volume / 512;\n }", "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "private VCImage getVCImageFromZSeries(byte[][] zSections) throws ImageException {\r\n\tVector<VCImage> images = new Vector<VCImage>();\r\n\ttry {\r\n\t\tfor (int i = 0; i < zSections.length; i++){\r\n\t\t\tbyte imageData[] = zSections[i];\r\n\t\t\tImageFile imageFile = new ImageFile(imageData);\r\n\t\t\timages.addElement(imageFile.getVCImage());\r\n\t\t}\r\n\t} catch (Exception e) {\r\n\t\tthrow new ImageException(\"Error reading images from archive: \" + e.getMessage());\r\n\t}\r\n\tVCImage imagesArray[] = new VCImage[images.size()];\r\n\timages.copyInto(imagesArray);\r\n\tVCImage newVCImage;\r\n\ttry {\r\n\t\tnewVCImage = VCImage.concatenateZSeries(imagesArray);\r\n\t} catch (Exception e) {\r\n\t\tthrow new ImageException(\"Error constructing 3D image from Z series: \" + e.getMessage());\r\n\t}\r\n\treturn newVCImage;\r\n}", "public r3inputlayer(double[] inputarray, int depth){\r\n double[][][] newarray = new double[inputarray.length][1][depth + 2];\r\n for(int i = 0; i < inputarray.length; i++){\r\n newarray[i][0][0] = inputarray[i];\r\n }\r\n this.state = newarray;\r\n this.width = inputarray.length;\r\n }", "public int getVolume();", "public DynamicModelPart setZ(float[] z) {\n this.z = z;\n return this;\n }", "public abstract double getVolume();", "private static DataCube generateDataCubeFromMonochromeImages(String filenameSpecifier) throws IOException {\n\t\t// Check the format of the string\n\t\tif (!filenameSpecifier.contains(\"%\") || \n\t\t\t\tfilenameSpecifier.indexOf(\"%\") != filenameSpecifier.lastIndexOf(\"%\")) {\n\t\t\tthrow new IllegalArgumentException(\"Filename specifier must contain exactly one '%'.\");\n\t\t}\n\t\t\n\t\t// Find the dimension (number of monochrome images) of the hyperspectral image\n\t\tint noImages = 0;\n\t\tFile file = new File(filenameSpecifier.replace(\"%\", Integer.toString(noImages+1)));\n\t\twhile (file.exists() && !file.isDirectory()) {\n\t\t\tnoImages++;\n\t\t\tfile = new File(filenameSpecifier.replace(\"%\", Integer.toString(noImages+1)));\n\t\t}\n\t\t\n\t\t// Check that we loaded at least one image\n\t\tif (noImages == 0) {\n\t\t\tthrow new FileNotFoundException(\"No images were found using the specifier provided.\");\n\t\t}\n\t\t\n\t\t// Get the width and height of the first image, to check that they have consistent dimensions\n\t\tfile = new File(filenameSpecifier.replace(\"%\", Integer.toString(1)));\n\t\tBufferedImage bi = ImageIO.read(file);\n\t\tint height = bi.getHeight();\n\t\tint width = bi.getWidth();\n\t\t\n\t\t// Create a data cube and load the images into the structure\n\t\tDataCube dc = new DataCube();\n\t\tdc.width = width;\n\t\tdc.height = height;\n\t\tdc.depth = noImages;\n\t\tdc.dataCube = new short[width][height][noImages];\n\t\t\n\t\t// Loop through each image, and add its contents to the data cube\n\t\t// We loop through images as our outer loop because we want to optimise memory management\n\t\t// (Avoid loading all images into memory at once)\n\t\tfor (int k = 0; k < noImages; k++) {\n\t\t\tFile imageFile = new File(filenameSpecifier.replace(\"%\", Integer.toString(k+1))); // images indexed from 1\n\t\t\tBufferedImage image = ImageIO.read(imageFile);\n\t\t\n\t\t\t// Check for consistent image dimension\n\t\t\tif (image.getHeight() != height || image.getWidth() != width) {\n\t\t\t\tthrow new IOException(\"Images have inconsistent dimensions.\");\n\t\t\t}\n\t\t\t\n\t\t\t// Iterate through image adding its data to the datacube\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\t\tint colour = image.getRGB(i, j);\n\t\t\t\t\tdc.dataCube[i][j][k] = (short) (colour & 0xFF);\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t// Return the data cube\n\t\treturn dc;\n\t}", "@Test public void volumeTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(28.67462334314945, pList.totalVolume(), 0.00001);\n Assert.assertEquals(9.558207781049816, pList.averageVolume(), 0.00001);\n \n PentagonalPyramidList2 pList2 = new PentagonalPyramidList2(\"ListName\", \n null, 0);\n Assert.assertEquals(0.0, pList2.averageVolume(), 0.00001);\n \n }", "private float getVal(float[] buffer, int col, int row, int slice) {\r\n float rtnVal;\r\n if (col < 0) col = 0;\r\n if (col >= xDim) col = xDim - 1;\r\n if (row < 0) row = 0;\r\n if (row >= yDim) row = yDim - 1;\r\n if (slice < 0) slice = 0;\r\n if (slice >= zDim) slice = zDim - 1;\r\n rtnVal = buffer[slice * yDim * xDim + row * xDim + col];\r\n return rtnVal;\r\n }", "public int getVolume() {\n\t\treturn this.volume;\n\t}", "@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}", "public double getVolume() {\n return volume;\n }", "public void updateChunkyPixel(int[] location, int[] dimension, double[] parameters);", "public double volume()\r\n {\r\n double volume = Math.pow(radius, 2) * (height / 3) * Math.PI;\r\n return volume;\r\n }", "@Override\r\n\tpublic float getVolume() {\n\t\treturn 0;\r\n\t}", "public double getVolume() {\n\t\treturn base.getArea() * height;\n\t}", "private void readInterleaved(final ImageReadParam param, final BufferedImage destination, final ImageInputStream input) throws IOException {\n final int width = header.width();\n final int height = header.height();\n\n final Rectangle aoi = getSourceRegion(param, width, height);\n final Point offset = param == null ? new Point(0, 0) : param.getDestinationOffset();\n\n // Set everything to default values\n int sourceXSubsampling = 1;\n int sourceYSubsampling = 1;\n int[] sourceBands = null;\n int[] destinationBands = null;\n\n // Get values from the ImageReadParam, if any\n if (param != null) {\n sourceXSubsampling = param.getSourceXSubsampling();\n sourceYSubsampling = param.getSourceYSubsampling();\n\n sourceBands = param.getSourceBands();\n destinationBands = param.getDestinationBands();\n }\n\n // Ensure band settings from param are compatible with images\n checkReadParamBandSettings(param, header.bitplanes() / 8, destination.getSampleModel().getNumBands());\n\n // NOTE: Each row of the image is stored in an integral number of 16 bit words.\n // The number of words per row is words=((w+15)/16)\n int planeWidth = 2 * ((width + 15) / 16);\n final byte[] planeData = new byte[8 * planeWidth];\n\n WritableRaster destRaster = destination.getRaster();\n if (destinationBands != null || offset.x != 0 || offset.y != 0) {\n destRaster = destRaster.createWritableChild(0, 0, destRaster.getWidth(), destRaster.getHeight(), offset.x, offset.y, destinationBands);\n }\n\n WritableRaster rowRaster = destination.getRaster().createCompatibleWritableRaster(8 * planeWidth, 1);\n Raster sourceRow = rowRaster.createChild(aoi.x, 0, aoi.width, 1, 0, 0, sourceBands);\n\n final byte[] data = ((DataBufferByte) rowRaster.getDataBuffer()).getData();\n final int channels = (header.bitplanes() + 7) / 8;\n final int planesPerChannel = 8;\n Object dataElements = null;\n\n for (int srcY = 0; srcY < height; srcY++) {\n for (int c = 0; c < channels; c++) {\n for (int p = 0; p < planesPerChannel; p++) {\n readPlaneData(planeData, p * planeWidth, planeWidth, input);\n }\n\n // Skip rows outside AOI\n if (srcY >= (aoi.y + aoi.height)) {\n return;\n }\n else if (srcY < aoi.y || (srcY - aoi.y) % sourceYSubsampling != 0) {\n continue;\n }\n\n if (header.formType == IFF.TYPE_ILBM) {\n // NOTE: Using (channels - c - 1) instead of just c,\n // effectively reverses the channel order from RGBA to ABGR\n int off = (channels - c - 1);\n\n int pixelPos = 0;\n for (int planePos = 0; planePos < planeWidth; planePos++) {\n IFFUtil.bitRotateCW(planeData, planePos, planeWidth, data, off + pixelPos * channels, channels);\n pixelPos += 8;\n }\n }\n else if (header.formType == IFF.TYPE_PBM) {\n System.arraycopy(planeData, 0, data, srcY * 8 * planeWidth, planeWidth);\n }\n else {\n throw new AssertionError(String.format(\"Unsupported FORM type: %s\", toChunkStr(header.formType)));\n }\n }\n\n if (srcY >= aoi.y && (srcY - aoi.y) % sourceYSubsampling == 0) {\n int dstY = (srcY - aoi.y) / sourceYSubsampling;\n // TODO: Avoid createChild if no region?\n if (sourceXSubsampling == 1) {\n destRaster.setRect(0, dstY, sourceRow);\n }\n else {\n for (int srcX = 0; srcX < sourceRow.getWidth(); srcX += sourceXSubsampling) {\n dataElements = sourceRow.getDataElements(srcX, 0, dataElements);\n int dstX = srcX / sourceXSubsampling;\n destRaster.setDataElements(dstX, dstY, dataElements);\n }\n }\n }\n\n processImageProgress(srcY * 100f / width);\n if (abortRequested()) {\n processReadAborted();\n break;\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void setEffectsVolume(float volume){\n\t\tvolume = volume / 100;\n\t\tif (volume < 0){\n\t\t\tvolume = 0;\n\t\t}\t\n\t\tif (volume > 1){\n\t\t\tvolume = 1;\n\t\t}\n\t\t\n\t\tthis.mLeftVolume = this.mRightVolume = volume;\n\t\t\n\t\t// change the volume of playing sounds\n\t\tIterator<?> iter = this.mSoundIdStreamIdMap.entrySet().iterator();\n\t\twhile (iter.hasNext()){\n\t\t\tMap.Entry<Integer, Integer> entry = (Map.Entry<Integer, Integer>)iter.next();\n\t\t\tthis.mSoundPool.setVolume(entry.getValue(), mLeftVolume, mRightVolume);\n\t\t}\n\t}", "public void showSlice(int index) {\n if (index >= 1 && index <= imp.getStackSize()) {\n imp.setSlice(index);\n imp.updateAndDraw();\n }\n else if (LociDataBrowser.DEBUG) {\n db.log(\"invalid index: \" + index + \" (size = \" + imp.getStackSize() +\n \"; zSliceSel = \" + zSliceSel.getValue() +\n \"; tSliceSel = \" + tSliceSel.getValue() + \")\");\n }\n }", "private void compute() {\r\n int i, j, k;\r\n float gx, gy, gz;\r\n for (int q = 0; q < data.length; q++) {\r\n data[q] = new VoxelGradient();\r\n }\r\n\r\n\r\n // gradient at extremes, 0 and dim-1\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n gx = (volume.data[(i + 1) + (dimX * (j + (dimY * k)))] - volume.data[i + (dimX * (j + (dimY * k)))]) / 1;\r\n gy = (volume.data[i + (dimX * ((j + 1) + (dimY * k)))] - volume.data[i + (dimX * (j + (dimY * k)))]) / 1;\r\n gz = (volume.data[i + (dimX * (j + (dimY * (k + 1))))] - volume.data[i + (dimX * (j + (dimY * k)))]) / 1;\r\n data[i + dimX * (j + dimY * k)] = new VoxelGradient(gx, gy, gz);\r\n i = dimX - 1;\r\n j = dimY - 1;\r\n k = dimZ - 1;\r\n gx = (volume.data[i + (dimX * (j + (dimY * k)))] - volume.data[(i - 1) + (dimX * (j + (dimY * k)))]) / 1;\r\n gy = (volume.data[i + (dimX * (j + (dimY * k)))] - volume.data[i + (dimX * ((j - 1) + (dimY * k)))]) / 1;\r\n gz = (volume.data[i + (dimX * (j + (dimY * k)))] - volume.data[i + (dimX * (j + (dimY * (k - 1))))]) / 1;\r\n data[i + dimX * (j + dimY * k)] = new VoxelGradient(gx, gy, gz);\r\n\r\n\r\n //gradient in non-extreme points\r\n for (i = 1; i < dimX - 1; i++) {\r\n for (j = 1; j < dimY - 1; j++) {\r\n for (k = 1; k < dimZ - 1; k++) {\r\n\r\n gx = (volume.data[(i + 1) + (dimX * (j + (dimY * k)))] - volume.data[(i - 1) + (dimX * (j + (dimY * k)))]) / 2;\r\n\r\n gy = (volume.data[i + (dimX * ((j + 1) + (dimY * k)))] - volume.data[i + (dimX * ((j - 1) + (dimY * k)))]) / 2;\r\n\r\n gz = (volume.data[i + (dimX * (j + (dimY * (k + 1))))] - volume.data[i + (dimX * (j + (dimY * (k - 1))))]) / 2;\r\n\r\n data[i + dimX * (j + dimY * k)] = new VoxelGradient(gx, gy, gz);\r\n\r\n\r\n }\r\n }\r\n }\r\n }", "@Override\n public void getDimensions() {\n DecimalFormat df = new DecimalFormat(\"###.000\");\n System.out.println(\"RESULT: \" + getType() + \" dimensions: (2/3)pi * \" + r + \"^3\");\n System.out.println(\"RESULT: \" + getType() + \" volume \" + getVolume() + \" = [\" + df.format(this.vol) + \"]\");\n }", "double[] Write(){\n\n double[] volumes = new double[3]; /** Feature Vector */\n\n /** Reading image from file */\n ImageReader imageReader = new ImageReader(image_Location);\n \n /** Writing 175 images */\n imageReader.writeImagefiles();\n\n /** Image array of full size */\n Image = imageReader.getImage();\n\n\n /** Image compression by interpolation */\n Compress compress = new Compress(Image);\n\n /** Reduced image */\n Data_Nn = compress.getReduced();\n\n /** Writing Features in a text file */\n ImageWriter imageWriter = new ImageWriter(Data_Nn,text_Location);\n \n /** get feature vector from compressed image */\n volumes = imageWriter.getVolume();\n return volumes;\n }", "public void update() {\n\t\tif (c.getResamplingFactor() != 1) return;\n\t\trenderer.getVolume().updateData();\n\t}", "int[] getSliceShape() throws InvalidRangeException;", "public abstract double calcVolume();", "public abstract double calcVolume();" ]
[ "0.54474366", "0.54019016", "0.54005027", "0.5296449", "0.528823", "0.5275405", "0.526604", "0.5265452", "0.52059644", "0.5196536", "0.51343304", "0.5126698", "0.50657517", "0.50403243", "0.5020477", "0.50155425", "0.4981499", "0.49377626", "0.49365044", "0.49263337", "0.49176577", "0.49050477", "0.48974288", "0.48324132", "0.48071146", "0.47959852", "0.477371", "0.4759059", "0.4758018", "0.4707447", "0.46873105", "0.46823052", "0.46676525", "0.46673724", "0.4658385", "0.46576175", "0.46496725", "0.4648226", "0.46417335", "0.46401587", "0.46310505", "0.46243188", "0.46219045", "0.4608032", "0.46057817", "0.46056166", "0.45924026", "0.4563485", "0.45620394", "0.45530668", "0.45488286", "0.45466965", "0.45381507", "0.453635", "0.452787", "0.45232707", "0.45220873", "0.45154586", "0.45139444", "0.45122585", "0.44957837", "0.4495407", "0.4494784", "0.44944793", "0.4493966", "0.4491487", "0.44912103", "0.44847664", "0.4468289", "0.4467779", "0.44655606", "0.44645452", "0.44616014", "0.44577816", "0.44559878", "0.44515023", "0.4450344", "0.44484276", "0.44378608", "0.44370356", "0.44232148", "0.44211206", "0.44208774", "0.44197944", "0.44167912", "0.44167912", "0.44077286", "0.440338", "0.4400382", "0.44001156", "0.43966737", "0.43809098", "0.43729186", "0.43724012", "0.43704692", "0.43704036", "0.4370313", "0.43687677", "0.43686223", "0.43674886", "0.43674886" ]
0.0
-1
Specify the lookup table to use for mapping input RGB colors to intensity.
public void setInputMap(RendererMapColor kMap) { super.setInputMap(kMap); // Reset the intensity image which corresponds to the RGB channels // so that it can be recomputed. m_acImageI = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected float[] getRgbLut() {\n if ( lut_ == null ) {\n String loc = LUT_BASE + resourceName_;\n logger_.config( \"Reading lookup table at \" + loc );\n URL url = Shaders.class.getResource( loc );\n try {\n if ( url == null ) {\n throw new FileNotFoundException( \"No resource \" + loc );\n }\n else {\n lut_ = readFloatArray( url );\n }\n }\n catch ( IOException e ) {\n logger_.warning( \"No colour map for \" + this + \": \" + e );\n lut_ = new float[ 3 ];\n }\n }\n return lut_;\n }", "public BufferedImage randomLookupTable(BufferedImage image) {\r\n //convert buffered image to array.\r\n int[][][] arr = convertToArray(image);\r\n //set random table values\r\n int[] random = new int[256];\r\n Random r = new Random();\r\n for (int i = 0; i < random.length; i++) {\r\n random[i] = r.nextInt(255); //random from 0-255\r\n }\r\n for (int i = 0; i < arr.length; i++) {\r\n for (int j = 0; j < arr[1].length; j++) {\r\n //loop through red, blue and green.\r\n for (int k = 1; k < 4; k++) {\r\n int color = arr[i][j][k]; //set values to lookup table values\r\n color = random[color];\r\n if (color > 255) {\r\n arr[i][j][k] = 255; //max colour value 255.\r\n } else if (color < 0) {\r\n arr[i][j][k] = 0; //min colour value 0.\r\n } else {\r\n arr[i][j][k] = color; //set new colour value.\r\n }\r\n }\r\n }\r\n }\r\n return convertToBimage(arr); //return array\r\n }", "private void InitColorTable(){\n\n }", "protected abstract float[] getRgbLut();", "public static interface ColorMap {\n\t\tpublic Color map(Color a, double x, double y);\n\t}", "public static int lutvalues(int[] values) {\n\t\n\n\t int[] b = {64,128,192,256};\n\t \n\t int redindex = 0;\n\t int greenindex=0;\n\t int blueindex=0;\n\n\t for(int i=0; i<indexlevel8.length;i++) {\n\t if(values[0] <= indexlevel8[i]) { redindex = i; break;}\n\t }\n\t \n\t for(int i=0; i<indexlevel8.length;i++) {\n\t\t if(values[1] <= indexlevel8[i]) { greenindex = i; break;}\n\t\t }\n\t \n\t for(int i=0; i<b.length;i++) {\n\t\t if(values[2] <= b[i]) { blueindex = i; break;}\n\t }\n\t \n\t int indexLUT = (bytevaluesforredandgreen[redindex])+(bytevaluesforredandgreen[greenindex]) +(bytevalueforblue[blueindex]);\n\t \n\t return indexLUT; // value of the index in 8bit lookup table\n }", "public LUT(String name, int[] lookup8, int[] lookup16) {\n lutName = name;\n this.lut8 = lookup8;\n this.lut16 = lookup16;\n }", "private int[] readLut(final int size) throws FormatException {\n\t\t\tfinal int nbytes = 3 * size;\n\t\t\tfinal byte[] c = new byte[nbytes];\n\t\t\tint n = 0;\n\t\t\ttry {\n\t\t\t\tn = getSource().read(c);\n\t\t\t}\n\t\t\tcatch (final IOException e) {}\n\n\t\t\tif (n < nbytes) {\n\t\t\t\tthrow new FormatException(\"Color table not found\");\n\t\t\t}\n\n\t\t\tfinal int[] lut = new int[256];\n\t\t\tint j = 0;\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tfinal int r = c[j++] & 0xff;\n\t\t\t\tfinal int g = c[j++] & 0xff;\n\t\t\t\tfinal int b = c[j++] & 0xff;\n\t\t\t\tlut[i] = 0xff000000 | (r << 16) | (g << 8) | b;\n\t\t\t}\n\t\t\treturn lut;\n\t\t}", "private String[] convertLookupTables(LookupOp lookupOp) {\n\t\tLookupTable lookupTable = lookupOp.getTable();\n\t\tint nComponents = lookupTable.getNumComponents();\n\n\t\tif ((nComponents != 1) && (nComponents != 3) && (nComponents != 4))\n\t\t\tthrow new SVGGraphics2DRuntimeException(ERR_ILLEGAL_BUFFERED_IMAGE_LOOKUP_OP);\n\n\t\tStringBuilder[] lookupTableBuf = new StringBuilder[nComponents];\n\t\tfor (int i = 0; i < nComponents; i++)\n\t\t\tlookupTableBuf[i] = new StringBuilder();\n\n\t\tif (!(lookupTable instanceof ByteLookupTable)) {\n\t\t\tint[] src = new int[nComponents];\n\t\t\tint[] dest = new int[nComponents];\n\t\t\tint offset = lookupTable.getOffset();\n\n\t\t\t// Offsets are used for constrained sources. Therefore,\n\t\t\t// the lookup values should never be used under offset.\n\t\t\t// There is no SVG equivalent for this behavior.\n\t\t\t// These values are mapped to identity.\n\t\t\tfor (int i = 0; i < offset; i++) {\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\t// lookupTableBuf[j].append(Integer.toString(i));\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(i / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = offset; i <= 255; i++) {\n\t\t\t\t// Fill in source array\n\t\t\t\tArrays.fill(src, i);\n\n\t\t\t\t// Get destination values\n\t\t\t\tlookupTable.lookupPixel(src, dest);\n\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(dest[j] / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tbyte[] src = new byte[nComponents];\n\t\t\tbyte[] dest = new byte[nComponents];\n\n\t\t\tint offset = lookupTable.getOffset();\n\n\t\t\t// Offsets are used for constrained sources. Therefore,\n\t\t\t// the lookup values should never be used under offset.\n\t\t\t// There is no SVG equivalent for this behavior.\n\t\t\t// These values are mapped to identity.\n\t\t\tfor (int i = 0; i < offset; i++) {\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\t// lookupTableBuf[j].append(Integer.toString(i));\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(i / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i <= 255; i++) {\n\t\t\t\t// Fill in source array\n\t\t\t\tArrays.fill(src, (byte) (0xff & i));\n\n\t\t\t\t// Get destination values\n\t\t\t\t((ByteLookupTable) lookupTable).lookupPixel(src, dest);\n\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\tlookupTableBuf[j].append(doubleString((0xff & dest[j]) / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tString[] lookupTables = new String[nComponents];\n\t\tfor (int i = 0; i < nComponents; i++)\n\t\t\tlookupTables[i] = lookupTableBuf[i].toString().trim();\n\n\t\t/*\n\t\t * for(int i=0; i<lookupTables.length; i++){\n\t\t * System.out.println(lookupTables[i]); }\n\t\t */\n\n\t\treturn lookupTables;\n\t}", "protected int[][] readColorMap(BinaryDataReader dataReader, int lutLength)\n\t\t\tthrows IOException\n\t{\n\t\t// Allocate memory for raw array\n\t // (each triplet of components is stored in two bytes)\n\t\tint nBytes = 3 * lutLength * 2;\n\t\tbyte[] lut16 = new byte[nBytes];\n\t\t\n\t\t// convert state to long offset for reading large buffer\n\t\tlong offset = ((long) this.value) & 0xffffffffL;\n\n\t\t// read the full raw array\n\t\tlong saveLoc = dataReader.getFilePointer();\n\t\tdataReader.seek(offset);\n\t\tint nRead = dataReader.readByteArray(lut16);\n\t\tdataReader.seek(saveLoc);\n\t\tif (nRead != nBytes)\n\t\t{\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"Could not decode the color palette from TIFF File\");\n\t\t}\n\t\t\n\t\t// convert raw array into N-by-3 look-up table\n\t\tint[][] lut = new int[lutLength][3];\n\t\tint j = 0;\n\t\tif (dataReader.getOrder() == ByteOrder.LITTLE_ENDIAN)\n\t\t\tj++;\n\t\tfor (int i = 0; i < lutLength; i++)\n\t\t{\n\t\t\tlut[i][0] = lut16[j] & 0x00FF;\n\t\t\tlut[i][1] = lut16[j + 512] & 0x00FF;\n\t\t\tlut[i][2] = lut16[j + 1024] & 0x00FF;\n\t\t\tj += 2;\n\t\t}\n\t\treturn lut;\n\t}", "private static HashMap<String, TColor> createColors(){\n\t\tHashMap<String, TColor> iconColors = new HashMap<String, TColor>();\n\t\ticonColors.put(\"Arts & Entertainment\", TColor.newHex(\"E62733\"));\n\t\ticonColors.put(\"College & University\", TColor.newHex(\"E0006D\"));\n\t\ticonColors.put(\"Food\", TColor.newHex(\"917A2C\"));\n\t\ticonColors.put(\"Nightlife Spot\", TColor.newHex(\"582583\"));\n\t\ticonColors.put(\"Outdoors & Recreation\", TColor.newHex(\"00A43C\"));\n\t\ticonColors.put(\"Professional & Other Places\", TColor.newHex(\"00A38C\"));\n\t\ticonColors.put(\"Residence\", TColor.newHex(\"FFED00\"));\n\t\ticonColors.put(\"Shop & Service\", TColor.newHex(\"0067B2\"));\n\t\ticonColors.put(\"Travel & Transport\", TColor.newHex(\"F39200\"));\n//\t\tfor(Entry<String, TColor> e: iconColors.entrySet()){\n//\t\t\te.getValue().saturate(0.15f);\n//\t\t}\n\t\treturn iconColors;\n\t}", "public double getIntensity(int n) {\n return this.colorScheme.apply(n);\n }", "public abstract int rgbColor(double u, double v);", "public void init_lookup(){\n for(int i =0 ; i< MAX ; i++){\n lookup[i] =0;\n }\n }", "private int optimizeForNColorsAndRebuildPalette(BufferedImage img, IMapColor mapColor) {\n \t\t\n \t\tint maxDist = 0;\n \t\tmaxDist = mapColor.getMinimalPaletteDistance();\n \n \t\tHistogram hist = new Histogram(img);\n \t\tint interestingColors = 0;\n \t\tint mappedColors = 0;\n \t\t\n \t\tint mostInterestingColors = 0;\n \t\t\n \t\t//int total = img.getWidth() * img.getHeight();\n \t\t\n \t\t//for (int mask = 4; mask < 7; mask++) {\n \t\t\tmappedColors = hist.generate(mapColor, maxDist, 0);\n \t\t\tinterestingColors = hist.size();\n \t\t\tif (interestingColors > mostInterestingColors)\n \t\t\t\tmostInterestingColors = interestingColors;\n \t\t\tSystem.out.println(\"For mask \" + Integer.toHexString(0) \n \t\t\t\t\t+\"; # interesting = \" + interestingColors\n \t\t\t\t\t+\"; # mapped = \" + mappedColors);\n \t\t\t//if (interestingColors <= 256)\n \t\t\t//\tbreak;\n \t\t\t//if (mappedColors > total / 2)\n \t\t\t//\tbreak;\n \t\t//} \n \t\t\n \t\tint usedColors = Math.min(mapColor.getNumColors(), interestingColors);\n \t\t\n \t\tSystem.out.println(\"interestingColors=\"+interestingColors\n \t\t\t\t+\"; usedColors=\"+usedColors\n \t\t\t\t+\"; mappedColors=\" + mappedColors);\n \t\t\n \t\tint replaceDist = mapColor.getMaximalReplaceDistance(mostInterestingColors);\n \n \t\tint[] paletteSelections = new int[usedColors];\n \t\t\n \t\tif (mapColor.getNumColors() >= 16) {\n \t\t\tselectExponential(interestingColors, usedColors, paletteSelections);\n \t\t} else {\n \t\t\tselectNovelColors(mapColor, hist, interestingColors, usedColors, paletteSelections);\n \t\t}\n \t\t\n \t\tfor (int c = 0; c < usedColors; c++) {\n \t\t\tint idx = hist.getColorIndex(paletteSelections[c]);\n \t\t\tint r = (idx>>6) & 0x7;\n \t\t\tint g = (idx>>3) & 0x7;\n \t\t\tint b = (idx>>0) & 0x7;\n \t\t\tcanvas.setGRB333(c, g, r, b);\n \t\t\t\n \t\t\treplaceColor(img, hist, idx, rgb8ToPixel(thePalette[c]), replaceDist);\n \t\t}\n \t\t\n \t\t\n \t\treturn maxDist;\n \t}", "public int[] getColorIndices();", "public void calcHistogramLUT(int dimProduct){\n histLUT = new ArrayList<int[]>();\n \n // Fill the lookup table\n int[] rhistogram = new int[256];\n int[] ghistogram = new int[256];\n int[] bhistogram = new int[256];\n \n for(int i=0; i<rhistogram.length; i++) rhistogram[i] = 0;\n for(int i=0; i<ghistogram.length; i++) ghistogram[i] = 0;\n for(int i=0; i<bhistogram.length; i++) bhistogram[i] = 0;\n \n long sumr = 0;\n long sumg = 0;\n long sumb = 0;\n \n // Calculate the scale factor\n float scale_factor = (float) (255.0 / dimProduct);\n \n for(int i=0; i<rhistogram.length; i++) {\n sumr += histogram.get(0)[i];\n int valr = (int) (sumr * scale_factor);\n if(valr > 255) {\n rhistogram[i] = 255;\n }\n else rhistogram[i] = valr;\n \n sumg += histogram.get(1)[i];\n int valg = (int) (sumg * scale_factor);\n if(valg > 255) {\n ghistogram[i] = 255;\n }\n else ghistogram[i] = valg;\n \n sumb += histogram.get(2)[i];\n int valb = (int) (sumb * scale_factor);\n if(valb > 255) {\n bhistogram[i] = 255;\n }\n else bhistogram[i] = valb;\n }\n \n histLUT.add(rhistogram);\n histLUT.add(ghistogram);\n histLUT.add(bhistogram); \n }", "public interface ColorMapper {\n\tpublic Color calculate(Object value);\n\t\n\tpublic JPanel createLegend();\n}", "private LookUpTableGrid(CurvilinearCoords curvGrid, LookUpTable lut) {\n super(curvGrid);\n this.lut = lut;\n }", "public void setColorTable(GridPalette colorTable) {\r\n\t\tthis.colorTable = colorTable;\r\n\t}", "private int optimizeForNColors(BufferedImage img, IMapColor mapColor) {\n \t\t\n \t\tif (canSetPalette) {\n \t\t\treturn optimizeForNColorsAndRebuildPalette(img, mapColor);\n \t\t}\n \t\t\t\n \t\tint numColors = mapColor.getNumColors();\n \t\t\n \t\tbyte[][] palette = mapColor.getPalette();\n \t\t\n \t\tint ourDist = mapColor.getMinimalPaletteDistance();\n \t\t\n \t\tSystem.out.println(\"Minimum color palette distance: \" + ourDist);\n \n \t\tHistogram hist = new Histogram(img);\n \t\tint mappedColors = 0;\n \t\tint interestingColors = 0;\n \t\tint total = img.getWidth() * img.getHeight();\n \t\t\n \t\tfor (int mask = 0; mask < 5; mask++) {\n \t\t\tmappedColors = hist.generate(mapColor, ourDist, mask);\n \t\t\tinterestingColors = hist.size();\n \t\t\tSystem.out.println(\"For mask \" + Integer.toHexString(mask) \n \t\t\t\t\t+\"; # interesting = \" + interestingColors\n \t\t\t\t\t+\"; # mapped = \" + mappedColors);\n \n \t\t\tif (mappedColors >= total / 2)\n \t\t\t\tbreak;\n \t\t}\n \n \t\t\n \t\tint usedColors = Math.min(numColors * 3 / 4, \n \t\t\t\tMath.min(numColors, interestingColors));\n \t\t\n \t\tif (!(mapColor instanceof MonoMapColor)) {\n \t\t\tif (interestingColors == 2)\n \t\t\t\tusedColors = 1;\n \t\t}\n \t\t\n \t\tSystem.out.println(\"\\nN-color: interestingColors=\"+interestingColors\n \t\t\t\t+\"; usedColors=\"+usedColors\n \t\t\t\t+\"; mapped=\"+mappedColors\n \t\t\t\t);\n \t\t\n \t\tourDist = mapColor.getMaximalReplaceDistance(usedColors);\n \t\tfor (int i = 0; i < usedColors; i++) {\n \t\t\t// ensure there will be an exact match so no dithering \n \t\t\t// occurs on the primary occurrences of this color\n \t\t\tint idx = hist.getColorIndex(i);\n \t\t\tbyte[] rgb = palette[idx];\n \t\t\tint newRGB = rgb8ToPixel(rgb);\n \t\t\treplaceColor(img, hist, idx, newRGB, ourDist);\n \t\t}\n \t\t\n \t\treturn ourDist;\n \t}", "public static Integer[][] fixRGBValues(Integer[][] input) {\n Integer[][] output = new Integer[input.length][input.length];\n for (int y = 0; y < input.length; y++) {\n for (int x = 0; x < input.length; x++) {\n int k = input[y][x];\n if (k < 0) k = -k;\n if (k > 255) k = 255;\n output[y][x] = k;\n }\n }\n return output;\n }", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "public interface IValueToColor {\r\n\r\n\tpublic Color map(double value);\r\n\r\n}", "private void initLookupTable(Range nodata) {\n Range nd = RangeFactory.convertToByteRange(nodata);\n // Init the Boolean LookupTable\n lookupTable = new boolean[256];\n // Init the lookuptable containing\n for (int i = 0; i < lookupTable.length; i++) {\n byte b = (byte) i;\n lookupTable[i] = !nd.contains(b);\n }\n }", "public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }", "public HashMap<String, List<ColorId>> checkRocketJumpColors ()\n {\n Map<Square, List<Player>> mapRocket = checkRocketJump();\n HashMap<String, List<ColorId>> hashMapToReturn = new HashMap<>();\n List<ColorId> colorIdList ;\n\n for (Square squareIterate : mapRocket.keySet())\n {\n colorIdList = new ArrayList<>();\n\n for (Player playerIterate : mapRocket.get(squareIterate))\n {\n colorIdList.add(playerIterate.getColor());\n }\n\n hashMapToReturn.put(squareIterate.toStringCoordinates(), colorIdList);\n }\n\n return hashMapToReturn;\n\n }", "public int getColor();", "public int getColor();", "public static void setColorScheme(HGTableColorModel scheme)\r\n {\r\n colorScheme = scheme;\r\n }", "public static ColorLookup hsluv_lightness(double lightness, double alpha) {\n ColorLookup paletteLookup = new ColorLookup();\n int index = -1;\n for (Tensor hue : Subdivide.of(0, 1, RESOLUTION))\n paletteLookup.colors[++index] = //\n Hsluv.of(hue.Get().number().doubleValue(), 1, lightness, alpha);\n return paletteLookup;\n }", "private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}", "IndexColorModel getPalette();", "public Color[] getExperimentColors();", "public abstract RGBIColor toRGBColor();", "public static HGTableColorModel getColorScheme()\r\n {\r\n return (colorScheme);\r\n }", "private static void addStdLut(String name, String fname, int... lookup8) {\n LUT l = new LUT(name, lookup8, internal16Readin(fname));\n standardList.put(name, l);\n }", "public short[][] getHue(){ return hue; }", "public void fromRGBImage(RGBImage image)\r\n {\r\n\tshort[][] red = image.getRed();\r\n\tshort[][] green = image.getGreen();\r\n\tshort[][] blue = image.getBlue();\r\n\r\n\tint rows = image.getHeight();\r\n\tint cols = image.getWidth();\r\n\r\n\tthis.hue = new short[rows][cols];\r\n\tthis.saturation = new short[rows][cols];\r\n\tthis.intensity = new short[rows][cols];\r\n \r\n\t@SuppressWarnings(\"unused\")\r\n\tdouble H, S, I;\r\n\t@SuppressWarnings(\"unused\")\r\n\tshort sector, r, g, b, h, t;\r\n\tdouble sum, t1, t2, theta, minrgb;\r\n\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tr = red[row][col];\r\n\t\tg = green[row][col];\r\n\t\tb = blue[row][col];\r\n\t\tsum = r + g + b;\r\n\r\n\t\tif (r == g && r == b)\r\n\t\t{\r\n\t\t // black, gray or white\r\n\t\t hue[row][col] = (short)0;\r\n\t\t saturation[row][col] = (short)0;\r\n\t\t intensity[row][col] = (short)((r + g + b)/3);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n \r\n\t\t if (g == 0 && b == 0)\r\n\t\t {\r\n\t\t\t// only red\r\n\t\t\tt = 0;\r\n\t\t }\r\n\t\t else if ((r == 0 && b == 0) || (b == 0 && g == 0))\r\n\t\t {\r\n\t\t\t// only green or blue\r\n\t\t\tt = (L-1)/3;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tt1 = 0.5 * ((r-g) + (r-b));\r\n\t\t\tt2 = Math.sqrt((r-g)*(r-g) + (r-b)*(g-b));\r\n\t\t\ttheta = Math.acos (t1/t2);\r\n\t\t\tt = (short)((L-1) * theta/(2*Math.PI));\r\n\t\t }\r\n\r\n\t\t if (b <= g)\r\n\t\t\thue[row][col] = t;\r\n\t\t else\r\n\t\t\thue[row][col] = (short)((L-1) - t);\r\n\r\n\t\t minrgb = r;\r\n\t\t if (g < minrgb)\r\n\t\t\tminrgb = g;\r\n\t\t if (b < minrgb)\r\n\t\t\tminrgb = b;\r\n \r\n\t\t saturation[row][col] = (short)\r\n\t\t\t((L-1)*(1 - minrgb*3.0/sum));\r\n\t\t intensity[row][col] = (short)(sum / 3.0);\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n }", "public int[] getExperimentColorIndices();", "private static Map<Character, Color> createColorMap() {\n\n final Map<Character, Color> map = new HashMap<Character, Color>();\n map.put(' ', NO_COLOR);\n map.put(Block.I.getChar(), I_COLOR);\n map.put(Block.O.getChar(), O_COLOR);\n map.put(Block.J.getChar(), J_COLOR);\n map.put(Block.L.getChar(), L_COLOR);\n map.put(Block.Z.getChar(), Z_COLOR);\n map.put(Block.S.getChar(), S_COLOR);\n map.put(Block.T.getChar(), T_COLOR);\n return map;\n }", "private String getColor(Map<Integer, Integer> colMap, int col){\r\n Integer val = colMap.get(col);\r\n if(val == null){\r\n val = colMap.size();\r\n colMap.put(col,val);\r\n }\r\n return val.toString();\r\n }", "String getColor();", "public RGBImage makeRGBImage()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n \r\n\tshort[][] red = new short[rows][cols]; \r\n\tshort[][] green = new short[rows][cols]; \r\n\tshort[][] blue = new short[getHeight()][getWidth()]; \r\n \r\n\t@SuppressWarnings(\"unused\")\r\n\tdouble H, S, I;\r\n\tshort v1, v2, v3, h, h0, sat, intens;\r\n\tint sector;\r\n\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\r\n\t\tif (saturation[row][col] == 0)\r\n\t\t{\r\n\t\t red[row][col] = intensity[row][col];\r\n\t\t green[row][col] = intensity[row][col];\r\n\t\t blue[row][col] = intensity[row][col];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t h0 = hue[row][col];\r\n\r\n\t\t if (h0 <= (L-1)/3)\r\n\t\t {\r\n\t\t\th = (short)h0;\r\n\t\t\tsector = 1;\r\n\t\t }\r\n\t\t else if (h0 <= 2*(L-1)/3)\r\n\t\t {\r\n\t\t\th = (short)(h0 - (L-1)/3);\r\n\t\t\tsector = 2;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\th = (short)(h0 - 2*(L-1)/3);\r\n\t\t\tsector = 3;\r\n\t\t }\r\n\r\n\t\t H = h * 2 * Math.PI / (L-1);\r\n\r\n\t\t sat = saturation[row][col];\r\n\t\t S = (double)sat / (L-1);\r\n\r\n\t\t intens = intensity[row][col]; \r\n\t\t I = (double)intens / (L-1);\r\n\r\n\t\t v1 = (short)Math.round(intens * (1 - S));\r\n\t\t v1 = checkInterval (v1);\r\n\r\n\t\t v2 = (short)Math.round(intens * (1 + S * Math.cos(H)/\r\n\t\t\t\t\t\t Math.cos(Math.PI/3 - H) ));\r\n\t\t v2 = checkInterval (v2);\r\n \r\n\t\t v3 = (short)Math.round(3 * intens - (v1 + v2));\r\n\t\t v3 = checkInterval (v3);\r\n \r\n\t\t if (sector == 1)\r\n\t\t {\r\n\t\t\tblue[row][col] = v1;\r\n\t\t\tred[row][col] = v2;\r\n\t\t\tgreen[row][col] = v3;\r\n\t\t }\r\n\t\t else if (sector == 2)\r\n\t\t {\r\n\t\t\tred[row][col] = v1;\r\n\t\t\tgreen[row][col] = v2;\r\n\t\t\tblue[row][col] = v3;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tgreen[row][col] = v1;\r\n\t\t\tblue[row][col] = v2;\r\n\t\t\tred[row][col] = v3;\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n \r\n\treturn new RGBImage (red, green, blue);\r\n }", "public void adjustIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tshort maxI;\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tmaxI = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t\tintensity[row][col] =\r\n\t\t (short)Math.min(intensity[row][col], maxI);\r\n\t }\r\n\t}\r\n }", "@Test\n public void testSetColorModel() throws FitsException, IOException{\n IndexColorModel colorModel = ColorTable.getColorModel(2);\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n imageData.setColorModel(colorModel);\n Assert.assertEquals(-1, imageData.getColorTableId());\n\n }", "private HashMap<String, ArrayList<int[]>> loadColorsFile() {\n\t\ttry {\n\t\t\t/* Open the file for reading. */\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(COLORS_FILE));\n\t\t\t\n\t\t\t/* Construct the HashMap that we will provide back as a result. */\n\t\t\tHashMap<String, ArrayList<int[]>> result = new HashMap<String, ArrayList<int[]>>();\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\t/* Read the next entry:\n\t\t\t\t * 1. The name of the color.\n\t\t\t\t * 2. Its red component.\n\t\t\t\t * 3. Its green component.\n\t\t\t\t * 4. Its blue component.\n\t\t\t\t */\n\t\t\t\tString colorName = br.readLine();\n\t\t\t\tString r = br.readLine();\n\t\t\t\tString g = br.readLine();\n\t\t\t\tString b = br.readLine();\n\t\t\t\t\n\t\t\t\t/* If we ran out of data, we're done. */\n\t\t\t\tif (b == null) break;\n\t\t\t\t\n\t\t\t\t/* Construct an array of the colors. */\n\t\t\t\tint[] color = new int[3];\n\t\t\t\tcolor[0] = Integer.parseInt(r);\n\t\t\t\tcolor[1] = Integer.parseInt(g);\n\t\t\t\tcolor[2] = Integer.parseInt(b);\n\t\t\t\t\n\t\t\t\t/* Ensure that there's an ArrayList waiting for us. */\n\t\t\t\tif (!result.containsKey(colorName)) {\n\t\t\t\t\tresult.put(colorName, new ArrayList<int[]>());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Add this color data to the color list. */\n\t\t\t\tresult.get(colorName).add(color);\n\t\t\t}\n\t\t\t\n\t\t\tbr.close();\n\t\t\treturn result;\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tthrow new ErrorException(e);\n\t\t}\n\t}", "protected HashMap<String,Color> addColors() {\n\t\tHashMap<String,Color> colorChoices = new HashMap<String,Color>();\n\t\tcolorChoices.put(\"RED\", Color.RED);\n\t\tcolorChoices.put(\"BLUE\", Color.BLUE);\n\t\tcolorChoices.put(\"BLACK\", Color.BLACK);\n\t\treturn colorChoices;\n\t}", "public static void initialiseKnightLookupTable() {\n\t\tfor (int square = 0; square < 64; square++) {\n\t\t\tlong target = 1L << square;\n\t\t\t// Each direction of the knight moves considered\n\t\t\t// The AND operator is used to stop moves from wrapping around the\n\t\t\t// board\n\t\t\tlong NNE = (target << 17) & ~CoreConstants.FILE_A;\n\t\t\tlong NEE = (target << 10) & ~CoreConstants.FILE_A & ~CoreConstants.FILE_B;\n\t\t\tlong SEE = (target >>> 6) & ~CoreConstants.FILE_A & ~CoreConstants.FILE_B;\n\t\t\tlong SSE = (target >>> 15) & ~CoreConstants.FILE_A;\n\t\t\tlong NNW = (target << 15) & ~CoreConstants.FILE_H;\n\t\t\tlong NWW = (target << 6) & ~CoreConstants.FILE_G & ~CoreConstants.FILE_H;\n\t\t\tlong SWW = (target >>> 10) & ~CoreConstants.FILE_G & ~CoreConstants.FILE_H;\n\t\t\tlong SSW = (target >>> 17) & ~CoreConstants.FILE_H;\n\n\t\t\tCoreConstants.KNIGHT_TABLE[square] = NNE | NEE | SEE | SSE | NNW | NWW | SWW | SSW;\n\t\t}\n\t}", "public final ModelLUT getLUT() {\r\n return lut;\r\n }", "private void initRelationsColors() {\n for (int i=0;i<20;i++) {\n int r = 255-(i*12);\n int gb = 38-(i*2);\n relationsC[i] = newColor(r,gb,gb);\n }\n // do green.. 20-39, dark to bright\n for (int i=0;i<20;i++) {\n int g = 17+(i*12);\n int rb = i*2;\n relationsC[20+i] = newColor(rb,g,rb);\n }\n }", "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }", "public void setExperimentColor(int [] indices, Color color);", "public void setHue (short[][] hue)\r\n {\r\n\tthis.hue = hue;\r\n }", "@LargeTest\n public void testIntrinsicsColorMatrix() {\n TestAction ta = new TestAction(TestName.INTRINSICS_COLOR_MATRIX);\n runTest(ta, TestName.INTRINSICS_COLOR_MATRIX.name());\n }", "public Color getColor(String key) {\n\t\tif (mappings.containsKey(key)) {\n\t\t\t// return previously mapped color\n\t\t\treturn (Color) mappings.get(key);\n\t\t} else {\n\t\t\t// check for available standard color\n\t\t\tfor (int i = 0; i < assigned.length; i++) {\n\t\t\t\tif (assigned[i] == false) {\n\t\t\t\t\tassigned[i] = true;\n\t\t\t\t\tmappings.put(key, colors[i]);\n\t\t\t\t\treturn colors[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t// create random color\n\t\t\tColor random = new Color(rnd.nextInt(245), rnd.nextInt(245), rnd\n\t\t\t\t\t.nextInt(245));\n\t\t\tmappings.put(key, random);\n\t\t\treturn random;\n\t\t}\n\t}", "private void setFillMapColor(String color) {\r\n for (String s: fillKListColor) {\r\n if (s.startsWith(\"color\")) {\r\n color = s.substring(6, s.length() - 1);\r\n String tempColor = (!color.startsWith(\"RGB\")) ? color : color.substring(4, color.length() - 1);\r\n Color fillKColor = new ColorsParser().colorFromString(tempColor);\r\n fillKMapColor.put(kListColor.get(fillKListColor.indexOf(s)), fillKColor);\r\n }\r\n }\r\n }", "Color userColorChoose();", "public Color getExperimentColor(int col);", "public static AvatarColor mapColor(String color) {\n switch (color) {\n case \"white\":\n return WHITE;\n case \"black\":\n return BLACK;\n case \"red\":\n return RED;\n case \"green\":\n return GREEN;\n case \"blue\":\n return BLUE;\n default:\n throw new IllegalArgumentException(\"Color is not supported: \" + color);\n }\n }", "@Override\n public Color getMapColor() { return mapColor; }", "private final void setResistTable()\n\t{\n\t\t//Weakness flag\n\t\tresistTable.put(0, \"Fire\");\n\t\tresistTable.put(1, \"Water\");\n\t\tresistTable.put(2, \"Air\");\n\t\tresistTable.put(3, \"Earth\");\n\t\tresistTable.put(4, \"Holy\");\n\t\t\n\t\t//Resist flag\n\t\tresistTable.put(5, \"Fire\");\n\t\tresistTable.put(6, \"Water\");\n\t\tresistTable.put(7, \"Air\");\n\t\tresistTable.put(8, \"Earth\");\n\t\tresistTable.put(9, \"Holy\");\n\t\t\n\t\t//Absorb flag\n\t\tresistTable.put(10, \"Fire\");\n\t\tresistTable.put(11, \"Water\");\n\t\tresistTable.put(12, \"Air\");\n\t\tresistTable.put(13, \"Earth\");\n\t\tresistTable.put(14, \"Holy\");\t\n\t\t\n\t\t//Immune flag\n\t\tresistTable.put(15, \"Fire\");\n\t\tresistTable.put(16, \"Water\");\n\t\tresistTable.put(17, \"Air\");\n\t\tresistTable.put(18, \"Earth\");\n\t\tresistTable.put(19, \"Holy\");\t\t\t\n\t\tresistTable.put(20, \"Stun\");\n\t\tresistTable.put(21, \"Poison\");\n\t\tresistTable.put(22, \"Slug\");\n\t\t\n\t}", "public static int[] getindex(int[] values) {\n\t \n\t \n\t \n\t int[] b = {64,128,192,256};\n\t \n\t int redindex = 0;\n\t int greenindex=0;\n\t int blueindex=0;\n\t \n\t for(int i=0; i<indexlevel8.length;i++) {\n\t if(values[0] <= indexlevel8[i]) { redindex = i; break;}\n\t }\n\t \n\t for(int i=0; i<indexlevel8.length;i++) {\n\t\t if(values[1] <= indexlevel8[i]) { greenindex = i; break;}\n\t\t }\n\t \n\t for(int i=0; i<b.length;i++) {\n\t\t if(values[2] <= b[i]) { blueindex = i; break;}\n\t }\n\t \n\t values[0] = redindex*32+16;\n\t values[1] = greenindex*32+16;\n\t values[2] = blueindex*64+32;\n\t \n\t \n\t return values; // the values of the lookup table for 8bit scale\n }", "@LargeTest\n public void testColorMatrix() {\n TestAction ta = new TestAction(TestName.COLOR_MATRIX);\n runTest(ta, TestName.COLOR_MATRIX.name());\n }", "public int[] getLut8() {\n return lut8;\n }", "public static Color[] getHSBWheelScheme(int n){\r\n\r\n\t\tColor[] scheme=new Color[n];\r\n\r\n\t\t// if 12 colors or less, vary hue and use 100% saturation and brightness\r\n\t\tif(n<=12){\r\n\t\t\tfor(int i=0;i<n;i++){\r\n\t\t\t\tscheme[i]=Color.getHSBColor((float)i/n,1.0f,1.0f);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if 24 colors or less, use a two-tier saturation (50% and 100%)\r\n\t\telse if(n<=24){\r\n\t\t\tint t=n/2;\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i]=Color.getHSBColor((float)i/t,1.0f,1.0f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<n-t;i++){\r\n\t\t\t\tscheme[i+t]=Color.getHSBColor((float)i/(n-t),0.5f,1.0f);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if more than 24 colors, use a two-tier saturation and a two-tier brightness (50% and 100%)\r\n\t\telse{\t\r\n\t\t\tint t=n/4;\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i]=Color.getHSBColor((float)i/t,1.0f,1.0f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i+t]=Color.getHSBColor((float)i/t,0.5f,1.0f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i+(2*t)]=Color.getHSBColor((float)i/t,1.0f,0.5f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<n-(3*t);i++){\r\n\t\t\t\tscheme[i+(3*t)]=Color.getHSBColor((float)i/t,0.5f,0.5f);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn scheme;\r\n\r\n\t}", "public String getColor(String ix)\n\t{\n\t\tString color = colorElementMap.get(ix);\n\t\tif (color == null)\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn color;\n\t\t}\n\t}", "public abstract HSLColor toHSLColor();", "void setFromInt32Color(int newColor) {\r\n\t\tx = ((float) ((newColor >> 16) | 0xFF)) / 255.0f;\r\n\t\ty = ((float) ((newColor >> 8) | 0xFF)) / 255.0f;\r\n\t\tz = ((float) ((newColor) | 0xFF)) / 255.0f;\r\n\t}", "public void init_colors_red(){\t\n\t\tColor c1 = new Color(0,0,0);\t\t// BLACK\t\t\n\t\tColor c2 = new Color(255,0,0);\t// RED\n\t\tColor c3 = new Color(255,170,0);\t// ORANGE\n\t\tColor c4 = new Color(255,255,255);\t// WHITE\n\t\t\n\t\tinit_colors(c1,c2,c3,c4);\n\t}", "void setRed(int x, int y, int value);", "public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }", "public static void rgb_to_lab(float[] rgb, float[] lab)\n {\n float r = rgb[0];\n float g = rgb[1];\n float b = rgb[2];\n\n // D65 standard referent\n float X = 0.950470f, Y = 1.0f, Z = 1.088830f;\n\n // second, map sRGB to CIE XYZ\n r = r <= 0.04045f ? r/12.92f : (float)Math.pow((r+0.055f)/1.055f, 2.4f);\n g = g <= 0.04045f ? g/12.92f : (float)Math.pow((g+0.055f)/1.055f, 2.4f);\n b = b <= 0.04045f ? b/12.92f : (float)Math.pow((b+0.055f)/1.055f, 2.4f);\n float x = (0.4124564f*r + 0.3575761f*g + 0.1804375f*b) / X,\n y = (0.2126729f*r + 0.7151522f*g + 0.0721750f*b) / Y,\n z = (0.0193339f*r + 0.1191920f*g + 0.9503041f*b) / Z;\n\n // third, map CIE XYZ to CIE L*a*b* and return\n x = x > 0.008856f ? (float)Math.pow(x, 1.0f/3) : 7.787037f*x + 4.0f/29;\n y = y > 0.008856f ? (float)Math.pow(y, 1.0f/3) : 7.787037f*y + 4.0f/29;\n z = z > 0.008856f ? (float)Math.pow(z, 1.0f/3) : 7.787037f*z + 4.0f/29;\n\n float L = 116*y - 16,\n A = 500*(x-y),\n B = 200*(y-z);\n\n lab[0] = L;\n lab[1] = A;\n lab[2] = B;\n }", "public void setLookupTableValueI18NModel(List<RefLookupTableValueI18NModel> lookupTableValueI18NModel)\n\t{\n\t\tthis.lookupTableValueI18NModel = lookupTableValueI18NModel;\n\t}", "public String getResultColors(final String resultCode) {\n\t\tString color = colorMap.get(resultCode);\n\t\tif (color == null) {\n\t\t\treturn JudgementColor.getDefaultColor(resultCode);\n\t\t}\n\t\treturn color;\n\t}", "void fill(int rgb);", "GlobalColors() {\n countMap = new ConcurrentHashMap<State, Integer>();\n redMap = new ConcurrentHashMap<State, Boolean>();\n hasResult = false;\n result = false;\n }", "public interface MclnStatePalette {\n\n String CORE_NOTHING_COLOR = \"0xC0C0C0\";\n String CORE_CONTRADICT_COLOR = \"0xAAAAAA\";\n String CORE_UNKNOWN_COLOR = \"0xC0C0C0\";\n String CORE_POSITIVE_COLOR = \"0xFFFFFF\";\n String CORE_NEGATIVE_COLOR = \"0xFFFFFF\";\n\n String CREATION = \"0xC0C0C0\";\n String NOT_CREATION = \"0x0B0B0B\";\n String WHITE = \"0xFFFFFF\";\n String BLACK = \"0x000000\";\n\n String GRAY = \"0xCCCCCC\";\n String NOT_GRAY = \"0x333333\";\n String MID_GRAY = \"0xBBBBBB\";\n String DARK_GRAY = \"0xAAAAAA\";\n\n String RED = \"0xFF0000\";\n String NOT_RED = \"0x00FFFF\";\n String MID_RED = \"0xCC0033\";\n String DARK_RED = \"0x800040\";\n\n String GREEN = \"0x00FF00\";\n String NOT_GREEN = \"0xFF00FF\";\n String MID_GREEN = \"0x94D352\";\n String DARK_GREEN = \"0x008040\";\n\n String BLUE = \"0x0000FF\";\n String NOT_BLUE = \"0xFFFF00\";\n String MID_BLUE = \"0x0040FF\";\n String DARK_BLUE = \"0x0020BB\";\n\n String PURPLE = \"0xFF00FF\";\n String NOT_PURPLE = GREEN;\n String MID_PURPLE = \"0x9900FF\";\n String DARK_PURPLE = \"0x4000DD\";\n\n String CYAN = \"0x00FFFF\";\n String NOT_CYAN = RED;\n String MID_CYAN = \"0x31A4B1\";\n String DARK_CYAN = \"0x2C5463\";\n\n String YELLOW = \"0xFFFF00\";\n String NOT_YELLOW = BLUE;\n String MID_YELLOW = \"0x9900FF\";\n String DARK_YELLOW = \"0x4000DD\";\n\n String BROWN = \"0xdec79f\";\n String MID_BROWN = \"0xce9b4e\";\n String DARK_BROWN = \"0xc27101\";\n\n String SWAMP = \"0xc8c8aa\";\n String MID_SWAMP = \"0x999966\";\n String DARK_SWAMP = \"0xe4e640\";\n\n String PINK = \"0xFF7FBF\";\n String NOT_PINK = \"0x005555\";\n String ORANGE = \"0xFF9900\";\n String CANARY = \"0xBFFF00\";\n\n int MCLN_MIN_STATE = MclnAlgebra.MCL_CORE_MAX + 1;\n\n MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE,\n NOT_CREATION);\n//\n// MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n// MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE, NOT_CREATION);\n//\n// MclnState MCLN_STATE_GRAY = MclnState.createState(\"Gray\", (MCLN_MIN_STATE + 1) , GRAY);\n// MclnState MCLN_STATE_NOT_GRAY = MclnState.createState(MCLN_STATE_GRAY, \"Not Gray\", -(MCLN_MIN_STATE + 1), NOT_GRAY);\n//\n// MclnState MCLN_STATE_RED = MclnState.createState(\"Red\", (MCLN_MIN_STATE + 2), RED);\n// MclnState MCLN_STATE_NOT_RED = MclnState.createState(MCLN_STATE_RED, \"Not Red\", -(MCLN_MIN_STATE + 2), NOT_RED);\n//\n// MclnState MCLN_STATE_GREEN = MclnState.createState(\"Green\", (MCLN_MIN_STATE + 3), GREEN);\n// MclnState MCLN_STATE_NOT_GREEN = MclnState.createState(MCLN_STATE_GREEN, \"Not Green\", -(MCLN_MIN_STATE + 3), NOT_GREEN);\n//\n// MclnState MCLN_STATE_BLUE = MclnState.createState(\"Blue\", (MCLN_MIN_STATE + 4), BLUE);\n// MclnState MCLN_STATE_NOT_BLUE = MclnState.createState(MCLN_STATE_BLUE, \"Not Blue\", -(MCLN_MIN_STATE + 4), NOT_BLUE);\n//\n// MclnState MCLN_STATE_DARK_BLUE = MclnState.createState(\"Dark blue\", (MCLN_MIN_STATE + 5), DARK_BLUE);\n// MclnState MCLN_STATE_NOT_DARK_BLUE = MclnState.createState(MCLN_STATE_DARK_BLUE, \"Not Dark blue\", -(MCLN_MIN_STATE + 5), NOT_DARK_BLUE);\n//\n// MclnState MCLN_STATE_PINK = MclnState.createState(\"Pink\", (MCLN_MIN_STATE + 6), PINK);\n// MclnState MCLN_STATE_NOT_PINK = MclnState.createState(MCLN_STATE_PINK, \"Not Pink\", -(MCLN_MIN_STATE + 6), NOT_PINK);\n//\n// MclnState MCLN_STATE_DARK_GREEN = MclnState.createState(\"Dark Brown\", (MCLN_MIN_STATE + 7), DARK_GREEN);\n\n public List<MclnState> getAvailableStates();\n\n /**\n * @param color\n * @return\n */\n public MclnState getState(String color);\n\n// String CREATION_COLOR = \"0xC0C0C0\";\n// MclnState CREATION_MCLN_STATE = MclnState.createState(\"Creation State\", 0, CREATION_COLOR);\n\n// int mclnPaletteMax = 10 * 2;\n// int RED = 0xFF0000;\n// int NOT_RED = 0x00FFFF;\n// int GREEN = 0x00FF00;\n// int NOT_GREEN = 0xFF00FF;\n// int BLUE = 0x0000FF;\n// int NOT_BLUE = 0xFFFF00;\n// int YELLOW = NOT_BLUE;\n// int NOT_YELLOW = BLUE;\n// int MAGENTA = NOT_GREEN;\n// int NOT_MAGENTA = GREEN;\n// int CYAN = NOT_RED;\n// int NOT_CYAN = RED;\n// int PINK = 0xFFAAAA;\n// int NOT_PINK = 0x005555;\n//\n// int WHITE = 0xFFFFFF;\n// int VERY_LIGHT_CIAN = 0xCCFFFF;\n// int VERY_LIGHT_BLUE = 0xCCCCFF;\n// int VERY_LIGHT_MAGENTA = 0xCCFFCC;\n// int VERY_LIGHT_RED = 0xFFCCCC;\n// int VERY_LIGHT_YELLOW = 0xFFFFCC;\n//\n//\n// int DARK_RED = 0xCC0000;\n// int DARK_CIAN = 0x00CCCC;\n// int DARK_GREEN = 0x00CC00;\n// int DARK_MAGENTA = 0xCC00CC;\n// int DARK_BLUE = 0x0000CC;\n// int DARK_YELLOW = 0xCCCC00;\n//\n// int VERY_DARK_CIAN = 0x006666;\n// int VERY_DARK_BLUE1 = 0x003366;\n// int VERY_DARK_BLUE2 = 0x000066;\n// int VERY_DARK_BLUE3 = 0x330066;\n// int VERY_DARK_MAGENTA = 0x660066;\n// int VERY_DARK_RED1 = 0x660033;\n// int VERY_DARK_RED2 = 0x660000;\n// int VERY_DARK_RED3 = 0x663300;\n// int VERY_DARK_YELLOW = 0x666600;\n// int VERY_DARK_GREEN1 = 0x336600;\n// int VERY_DARK_GREEN2 = 0x006600;\n// int VERY_DARK_GREEN3 = 0x006633;\n//\n//\n//\n// MclnState getState(Integer color);\n//\n//// Integer getActiveState(Color color) {\n//// return activeColorPalette.get(color);\n//// }\n////\n//// Color getActiveColor(Integer state) {\n//// return activeStatePalette.get(state);\n//// }\n\n}", "private void switchLookupListener() {\n TopComponent active = TopComponent.getRegistry().getActivated();\n if( null != lookupRes ) {\n lookupRes.removeLookupListener( PaletteSwitch.this );\n lookupRes = null;\n }\n if( null != active ) {\n lookupRes = active.getLookup().lookup( new Lookup.Template<PaletteController>( PaletteController.class ) );\n lookupRes.addLookupListener( PaletteSwitch.this );\n lookupRes.allItems();\n }\n }", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "void setLUT(String lut) {\n holdUpdate = true;\n jComboBox2.setSelectedItem(lut);\n holdUpdate = false;\n }", "public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }", "public Color[] getColors();", "public void setColor( float[] c )\n\t{\n\t\tcolorWeight[0] = c[0];\n\t\tcolorWeight[1] = c[1];\n\t\tcolorWeight[2] = c[2];\n\t\t\n\t\t//color = null;\n\t\tcolor = new Color( colorWeight[0], colorWeight[1], colorWeight[2] );\n\t}", "@Test\n public void testGetColorID() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(0, imageData.getColorTableId());\n }", "public static void ComputeTables() {\n int[][] nbl2bit\n = {\n new int[]{1, 0, 0, 0}, new int[]{1, 0, 0, 1}, new int[]{1, 0, 1, 0}, new int[]{1, 0, 1, 1},\n new int[]{1, 1, 0, 0}, new int[]{1, 1, 0, 1}, new int[]{1, 1, 1, 0}, new int[]{1, 1, 1, 1},\n new int[]{-1, 0, 0, 0}, new int[]{-1, 0, 0, 1}, new int[]{-1, 0, 1, 0}, new int[]{-1, 0, 1, 1},\n new int[]{-1, 1, 0, 0}, new int[]{-1, 1, 0, 1}, new int[]{-1, 1, 1, 0}, new int[]{-1, 1, 1, 1}\n };\n\n int step, nib;\n\n /* loop over all possible steps */\n for (step = 0; step <= 48; step++) {\n /* compute the step value */\n int stepval = (int) (Math.floor(16.0 * Math.pow(11.0 / 10.0, (double) step)));\n\n\n /* loop over all nibbles and compute the difference */\n for (nib = 0; nib < 16; nib++) {\n diff_lookup[step * 16 + nib] = nbl2bit[nib][0]\n * (stepval * nbl2bit[nib][1]\n + stepval / 2 * nbl2bit[nib][2]\n + stepval / 4 * nbl2bit[nib][3]\n + stepval / 8);\n }\n }\n }", "public Palette() {\n\t\tpaletteOfColorsHex = new ArrayList<>();\n\t\torderedOutputColors = new HashMap<>();\n\t\timgLuminanceIdxs = new HashMap<>();\n\t}", "public static void set(LedColor[] outputColors, LedColor inputColor) {\r\n\t\tfor (int i = 0; i < outputColors.length; i++) {\r\n\t\t\toutputColors[i].set(inputColor);\r\n\t\t}\r\n\t}", "@Override\n public void setColorFilter(ColorFilter colorFilter) {}", "protected int getColor(int colornumber) {\n if(random){\n return colorMap.get((int)Math.floor(colorMap.size() * Math.random())).getRGB();\n }\n return colorMap.get(colornumber % colorMap.size()).getRGB();\n }", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "private Color determineColorFromType(String type)\n\t{\n\t\tIterator<String> iterator = this.tileTypeColorMap.keySet().iterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tString key = iterator.next();\n\t\t\tif (key == type)\n\t\t\t{\n\t\t\t\treturn tileTypeColorMap.get(key);\n\t\t\t}\n\t\t}\n\t\treturn this.ERROR_COLOR;\n\t}", "public int[] getLut16() {\n return lut16;\n }", "public BufferedImage equalizedHistogram(BufferedImage image) {\r\n int height = image.getHeight();\r\n int width = image.getWidth();\r\n int[][][] arr = convertToArray(image);\r\n double[][] rgbCount = normalisedHistogram(image);\r\n double[][] lookup = new double[rgbCount.length][rgbCount[0].length];\r\n //create cumulative frequency\r\n lookup[0][0] = rgbCount[0][0];\r\n lookup[1][0] = rgbCount[1][0];\r\n lookup[2][0] = rgbCount[2][0];\r\n for (int i = 1; i < rgbCount[0].length; i++) {\r\n for (int col = 0; col < 3; col++) {\r\n lookup[col][i] = lookup[col][i - 1] + rgbCount[col][i]; //adds last frequency and current frequency\r\n }\r\n }\r\n for (int i = 1; i < rgbCount[0].length; i++) {\r\n for (int col = 0; col < 3; col++) {\r\n lookup[col][i] = (int) (lookup[col][i] * 255); //multiply by max value\r\n }\r\n }\r\n for (int y = 0; y < height; y++) {\r\n for (int x = 0; x < width; x++) {\r\n for (int i = 1; i < 4; i++) {\r\n arr[x][y][i] = (int) lookup[i - 1][arr[x][y][i]]; //set value to the lookup table value for that color\r\n }\r\n }\r\n }\r\n return convertToBimage(arr);\r\n }", "public void setColorModel(IndexColorModel colorModel);", "public abstract BossColor getColor();", "RGB getNewColor();", "abstract String getColor();", "public int getProbeColorIndex(int row);", "public Color getColor(RGB rgb) {\n\t\treturn colorTable.computeIfAbsent(rgb, raw -> new Color(raw));\n\t}" ]
[ "0.6262775", "0.6237288", "0.60926455", "0.60423565", "0.588397", "0.58393663", "0.57602155", "0.5601114", "0.55112255", "0.5394303", "0.53302896", "0.52504075", "0.5248919", "0.52261955", "0.52007675", "0.5180238", "0.5175748", "0.51512104", "0.51049364", "0.5104406", "0.5103821", "0.5079968", "0.5075006", "0.50615615", "0.5046928", "0.5046466", "0.5033331", "0.5028862", "0.5028862", "0.4992428", "0.49741846", "0.4969565", "0.49407643", "0.49345428", "0.4933656", "0.49333945", "0.4914179", "0.49136978", "0.49037468", "0.49032274", "0.49020842", "0.49011925", "0.48873347", "0.48868826", "0.48849714", "0.48807624", "0.48803097", "0.48779008", "0.4871026", "0.48685175", "0.48636633", "0.4848775", "0.4846634", "0.481348", "0.48126745", "0.48040113", "0.47909313", "0.47807786", "0.47769824", "0.47731307", "0.47647762", "0.47614735", "0.47605124", "0.47551093", "0.47537285", "0.4738929", "0.4735225", "0.4723844", "0.47125506", "0.47101003", "0.47064728", "0.47003108", "0.46999732", "0.46732697", "0.46640617", "0.46609646", "0.46552", "0.4641364", "0.4637589", "0.4629953", "0.4622766", "0.46225572", "0.46179363", "0.46114534", "0.46112296", "0.4608975", "0.45904034", "0.45844653", "0.45816517", "0.45783588", "0.4572662", "0.45713434", "0.45693702", "0.45666304", "0.45639184", "0.4563519", "0.4561476", "0.45589975", "0.45534945", "0.45468655" ]
0.5400909
9
Called at the beginning of the trace methods
protected void traceInit() { super.traceInit(); // If the intensity volume is not defined, create it now by // using the map to convert RGB color values to intensity values. if (null == m_acImageI) { m_acImageI = new byte[m_acImageR.length]; for (int i = 0; i < m_acImageI.length; i++) { m_acImageI[i] = (byte) (m_kMap.mapValue( (float) (m_acImageR[i] & 0x0ff), (float) (m_acImageG[i] & 0x0ff), (float) (m_acImageB[i] & 0x0ff))); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void started(ITrace trace) {\n\t\t//\n\t}", "@Override\n public void onStart(Trace parent) throws Throwable\n {\n \n }", "public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tstack.setCurrentPhase(TracePhase.MAIN);\r\n\t\tsuper.onResume();\r\n\t}", "protected abstract void trace_pre_updates();", "public abstract int trace();", "public void startTrace() throws MqttException {\r\n \tSystem.out.println(\"starttrace....\");\r\n }", "protected abstract void trace_begin_loop();", "@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "@Override\n\tpublic void traceExit() {\n\n\t}", "public void tracejar()\r\n\t{\r\n\t\tSystem.out.println(\"****************************************\");\r\n\t}", "@Override\n protected void startup() throws Throwable {\n\n\tsetTraceBase(baseDir);\n\n }", "@Override\n\tpublic void trace(String message, Object p0) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0) {\n\n\t}", "private void before() {\n\t\tSystem.out.println(\"程序开始执行!\");\n\t}", "@Override\n public void preRun() {\n super.preRun();\n }", "public static void preCrawling() {\n\t\ttry {\n\t\t\tHelper.directoryCheck(getOutputFolder());\n\t\t\toutput = new PrintStream(getOutputFolder() + getFilename());\n\n\t\t\t// Add opening bracket around whole trace\n\t\t\tPrintStream oldOut = System.out;\n\t\t\tSystem.setOut(output);\n\t\t\tSystem.out.println(\"{\");\n\t\t\tSystem.setOut(oldOut);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Trace() {\n\t}", "protected void onBegin() {}", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \n\tthis.isDone = false;\n\t\n\ttheLoader.setSetpoint(1.5);\n\t\n }", "@Override\n\tpublic void trace(Message msg) {\n\n\t}", "public static void traceOff() {\r\n\t\ttraceOn = false;\r\n\r\n\t}", "void initBeforeParsing() {\r\n }", "@Override\n public void beforeStart() {\n \n }", "public void dobefore(JoinPoint jp) {\r\n\t\t\r\n\t\tstartTime = System.currentTimeMillis();// captures the start time of the method call\r\n\t\tString time = \"started: \" + startTime;\r\n\t\t// System.out.println(\"\" + jp.toString().getClass().getName());\r\n\t\tString signature = \"methodSignature: \" + jp.getSignature();\r\n\t\tString name = \"methodName: \"+ jp.getSignature().getName();\r\n\t\t// System.out.println(\"The proxy Object is \" + jp.getThis().getClass());\r\n\t\tString targetClass = \"targetClass: \"\r\n\t\t\t\t+ jp.getTarget().getClass().getName();\r\n\t\tmethodlog = name ;\r\n\t\tmethodlog += \",\" + signature + \",\"+ time\t+ \",\"+ targetClass +\",\";\r\n\t}", "private void logBeginningOfTheTable() {\n\t\tLOG.log(Level.FINER, () -> \"Stupac tablice:\");\n\t\tLOG.log(Level.FINER, () -> \"=================================\");\n\t}", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \r\n }", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void trace(String message, Object p0, Object p1) {\n\n\t}", "void trace(String a, String b) {\n\t\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1) {\n\n\t}", "@Trace(excludeFromTransactionTrace = true, leaf = true)\n private void tracedActivityFromFlyweight() {\n TracedActivity tracedActivity = AgentBridge.getAgent().getTransaction().createAndStartTracedActivity();\n Assert.assertTrue(tracedActivity instanceof NoOpSegment);\n }", "@Override\n\tpublic void trace(Marker marker, Message msg) {\n\n\t}", "protected void initialize() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" initializing\");\r\n\t\t }", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}", "@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}", "private void logTestStart() {\n NullPointerException npe = new NullPointerException();\n StackTraceElement element = npe.getStackTrace()[1];\n\n System.out.println(\"Starting: \" + element.getMethodName());\n }", "public void traceStatus() {\n logger.trace(\"jvmThread: {}, jvmMethod: {}\", jvmThread, jvmMethod);\n logger.trace(\"localVariables: {}\", localVariables);\n logger.trace(\"operandStacks: {}\", operandStacks);\n }", "protected abstract void trace_end_run();", "public void logBefore(JoinPoint joinPoint);", "@Override\n\tprotected void initial() throws SiDCException, Exception {\n\t\tLogAction.getInstance().initial(logger, this.getClass().getCanonicalName());\n\t}", "@Override\n\tpublic void trace(Marker marker, Message msg, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(Object message) {\n\n\t}", "private void prepare()\n { \n ClickToStart start = new ClickToStart();\n addObject(start, 641, 534); \n }", "@Trace\n//\t@LogMethod\n\tprivate void loadNext() {\n\t\tToast.makeText(MainActivity.this, \"Test\", Toast.LENGTH_SHORT).show();\n\t}", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object... params) {\n\n\t}", "public void onFailure(Throwable caught) {\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Failed to start a new trace.\");\r\n\t\t\t}", "protected void initialize() {\n\t\t//System.out.println(\"Cube collector is spitting\");\n\t}", "@Override\n\tpublic void trace(Marker marker, String message) {\n\n\t}", "protected void additionalProcessing() {\n\t}", "void PrepareRun() {\n }", "@Override\n\tpublic void beforeInvocation(IInvokedMethod arg0, ITestResult arg1) {\n\t\tSystem.out.println(\"Test method start\" + arg0.getTestMethod().getQualifiedName() + \",\" + new Date());\n\n\t}", "public abstract void logTraceTime();", "public static void beginStep() {\n\t\tTestNotify.log(STEP_SEPARATOR);\n\t TestNotify.log(GenLogTC() + \"is being tested ...\");\n\t}", "public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }", "protected void trace(String headline, String qName) {\r\n\t\ttee.writelnMessage(headline + Strings.padRight(qName, 25) + \" - context : \" + Strings.padRight(context.name(), 11) + \" - stack : \" + dump(contexts));\r\n\t}", "@Override\n\tpublic void pre()\n\t{\n\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\n public String getTrace() {\n return trace;\n }", "public static String initTrace() {\n if (!sCallback.isDebugMode()) {\n return \"\";\n }\n StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();\n StringBuilder sb = new StringBuilder(\"init:\");\n sb.append('\\n');\n for (StackTraceElement stackTraceElement : stackTraceElements) {\n sb.append(\"|->\")\n .append(stackTraceElement.getClassName())\n .append(\"->\")\n .append(stackTraceElement.getMethodName())\n .append('[')\n .append(stackTraceElement.getLineNumber())\n .append(']')\n .append('\\n');\n }\n return sb.toString();\n }", "public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }", "public traceProperties() { \n //setProperty(\"WorkingDirectory\",\"null\");\n //setProperty(\"situated\",\"false\"); \n \n }", "protected void initialize() {\n \tP.println(Tt.extractClassName(this) + \" initializing\");\n }", "@Override\n\tpublic void analyzing(DependencyFrame rFrame) {\n\t\t\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}", "public static void setTrace(boolean traceOn) {\r\n\t\ttrace = traceOn;\r\n\t}", "public void initialize() {\n\t\tDLog(\"ANEAnalyticsExtension initialize\");\n\t}", "@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "public void start() {\n\t\tSystem.out.println(\"parent method\");\n\t}", "void startTracking();", "public void doMyStartupStuff() {\r\n\t\tSystem.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n\t}", "@Override\n public void beforeFirstLogic() {\n }", "public void before() {\n process = Thread.currentThread();\n }", "public void doInit() {\n\t\ttimer = new Timer() {\n\t\t public void run() {\n\t\t \t\tgetTrumpStack();\n\t\t }\n\t\t };\n\t\t timer.schedule(1000);\n\t}", "@Override\n\tpublic EntryMessage traceEntry() {\n\t\treturn null;\n\t}", "protected abstract void before();", "@Override\n\tpublic void trace(Marker marker, Object message, Throwable t) {\n\n\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\n\tpublic void trace(String message, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Throwable t) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}", "@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "@Override\n\tpublic void trace(MessageSupplier msgSupplier) {\n\n\t}", "public TracingTestPreProcExit()\n {\n super();\n }", "@Override\n\tprotected void initHook() {\n\t}", "@Override\n\tpublic void trace(Marker marker, Object message) {\n\n\t}", "@Before(\"controllerClassMethods()\")\n\tpublic void logBeforeCall(JoinPoint joinPoint) {\n\t\tSystem.out.println(\"--------------------------------------------------\");\n\t\tSystem.out.println(\"Esto es el @Before de aspect\");\n\t\tSystem.out.println(\"--------------------------------------------------\");\n\t\tlog.info(\"Attempting to Call [{}]:[{}] with Args, {}\",\n\t\t\t\tjoinPoint.getSignature().getDeclaringType().getSimpleName(), joinPoint.getSignature().getName(),\n\t\t\t\tjoinPoint.getArgs());\n\t}", "@Override\n\tpublic void earlyStartup() {\n\t}", "Object getTrace();", "protected void beforeJobExecution() {\n\t}", "@Override\r\n\tpublic void before(Method m, Object[] arg1, Object traget) throws Throwable {\n\t\tSystem.out.println(\"Before\"+m.getName() + \" this advice call\" );\r\n\t}", "@Stub\n\tpublic void before()\n\t{\n\t\t//\n\t}", "private void dbgTrace(String trace) {\n GenUtils.logCat(tag, trace);\n GenUtils.logMessageToFile(\"SessionV2.log\", trace);\n }", "public void prepare()\n\t{\n\t\tSystem.out.println(getClass().getName()+\" is preparing to go outside.\");\n\t}", "@Override\n public void onStart(ITestContext tc) {\n StatusPrinter.printRunStart();\n }" ]
[ "0.7531705", "0.7119003", "0.6961173", "0.68614984", "0.6785147", "0.6737714", "0.6672834", "0.65473485", "0.65281737", "0.6497345", "0.6460586", "0.64333594", "0.6431436", "0.63868326", "0.63729936", "0.63719445", "0.63433224", "0.63307756", "0.62521535", "0.6250223", "0.62395024", "0.6193424", "0.61576027", "0.6150635", "0.61422265", "0.61224264", "0.6095846", "0.60930693", "0.6087353", "0.6079626", "0.6074767", "0.60251796", "0.6019679", "0.60031205", "0.6001591", "0.59988356", "0.59943527", "0.5991652", "0.5988948", "0.59749", "0.59674007", "0.5965506", "0.59611094", "0.59555525", "0.5951711", "0.5945952", "0.5936237", "0.5934749", "0.5907725", "0.5901775", "0.5901423", "0.59005034", "0.58996135", "0.5898348", "0.5891055", "0.5881099", "0.58805096", "0.5879663", "0.58785206", "0.5878127", "0.58739895", "0.58724415", "0.5865173", "0.5861202", "0.58539546", "0.58516836", "0.58497804", "0.58479935", "0.5847891", "0.58443725", "0.58442986", "0.5842391", "0.58128446", "0.5801476", "0.57953644", "0.57852966", "0.5779244", "0.5778347", "0.5777881", "0.5776091", "0.57721007", "0.57718515", "0.5768022", "0.5764126", "0.575822", "0.5753603", "0.57388794", "0.5738711", "0.5733967", "0.57300925", "0.57259905", "0.57252055", "0.57242465", "0.57216835", "0.57210994", "0.5719735", "0.5717472", "0.57146686", "0.57116944", "0.5711623" ]
0.5933701
48
Process a ray that has intersected the oriented bounding box of the 3D image. The method is only called if there is a line segment of intersection. The 'intersectsBox' stores the end points of the line segment in the class members m_kP0 and m_kP1 in image coordinates.
protected synchronized void processRay (int iIndex, int rayTraceStepSize) { // Compute the number of steps to use given the step size of the ray. // The number of steps is proportional to the length of the line segment. m_kPDiff.sub(m_kP1, m_kP0); float fLength = m_kPDiff.length(); int iSteps = (int)(1.0f/rayTraceStepSize * fLength); // find the maximum value along the ray if ( iSteps > 1 ) { int iMaxIntensityColor = getBackgroundColor().getRGB(); float fMax = -1.0f; boolean bHitModel = false; float fTStep = 1.0f/iSteps; for (int i = 1; i < iSteps; i++) { m_kP.scaleAdd(i*fTStep, m_kPDiff, m_kP0); if (interpolate(m_kP, m_acImageA) > 0) { bHitModel = true; float fValue = interpolate(m_kP, m_acImageI); if (fValue > fMax) { fMax = fValue; iMaxIntensityColor = interpolateColor(m_kP); } } } if (bHitModel) { m_aiRImage[iIndex] = iMaxIntensityColor; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean\n doIntersection(Ray inOutRay) {\n double t, min_t = Double.MAX_VALUE;\n double x2 = size.x/2; // OJO: Esto deberia venir precalculado\n double y2 = size.y/2; // OJO: Esto deberia venir precalculado\n double z2 = size.z/2; // OJO: Esto deberia venir precalculado\n Vector3D p = new Vector3D();\n GeometryIntersectionInformation info = \n new GeometryIntersectionInformation();\n\n inOutRay.direction.normalize();\n\n // (1) Plano superior: Z = size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=size.z/2\n t = (z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = new Vector3D(p);\n min_t = t;\n lastPlane = 1;\n }\n }\n }\n\n // (2) Plano inferior: Z = -size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=-size.z/2\n t = (-z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 2;\n }\n }\n }\n\n // (3) Plano frontal: Y = size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=size.y/2\n t = (y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 3;\n }\n }\n }\n\n // (4) Plano posterior: Y = -size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=-size.y/2\n t = (-y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 4;\n }\n }\n }\n\n // (5) Plano X = size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=size.x/2\n t = (x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 5;\n }\n }\n }\n\n // (6) Plano X = -size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=-size.x/2\n t = (-x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 6;\n }\n }\n }\n\n if ( min_t < Double.MAX_VALUE ) {\n inOutRay.t = min_t;\n lastInfo.clone(info);\n return true;\n }\n return false;\n }", "public static void main(String[] args){\n Mesh3D box = Mesh3D.box(10, 20, 60);\n \n Line3D lineX = box.getLineX();\n Line3D lineY = box.getLineY();\n Line3D lineZ = box.getLineZ();\n lineX.show();\n lineY.show();\n lineZ.show();\n box.translateXYZ(100, 0.0, 0.0); \n box.show();\n Line3D line = new Line3D(); \n List<Point3D> intersects = new ArrayList<Point3D>();\n \n for(int p = 0; p < 100; p++){\n double r = 600;\n double theta = Math.toRadians(90.0);//Math.toRadians(Math.random()*180.0);\n double phi = Math.toRadians(Math.random()*360.0-180.0);\n line.set(0.0,0.0,0.0, \n Math.sin(theta)*Math.cos(phi)*r,\n Math.sin(theta)*Math.sin(phi)*r,\n Math.cos(theta)*r\n );\n intersects.clear();\n box.intersectionRay(line, intersects);\n System.out.println(\"theta/phi = \" + Math.toDegrees(theta) + \" \"\n + Math.toDegrees(phi) + \" intersects = \" + intersects.size());\n \n }\n }", "@Override\n public RayHit rayIntersectObj(Ray3D ray) {\n // Next check if ray hits this quadric\n Point3D hitPoint = findHitPoint(ray);\n if (hitPoint == null || !isWithinBounds(hitPoint)) {\n return RayHit.NO_HIT;\n }\n double distance = hitPoint.subtract(ray.getPoint()).length();\n Point3D normal = findNormalAtPoint(hitPoint);\n return new RayHit(hitPoint, distance, normal, this, new TextureCoordinate(0, 0));\n }", "@Override\n\tpublic void intersect(Ray ray, IntersectResult result) {\n\t\t\t\tdouble tmin,tmax;\n\t\t\t\tdouble xmin, xmax, ymin, ymax, zmin, zmax;\n\t\t\t\t//find which face to cross\n\n\t\t\t\tif(ray.viewDirection.x>0){\n\t\t\t\t\txmin=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}else{\n\t\t\t\t\txmin=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.y>0){\n\t\t\t\t\tymin=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}else{\n\t\t\t\t\tymin=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.z>0){\n\t\t\t\t\tzmin=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}else{\n\t\t\t\t\tzmin=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttmin=Double.max(xmin, ymin);\n\t\t\t\ttmin=Double.max(tmin, zmin);\n\t\t\t\ttmax=Double.min(xmax, ymax);\n\t\t\t\ttmax=Double.min(tmax, zmax);\n\t\t\t\t\n\t\t\t\t \n\t\t\t\tif(tmin<tmax && tmin>0){\n\t\t\t\t\t\n\t\t\t\t\tresult.material=material;\n\t\t\t\t\tresult.t=tmin;\n\t\t\t\t\tPoint3d p=new Point3d(ray.viewDirection);\n\t\t\t\t\tp.scale(tmin);\n\t\t\t\t\tp.add(ray.eyePoint);\n\t\t\t\t\tresult.p=p;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfinal double epsilon=1e-9;\n\t\t\t\t\t// find face and set the normal\n\t\t\t\t\tif(Math.abs(p.x-min.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(-1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.x-max.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.y-min.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,-1,0);\n\t\t\t\t\t}else if(Math.abs(p.y-max.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,1,0);\n\t\t\t\t\t}else if(Math.abs(p.z-min.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,-1);\n\t\t\t\t\t}else if(Math.abs(p.z-max.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t}", "@Override\r\n public void intersect( Ray ray, IntersectResult result ) {\n\t\r\n }", "public boolean detect_intersection_with_box(Box box)\n {\n if(_boundingbox == null)\n {\n this.generateBoundingBox();\n }\n\n // No intersection if the bounding box doesn't intersect the input box.\n if(!box.intersects_box(this._boundingbox))\n {\n return false;\n }\n\n // Filled polyline and contains entire box.\n if(this.isFilled() && this.containsPoint(box.min))\n {\n return true;\n }\n\n // Filled box that contains entire polyline.\n if(box.isFilled() && box.containsPoint(this._points.get(0)))\n {\n return true;\n }\n\n // No perform a polyline <---> polyline intersection test.\n Polyline polyline = box.toPolyline();\n\n return detect_intersection_with_polyline(polyline);\n }", "public List<Point3D> FindIntersections(Ray ray) throws Exception\n {\n List<Point3D> ListInter = new LinkedList<Point3D>();\n\n //find P0\n Point3D P0 = new Point3D(ray.getPOO());\n\n //find the triangle's Normal\n Vector N = this.getNormal(this.getP1());\n\n //find Plane\n Plane plane = new Plane(N, this.getP3());\n\n //if the intersection between the ray and plane\n List<Point3D> ListIntersectionPlane = plane.FindIntersections(ray);\n\n if(ListIntersectionPlane.isEmpty())\n return ListInter;\n\n Point3D intersectionPlane = ListIntersectionPlane.get(0);\n\n //defin Vector P_P0\n Vector P_P0 = new Vector(P0, intersectionPlane);\n\n //checking side 1-2\n Vector V1_1 = new Vector(P0, this._p1);\n Vector V2_1 = new Vector(P0, this._p2);\n Vector N1 = new Vector(V1_1.crossProduct(V2_1));\n N1.normalize();\n double S1 = -P_P0.dotProduct(N1);\n\n //checking side 2-3\n Vector V1_2 = new Vector(P0, this._p2);\n Vector V2_2 = new Vector(P0, this._p3);\n Vector N2 = new Vector(V1_2.crossProduct(V2_2));\n N2.normalize();\n double S2 = -P_P0.dotProduct(N2);\n\n //checking side 3-1\n Vector V1_3 = new Vector(P0, this._p3);\n Vector V2_3 = new Vector(P0, this._p1);\n Vector N3 = new Vector(V1_3.crossProduct(V2_3));\n N3.normalize();\n double S3 = -P_P0.dotProduct(N3);\n\n if (((S1 > 0) && (S2 > 0) && (S3 > 0)) || ((S1 < 0) && (S2 < 0) && (S3 < 0)))\n ListInter.add(intersectionPlane);\n return ListInter;\n\n }", "public double findRayIntersection(Vec3 origin, Vec3 direction, Vec3 normal)\n {\n double scale = width/obj.getScale();\n double ox = origin.x*scale+0.5*width;\n double oy = origin.y*scale+0.5*width;\n double oz = origin.z*scale+0.5*width;\n double dx = direction.x;\n double dy = direction.y;\n double dz = direction.z;\n\n // Find the intersection of the ray with the bounding box.\n\n double mint = -Double.MAX_VALUE;\n double maxt = Double.MAX_VALUE;\n if (dx == 0.0)\n {\n if (ox < minx || ox > maxx)\n return 0.0;\n }\n else\n {\n double t1 = (minx-ox)/dx;\n double t2 = (maxx-ox)/dx;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (dy == 0.0)\n {\n if (oy < miny || oy > maxy)\n return 0.0;\n }\n else\n {\n double t1 = (miny-oy)/dy;\n double t2 = (maxy-oy)/dy;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (dz == 0.0)\n {\n if (oz < minz || oz > maxz)\n return 0.0;\n }\n else\n {\n double t1 = (minz-oz)/dz;\n double t2 = (maxz-oz)/dz;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (mint < 0.0)\n mint = 0.0;\n\n // Find the first voxel and initialize variables.\n\n double xpos = ox+mint*dx;\n double ypos = oy+mint*dy;\n double zpos = oz+mint*dz;\n int x = Math.max(Math.min((int) xpos, maxx), minx);\n int y = Math.max(Math.min((int) ypos, maxy), miny);\n int z = Math.max(Math.min((int) zpos, maxz), minz);\n int stepx, stepy, stepz;\n int finalx, finaly, finalz;\n double tdeltax, tdeltay, tdeltaz;\n double tmaxx, tmaxy, tmaxz;\n if (dx < 0.0)\n {\n stepx = -1;\n finalx = minx-1;\n tdeltax = -1.0/dx;\n tmaxx = (x-ox)/dx;\n }\n else if (dx > 0.0)\n {\n stepx = 1;\n finalx = maxx+1;\n tdeltax = 1.0/dx;\n tmaxx = (x+1-ox)/dx;\n }\n else\n {\n stepx = 0;\n finalx = 0;\n tdeltax = 0.0;\n tmaxx = Double.MAX_VALUE;\n }\n if (dy < 0.0)\n {\n stepy = -1;\n finaly = miny-1;\n tdeltay = -1.0/dy;\n tmaxy = (y-oy)/dy;\n }\n else if (dy > 0.0)\n {\n stepy = 1;\n finaly = maxy+1;\n tdeltay = 1.0/dy;\n tmaxy = (y+1-oy)/dy;\n }\n else\n {\n stepy = 0;\n finaly = 0;\n tdeltay = 0.0;\n tmaxy = Double.MAX_VALUE;\n }\n if (dz < 0.0)\n {\n stepz = -1;\n finalz = minz-1;\n tdeltaz = -1.0/dz;\n tmaxz = (z-oz)/dz;\n }\n else if (dz > 0.0)\n {\n stepz = 1;\n finalz = maxz+1;\n tdeltaz = 1.0/dz;\n tmaxz = (z+1-oz)/dz;\n }\n else\n {\n stepz = 0;\n finalz = 0;\n tdeltaz = 0.0;\n tmaxz = Double.MAX_VALUE;\n }\n\n // Step through the voxels, looking for intersections.\n\n VoxelOctree voxels = obj.getVoxels();\n byte values[] = new byte[8];\n while (true)\n {\n int index = x*width*width+y*width+z;\n if ((flags[index/32]&(1<<(index%32))) != 0)\n {\n // There is a piece of the surface in this voxel, so see if the ray intersects it.\n // First find the values of t at which the ray enters and exits it.\n \n double tenter = -Double.MAX_VALUE;\n double texit = Double.MAX_VALUE;\n if (dx != 0.0)\n {\n double t1 = (x-ox)/dx;\n double t2 = (x+1-ox)/dx;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (dy != 0.0)\n {\n double t1 = (y-oy)/dy;\n double t2 = (y+1-oy)/dy;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (dz != 0.0)\n {\n double t1 = (z-oz)/dz;\n double t2 = (z+1-oz)/dz;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (tenter < 0.0)\n continue; // Ignore intersections in the voxel containing the origin.\n\n // Look up the values at the eight corners of the voxel.\n\n values[0] = voxels.getValue(x, y, z);\n values[1] = voxels.getValue(x, y, z+1);\n values[2] = voxels.getValue(x, y+1, z);\n values[3] = voxels.getValue(x, y+1, z+1);\n values[4] = voxels.getValue(x+1, y, z);\n values[5] = voxels.getValue(x+1, y, z+1);\n values[6] = voxels.getValue(x+1, y+1, z);\n values[7] = voxels.getValue(x+1, y+1, z+1);\n\n // Find the positions within the voxel where the ray enters and exits.\n\n double xenter = ox+dx*tenter-x;\n double yenter = oy+dy*tenter-y;\n double zenter = oz+dz*tenter-z;\n double xexit = ox+dx*texit-x;\n double yexit = oy+dy*texit-y;\n double zexit = oz+dz*texit-z;\n\n // Interpolate the find the values at those points.\n\n double enterValue = values[0]*(1.0-xenter)*(1.0-yenter)*(1.0-zenter)\n +values[1]*(1.0-xenter)*(1.0-yenter)*zenter\n +values[2]*(1.0-xenter)*yenter*(1.0-zenter)\n +values[3]*(1.0-xenter)*yenter*zenter\n +values[4]*xenter*(1.0-yenter)*(1.0-zenter)\n +values[5]*xenter*(1.0-yenter)*zenter\n +values[6]*xenter*yenter*(1.0-zenter)\n +values[7]*xenter*yenter*zenter;\n double exitValue = values[0]*(1.0-xexit)*(1.0-yexit)*(1.0-zexit)\n +values[1]*(1.0-xexit)*(1.0-yexit)*zexit\n +values[2]*(1.0-xexit)*yexit*(1.0-zexit)\n +values[3]*(1.0-xexit)*yexit*zexit\n +values[4]*xexit*(1.0-yexit)*(1.0-zexit)\n +values[5]*xexit*(1.0-yexit)*zexit\n +values[6]*xexit*yexit*(1.0-zexit)\n +values[7]*xexit*yexit*zexit;\n if ((enterValue > 0 && exitValue <= 0) || (enterValue <= 0 && exitValue > 0))\n {\n // Find the intersection point.\n\n double weight1 = Math.abs(exitValue);\n double weight2 = Math.abs(enterValue);\n double d = 1.0/(weight1+weight2);\n weight1 *= d;\n weight2 *= d;\n double tintersect = (tenter*weight1 + texit*weight2)/scale;\n if (normal != null)\n {\n normal.set(values[0]+values[1]+values[2]+values[3]-values[4]-values[5]-values[6]-values[7],\n values[0]+values[1]-values[2]-values[3]+values[4]+values[5]-values[6]-values[7],\n values[0]-values[1]+values[2]-values[3]+values[4]-values[5]+values[6]-values[7]);\n normal.normalize();\n }\n return tintersect;\n }\n }\n\n // Advance to the next voxel.\n\n if (tmaxx < tmaxy)\n {\n if (tmaxx < tmaxz)\n {\n x += stepx;\n if (x == finalx)\n return 0.0;\n tmaxx += tdeltax;\n }\n else\n {\n z += stepz;\n if (z == finalz)\n return 0.0;\n tmaxz += tdeltaz;\n }\n }\n else\n {\n if (tmaxy < tmaxz)\n {\n y += stepy;\n if (y == finaly)\n return 0.0;\n tmaxy += tdeltay;\n }\n else\n {\n z += stepz;\n if (z == finalz)\n return 0.0;\n tmaxz += tdeltaz;\n }\n }\n }\n }", "public native void raycast(Raycaster raycaster, Object[] intersects);", "public Pair<Boolean, Float> intersects(AxisAlignedBox box) {\r\n\t\treturn SecaMath.intersect(this, box);\r\n\t}", "public static boolean\nraysIntersectInPlane(Point2D tail0Pt, Point2D head0Pt, Point2D tail1Pt, Point2D head1Pt,\n\tPoint2D intersect, double[] uArray)\n{\n\tdouble tmp = ((head1Pt.getY() - tail1Pt.getY())*(head0Pt.getX() - tail0Pt.getX()) - (head1Pt.getX() - tail1Pt.getX())*(head0Pt.getY() - tail0Pt.getY()));\n\tif(tmp == 0.0)\n\t\treturn(false);\n\tdouble tmpv = ((tail1Pt.getX() - tail0Pt.getX())*(head0Pt.getY() - tail0Pt.getY()) - (tail1Pt.getY() - tail0Pt.getY())*(head0Pt.getX() - tail0Pt.getX())) / tmp;\n\ttmp = (head0Pt.getX() - tail0Pt.getX())*(head1Pt.getY() - tail1Pt.getY()) - (head1Pt.getX() - tail1Pt.getX())*(head0Pt.getY() - tail0Pt.getY());\n\tif(tmp == 0.0)\n\t\treturn(false);\n\tdouble tmpu = ((tail1Pt.getX() - tail0Pt.getX())*(head1Pt.getY() - tail1Pt.getY()) + (head1Pt.getX() - tail1Pt.getX())*(tail0Pt.getY() - tail1Pt.getY()))/tmp;\n\n\tintersect.setLocation(\n\t\ttail1Pt.getX() + tmpv*(head1Pt.getX() - tail1Pt.getX()),\n\t\ttail1Pt.getY() + tmpv*(head1Pt.getY() - tail1Pt.getY()));\n\n\t// intersect[ZCoor] = tail1Pt[ZCoor] + tmpv*(head1Pt[ZCoor] - tail1Pt[ZCoor]);\n\n\tuArray[0] = tmpu; // u of first ray\n\tuArray[1] = tmpv; // u of second ray\n\n\treturn (true);\n}", "public boolean isLineInBox(final Vec3 l1, final Vec3 l2)\n {\n // Put line in box space\n Mat4 mInv = m.getInverseSimple();\n Vec4 lb1 = mInv.multiply(l1.toPoint());\n Vec4 lb2 = mInv.multiply(l2.toPoint());\n\n // Get line midpoint and extent\n Vec4 lMid = (lb1.add(lb2)).multiply(0.5f);\n Vec4 l = lb1.subtract(lMid);\n Vec3 lExt = new Vec3(abs(l.getX()), abs(l.getY()), abs(l.getZ()));\n\n // Use Separating Axis Test\n // Separation vector from box center to line center is LMid, since the line is in box space\n for (int i = 0; i < 3; i++)\n {\n if (abs(lMid.get(i)) > extents.get(i) + lExt.get(i))\n {\n return false;\n }\n }\n\n // Crossproducts of line and each axis\n if ((abs(lMid.getY() * l.getZ()) - lMid.getZ() * l.getY()) > (extents.getY() * lExt.getZ() + extents.getZ() * lExt.getY()))\n {\n return false;\n }\n if (abs(lMid.getX() * l.getZ() - lMid.getZ() * l.getX()) > (extents.getX() * lExt.getZ() + extents.getZ() * lExt.getX()))\n {\n return false;\n }\n if (abs(lMid.getX() * l.getY() - lMid.getY() * l.getX()) > (extents.getX() * lExt.getY() + extents.getY() * lExt.getX()))\n {\n return false;\n }\n // No separating axis, the line intersects\n return true;\n }", "@Override\n public boolean\n doIntersection(Ray inOut_Ray) {\n // TODO!\n return false;\n }", "public Hit intersectsRay(Ray ray) {\n\t\tVector3D dst = Vector3D.sub(ray.b, pos);\n\t\tfloat B = dst.dot(ray.d);\n\t\tfloat C = dst.dot(dst) - radius2;\n\t\tfloat D = B*B - C;\n\t\tfloat t = (float) (-B - Math.sqrt(D));\n\t\tif (!(t > 0)) return null; // escape case: no collision or outside fov\n\t\tVector3D hitPos = Vector3D.add(ray.b, Vector3D.mult(ray.d, t));\n\t\tVector3D n = getNormal(hitPos);\n\t\treturn new Hit(this, t, hitPos, n);\n\t}", "public abstract boolean intersect(BoundingBox bbox);", "@Override\n public Rectangle intersects( Rectangle boundingBox )\n {\n return null;\n }", "public interface Ray3 extends Path3, Serializable, Cloneable {\r\n\r\n /**\r\n * Creates a new ray from 3 coordinates for the origin point and 3 coordinates for the direction vector.\r\n *\r\n * @param xo the x-coordinate of the origin\r\n * @param yo the y-coordinate of the origin\r\n * @param zo the z-coordinate of the origin\r\n * @param xd the x-coordinate of the direction\r\n * @param yd the y-coordinate of the direction\r\n * @param zd the z-coordinate of the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(double xo, double yo, double zo, double xd, double yd, double zd) {\r\n return new Ray3Impl(xo, yo, zo, xd, yd, zd);\r\n }\r\n\r\n /**\r\n * Creates a new ray from an origin point and a direction vector.\r\n *\r\n * @param origin the origin\r\n * @param dir the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n * The origin will be a copy of the point {@code from}.\r\n * The directional vector will be a new vector from {@code from} to {@code to}.\r\n *\r\n * @param from the first point\r\n * @param to the second point\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(Vector3 from, Vector3 to) {\r\n return fromOD(from, Vector3.between(from, to));\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n *\r\n * @param ox the origin x\r\n * @param oy the origin x\r\n * @param oz the origin x\r\n * @param tx the target x\r\n * @param ty the target x\r\n * @param tz the target x\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(double ox, double oy, double oz, double tx, double ty, double tz) {\r\n return fromOD(ox, oy, oz, tx-ox, ty-oy, tz-oz);\r\n }\r\n\r\n // GETTERS\r\n\r\n /**\r\n * Returns the x-coordinate of the origin of this ray.\r\n *\r\n * @return the x-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgX();\r\n\r\n /**\r\n * Returns the y-coordinate of the origin of this ray.\r\n *\r\n * @return the y-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgY();\r\n\r\n /**\r\n * Returns the z-coordinate of the origin of this ray.\r\n *\r\n * @return the z-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgZ();\r\n\r\n /**\r\n * Returns the x-coordinate of the direction of this ray.\r\n *\r\n * @return the x-coordinate of the direction of this ray\r\n */\r\n abstract double getDirX();\r\n\r\n /**\r\n * Returns the y-coordinate of the direction of this ray.\r\n *\r\n * @return the y-coordinate of the direction of this ray\r\n */\r\n abstract double getDirY();\r\n\r\n /**\r\n * Returns the z-coordinate of the direction of this ray.\r\n *\r\n * @return the z-coordinate of the direction of this ray\r\n */\r\n abstract double getDirZ();\r\n\r\n /**\r\n * Returns the length of this ray.\r\n *\r\n * @return the length of this ray\r\n */\r\n abstract double getLength();\r\n\r\n /**\r\n * Returns the squared length of this ray.\r\n *\r\n * @return the squared length of this ray\r\n */\r\n abstract double getLengthSquared();\r\n \r\n /**\r\n * Returns the origin of this ray in a new vector.\r\n *\r\n * @return the origin of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }\r\n \r\n /**\r\n * Returns the direction of this ray in a new vector.\r\n *\r\n * @return the direction of this ray in a new vector\r\n */\r\n default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }\r\n \r\n default AxisAlignedBB getBoundaries() {\r\n return AxisAlignedBB.between(getOrigin(), getEnd());\r\n }\r\n\r\n // PATH IMPL\r\n \r\n /**\r\n * Returns the end of this ray in a new vector. This is equal to the sum of the origin and direction of the vector.\r\n *\r\n * @return the end of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getEnd() {\r\n return Vector3.fromXYZ(getOrgX() + getDirX(), getOrgY() + getDirY(), getOrgZ() + getDirZ());\r\n }\r\n\r\n @Override\r\n default Vector3[] getControlPoints() {\r\n return new Vector3[] {getOrigin(), getEnd()};\r\n }\r\n\r\n // CHECKERS\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(double x, double y, double z) {\r\n return Vector3.between(getOrgX(), getOrgY(), getOrgZ(), x, y, z).isMultipleOf(getDirection());\r\n }\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param point the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(Vector3 point) {\r\n return contains(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Returns whether this ray is equal to another ray. This condition is true\r\n * if both origin and direction are equal.\r\n *\r\n * @param ray the ray\r\n * @return whether this ray is equal to the ray\r\n */\r\n default boolean equals(Ray3 ray) {\r\n return\r\n getOrigin().equals(ray.getOrigin()) &&\r\n getDirection().isMultipleOf(ray.getDirection());\r\n }\r\n\r\n // SETTERS\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n */\r\n abstract void setOrigin(double x, double y, double z);\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param point the point\r\n */\r\n default void setOrigin(Vector3 point) {\r\n setOrigin(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param x the x-coordinate of the vector\r\n * @param y the y-coordinate of the vector\r\n * @param z the z-coordinate of the vector\r\n */\r\n abstract void setDirection(double x, double y, double z);\r\n \r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param v the vector\r\n */\r\n default void setDirection(Vector3 v) {\r\n setDirection(v.getX(), v.getY(), v.getZ());\r\n }\r\n\r\n /**\r\n * Sets the length of this ray to a given length.\r\n *\r\n * @param t the new hypot\r\n */\r\n default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }\r\n\r\n default void normalize() {\r\n setLength(1);\r\n }\r\n \r\n //TRANSFORMATIONS\r\n \r\n default void scaleOrigin(double x, double y, double z) {\r\n setDirection(getOrgX()*x, getOrgY()*y, getOrgZ()*z);\r\n }\r\n \r\n default void scaleDirection(double x, double y, double z) {\r\n setDirection(getDirX()*x, getDirY()*y, getDirZ()*z);\r\n }\r\n \r\n default void scaleOrigin(double factor) {\r\n scaleOrigin(factor, factor, factor);\r\n }\r\n \r\n default void scaleDirection(double factor) {\r\n scaleDirection(factor, factor, factor);\r\n }\r\n \r\n default void scale(double x, double y, double z) {\r\n scaleOrigin(x, y, z);\r\n scaleDirection(x, y, z);\r\n }\r\n \r\n default void scale(double factor) {\r\n scale(factor, factor, factor);\r\n }\r\n \r\n /**\r\n * Translates the ray origin by a given amount on each axis.\r\n *\r\n * @param x the x-coordinate\r\n * @param y the y-coordinate\r\n * @param z the z-coordinate\r\n */\r\n abstract void translate(double x, double y, double z);\r\n\r\n // MISC\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @param interval the interval of iteration\r\n * @return a new interval iterator\r\n */\r\n default Iterator<Vector3> intervalIterator(double interval) {\r\n return new IntervalIterator(this, interval);\r\n }\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @return a new interval iterator\r\n */\r\n default Iterator<BlockVector> blockIntervalIterator() {\r\n return new BlockIntervalIterator(this);\r\n }\r\n\r\n /**\r\n * Returns a given amount of equally distributed points on this ray.\r\n *\r\n * @param amount the amount\r\n * @return an array containing points on this ray\r\n */\r\n @Override\r\n default Vector3[] getPoints(int amount) {\r\n if (amount < 0) throw new IllegalArgumentException(\"amount < 0\");\r\n if (amount == 0) return new Vector3[0];\r\n if (amount == 1) return new Vector3[] {getOrigin()};\r\n if (amount == 2) return new Vector3[] {getOrigin(), getEnd()};\r\n\r\n int t = amount - 1, i = 0;\r\n Vector3[] result = new Vector3[amount];\r\n\r\n Iterator<Vector3> iter = intervalIterator(getLengthSquared() / t*t);\r\n while (iter.hasNext())\r\n result[i++] = iter.next();\r\n\r\n return result;\r\n }\r\n\r\n abstract Ray3 clone();\r\n\r\n}", "public CFWRect intersectsLine( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//1.rejust rect\r\n\t\t//correct: (m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\r\n\t\tif(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange all\r\n\t\t\tCFWPoint poiTmp = m_poiLT;\r\n\t\t\tm_poiLT = m_poiRB;\r\n\t\t\tm_poiRB = poiTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\t{\r\n\t\t\t//exchange X\r\n\t\t\tfloat fXTmp = m_poiLT.m_fX;\r\n\t\t\tm_poiLT.m_fX = m_poiRB.m_fX;\r\n\t\t\tm_poiRB.m_fX = fXTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange Y\r\n\t\t\tfloat fYTmp = m_poiLT.m_fY;\r\n\t\t\tm_poiLT.m_fY = m_poiRB.m_fY;\r\n\t\t\tm_poiRB.m_fY = fYTmp;\r\n\t\t}\r\n\t\t//2.intersect test\r\n\t\tCFWPoint poiOutOfRect = new CFWPoint();\r\n\t\tboolean bPoiInsideRect = false;\r\n\t\tCFWRect rectRet = new CFWRect();\r\n\t\tif(!checkPoiInside( poiBegI, poiEndI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse if(!checkPoiInside( poiEndI, poiBegI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\tif(isInsideArea( 9, poiBegI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\t}\r\n\t\t\t\trectRet.m_poiLT = poiBegI;\r\n\t\t\t\tpoiOutOfRect = poiEndI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiBegI))\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\trectRet.m_poiLT = poiEndI;\r\n\t\t\t\tpoiOutOfRect = poiBegI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//3.intersect\r\n\t\t//if the line is vertical to X/Y, return the line segment\r\n\t\tif(poiEndI.m_fX == poiBegI.m_fX)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = poiEndI.m_fX;\r\n\t\t\t\t//less than the m_poiLT'Y, use the m_poiLT'Y\r\n\t\t\t\trectRet.m_poiLT.m_fY = Math.max( Math.min(poiBegI.m_fY, poiEndI.m_fY), m_poiLT.m_fY);\r\n\t\t\t\t//larger than m_poiRB's Y, use the m_poiRB's Y\r\n\t\t\t\trectRet.m_poiRB.m_fY = Math.min( Math.max(poiBegI.m_fY, poiEndI.m_fY), m_poiRB.m_fY);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fY < m_poiLT.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\telse if(poiOutOfRect.m_fY > m_poiRB.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiRB.m_fY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fX = poiEndI.m_fX;\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(poiEndI.m_fY == poiBegI.m_fY)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = Math.max( Math.min( poiBegI.m_fX, poiEndI.m_fX), m_poiLT.m_fX);\r\n\t\t\t\trectRet.m_poiLT.m_fY = poiEndI.m_fY;\r\n\t\t\t\trectRet.m_poiRB.m_fX = Math.min( Math.max( poiBegI.m_fX, poiEndI.m_fX), m_poiRB.m_fX);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fX < m_poiLT.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\telse if(poiOutOfRect.m_fX > m_poiRB.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiRB.m_fX;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fY = poiEndI.m_fY;\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\t//build line function\r\n\t\t\tdouble dK = (poiEndI.m_fY - poiBegI.m_fY)/(poiEndI.m_fX - poiBegI.m_fX);\r\n\t\t\tdouble dB = poiBegI.m_fY - dK*poiBegI.m_fX;\r\n\t\t\t//find intersect points\r\n\t\t\tCFWPoint poiIntersA = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tCFWPoint poiIntersB = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tfloat fXTmpA = (float)((m_poiLT.m_fY - dB)/dK);\r\n\t\t\tfloat fXTmpB = (float)((m_poiRB.m_fY - dB)/dK);\r\n\t\t\tfloat fYTmpA = (float)(dK*m_poiLT.m_fX + dB);\r\n\t\t\tfloat fYTmpB = (float)(dK*m_poiRB.m_fX + dB);\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpA, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpB, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpA, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpB, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(bPoiInsideRect)\t{\r\n\t\t\t\tCFWVector vecBE = new CFWVector(poiOutOfRect.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBA = new CFWVector(poiIntersA.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBB = new CFWVector(poiIntersB.sub(rectRet.m_poiLT));\r\n\t\t\t\tif(vecBE.isSameDir_VerticalIn(vecBA))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersA;\r\n\t\t\t\t}\r\n\t\t\t\telse if(vecBE.isSameDir_VerticalIn(vecBB))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\trectRet.m_poiLT = poiIntersA;\r\n\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//last check : intersected line segment whether inside rectangle\r\n\t\tif(!isInsideArea( 9, rectRet.m_poiLT) || !isInsideArea( 9, rectRet.m_poiRB))\t{\r\n\t\t\tSystem.out.println(\"generated line segment isn't inside rectangle!\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn(rectRet);\r\n\t}", "@Override\n\tpublic boolean intersectsRectangle(final int ax1, final int ax2, final int ay1, final int ay2)\n\t{\n\t\tif (isInsideZone(ax1, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax1, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Check if any point from this rectangle is inside the other one\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Horizontal lines may intersect vertical lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Vertical lines may intersect horizontal lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n // public Map<Geometry, List<Point3D>> findIntersections(Ray myRay) {\n public List<Point3D> FindIntersections(Ray myRay) {\n\n List<Point3D> geometryListMap = new ArrayList<>();\n List<Point3D> listOfIntersections = new ArrayList<Point3D>();\n\n // the bottom base of the cylinder\n Plane plane1 = new Plane(orientation.getPOO(), orientation.getDirection());\n\n // the top base of the cylinder\n Plane plane2 = new Plane(top, orientation.getDirection());\n\n List<Point3D> temp1 = plane1.FindIntersections(myRay);\n\n List<Point3D> temp2 = plane2.FindIntersections(myRay);\n\n // removing all points that beyond the radius\n if (temp1 != null)\n for (Point3D p1 : temp1) {\n if (new Vector(Point3D.substract(orientation.getPOO(), p1)).length() <= _radius && p1 != null)\n listOfIntersections.add(p1);\n\n }\n\n if (temp2 != null)\n for (Point3D p2 : temp2) {\n if (new Vector(Point3D.substract(orientation.getPOO(), p2)).length() <= _radius && p2 != null)\n listOfIntersections.add(p2);\n\n }\n\n // using the infinity cylinder to find all the intersections in the body of the limited cylinder\n geometryListMap = super.FindIntersections(myRay);\n\n for (Point3D p : geometryListMap) {\n if (isOnCylinder(p))\n listOfIntersections.add(p);\n\n }\n if (listOfIntersections.isEmpty())\n return null;\n //geometryListMap.put(this, listOfIntersections);\n return geometryListMap;\n }", "@Test\n void findIntersections() {\n Cuboid cuboid1 = new Cuboid(4,4,4);\n Ray ray1 = new Ray(new Point3D(-3,0,0), new Vector3D(1,0,0));\n ArrayList<GeoPoint> actual1 = cuboid1.findIntersections(ray1);\n ArrayList<GeoPoint> expected1 = new ArrayList<>();\n expected1.add(new GeoPoint(cuboid1, new Point3D(2,0,0)));\n expected1.add(new GeoPoint(cuboid1, new Point3D(-2,0,0)));\n\n assertTrue(Util.intersectionsEqual(expected1, actual1));\n\n //Aligned with Y axis but have different dimensions\n Cuboid cuboid2 = new Cuboid(2,4,3);\n Ray ray2 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual2 = cuboid2.findIntersections(ray2);\n ArrayList<GeoPoint> expected2 = new ArrayList<>();\n expected2.add(new GeoPoint(cuboid1, new Point3D(0,2,0)));\n assertEquals(expected2.get(0).point, actual2.get(0).point);\n\n Cuboid cuboid3 = new Cuboid(2,4,3, new Ray(new Point3D(1,1,1), new Vector3D(0,0,1)));\n Ray ray3 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual3 = cuboid3.findIntersections(ray3);\n ArrayList<GeoPoint> expected3 = new ArrayList<>();\n expected3.add(new GeoPoint(cuboid1, new Point3D(0,3,0)));\n assertEquals(expected3.get(0).point, actual3.get(0).point);\n\n Ray ray = new Ray(new Point3D(0,0,-200), Vector3D.zAxis);\n ArrayList<GeoPoint> interesections = cuboid1.findIntersections(ray);\n }", "public boolean intersects(MeshObject object) {\r\n return intersects(this.getCurrentCollisionCenter(), this.boundingSphereRadius, object.getCurrentCollisionCenter(), object.boundingSphereRadius);\r\n }", "public static float intersectRayOnLine(PointF rayPos, PointF rayDir,\n PointF line0, PointF line1){\n PointF v1 = Vec2D.subtract(rayPos, line0);\n PointF v2 = Vec2D.subtract(line1, line0);\n PointF v3 = Vec2D.perpendicular(rayDir);\n\n return Vec2D.dot(v1, v3) / Vec2D.dot(v2, v3);\n }", "public boolean hasIntersectionRay(Line3D line) {\n List<Point3D> list = new ArrayList();\n /*for (Face3D face : faces)\n if (face.intersectionRay(line, list) > 0)\n return true;*/\n return false;\n }", "public int intersectionRay(final Line3D line, List<Point3D> intersections) {\n int count = 0;\n int nFaces = meshFaces.length/3;\n Triangle3D face = new Triangle3D();\n for (int f = 0; f < nFaces; f++){\n this.getFace(f, face);\n count += face.intersectionRay(line, intersections);\n }\n return count;\n }", "private Map<Geometry, List<Point3D>> getSceneRayIntersections(Ray ray){\n //Map key - geometric\n //value - a list of cut points\n Map<Geometry, List<Point3D>> sceneRayIntersectPions = new HashMap<Geometry, List<Point3D>>();\n //Iterator we can go through all the geometric shapes\n Iterator<Geometry> geometries = _scene.getGeometriesIterator();\n //for each geometry finde intersection points\n while (geometries.hasNext()){\n Geometry geometry = geometries.next();\n List<Point3D> geometryIntersectionPoints = geometry.FindIntersections(ray);\n if(!geometryIntersectionPoints.isEmpty())\n //add geometryIntersectionPoints(list) to key geometry\n sceneRayIntersectPions.put(geometry, geometryIntersectionPoints);\n }\n return sceneRayIntersectPions;\n }", "@Override\n public MovingObjectPosition collisionRayTrace(World world, BlockPos pos, Vec3 vec0, Vec3 vec1) {\n this.setBlockBoundsBasedOnState(world, pos);\n vec0 = vec0.addVector((double)(-pos.getX()), (double)(-pos.getY()), (double)(-pos.getZ()));\n vec1 = vec1.addVector((double) (-pos.getX()), (double) (-pos.getY()), (double) (-pos.getZ()));\n Vec3 vec2 = vec0.getIntermediateWithXValue(vec1, this.minX);\n Vec3 vec3 = vec0.getIntermediateWithXValue(vec1, this.maxX);\n Vec3 vec4 = vec0.getIntermediateWithYValue(vec1, this.minY);\n Vec3 vec5 = vec0.getIntermediateWithYValue(vec1, this.maxY);\n Vec3 vec6 = vec0.getIntermediateWithZValue(vec1, this.minZ);\n Vec3 vec7 = vec0.getIntermediateWithZValue(vec1, this.maxZ);\n Vec3 vec8 = null;\n if (!this.isVecInsideYZBounds(world, pos, vec2)) {\n vec2 = null;\n }\n if (!this.isVecInsideYZBounds(world, pos, vec3)) {\n vec3 = null;\n }\n if (!this.isVecInsideXZBounds(world, pos, vec4)) {\n vec4 = null;\n }\n if (!this.isVecInsideXZBounds(world, pos, vec5)) {\n vec5 = null;\n }\n if (!this.isVecInsideXYBounds(world, pos, vec6)) {\n vec6 = null;\n }\n if (!this.isVecInsideXYBounds(world, pos, vec7)) {\n vec7 = null;\n }\n if (vec2 != null) {\n vec8 = vec2;\n }\n if (vec3 != null && (vec8 == null || vec0.squareDistanceTo(vec3) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec3;\n }\n if (vec4 != null && (vec8 == null || vec0.squareDistanceTo(vec4) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec4;\n }\n if (vec5 != null && (vec8 == null || vec0.squareDistanceTo(vec5) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec5;\n }\n if (vec6 != null && (vec8 == null || vec0.squareDistanceTo(vec6) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec6;\n }\n if (vec7 != null && (vec8 == null || vec0.squareDistanceTo(vec7) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec7;\n }\n if (vec8 == null) {\n return null;\n } else {\n EnumFacing enumfacing = null;\n if (vec8 == vec3) {\n enumfacing = EnumFacing.WEST;\n }\n if (vec8 == vec2) {\n enumfacing = EnumFacing.EAST;\n }\n if (vec8 == vec3) {\n enumfacing = EnumFacing.DOWN;\n }\n if (vec8 == vec4) {\n enumfacing = EnumFacing.UP;\n }\n if (vec8 == vec5) {\n enumfacing = EnumFacing.NORTH;\n }\n if (vec8 == vec6) {\n enumfacing = EnumFacing.SOUTH;\n }\n return new MovingObjectPosition(vec8.addVector((double) pos.getX(), (double) pos.getY(), (double) pos.getZ()), enumfacing, pos);\n }\n }", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray) {\r\n\t\tList<GeoPoint> list = new ArrayList<GeoPoint>();\r\n\t\tVector rayDirection = ray.getDirection();\r\n\t\tPoint3D rayPoint = ray.getPOO();\r\n\r\n\t\t// case centerPoint same as the RayPoint\r\n\t\tif (centerPoint.equals(rayPoint)) {\r\n\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(radius))));\r\n\t\t\treturn list;\r\n\t\t}\r\n\r\n\t\t// u = centerPoint - rayPoint\r\n\t\tVector u = centerPoint.subtract(rayPoint);\r\n\t\t// tm = u * rayDirection\r\n\t\tdouble tm = rayDirection.dotProduct(u);\r\n\t\t// distance = sqrt(|u|^2 - tm^2)\r\n\t\tdouble d = Math.sqrt(u.dotProduct(u) - tm * tm);\r\n\t\t// case the distance is bigger than radius no intersections\r\n\t\tif (d > radius)\r\n\t\t\treturn list;\r\n\r\n\t\t// th = sqrt(R^2 - d^2)\r\n\t\tdouble th = Math.sqrt(radius * radius - d * d);\r\n\r\n\t\tdouble t1 = tm - th;\r\n\t\tdouble t2 = tm + th;\r\n\r\n\t\tif (Util.isZero(t1) || Util.isZero(t2)) {\r\n\t\t\tlist.add(new GeoPoint(this, rayPoint));\r\n\t\t}\r\n\t\tif (Util.isZero(th)) {\r\n\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(tm))));\r\n\t\t} else {\r\n\t\t\tif (t1 > 0 && !Util.isZero(t1))// one\r\n\t\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(t1))));\r\n\t\t\tif (t2 > 0 && !Util.isZero(t2)) {// two\r\n\t\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(t2))));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}", "public double rayIntersect(Vector3D rayOrigin, Vector3D rayDirection, boolean goingOut, int[] faceIndex, LinkedTransferQueue simVis) {\n double tmin = -1;\n int x = 0;\n int y = 1;\n int z = 2;\n int face = -1;\n if (java.lang.Math.abs(rayDirection.getNorm() - 1) > 1e-8) {\n System.out.println(\"direction not normalized in rayIntersect\");\n }\n\n double ox = rayOrigin.getX();\n double oy = rayOrigin.getY();\n double oz = rayOrigin.getZ();\n\n double dx = rayDirection.getX();\n double dy = rayDirection.getY();\n double dz = rayDirection.getZ();\n\n cacheVerticesAndFaces();\n// System.out.println(\"Checking part\" + this.part.name);\n int vis = this.mesh.getVertexFormat().getVertexIndexSize();\n\n for (int i = 0; i < faces.length; i += 6) {\n double t = Util.Math.rayTriangleIntersect(ox, oy, oz, dx, dy, dz,\n vertices[3 * faces[i] + x], vertices[3 * faces[i] + y], vertices[3 * faces[i] + z],\n goingOut ? vertices[3 * faces[i + 2 * vis] + x] : vertices[3 * faces[i + vis] + x],\n goingOut ? vertices[3 * faces[i + 2 * vis] + y] : vertices[3 * faces[i + vis] + y],\n goingOut ? vertices[3 * faces[i + 2 * vis] + z] : vertices[3 * faces[i + vis] + z],\n goingOut ? vertices[3 * faces[i + vis] + x] : vertices[3 * faces[i + 2 * vis] + x],\n goingOut ? vertices[3 * faces[i + vis] + y] : vertices[3 * faces[i + 2 * vis] + y],\n goingOut ? vertices[3 * faces[i + vis] + z] : vertices[3 * faces[i + 2 * vis] + z]\n );\n if (t != -1) {\n if (tmin != -1) {\n if (t < tmin) {\n tmin = t;\n face = i;\n }\n } else {\n tmin = t;\n face = i;\n }\n }\n }\n // report back the face index if asked for\n if (faceIndex != null) {\n faceIndex[0] = face;\n }\n\n return tmin;\n }", "public void computeBoundingBox() {\n\taveragePosition = new Point3(center);\n tMat.rightMultiply(averagePosition);\n \n minBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n maxBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n // Initialize\n Point3[] v = new Point3[8];\n for (int i = 0; i < 8; i++)\n \tv[i] = new Point3(center);\n // Vertices of the box\n v[0].add(new Vector3(-radius, -radius, -height/2.0));\n v[1].add(new Vector3(-radius, radius, -height/2.0));\n v[2].add(new Vector3(radius, -radius, -height/2.0));\n v[3].add(new Vector3(radius, radius, -height/2.0));\n v[4].add(new Vector3(-radius, -radius, height/2.0));\n v[5].add(new Vector3(-radius, radius, height/2.0));\n v[6].add(new Vector3(radius, -radius, height/2.0));\n v[7].add(new Vector3(radius, radius, height/2.0));\n // Update minBound and maxBound\n for (int i = 0; i < 8; i++)\n {\n \ttMat.rightMultiply(v[i]);\n \tif (v[i].x < minBound.x)\n \t\tminBound.x = v[i].x;\n \tif (v[i].x > maxBound.x)\n \t\tmaxBound.x = v[i].x;\n \tif (v[i].y < minBound.y)\n \t\tminBound.y = v[i].y;\n \tif (v[i].y > maxBound.y)\n \t\tmaxBound.y = v[i].y;\n \tif (v[i].z < minBound.z)\n \t\tminBound.z = v[i].z;\n \tif (v[i].z > maxBound.z)\n \t\tmaxBound.z = v[i].z;\n }\n \n }", "@Override\n public void intersect( Ray ray, IntersectResult result ) {\n \t\tVector3d e = new Vector3d(ray.eyePoint);\n \t\te.sub(this.center);\n \t\tdouble a = ray.viewDirection.dot(ray.viewDirection);\n \t\tdouble b = 2 * ray.viewDirection.dot(e);\n \t\tdouble c = e.dot(e) - this.radius * this.radius;\n \t\tdouble discriminant = b*b - 4*a*c;\n \t\t\n \t\tif (discriminant == 0.0) {\n \t\t\t\n \t\t\tdouble t_pos = -0.5 * b / a;\n \t\t\t// scale ray viewDirection to be t_pos length\n\t\t\t// point of intersection is at ray.eyePoint + scaled viewDirection vector\n\t\t\tPoint3d point_of_intersection = new Point3d(ray.viewDirection);\n\t\t\tpoint_of_intersection.scale(t_pos);\n\t\t\tpoint_of_intersection.add(ray.eyePoint);\n\t\t\t\n\t\t\t// normal is point_of_intersection - sphere.center\n\t\t\tVector3d normal = new Vector3d();\n\t\t\tnormal.add(point_of_intersection);\n\t\t\tnormal.sub(this.center);\n\t\t\tnormal.normalize();\n\t\t\t\n\t\t\tresult.p.set(point_of_intersection);\n\t\t\tresult.material = this.material;\n\t\t\tresult.t = t_pos;\n\t\t\tresult.n.set(normal);\n \t\t\t\n \t\t}\n \t\telse if (discriminant > 0.0) {\n \t\t\t\n \t\t\t// solve quadratic formula\n \t\t\tdouble q = (b > 0) ? -0.5 * (b + Math.sqrt(discriminant)) : -0.5 * (b - Math.sqrt(discriminant));\n \t\t\tdouble t_pos = q / a;\n \t\t\tdouble t_neg = c / q;\n \t\t\t\n \t\t\tif (t_pos < t_neg) {\n \t\t\t\tdouble temp = t_pos;\n \t\t\t\tt_pos = t_neg;\n \t\t\t\tt_neg = temp;\n \t\t\t}\n \t\t\t\t\n \t\t\tif (t_neg > 0) {\n \t\t\t\t// scale ray viewDirection to be t_neg length\n \t\t\t\t// point of intersection is at ray.eyePoint + scaled viewDirection vector\n \t\t\tPoint3d point_of_intersection = new Point3d(ray.viewDirection);\n \t\t\tpoint_of_intersection.scale(t_neg);\n \t\t\tpoint_of_intersection.add(ray.eyePoint);\n \t\t\t\n \t\t\t// normal is point_of_intersection - sphere.center\n \t\t\tVector3d normal = new Vector3d();\n \t\t\tnormal.add(point_of_intersection);\n \t\t\tnormal.sub(this.center);\n \t\t\tnormal.normalize();\n \t\t\t\n \t\t\tresult.p.set(point_of_intersection);\n \t\t\tresult.material = this.material;\n \t\t\tresult.t = t_neg;\n \t\t\tresult.n.set(normal);\n \t\t\t}\n\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t\n \t\t\n\n }", "public boolean doesIntersect(Box box) {\n\n\n\t\tfor (Point point:box.getVerts()) {\n\n\t\t\tif (this.contains(point)) return true;\n\t\t}\n\n\t\tfor (Point point: this.verts) {\n\n\t\t\tif (box.contains(point)) return true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean intersect(IntersectionRecord outRecord, Ray rayIn) {\n\t// TODO: Process rayIn so that it is in the same coordinates as the object.\n // This should be a single line.\n\trayIn = untransformRay(rayIn);\n Ray ray = rayIn;\n\n // Rename the common vectors so I don't have to type so much\n Vector3 d = ray.direction;\n Point3 c = center;\n Point3 o = ray.origin;\n\n double tMin = ray.start, tMax = ray.end;\n // Compute some factors used in computation\n double qx = o.x - c.x;\n double qy = o.y - c.y;\n //double qz = o.z - c.z;\n double rr = radius * radius;\n\n double dd = d.x * d.x + d.y *d.y;\n double qd = d.x * qx + d.y * qy;\n double qq = qx * qx + qy * qy;\n\n double t = 0, td1=0, td2=0;\n double zMin = c.z - height/2;\n double zMax = c.z + height/2;\n\n // z-plane cap calculations\n if (d.z >= 0) {\n td1 = (zMin- o.z) / d.z;\n td2 = (zMax - o.z) / d.z;\n }\n else {\n td1 = (zMax - o.z) / d.z;\n td2 = (zMin - o.z) / d.z;\n }\n if (tMin > td2 || td1 > tMax)\n return false;\n if (td1 > tMin)\n tMin = td1;\n if (td2 < tMax)\n tMax = td2;\n\n // solving the quadratic equation for t at the pts of intersection\n // dd*t^2 + (2*qd)*t + (qq-r^2) = 0\n double discriminantsqr = (qd * qd - dd * (qq - rr));\n\n // If the discriminant is less than zero, there is no intersection\n if (discriminantsqr < 0) {\n return false;\n }\n\n // Otherwise check and make sure that the intersections occur on the ray (t\n // > 0) and return the closer one\n double discriminant = Math.sqrt(discriminantsqr);\n double t1 = (-qd - discriminant) / dd;\n double t2 = (-qd + discriminant) / dd;\n\n if (t1 > ray.start && t1 < ray.end) {\n t = t1;\n }\n else if (t2 > ray.start && t2 < ray.end) {\n t = t2;\n }\n\n Point3 thit1 = new Point3(0,0,0); \n ray.evaluate(thit1, tMin);\n Point3 thit2 = new Point3(0,0,0); \n ray.evaluate(thit2, tMax);\n\n double dx1 = thit1.x-c.x; \n double dy1 = thit1.y-c.y; \n double dx2 = thit2.x-c.x; \n double dy2 = thit2.y-c.y; \n\n if ((t < tMin || t > tMax) && dx1 * dx1 + dy1 * dy1 > rr && dx2 * dx2 + dy2 * dy2 > rr) {\n return false;\n }\n\n // There was an intersection, fill out the intersection record\n if (outRecord != null) {\n double tside =Math.min( td1, td2);\n\n if (t <tside) {\n outRecord.t = tside;\n ray.evaluate(outRecord.location, tside);\n outRecord.normal.set(0, 0, 1);\n }\n else {\n outRecord.t = t;\n ray.evaluate(outRecord.location, t);\n outRecord.normal.sub(new Point3(outRecord.location.x,outRecord.location.y,0), new Point3(c.x,c.y,0));\n }\n\n if (outRecord.normal.dot(ray.direction) > 0)\n outRecord.normal.scale(-1);\n\n outRecord.surface = this;\n // TODO: Transform the location and normal back into world coordinates.\n // Transform the location by tMat\n tMat.rightMultiply(outRecord.location);\n // Transform the normal by tMatTInv\n tMatTInv.rightMultiply(outRecord.normal);\n \n outRecord.normal.normalize();\n }\n\n return true;\n }", "private void actualizaHitbox() {\n hitbox = new Rect((int)(posX + 0.2 * bala.getWidth()), (int)(posY + 0.2 * bala.getHeight()), (int)(posX + 0.8 * bala.getWidth()), (int)(posY + 0.8 * bala.getHeight()));\n }", "@Override\n\tpublic Intersection intersect(Ray ray) {\n\t\tdouble maxDistance = 10;\n\t\tdouble stepSize = 0.001; \n\t\tdouble t = 0;\n\t\t\n\t\twhile(t<maxDistance) {\t\t\t\n\t\t\tVector point = ray.m_Origin.add(ray.m_Direction.mul(t));\t\t\t\n\t\t\tdouble eval = torus(point);\t\t\t\n\t\t\tif(Math.abs(eval)<0.001) {\n\t\t\t\tVector normal = estimateNormal(point);\n\t\t return new Intersection(this, ray, t, normal, point);\n\t\t\t}\t\t\t\n\t\t\tt += stepSize;\n\t\t}\t\t\n\t\treturn null;\n\t}", "public static boolean collide(CustomAABB us, CustomBlockBox block, Vector3f pos, Vector3f inertia, float width, float height, boolean onGround){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //double check to stop clipping if not enough space\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+2,block.getFront()))) {\n\n //floor detection\n if (block.getTop() > us.getBottom() && inertia.y < 0 && us.getBottom() - block.getTop() > -0.15f) {\n //this is the collision debug sphere for terrain\n float oldPos = pos.y;\n pos.y = block.getTop();\n //don't move up if too high\n if (pos.y - oldPos > 1) {\n pos.y = (int)oldPos;\n }\n inertia.y = 0;\n onGround = true;\n }\n }\n\n //stop getting shot across the map\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-2,block.getFront()))) {\n //head detection\n if (block.getBottom() < us.getTop() && inertia.y >= 0 && us.getTop() - block.getBottom() < 0.15f) {\n pos.y = block.getBottom() - height;\n inertia.y = 0;\n }\n }\n\n float averageX = Math.abs(((block.getLeft() + block.getRight())/2f) - pos.x);\n float averageY = Math.abs(((block.getBottom() + block.getTop())/2f) - pos.y);\n float averageZ = Math.abs(((block.getFront() + block.getBack())/2f) - pos.z);\n if (averageX > averageZ) {\n if (!detectBlock(new Vector3f(block.getLeft()+1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getRight() > us.getLeft() && inertia.x < 0) {\n pos.x = block.getRight() + width + 0.00001f;\n inertia.x = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft()-1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getLeft() < us.getRight() && inertia.x > 0) {\n pos.x = block.getLeft() - width - 0.00001f;\n inertia.x = 0;\n }\n }\n }\n } else {\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()+1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getBack() > us.getFront() && inertia.z < 0) {\n pos.z = block.getBack() + width + 0.00001f;\n inertia.z = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()-1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getFront() < us.getBack() && inertia.z > 0) {\n pos.z = block.getFront() - width - 0.00001f;\n inertia.z = 0;\n }\n }\n }\n }\n return onGround;\n }", "public Point3 intersects(Plane3 p) {\n // All the constants will be the position vector, i.e., some point on the line\n if (intersect.DEBUG) System.out.println(\"Constant Terms: <\" + this.pt + \">\");\n\n // λ coefficients will be all those in the direction vector of the line\n if (intersect.DEBUG) System.out.println(\"λ coefficients: \" + this);\n\n // Plane equation is each component multiplied by the respective normal\n // vector of the plane\n if (intersect.DEBUG) System.out.printf(\"Plane equation: %.1f(%.1f + %.1fλ) + %.1f(%.1f + %.1fλ) + %.1f(%.1f + %.1fλ) = %.3f\\n\", p.v.x, pt.x, this.x, p.v.y, pt.y, this.y, p.v.z, pt.z, this.z, p.d);\n\n // Gather all constant terms from the plane equation\n double constantTerm = (p.v.x * pt.x) + (p.v.y * pt.y) + (p.v.z * pt.z);\n if (intersect.DEBUG) System.out.printf(\"K: %.2f\\t\", constantTerm);\n\n // Gather all λ terms\n double lambdaCoefficient = (p.v.x * this.x) + (p.v.y * this.y) + (p.v.z * this.z);\n if (intersect.DEBUG) System.out.printf(\"K_λ: %.1f\\n\", lambdaCoefficient);\n\n // If the coefficient for lambda is zero, we have a degenerate case\n if (lambdaCoefficient == 0) {\n // If the constant is the same as the actual magnitude of the plane's\n // normal vector, the line lies on the plane\n // Within a margin of error because rounding is a pain in the ass\n if (Math.abs(constantTerm - p.d) < 1e-6)\n intersect.overlapFlag = true;\n\n return null;\n }\n\n // Solve for the unknown, λ.\n double lambda = (p.d - constantTerm) / lambdaCoefficient;\n if (intersect.DEBUG) System.out.printf(\"λ: %.2f\\n\", lambda);\n\n // Plug in λ into the parametric equations for the line to find\n // point of intersection\n double newX = lambda * this.x + pt.x;\n double newY = lambda * this.y + pt.y;\n double newZ = lambda * this.z + pt.z;\n return new Point3(newX, newY, newZ);\n }", "@Override\n public boolean intersectsAt(Point point){\n if (planeImage.getBoundingBoxAt(currPos).intersects(point)){\n return true;\n }\n else\n return false;\n }", "private void calcBoxVerts() {\n\t\tif (verts != null) {\n\t\t\tdouble minX = verts[0].getElement(0);\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = verts[0].getElement(1);\n\t\t\tdouble maxY = minY;\n\t\t\tdouble minZ = verts[0].getElement(2);\n\t\t\tdouble maxZ = minZ;\n\t\t\tfor (int i = 1; i < verts.length; i++) {\n\t\t\t\tif (verts[i].getElement(0) < minX) {\n\t\t\t\t\tminX = verts[i].getElement(0);\n\t\t\t\t} else if (verts[i].getElement(0) > maxX) {\n\t\t\t\t\tmaxX = verts[i].getElement(0);\n\t\t\t\t}\n\t\t\t\tif (verts[i].getElement(1) < minY) {\n\t\t\t\t\tminY = verts[i].getElement(1);\n\t\t\t\t} else if (verts[i].getElement(1) > maxY) {\n\t\t\t\t\tmaxY = verts[i].getElement(1);\n\t\t\t\t}\n\t\t\t\tif (verts[i].getElement(2) < minZ) {\n\t\t\t\t\tminZ = verts[i].getElement(2);\n\t\t\t\t} else if (verts[i].getElement(2) > maxZ) {\n\t\t\t\t\tmaxZ = verts[i].getElement(2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tVector[] boxVerts = new Vector[8];\n\t\t\tboxVerts[0] = new Vector(3);\n\t\t\tboxVerts[0].setElements(new double[] {minX, minY, minZ});\n\t\t\tboxVerts[1] = new Vector(3);\n\t\t\tboxVerts[1].setElements(new double[] {maxX, minY, minZ});\n\t\t\tboxVerts[2] = new Vector(3);\n\t\t\tboxVerts[2].setElements(new double[] {minX, minY, maxZ});\n\t\t\tboxVerts[3] = new Vector(3);\n\t\t\tboxVerts[3].setElements(new double[] {maxX, minY, maxZ});\n\t\t\tboxVerts[4] = new Vector(3);\n\t\t\tboxVerts[4].setElements(new double[] {minX, maxY, minZ});\n\t\t\tboxVerts[5] = new Vector(3);\n\t\t\tboxVerts[5].setElements(new double[] {maxX, maxY, minZ});\n\t\t\tboxVerts[6] = new Vector(3);\n\t\t\tboxVerts[6].setElements(new double[] {minX, maxY, maxZ});\n\t\t\tboxVerts[7] = new Vector(3);\n\t\t\tboxVerts[7].setElements(new double[] {maxX, maxY, maxZ});\n\t\t\tthis.boxVerts = boxVerts;\n\t\t} else {\n\t\t\tthis.boxVerts = null;\n\t\t}\n\t}", "public void\n doExtraInformation(Ray inRay, double inT, \n GeometryIntersectionInformation outData) {\n outData.p = lastInfo.p;\n\n switch ( lastPlane ) {\n case 1:\n outData.n.x = 0;\n outData.n.y = 0;\n outData.n.z = 1;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = 1-(outData.p.x / size.x - 0.5);\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 2:\n outData.n.x = 0;\n outData.n.y = 0;\n outData.n.z = -1;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = outData.p.x / size.x - 0.5;\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 3:\n outData.n.x = 0;\n outData.n.z = 0;\n outData.n.y = 1;\n outData.u = 1-(outData.p.x / size.x - 0.5);\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = -1;\n outData.t.y = 0;\n outData.t.z = 0;\n break;\n case 4:\n outData.n.x = 0;\n outData.n.z = 0;\n outData.n.y = -1;\n outData.u = outData.p.x / size.x - 0.5;\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 1;\n outData.t.y = 0;\n outData.t.z = 0;\n break;\n case 5:\n outData.n.x = 1;\n outData.n.y = 0;\n outData.n.z = 0;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 6:\n outData.n.x = -1;\n outData.n.y = 0;\n outData.n.z = 0;\n outData.u = 1-(outData.p.y / size.y - 0.5);\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 0;\n outData.t.y = -1;\n outData.t.z = 0;\n break;\n default:\n outData.u = 0;\n outData.v = 0;\n break;\n }\n }", "public List<Vec3> getIntersectionPoints(Vec3 org, Vec3 ray)\n {\n Mat4 mInv = m.getInverseSimple();\n ray = mInv.multiply(ray.toDirection()).getXYZ();\n org = mInv.multiply(org.toPoint()).getXYZ();\n\n Vec3 mext = extents.getNegated();\n ArrayList<Vec3> ps = new ArrayList<Vec3>();\n for (int i = 0; i < 3; i++)\n {\n if (org.get(i) >= extents.get(i))\n {\n if (ray.get(i) >= 0)\n {\n return new ArrayList<Vec3>(); // ray points away from box\n }\n ps.addAll(lineIntersection(i, org, ray, extents));\n } else if (org.get(i) <= mext.get(i))\n {\n if (ray.get(i) <= 0)\n {\n return new ArrayList<Vec3>(); // ray points away from box\n }\n ps.addAll(lineIntersection(i, org, ray, mext));\n }\n }\n return ps;\n }", "private void updateHitbox() {\n\t\tthis.hitbox = new collisionSphere(2 * scale, this.location);\n\t}", "@Override\n\tpublic RaySceneObjectIntersection getClosestRayIntersection(Ray ray)\n\t{\n\t\tVector3D v=Vector3D.difference(ray.getP(), pointOnAxis);\n\t\tVector3D vP = v.getDifferenceWith(v.getProjectionOnto(normalisedAxisDirection));\t// part of v that's perpendicular to a\n\t\tVector3D dP = ray.getD().getDifferenceWith(ray.getD().getProjectionOnto(normalisedAxisDirection));\t// part of ray.d that's perpendicular to a\n\t\t\n\t\t// coefficients in the quadratic equation for t\n\t\tdouble a = dP.getModSquared();\n\t\t\n\t\tif(a==0.0) return RaySceneObjectIntersection.NO_INTERSECTION;\t// would give division by zero later\n\n\t\tdouble\n\t\t\tb2 = Vector3D.scalarProduct(vP, dP),\t// b/2\n\t\t\tc = vP.getModSquared() - radius*radius,\n\t\t\tdiscriminant4 = b2*b2 - a*c;\t// discriminant/4\n\n\t\t// first check if the discriminant is >0; if it isn't, then there is no intersection at all\n\t\tif(discriminant4 < 0.0) return RaySceneObjectIntersection.NO_INTERSECTION;\n\t\t\n\t\t// okay, the discriminant is positive; take its square root, which is what we actually need\n\t\tdouble sqrtDiscriminant2 = Math.sqrt(discriminant4);\t// sqrt(discriminant)/2\n\t\t\t\n\t\t// calculate the factor t corresponding to the\n\t\t// intersection with the greater t factor;\n\t\t// the further-away intersection is then ray.p + tBigger*ray.d\n\t\tdouble tBigger=((a>0)?(-b2+sqrtDiscriminant2)/a:(-b2-sqrtDiscriminant2)/a);\n\t\t\n\t\t//if tBigger<0, then the intersection with the lesser t factor will have to be even more negative;\n\t\t// therefore, both intersections will be \"behind\" the starting point\n\t\tif(tBigger < 0.0) return RaySceneObjectIntersection.NO_INTERSECTION;\n\n\t\t// calculate the factor tSmaller corresponding to the\n\t\t// intersection with the lesser t factor\n\t\tdouble tSmaller=((a>0)?(-b2-sqrtDiscriminant2)/a:(-b2+sqrtDiscriminant2)/a);\n\n\t\tRay rayAtIntersectionPoint;\n\t\t\n\t\t// first check if the intersection point with the lesser t factor is an option\n\t\tif(tSmaller > 0.0)\n\t\t{\n\t\t\t// the intersection with the lesser t factor lies in front of the starting point, so it might correspond to the intersection point\n\t\t\t\n\t\t\t// calculate the ray advanced to the intersection point\n\t\t\trayAtIntersectionPoint = ray.getAdvancedRay(tSmaller);\n\t\t\t\n\t\t\treturn new RaySceneObjectIntersection(rayAtIntersectionPoint.getP(), this, rayAtIntersectionPoint.getT());\n\t\t}\n\t\t\n\t\t// If the program reaches this point, the intersection with the lesser t factor was not the right intersection.\n\t\t// Now try the intersection point with the greater t factor.\n\t\t\n\t\t// calculate the ray advanced to the intersection point\n\t\trayAtIntersectionPoint = ray.getAdvancedRay(tBigger);\n\n\t\treturn new RaySceneObjectIntersection(rayAtIntersectionPoint.getP(), this, rayAtIntersectionPoint.getT());\n\t}", "public static boolean intersectsRectangleLine(int rx, int ry, int rWidth, int rHeight, int lx1,int ly1, int lx2, int ly2, List<Vector2i> intersections) {\n\t\t\n\t\tint minX = rx;\n\t\tint minY = ry;\n\t\tint maxX = rx + rWidth;\n\t\tint maxY = ry + rHeight;\n\t\t\n\t\t//both points of one side of rectangle\n\t\tif(minX > lx1 && minX > lx2) { return false; }\n\t\tif(minY > ly1 && minY > ly2) { return false; }\n\t\tif(maxX < lx1 && maxX < lx2) { return false; }\n\t\tif(maxY < ly1 && maxY < ly2) { return false; }\n\n\t\t//both points of line inside rectangle\n\t\tif(\tlx1 > minX && lx1 < maxX &&\n\t\t\tlx2 > minX && lx2 < maxX &&\n\t\t\tly1 > minY && ly1 < maxY &&\n\t\t\tly2 > minY && ly2 < maxY\t) { return true; }\n\t\t\n\t\t//check line-line\n\t\tif(intersections != null) {\n\t\t\tint numIntersections = 0;\n\t\t\tVector2i v1 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, minY, maxX, minY, v1)) { numIntersections++; if(intersections!=null) intersections.add(v1); };\n\t\t\tVector2i v2 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, maxX, minY, maxX, maxY, v2)) { numIntersections++; if(intersections!=null) intersections.add(v2); };\n\t\t\tVector2i v3 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, maxX, maxY, v3)) { numIntersections++; if(intersections!=null) intersections.add(v3); };\n\t\t\tVector2i v4 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, minX, minY, v4)) { numIntersections++; if(intersections!=null) intersections.add(v4); };\n\t\t\tif(numIntersections > 0) { return true; }\n\t\t} else {\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, minY, maxX, minY, null)) { return true; };\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, maxX, minY, maxX, maxY, null)) { return true; };\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, maxX, maxY, null)) { return true; };\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, minX, minY, null)) { return true; };\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private Point3 _getIntersection(Point3 eye, Point3 direction) {\n int size = NORMALS.length;\n float tresult;\n Point4 norm; // normal of face hit\n Plane plane; // plane equation\n float tnear, tfar, t, vn, vd;\n int front = 0, back = 0; // front/back face # hit\n\n tnear = -1.0e+20f; // -HUGE_VAL\n tfar = +1.0e+20f; // tmax\n for (int i = 0; i < size; i++) {\n\n plane = _planes[i];\n\n vd = plane.dot(direction);\n vn = plane.distance(eye);\n if (vd == 0.0f) {\n // ray is parallel to plane -\n // check if ray origin is inside plane's\n // half-space\n if (vn < 0.0f) {\n return null;\n }\n\n } else {\n // ray not parallel - get distance to plane\n t = -vn / vd;\n if (vd > 0.0f) {\n\n if (t > tfar) {\n return null;\n }\n if (t > tnear) {\n // hit near face, update normal\n front = i;\n tnear = t;\n }\n } else {\n // back face - T is a far point\n\n if (t < tnear) {\n return null;\n }\n if (t < tfar) {\n // hit far face, update normal\n\n back = i;\n tfar = t;\n }\n }\n }\n }\n // survived all tests\n // Note: if ray originates on polyhedron,\n // may want to change 0.0 to some\n // epsilon to avoid intersecting the originating face.\n //\n if (tnear >= 0.0f) {\n // outside, hitting front face\n norm = _planes[front]._normal;\n tresult = tnear;\n return Point3.addition(eye, direction.scaled(tresult));\n } else {\n if (tfar < 1.0e+20f) {\n // inside, hitting back face\n norm = _planes[back]._normal;\n tresult = tfar;\n return Point3.addition(eye, direction.scaled(tresult));\n } else {\n // inside, but back face beyond tmax//\n return null;\n }\n }\n }", "public boolean intersects(HitBox h){\n\t\treturn rect.intersects(h.getRectangle());\n\t}", "public static boolean intersectsLineLine(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, Vector2i intersection) {\n\t\t\n\t\tint d = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);\n\t\tif (d == 0) return false;\n\t\t\n\t\tint yd = y1 - y3;\n\t\tint xd = x1 - x3;\n\t\tint ua = ((x4 - x3) * yd - (y4 - y3) * xd) / d;\n\t\tif (ua < 0 || ua > 1) return false;\n\t\t\n\t\tint ub = ((x2 - x1) * yd - (y2 - y1) * xd) / d;\n\t\tif (ub < 0 || ub > 1) return false;\n\t\t\n\t\tif (intersection != null) intersection.set(x1 + (x2 - x1) * ua, y1 + (y2 - y1) * ua);\n\t\t\n\t\treturn true;\n\t}", "public void detectCollisions(){\n\t\tfor(int i = 0; i < pScene.getNumOf(); i++){\n\t\t\tEntity a = pScene.getObject(i);\n\t\t\tif (!a.isAlive())\n\t\t\t\tcontinue;\n\t\t\tfor(int j = i + 1; j < pScene.getNumOf(); j++){\n\t\t\t\tEntity b = pScene.getObject(j);\n\t\t\t\tif(a.intersects(b)&&(!(a.getStatic()&&b.getStatic()))){\n\t\t\t\t\tsManifolds.add(new Manifold(a,b)); // For regular objects\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic boolean intersects(Vec3D vec)\n\t\t{\n\t\tboolean isInRes = true;\n\t\tisInRes &= vec.x() >= topLeft.x();\n\t\tisInRes &= vec.x() <= topLeft.x() + edgeLength;\n\t\tisInRes &= vec.y() >= topLeft.y();\n\t\tisInRes &= vec.y() <= topLeft.y() + edgeLength;\n\t\tisInRes &= vec.z() >= topLeft.z();\n\t\tisInRes &= vec.z() <= topLeft.z() + edgeLength;\n\t\treturn isInRes;\n\t\t}", "public void checkForCollisions()\r\n\t{\r\n\t\t//collision detection\r\n\t\tfor(PolygonD obj : objects)\r\n\t\t{\r\n\t\t\t//find points in character that intersected with the scene\r\n\t\t\tfor(PointD p : aSquare.getBoundary().getVerts())\r\n\t\t\t{\r\n\t\t\t\tif(obj.contains(p)){\r\n\t\t\t\t\t//find side that intersected\r\n\t\t\t\t\tdouble minDist = Double.MAX_VALUE;\r\n\t\t\t\t\tPointD prev = obj.getVerts().get(obj.getVerts().size()-1);\r\n\t\t\t\t\tPointD closestPoint = null;\r\n\t\t\t\t\tfor(PointD vert : obj.getVerts())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDouble d = distanceToLine(new Vector(prev, vert), p);\r\n\t\t\t\t\t\tif(d != null && d < minDist)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tminDist = d;\r\n\t\t\t\t\t\t\tclosestPoint = getNearestPointOnLine(new Vector(prev, vert),p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tprev = vert;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tVector offset = new Vector(p, closestPoint);\r\n\t\t\t\t\taSquare.translate(offset);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//find points in scene that intersected with the character\r\n\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t{\r\n\t\t\t\tif(aSquare.getBoundary().contains(p)){\r\n\t\t\t\t\t//find side that intersected\r\n\t\t\t\t\tdouble minDist = Double.MAX_VALUE;\r\n\t\t\t\t\tPointD prev = aSquare.getBoundary().getVerts().get(aSquare.getBoundary().getVerts().size()-1);\r\n\t\t\t\t\tPointD closestPoint = null;\r\n\t\t\t\t\tfor(PointD vert : aSquare.getBoundary().getVerts())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDouble d = distanceToLine(new Vector(prev, vert), p);\r\n\t\t\t\t\t\tif(d != null && d < minDist)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tminDist = d;\r\n\t\t\t\t\t\t\tclosestPoint = getNearestPointOnLine(new Vector(prev, vert),p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tprev = vert;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//get the angle of object by 'feeling' it\r\n\t\t\t\t\tint numVerts = obj.verts.size();\r\n\t\t\t\t\tint objI = obj.verts.indexOf(p);\r\n\t\t\t\t\tint lastI = (objI - 1) % numVerts;\r\n\t\t\t\t\tif(lastI == -1)\r\n\t\t\t\t\t\tlastI = numVerts - 1;\r\n\t\t\t\t\tint nextI = (objI + 1) % numVerts;\r\n\t\t\t\t\t\r\n\t\t\t\t\tint angle = (int)Math.round((new Vector(obj.verts.get(objI), obj.verts.get(lastI))).angleBetween(new Vector(obj.verts.get(objI), obj.verts.get(nextI))));\r\n\t\t\t\t\t\r\n\t\t\t\t\taSquare.sendMsg(new Msg(aSquare, \"Felt Vertex: \" + angle + \"deg\"));//null means status message\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//reverse direction to make aSquare move out of wall\r\n\t\t\t\t\tVector offset = new Vector(closestPoint, p);\r\n\t\t\t\t\taSquare.translate(offset);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\taSquare.getCenter();\r\n\t}", "public boolean isBoxInBox(BBox BBox)\n {\n Vec3 sizeA = extents;\n Vec3 sizeB = BBox.extents;\n// System.out.println(\"sizeA: \" + sizeA);\n// System.out.println(\"mA: \" + m);\n// System.out.println(\"sizeB: \" + sizeB);\n// System.out.println(\"mB: \" + BBox.m);\n Vec3[] rotA, rotB;\n rotA = getInvRot();\n rotB = BBox.getInvRot();\n\n float[][] r = new float[3][3]; // Rotation from B to A\n float[][] ar = new float[3][3]; // absolute values of R matrix, to use with box extents\n float extentA, extentB, separation;\n int i, k;\n\n // Calculate B to A rotation matrix\n for (i = 0; i < 3; i++)\n {\n for (k = 0; k < 3; k++)\n {\n r[i][k] = rotA[i].dot(rotB[k]);\n ar[i][k] = abs(r[i][k]);\n }\n }\n\n // Vector separating the centers of Box B and of Box A\t\n Vec3 vSepWS = BBox.getCenterPoint().subtract(getCenterPoint());\n // Rotated into Box A's coordinates\n Vec3 vSepA = new Vec3(\n vSepWS.dot(rotA[0]),\n vSepWS.dot(rotA[1]),\n vSepWS.dot(rotA[2]));\n\n // Test if any of A's basis vectors separate the box\n for (i = 0; i < 3; i++)\n {\n extentA = sizeA.get(i);\n extentB = sizeB.dot(new Vec3(ar[i][0], ar[i][1], ar[i][2]));\n separation = abs(vSepA.get(i));\n\n if (separation > extentA + extentB)\n {\n return false;\n }\n }\n\n // Test if any of B's basis vectors separate the box\n for (k = 0; k < 3; k++)\n {\n extentA = sizeA.dot(new Vec3(ar[0][k], ar[1][k], ar[2][k]));\n extentB = sizeB.get(k);\n separation = abs(vSepA.dot(new Vec3(r[0][k], r[1][k], r[2][k])));\n\n if (separation > extentA + extentB)\n {\n return false;\n }\n }\n\n // Now test Cross Products of each basis vector combination ( A[i], B[k] )\n for (i = 0; i < 3; i++)\n {\n for (k = 0; k < 3; k++)\n {\n int i1 = (i + 1) % 3, i2 = (i + 2) % 3;\n int k1 = (k + 1) % 3, k2 = (k + 2) % 3;\n extentA = sizeA.get(i1) * ar[i2][k] + sizeA.get(i2) * ar[i1][k];\n extentB = sizeB.get(k1) * ar[i][k2] + sizeB.get(k2) * ar[i][k1];\n separation = abs(vSepA.get(i2) * r[i1][k] - vSepA.get(i1) * r[i2][k]);\n if (separation > extentA + extentB)\n {\n return false;\n }\n }\n }\n\n // No separating axis found, the boxes overlap\t\n return true;\n }", "public boolean intersects(Platform p){\n \treturn box.intersects(p.getBox());\r\n }", "public boolean intersects(Obstacle v){\n \treturn box.intersects(v.getBox()); \t\r\n }", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "public boolean rayCrossesSegment(LatLng point, LatLng a, LatLng b) {\n double px = point.longitude,\n py = point.latitude,\n ax = a.longitude,\n ay = a.latitude,\n bx = b.longitude,\n by = b.latitude;\n if (ay > by) {\n ax = b.longitude;\n ay = b.latitude;\n bx = a.longitude;\n by = a.latitude;\n }\n // alter longitude to cater for 180 degree crossings\n if (px < 0 || ax < 0 || bx < 0) {\n px += 360;\n ax += 360;\n bx += 360;\n }\n // if the point has the same latitude as a or b, increase slightly py\n if (py == ay || py == by) py += 0.00000001;\n\n\n // if the point is above, below or to the right of the segment, it returns false\n if ((py > by || py < ay) || (px > Math.max(ax, bx))) {\n return false;\n }\n // if the point is not above, below or to the right and is to the left, return true\n else if (px < Math.min(ax, bx)) {\n return true;\n }\n // if the two above conditions are not met, you have to compare the slope of segment [a,b] (the red one here) and segment [a,p] (the blue one here) to see if your point is to the left of segment [a,b] or not\n else {\n double red = (ax != bx) ? ((by - ay) / (bx - ax)) : Double.POSITIVE_INFINITY;\n double blue = (ax != px) ? ((py - ay) / (px - ax)) : Double.POSITIVE_INFINITY;\n return (blue >= red);\n }\n\n }", "private Point3D findHitPoint(Ray3D ray) {\n // We plug paramaterization of x, y, z for ray into our general quartic equation\n // to get standard form: At^2 + Bt + C = 0, then use the quadratic equation to solve for t.\n // The coefficients A, B, and C are quite ugly, and the derivation is described in the linked\n // resource\n Point3D P = ray.getPoint(); // Ray starting point\n Point3D D = ray.getDirection(); // Ray direction\n // First coefficient of quadratic equation of t\n double A = a * sq(D.getX()) + b * sq(D.getY()) + c * sq(D.getZ())\n + d * D.getY() * D.getZ() + e * D.getX() * D.getZ() + f * D.getX() * D.getY();\n // Second coefficient of quadratic equation of t\n double B = 2 * (a * P.getX() * D.getX() + b * P.getY() * D.getY() + c * P.getZ() * D.getZ())\n + d * (P.getY() * D.getZ() + P.getZ() * D.getY())\n + e * (P.getX() * D.getZ() + P.getZ() * D.getX())\n + f * (P.getX() * D.getY() + P.getY() * D.getX())\n + g * D.getX() + h * D.getY() + i * D.getZ();\n // Third coefficient of quadratic equation of t\n double C = a * sq(P.getX()) + b * sq(P.getY()) + c * sq(P.getZ()) + d * P.getY() * P.getZ()\n + e * P.getX() * P.getZ() + f * P.getX() * P.getY() + g * P.getX() + h * P.getY() + i * P.getZ() + j;\n\n double discriminant = sq(B) - 4 * A * C;\n\n // Find intersection Point\n Point3D intersection = null;\n if (discriminant >= 0) {\n double t1 = (-B - Math.sqrt(discriminant)) / (2 * A);\n double t2 = (-B + Math.sqrt(discriminant)) / (2 * A);\n Point3D p1 = ray.atTime(t1);\n Point3D p2 = ray.atTime(t2);\n if (t1 > 0 && t2 > 0 && isWithinBounds(p1) && isWithinBounds(p2)) {\n intersection = t1 <= t2 ? p1 : p2;\n } else if (t1 > 0 && isWithinBounds(p1)) {\n intersection = p1;\n } else if (t2 > 0 && isWithinBounds(p2)) {\n intersection = p2;\n }\n }\n return intersection;\n }", "public static float intersectRayLine(PointF rayPos, PointF rayDir,\n PointF line0, PointF line1){\n float fPosOnRay = intersectRayOnLine(line0, Vec2D.subtract(line1, line0), rayPos, Vec2D.add(rayPos, rayDir) );\n\n if(fPosOnRay < 0)\n return Float.NEGATIVE_INFINITY;\n return intersectRayOnLine(rayPos, rayDir, line0, line1);\n }", "@Override\n public List<FreeSpace3D> segmentSpace(Box box){\n ArrayList<FreeSpace3D> newFreeSpace3DS = new ArrayList<>();\n ArrayList<Surface> newSurfaces = new ArrayList();\n if(box.getZBottom() > position.getZ())\n {\n //the bottom of physical box is a separating plane\n FreeSpace3D fs = new FreeSpace3D(width, depth, box.getZBottom() - position.getZ(), position, this.pallet, supportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n\n if(box.getZTop() < getZTop())\n {\n // the top of the physical box is a separating plane\n // determine the intersecting area\n PositionedRectangle intersectingArea = box.getTop().getHorizontalIntersection(this.getPositionedBottom());\n Surface sf = new Surface(intersectingArea);\n FreeSpace3D fs = new FreeSpace3D(width, depth,position.getZ() + height - box.getZTop(),\n new Vector3D(position.getX(), position.getY(),box.getZTop()), this.pallet, sf);\n newFreeSpace3DS.add(fs);\n }\n\n if(box.getXLeft() > getXLeft())\n {\n //the left side of physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(box.getXLeft() - getXLeft(), depth, position));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(box.getXLeft() - getXLeft(), depth, height, position, this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getXRight() < getXRight())\n {\n // the right of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(getXRight() - box.getXRight(), depth, new Vector3D(box.getXRight(), position.getY(), position.getZ())));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(getXRight() - box.getXRight(), depth,\n height, new Vector3D(box.getXRight(), position.getY(), position.getZ()), this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getYFront() > getYFront())\n {\n // the front of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(width, box.getYFront() - getYFront(), position));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(width, box.getYFront() - getYFront(), height, position, this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getYBack() < getYBack())\n {\n // the back of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(width, getYBack() - box.getYBack(), new Vector3D(position.getX(), box.getYBack(), position.getZ())));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(width, getYBack() - box.getYBack(),\n height, new Vector3D(position.getX(), box.getYBack(), position.getZ()), this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n return newFreeSpace3DS;\n }", "public static boolean rayTraceBlocks(World world, Vec3d vec, Vec3d vecEnd, boolean collideOnAllSolids)\n {\n world.profiler.startSection(\"Fantastic Lib: Improved Raytrace\");\n if (vec.x < vecEnd.x)\n {\n Vec3d swap = vec;\n vec = vecEnd;\n vecEnd = swap;\n }\n\n int x = MathHelper.floor(vec.x);\n int y = MathHelper.floor(vec.y);\n int z = MathHelper.floor(vec.z);\n\n int endX = MathHelper.floor(vecEnd.x);\n int endY = MathHelper.floor(vecEnd.y);\n int endZ = MathHelper.floor(vecEnd.z);\n\n //Check starting block\n BlockPos blockPos = new BlockPos(x, y, z);\n if (!world.isBlockLoaded(blockPos))\n {\n world.profiler.endSection();\n return false;\n }\n\n\n IBlockState blockState = world.getBlockState(blockPos);\n if ((collideOnAllSolids || !canSeeThrough(blockState)) && blockState.getCollisionBoundingBox(world, blockPos) != Block.NULL_AABB)\n {\n if (blockState.collisionRayTrace(world, blockPos, vec, vecEnd) != null)\n {\n world.profiler.endSection();\n return false;\n }\n }\n\n //Iterate through all non-starting blocks and check them\n for (int i = 1; i <= MAX_ITERATIONS; i++)\n {\n if (x == endX && y == endY && z == endZ)\n {\n world.profiler.endSection();\n return true;\n }\n\n boolean xMotion = true;\n boolean yMotion = true;\n boolean zMotion = true;\n\n double x2 = 999;\n double y2 = 999;\n double z2 = 999;\n\n if (endX > x) x2 = x + 1;\n else if (endX < x) x2 = x;\n else xMotion = false;\n\n if (endY > y) y2 = y + 1;\n else if (endY < y) y2 = y;\n else yMotion = false;\n\n if (endZ > z) z2 = z + 1;\n else if (endZ < z) z2 = z;\n else zMotion = false;\n\n double x3 = 999;\n double y3 = 999;\n double z3 = 999;\n\n double xDif = vecEnd.x - vec.x;\n double yDif = vecEnd.y - vec.y;\n double zDif = vecEnd.z - vec.z;\n\n if (xMotion) x3 = (x2 - vec.x) / xDif;\n if (yMotion) y3 = (y2 - vec.y) / yDif;\n if (zMotion) z3 = (z2 - vec.z) / zDif;\n\n //Make sure they wanted to use -0.0001 here (they were using -1.0E-4D, which is -0.0001)\n if (x3 == 0) x3 = -0.0001;\n if (y3 == 0) y3 = -0.0001;\n if (z3 == 0) z3 = -0.0001;\n\n EnumFacing enumfacing;\n\n if (x3 < y3 && x3 < z3)\n {\n enumfacing = endX > x ? EnumFacing.WEST : EnumFacing.EAST;\n vec = new Vec3d(x2, vec.y + yDif * x3, vec.z + zDif * x3);\n }\n else if (y3 < z3)\n {\n enumfacing = endY > y ? EnumFacing.DOWN : EnumFacing.UP;\n vec = new Vec3d(vec.x + xDif * y3, y2, vec.z + zDif * y3);\n }\n else\n {\n enumfacing = endZ > z ? EnumFacing.NORTH : EnumFacing.SOUTH;\n vec = new Vec3d(vec.x + xDif * z3, vec.y + yDif * z3, z2);\n }\n\n x = MathHelper.floor(vec.x) - (enumfacing == EnumFacing.EAST ? 1 : 0);\n y = MathHelper.floor(vec.y) - (enumfacing == EnumFacing.UP ? 1 : 0);\n z = MathHelper.floor(vec.z) - (enumfacing == EnumFacing.SOUTH ? 1 : 0);\n\n blockPos = new BlockPos(x, y, z);\n if (!world.isBlockLoaded(blockPos))\n {\n world.profiler.endSection();\n return false;\n }\n\n blockState = world.getBlockState(blockPos);\n if ((collideOnAllSolids || !canSeeThrough(blockState)) && blockState.getCollisionBoundingBox(world, blockPos) != Block.NULL_AABB)\n {\n if (blockState.collisionRayTrace(world, blockPos, vec, vecEnd) != null)\n {\n world.profiler.endSection();\n return false;\n }\n }\n }\n\n world.profiler.endSection();\n return false; //Too far to see\n }", "public boolean isLineCrossing(Simple2DPoint start, Simple2DPoint end) {\n\n\t\tLog.info(\"Does line:\"+start+\">\"+end+\" cross or is within box \"+this.toString());\n\n\t\t//TODO: we need to write a method that returns true or false depending if the line crosses this box\n\n\t\t//first check if either end of the line is inside\n\t\t//(in most cases this will be good enough)\n\t\tif (isPointInside(topleft.x, topleft.y)){\n\t\t\tLog.info(\"___________________contained within\");\n\t\t\treturn true;\n\t\t}\n\t\tif (isPointInside(end.x, end.y)){\n\t\t\tLog.info(\"___________________contained within\");\n\t\t\treturn true;\n\t\t}\n\n\t\t//Now we check if the line cross's the box, but doesnt end in it.\n\t\t//For collision detection this should be a lot less likely then the above, as it means a character has somehow ended up on either\n\t\t//side of a objects collision map at the same time.\n\n\t\t//We check for crossing lines by checking each side of this box as its own line against the supplied line.\n\t\t//Effectively making 4 separate \"is line crossing line\" tests\n\n\t\t//first we get the 4 corners of the box from the two we know already\n\t\tSimple2DPoint topLeft = topleft;\n\t\tSimple2DPoint topRight = new Simple2DPoint(bottomright.x,topleft.y);\n\t\tSimple2DPoint bottomLeft = new Simple2DPoint(topleft.x,bottomright.y);\n\t\tSimple2DPoint bottomRight = bottomright;\n\n\t\t//then we test each side against the supplied line\n\t\tSimple2DPoint intersectPoint = Polygon.lineIntersect2d(start, end, topLeft, topRight);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\tintersectPoint =Polygon.lineIntersect2d(start, end, topRight, bottomRight);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\tintersectPoint = Polygon.lineIntersect2d(start, end, bottomRight, bottomLeft);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\tintersectPoint = Polygon.lineIntersect2d(start, end, bottomLeft, topLeft);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t\t\n\t}", "public static boolean isVisible(BoundingBox paramBoundingBox, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)\r\n/* 93: */ {\r\n/* 94: 90 */ float f1 = (float)Math.sqrt(paramFloat1 * paramFloat1 + 1.0F);\r\n/* 95: 91 */ float f2 = (float)Math.sqrt(paramFloat1 * paramFloat1 + paramFloat2 * paramFloat2);\r\n/* 96: 92 */ float[] arrayOfFloat1 = { 0.0F, 0.0F, -1.0F, -paramFloat3 };\r\n/* 97: 93 */ float[] arrayOfFloat2 = { 0.0F, 0.0F, 1.0F, paramFloat4 };\r\n/* 98: 94 */ float[] arrayOfFloat3 = { paramFloat1 / f1, 0.0F, -1.0F / f1, 0.0F };\r\n/* 99: 95 */ float[] arrayOfFloat4 = { -paramFloat1 / f1, 0.0F, -1.0F / f1, 0.0F };\r\n/* 100: 96 */ float[] arrayOfFloat5 = { 0.0F, paramFloat1 / f2, -paramFloat2 / f2, 0.0F };\r\n/* 101: 97 */ float[] arrayOfFloat6 = { 0.0F, -paramFloat1 / f2, -paramFloat2 / f2, 0.0F };\r\n/* 102: 98 */ float f3 = paramBoundingBox.getEffectiveRadius();\r\n/* 103: */ \r\n/* 104: */ \r\n/* 105: */ \r\n/* 106: */ \r\n/* 107: */ \r\n/* 108: */ \r\n/* 109:105 */ Vector3D localVector3D = paramBoundingBox.getCenterPoint();\r\n/* 110:106 */ float[] arrayOfFloat7 = { localVector3D.x, localVector3D.y, localVector3D.z, 1.0F };\r\n/* 111:107 */ if (dotProduct(arrayOfFloat1, arrayOfFloat7) <= -f3) {\r\n/* 112:107 */ return false;\r\n/* 113: */ }\r\n/* 114:108 */ if (dotProduct(arrayOfFloat2, arrayOfFloat7) <= -f3) {\r\n/* 115:108 */ return false;\r\n/* 116: */ }\r\n/* 117:109 */ if (dotProduct(arrayOfFloat3, arrayOfFloat7) <= -f3) {\r\n/* 118:109 */ return false;\r\n/* 119: */ }\r\n/* 120:110 */ if (dotProduct(arrayOfFloat4, arrayOfFloat7) <= -f3) {\r\n/* 121:110 */ return false;\r\n/* 122: */ }\r\n/* 123:111 */ if (dotProduct(arrayOfFloat6, arrayOfFloat7) <= -f3) {\r\n/* 124:111 */ return false;\r\n/* 125: */ }\r\n/* 126:112 */ if (dotProduct(arrayOfFloat5, arrayOfFloat7) <= -f3) {\r\n/* 127:112 */ return false;\r\n/* 128: */ }\r\n/* 129:113 */ return true;\r\n/* 130: */ }", "private static int[] intersection(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4){\n\n\t\tdouble b1 = (y2 - y1)/(x2 - x1);\n\t\tdouble a1 = y1 - (b1*x1);\n\t\tdouble b2 = (y4 - y3)/(x4 - x3);\n\t\tdouble a2 = y3 - (b2*x3);\n\t\tif(x2-x1 == 0) //vertical\n\t\t\treturn new int[]{(int)x1,(int)(a2+(b2*x1))};\n\t\tif(x3-x4 == 0) //vertical\n\t\t\treturn new int[]{(int)x3,(int)(a1+(b1*x3))};\n\t/*\tif(Math.abs(b1-b2) < 0.001)\n\t\t\treturn null;\n\t\tdouble intX = -(a1-a2)/(b1-b2);\n\t\tdouble intY = a1+(b1*intX);*/\n\t\tdouble d = ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\t\tif(d == 0)\n\t\t\treturn null; //parallel roads\n\t\tdouble a = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3))*1.0/d;\n\t\tint intX = (int)x1+(int)(a*(x2-x1));\n\t\tint intY = (int)y1+(int)(a*(y2-y1));\n\t\treturn new int[]{(int)intX,(int)intY};\n\t}", "@Override\n\tpublic RaySceneObjectIntersection getClosestRayIntersection(Ray ray)\n\t{\t\t//this is calculating the \"term under the square root\"\n\t\tVector3D v=Vector3D.difference(ray.getP(), centre);\t\t\t\t\t\t//which must be greater than 0 for intersection\n\n\t\t// coefficients in the quadratic equation for t\n\t\tdouble \n\t\tquadraticA = ray.getD().getModSquared(),\n\t\tquadraticB2 = Vector3D.scalarProduct(v, ray.getD()),\t// b/2\n\t\tquadraticC = v.getModSquared() - MyMath.square(radius);\n\n\t\t// discriminant/2\n\t\tdouble discriminant2 = quadraticB2*quadraticB2-quadraticA*quadraticC;\n\n\n\t\tif(discriminant2<0.0) {\n\t\t\t//returns NaN if there is no intersection\n\t\t\treturn RaySceneObjectIntersection.NO_INTERSECTION;\n\t\t}\n\n\t\tdouble t1=(-quadraticB2+Math.sqrt(discriminant2))/quadraticA;\n\n\t\tif(t1<0.0) {\n\t\t\t//if t1<0 then t2 must be less than zero\n\t\t\treturn RaySceneObjectIntersection.NO_INTERSECTION;\n\t\t}\n\n\t\tdouble t2=(-quadraticB2-Math.sqrt(discriminant2))/quadraticA;\n\t\t\n\t\tRay rayAtIntersectionPoint = ray.getAdvancedRay((t2<0.0)?t1:t2);\n\n\t\treturn new RaySceneObjectIntersection(\n\t\t\t\trayAtIntersectionPoint.getP(),\n\t\t\t\tthis,\n\t\t\t\trayAtIntersectionPoint.getT()\n\t\t\t);\n\t}", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray,double maxDistance) {\n\t List<GeoPoint> intersections = null;\r\n\r\n\t for (Intersectable geo : _geometriesList) {\r\n\t List<GeoPoint> tempIntersections = geo.findIntersections(ray,maxDistance);\r\n\t if (tempIntersections != null) {\r\n\t if (intersections == null)\r\n\t intersections = new ArrayList<GeoPoint>();\r\n\t intersections.addAll(tempIntersections);\r\n\t }\r\n\t }\r\n\t \r\n\r\n\t return intersections;\r\n\r\n\t}", "public void checkCollision(Box box){\r\n if(collidingEntity2!=null && collidingEntity2!=box){\r\n return;\r\n }\r\n FloatRect x = box.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity2= box;\r\n collide=true;\r\n checkTopCollision (x);\r\n if(collidedTop==false) {\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n }\r\n } else {\r\n noCollision ();\r\n }\r\n }", "public void constructBoundingBox()\r\n\t{\n\t\tdouble a = m_Qmin.x;\r\n\t\tdouble b = m_Qmin.y;\r\n\t\tdouble c = m_Qmin.z;\r\n\r\n\t\tdouble d = m_Qmax.x;\r\n\t\tdouble e = m_Qmax.y;\r\n\t\tdouble f = m_Qmax.z;\r\n\r\n\t\t//constructing the vertexes of the bounding box\r\n\t\tSceneVertex A = new SceneVertex( new Vector3d(a, b, c));\r\n\t\tSceneVertex B = new SceneVertex( new Vector3d(d, b, c));\r\n\t\tSceneVertex C = new SceneVertex( new Vector3d(d, b, f));\r\n\t\tSceneVertex D = new SceneVertex( new Vector3d(d, e, f));\r\n\t\tSceneVertex E = new SceneVertex( new Vector3d(a, e, f));\r\n\t\tSceneVertex F = new SceneVertex( new Vector3d(a, e, c));\r\n\t\tSceneVertex G = new SceneVertex( new Vector3d(d, e, c));\r\n\t\tSceneVertex H = new SceneVertex( new Vector3d(a, b, f));\r\n\r\n\r\n\t\t// building the vertices arrays for the faces\r\n\t\tArrayList<SceneVertex> verArrP0front = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP0front.add(A);\r\n\t\tverArrP0front.add(B);\r\n\t\tverArrP0front.add(G);\r\n\t\tverArrP0front.add(F);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP1left = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP1left.add(A);\r\n\t\tverArrP1left.add(F);\r\n\t\tverArrP1left.add(E);\r\n\t\tverArrP1left.add(H);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP2back = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP2back.add(H);\r\n\t\tverArrP2back.add(C);\r\n\t\tverArrP2back.add(D);\r\n\t\tverArrP2back.add(E);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP3right = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP3right.add(G);\r\n\t\tverArrP3right.add(D);\r\n\t\tverArrP3right.add(C);\r\n\t\tverArrP3right.add(B);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP4bottom = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP4bottom.add(A);\r\n\t\tverArrP4bottom.add(H);\r\n\t\tverArrP4bottom.add(C);\r\n\t\tverArrP4bottom.add(B);\r\n\r\n\t\tArrayList<SceneVertex> verArrP5top = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP5top.add(F);\r\n\t\tverArrP5top.add(G);\r\n\t\tverArrP5top.add(D);\r\n\t\tverArrP5top.add(E);\r\n\t\t\r\n\t\t// creating BoundingBox\r\n\t\tm_BoundingBox = new SceneNode(DrawingMode.GL_LINE, \"BoundingBox\", null);\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP0front, \"FRONT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP1left, \"LEFT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP2back, \"BACK\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP3right, \"RIGHT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP4bottom, \"BOTTOM\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP5top, \"TOP\"));\r\n\r\n\t\t\r\n\t}", "public BLine2D\ngetThreePrimeRay()\nthrows Exception\n{\n\tif (this.nextNuc2D() == null)\n\t\treturn (null);\n\treturn (new BLine2D(\n\t\tthis.getPoint2D(),\n\t\tthis.nextNuc2D().getPoint2D()));\n}", "public Intersection[] intersectWith(Point3d S, Ray3d c) {\n Intersection[] result = null;\n\n double A = c.getX() * c.getX() + c.getY() * c.getY() + c.getZ() * c.getZ();\n\n double bx = (this.x - S.getX()); //Account for the Sphere's position\n double by = (this.y - S.getY());\n double bz = (this.z - S.getZ());\n\n double B = -(c.getX() * bx + c.getY() * by + c.getZ() * bz);\n\n double r = this.radius * this.radius;\n\n double C = bx * bx + by * by + bz * bz - r;\n\n double D = (B * B - A * C);\n if (D < 0) //no intersection\n {\n return null;\n }\n\n if (D == 0) //'graze' the sphere\n {\n result = new Intersection[1];\n Point3d P = S.plus(c.times(-B / A));\n result[0] = new Intersection(-B / A, this, true, 0, P, new Ray3d(P));\n /****/return null;\n }\n\n result = new Intersection[2];\n int hit = 0;\n\n double t1 = (-B - Math.sqrt(D)) / A;\n if (t1 > 0.00001) //The first hit\n {\n Point3d P = S.plus(c.times(t1));\n Ray3d N = P.minus(new Point3d(this.x, this.y, this.z));\n result[0] = new Intersection(t1, this, true, 0, P, N);\n hit++;\n }\n\n double t2 = (-B / A) + Math.sqrt(D) / A;\n if (t2 > 0.00000001) {\n Point3d P = S.plus(c.times(t2));\n Ray3d N = P.minus(new Point3d(this.x, this.y, this.z));\n result[hit] = new Intersection(t2, this, false, 0, P, N.reverse());\n }\n\n return result;\n }", "public void Colision2(Rect rect1, Rect rect2, Rect rect3){\r\n\r\n if (Rect.intersects(rect1, rect2)) {\r\n xPos =0;\r\n yPos = 0;\r\n Puntos += 100;\r\n }\r\n else if(Rect.intersects(rect2,rect3)){\r\n yPos = 0;\r\n xPos = 0;\r\n vidas--;\r\n Puntos = Puntos-50;\r\n\r\n }\r\n }", "public LineIntersect intersect(Line2D other, Vector2f intersectionPoint) {\r\n float denom = (other.pointB.y - other.pointA.y) * (this.pointB.x - this.pointA.x)\r\n - (other.pointB.x - other.pointA.x) * (this.pointB.y - this.pointA.y);\r\n float u0 = (other.pointB.x - other.pointA.x) * (this.pointA.y - other.pointA.y)\r\n - (other.pointB.y - other.pointA.y) * (this.pointA.x - other.pointA.x);\r\n float u1 = (other.pointA.x - this.pointA.x) * (this.pointB.y - this.pointA.y)\r\n - (other.pointA.y - this.pointA.y) * (this.pointB.x - this.pointA.x);\r\n\r\n //if parallel\r\n if (denom == 0.0f) {\r\n //if collinear\r\n if (u0 == 0.0f && u1 == 0.0f) {\r\n return LineIntersect.CoLinear;\r\n } else {\r\n return LineIntersect.Parallel;\r\n }\r\n } else {\r\n //check if they intersect\r\n u0 = u0 / denom;\r\n u1 = u1 / denom;\r\n\r\n float x = this.pointA.x + u0 * (this.pointB.x - this.pointA.x);\r\n float y = this.pointA.y + u0 * (this.pointB.y - this.pointA.y);\r\n\r\n if (intersectionPoint != null) {\r\n intersectionPoint.x = x; //(m_PointA.x + (FactorAB * Bx_minus_Ax));\r\n intersectionPoint.y = y; //(m_PointA.y + (FactorAB * By_minus_Ay));\r\n }\r\n\r\n // now determine the type of intersection\r\n if ((u0 >= 0.0f) && (u0 <= 1.0f) && (u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return LineIntersect.SegmentsIntersect;\r\n } else if ((u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return (LineIntersect.ABisectsB);\r\n } else if ((u0 >= 0.0f) && (u0 <= 1.0f)) {\r\n return (LineIntersect.BBisectsA);\r\n }\r\n\r\n return LineIntersect.LinesIntersect;\r\n }\r\n }", "@Test\n void contains() {\n Cuboid cuboid1 = new Cuboid(4, 4, 4);\n Point3D point1 = new Point3D(0,0,0);\n assertEquals(true, cuboid1.contains(point1));\n\n Point3D point2 = new Point3D(0,0,2);\n assertEquals(true, cuboid1.contains(point2));\n\n Point3D point3 = new Point3D(0,0,-2);\n assertEquals(true, cuboid1.contains(point3));\n\n Point3D point4 = new Point3D(0,2,0);\n assertEquals(true, cuboid1.contains(point4));\n\n Point3D point5 = new Point3D(0,-2,0);\n assertEquals(true, cuboid1.contains(point5));\n\n Point3D point6 = new Point3D(2,0,0);\n assertEquals(true, cuboid1.contains(point6));\n\n Point3D point7 = new Point3D(-2,0,0);\n assertEquals(true, cuboid1.contains(point7));\n\n Point3D point8 = new Point3D(-2,-2,-2);\n assertEquals(true, cuboid1.contains(point8));\n\n Point3D point9 = new Point3D(-2,-2,-3);\n assertEquals(false, cuboid1.contains(point9));\n\n\n //Arbitary orientation\n Cuboid cuboid2 = new Cuboid(4, 5, 7, new Ray(new Point3D(-2,-2,-2), new Vector3D(1,1,1)));\n Point3D point21 = new Point3D(-1,-1,-1);\n assertEquals(true, cuboid2.contains(point21));\n\n Cuboid cuboid3 = new Cuboid(4, 5, 6, new Ray(new Point3D(-2,-2,-2), new Vector3D(1,1,1)));\n Point3D point31 = new Point3D(0,0,0);\n assertEquals(false, cuboid3.contains(point31));\n\n Cuboid cuboid4 = new Cuboid(4, 5, 6, new Ray(new Point3D(0,0,0), new Vector3D(1,1,1)));\n Point3D point41 = new Point3D(2.5,2.5,2.5);\n assertEquals(false, cuboid4.contains(point41));\n\n Cuboid cuboid5 = new Cuboid(4, 5, 6, new Ray(new Point3D(-2,-2,-2), new Vector3D(0,0,1)));\n Point3D point51 = new Point3D(-2,-2,3.5);\n assertEquals(false, cuboid5.contains(point51));\n }", "private Type establishIntersectionType() {\n\r\n\t\tdouble Pq0 = AngleUtil.getTurn(p0, p1, q0);\r\n\t\tdouble Pq1 = AngleUtil.getTurn(p0, p1, q1);\r\n\r\n\t\tdouble Qp0 = AngleUtil.getTurn(q0, q1, p0);\r\n\t\tdouble Qp1 = AngleUtil.getTurn(q0, q1, p1);\r\n\r\n\t\t// check if all turn have none angle. In this case, lines are collinear.\r\n\t\tif (Pq0 == AngleUtil.NONE && Pq1 == AngleUtil.NONE || Qp0 == AngleUtil.NONE && Qp1 == AngleUtil.NONE) {\r\n\t\t\t// at this point, we know that lines are collinear.\r\n\t\t\t// we must check if they overlap for segments intersection\r\n\t\t\tif (q0.getDistance(p0) <= p0.getDistance(p1) && q0.getDistance(p1) <= p0.getDistance(p1)) {\r\n\t\t\t\t// then q0 is in P limits and p0 or p1 is in Q limits\r\n\t\t\t\t// TODO this check is no sufficient\r\n\t\t\t\tinPLimits = true;\r\n\t\t\t\tinQLimits = true;\r\n\t\t\t}\r\n\t\t\treturn Type.COLLINEAR;\r\n\t\t}\r\n\t\t// check if q0 and q1 lie around P AND p0 and p1 lie around Q.\r\n\t\t// in this case, the two segments intersect\r\n\t\telse if (Pq0 * Pq1 <= 0 && Qp0 * Qp1 <= 0) {\r\n\t\t\t// else if(Pq0 <= 0 && Pq1 >= 0 && Qp0 <= 0 && Qp1 >= 0 ||\r\n\t\t\t// Pq0 >= 0 && Pq1 <= 0 && Qp0 >= 0 && Qp1 <= 0){\r\n\r\n\t\t\tinPLimits = true;\r\n\t\t\tinQLimits = true;\r\n\t\t\treturn Type.INTERSECT;\r\n\t\t}\r\n\r\n\t\t// At this point, we know that segments are not crossing\r\n\t\t// check if q0 and q1 lie around P or p0 and p1 lie around Q.\r\n\t\t// in this case, a segment cross a line\r\n\t\telse if (Pq0 * Pq1 <= 0) {\r\n\t\t\tinQLimits = true;\r\n\t\t\treturn Type.INTERSECT;\r\n\t\t} else if (Qp0 * Qp1 <= 0) {\r\n\t\t\tinPLimits = true;\r\n\t\t\treturn Type.INTERSECT;\r\n\t\t}\r\n\r\n\t\t// At this point, we know that each segment lie on one side of the other\r\n\t\t// We now check the slope to know if lines are Type.PARALLEL\r\n\t\tdouble pSlope = p0.getSlope(p1);\r\n\t\tdouble qSlope = q0.getSlope(q1);\r\n\t\tif (PrecisionUtil.areEquals(pSlope, qSlope))\r\n\t\t\t// TODO check the infinity case\r\n\t\t\t// this test works even if the slopes are \"Double.infinity\" due to the verticality of the lines and division\r\n\t\t\t// by 0\r\n\t\t\treturn Type.PARALLEL;\r\n\t\telse\r\n\t\t\treturn Type.INTERSECT;\r\n\t}", "public void Colision(Rect rect1, Rect rect2, Rect rect3){\r\n\r\n if (Rect.intersects(rect1, rect2)) {\r\n xPos =0;\r\n yPos = 0;\r\n vidas--;\r\n Puntos = Puntos-50;\r\n }\r\n else if(Rect.intersects(rect2,rect3)){\r\n yPos = 0;\r\n xPos = 0;\r\n Puntos += 100;\r\n }\r\n }", "void setRectHitbox(float w, float h) {\n _hitbox = new PVector[]{\n new PVector(-w/2, h/2),\n new PVector(-w/2, -h/2),\n new PVector(w/2, -h/2),\n new PVector(w/2, h/2)\n };\n }", "public void\nrayPickBoundingBox(SoRayPickAction action, final SbBox3f bbox)\n//\n////////////////////////////////////////////////////////////////////////\n{\n // Save the state so we don't affect the real complexity\n action.getState().push();\n\n // Change the complexity\n SoComplexityElement.set(action.getState(), 0.0f);\n SoComplexityTypeElement.set(action.getState(),\n SoComplexityTypeElement.Type.OBJECT_SPACE);\n\n // Change the current matrix to scale and translate the cube to the\n // correct spot. (We can't just use an extra matrix passed to\n // computeObjectSpaceRay(), since the points generated by\n // generatePrimitives() have to be transformed, not just the ray.)\n final SbVec3fSingle size = new SbVec3fSingle();\n bbox.getSize(size);\n\n // If any of the dimensions is 0, beef it up a little bit to avoid\n // scaling by 0\n if (size.getValueRead()[0] == 0.0)\n size.getValue()[0] = 0.00001f;\n if (size.getValueRead()[1] == 0.0)\n size.getValue()[1] = 0.00001f;\n if (size.getValueRead()[2] == 0.0)\n size.getValue()[2] = 0.00001f;\n\n SoModelMatrixElement.translateBy(action.getState(), this,\n bbox.getCenter());\n SoModelMatrixElement.scaleBy(action.getState(), this,\n size.operator_mul(0.5f));\n\n // Compute the picking ray in the space of the shape\n computeObjectSpaceRay(action);\n\n // Pick using primitive generation. Make sure we know that we are\n // picking on just a bounding box of another shape, so details\n // won't be created.\n pickingBoundingBox = true;\n generatePrimitives(action);\n\n // Restore the state\n action.getState().pop();\n}", "public boolean isIntersecting(GameObject other){\n if(other.isSolid()&&this.solid){\n return RectF.intersects(other.getHitBox(),this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }\n return false;\n }", "final public boolean isColliding(BoundingBox otherBox)\n\t{\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() - (width / 2.0), otherBox.getCenter().getY() + (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() + (width / 2.0), otherBox.getCenter().getY() - (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() + (width / 2.0), otherBox.getCenter().getY() + (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() - (width / 2.0), otherBox.getCenter().getY() - (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public List<GeoPoint> findGeoIntersections(Ray ray , double maxDistance) {\n Point3D P0 = ray.getP0();\n Vector v = ray.getDir();\n\n if (P0.equals(_center)) {\n return List.of(new GeoPoint(this,_center.add(v.scale(_radius))));\n }\n\n Vector U = _center.subtract(P0);\n\n double tm = alignZero(v.dotProduct(U));\n double d = alignZero(Math.sqrt(U.lengthSquared() - tm * tm));\n\n // no intersections : the ray direction is above the sphere\n if (d >= _radius) {\n return null;\n }\n\n double th = alignZero(Math.sqrt(_radius * _radius - d * d));\n double t1 = alignZero(tm - th);\n double t2 = alignZero(tm + th);\n boolean validT1=alignZero(t1 - maxDistance ) <=0;\n boolean validT2=alignZero( t2 - maxDistance )<=0;\n if (t1>0 && t2>0 && validT1 && validT2) {\n Point3D P1 =ray.getPoint(t1);\n Point3D P2 =ray.getPoint(t2);\n return List.of(new GeoPoint(this,P1),new GeoPoint(this, P2));\n }\n if (t1>0 && validT1){\n Point3D P1 =ray.getPoint(t1);\n return List.of(new GeoPoint(this,P1));\n }\n if (t2>0 && validT2) {\n Point3D P2 =ray.getPoint(t2);\n return List.of(new GeoPoint(this,P2));\n }\n return null;\n }", "List<GeoPoint> findGeoIntersections(Ray ray);", "public Rect getHitbox() {\n return hitbox;\n }", "boolean intersects( Geometry gmo );", "public boolean isIntersecting(RectF other){\n return RectF.intersects(other,this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }", "public static RayTraceResult checkForImpact(World world, Entity entity, Entity shooter, double hitBox, boolean flag) \r\n\t{\r\n\t\tVec3d vec3 = new Vec3d(entity.posX, entity.posY, entity.posZ);\r\n\t\tVec3d vec31 = new Vec3d(entity.posX + entity.motionX, entity.posY + entity.motionY, entity.posZ + entity.motionZ);\r\n\r\n\t\tRayTraceResult raytraceresult = world.rayTraceBlocks(vec3, vec31, false, true, false);\r\n\t\tvec3 = new Vec3d(entity.posX, entity.posY, entity.posZ);\r\n\t\tvec31 = new Vec3d(entity.posX + entity.motionX, entity.posY + entity.motionY, entity.posZ + entity.motionZ);\r\n\r\n\t\tif (raytraceresult != null) \r\n\t\t{\r\n\t\t\tvec31 = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z);\r\n\t\t}\r\n\r\n\t\tEntity target = null;\r\n\t\tList<Entity> list = world.getEntitiesWithinAABBExcludingEntity(entity, entity.getEntityBoundingBox().expand(entity.motionX, entity.motionY, entity.motionZ).expand(1.0D, 1.0D, 1.0D));\r\n\t\tdouble d0 = 0.0D;\r\n\t\t//double hitBox = 0.3D;\r\n\r\n\t\tfor (int i = 0; i < list.size(); ++i) \r\n\t\t{\r\n\t\t\tEntity entity1 = (Entity) list.get(i);\r\n\r\n\t\t\tif (entity1.canBeCollidedWith() && (entity1 != shooter || flag)) \r\n\t\t\t{\r\n\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(hitBox, hitBox, hitBox);\r\n\t\t\t\tRayTraceResult mop1 = axisalignedbb.calculateIntercept(vec3, vec31);\r\n\r\n\t\t\t\tif (mop1 != null) \r\n\t\t\t\t{\r\n\t\t\t\t\tdouble d1 = vec3.distanceTo(mop1.hitVec);\r\n\r\n\t\t\t\t\tif (d1 < d0 || d0 == 0.0D) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttarget = entity1;\r\n\t\t\t\t\t\td0 = d1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (target != null) \r\n\t\t{\r\n\t\t\traytraceresult = new RayTraceResult(target);\r\n\t\t}\r\n\r\n\t\tif (raytraceresult != null && raytraceresult.entityHit instanceof EntityPlayer) \r\n\t\t{\r\n\t\t\tEntityPlayer player = (EntityPlayer) raytraceresult.entityHit;\r\n\r\n\t\t\tif (player.capabilities.disableDamage || (shooter instanceof EntityPlayer\r\n\t\t\t\t\t&& !((EntityPlayer) shooter).canAttackPlayer(player)))\r\n\t\t\t{\r\n\t\t\t\traytraceresult = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn raytraceresult;\r\n\t}", "public boolean intersects(GLineSegment lineSegment) {\n if(this.equals(lineSegment)) return(true);\n else if(this.slope()==lineSegment.slope()) return(false);\n else {\n //complicated stuff here.\n return(false);\n }\n }", "default List<Point3D> findIntersections(Ray ray) {\n\tList<GeoPoint> geoList = findGeoIntersections(ray);\n\treturn geoList == null ? null\n\t: geoList .stream()\n\t.map(gp -> gp.point)\n\t.collect(Collectors.toList());\n\t}", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }", "public boolean intersectsSegment(Vector a, Vector b, double R){\r\n\t\tif(floor && !obstructed())\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tVector[] p = getCardinalPoints();\r\n\t\t\r\n\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\tVector c = p[i];\r\n\t\t\tVector d = p[(i+1)%4];\r\n\t\t\tif(Geometry.segmentIntersect(a, b, c, d) || Geometry.plsDist(a, b, p[i]) <= R)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static BoundingBox calculateBoundingBox(Vector3D[] paramArrayOfVector3D)\r\n/* 13: */ {\r\n/* 14: 9 */ Vector3D localVector3D1 = new Vector3D();\r\n/* 15: 10 */ for (int i = 0; i < paramArrayOfVector3D.length; i++)\r\n/* 16: */ {\r\n/* 17: 12 */ localVector3D1.x += paramArrayOfVector3D[i].x;\r\n/* 18: 13 */ localVector3D1.y += paramArrayOfVector3D[i].y;\r\n/* 19: 14 */ localVector3D1.z += paramArrayOfVector3D[i].z;\r\n/* 20: */ }\r\n/* 21: 16 */ localVector3D1.x /= paramArrayOfVector3D.length;\r\n/* 22: 17 */ localVector3D1.y /= paramArrayOfVector3D.length;\r\n/* 23: 18 */ localVector3D1.z /= paramArrayOfVector3D.length;\r\n/* 24: 19 */ float[][] arrayOfFloat = new float[3][3];\r\n/* 25: 20 */ for (int j = 0; j < paramArrayOfVector3D.length; j++)\r\n/* 26: */ {\r\n/* 27: 22 */ float f1 = paramArrayOfVector3D[j].x - localVector3D1.x;\r\n/* 28: 23 */ float f2 = paramArrayOfVector3D[j].y - localVector3D1.y;\r\n/* 29: 24 */ float f3 = paramArrayOfVector3D[j].z - localVector3D1.z;\r\n/* 30: 25 */ arrayOfFloat[0][0] += f1 * f1;\r\n/* 31: 26 */ arrayOfFloat[1][1] += f2 * f2;\r\n/* 32: 27 */ arrayOfFloat[2][2] += f3 * f3;\r\n/* 33: 28 */ arrayOfFloat[0][1] += f1 * f2;\r\n/* 34: 29 */ arrayOfFloat[0][2] += f1 * f3;\r\n/* 35: 30 */ arrayOfFloat[1][2] += f2 * f3;\r\n/* 36: */ }\r\n/* 37: 32 */ arrayOfFloat[1][2] /= paramArrayOfVector3D.length;\r\n/* 38: 33 */ arrayOfFloat[2][1] = arrayOfFloat[1][2];\r\n/* 39: 34 */ arrayOfFloat[0][2] /= paramArrayOfVector3D.length;\r\n/* 40: 35 */ arrayOfFloat[2][0] = arrayOfFloat[0][2];\r\n/* 41: 36 */ arrayOfFloat[0][1] /= paramArrayOfVector3D.length;\r\n/* 42: 37 */ arrayOfFloat[1][0] = arrayOfFloat[0][1];\r\n/* 43: 38 */ arrayOfFloat[1][1] /= paramArrayOfVector3D.length;\r\n/* 44: 39 */ arrayOfFloat[2][2] /= paramArrayOfVector3D.length;\r\n/* 45: 40 */ arrayOfFloat[0][0] /= paramArrayOfVector3D.length;\r\n/* 46: 41 */ System.out.println(arrayOfFloat[0][0] + \"\\t\" + arrayOfFloat[0][1] + \"\\t\" + arrayOfFloat[0][2] + \"\\t\");\r\n/* 47: 42 */ System.out.println(arrayOfFloat[1][0] + \"\\t\" + arrayOfFloat[1][1] + \"\\t\" + arrayOfFloat[1][2] + \"\\t\");\r\n/* 48: 43 */ System.out.println(arrayOfFloat[2][0] + \"\\t\" + arrayOfFloat[2][1] + \"\\t\" + arrayOfFloat[2][2] + \"\\t\");\r\n/* 49: 44 */ double[][] arrayOfDouble1 = new double[3][3];\r\n/* 50: 45 */ for (int k = 0; k < 3; k++) {\r\n/* 51: 47 */ for (int m = 0; m < 3; m++) {\r\n/* 52: 49 */ arrayOfDouble1[k][m] = arrayOfFloat[k][m];\r\n/* 53: */ }\r\n/* 54: */ }\r\n/* 55: 52 */ Matrix localMatrix1 = new Matrix(arrayOfDouble1);\r\n/* 56: 53 */ EigenvalueDecomposition localEigenvalueDecomposition = localMatrix1.eig();\r\n/* 57: 54 */ Matrix localMatrix2 = localEigenvalueDecomposition.getV();\r\n/* 58: 55 */ double[][] arrayOfDouble2 = localMatrix2.getArray();\r\n/* 59: 56 */ Vector3D localVector3D2 = new Vector3D((float)arrayOfDouble2[0][0], (float)arrayOfDouble2[1][0], (float)arrayOfDouble2[2][0]);\r\n/* 60: 57 */ Vector3D localVector3D3 = new Vector3D(-(float)arrayOfDouble2[0][1], -(float)arrayOfDouble2[1][1], -(float)arrayOfDouble2[2][1]);\r\n/* 61: 58 */ Vector3D localVector3D4 = new Vector3D(-(float)arrayOfDouble2[0][2], -(float)arrayOfDouble2[1][2], -(float)arrayOfDouble2[2][2]);\r\n/* 62: 59 */ System.out.println(\"r=\" + localVector3D4);\r\n/* 63: 60 */ System.out.println(\"s=\" + localVector3D3);\r\n/* 64: 61 */ System.out.println(\"t=\" + localVector3D2);\r\n/* 65: 62 */ float f4 = 0.0F;\r\n/* 66: 63 */ float f5 = 0.0F;\r\n/* 67: 64 */ float f6 = 0.0F;\r\n/* 68: 65 */ float f7 = 0.0F;\r\n/* 69: 66 */ float f8 = 0.0F;\r\n/* 70: 67 */ float f9 = 0.0F;\r\n/* 71: 68 */ for (int n = 0; n < paramArrayOfVector3D.length; n++)\r\n/* 72: */ {\r\n/* 73: 70 */ float f10 = paramArrayOfVector3D[n].dotProduct(localVector3D4);\r\n/* 74: 71 */ float f11 = paramArrayOfVector3D[n].dotProduct(localVector3D4);\r\n/* 75: 72 */ float f12 = paramArrayOfVector3D[n].dotProduct(localVector3D4);\r\n/* 76: 73 */ f4 = Math.min(f4, f10);\r\n/* 77: 74 */ f5 = Math.min(f5, f11);\r\n/* 78: 75 */ f6 = Math.min(f6, f12);\r\n/* 79: 76 */ f7 = Math.max(f7, f10);\r\n/* 80: 77 */ f8 = Math.max(f8, f11);\r\n/* 81: 78 */ f9 = Math.max(f9, f12);\r\n/* 82: */ }\r\n/* 83: 80 */ float[] arrayOfFloat1 = { localVector3D4.x, localVector3D4.y, localVector3D4.z, -f4 };\r\n/* 84: 81 */ float[] arrayOfFloat2 = { -localVector3D4.x, -localVector3D4.y, -localVector3D4.z, f7 };\r\n/* 85: 82 */ float[] arrayOfFloat3 = { localVector3D2.x, localVector3D2.y, localVector3D2.z, -f6 };\r\n/* 86: 83 */ float[] arrayOfFloat4 = { -localVector3D2.x, -localVector3D2.y, -localVector3D2.z, f9 };\r\n/* 87: 84 */ float[] arrayOfFloat5 = { localVector3D3.x, localVector3D3.y, localVector3D3.z, -f5 };\r\n/* 88: 85 */ float[] arrayOfFloat6 = { -localVector3D3.x, -localVector3D3.y, -localVector3D3.z, f8 };\r\n/* 89: 86 */ return new BoundingBox(arrayOfFloat1, arrayOfFloat2, arrayOfFloat3, arrayOfFloat4, arrayOfFloat5, arrayOfFloat6);\r\n/* 90: */ }", "public boolean intersect(BoundingBox3d b2) {\n return ((xmin <= b2.xmin && b2.xmin <= xmax) || (xmin <= b2.xmax && b2.xmax <= xmax))\n && ((ymin <= b2.ymin && b2.ymin <= ymax) || (ymin <= b2.ymax && b2.ymax <= ymax))\n && ((zmin <= b2.zmin && b2.zmin <= zmax) || (zmin <= b2.zmax && b2.zmax <= zmax));\n }", "public boolean isColliding(){\n for(int i = 0; i < eng.getIDManager().getObjectsWithID(\"GameObject\").size(); i++){\n GameObject temp = eng.getIDManager().getObjectsWithID(\"GameObject\").get(i);\n \n if(temp.getHitBox().getBounds().intersects(rect.getBounds()) &&\n temp.getHitBox() != this){\n currentCollidingObject = temp;\n return true;\n }\n }\n \n return false;\n }", "public boolean intersects(S2Point v1) {\n boolean result = true;\n\n if ((v1.x < xmin && lastVertex.x < xmin) || (v1.x > xmax && lastVertex.x > xmax)) {\n result = false;\n } else if ((v1.y < ymin && lastVertex.y < ymin) || (v1.y > ymax && lastVertex.y > ymax)) {\n result = false;\n } else if ((v1.z < zmin && lastVertex.z < zmin) || (v1.z > zmax && lastVertex.z > zmax)) {\n result = false;\n }\n\n lastVertex = v1;\n return result;\n }", "Rectangle getCollisionBox();", "public boolean ballBoxCollision(){\n\t\tboolean collision = false;\n\t\tfor(Box possibleSelection: possAnswers ){\n\t\t\tif(possibleSelection.isDrawable()){\n\t\t\tif (ballBoxXCollision(possibleSelection) && ballBoxYCollision(possibleSelection)){\n\t\t\t\tif (isCorrect(possibleSelection.getaString())){\n\t\t\t\t\tpossibleSelection.setDrawable(false);\n\t\t\t\t\tselectedA.add(possibleSelection.getaString());\n\t\t\t\t\tactiveBall = false;\n\t\t\t\t\tballCount = 0;\n\t\t\t\t\tcorrectGuess += 1;\n\t\t\t}else {\n\t\t\t\t\tpossibleSelection.setDrawable(false);\t\t\t\n\t\t\t\t\tactiveBall = false;\n\t\t\t\t\tballCount = 0;\n\t\t\t\t\tincorrectGuesses += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t}\n\t\treturn collision;\n\t}", "public float intersectsTriangle(Vector3f vertex1, Vector3f vertex2, Vector3f vertex3) {\n\t\tVector3f edge1 = new Vector3f(), edge2 = new Vector3f();\n\n\t\tedge1.sub(vertex2, vertex1);\n\t\tedge2.sub(vertex3, vertex1);\n\n\t\tVector3f nlook = new Vector3f(look);\n\t\tnlook.negate();\n\t\t// Compute the determinant.\n\t\tVector3f directionCrossEdge2 = new Vector3f();\n\t\tdirectionCrossEdge2.cross(nlook, edge2);\n\n\t\tfloat determinant = directionCrossEdge2.dot(edge1);\n\t\t// If the ray and triangle are parallel, there is no collision.\n\t\tif (determinant > -.0000001f && determinant < .0000001f) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\tfloat inverseDeterminant = 1.0f / determinant;\n\n\t\t// Calculate the U parameter of the intersection point.\n\t\tVector3f distanceVector = new Vector3f();\n\t\tdistanceVector.sub(position, vertex1);\n\n\t\tfloat triangleU = directionCrossEdge2.dot(distanceVector);\n\t\ttriangleU *= inverseDeterminant;\n\n\t\t// Make sure the U is inside the triangle.\n\t\tif (triangleU < 0 || triangleU > 1) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\t// Calculate the V parameter of the intersection point.\n\t\tVector3f distanceCrossEdge1 = new Vector3f();\n\t\tdistanceCrossEdge1.cross(distanceVector, edge1);\n\n\t\tfloat triangleV = nlook.dot(distanceCrossEdge1);\n\t\ttriangleV *= inverseDeterminant;\n\n\t\t// Make sure the V is inside the triangle.\n\t\tif (triangleV < 0 || triangleU + triangleV > 1) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\t// Get the distance to the face from our ray origin\n\t\tfloat rayDistance = distanceCrossEdge1.dot(edge2);\n\t\trayDistance *= inverseDeterminant;\n\n\t\t// Is the triangle behind us?\n\t\tif (rayDistance < 0) {\n\t\t\trayDistance *= -1;\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\t\treturn rayDistance;\n\t}", "private void handleIntersection()\n\t{\n\t\tstop();\n\t\tgoForward(50);\n\t\t\n\t\tswitch(SEQUENCE[0])\n\t\t{\n\t\tcase FORWARD:\n\t\t\t//Keep going, don't turn.\n\t\t\tbreak;\n\t\tcase RIGHT:\n\t\t\tturnRight();\n\t\t\tbreak;\n\t\tcase LEFT:\n\t\t\tturnLeft();\n\t\t\tbreak;\n\t\t}\n\t\tnextMovement();\n\t}", "private void analyzeBox(QuadTreeNode node) {\n\t\t\tif (node.type().equals(\"leaf\")) {\n\t\t\t\tif (node.isWithin(((LeafNode)node).id, xl, yl, xu, yu)) elements.add(((LeafNode)node).id);\n\t\t\t} else if (node.type().equals(\"inner\")) {\n\t\t\t\tInnerNode nodeHandle = (InnerNode) node;\n\t\t\t\t//First Quad\n\t\t\t\tif (!nodeHandle.children[0].type().equals(\"empty\") && \n\t\t\t\t\t\txu >= nodeHandle.children[0].llx() && \n\t\t\t\t\t\tyu >= nodeHandle.children[0].lly()) analyzeBox(nodeHandle.children[0]);\n\t\t\t\t//Second Quad\n\t\t\t\tif (!nodeHandle.children[1].type().equals(\"empty\") && \n\t\t\t\t\t\txl < nodeHandle.children[1].urx() && \n\t\t\t\t\t\tyu > nodeHandle.children[1].lly()) analyzeBox(nodeHandle.children[1]);\n\t\t\t\t//Third Quad\n\t\t\t\tif (!nodeHandle.children[2].type().equals(\"empty\") && \n\t\t\t\t\t\txl < nodeHandle.children[2].urx() && \n\t\t\t\t\t\tyl < nodeHandle.children[2].ury()) analyzeBox(nodeHandle.children[2]);\n\t\t\t\t//Fourth Quad\n\t\t\t\tif (!nodeHandle.children[3].type().equals(\"empty\") && \n\t\t\t\t\t\txu >= nodeHandle.children[3].llx() && \n\t\t\t\t\t\tyl <= nodeHandle.children[3].ury()) analyzeBox(nodeHandle.children[3]);\n\t\t\t}\n\t\t}", "public static boolean intersectLineTriangle(Vec3 p, Vec3 q, Vec3 a, Vec3 b, Vec3 c, Vec3 r) {\r\n\t // Bring points to their respective coordinate frame\r\n\t Vec3 pq = q.subtract( p);\r\n\t Vec3 pa =a.subtract(p);\r\n\t Vec3 pb = b.subtract(p);\r\n\t Vec3 pc = c.subtract(p);\r\n\t \r\n\t Vec3 m = pq.cross(pc);\r\n\t \r\n\t float u = pb.dot(m); \r\n\t float v = -pa.dot(m);\r\n\t \r\n\t if (Math.signum(u) != Math.signum(v)) {\r\n\t return false;\r\n\t }\r\n\t \r\n\t // scalar triple product\r\n\t float w = pq.dot( pb.cross(pa));\r\n\t \r\n\t if (Math.signum(u) != Math.signum(w)) {\r\n\t return false;\r\n\t }\r\n\t \r\n\t float denom = 1.0f / (u + v + w);\r\n\t \r\n\t // r = ((u * denom) * a) + ((v * denom) * b) + ((w * denom) * c);\r\n\t Vec3 compA = a.multiply(u * denom);\r\n\t Vec3 compB = b.multiply( v * denom);\r\n\t Vec3 compC = c.multiply( w * denom);\r\n\t \r\n\t // store result in Vector r\r\n\t r.x = compA.x + compB.x + compC.x;\r\n\t r.y = compA.y + compB.y + compC.y;\r\n\t r.z = compA.z + compB.z + compC.z;\r\n\t \r\n\t return true;\r\n\t}", "public boolean intersect(IntersectionRecord outRecord, Ray rayIn) {\n // TODO#A2: fill in this function.\n\n Vector3d d = rayIn.direction;\n Vector3d e = rayIn.origin;\n Vector3d c = (new Vector3d()).addMultiple(1, center);\n\n Vector3d ec = e.clone().sub(c);\n double dec = d.clone().dot(ec);\n double dd = d.clone().dot(d);\n\n double discr = Math.sqrt(Math.pow(dec, 2) - dd * (ec.clone().dot(ec) - Math.pow(radius, 2)));\n\n if (discr > 0) {\n double t1 = (-dec + discr) / dd;\n double t2 = (-dec - discr) / dd;\n\n if ((t1 > rayIn.start && t1 < rayIn.end) || (t2 > rayIn.start && t2 < rayIn.end)) {\n double t;\n if (t1 < t2) {\n if (t1 > rayIn.start) {\n t = t1;\n } else {\n t = t2;\n }\n } else {\n if (t2 > rayIn.start) {\n t = t2;\n } else {\n t = t1;\n }\n }\n\n Vector3d p = e.clone().add(d.clone().mul(t));\n outRecord.location.set(p);\n outRecord.normal.set(p.clone().sub(c).div(radius).normalize());\n\n double theta = Math.acos((p.z-c.z) / radius);\n double phi = Math.atan2(p.y-c.y, p.x-c.x);\n\n if (phi < 0) {\n phi += M_2PI;\n }\n\n double u = phi / M_2PI;\n double v = (Math.PI-theta) / Math.PI;\n\n outRecord.texCoords.set(u,v);\n outRecord.surface = this;\n outRecord.t = t;\n\n rayIn.end = t;\n\n return true;\n }\n return false;\n }\n return false;\n }", "public abstract boolean hit(Rectangle2D r);" ]
[ "0.61535114", "0.59105396", "0.5873958", "0.5837618", "0.5689116", "0.56687057", "0.56199336", "0.55844027", "0.54643005", "0.54573035", "0.5429127", "0.5368927", "0.5367979", "0.52495295", "0.5213116", "0.5190833", "0.5168273", "0.5167379", "0.51490724", "0.51471335", "0.5123201", "0.5095811", "0.5094079", "0.5087152", "0.50691485", "0.5061855", "0.502804", "0.50278056", "0.49996376", "0.49947387", "0.49904314", "0.49877974", "0.4986203", "0.49654984", "0.4946716", "0.49355206", "0.49308726", "0.49270722", "0.49218157", "0.48737946", "0.4837133", "0.48199862", "0.48073834", "0.48054227", "0.47791618", "0.47708356", "0.47647643", "0.47608098", "0.47537208", "0.47508568", "0.47456148", "0.47419706", "0.4733985", "0.47310054", "0.47280598", "0.47258663", "0.47198513", "0.47035304", "0.46849132", "0.4672428", "0.46612573", "0.46611738", "0.4653042", "0.4645008", "0.4642705", "0.46380544", "0.46351743", "0.46214637", "0.46205005", "0.46118656", "0.46084908", "0.4601843", "0.45861924", "0.4583225", "0.45704663", "0.45702273", "0.45660174", "0.45613095", "0.45522237", "0.45452794", "0.45262057", "0.45122132", "0.45111382", "0.45022172", "0.45011923", "0.4500335", "0.44976014", "0.44938168", "0.44934988", "0.44880563", "0.4485865", "0.4483523", "0.4464034", "0.4454543", "0.44453222", "0.44420156", "0.44407144", "0.44394988", "0.44386396", "0.44363892" ]
0.4704874
57
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* TODO output your page here. You may use following sample code. */ out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Home</title>"); out.println("<meta charset=\"UTF-8\">"); out.println("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">"); out.println("<link rel=\"stylesheet\" href=\"css/style.css\">"); out.println("</head>"); out.println("<body>"); out.println("<h1>Genesis</h1>"); out.println("<div class=\"wrapper2\">"); out.println("<div class=\"container\">"); out.println("<h1>Genesis</h1>"); out.println("<form class=\"form\" style=\" left: 0px;\">"); out.println("<input type=button onClick=\"location.href='Login'\" value=\"User Login\">"); out.println("<input type=button onClick=\"location.href='LiveSupport'\" value=\"Live Support\">"); out.println("<input type=button onClick=\"location.href='Contacts'\" value=\"Contacts\">"); out.println("<input type=button onClick=\"location.href='Help'\" value=\"Help\">"); out.println("<input type=button onClick=\"location.href='About'\" value=\"About\">"); out.println("</form>"); out.println("</div>");//Container End out.println("<ul class=\"bg-bubbles\">"); for(int i = 0;i <= 5;i++){ out.println("<li></li>"); } out.println("</ul>"); out.println("</div>");//Wrapper End out.println("<script src='js/jquery.min.js'></script>");//Effect Script out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599" ]
0.0
-1
TODO Autogenerated method stub super.validate();
@Override public void validate() { if (this.password.length() < 2) { addFieldError("password", "too short"); } System.out.println("**************Validation"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void validate() {\n\t}", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}", "@Override\n\tpublic void validate() {\n\t}", "@Override\r\n public void validate() {\r\n }", "@Override\r\n public boolean validate() {\n return true;\r\n }", "@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic void Validate() {\n\r\n\t}", "@Override\r\n public void validate() {\n\r\n }", "@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "public void validate() {}", "public boolean validate(){\n return true;\n }", "protected void validate() {\n // no implementation.\n }", "public boolean validate() {\n return true;\n }", "public boolean validate() {\n return true;\n }", "protected void validate() {\n // no op\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void validateModel() {\n }", "@Override\n\tprotected void validate(Controller c) {\n\n\t}", "public void validate() {\n\t\tthis.invalidated = false;\n\t}", "@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}", "@Override\n protected Result validate() {\n return successful(this);\n }", "void validate();", "void validate();", "protected boolean isValid()\r\n {\r\n \treturn true;\r\n }", "@Override\r\n\tpublic void validate() {\n\t\tsuper.validate();\r\n\t\tif(nofck == null)\r\n\t\t\tnofck = false;\r\n\t}", "public abstract boolean validate();", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "public abstract void validate () throws ModelValidationException;", "protected void validateEntity() {\n super.validateEntity();\n }", "public void validate() throws ValidationException {\n\t}", "public void validate(){\n if (validated){\n validated = false;\n } else {\n validated = true;\n }\n }", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void validate(Object arg0, Errors arg1) {\n\n\t}", "private void validateData() {\n }", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public boolean isValid(){\n\t\treturn true;\n\t}", "public void validate() throws ValidationException {\r\n/* 522 */ Validator validator = new Validator();\r\n/* 523 */ validator.validate(this);\r\n/* */ }", "public boolean validate() throws edu.mit.coeus.exception.CoeusUIException \r\n {\r\n return false;\r\n }", "@Override\n\tpublic void validate(Object target, Errors errors) {\n\t\t\n\t}", "@Override\n\tpublic void validate() {\n\t\tFormFieldValidator.validateStudent(this, student);\n\t\tFormFieldValidator.validateCourseList(this, courseID);\n\t}", "@Override\n\tprotected void doValidate() throws InstructionValidationException {\n\t}", "protected boolean isValid() {\n \t\treturn valid;\n \t}", "@Override\n\tpublic void validate(Object target, Errors errors) {\n\t\t\n\t\t\n\t}", "public boolean isValid() {\n\t\treturn false;\n\t}", "ValidationResponse validate();", "@Override\n\tpublic void validation() throws EditorException\n\t{\n\t}", "public void validate()\r\n throws org.exolab.castor.xml.ValidationException\r\n {\r\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n validator.validate(this);\r\n }", "public void validate()\r\n throws org.exolab.castor.xml.ValidationException\r\n {\r\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n validator.validate(this);\r\n }", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "public void validate() throws org.exolab.castor.xml.ValidationException {\r\n\t\torg.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r\n\t\tvalidator.validate(this);\r\n\t}", "@Override\n\t\tprotected void revalidate() {\n\t\t\tvalid = true;\n\t\t}", "public void validate()\n throws org.exolab.castor.xml.ValidationException {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }", "public boolean isValid()\n\t{\n\t\treturn false;\n\t}", "public void validate()\n throws org.exolab.castor.xml.ValidationException\n {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }", "public void validate()\n throws org.exolab.castor.xml.ValidationException\n {\n org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\n validator.validate(this);\n }", "@Override\n public boolean validate() throws ValidationException\n {\n boolean isValid = super.validate();\n return checkAAField() && isValid;\n }", "public void validate() throws Exception {\n }", "public void validate()\n\t{\t\t\n\t\t// calculate the corner position\n\t\tsetCorner(\n\t\t\t\tcalculateCornerPosition(\n\t\t\t\t\t\tgetCentrePosition(),\n\t\t\t\t\t\tgetHorizontalSpanVector(),\n\t\t\t\t\t\tgetVerticalSpanVector()\n\t\t\t\t\t)\n\t\t\t);\n\t}", "public void validate () { throw new RuntimeException(); }", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\n return true;\n }", "void validate() throws ValidationException;", "protected abstract boolean isValidate();", "public boolean isValid() {\n return true;\n }", "@Override\n public BeanValidationResult validate() {\n return new BeanValidator().validateTop(getClass().getSimpleName(), this);\n }", "public void validateForSave() throws NSValidation.ValidationException {\n\t\tvalidateObjectMetier();\n\t\tvalidateBeforeTransactionSave();\n\t\tsuper.validateForSave();\n\n\t}", "public void validateForSave() throws NSValidation.ValidationException {\n\t\tvalidateObjectMetier();\n\t\tvalidateBeforeTransactionSave();\n\t\tsuper.validateForSave();\n\n\t}", "public void validateForSave() throws NSValidation.ValidationException {\n\t\tvalidateObjectMetier();\n\t\tvalidateBeforeTransactionSave();\n\t\tsuper.validateForSave();\n\n\t}", "private void validation() {\n this.validate();\n this.repaint();\n }", "@Override\r\n\tpublic void validateUpdate() throws Exception {\n\r\n\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "public void validate() throws org.apache.thrift.TException {\n\t\t}", "protected abstract boolean isValid();", "public void validate() throws org.apache.thrift.TException {\n\t}", "public void validate() throws org.apache.thrift.TException {\n\t}", "public void validate() throws org.apache.thrift.TException {\n\t}", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "public void validate(DataRecord value) {\n\r\n\t}", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}" ]
[ "0.9068746", "0.90544945", "0.89914936", "0.89556867", "0.8861696", "0.88608116", "0.8816851", "0.8734666", "0.8734666", "0.85945666", "0.8581206", "0.8403786", "0.8403786", "0.83428025", "0.8017782", "0.80128634", "0.79758537", "0.7925201", "0.7925201", "0.7914536", "0.78632224", "0.78632224", "0.78632224", "0.7853297", "0.7649771", "0.76340586", "0.76230997", "0.75810707", "0.7526082", "0.7526082", "0.7525752", "0.752494", "0.7524661", "0.75231576", "0.75041133", "0.75041133", "0.75041133", "0.736329", "0.73490286", "0.732914", "0.7298752", "0.7257769", "0.7201968", "0.7182575", "0.71632147", "0.71632147", "0.71632147", "0.7162511", "0.71263707", "0.7101662", "0.7100675", "0.7093594", "0.7067996", "0.7067181", "0.7063888", "0.7045735", "0.7027875", "0.70082617", "0.7007524", "0.7007524", "0.6986841", "0.6986841", "0.6986841", "0.6974679", "0.6954609", "0.6953823", "0.69514394", "0.6941426", "0.6941426", "0.6935868", "0.69324875", "0.6931079", "0.69103193", "0.688963", "0.688963", "0.68795824", "0.6879357", "0.6877", "0.6873169", "0.6864726", "0.6864726", "0.6864726", "0.68578", "0.68407446", "0.6818997", "0.6818997", "0.6818997", "0.6818997", "0.6818997", "0.6818997", "0.6818997", "0.6818997", "0.6812044", "0.67988926", "0.67988926", "0.67988926", "0.6790049", "0.67817533", "0.67784286", "0.6774553", "0.67691314" ]
0.0
-1
Font font = new Font("helvitica", Font.BOLD, 24);
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { //Get the selected index. (The index param isn't //always valid, so just use the value.) // int selectedIndex = ((Int // icon = createImageIcon("");eger)value).intValue(); if (isSelected) { setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground()); } else { setBackground(list.getBackground()); setForeground(list.getForeground()); } //Set the icon and text. If icon was null, say so. if(saveType.equals("Folder")) { } setIcon(icon); if (icon != null) { setFont(list.getFont()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Font createFont();", "FONT createFONT();", "public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }", "public void setTextFont(Font font);", "public Font setFontStyle(String font){\n\t\treturn new Font(font, Font.BOLD, 1);\r\n\t}", "Font getBoldFont(Font font) {\n\tif (this.boldFont == null) {\n\t\tFontData[] fontData = (font==null ? JFaceResources.getDefaultFont() : font).getFontData();\n\t\tFontData boldFontData = new FontData(fontData[0].getName(), fontData[0].getHeight(), SWT.BOLD);\n\t\tthis.boldFont = new Font(this.display, boldFontData);\n\t}\n\treturn this.boldFont;\n}", "public void GetFont (){\n fontBol = false;\n fontBolS = true;\n fontBolA = true;\n fontBolW = true;\n }", "public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }", "public static Font getFont() {\n return getFont(12);\n }", "@Override\r\n public void setFont(Font font) {\r\n super.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\r\n }", "private void setFont() {\n\t}", "public void setFont(Font value) {\r\n this.font = value;\r\n }", "public void setFont(RMFont aFont) { }", "static Font getFont(int style, int size) {\n\t\treturn new Font(\"Monospaced\", style, size);\n\t}", "public void setFont(Font font)\n {\n this.font = font;\n }", "public Font getLabelFont();", "public void setFont(Font newFont) {\n\tfont = newFont;\n }", "abstract Font getFont();", "public Font getFont(\n )\n {return font;}", "public abstract Font getFont();", "public void setLabelFont(Font f);", "public void setFont(Font font) {\n\tthis.font = font;\n }", "public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}", "static PDFont loadFont(PDDocument document) {\n Path fontPath = Paths.get(badgeResourcePath, \"/Bitstream - BankGothic Md BT Medium.ttf\");\n\n try (InputStream stream = new FileInputStream(fontPath.toFile())) {\n return PDType0Font.load(document, stream);\n } catch (IOException ex) {\n log.warn(\"Error, couldn't load font '{}'\", fontPath.toAbsolutePath());\n return PDType1Font.HELVETICA_BOLD;\n }\n }", "public BitmapFont getFont(int style) {\r\n\t\treturn new BitmapFont(this, style);\r\n\t}", "private Font bloodBowlFont() throws FontFormatException, IOException {\r\n String fontFileName = \"/bloodbowl/resources/jblack.ttf\";\r\n return Font.createFont(Font.TRUETYPE_FONT, getClass().getResourceAsStream(fontFileName));\r\n }", "public void GetFontA (){\n fontBolA = false;\n fontBolS = true;\n fontBol = true;\n fontBolW = true;\n }", "public void setFont( Font font ) {\r\n this.font = font;\r\n }", "public void GetFontS (){\n fontBolS = false;\n fontBol = true;\n fontBolA = true;\n fontBolW = true;\n }", "@Override\r\n public void setFont(Font font) {\r\n super.setFont(new Font(\"Arial\", Font.PLAIN, 11)); \r\n }", "private Font getTitleFont() {\n\t\tFont f = lblTitle.getFont();\n\t\tf = f.deriveFont(Font.BOLD, PosUIManager.getTitleFontSize());\n\t\treturn f;\n\t}", "public void setTextFont(Font font)\n {\n setFont(font);\n }", "public void GetFontW (){\n fontBolW = false;\n fontBolS = true;\n fontBolA = true;\n fontBol = true;\n }", "public String getFontName();", "public String getFontName();", "public String getFontName();", "public OneFont(String fontName, int fontHeight, int fontStyle) {\r\n\t\tname = fontName;\r\n\t\theight = fontHeight;\r\n\t\tstyle = fontStyle;\r\n\t\tfont = new Font(Display.getDefault(), fontName, fontHeight, fontStyle);\r\n\t}", "public FontStyle getStyle();", "public Font getFont() {\n\treturn font;\n }", "public Font getFont() {\n\treturn font;\n }", "public static void setFont(String fontName, int fontSize, int style){\n\t\tGComponent.fGlobalFont = new Font(fontName, fontSize, style);\n\t}", "public native void setFont(Font value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.font = [email protected]::getJsObj()();\n }-*/;", "public Font getFont() {\r\n return font;\r\n }", "public Font getFont() {\r\n return font;\r\n }", "Font getFont(int style) {\n\tswitch (style) {\n\t\tcase SWT.BOLD:\n\t\t\tif (boldFont != null) return boldFont;\n\t\t\treturn boldFont = new Font(device, getFontData(style));\n\t\tcase SWT.ITALIC:\n\t\t\tif (italicFont != null) return italicFont;\n\t\t\treturn italicFont = new Font(device, getFontData(style));\n\t\tcase SWT.BOLD | SWT.ITALIC:\n\t\t\tif (boldItalicFont != null) return boldItalicFont;\n\t\t\treturn boldItalicFont = new Font(device, getFontData(style));\n\t\tdefault:\n\t\t\treturn regularFont;\n\t}\n}", "public static void setFont(Font font){\n\t\tGComponent.fGlobalFont = font;\n\t}", "public Font createFont() {\n\t\treturn null;\n\t}", "public void setFont(Font f) {\n font = f;\n compute();\n }", "public void setFont(Font font)\r\n\t{\r\n\t\t_g2.setFont(font);\r\n\t}", "private void loadSystemFont(String font){\n mFont = new Font(font, mFontStyle, (int)mFontSize);\n }", "public static Font getFont(int size) {\n if (size <= 0) {\n return getFont();\n }\n return new Font(\"Comic Sans MS\", Font.PLAIN, size);\n }", "@Override\n public void setFont(String font) {\n graphicsEnvironmentImpl.setFont(canvas, font);\n }", "public Font getFont() {\n return this.font;\n }", "public Font getFont() {\n return font;\n }", "private Typeface getFont() {\n Typeface fontText = Typeface.createFromAsset(SnapziApplication.getContext().getAssets(), \"fonts/GothamHTF-Book.ttf\");\n return fontText;\n }", "void setFontFamily(ReaderFontSelection f);", "private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputStream(FONT_PATH), 23));\n } catch (FileNotFoundException e) {\n setFont(Font.font(\"Verdana\", 23));\n }\n }", "@Override\n public String getFont() {\n return graphicsEnvironmentImpl.getFont(canvas);\n }", "private void loadFont() {\n\t\ttry {\n\t\t\tfont = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(\"assets/fonts/forced_square.ttf\"));\n\t\t} catch (Exception e) {\n\t\t\tfont = new Font(\"Helvetica\", Font.PLAIN, 22);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getFont() {\n return font;\n }", "public static String getFontName() {\n return \"Comic Sans MS\";\n }", "private static void buildFonts() {\r\n fontSMALL = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_SM );\r\n fontMEDIUM = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_MD );\r\n fontLARGE = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_LG );\r\n }", "public Font getFont()\r\n\t{\r\n\t\treturn _g2.getFont();\r\n\t}", "public static HSSFFont getTitleFont(HSSFWorkbook workbook) {\n HSSFFont font = workbook.createFont();\n font.setFontName(FONT_NAME);\n // font.setBoldweight((short) 100);\n // font.setFontHeight((short) 250);\n font.setFontHeightInPoints((short) 10);\n font.setColor(HSSFColor.BLACK.index);\n font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n return font;\n }", "public CanvasFont getFont() {\n return this.textFont;\n }", "FontMatch(FontInfo info) {\n/* 704 */ this.info = info;\n/* */ }", "public RMFont getFont()\n {\n return getStyle().getFont();\n }", "public Font GetFont(String name) { return FontList.get(name); }", "public void setFont( Font font ) {\n\t\tgraphics.setFont( font );\n\t}", "public void saveFont()\r\n\t{\r\n\t\tsavedFont = g.getFont();\r\n\t}", "public Font deriveFont(int style){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "public void setFont(int fontId){\n this.fontId = fontId;\n }", "public native Font getFont() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tvar obj = jso.font;\n\t\treturn @com.emitrom.ti4j.mobile.client.ui.style.Font::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\n }-*/;", "public void fontLoader(){\n try {\n //create the font to use. Specify the size!\n customFont = Font.createFont(Font.TRUETYPE_FONT, new File(\".\\\\resources\\\\DS-DIGI.ttf\")).deriveFont(40f);\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n ge.registerFont(customFont);\n } catch (IOException e) {\n e.printStackTrace();\n } catch(FontFormatException e) {\n e.printStackTrace();\n }\n }", "public void setLabelFont(Font value) {\n labelFont = value;\n }", "public BitmapFont loadBitmapFont(String fileFont, String fileImage);", "private static native Font createFont(String name, GFontPeer peer, int gdkfont);", "public void setFont(Font font) {\n this.font = font;\r\n repaint();\r\n }", "public static Font getFont(String name) {\r\n\t\treturn (Font) getInstance().addResource(name);\r\n\t}", "private java.awt.Font getFont(Feature feature, Font[] fonts) {\n if (fontFamilies == null) {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n fontFamilies = new HashSet();\n \n List f = Arrays.asList(ge.getAvailableFontFamilyNames());\n fontFamilies.addAll(f);\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"there are \" + fontFamilies.size() + \" fonts available\");\n }\n }\n \n java.awt.Font javaFont = null;\n \n int styleCode = 0;\n int size = 6;\n String requestedFont = \"\";\n \n for (int k = 0; k < fonts.length; k++) {\n requestedFont = fonts[k].getFontFamily().getValue(feature).toString();\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"trying to load \" + requestedFont);\n }\n \n if (loadedFonts.containsKey(requestedFont)) {\n javaFont = (java.awt.Font) loadedFonts.get(requestedFont);\n \n String reqStyle = (String) fonts[k].getFontStyle().getValue(feature);\n \n if (fontStyleLookup.containsKey(reqStyle)) {\n styleCode = ((Integer) fontStyleLookup.get(reqStyle)).intValue();\n } else {\n styleCode = java.awt.Font.PLAIN;\n }\n \n String reqWeight = (String) fonts[k].getFontWeight().getValue(feature);\n \n if (reqWeight.equalsIgnoreCase(\"Bold\")) {\n styleCode = styleCode | java.awt.Font.BOLD;\n }\n \n size = ((Number) fonts[k].getFontSize().getValue(feature)).intValue();\n \n return javaFont.deriveFont(styleCode, size);\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"not already loaded\");\n }\n \n if (fontFamilies.contains(requestedFont)) {\n String reqStyle = (String) fonts[k].getFontStyle().getValue(feature);\n \n if (fontStyleLookup.containsKey(reqStyle)) {\n styleCode = ((Integer) fontStyleLookup.get(reqStyle)).intValue();\n } else {\n styleCode = java.awt.Font.PLAIN;\n }\n \n String reqWeight = (String) fonts[k].getFontWeight().getValue(feature);\n \n if (reqWeight.equalsIgnoreCase(\"Bold\")) {\n styleCode = styleCode | java.awt.Font.BOLD;\n }\n \n size = ((Number) fonts[k].getFontSize().getValue(feature)).intValue();\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"requesting \" + requestedFont + \" \" + styleCode + \" \" + size);\n }\n \n javaFont = new java.awt.Font(requestedFont, styleCode, size);\n loadedFonts.put(requestedFont, javaFont);\n \n return javaFont;\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"not a system font\");\n }\n \n // may be its a file or url\n InputStream is = null;\n \n if (requestedFont.startsWith(\"http\") || requestedFont.startsWith(\"file:\")) {\n try {\n URL url = new URL(requestedFont);\n is = url.openStream();\n } catch (MalformedURLException mue) {\n // this may be ok - but we should mention it\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"Bad url in java2drenderer\" + requestedFont + \"\\n\" + mue);\n }\n } catch (IOException ioe) {\n // we'll ignore this for the moment\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"IO error in java2drenderer \" + requestedFont + \"\\n\" + ioe);\n }\n }\n } else {\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"not a URL\");\n }\n \n File file = new File(requestedFont);\n \n //if(file.canRead()){\n try {\n is = new FileInputStream(file);\n } catch (FileNotFoundException fne) {\n // this may be ok - but we should mention it\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"Bad file name in java2drenderer\" + requestedFont + \"\\n\" + fne);\n }\n }\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"about to load\");\n }\n \n if (is == null) {\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"null input stream\");\n }\n \n continue;\n }\n \n try {\n javaFont = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, is);\n } catch (FontFormatException ffe) {\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"Font format error in java2drender \" + requestedFont + \"\\n\" + ffe);\n }\n \n continue;\n } catch (IOException ioe) {\n // we'll ignore this for the moment\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"IO error in java2drenderer \" + requestedFont + \"\\n\" + ioe);\n }\n \n continue;\n }\n \n loadedFonts.put(requestedFont, javaFont);\n \n return javaFont;\n }\n \n return null;\n }", "@SuppressWarnings(\"unchecked\")\n public TF addFont() {\n final ParameterizedType pt = (ParameterizedType) getClass()\n .getGenericSuperclass();\n final ParameterizedType paramType = (ParameterizedType) pt\n .getActualTypeArguments()[2];\n final Class<TF> fontClass = (Class<TF>) paramType.getRawType();\n try {\n final Constructor<TF> c = fontClass\n .getDeclaredConstructor(ACellStyle.class);\n return c.newInstance(this);\n }\n catch (final Exception e) {\n throw new ReportBuilderException(e);\n }\n }", "public Font getFont() {\n\t\treturn f;\n\t}", "public Font getFont(String family, int style, float size, float dpi)\n\t{\n\t\tfloat scale = dpi/72.0f;\n\t\treturn FontUtil.newFont(family, style, scale*size);\n\t}", "private JLabel makeText(String text, Font font) {\n JLabel label = new JLabel(text, JLabel.CENTER);\n label.setFont(font);\n label.setForeground(RRConstants.BORDER_COLOR);\n return label;\n }", "public void setFont(Font font)\n{\n\ttextArea().setFont(font);\n}", "public Font modify(Font font) {\n\t\tif (family == null) {\n\t\t\tif (style != null && size != null) {\n\t\t\t\treturn font.deriveFont(style, size);\n\t\t\t}\n\t\t\telse if (style != null) {\n\t\t\t\treturn font.deriveFont(style);\n\t\t\t}\n\t\t\treturn font.deriveFont((float) size);\n\t\t}\n\t\tint newStyle = style != null ? style : font.getStyle();\n\t\tint newSize = size != null ? size : font.getSize();\n\t\treturn new Font(family, newStyle, newSize);\n\t}", "public Font deriveFont(float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }", "public static HSSFFont getHeaderFont(HSSFWorkbook workbook) {\n HSSFFont font = workbook.createFont();\n font.setFontName(FONT_NAME);\n font.setBoldweight((short) 100);\n font.setFontHeight((short) 250);\n // font.setColor(HSSFColor.BLACK.index);\n font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n return font;\n }", "public FontMenuItem(String font) {\r\n super(font, ICON);\r\n\r\n mFont = new Font(font, Font.PLAIN, ModernWidget.FONT.getSize());\r\n }", "public DisplayText (GraphicsContext gc, Canvas gameCanvas, int size) {\n\t\tthis.gc = gc;\n\t\tthis.gameCanvas = gameCanvas;\n\t\t\n\t\t vector = Font.loadFont(getClass().getResourceAsStream(\"/fonts/Vectorb.ttf\"), size); //load my custom font at the specified size \n\t}", "public String getMyFont() {\n return myFont.font; /*Fault:: return \"xx\"; */\n }", "public void setFont(Font newFont, Timing delay, Timing duration) {\r\n\t\tif (gen instanceof AdvancedTextGeneratorInterface)\r\n\t\t\t((AdvancedTextGeneratorInterface)gen).setFont(this, newFont, \r\n\t\t\t\t\tdelay, duration);\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException(\"gen is not an AdvancedTextGeneratorInterface -- \" +gen);\r\n\r\n\t}", "@Test\n public void Test_Output_Font() throws Exception {\n String actual_value = \"\";\n String expected_value = \"1 0 obj \\n<< \\n/ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] \\n\";\n expected_value += \"/Font \\n<< \\n/F2 \\n<< \\n/Type /Font \\n/BaseFont /Helvetica \\n/SubType /Type1 \\n\";\n expected_value += \">> \\n>> \\n>> \\n\";\n\n PdfResource resrc = new PdfResource();\n resrc.addFont(new PdfFont(PdfFont.HELVETICA, false, false));\n actual_value = new String(resrc.dumpInfo());\n \n assertThat(actual_value, equalTo(expected_value));\n }", "public void setFont(String font) {\r\n\t\tProps p = getPage().getPageProperties();\r\n\t\t_fontTagStart = p.getProperty(font + Props.TAG_START);\r\n\t\t_fontTagEnd = p.getProperty(font + Props.TAG_END);\r\n\t}", "public static void setDefaultFont(Font f) {\r\n defaultFont = f;\r\n }", "public Font(String name, int style, int size) {\n\tthis.name = (name != null) ? name : \"Default\";\n\tthis.style = (style & ~0x03) == 0 ? style : 0;\n\tthis.size = size;\n this.pointSize = size;\n }", "public Font getFont() {\r\n if (font==null)\r\n return getDesktop().getDefaultFont();\r\n else\r\n return font;\r\n }", "private static native boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex,\n int weight, int isItalic);", "public Font deriveFont(int style, float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }", "public void changeFonts(){\n Typeface typeFace = Typeface.createFromAsset (this.getAssets (), \"fonts/courier.ttf\");\n sloganTV.setTypeface (typeFace);\n }" ]
[ "0.79841197", "0.7908574", "0.78664994", "0.729463", "0.72343135", "0.7218447", "0.7202288", "0.71332663", "0.71214694", "0.71179885", "0.70922273", "0.7046987", "0.70468765", "0.70255435", "0.70226395", "0.6976973", "0.69654965", "0.69527316", "0.6922916", "0.691798", "0.6896378", "0.68850535", "0.6870833", "0.68268967", "0.6765521", "0.6756372", "0.6742034", "0.67213297", "0.6701686", "0.66749936", "0.6661997", "0.66465497", "0.6643996", "0.6624428", "0.6624428", "0.6624428", "0.6611432", "0.660158", "0.65584654", "0.65584654", "0.65453976", "0.65361005", "0.6534065", "0.6534065", "0.65339875", "0.65336174", "0.6531648", "0.6530167", "0.65053135", "0.64945084", "0.6487057", "0.64807165", "0.64800787", "0.64669174", "0.6466785", "0.6456491", "0.64500624", "0.6438449", "0.6421602", "0.6418143", "0.6408109", "0.6350905", "0.6341908", "0.6340522", "0.6335799", "0.6332503", "0.63228184", "0.63200766", "0.6318309", "0.62961686", "0.6287363", "0.62584406", "0.62538105", "0.62466663", "0.6241511", "0.6233453", "0.62277305", "0.6223184", "0.6212691", "0.6202964", "0.6184865", "0.61831903", "0.6144442", "0.6137527", "0.6129529", "0.61198443", "0.6118402", "0.6107141", "0.6105537", "0.6101544", "0.60981774", "0.6089405", "0.60852534", "0.6066315", "0.6065784", "0.6055887", "0.6055193", "0.60546327", "0.60521626", "0.6049258", "0.6040113" ]
0.0
-1
Handler qui va ouvrir la page d'ajout
public void ajouHandler(ActionEvent event) throws Exception { String id= new String(); for (Button bouton : list_bouton) { if(event.getSource()==bouton) { bouton.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent arg0) { try { aj = new Ajouter(); ((Node) event.getSource()).getScene().getWindow().hide(); } catch (Exception e) {e.printStackTrace();} }}); ChoixControler.selectedDomaine=bouton.getId(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewcommunityPage submitKo() {\n driver.findElement(nextLocator).click();\r\n\r\n // Return a new page object representing the destination. Should the login page ever\r\n // go somewhere else (for example, a legal disclaimer) then changing the method signature\r\n // for this method will mean that all tests that rely on this behaviour won't compile.\r\n return new NewcommunityPage(driver); \r\n\t}", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(getContext(), Detalles.class);\n // Enlace a la web de la noticia\n intent.putExtra(\"Enlace\", direccionDesarrollador);\n startActivity(intent);\n }", "public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }", "private void doArticlePage(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String slug = request.getParameter(\"slug\");\n \n if(slug == null || slug.isEmpty()) {\n error(\"Requête incorrecte\", request, response);\n return;\n }\n \n Article a;\n SessionModel sessionMdl = (SessionModel) request.getAttribute(\"session\");\n\n try {\n a = ArticlesModel.get(slug);\n \n if(a == null)\n throw new Exception(\"Article inconnu.\");\n \n if(!a.isValid())\n throw new Exception(\"Cet article n'est pas valide.\");\n } catch(Exception e) {\n error(e.getMessage(), request, response);\n return;\n }\n\n /* formulaire d'ajout de commentaire */\n Form form = new Form();\n\n if(!sessionMdl.isLoggedIn()) {\n // Nom\n form.add(new TextField(\"nom\").setLabel(\"Nom\").setValue(sessionMdl.getName()));\n // mail\n form.add(new EmailField(\"mail\").setLabel(\"Mail\").setValue(sessionMdl.getMail()));\n }\n \n // commentaire\n form.add(\n new TextArea(\"comment\")\n .cols(\"50%\")\n .rows(\"4\")\n .setLabel(\"Commentaire\")\n );\n form.add(new SubmitButton(\"Envoyer\"));\n\n /* Traitement du formulaire */\n if(request.getAttribute(\"HTTP_METHOD\").equals(\"POST\")) {\n form.bind(request);\n\n if(form.isValid()) {\n Comment c = new Comment();\n \n if(sessionMdl.isLoggedIn()) {\n c.setAuthor(sessionMdl.getCurrentUser().getDisplayName());\n c.setMail(sessionMdl.getCurrentUser().getMail());\n } else {\n c.setAuthor(request.getParameter(\"nom\"));\n c.setMail(request.getParameter(\"mail\"));\n \n sessionMdl.saveName(request.getParameter(\"nom\"));\n sessionMdl.saveMail(request.getParameter(\"mail\"));\n }\n \n c.setContent(request.getParameter(\"comment\"));\n c.setaID(a.getId());\n c.setValid(true);\n c.setDate(new Date());\n \n try {\n CommentsModel.saveNew(a, c);\n } catch (Exception ex) {\n error(\"Impossible d'enregistrer le commentaire : \"+ex.getMessage(), request, response);\n return;\n }\n \n redirect(\"./article/\"+a.getSlug(), \"Commentaire enregistré\", request, response);\n return;\n }\n }\n\n request.setAttribute(\"form\", form);\n request.setAttribute(\"article\", a);\n request.setAttribute(\"PAGE_TITLE\", a.getTitle());\n request.setAttribute(\"SHOW_BBCODE_JS\", true);\n\n forward(JSP.ARTICLE, request, response);\n }", "public void actionPerformed(ActionEvent e)\r\n\t\t{\n\t\t\tif(true)\r\n\t\t\t{\r\n\t\t\t\tUser u ;\r\n\t\t\t\tu = DataBase.findUser(mail.getText());\r\n\t\t\t\tnew Home_Page(u);\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n\t\t\t\t\r\n=======\r\n\t\t\t\tframe.setVisible(false);\r\n>>>>>>> refs/remotes/origin/master\r\n\t\t\t}\t\r\n\r\n\t\t}\r\n\t }", "@Override\n public void onSubmit()\n {\n Page page = ((DccdSession)Session.get()).getRedirectPage(RegistrationPage.class);\n if (page != null)\n {\n \tlogger.debug(\"Back to Page class: \" + page.getClass().getSimpleName());\n \tsetResponsePage(page);\n }\n else\n {\n \t// Homepage seems a good fallback\n \tsetResponsePage(HomePage.class);\n }\n }", "public void sol_historiasolicitud(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"sol_historialsolicitud.xhtml\");\n }\n catch(Exception e){\n System.out.println(\"Error: \"+e);\n }\n }", "@Override\r\n\tpublic void one(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"/admin/xiaoshuoedit.jsp\";\r\n\t\tsuper.one(request, response);\r\n\t}", "public void onAddByWebSitePressed( ) {\n Router.Instance().changeView(Router.Views.AddFromWebSite);\n }", "public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}", "public void nuevaEquiparacion() throws ExceptionConnection {\n FacesContext context = FacesContext.getCurrentInstance();\n try {\n\n context.getExternalContext().redirect(context.getExternalContext().getRequestContextPath() + \"/faces/paginas/Equiparaciones.xhtml\");\n } catch (IOException ex) {\n Logger.getLogger(ListaEquiparacionesController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tString writer=request.getParameter(\"writer\").trim();\r\n\t\tString title=request.getParameter(\"title\").trim();\r\n\t\tString content=request.getParameter(\"content\").trim();\r\n\t\tString pwd=request.getParameter(\"pwd\").trim();\r\n\t\t\r\n\t\tBoardDTO dto = new BoardDTO();\r\n\t\tdto.setBoard_writer(writer);\r\n\t\tdto.setBoard_title(title);\r\n\t\tdto.setBoard_cont(content);\r\n\t\tdto.setBoard_pwd(pwd);\r\n\t\t\r\n\t\tBoardDAO dao = BoardDAO.getInstance();\r\n\t\tint res =dao.boardWrite(dto);\r\n\t\t\r\n\t\tPrintWriter out = response.getWriter();\r\n\t\tif(res == 1) {\r\n\t\t\tout.println(\"<script>\");\r\n\t\t\tout.println(\"alert('글쓰기 성공')\");\r\n\t\t\tout.println(\"location.href='board_list.do'\");\r\n\t\t\tout.println(\"</script>\");\r\n\t\t}else {\r\n\t\t\tout.println(\"<script>\");\r\n\t\t\tout.println(\"alert('글쓰기 실패')\");\r\n\t\t\tout.println(\"history.back()\");\r\n\t\t\tout.println(\"</script>\");\r\n\t\t}\r\n\t\t\t\t\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String titre = request.getParameter(\"titre\");\n String texte = request.getParameter(\"texte\");\n String action = request.getParameter(\"action\");\n String jspPage =\"index.jsp\";\n String message =\"\";\n boolean isAdded =false;\n \n if ((action == null) || (action.length() < 1)) {\n action = \"retour\";\n } \n if (\"ajouter\".equalsIgnoreCase(action)) {\n if(\"\".equals(titre) || \"\".equals(texte) && titre ==null && texte ==null){\n message=\"le titre et le texte ne doivent pas etre vide\";\n jspPage =\"index.jsp\";\n }else{\n isAdded = tools.addArticle(titre, texte);\n if (isAdded){\n message=\"Votre article a ete bien ajoute !\";\n jspPage =\"result.jsp\";\n }else{\n message=\"Votre article n est pas pu bien ajoute \";\n jspPage =\"index.jsp\";\n }\n }\n request.setAttribute(\"message\", message);\n request.setAttribute(\"titre\", titre);\n request.setAttribute(\"texte\", texte);\n request.setAttribute(\"isAdded\", isAdded);\n }else{\n jspPage =\"index.jsp\";\n }\n dispatch(jspPage, request, response);\n \n }", "public void action() {\n\t\t\n\t\tjugar.setOnAction(f->{\n\n\t\t\tMain.pantallaPersonaje();\n\t\t});\n\t\n\t\tpuntajes.setOnAction(f->{\n\t\t\tMain.pantallaPuntajes();\n\t\t});\n\t\n\t\n\t}", "public WriteAReviewPage goToWriteAReviewPage(){\n return clickOnStartHereButton();\n }", "private void goToDoctors() {\n\n Intent intent = new Intent(this, DoctorsActivity.class);\n intent.putExtra(EXTRA_EMAIL, email);\n startActivity(intent);\n\n }", "@When(\"^the user open the Parabank Registration page$\")\r\n\tpublic void the_user_open_the_Parabank_Registration_page() throws Throwable {\n\t getUrl();\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEnviarMailVisMed mail = new EnviarMailVisMed();\r\n\t\t\t\tmail.setVisible(true);\r\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n Intent share=new Intent(android.content.Intent.ACTION_SEND);\n\n share.setType(\"text/plain\");\n share.putExtra(android.content.Intent.EXTRA_SUBJECT,news.getTitle());\n share.putExtra(android.content.Intent.EXTRA_TEXT,\"Follow the link : \"+MainActivity.base_url+news.getAbsolute_url()+\" to read more\");\n startActivity(Intent.createChooser(share,\"Share via\"));\n\t\t\t\t\t\t}", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL + \"support\");\r\n }", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }", "public void notifyPage(Webpage page, Weblink link);", "@Step\n public void clickContactUsPage(){\n contactusPages.clickContactUsPage();\n }", "@Override\n public void onClick(View view)\n {\n Intent sendIntent = new Intent();\n // La accion es un envio a una aplicacion externa\n sendIntent.setAction(Intent.ACTION_SEND);\n // Enlace que vamos a enviar\n sendIntent.putExtra(Intent.EXTRA_TEXT, direccionAplicacion);\n // Se va a enviar un texto plano\n sendIntent.setType(\"text/plain\");\n\n // manda mensaje si no tiene aplicacion con la que compartir en el sistema\n Intent shareIntent = Intent.createChooser(sendIntent, \"no tengo aplicacion para compartir en emulador\");\n // Inicia la actividad compartir enlace de la noticia\n getContext().startActivity(shareIntent);\n }", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tConfirmDialog.show(UI.getCurrent(), MESSAGE_1,\"\",\"Aceptar\",\"Crear mas Usuarios\",\n\t\t\t\t new ConfirmDialog.Listener() {\n\n\t\t\t\t public void onClose(ConfirmDialog dialog) {\t\n\t\t\t\t \tent= false;\n\t\t\t\t if (dialog.isConfirmed()) {\n\t\t\t\t // Confirmed to continue\t\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t } else {\n\t\t\t\t // User did not confirm\t\t\t \n\t\t\t\t \t//c.crearWindow(RegistrarUser.VIEW_NAME);\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t });\n\t\t\t\t\n\t\t\t\t//Notification nota= new Notification(\"Registro Exitoso!\",Notification.Type.HUMANIZED_MESSAGE);\n\t\t\t\t//nota.setDelayMsec(-1);\n\t\t\t\t//nota.show(Page.getCurrent());\t\n\t\t\t\t\n\t\t\t\tclose();\t\t\t\n\t\t\t}", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\tif (verifier()){\r\n\t\t\tvue.ajouterJoueur();\r\n\t\t\tJOptionPane.showMessageDialog(vue,\"Joueur ajouté !\");\r\n\t\t}\r\n\r\n\t}", "public void sol_nuevasolicitud(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"sol_nuevasolicitud.xhtml\");\n }\n catch(Exception e){\n System.out.println(\"Error: \"+e);\n }\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }", "public void orderSummaryPage(View v){\n\n String order = gatherOrder(v);\n\n Intent redirect = new Intent(this, SummaryActivity.class);\n redirect.putExtra(EXTRA_MESSAGE,order);\n startActivity(redirect);\n }", "NewAccountPage openNewAccountPage();", "@Override\n public void userPageViewConcerts() {\n Intent intent = new Intent(userPageModel.this, viewConcertsPageModel.class);\n startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void onClickOk() {\n\t\t\t\t\tnew BrowserWebsiteAsyncTask().execute(url,Boolean.FALSE.toString());\n\t\t\t\t}", "public void comprobarEficaciaAccion() throws IOException{\n if((fVerif.SetVerificacionEficaciaAccion(FechaComprobacionEficacia, ObservacionesEficacia, ComprobacionSeleccionadaEficacia, AccionSeleccionada.getId()))== -1){\n FacesContext.getCurrentInstance().addMessage(\"form_seguimiento_accion:btn_comprobar_eficacia\", new FacesMessage(SEVERITY_FATAL, \"No se pudo comprobar eficacia\", \"No se pudo comprobar eficacia\" ));\n FacesContext.getCurrentInstance().renderResponse();\n }else{\n // regresar a la pagina listar acciones\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "private String prepareAndReturnEditPage(Model model) {\n this.populateDentistVisitFormModel(model);\n return \"editForm\";\n }", "@FXML void pagoEfectivo(ActionEvent event) {\n pago.ejecutarPago(envio, \"Efectivo\");\n SpecificAlerts.showPagoExitoso();\n goBack();\n }", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Envoyer un mail au support\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_SendMail();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void ClickCommissionInformationPage() {\r\n\t\tcommissioninfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Commission Information\\\" button on the Birthdays page\");\r\n\t}", "private void cadastrarUsuario(HttpServletRequest request, HttpServletResponse response) {\n\t\t\r\n\t}", "@Override\n public void onClick(View view) {\n Intent i = new Intent(view.getContext(), EditProfil.class);\n i.putExtra(\"fullName\", nameTextView.getText().toString());\n i.putExtra(\"email\", emailTextView.getText().toString());\n i.putExtra(\"phone\",phoneTextView.getText().toString());\n startActivity(i);\n }", "private void OpenInviteConfirmPage() throws IOException {\n\t\t// TODO Auto-generated method stub\n//\t\tBorderPane borderPane = null;\n//\t\tFXMLLoader loader = new FXMLLoader();\n//\t\tStage primaryStage = new Stage();\n\t\t// Pane root =\n\t\tFXMLLoader loader ;\n\t\t// loader.load(getClass().getResource(\"../fxmlFiles/HomePageForEmployee.fxml\").openStream());\n \tNextStages nextStages = new NextStages(\"/fxmlFiles/PaymentPage.fxml\", \"Payment Page\", m_userID);\n \tloader = nextStages.goToNextStage(m_event);\n//\t\tloader.setLocation(getClass().getResource(\"../fxmlFiles/PaymentPage.fxml\"));\n//\t\tborderPane = loader.load();\n\t\tPaymentPageController paymentPageController = loader.getController();\n\t\tpaymentPageController.setDetails(m_fName, m_lName, m_role, m_userID, m_parkName);\n\t\tinvite.remove(0);\n\n\t\tpaymentPageController.setOrderDetails(invite, ChatClient.dataInArrayList.get(0));\n\t\tpaymentPageController.setPreviousPage(m_event);\n\t\tpaymentPageController.setMainPage(m_eventMain);\n\t\tpaymentPageController.setOrderDetails(m_orderDetails);\n\t\tpaymentPageController.setOccasional(m_occasional);\n//\t\tScene scene = new Scene(borderPane);\n//\t\tprimaryStage.setTitle(\"Home Page\");\n//\t\tprimaryStage.setScene(scene);\n//\t\tprimaryStage.setOnCloseRequest(evt -> {\n//\t\t\tif (ClientMain.chat.checkConnection()) {\n//\t\t\t\tArrayList<String> arr = new ArrayList<String>();\n//\t\t\t\tarr.add(\"closeAndSetIdNull\");\n//\t\t\t\tarr.add(m_userID);\n//\t\t\t\tClientMain.chat.accept(arr);\n//\t\t\t\tClientMain.chat.stopConnection();\n//\t\t\t}\n//\t\t});\n//\t\t((Node) m_event.getSource()).getScene().getWindow().hide();\n//\t\tprimaryStage.show();\n\n\t}", "public boolean onLinkClick() {\n for (int t = 0; t < data.size(); t++) {\n if (data.get(t).getActionLink().isClicked()) {\n Cuenta ref = data.get(t);\n List<Cuenta> newData = new LinkedList<Cuenta>();\n List<Cuenta> createQuery = DAO.createQuery(Cuenta.class, null);\n if (ref.getRef() == null || ref.getRef().equals(\"\")) {\n newData.add(ref);\n } else {\n String[] split = ref.getRef().split(\",\");\n for (String sp : split) {\n for (Cuenta c : createQuery) {\n if (c.getIdCuenta().toString().equals(sp)) {\n newData.add(c);\n }\n }\n }\n }\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n newContext();\n setTitle(ref.getDescripcion());\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"data\", new Variable(\"data\", newData, List.class), true);\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n setRedirect(TablePage.class);\n return true;\n }\n }\n return true;\n }", "public void onClick()\n\t\t\t{\n\t\t\t\t((DccdSession)Session.get()).setRedirectPage(SearchResultDownloadPage.class, getPage());\n\t\t\t\tsetResponsePage(new SearchResultDownloadPage((SearchModel) SearchResultsDownloadPanel.this.getDefaultModel(), \n\t\t\t\t\t\t(DccdSearchResultPanel) callingPanel));\n\t\t\t}", "@Override\n public void onClick(View arg0) {\n Intent email = new Intent(getApplicationContext(), email.class);\n startActivity(email);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). rechercheAuteur() ;}", "public void accederClick(View view){\n //Declarar activity web\n Intent i = new Intent(this, ActivityWeb.class);\n\n //Enviar url a la activity web\n i.putExtra(\"url\", etUrlM.getText().toString());\n\n //Cargar Activity\n startActivity(i);\n }", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "@Override\n\tpublic String handlerRequest(HttpRequest req, HttpResponse res) {\n\t\treturn \"board_list.jsp\";\n\t}", "private void contactUs() {\n }", "public String processHomePage() {\n return \"success\";\n }", "public void ClickNotesAndMessagesPage() {\r\n\t\tnotesandmessages.click();\r\n\t\t\tLog(\"Clicked the \\\"Notes and Messages\\\" button on the Birthdays page\");\r\n\t}", "@Override\n public void buttonClick(ClickEvent event) {\n \n \ttry {\n\t\t\t\t\tUI.getCurrent().getNavigator().addView(_nombreSeccion + \"Adm/\" + _titulo.getCaption(), new AdministradorClase(new Lista_Mensaje_V_Administrador(it.getIdTema())));\n\t\t\t\t} catch (PersistentException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(_nombreSeccion+ \"Adm/\" + _titulo.getCaption());\n \t\n \t\n }", "@Override\n public void onClick(View view) {\n Post info_post = ControladoraPresentacio.getpost_perName(view.getContentDescription().toString());\n ControladoraPosts.settitle(info_post.getTitle());\n ControladoraPosts.setDescripcion(info_post.getDescription());\n ControladoraPosts.setuser(info_post.getUser());\n ControladoraPosts.setid(info_post.getId());\n ControladoraPosts.setdate(info_post.getTime());\n //Nos vamos a la ventana de VisualizeListOUser\n Intent intent = new Intent(PersonalPosts.this, VisualizePosts.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n //finish();\n }", "public void ClickAboutUs(View view){\n redirectActivity(this,AboutUs.class);\n }", "@RequestMapping(value = \"/about\")\n\tpublic String mostrarAcerca() {\t\t\t\n\t\treturn \"acerca\";\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // get the content from parameter\n String content = request.getParameter(\"content\");\n String paramId = request.getParameter(\"id\");\n boolean paramError = true;\n int id = -1;\n try {\n if (content != null && paramId != null && !content.isEmpty() && !paramId.isEmpty()) {\n paramError = false;\n id = Integer.valueOf(paramId);\n }\n } catch (NumberFormatException ex) {\n\n }\n if (paramError) {\n response.sendRedirect(request.getRequestURI());\n return;\n }\n\n // get current signed in user\n User user = (User) request.getAttribute(\"user\");\n if (user == null) {\n // redirect to sign in page\n response.sendRedirect(request.getContextPath() + \"/signin\");\n return;\n }\n\n // add answer via web service\n StackExchange port = service.getStackExchangePort();\n Answer answer = port.addAnswer(id, user.getId(), content);\n if (answer == null)\n request.setAttribute(\"error\", \"Failed to post answer\");\n\n // get the page\n doGet(request, response);\n }", "@Override\n public void onClick(View view) {\n Intent replyMailIntent = new Intent(\n EmailViewerActivity.this, MailEditorActivity.class);\n // Put message ID that this activity receive from InboxActivity\n replyMailIntent.putExtra(MailEditorActivity.KEY_REPLY,\n getIntent().getExtras().getInt(KEY_EXTRA));\n // Start the reply activity when this button is clicked\n startActivity(replyMailIntent);\n }", "protected void agregarUbicacion(){\n\n\n\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\r\n\t\t\tcase R.id.topic_title_content_head_layout:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.topic_reply_commit_bt:\r\n\t\t\t\tcommitReply();\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.gardentopicreply_back:\r\n\r\n\t\t\t\tfinish();\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). ConsultOuvrage() ;}", "@Override\n\tpublic void goToUIPrestamo() {\n\t\tif(uiHomePrestamo!=null){\n\t\t\tif(!uiHomePrestamo.getModo().equals(\"HISTORIAL\")){\n\t\t\t\tuiHomePrestamo.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\t}\t\t\n\t\t\tuiHomePrestamo.getContainer().showWidget(0);\n\t\t\tuiHomePrestamo.getUIPrestamoImpl().cargarTabla();\n\t\t}else if(uiHomeCobranza!=null){\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\tuiHomeCobranza.getContainer().showWidget(1);\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().cargarPrestamoGestorCobranza();\n\t\t}\n\t\t\t\t\t\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n request.setAttribute(\"pageTitle\", \"Accueil\");\n\n if (new SessionChecker(request).isConnected()) {\n //Si l'utilisateur est conncecté on affiche la page \"Emprunter\"\n response.sendRedirect(\"/loan\");\n } else {\n //Sinon on afficjhe la page de connexion\n response.sendRedirect(\"/login\");\n }\n }", "@SuppressWarnings(\"unlikely-arg-type\")\r\n\t@Override\r\n\tpublic void handle(HttpExchange he) throws IOException {\n\t\t\r\n\t\tif(\"0:0:0:0:0:0:0:1\".equals(he.getLocalAddress().getHostName())) { //esta pagina es para el servidor\r\n\t\t\t\r\n\t\tString cad=\"<input type=\\\"button\\\" value=\\\"CLICK\\\" onclick=\\\"window.location.href='/descarga\"+OpenFileDialog.ext+\"'\\\">\";\r\n\r\n\t\tString response=\t\t\t\r\n\t\t\t\"<!DOCTYPE html>\"+\r\n \t\t\"<html>\"+\r\n \t\t\"<body>\"+\r\n \t\t\r\n \t\t\"<h1> Direccion IP </h1>\" + \r\n \t\t\"<h2>\" + new Host().daDireccioIP()+\":\"+ Prueba10.puerto +\"</h2>\"+\r\n \t\t\r\n\t\t\t\"<p>Click para cargar direccion</p>\" + \r\n\t\t\t\"<form method=\\\"get\\\">\" + \r\n\t\t\t\"<input type=\\\"button\\\" value=\\\"CLICK\\\" onclick=\\\"window.location.href='/openFileDialog'\\\">\" + \r\n\t\t\t\"</form>\"+\t\t\r\n\t\t\t\"<h4>\" + OpenFileDialog.ruta + \"</h4>\" +\r\n\t\t\t\r\n\t\t\t\"<p>Click para Descargar</p>\" + \r\n\t\t\t\"<form method=\\\"get\\\">\" + \r\n\t\t\tcad + \r\n\t\t\t\"</form>\"+\r\n \r\n\t\t\t\"<p>Click para apagar</p>\" + \r\n\t\t\t\"<form method=\\\"get\\\">\" + \r\n\t\t\t\"<input type=\\\"button\\\" value=\\\"CLICK\\\" onclick=\\\"window.location.href='/apagado'\\\">\" + \r\n\t\t\t\"</form>\"+\r\n\t\t\t\t\t\t\t\r\n\t\t\t\"</body>\"+\r\n\t\t\t\"</html>\"\r\n\t\t\t;\r\n\t\t\r\n\t\the.sendResponseHeaders(200, response.length()); \r\n\t\tOutputStream outputStream = he.getResponseBody();\r\n\t\toutputStream.write(response.getBytes());\r\n\t\toutputStream.close();\r\n\t\t\r\n\t\t}else {//esta pagina es para el cliente, el cual solo puede descargar archivos\r\n\t\t\t\r\n\t\t\tString cad=\"<input type=\\\"button\\\" value=\\\"CLICK\\\" onclick=\\\"window.location.href='/descarga\"+OpenFileDialog.ext+\"'\\\">\";\r\n\r\n\t\t\tString response=\t\t\t\r\n\t\t\t\t\"<!DOCTYPE html>\"+\r\n\t \t\t\"<html>\"+\r\n\t \t\t\"<body>\"+\r\n\r\n\t\t\t\t\"<p>Click para Descargar</p>\" + \r\n\t\t\t\t\"<form method=\\\"get\\\">\" + \r\n\t\t\t\tcad + \r\n\t\t\t\t\"</form>\"+\r\n\t\t\t\t\r\n \t\t\t\"<h1> Archivo </h1>\" + \r\n \t\t\t\"<h2>\" + OpenFileDialog.nombreArch + \"</h2>\"+\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\"</body>\"+\r\n\t\t\t\t\"</html>\"\r\n\t\t\t\t;\r\n\t\t\t\r\n\t\t\the.sendResponseHeaders(200, response.length()); \r\n\t\t\tOutputStream outputStream = he.getResponseBody();\r\n\t\t\toutputStream.write(response.getBytes());\r\n\t\t\toutputStream.close();\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tAddNotificationWizard wizard = new AddNotificationWizard(humanInteractions,notificationPage,domain,notficationViewer);\n\t\t\t\tWizardDialog wizardDialog = new WizardDialog(Display .getCurrent().getActiveShell(),wizard);\n\t\t\t\twizardDialog.create(); \n\t\t\t\twizardDialog.open();\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onResponse(BaseBean arg0) {\n\t\t\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\t\tif (\"1\".equals(arg0.getCode())) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSharePerfUtil.saveLinkMan(edt_name.getText().toString());\n//\t\t\t\t\t\t\t\tSharePerfUtil.savePersonHead(url)\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this, \"暂无数据!\",\n\t\t\t\t\t\t\t\t\t1000).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }", "public void comprobarImplementacionAccion() throws IOException{\n if((fVerif.SetComprobacionImplementacionAccion(FechaComprobacionImplementacion, ObservacionesImplementacion, ComprobacionSeleccionadaImplementacion, AccionSeleccionada.getId()))== -1){\n FacesContext.getCurrentInstance().addMessage(\"form_seguimiento_accion:btn_comprobar_implementacion\", new FacesMessage(SEVERITY_FATAL, \"No se pudo comprobar implementacion\", \"No se pudo comprobar implementacion\" ));\n FacesContext.getCurrentInstance().renderResponse();\n }else{\n // regresar a la pagina listar acciones\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "@Override\n public void onClick(View v) {\n \n switch (v.getId()) {\n case R.id.sendBtn:\n //Log.d(\"XXX\", \"SEND BTN\");\n if (validateFields() == false) {\n // mostro avviso errore\n CharSequence text = \"Per favore completa i campi richiesti correttamente\";\n Toast toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);\n toast.show();\n }\n else {\n sendRequestToServer();\n }\n break;\n case R.id.surname:\n // Log.d(\"XXX\", \"COGNOME EDIT TEXT\");\n break;\n case R.id.email:\n break;\n case R.id.tel:\n break;\n default:\n break;\n }\n \n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tnew AlertDialog.Builder(Portal.this)\n\t\t\t\t.setTitle(R.string.about_me)\n\t\t\t\t.setMessage(R.string.about_me_message)\n\t\t\t\t.setNeutralButton(R.string.close, new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.show();\n\t\t\t}", "public void cot_nuevacotizacion(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"cot_nuevacotizacion.xhtml\");\n }\n catch(Exception e ){\n System.out.println(\"Error: \"+e);\n }\n }", "private void mostrarNovoForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"usuario-form.jsp\");\n\t\tdispatcher.forward(request, response);\n\t\t\n\t}", "public abstract String redirectTo();", "@Override\n public void onClick(View view) {\n Intent i = new Intent(getBaseContext(), DebateWriteCommentActivity.class);\n startActivity(i);\n }", "private void inicialize() {\n\t\t\n\t\t/**\n\t\t * Labels e textField of the page:\n\t\t * Nome\n\t\t * Descrição\n\t\t */\n\n\t\tJLabel lblNome = new JLabel(\"Nome\");\n\t\tlblNome.setBounds(5, 48, 86, 28);\n\t\tlblNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblNome);\n\t\t\n\t\tJLabel lblDescricao = new JLabel(\"Descrição\");\n\t\tlblDescricao.setBounds(5, 117, 86, 51);\n\t\tlblDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblDescricao);\n\t\t\n\t\ttextFieldNome = new JTextField();\n\t\ttextFieldNome.setBounds(103, 45, 290, 35);\n\t\ttextFieldNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldNome.setColumns(10);\n\t\tcontentPanel.add(textFieldNome);\n\t\t\n\t\ttextFieldDescricao = new JTextArea();\n\t\ttextFieldDescricao.setBackground(Color.WHITE);\n\t\ttextFieldDescricao.setLineWrap(true);\n\t\ttextFieldDescricao.setBounds(101, 118, 290, 193);\n\t\ttextFieldDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldDescricao.setColumns(10);\n\t\tcontentPanel.add(textFieldDescricao);\n\n\t\t/**\n\t\t * Confirmation panel\n\t\t * Confirmation button\n\t\t * Cancellation button\n\t\t */\n\n\t\tpainelConfirmacaoSetup();\n\t}", "@Override\n\tvoid postarComentario() {\n\n\t}", "@Override\r\n\tpublic String executa(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn \"view/home.html\";\r\n\t}", "void envoiReponseSansDonnees(HttpServletResponse reponse);", "public void ClickPartnerInformationPage() {\r\n\t\tpartnerinfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Partner Information\\\" button on the Birthdays page\");\r\n\t}", "@FXML void pagoCredito(ActionEvent event) {\n pagar(CREDITO);\n }", "public static void goToFormPage() throws MalformedURLException {\n\t\tCommonUtils.homeFabClick();\n\t\tHomepageAction.select_dialog_list(\"Form\");\n\t}", "public void viewHandler(View v) {\n LinearLayout vwParentRow = (LinearLayout)v.getParent();\n TextView id =(TextView) vwParentRow.findViewById(R.id._id);\n Intent intent = new Intent(Hates.this, Formulario.class);\n\n intent.putExtra(C_MODO, C_VISUALIZAR);\n intent.putExtra(mDbHelper.ID, Long.valueOf((String)id.getText()));\n\n\n this.startActivityForResult(intent, C_VISUALIZAR);\n }", "@Override\n public void onClick(View view) {\n Intent detail = new Intent(getBaseContext(), DetailArticle.class);\n detail.putExtra(\"webURL\", webHotURL);\n startActivity(detail);\n }", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "private void SendUserToInfoPage(){\n Intent intent = new Intent(sign_up_activity.this,user_info_activity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK);\n overridePendingTransition(0,0);\n startActivity(intent);\n finish();\n }", "public void handleSend() {\n model.sendMail();\n view.getChildren().clear();//it \"hides the display\" of the previous view\n }", "public void cot_buscarpersona(){\n try{\n FacesContext contex = FacesContext.getCurrentInstance();\n contex.getExternalContext().redirect(\"cot_buscarpersona.xhtml\");\n }\n catch(Exception e){\n System.out.println(\"Error: \" + e);\n }\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString ch=\"C++\";\r\n\t\t\t\t\t\t\t//MainActivity.this.finish();\r\n\t\t\t\t\t\t\tIntent ob=new Intent(Cplspls_Qu_page.this,Result.class);\r\n\t\t\t\t\t\t\tob.putExtra(\"SEND\", count);\r\n\t\t\t\t\t\t\tob.putExtra(\"PAGE_NAME\", ch);\r\n\t\t\t\t\t\t\tstartActivity(ob);\r\n\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tif(et.getText() == null){\r\n\t\t\t\t\tmsgString = \"\";\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmsgString = et.getText().toString();\r\n\t\t\t\t}\r\n\t\t\t\tmConnectUtil = new ConnectUtil(ThirdCommentPageActivity.this, mHandler,0);\r\n\t\t\t\tmConnectUtil.connect(addUrlParam(pageid==PageID.PAGEID_COMMENT_USER_FORM?URLUtil.URL_FORM_THIRDCOMMENT:URLUtil.URL_COMMENT_THIRDCOMMENT, UserUtil.userid, subjectid, commentid, msgString), HttpThread.TYPE_PAGE, 0);\r\n\t\t\t}", "@UiHandler(\"go\")\n void connexion(ClickEvent e) {\n loginField.setFocus(false);\n passwordField.setFocus(false);\n domains.setFocus(false);\n\n String login = loginField.getText();\n String password = passwordField.getText();\n login(login, password, domains.getValue(domains.getSelectedIndex()));\n\n\n }", "public ProduceAndFloralPage clickOnProduceandFloralLink() {\n\t\t// Use for loop to make sure link got clicked\n\t\tfor (int i = 0; i <= 2; i++) {\n\t\t\ttry {\n\t\t\t\tproduceAndfloral.click();\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t}\n\t\treturn new ProduceAndFloralPage();\n\t}", "@Override\n public void doPost(HttpServletRequest request2, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String nome=request2.getParameter(\"Nome\");\n String cognome=request2.getParameter(\"Cognome\");\n try (PrintWriter out = response.getWriter()) {\n out.println(\"<body>\");\n out.println(\"<h1>Pagina creata da chiamata POST</h1>\");\n out.println(\"Il tuo nome è:\"+nome+\"<br/>\");\n out.println(\"Il tuo cognome è:\"+cognome+\"<br/>\");\n if(\"Nicola\".equals(nome) && \"Iacovelli\".equals(cognome)){\n out.println(\"<b>Sei il mio creatore</b><br/>\");\n out.println(\"<b>Grazie per avermi creato</b>\");\n }\n else{\n out.println(\"<b>Esci da questa pagina!</b><br/>Non sei il mio creatore\");\n }\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n \n }", "private void redirectTo( Part p ) {\n Set<Long> ids = Collections.emptySet();\n setResponsePage( new RedirectPage( SegmentLink.linkStringFor( p, ids ) ) );\n }", "public void consult() throws Exception {\n // TODO Consult\n try {\n String page = \"pi_per_intConsult.jsp\";// defina aqui a p?gina que deve ser chamada\n getResponse().sendRedirect(page);\n } catch (Exception e) {\n }\n }", "@Override\n protected void onSubmit() {\n getCommander().resetUserHistory( getUser().getUsername(), true );\n redirectHere();\n }", "@Override\r\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n HttpSession session = req.getSession();\r\n\r\n session.setAttribute(\"nombresDesLivres\", req.getParameter(\"nombres\"));\r\n \r\n /**\r\n * Recuperer de l'utilisateur en cours \r\n * et Mise en place de l'achat d'un livre\r\n */\r\n User user = userbean.allUsersList().get(0);\r\n Livre livreAchete = userbean.getUserLivres(user).get(Integer.parseInt(req.getParameter(\"item\")));\r\n session.setAttribute(\"livreAdd\", livreAchete);\r\n /**\r\n * renvoie de l'attribut message vers la page JSP DiscoveryJsp.jsp\r\n */\r\n req.setAttribute(\"message\", \"<a href=\\\"#\\\" class=\\\"btn btn-link\\\">\"\r\n + \"vous venez d'ajouter \" + req.getParameter(\"nombres\") + \" exemplaires du livre \" + livreAchete.getNom()\r\n \r\n + \" dans votre panier</a>\");\r\n this.getServletContext().getRequestDispatcher(\"/DiscoveryJsp.jsp\").forward(req, resp);\r\n\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/cchat.html\");\n \t\t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }", "@Override\n public void onClick(View view) {\n send();\n }" ]
[ "0.5995982", "0.5742645", "0.5554702", "0.55421674", "0.5529508", "0.55069673", "0.54693484", "0.54624987", "0.5447896", "0.544536", "0.5398172", "0.53646106", "0.5351557", "0.5338119", "0.5322948", "0.531589", "0.5315278", "0.53101623", "0.5299527", "0.52926147", "0.52863204", "0.5272478", "0.5265353", "0.52505857", "0.52478606", "0.5244311", "0.5234355", "0.5233879", "0.5233706", "0.5222084", "0.5221323", "0.52119476", "0.52118415", "0.51975197", "0.5193744", "0.5193523", "0.5188591", "0.5182319", "0.51733786", "0.5164497", "0.5160096", "0.5156057", "0.5153663", "0.51472276", "0.51468915", "0.5143973", "0.5139985", "0.5136577", "0.51336944", "0.5133061", "0.5123491", "0.51208025", "0.5119409", "0.5116425", "0.5116218", "0.5114106", "0.51127", "0.509975", "0.50993985", "0.5071689", "0.5070894", "0.506889", "0.5062628", "0.5059094", "0.50568384", "0.50568", "0.50563395", "0.50558025", "0.50547725", "0.5054186", "0.50538784", "0.5051284", "0.50450367", "0.5043175", "0.5040477", "0.5038777", "0.50358444", "0.5034117", "0.503263", "0.5030177", "0.50255007", "0.5022824", "0.5020709", "0.5014655", "0.501369", "0.5011956", "0.50113356", "0.5006884", "0.5005854", "0.5004859", "0.50047296", "0.5004683", "0.49976888", "0.49965537", "0.49952197", "0.499385", "0.49901846", "0.49895075", "0.49888748", "0.49871796", "0.49857777" ]
0.0
-1
Handler qui va ouvrir la page de suppression
public void suppHandler(ActionEvent event) throws Exception { String id= new String(); for (Button bouton : list_bouton) { if(event.getSource()==bouton) { bouton.setOnAction(new EventHandler<ActionEvent>() { private String args; @Override public void handle(ActionEvent arg0) { try { sup= new Supprimer(); ((Node) event.getSource()).getScene().getWindow().hide(); } catch (Exception e) {e.printStackTrace();} }}); ChoixControler.selectedDomaine=bouton.getId(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void suppress() {\n\n\t}", "@Override \n\t\t public void postHandle(HttpServletRequest request, HttpServletResponse response, \n\t\t Object object, ModelAndView modelAndView) throws Exception {\n\t\t\t List<String> exclusionsScreens = (List<String>) request.getSession(true).getAttribute(\"exclusionesScreens\");\n\t\t\t System.out.println(\"exclusionsScreens: \"+exclusionsScreens+\" view: \"+modelAndView.getViewName());\n\t\t\t if (null==exclusionsScreens && !\"login\".equalsIgnoreCase(modelAndView.getViewName())){\n\t\t\t\n\t\t\t\t System.out.println(\"Usuario No logueado o la session ha caducado\");\n\t\t\t\t throw new RestrictedPageException(\"Favor de loguearse\");\n\t\t\t \n\t\t\t\t }else if(null!=exclusionsScreens && exclusionsScreens.contains(modelAndView.getViewName())){\n\t\t\t\t\t System.out.println(\"no tiene acceso!!!!!! a la pagina: \"+request.getRequestURL().toString());\n\t\t\t\t\t //response.sendRedirect(\"/sanantial/forbidden\");\n\t\t\t\t\t throw new RestrictedPageException(\"No tiene acceso a la pagina solicitada\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t \n\t\t }", "public synchronized void discardPage(PageId pid) {\n // some code goes here\n // not necessary for proj1\n }", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "public void exitCollectWeb() {\n mActivity.mHolder.mWebLayout.setVisibility(View.GONE);\n isCollectWebPage = false;\n }", "public void suppress() {\r\n\t\tsuppressed = true;\r\n\t}", "public void suppress() {\r\n\t\tsuppressed = true;\r\n\t}", "@Override\r\n\tpublic void onNaviCancel() {\n\r\n\t}", "@Et(\"^la catégorie \\\"([^\\\"]*)\\\" n'est pas supprimée sur la deuxième page$\")\n public void laCategorieNEstPasSupprimeeSurLaDeuxiemePage(String arg0) throws Throwable {\n throw new PendingException();\n }", "@Override\r\n\tpublic void unvisit() {\n\r\n\t}", "public void handleStatuScode(Page page);", "@Override\n\tpublic void hidePopup() {\n\t\t// logger.info(\"..errr..I'll hide u\");\n\t}", "public synchronized void discardPage(PageId pid) {\n // some code goes here\n // only necessary for lab5\n bufferPool.remove(pid);\n }", "@Override\n\tpublic void onInvisible() {\n\n\t}", "public void vanish() {\n\t\t\r\n\t\tlpanel.addMouseMotionListener(new MouseAdapter() {\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tchecker.setEnabled(false);\r\n\t\t\t\tchecker.setVisible(false);\r\n\t\t\t\trequestL.setEnabled(false);\r\n\t\t\t\trequestL.setVisible(false);\r\n\t\t\t\tpatientL.setEnabled(false);\r\n\t\t\t\tpatientL.setVisible(false);\r\n\t\t\t\treport.setEnabled(false);\r\n\t\t\t\treport.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\t}", "public SpecialNewFilesPage hideWarnings() {\n jsActions.execute(\"$('div.status').attr('style', 'display=none')\");\n\n return this;\n }", "@Override\n\t\t\tpublic void onPageFinished(WebView webview,\n\t\t\t\t\tString url) {\n\t\t\t\tsuper.onPageFinished(webview, url);\n\t\t\t\t\n\t\t\t\tmprogressBar.setVisibility(View.GONE);\n\t\t\t\t\n\t\t\t}", "void removeWebWideTrackingException(ExceptionInformation args);", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "void envoiReponseSansDonnees(HttpServletResponse reponse);", "void disableNotifications();", "protected abstract boolean supressEntry (String name);", "@Override\r\n\tpublic void del(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"../admin/xiaoshuorecycle.jsp\";\r\n\t\tsuper.del(request, response);\r\n\t}", "@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n mLoadError = false;\r\n mRllGoShopping.setVisibility(View.VISIBLE);\r\n mMainWebView.setVisibility(View.GONE);\r\n super.onPageStarted(view, url, favicon);\r\n\r\n }", "protected void onDisabled() {\n // Do nothing.\n }", "default void onDisable() {}", "@Override\n public void onDisable() {\n }", "@Override\n\tpublic void off() {\n\t\tSystem.out.println(\"컬러모니터가 꺼졌습니다\");\n\t}", "private void handleWhiteboardCleared() {\n for (SocketConnection tobeNotified : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n tobeNotified.send(this.message);\n }\n }", "protected void onPdCancel(){\r\r\t}", "void disable();", "void disable();", "public void discardUserAction() {\n\t\tshowAnimalList();\n\t}", "@Override\n public void onLeftUser(WebkeyVisitor webkeyVisitor) {\n stopImageSenderStream();\n mContext.unregisterComponentCallbacks(this);\n }", "@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}", "public void unauthorized() {\n super.unauthorized();\n LoginFragment.this.getTracker().send(new HitBuilders.EventBuilder().setCategory(\"sign_in\").setAction(\"incorrect\").setLabel(\"incorrect\").build());\n Answers.getInstance().logLogin(new LoginEvent().putSuccess(false));\n new AlertDialog.Builder(LoginFragment.this.getActivity()).setMessage(R.string.incorrect_email_or_password).setPositiveButton(17039370, (DialogInterface.OnClickListener) null).show();\n }", "public void disable();", "@Override\r\n protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws IOException {\n \tboolean b = WebUtil.isAjax((HttpServletRequest)request);\r\n \tif(b){//ajax請求,没有权限操作的\r\n JSONObject js = new JSONObject();\r\n js.put(\"isDenied\", true);\r\n js.put(\"message\", \"沒有权限执行该操作\");\r\n WebUtil.printJson(response, js);\r\n return false;\r\n \t}\r\n \treturn super.onAccessDenied(request, response);\r\n }", "public void setSuppressionFile(String file) {\n this.suppressionFile = file;\n }", "@Override\n public void handleMessage(final SoapMessage t) throws Fault {\n final boolean suppressResponse = this.suppressResponse(t);\n\n if (suppressResponse) {\n //log.debug(\"-> Suppressing response\");\n t.getInterceptorChain().abort();\n }\n }", "public void showDisarmed();", "@Override\r\n public void onDisable() {\r\n log.info(\"[SeattleSummer] plugin disabled.\");\r\n }", "@Override\r\n\tpublic void action() throws Exception {\n\t\tthis.pageAction();\r\n\t\t//when action finished \r\n\t\tInteger currentPageNumber = (Integer) context.get(\"currentPageNumber\");\r\n\t\tString currentPageContent = (String)context.get(\"currentPageContent\");\r\n\t if(currentPageNumber!=null){\r\n\t\t\tcontext.remove(currentPageNumber);\r\n\t\t}\r\n\t\tif(currentPageContent!=null){\r\n\t\t\tcontext.remove(currentPageContent);\r\n\t\t}\r\n\t\t//action end\r\n\t\t//after action remove the previous variables\r\n\t\t\r\n\t\tcontext.remove(\"pageUrlRegex\");\r\n\t\tcontext.remove(\"contentRegex\");\r\n\r\n\t\tcontext.remove(\"pageSize\");\r\n\r\n\t\tcontext.remove(\"totalRecorderNumber\");\r\n\t\tcontext.remove(\"currentFieldName\");\r\n\r\n\t}", "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "public void onDisable() {\n }", "public void onDisable() {\n }", "public void cancelLoadUrl() {\n\t\t\n\t}", "@Override\n\tpublic void checkPage() {\n\t}", "public abstract void wgb_onDisable();", "public void onDisable() {\r\n }", "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "void supprimerMenu(int numeroArticle);", "static void ignore() {\n }", "public void removeAllPublishersWebpage() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PUBLISHERSWEBPAGE);\r\n\t}", "@Override\n public void onCancel() {\n Log.w(tag, \"post cancel\" + this.getRequestURI());\n cancelmDialog();\n super.onCancel();\n }", "abstract void onHidden();", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tSystem.out.println(\"세션값 제거! \");\n\t\t\n\t\tHttpSession session = request.getSession();\n\t\tsession.removeAttribute(\"userid\");\n\t\tsession.removeAttribute(\"userpk\");\n\t\tsession.removeAttribute(\"usename\");\n\t\tsession.setAttribute(\"userCheck\", -1);\n\t\t\n\t\t\n\t}", "void unsetBodySite();", "void disable() {\n }", "public void onDisable()\n {\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "public void onDisable() {\n }", "public void clickOnWithoutNotificationTemplate() {\r\n\r\n\t\treportStep(\"About to click on With out Notification Template\", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(withOutTemplateNotification)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Without Notification template \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\treportStep(\"Failed to click on the Without Notification template \", \"FAIL\");\r\n\t\t}\r\n\t}", "@Override\n public void onKeepBrowsing() {\n\n }", "public void suppress() {\n\t\tstop = true;\n\t}", "@Override\n public void onPageFinished(WebView view, String url) {\n\n if (webProgDialog != null)\n webProgDialog.dismiss();\n\n }", "void unsetSites();", "@Override\r\n\tpublic void onDisable() {\n\t}", "@Override\n public void onNoUserRegistered() {\n\n showUI();\n }", "@Override\n protected void processUnhover() {\n \n Dialog.getInstance().hideTooltip();\n }", "public void unsetErrorAffectedPageactionCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ERRORAFFECTEDPAGEACTIONCOUNT$8);\r\n }\r\n }", "public void warningPermit();", "@Override\r\n public void onPermissionsDenied(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }", "@Override\n\tpublic void onDelete() {\n\t\tif (testSessionChangedHandler != null) {\n\t\t\ttestSessionChangedHandler.removeHandler();\n\t\t\ttestSessionChangedHandler = null;\n\t\t}\n\t\t// Release the acmi\n\t\tif (acmiSaveButton !=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiSaveButton))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiSaveButton);\n\t\t}\n\t\tif (acmiPromoteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiPromoteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiPromoteSite);\n\t\t}\n\t\tif (acmiDeleteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiDeleteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiDeleteSite);\n\t\t}\n\t\tif (acmiCreateSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiCreateSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiCreateSite);\n\t\t}\n\t}", "@Override\n\tpublic void onDisable() {\n\n\t}", "@Override\n public void onPermissionDenied() {\n Log.d(TAG, \"onPermissionDenied() called\");\n }", "@Override\n\t\t\tpublic void onPageFinished(WebView view, String url) {\n\t\t\t\tsuper.onPageFinished(view, url);\n\t\t\t\tif (webViewPreviousState == PAGE_STARTED) {\n\t\t\t\t\tCustomDialog.removeDialog();\n\t\t\t\t}\n\t\t\t}", "public void onDisable() {\n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println(pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" disabled!\");\n }", "private void manageDeniedPacket(MeetingPacket packet) {\n Console.comment(\"=> Denied packet from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnDenied != null) {\n this.callbackOnDenied.denied() ;\n }\n }", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }", "public void handleApiDisabled() {\r\n\t\thandler.post(new Runnable(){\r\n\t\t\tpublic void run(){\r\n\t\t \tUtils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disabled));\r\n\t\t\t}\r\n\t\t});\t\t\t\t\r\n }", "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "public void onDisable() {\n \n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println( pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" is disabled!\" );\n }", "public void onMessage(Message arg) \n {\n ObjectMessage om = (ObjectMessage) arg;\n SuppressionDrainMessage sdm = null;\n\n try\n {\n sdm = (SuppressionDrainMessage) om.getObject();\n \n _log.debug ( \"checking for expired suppressions - message: \" + sdm.toString() );\n\n List suppression_rules = _orm.getAllSuppressionRules();\n SuppressionRule rule = null;\n Iterator iterator = suppression_rules.iterator();\n long current_time = System.currentTimeMillis();\n\n String timezone_string = _orm.selectEebProperty ( \"server.time_zone\" ).getPropertyValue();\n TimeZone tz = TimeZone.getTimeZone( timezone_string );\n int timezone_offset = tz.getRawOffset();\n int dst_offset = tz.getDSTSavings();\n int offset = timezone_offset + dst_offset;\n\n while ( iterator.hasNext() )\n {\n rule = (SuppressionRule) iterator.next();\n\n if (( true == rule.isStarted(offset) ) && \n ( true == rule.getNotificationFlag() ) && \n ( false == rule.getIsNotified() ))\n {\n // Generate a notification for this suppression\n _log.debug ( \"Generating notification for suppression #\" + rule.getSuppressId() );\n\n rule.setIsNotified ( true );\n\n _orm.addOrUpdateSuppressionRule ( rule );\n }\n }\n }\n catch ( Exception exception )\n {\n if ( null != sdm )\n {\n _log.error ( \"SC Drain Consumer Bean - exception detected: \" + sdm.toString(), exception );\n }\n else\n {\n _log.error ( \"SC Drain Consumer bean - exception detected - bad message: \" + om.toString(), exception );\n }\n }\n\t}", "@Override\n\tpublic void detalhar() {\n\t\t\n\t}", "public void removeAllOfficialFileWebpage() {\r\n\t\tBase.removeAll(this.model, this.getResource(), OFFICIALFILEWEBPAGE);\r\n\t}", "@Override\n public void onPageFinished(android.webkit.WebView view, String url) {\n super.onPageFinished(view, url);\n progressBar5.setVisibility(View.GONE);\n }", "public void method_204() {}", "public void hideCastMiniController() {\n }", "private void hideMessage(){\n // Hide message\n }", "@Override\n\tpublic void onDisable() {\n\t\tgetLogger().info(\"SimplyWrapper successfully disabled !\");\n\t}", "@Override\r\n\tpublic void visit(Page page) {\r\n\t\t// Some business logic I won't expose here\r\n\t\t// My boss won't be happy ;-)\r\n\t}", "public void sendToOutpatients(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@RequestMapping(value = \"/denied\", method = RequestMethod.GET)\r\n\tpublic String getDeniedPage() {\r\n\t\treturn \"403\";\r\n\t}", "public abstract void onDisable();", "@Override\r\n public void onTrackLimitationNotice(int arg0) {\n\r\n }" ]
[ "0.59198606", "0.587163", "0.58207107", "0.56108165", "0.56108165", "0.56108165", "0.55788434", "0.54823935", "0.54823935", "0.5404931", "0.5402736", "0.5368783", "0.5324681", "0.52959037", "0.52948475", "0.5291468", "0.52901894", "0.5251986", "0.52333575", "0.5214934", "0.5179952", "0.5174744", "0.51528263", "0.51484513", "0.51252246", "0.51247454", "0.50827545", "0.5067737", "0.50611687", "0.5057118", "0.5055592", "0.5046381", "0.50463754", "0.50463754", "0.5033728", "0.5032365", "0.50322855", "0.50315243", "0.5028088", "0.5028005", "0.5017718", "0.5010587", "0.50008494", "0.49969462", "0.49960038", "0.49949023", "0.49894777", "0.49894777", "0.49889535", "0.49888504", "0.4988369", "0.49870512", "0.49847114", "0.49826488", "0.4979859", "0.49702048", "0.49607724", "0.49569046", "0.49541798", "0.49513707", "0.4945819", "0.49342048", "0.49299526", "0.49220768", "0.4917978", "0.49169755", "0.49156937", "0.49011937", "0.48989338", "0.48961443", "0.48955932", "0.48948187", "0.48921767", "0.48814258", "0.48806494", "0.48753753", "0.4870344", "0.4870274", "0.48687348", "0.4868096", "0.48677137", "0.48654488", "0.48641318", "0.48641318", "0.48641318", "0.4861978", "0.4859565", "0.48579928", "0.48470458", "0.4845242", "0.48445308", "0.48419347", "0.4834432", "0.48330468", "0.4831893", "0.48304224", "0.48247108", "0.4821333", "0.4813413", "0.48120764", "0.48113617" ]
0.0
-1
Handler qui va ouvrir la page de modification
public void modifHandler(ActionEvent event) throws Exception { String id= new String(); for (Button bouton : list_bouton) { if(event.getSource()==bouton) { bouton.setOnAction(new EventHandler<ActionEvent>() { private String args; @Override public void handle(ActionEvent arg0) { try { //choisir l'activité à modifier mod= new ChoixActiviteModif(); } catch (Exception e) {e.printStackTrace();} }}); ChoixControler.selectedDomaine=bouton.getId(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void edit(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"../admin/xiaoshuolist.jsp\";\r\n\t\tthis.URL2=\"../novel/one.do\";\r\n\t\tthis.msg1=\"修改成功!\";\r\n\t\tthis.msg2=\"修改失败!\";\r\n\t\tsuper.edit(request, response);\r\n\t}", "@Override\r\n\tpublic void one(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"/admin/xiaoshuoedit.jsp\";\r\n\t\tsuper.one(request, response);\r\n\t}", "@Override\n\tpublic String handlerRequest(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\tString no=req.getParameter(\"no\");\n\t\tString page=req.getParameter(\"page\");\n\t\tBoardVO vo=BoardDAO.boardUpdateData(Integer.parseInt(no));\n\t\treq.setAttribute(\"vo\", vo);\n\t\treq.setAttribute(\"page\", page);\n\t\treturn \"board/update.jsp\";\n\t}", "private String modifierOeuvre(HttpServletRequest request) throws Exception {\n try {\n int idOeuvre = Integer.parseInt(request.getParameter(\"id\"));\n Oeuvre oeuvreE = oeuvreF.getOeuvreById(idOeuvre);\n request.setAttribute(\"oeuvreR\", oeuvreE);\n request.setAttribute(\"titre\", \"Modifier une oeuvre\");\n String vueReponse = \"/oeuvre.jsp\";\n return (vueReponse);\n } catch (Exception e) {\n throw e;\n }\n }", "public String update() {\n\t\tif (getElement().getIdTipo() == null) {\n\t\t\tFacesContext.getCurrentInstance()\n\t\t\t\t\t.addMessage(\n\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\tnew FacesMessage(\"Tipo non valido\",\n\t\t\t\t\t\t\t\t\t\"Selezionare il tipo.\"));\n\t\t\treturn null;\n\t\t}\n\t\tModulo t = getSession().update(element);\n\t\t// refresh locale\n\t\telement = t;\n\t\trefreshModel();\n\t\t// vista di destinzione\n\t\toperazioniLogHandler.save(OperazioniLog.MODIFY, JSFUtils.getUserName(),\n\t\t\t\t\"modifica moduli: \" + this.element.getNome());\n\t\treturn viewPage();\n\t}", "boolean updateContent();", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tSystem.out.println(\"NoticeEditController\");\n\t\tString seq = request.getParameter(\"c\");\n\t\t\n\t\tString title = new String(request.getParameter(\"title\").getBytes(\"iso-8859-1\"),\"utf-8\");\n\t\tString content = new String(request.getParameter(\"content\").getBytes(\"iso-8859-1\"),\"utf-8\");\n\t\t\n\t\tNoticeDao dao = new NoticeDao();\n\t\tNotice n = new Notice();\n\t\tn.setSeq(seq);\n\t\tn.setTitle(title);\n\t\tn.setContent(content);\n\t\t\n\t\tint af = dao.update(n);\n\t\t\n\t\t\n\t\t//request에 n을 저장\n\t\trequest.setAttribute(\"n\", n);\n\t\t//jsp로 forward\n\t\tif(af>0) {\n\t\t\trequest.getRequestDispatcher(\"noticeDetail.do\").forward(request, response);\n\t\t}else {\n\t\t\tSystem.out.println(\"수정 오류\");\n\t\t}\n\t}", "@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}", "public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }", "protected void doEdit (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doEdit method not implemented\");\n }", "@Override\r\n\tpublic void update(HttpServletResponse paramHttpServletResponse) {\n\t\t\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n // processRequest(request, response);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n \r\n String edit = request.getParameter(\"edit\");\r\n \r\n Note note = noteRead(request);\r\n request.setAttribute(\"note\", note);\r\n // System.out.println(\"doGet():\");\r\n \r\n if (edit != null) {\r\n //System.out.println(\"Edit Mode\");\r\n getServletContext().getRequestDispatcher(\"/WEB-INF/editnote.jsp\").forward(request, response);\r\n }else {\r\n //System.out.println(\"View Mode\");\r\n getServletContext().getRequestDispatcher(\"/WEB-INF/viewnote.jsp\").forward(request, response);\r\n }\r\n \r\n //response.setContentType(\"text/html;charset=UTF-8\");\r\n \r\n \r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n Integer perfil;\n perfil = Integer.parseInt(request.getParameter(\"perfil\"));\n menusDAO menudao = new menusDAO();\n menudao.getInfoPerfil(perfil);\n menudao.getMenuPerfil();\n menuEncontrado = menudao.getMenuUsuario();\n opciondeMenu objetoOpcionMenu = new opciondeMenu();\n for (Menus opcion : menuEncontrado) {\n String padre = opcion.getIdPadre() == null ? \"#\" : \"\" + opcion.getIdPadre();\n objetoOpcionMenu.setId(\"\" + opcion.getId());\n objetoOpcionMenu.setParent(\"\" + padre);\n objetoOpcionMenu.setText(\"<a onclick=\\\"javascript:f_link('\" + opcion.getEnlace() + \"')\\\"> \" + opcion.getDescripcion() + \"</a>\");\n opcionesMenu.add(objetoOpcionMenu);\n objetoOpcionMenu = new opciondeMenu();\n }\n processRequest(request, response);\n }", "@Override\n protected void doPut(HttpServletRequest requete, HttpServletResponse reponse) throws ServletException, IOException {\n Integer idSousTournoiAValider = tentativeRecuperationIdSousTournoi(requete);\n if (idSousTournoiAValider == null){\n envoyerReponseMauvaisId(reponse);\n }\n else{\n SousTournoiSimplifieDto sousTournoiValide = sousTournoiService.validerSousTournoi(idSousTournoiAValider);\n if(sousTournoiValide != null){\n envoyerReponseRecuperationSousTournoiSimplifie(sousTournoiValide, reponse);\n }\n else{\n envoyerReponseSousTournoiIntrouvable(reponse);\n }\n }\n }", "@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}", "public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tDataGetter getter = new DataGetter(DatabaseAccounts.PROJECT);\r\n\t\tSystem.out.println(\"BoardModify 서블릿으로 들어옴\");\r\n\t\tString studyName = (String) request.getAttribute(\"studyName\");\r\n\t\tint studyIndex = getter.getStudyIndex(studyName);\r\n\t\t\r\n\t\tBoardViewRegisterBean boardmodify = new BoardViewRegisterBean();\r\n\t\tboardmodify.setTitle(request.getParameter(\"boardSubject\"));\r\n\t\tboardmodify.setContent(request.getParameter(\"boardContent\"));\r\n\t\tboardmodify.setDate(request.getParameter(\"boardDate\"));\r\n\t\tboardmodify.setFilename(request.getParameter(\"fileName\"));\r\n\t\tboardmodify.setIndex(Integer.parseInt(request.getParameter(\"num\")));\r\n\t\t\r\n\t\t\r\n\t\tDataPoster poster = new DataPoster(DatabaseAccounts.PROJECT);\r\n\t\tint boardnum = Integer.parseInt(request.getParameter(\"num\"));\r\n\t\t\r\n\t\tposter.postBoardModify(boardmodify, studyIndex);\r\n\t\t\r\n\t\tresponse.sendRedirect(\"view\" + \"?num=\" + boardnum);\r\n\t\tposter.close();\r\n\t\tgetter.close();\r\n\t}", "@Override //编辑通知\n\tpublic void editPoInfo(PageData pd) throws Exception {\n\t\tdao.update(\"PoInfoMapper.editPoInfo\", pd);\n\t\t\n\t}", "@RequestMapping(\"/editRepPage\")\r\n\tpublic String callEditRep(){\r\n\t\treturn \"editRepPage\";\r\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException \n {\n resp.setContentType(\"text/plain\"); \t\n /**\n * detects current action based on action param \n */\n String action = req.getParameter(\"action\"); \t\n if( action.equals(\"get_rezervace\")) getRezervace(req, resp); \n if( action.equals(\"post_rezervace\")) postRezervace(req, resp);\n if( action.equals(\"delete_rezervace\")) deleteRezervace(req, resp);\n\n /**\n * returns back to the jsp page\n */\n //resp.sendRedirect(\"/index.jsp?site=menucardEdit\");\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String accion = request.getParameter(\"accion\");\n switch (accion) {\n case \"Editar\":\n request.setAttribute(\"id\", request.getParameter(\"id\"));\n request.getRequestDispatcher(edit).forward(request, response);\n break;\n case \"Eliminar\":\n int id2 = Integer.parseInt(request.getParameter(\"id\"));\n p.setId(id2);\n dao.eliminar(id2);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"index.jsp\");\n\t\tdispatcher.forward(request, response);\n break;\n\n }\n\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n Vehiculo modificado=new Vehiculo(Integer.valueOf(request.getParameter(\"id\")),\r\n request.getParameter(\"marca\"),\r\n request.getParameter(\"modelo\"),\r\n request.getParameter(\"matricula\"),\r\n Integer.valueOf(request.getParameter(\"plazas\")));\r\n \r\n \r\n try {\r\n service.updateVehiculo(modificado);\r\n List<Vehiculo> vehiculos=service.loadVehiculos();\r\n HttpSession mySession=request.getSession(true);\r\n mySession.setAttribute(\"vehiculos\", vehiculos);\r\n \r\n RequestDispatcher rd=request.getRequestDispatcher(\"/WEB-INF/list.jsp\");\r\n rd.forward(request, response);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ServletUpdate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n \r\n }", "private void alter(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tUser user = (User) request.getSession().getAttribute(SessionKey.USER_LOGIN);\r\n\r\n\t\tSimpleDateFormat format1 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tInteger Creater = user.getUser_id();\r\n\t\tString Create_Time = format1.format(new Date());\r\n\t\tString Old_Create_Time = request.getParameter(\"create_time\");\r\n\t\tString Old_Creater = request.getParameter(\"creater\");\r\n\t\tInteger Updater = user.getUser_id();\r\n\r\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString id = request.getParameter(\"id\") == \"\" ? null : request.getParameter(\"id\");\r\n\t\tString Old_pub_time = request.getParameter(\"pub_time\");\r\n\t\tString expire_time = request.getParameter(\"expire_time\") == \"\" ? \"2019-11-7\"\r\n\t\t\t\t: request.getParameter(\"expire_time\");\r\n\t\tString subject = request.getParameter(\"subject\");\r\n\t\tString tongzhifanwei = request.getParameter(\"tongzhifanwei\");\r\n\t\tString text = request.getParameter(\"text\");\r\n\r\n\t\tif (id == null) {\r\n\r\n\t\t\tNotice notice = new Notice(Integer.valueOf(tongzhifanwei), subject, text, format1.parse(Create_Time),\r\n\t\t\t\t\tformat.parse(expire_time), Creater, format1.parse(Create_Time));\r\n\t\t\tservice.add(notice);\r\n\t\t} else {\r\n\t\t\tNotice notice = new Notice(Integer.valueOf(id), Integer.valueOf(tongzhifanwei), subject, text,\r\n\t\t\t\t\tformat1.parse(Old_pub_time), format.parse(expire_time), Integer.valueOf(Old_Creater),\r\n\t\t\t\t\tformat1.parse(Old_Create_Time), Updater, format1.parse(Create_Time));\r\n\t\t\tservice.update(notice);\r\n\t\t}\r\n\t\trequest.getRequestDispatcher(\"NoticeServlet?service=NoticeGuanLi\").forward(request, response);\r\n\r\n\t}", "public void editar(HttpServletRequest request, HttpServletResponse response) throws Exception{\n int id=Integer.parseInt(request.getParameter(\"id\"));\n GestionMov_diversos modelo=new GestionMov_diversos(); \n MovDiversos movimiento=modelo.obtenerPorId(id);\n \n //int id_bendiv=movimiento.getId_bendiv();\n //Obteniendo el catalogo de beneficiarios diversos\n GestionBendiv modelo_benDiv= new GestionBendiv();\n ArrayList beneficiarios=modelo_benDiv.obtenerTodos();\n \n //Obteniendo el catalogo de movimientos diversos\n GestionClaveDiversos modelo_claveDiv= new GestionClaveDiversos();\n ArrayList clavediv=modelo_claveDiv.obtenerTodos();\n \n //Obteniendo el catalogo de programas\n GestionProgramas modelo_programas= new GestionProgramas();\n ArrayList programas=modelo_programas.obtenerTodos();\n \n //Obteniendo el catalogo de emisores\n GestionEmisor modelo_emisores= new GestionEmisor();\n ArrayList emisores=modelo_emisores.obtenerTodos();\n \n request.setAttribute(\"movimiento\", movimiento);\n request.setAttribute(\"beneficiarios\", beneficiarios);\n request.setAttribute(\"clavediv\", clavediv);\n request.setAttribute(\"programas\", programas);\n request.setAttribute(\"emisores\", emisores);\n \n RequestDispatcher rd=request.getRequestDispatcher(\"frm_modificamov_diversos.jsp\");\n rd.forward(request,response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String accion=request.getParameter(\"op\");\n if(accion.equalsIgnoreCase(\"Actualizar\")){\n request.getRequestDispatcher(\"AspirantesCoordiVTA.jsp\").forward(request, response);\n }\n }", "@Override\r\n\t\t\tpublic void onPersistSuccess(EntityUpdatedEvent event) {\n\t\t\t\tglobalApplicationState.refreshPage();\r\n\t\t\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n \n\n String Accion = request.getParameter(\"Actualizar\");\n System.out.println(\"Accion \" + Accion);\n\n String IdInmueble = request.getParameter(\"IdConsultado\");\n\n inmueblesDAO miInmuebleDAO = new inmueblesDAO();\n inmuebles miInmueble = null;\n miInmueble = miInmuebleDAO.consultarInmuebles(IdInmueble);\n if (Accion != null) {\n if (miInmueble != null) {\n\n\n response.sendRedirect(\"/IdConsultado?idTipo=\"\n + miInmueble.getIdInmueble() + \"&\"\n + \"nombre=\" + miInmueble.getIdTipo()+ \"&\"\n + \"apellido=\" + miInmueble.getIdDepartamento()+ \"&\"\n + \"telefono=\" + miInmueble.getIdUsuario()+ \"&\"\n + \"correo=\" + miInmueble.getIdEstado()+ \"&\"\n + \"password=\" + miInmueble.getNombre() + \"&\"\n + \"id_tipo=\" + miInmueble.getDireccion() + \"&\"\n + \"id_rol=\" + miInmueble.getCapacidad() + \"&\"\n + \"password=\" + miInmueble.getDescripcion() + \"&\"\n + \"id_tipo=\" + miInmueble.getPrecio() + \"&\"\n + \"id_rol=\" + miInmueble.getAdjunto()+ \"&\"\n + \"Vista=\" + \"Actualizar\" + \"&\");\n System.out.println(\"Salio\");\n } else {\n out.println(\"<script type=\\\"text/javascript\\\">\");\n out.println(\"alert('\" + \"No se ha podido relizar la consulta.\" + \"\\n\"\n + \"Por favor verificar la identificacion: \" + IdInmueble + \"');\");\n out.println(\"</script>\");\n }\n } else {\n// Va a eliminar cuando el parametro de la accion es nulo\n if (miInmueble != null) {\n//Si el usuario existe intentará eliminarlo.\n String respuestaRegistrada = miInmuebleDAO.EliminarInmueble(miInmueble);\n if (respuestaRegistrada.length() == 0) {\n out.println(\"<script type=\\\"text/javascript\\\">\");\n out.println(\"alert('\" + \"Eliminacion Realizada.\" + \"');\");\n// Se agrega el redreccionamiento la url para visualice la tabla.\n out.println(\"window.location.href = '/blackrawe/Usuarios.jsp';\");\n out.println(\"</script>\");\n } else {\n out.println(\"<script type=\\\"text/javascript\\\">\");\n out.println(\"alert('\" +\"No se ha podido relizar la eliminacion.\"+respuestaRegistrada.replace(\"'\", \"\") +\"');\");\nout.println(\"</script>\");\n }\n } else {\n out.println(\"<script type=\\\"text/javascript\\\">\");\n out.println(\"alert('\" + \"No se ha podido relizar la consulta.\" + \"\\n\"\n + \"Por favor verificar la identificacion: \" + IdInmueble\n + \"');\");\n out.println(\"</script>\");\n }\n }\n }\n }", "@Override\r\n\tpublic ForwardAction execute(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\t\r\n\t\tString bnum = request.getParameter(\"bno\");\r\n\t\tint bno = 1;\r\n\t\tif(bnum!=null && !bnum.equals(\"\")) {\r\n\t\t\tbno = Integer.parseInt(bnum);\r\n\t\t}\r\n\t\t\r\n\t\tItService service = ItService.getInstance();\r\n\t\tTableDTO dto = null;\r\n\t\t\r\n\t\tdto = service.boardModify(bno);\r\n\t\t\r\n\t\trequest.setAttribute(\"dto\", dto);\r\n\t\t\r\n\t\tForwardAction forward = new ForwardAction();\r\n\t\tforward.setForward(true);\r\n\t\tforward.setUrl(\"/WEB-INF/it/modify.jsp\");\r\n\t\treturn forward;\r\n\t}", "@Override\n\t\t\t\t\tpublic void changed( ObservableValue<? extends State> arg0,\n\t\t\t\t\t\t\tState arg1, State arg2 ) {\n\t\t\t\t\t\tString url = (String) engine\n\t\t\t\t\t\t\t\t.executeScript(\"window.location.href\");\n\t\t\t\t\t\taddrT.setText(url);\n\t\t\t\t\t\t// System.out.println(\"\\turl: \" + url);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tupdatePage(new URL(url));\n\t\t\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Listen(\"onClick =#solicitudReclamo\")\n\t\tpublic void Reclamo() {\n\t\t\tString dir = \"gps/reclamo/frm-reclamo-ordenesEntrega.zul\";\n\t\t\tclearDivApp(dir);\n\t\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t\t}", "@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_preload\";\r\n\t}", "public void changePage(Page page) {\n currentClient.changePage(page);\n this.page = currentClient.getCurrentPage();\n this.refresh();\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, ClassNotFoundException, SQLException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n request.setCharacterEncoding(\"UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n if (\"cadastrar\".equals(request.getParameter(\"action\"))) {\r\n Editora editora = new Editora();\r\n editora.setNome(request.getParameter(\"editora\"));\r\n EditoraDAO editoraDAO = new EditoraDAO();\r\n editoraDAO.cadastrarEditora(editora);\r\n response.sendRedirect(\"./Editoras\");\r\n return;\r\n }\r\n if (\"editar\".equals(request.getParameter(\"action\"))) {\r\n System.out.println(\"oi\");\r\n Editora editora = new Editora();\r\n editora.setNome(request.getParameter(\"editora-nome\"));\r\n editora.setIdEditora(Integer.parseInt(request.getParameter(\"editora-id\")));\r\n EditoraDAO editoraDAO = new EditoraDAO();\r\n editoraDAO.atualizarEditora(editora);\r\n response.sendRedirect(\"./Editoras\");\r\n return;\r\n }\r\n if (\"remover\".equals(request.getParameter(\"action\"))) {\r\n Editora editora = new Editora();\r\n editora.setIdEditora(Integer.parseInt(request.getParameter(\"id\")));\r\n EditoraDAO editoraDAO = new EditoraDAO();\r\n editoraDAO.removerEditora(editora);\r\n response.sendRedirect(\"./Editoras\");\r\n return;\r\n } else {\r\n HttpSession session = request.getSession();\r\n Integer logado;\r\n try {\r\n logado = (int) session.getAttribute(\"logado\");\r\n } catch (Exception f) {\r\n logado = 0;\r\n }\r\n if (logado > 0) {\r\n int perfil = (int) session.getAttribute(\"perfil\");\r\n if (perfil < 2) {\r\n response.sendRedirect(\"../administrador/semPermissao.jsp\");\r\n } else {\r\n List<Editora> listaEditoras = new ArrayList();\r\n EditoraDAO editoraDAO = new EditoraDAO();\r\n listaEditoras = editoraDAO.listarEditoras();\r\n\r\n request.setAttribute(\"editoraLista\", listaEditoras);\r\n RequestDispatcher rd = getServletContext().getRequestDispatcher(\"/administrador/cadastrarEditora.jsp\");\r\n rd.forward(request, response);\r\n }\r\n } else {\r\n response.sendRedirect(\"../comum/login.jsp\");\r\n }\r\n\r\n }\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n HttpSession sessao = request.getSession();\n \n int id_usuario_logado = (int) sessao.getAttribute(\"idUsuarioLogado\");\n \n \n \n Usuario_DAO dao = new Usuario_DAO();\n \n ObservableList <Usuario> lista_usuario = dao.select_Usuario();\n \n for(Usuario usu : lista_usuario){\n if(usu.getId_usuario() == id_usuario_logado){\n \n \n request.setAttribute(\"login_editar\", usu.getLogin());\n request.setAttribute(\"nome_editar\", usu.getNome());\n request.setAttribute(\"email_editar\", usu.getEmail());\n request.setAttribute(\"telefone_editar\", usu.getTelefone());\n request.setAttribute(\"img_editar\", usu.getFoto_perfil());\n \n break;\n }\n } \n \n \n RequestDispatcher rd = request.getRequestDispatcher(\"editar_usuario.jsp\");\n rd.forward(request, response);\n \n }", "@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}", "@Override\n\tpublic Action.Forward exec(HttpServletRequest request, HttpServletResponse response) throws PersistentException {\n\t\tForward forward = new Forward(\"/author/book/edit.html\");\n\t\ttry {\n\t\t\tValidator<Book> validator = ValidatorFactory.createValidator(Book.class);\n\t\t\tBook book = validator.validate(request);\n\t\t\tBookService service = factory.getService(BookService.class);\n\t\t\tservice.save(book);\n\t\t\tforward.getAttributes().put(\"identity\", book.getIdentity());\n\t\t\tforward.getAttributes().put(\"message\", \"Данные книги успешно сохранены\");\n\t//\t\tlogger.info(String.format(\"User \\\"%s\\\" saved book with identity %d\", getAuthorizedUser().getLogin(), book.getIdentity()));\n\t\t} catch(IncorrectFormDataException e) {\n\t\t\tforward.getAttributes().put(\"message\", \"Были обнаружены некорректные данные\");\n\t//\t\tlogger.warn(String.format(\"Incorrect data was found when user \\\"%s\\\" tried to save book\", getAuthorizedUser().getLogin()), e);\n\t\t}\n\t\treturn forward;\n\t}", "private void mostrarEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tUsuario existingUser = dao.selecionarUsuario(id);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"usuario-form.jsp\");\n\t\trequest.setAttribute(\"usuario\", existingUser);\n\t\tdispatcher.forward(request, response);\n\t}", "@Override\n\tpublic void realizarPago() {\n\t}", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "@Override\n public void changePage(int newPage) {\n\n if ( (newPage >= 0) && (newPage< bookInitial.getListAllTextToDisplay().size()))\n {\n\n if (isManual)\n {\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n }else\n {\n int a = bookInitial.getCurrentPage();\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n updateAutoWPop(a);\n }\n\n\n }\n\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //pego todos os campos e par�metros do formul�rio html\r\n String cmd = request.getParameter(\"cmd\");\r\n String nomeEditora = request.getParameter(\"nomeeditora\");\r\n \r\n RequestDispatcher rd = null;\r\n try{\r\n EditoraDAO dao = new EditoraDAO();\r\n// uso equals para comparar string\r\n if(cmd.equals(null)){ //se n�o requisitar opera��o vai para a p�gina iniciall\r\n \r\n rd = request.getRequestDispatcher(\"index.jsp\");\r\n \r\n } else\r\n if (cmd.equals(\"salvar\")) {\r\n dao.incluir(new Editora(nomeEditora));\r\n rd = request.getRequestDispatcher(\"ServletEditora?cmd=listar\");\r\n }\r\n if (cmd.equals(\"listar\")) {\r\n //usar o mesmo nome da lista no jsp\r\n List editoraList = null;\r\n editoraList = dao.todasEditoras();\r\n //seta o atributo\r\n request.setAttribute(\"editoraList\", editoraList);\r\n rd = request.getRequestDispatcher(\"mostrareditora.jsp\");\r\n }\r\n if (cmd.equals(\"excluir\")){\r\n int id = Integer.parseInt(request.getParameter(\"id\"));\r\n Editora edi = dao.procurarEditora(id);\r\n dao.excluir(edi);\r\n rd = request.getRequestDispatcher(\"ServletEditora?cmd=listar\");\r\n }\r\n if (cmd.equals(\"alterar\")){\r\n int id = Integer.parseInt(request.getParameter(\"id\"));\r\n Editora edi = dao.procurarEditora(id);\r\n request.setAttribute(\"edi\", edi);\r\n rd = request.getRequestDispatcher(\"alterareditora.jsp\");\r\n }\r\n if (cmd.equals(\"salvaralteracao\")){\r\n int id = Integer.parseInt(request.getParameter(\"id\"));\r\n dao.atualizar(new Editora(id, nomeEditora));\r\n rd = request.getRequestDispatcher(\"ServletEditora?cmd=listar\");\r\n }\r\n rd.forward(request, response);\r\n }catch (Exception sqle){}\r\n // aqui esvia para o jsp\r\n }", "@Override\n\tpublic ActionForward update(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ActionForward update(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void process(Page page) {\n\t\t\n\t}", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "private void listingPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\n\t\trequest.setAttribute(\"files\", new FilesDAO().getFiles());\n\t\trequest.setAttribute(\"path\", path);\n\t\trequest.getRequestDispatcher(\"listingPage.jsp\").forward(request, response);\n\t}", "public void actualizar() {\n\n try {\n\n servtpDocumento.actualizarTipoDocumento(tipoDocumento);\n req = RequestContext.getCurrentInstance();\n req.execute(\"PF('dialogoTpDocuActualizar').hide();\");//Cierra el dialogo para actualizar\n req = null;\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Actualizado\", \"Exitoso\");\n\n } catch (Exception e) {\n MensajesFaces.error(\"Error\", \"detalle\" + e);\n\n }\n\n }", "private void processRequest(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {\n Cookie[] cookies = req.getCookies();\n for (Cookie cookie : cookies) {\n if (\"locale\".equals(cookie.getValue())) {\n req.setAttribute(\"lang\", cookie.getValue());\n if (LOCALE_RU.equals(cookie.getValue())) {\n MainController.messageManager.changeResource(new Locale(LOCALE_RU_VALUE, LOCALE_RU_VALUE.toUpperCase()));\n MainController.resourceManager.changeResource(new Locale(LOCALE_RU_VALUE, LOCALE_RU_VALUE.toUpperCase()));\n } else {\n MainController.messageManager.changeResource(Locale.US);\n MainController.resourceManager.changeResource(Locale.US);\n }\n }\n }\n\n String page = \"\";\n ActionFactory actionFactory = new ActionFactory();\n ActionCommand command = actionFactory.defineCommand(req, resp);\n try {\n page = command.execute(req, resp);\n } catch (CommandException e) {\n LOG.error(e);\n }\n if (page != null) {\n RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(page);\n dispatcher.forward(req, resp);\n } else {\n page = ConfigurationManager.getProperty(\"path.page.main\");\n req.getSession().setAttribute(\"emptyPage\",\n messageManager.getProperty(\"message.emptypage\"));\n resp.sendRedirect(req.getContextPath() + page);\n }\n }", "@Override\r\n\t\t\tprotected void respond(AjaxRequestTarget target) {\n\t\t\t\tchangePage.setDefaultModelObject(\"changed\");\r\n\t\t\t\ttarget.add(changePage);\r\n\t\t\t\t\r\n\t\t\t\t// voeg een stukje javascript toe aan het begin van de bestaande javascript\r\n\t\t\t\ttarget.prependJavaScript(\"window.location.href='\"+ urlFor(HomePage.class, null) +\"';\");\r\n\t\t\t\t\r\n\r\n\t\t\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n String login = request.getParameter(\"login\");\r\n String mdp = request.getParameter(\"password\");\r\n\r\n if (login != null && mdp != null && isLoginValid(login, mdp)) {\r\n HttpSession session = request.getSession();\r\n session.setAttribute(\"utilisateur\", request.getParameter(\"login\"));\r\n }\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n \r\n\r\n //response.sendRedirect(request.getContextPath());\r\n String cP = request.getParameter(\"currentPageAction\");\r\n String red = \"controleur?action=\" + cP;\r\n if(cP.equals(\"read\")) {\r\n red += \"&idBook=\" + request.getParameter(\"idBook\")\r\n + \"&idPara=\" + request.getParameter(\"idPara\");\r\n }\r\n response.sendRedirect(red);\r\n }", "protected abstract void iniciarModo();", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "@Override\r\n\tpublic void doUpdate(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\n protected void service(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = request.getSession();\n String fname = request.getParameter(\"languagename\"); \n FileReader fr = new FileReader(\"D:\\\\my project codehub\\\\abc\\\\web\\\\data_languageebook.txt\");\n BufferedReader br = new BufferedReader(fr);\n FileWriter fw = new FileWriter(\"D:\\\\my project codehub\\\\abc\\\\web\\\\E_\"+fname+\".jsp\");\n String s;\n while((s = br.readLine())!= null)\n {\n fw.write(s);\n fw.flush();\n }\n br.close();\n fw.close();\n RequestDispatcher rs = request.getRequestDispatcher(\"Copy_Content_For_User_Language?languagename=\"+fname);\n rs.forward(request, response);\n }", "@RequestMapping(value = \"/modify\", method=RequestMethod.POST) //보낼때 post로 보낸다..............용량 크거나 아이다 패스워드같은\n\tpublic String modify(HttpServletRequest request, Model model) {\n\t\tdao.modify(request.getParameter(\"bId\"), \n\t\t\t\trequest.getParameter(\"bName\"), \n\t\t\t\trequest.getParameter(\"bTitle\"), \n\t\t\t\trequest.getParameter(\"bContent\"));\n\t\treturn \"redirect:list\";\n\t}", "@Override\r\n\tpublic void visit(Page page) {\r\n\t\t// Some business logic I won't expose here\r\n\t\t// My boss won't be happy ;-)\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n HttpSession session = req.getSession();\r\n\r\n session.setAttribute(\"nombresDesLivres\", req.getParameter(\"nombres\"));\r\n \r\n /**\r\n * Recuperer de l'utilisateur en cours \r\n * et Mise en place de l'achat d'un livre\r\n */\r\n User user = userbean.allUsersList().get(0);\r\n Livre livreAchete = userbean.getUserLivres(user).get(Integer.parseInt(req.getParameter(\"item\")));\r\n session.setAttribute(\"livreAdd\", livreAchete);\r\n /**\r\n * renvoie de l'attribut message vers la page JSP DiscoveryJsp.jsp\r\n */\r\n req.setAttribute(\"message\", \"<a href=\\\"#\\\" class=\\\"btn btn-link\\\">\"\r\n + \"vous venez d'ajouter \" + req.getParameter(\"nombres\") + \" exemplaires du livre \" + livreAchete.getNom()\r\n \r\n + \" dans votre panier</a>\");\r\n this.getServletContext().getRequestDispatcher(\"/DiscoveryJsp.jsp\").forward(req, resp);\r\n\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(ManuDisplayPart.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void edit() {\n\n\t}", "public void sol_historiasolicitud(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"sol_historialsolicitud.xhtml\");\n }\n catch(Exception e){\n System.out.println(\"Error: \"+e);\n }\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t\tif(request.getParameter(\"btnAutorizar\")!=null) {\n\t\t\tint id = Integer.parseInt(request.getParameter(\"idPrestamo\").toString());\n\t\t\tfloat interes = Float.parseFloat(request.getParameter(\"interes\").toString());\n\t\t\tfloat pedido = Float.parseFloat(request.getParameter(\"pedido\").toString());\n\t\t\tfloat importeFinal=pedido+interes;\n\t\t\tPrestamosNegocioImplement cNeg = new PrestamosNegocioImplement();\n\t\t\t\n\t\t\tmovimientosNegocioImplement mNeg = new movimientosNegocioImplement();\n\t\t\t\n\t\t\tmovimientos mov = new movimientos();\n\t\t\t\n\t\t\tmov.setN_Cuenta(Integer.parseInt(request.getParameter(\"nroCuenta\")));\n\t\t\tmov.setImporte(importeFinal);\n\t\t\tmov.setDetalle(\"Se autorizo el prestamo solicitado\");\n\t\t\t\n\t\t\tmNeg.insertAltaPrestamo(mov);\n\t\t\tcNeg.autorizar(id);\n\t\t\t\n\t\t\tdoGet(request, response);\n\t\t} \n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t request.setCharacterEncoding(\"utf-8\");\n\t\t this.request=request;\n\t\t this.response=response;\n\t\t status = request.getParameter(\"status\");\n\t\t session=this.request.getSession();\n\t\t if(request.getParameter(\"pageNum\")!=null){\n\t \ttry{\n\t currentpage=Integer.parseInt(request.getParameter(\"pageNum\"));\n\t \t}catch(Exception e){e.printStackTrace();}\n\t }\n\t\t this.manage();\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n \r\n Note n = noteWrite(request);\r\n request.setAttribute(\"note\", n);\r\n getServletContext().getRequestDispatcher(\"/WEB-INF/viewnote.jsp\").forward(request, response);\r\n //System.out.println(\"POST Request:\");\r\n //System.out.println(\"doPost():\");\r\n \r\n \r\n }", "@Override\n\tprotected String onUpdate(HttpServletRequest req, HttpServletResponse resp, FunctionItem fi,\n\t\t\tHashtable<String, String> params, String action, L l, S s) throws Exception {\n\t\treturn null;\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n {\r\n String idTemp = request.getParameter(\"id\");\r\n int id = Integer.parseInt(idTemp);\r\n request.setAttribute(\"obterCliente\", DAO.obterCliente(id));\r\n RequestDispatcher rd = request.getRequestDispatcher(\"EditarCliente.jsp\");\r\n try {\r\n rd.forward(request, response);\r\n } catch (ServletException | IOException ex) {\r\n Logger.getLogger(EditarCliente.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "boolean openPageInEditMode();", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ModifierProfil.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\treq.setAttribute(\"message\", \"Bienvenue sur ce site en MVC\");\r\n\t\tRequestDispatcher rq = getServletContext().getRequestDispatcher(\"/WEB-INF/formulaire.jsp\");\r\n\t\trq.forward(req, resp);\r\n\t}", "public void changeUrl() {\n url();\n }", "public void handleStatuScode(Page page);", "public void process(Page page) {\n\t\t\t\tgetContent(page);\n\t\t\t}", "@Override\n\tpublic ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tList<NoticeDto> articleList=new ArrayList<NoticeDto>();\n\t\tint code = Integer.parseInt(request.getParameter(\"code_no\"));\n\t\tNT_BoardModifyReadService boardModifyReadService = new NT_BoardModifyReadService();\n\t\tarticleList=boardModifyReadService.NTmodifyReadtService(code);\n\t\trequest.setAttribute(\"articleList\", articleList);\n\t\tActionForward forward= new ActionForward();\n \t\tforward.setPath(\"/NT_Update.jsp\");\n\t\t\n \t\treturn forward;\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n req.getRequestDispatcher(\"/WEB-INF/pages/updateCharacter.jsp\").forward(req, resp);\n }", "void save(JournalPage page);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n RequestDispatcher rd = null;\n\n SimpleDateFormat formatDate = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n String genre = request.getParameter(\"genre\");\n\n String nom = request.getParameter(\"nom\");\n\n String prenom = request.getParameter(\"prenom\");\n\n int codeU = Integer.parseInt(request.getParameter(\"codeU\"));\n\n String datenaissance = request.getParameter(\"date\");\n\n String tel = request.getParameter(\"tel\");\n\n String mail1 = request.getParameter(\"mail1\");\n\n bd newbd = new bd();\n\n int i = 0;\n\n i = newbd.modifUtilisateur(codeU, genre, nom, prenom, datenaissance, tel, mail1);\n\n if (i != 0) {\n\n out.println(\"<script LANGUAGE='JavaScript'>\");\n out.println(\"alert('vos informations n'ont pas été prisent en compte);window.location='pageClient.jsp'\");\n out.println(\"</script>\");\n\n rd = request.getRequestDispatcher(\"pageClient.jsp\");\n rd.forward(request, response);\n } else {\n\n out.println(\"<script LANGUAGE='JavaScript'>\");\n out.println(\"alert('modification bien prise en compte);\");\n out.println(\"</script>\");\n out.println(\"outttttt\");\n\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, NamingException {\n TemplateResult res = new TemplateResult(getServletContext());\n HttpSession session = SecurityLayer.checkSession(request);\n LibriOnLineDataLayer dl = new LibriOnLineDataLayerMysqlImpl();\n \n if(session != null){\n request.setAttribute(\"stato_log\", \"Logout\");\n\n if(dl.isAdmin((String)session.getAttribute(\"username\"))){\n request.setAttribute(\"bibliotecario\",true);\n request.setAttribute(\"tipologia_utente\",\"Bibliotecario\");\n \n String update = request.getParameter(\"Modifica Libro\");\n \n if(update == null){\n String isbn = request.getParameter(\"id\");\n Libro libro = dl.searchByIsbn(isbn);\n Collection<Autore> autori = libro.getAutoreCollection();\n Collection<Autore> autorinotautori = dl.notAuthor(isbn);\n Collection<Tag> tags = libro.getTagCollection();\n Collection<Tag> tagsnottags = dl.notAtag(isbn);\n \n request.setAttribute(\"title\", \"Modifica libro\");\n request.setAttribute(\"libro\", libro);\n request.setAttribute(\"autori\", autori);\n request.setAttribute(\"autorinotautori\", autorinotautori);\n request.setAttribute(\"tags\", tags);\n request.setAttribute(\"tagsnottags\", tagsnottags);\n request.setAttribute(\"navigazione\",\"<a href='Home'>Homepage</a> -> <a href='Visualizza'>Modifica</a> -> <a href='VisualizzaLibri'>VisualizzaLibri</a>\");\n res.activate(\"backoffice_updatelibro.ftl.html\", request, response);\n }\n \n else if(update.equals(\"Modifica Libro\")){\n String isbn = request.getParameter(\"updatebook_isbn\");\n String titolo = request.getParameter(\"updatebook_titolo\");\n String editore = request.getParameter(\"updatebook_editore\");\n String annoPubblicazione = request.getParameter(\"updatebook_annopubblicazione\");\n String recensione = request.getParameter(\"updatebook_recensione\");\n String lingua = request.getParameter(\"updatebook_lingua\");\n String[] autore = request.getParameterValues(\"updatebook_autore\");\n String[] tag = request.getParameterValues(\"updatebook_tag\");\n int id_lingua = Integer.parseInt(lingua);\n boolean result = analizza_form_libro(request, response);\n \n if(result){\n if(dl.modificaLibro(isbn, titolo, editore, annoPubblicazione, recensione, id_lingua, autore, tag)){\n request.setAttribute(\"messaggio\", \"Libro modificato correttamente!\");\n }\n else{\n request.setAttribute(\"messaggio\", \"Libro non modificato!\");\n }\n Libro object_libro = dl.searchByIsbn(isbn);\n Collection<Autore> autori = object_libro.getAutoreCollection();\n Collection<Autore> autorinotautori = dl.notAuthor(isbn);\n Collection<Tag> tags = object_libro.getTagCollection();\n Collection<Tag> tagsnottags = dl.notAtag(isbn);\n \n request.setAttribute(\"title\", \"Modifica libro\");\n request.setAttribute(\"libro\", object_libro);\n request.setAttribute(\"autori\", autori);\n request.setAttribute(\"autorinotautori\", autorinotautori);\n request.setAttribute(\"tags\", tags);\n request.setAttribute(\"tagsnottags\", tagsnottags);\n res.activate(\"backoffice_updatelibro.ftl.html\", request, response);\n }\n else{\n Libro object_libro = dl.searchByIsbn(isbn);\n Collection<Autore> autori = object_libro.getAutoreCollection();\n Collection<Autore> autorinotautori = dl.notAuthor(isbn);\n Collection<Tag> tags = object_libro.getTagCollection();\n Collection<Tag> tagsnottags = dl.notAtag(isbn);\n \n request.setAttribute(\"title\", \"Modifica libro\");\n request.setAttribute(\"libro\", object_libro);\n request.setAttribute(\"autori\", autori);\n request.setAttribute(\"autorinotautori\", autorinotautori);\n request.setAttribute(\"tags\", tags);\n request.setAttribute(\"tagsnottags\", tagsnottags);\n request.setAttribute(\"messaggio\", \"Update libro Fallito\");\n res.activate(\"backoffice_updatelibro.ftl.html\", request, response);\n }\n }\n else{\n String isbn = request.getParameter(\"updatebook_isbn\");\n \n Libro libro = dl.searchByIsbn(isbn);\n Collection<Copiaelettronica> ce = libro.getCopiaelettronicaCollection();\n\n if(!ce.isEmpty()){\n for(Copiaelettronica c : ce){\n InitialContext ctx = new InitialContext();\n \n String path = getServletContext().getInitParameter(\"copieelettroniche\");\n String filename = (getServletContext().getRealPath(path+\"/\"+c.getUrl()));\n File f = new File(filename);\n if (!f.exists())\n throw new IllegalArgumentException(\n \"Delete: no such file or directory: \" + filename);\n\n if (!f.canWrite())\n throw new IllegalArgumentException(\"Delete: write protected: \"\n + filename);\n\n // If it is a directory, make sure it is empty\n if (f.isDirectory()) {\n String[] files = f.list();\n if (files.length > 0)\n throw new IllegalArgumentException(\n \"Delete: directory not empty: \" + filename);\n }\n\n // Attempt to delete it\n boolean success = f.delete();\n if(success){\n dl.eliminaLibro(isbn);\n response.sendRedirect(\"VisualizzaLibri\");\n }\n\n if (!success)\n throw new IllegalArgumentException(\"Delete: deletion failed\");\n }\n }\n else{\n dl.eliminaLibro(isbn);\n response.sendRedirect(\"VisualizzaLibri\");\n }\n }\n }\n else{\n request.setAttribute(\"bibliotecario\",false);\n request.setAttribute(\"tipologia_utente\",\"Utente\");\n response.sendRedirect(\"Home\");\n }\n }\n else{\n response.sendRedirect(\"Home\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n try (PrintWriter out = response.getWriter()) {\n String accion= Consultas.getAttrib(request, \"accion\");\n \n String id= Consultas.getAttrib(request, \"_id\");\n String fkauto= Consultas.getAttrib(request, \"_idauto\");\n String imei= Consultas.getAttrib(request, \"_imei\");\n String nombre= Consultas.getAttrib(request, \"_nombre\");\n String clave= Consultas.getAttrib(request, \"_clave\");\n \n switch(accion){\n case \"insertarDispositivo\":\n System.out.println(\"Insertando datos... fkauto \" +fkauto+\" imei \"+ imei+\" nombre: \"+nombre+\" clave \"+clave);\n out.println(\"<script type=\\\"text/javascript\\\">\");\n out.println(\"alert('\"+insertarDispositivos(fkauto,imei,nombre,clave)+\"');\");\n out.println(\"window.location = 'registrarDispositivos.jsp';\");\n out.println(\"</script>\");\n break;\n case \"eliminarDispositivo\":\n System.out.println(\"eliminar...\");\n out.println(\"<script type=\\\"text/javascript\\\">\");\n out.println(\"alert('\"+eliminarDispositivos(id)+\"');\");\n out.println(\"window.location = 'registrarDispositivos.jsp';\");\n out.println(\"</script>\");\n break;\n case \"actualizarDispositivo\":\n System.out.println(\"actualizar... id=\"+id);\n out.println(\"<script type=\\\"text/javascript\\\">\");\n out.println(\"alert('\"+actualizarDispostivo(id,fkauto,imei,nombre,clave)+\"');\");\n out.println(\"window.location = 'registrarDispositivos.jsp';\");\n out.println(\"</script>\");\n break;\n }\n }\n \n }", "@Override\nprotected void doPage(Frame frame,Circuit circuit, IPlug plug, PageContext ctx) {\n\t\n}", "public void viePage(URL link) throws IOException\n {\n this.mainEditorPane.setPage(link);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String action = request.getParameter(\"action\");\r\n userBean.setSession(request.getSession());\r\n if ((action != null) && (action.equals(\"create\")) && userBean.isModeratorRights()) {\r\n String partid = request.getParameter(\"part\");\r\n String name = request.getParameter(\"name\");\r\n String _text = request.getParameter(\"text\");\r\n Parts part = null;\r\n if (partid!=null) {\r\n part = partBean.get(Integer.valueOf(partid));\r\n } else {\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n Acts act = actBean.create(part);\r\n Texts text = textBean.create(name, _text);\r\n historyBean.create(act,text,userBean.getUser());\r\n response.sendRedirect(request.getContextPath() + \"/part?action=list&part=\"+partid);\r\n } else if((action != null) && (action.equals(\"addedition\")) && userBean.isModeratorRights()) {\r\n String actid = request.getParameter(\"act\");\r\n String name = request.getParameter(\"name\");\r\n String _text = request.getParameter(\"text\");\r\n Acts act = null;\r\n if (actid!=null) {\r\n act = actBean.get(Integer.valueOf(actid));\r\n } else {\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n Texts text = textBean.create(name, _text);\r\n historyBean.create(act,text,userBean.getUser());\r\n response.sendRedirect(request.getContextPath() + \"/part?action=list&part=\"+act.getParts().getId().toString()); \r\n } else {\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n }", "@Override\n public void execute(\n HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException {\n ServletContext context = request.getSession().getServletContext();\n context.getRequestDispatcher(\"/EntryDataForNewUser.jsp\").forward(request, response);\n //context.getRequestDispatcher(request.getHeader(\"referer\")).forward(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tBlogUser loggedInUser = DAOProvider.getDAO()\n\t\t\t\t.getBlogUser(\n\t\t\t\t\t\t(long) req.getServletContext()\n\t\t\t\t\t\t.getAttribute(\"current.user.id\")\n\t\t\t\t\t\t);\n\t\tString pathSplit[] = req.getPathInfo().substring(1).split(\"/\");\t\n\t\t// [0] - nick, [1] - option\n\t\tSystem.out.println(req.getPathInfo());\n\t\tswitch(pathSplit[1]) {\n\t\tcase \"addcomment\":\n\t\t\tBlogComment newComm = new BlogComment();\n\t\t\tnewComm.setBlogEntry(\n\t\t\t\t\tDAOProvider.getDAO().getBlogEntry(\n\t\t\t\t\t\t\tLong.parseLong(req.getParameter(\"entryID\"))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\tnewComm.setMessage(req.getParameter(\"message\"));\n\t\t\ttry {\n\t\t\t\tnewComm.setPostedOn(\n\t\t\t\t\t\tdateFormat.parse(req.getParameter(\"postedOn\").trim()));\n\t\t\t} catch (ParseException ignorable) {}\n\t\t\tnewComm.setUsersEMail(req.getParameter(\"usersEMail\"));\n\t\t\tDAOProvider.getDAO().save(newComm);\n\t\t\tresp.sendRedirect(\"/aplikacija4/servleti/author/\"\n\t\t\t\t\t+ pathSplit[0] + \"/\" \n\t\t\t\t\t+ req.getParameter(\"entryID\"));\n\t\t\tbreak;\n\t\tcase \"new\":\n\t\t\tBlogEntry newEntry = new BlogEntry();\n\t\t\tnewEntry.setTitle(req.getParameter(\"title\"));\n\t\t\tnewEntry.setText(req.getParameter(\"text\"));\n\t\t\tnewEntry.setCreator(loggedInUser);\n\t\t\ttry {\n\t\t\t\tnewEntry.setCreatedOn(dateFormat.parse(req.getParameter(\"createdOn\")));\n\t\t\t} catch (ParseException ignorable) {}\n\t\t\tDAOProvider.getDAO().save(newEntry);\n\t\t\tresp.sendRedirect(\"/aplikacija4/servleti/author/\"\n\t\t\t\t\t+ loggedInUser.getNick());\n\t\t\tbreak;\n\t\tcase \"edit\":\n\t\t\tlong id = Long.parseLong(req.getParameter(\"entryID\"));\n\t\t\tString message = req.getParameter(\"text\");\n\t\t\tString title = req.getParameter(\"title\");\n\t\t\tDate lastModifiedOn = null;\n\t\t\ttry {\n\t\t\t\tlastModifiedOn = dateFormat.parse(req.getParameter(\"lastModifiedOn\"));\n\t\t\t} catch (ParseException ignorable) {}\n\t\t\tif(loggedInUser.equals(\n\t\t\t\t\tDAOProvider.getDAO()\n\t\t\t\t\t.getBlogEntry(id)\n\t\t\t\t\t.getCreator())) {\n\t\t\t\t// some security\n\t\t\t\tDAOProvider.getDAO().update(id, title, message, lastModifiedOn);\n\t\t\t}\n\t\t\tresp.sendRedirect(\"/aplikacija4/servleti/author/\"\n\t\t\t\t\t+ loggedInUser.getNick() + \"/\" + req.getParameter(\"entryID\"));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "@Override\n public void PageFistLoad() {\n }", "@Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String editpage() {\n if (crudTableForm.crudMode != CommonConstants.EDIT_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.EDIT_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"edit.jsp\";\n }", "@Override\n protected void doGet(HttpServletRequest requete, HttpServletResponse reponse) throws ServletException, IOException {\n Integer idSousTournoiRecherche = tentativeRecuperationIdSousTournoi(requete);\n if (idSousTournoiRecherche == null){\n envoyerReponseMauvaisId(reponse);\n }\n else{\n SousTournoiDto sousTournoiTrouve = sousTournoiService.consulterSousTournoiSeul(idSousTournoiRecherche);\n if(sousTournoiTrouve != null){\n envoyerReponseRecuperationSousTournoi(sousTournoiTrouve, reponse);\n }\n else{\n envoyerReponseSousTournoiIntrouvable(reponse);\n }\n }\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tHttpSession session = req.getSession();\n\t\tcurrentUser = (User) session.getAttribute(\"CurrentUser\");\n\t\tif(currentUser != null)\n\t\t{\n\t\t\tcurrentProject = (Project) session.getAttribute(\"CurrentProject\");\n\t\t\tif(currentProject != null)\n\t\t\t{\n\t\t\t\t// Response\n\t\t\t\t\n\t\t\t\t// Obtain the Project Name we're looking @ currently\n\t\t\t\tString pageName = getPageName(req);\n\t\t\t\tString action = req.getParameter(\"action\");\n\t\t\t\t\n\t\t\t\t// There is an action set... Use it!\n\t\t\t\tif(action != null && !action.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\t// Which action?\n\t\t\t\t\tif(action.trim().equals(\"edit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Edit the page (WEBTOOL)\n\t\t\t\t\t}\n\t\t\t\t\telse if(action.trim().equals(\"delete\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Delete the current page\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(action.trim().equals(\"newpage\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Obtain the project detail\n\t\t\t\t\t\tString tempPageName = (String) req.getParameter(\"pageName\");\n\t\n\t\t\t\t\t\t// Stuff the details in a project model class\n\t\t\t\t\t\tPage tempPage = new Page(tempPageName);\n\t\t\t\t\t\t// Add the project to the database using the controller\n\t\t\t\t\t\tAddPage addPageController = new AddPage();\n\t\t\t\t\t\tPage returnedPage = addPageController.addPage(tempPage);\n\t\t\t\t\t\tif(returnedPage != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// AddProject was successful add an entry to the User|Project registry\n\t\t\t\t\t\t\tAddPageRegEntry pageRegController = new AddPageRegEntry();\n\t\t\t\t\t\t\tboolean success = pageRegController.addPageRegEntry(currentProject.getProjectID(),returnedPage.getPageID());\n\t\t\t\t\t\t\tif(success)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Redirect to back to the MyProjectList\n\t\t\t\t\t\t\t\treq.setAttribute(\"action\", \"view\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Error add User|Project entry to registry failed\n\t\t\t\t\t\t\t\treq.setAttribute(\"result\",\"Add Entry to Project|Page Registry Failed Unexpectedly...\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Error create new project failed\n\t\t\t\t\t\t\treq.setAttribute(\"result\", \"Create New Page Failed Unexpectedly...\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// Unknown action throw an exception\n\t\t\t\t\t\tthrow new ServletException(\"Unknown action: \" + action);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display the new UI after the post has been completed\n\t\t\t\t\tshowUI(req,resp,pageName);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is empty, simply display the UI\n\t\t\t\t\tshowUI(req,resp,pageName);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// No Project data in session, redirect to Login...\n\t\t\t\treq.setAttribute(\"result\", \"You didn't select a project, Please select a project\");\n\t\t\t\tresp.sendRedirect(req.getContextPath() + \"/MyProjects\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No User data in session, redirect to Login...\n\t\t\treq.setAttribute(\"result\", \"You are not logged in, Please log in\");\n\t\t\tresp.sendRedirect(req.getContextPath() + \"/Login\");\n\t\t}\n\t}", "protected void procActivos(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response);\n\t}", "public void hyperlinkUpdate(HyperlinkEvent event) {\r\n\t\t// TODO add open link in default browser\r\n\t\tif (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\r\n\t\t\ttry {\r\n\t\t\t\th.setPage(event.getURL());\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tioe.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String titre = request.getParameter(\"titre\");\n String texte = request.getParameter(\"texte\");\n String action = request.getParameter(\"action\");\n String jspPage =\"index.jsp\";\n String message =\"\";\n boolean isAdded =false;\n \n if ((action == null) || (action.length() < 1)) {\n action = \"retour\";\n } \n if (\"ajouter\".equalsIgnoreCase(action)) {\n if(\"\".equals(titre) || \"\".equals(texte) && titre ==null && texte ==null){\n message=\"le titre et le texte ne doivent pas etre vide\";\n jspPage =\"index.jsp\";\n }else{\n isAdded = tools.addArticle(titre, texte);\n if (isAdded){\n message=\"Votre article a ete bien ajoute !\";\n jspPage =\"result.jsp\";\n }else{\n message=\"Votre article n est pas pu bien ajoute \";\n jspPage =\"index.jsp\";\n }\n }\n request.setAttribute(\"message\", message);\n request.setAttribute(\"titre\", titre);\n request.setAttribute(\"texte\", texte);\n request.setAttribute(\"isAdded\", isAdded);\n }else{\n jspPage =\"index.jsp\";\n }\n dispatch(jspPage, request, response);\n \n }", "private void pageManufacturer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/PageManufacturer.jsp\");\n\t}", "@Override\r\n\tpublic String execute(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\t\r\n\t\tordDAO odao = new ordDAO();\r\n\t\tString ordno = request.getParameter(\"ord_no\");\r\n\t\t\r\n\t\todao.updateOrdStat(Integer.parseInt(ordno));\r\n\t\t\r\n\t\treturn \"redirect:/youshoes/orderHistory.do\";\r\n\t}", "void doRefreshContent();", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "protected void editArticle(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tArticleDAO articleDAO = ArticleDAO.getInstance();\r\n\r\n\t\t// Parsing the parameter to an int\r\n\t\tint id = Integer.parseInt(request.getParameter(\"article\"));\r\n\t\t// Getting all the articles as a list\r\n\t\tArticle a = articleDAO.getByArticleID(id);\r\n\t\t\r\n\t\tString action = request.getParameter(\"articleAction\");\r\n\t\t\r\n\t\tif( action != null && action.equals(\"update\")){\r\n\t\t\t//Article updateArticle = (Article) request.getAttribute(\"Article\");\r\n\t\t\tString title = request.getParameter(\"title\");\r\n\t\t\tString body = request.getParameter(\"body\");\r\n\t\t\ta.setTitle(title);\r\n\t\t\ta.setBody(body);\r\n\t\t\tarticleDAO.updateArticle(a);\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\trequest.setAttribute(\"Article\", a);\r\n\t\t\r\n\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/editArticle.jsp\");\r\n\t\tdispatcher.forward(request, response);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n if(!(request == null||(response == null))){\n processRequest(request, response);\n }\n } catch (RepositoryException ex) {\n Logger.getLogger(Viewer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Integer id_loja = Integer.parseInt(request.getParameter(\"id_loja\"));\r\n String nome_loja = request.getParameter(\"nome_loja\");\r\n \r\n String tipo_loja = request.getParameter(\"tipo_loja\");\r\n String endereco = request.getParameter(\"endereco\");\r\n String telefone = request.getParameter(\"telefone\");\r\n Integer id_cliente = Integer.parseInt(request.getParameter(\"id_cliente\"));\r\n Loja loja = new Loja(id_loja, nome_loja, tipo_loja, endereco, telefone, id_cliente);\r\n boolean ok = LojaDAO.atualizar(loja);\r\n Utils.sendRedirect(ok, response);\r\n\r\n }", "public void hyperlinkUpdate(HyperlinkEvent e) \n {\n\t\tif (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) \n {\n \tJEditorPane pane = (JEditorPane) e.getSource();\n \tif (e instanceof HTMLFrameHyperlinkEvent) \n \t{\n \t\tHTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent)e;\n \t\tHTMLDocument doc = (HTMLDocument)pane.getDocument();\n \t\tdoc.processHTMLFrameHyperlinkEvent(evt);\n \t}\n \telse \n \t{\n \t\ttry \n \t\t{\n \t\t\tpane.setPage(e.getURL());\n \t\t}\n \t\tcatch (Throwable t) \n \t\t{\n \t\t\tt.printStackTrace();\n \t\t}\n \t}\n }\n }", "@Override\n\tpublic String execute(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString id = (String) request.getSession().getAttribute(\"memberId\");\n\n\t\trequest.setAttribute(\"id\", id);\n\t\trequest.setAttribute(\"doneStatus\", \"before\");\n\t\t\n\t\tString path = \"aView/chorong/medList.jsp\";\n\t\treturn path;\n\t}", "public void actualizar();" ]
[ "0.66324836", "0.64766765", "0.643631", "0.61927205", "0.6126477", "0.5966936", "0.59578097", "0.59437114", "0.5934959", "0.58861923", "0.58649427", "0.5854672", "0.5834881", "0.5833647", "0.5827974", "0.57988316", "0.57764864", "0.5757782", "0.5753617", "0.57429916", "0.57332885", "0.57274216", "0.5706778", "0.56965625", "0.56921065", "0.5689548", "0.56822896", "0.5669999", "0.5666927", "0.5660097", "0.5658186", "0.56527376", "0.56498647", "0.5648863", "0.5646934", "0.5635284", "0.56315523", "0.56192946", "0.56137896", "0.5611323", "0.5609924", "0.5607774", "0.5607774", "0.5607288", "0.5605501", "0.5600374", "0.55950344", "0.5587689", "0.5582725", "0.55806786", "0.5576694", "0.5575972", "0.55656683", "0.5559611", "0.55522627", "0.55454886", "0.5544196", "0.55408055", "0.5517237", "0.55156606", "0.55095595", "0.5507314", "0.55038226", "0.5503257", "0.5501103", "0.5500048", "0.5499895", "0.5489922", "0.5489278", "0.548781", "0.5480449", "0.5477436", "0.54704094", "0.5459294", "0.5453039", "0.544762", "0.5442928", "0.5439842", "0.5439193", "0.5436724", "0.5433531", "0.54318696", "0.54298717", "0.5428609", "0.5427835", "0.5425567", "0.5423426", "0.54214203", "0.5419564", "0.54173666", "0.54160416", "0.5411576", "0.5405391", "0.5404495", "0.53961563", "0.53939533", "0.5386367", "0.538551", "0.53836054", "0.5382904", "0.53791684" ]
0.0
-1
Ne pas inclure les attributs d'association. "employeSuperieur","groupes"
public Employe(String nomEmploye) { super(); this.nomEmploye = nomEmploye; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();", "TypeAssociation getAssocieCommeSujetEvenementNRBC();", "public GestoreAule() {\n this.aule = new HashSet<>();\n }", "private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public void setProprietaire(Joueur proprietaire) {\n\t\tthis.proprietaire = proprietaire;\n\t}", "public void afficher() {\n\t\tfor(int i=0;i<this.taille;i++) {\n\t\t\tfor (int j=0;j<this.taille;j++) {\n\t\t\t\tSystem.out.print(grille.get(i).get(j).getTypeOccupation()+\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t}", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public Set<String> Atributos()\n {\n return this.repositorio.keySet();\n }", "public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }", "public CompositePersonne() {\n\t\tthis.nomGroupe = \" \";\n\t\tthis.personnel = new ArrayList<InterfacePersonne>();\n\n\t}", "@Override\n\tpublic void agregar(Alumno alumno) {\n\t\tcomision.add(alumno);\n\t}", "public void nouvelleRelation(String formule,String commentaire, EOGenericRecord ecEnCours) {\r\n\t\tEOClassDescription descriptionIPrelation = EOClassDescription.classDescriptionForEntityName(\"IpRelationChoixEc\");\r\n\t\tEOGenericRecord nouvIpRelation=(EOGenericRecord)descriptionIPrelation.createInstanceWithEditingContext(null, null);\r\n\r\n\t\tmonEcSsShared.insertObject(nouvIpRelation);\r\n\t\tnouvIpRelation.takeValueForKey(formule,\"rceFormuleContrainte\");\t// normallement la clé primaire est attribuée d'office\r\n\t\tnouvIpRelation.takeValueForKey(commentaire,\"rceCommentaireContrainte\");\r\n\t\tSystem.out.println(\"ecEnCours ::::::::: \" + ecEnCours);\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"fannKey\"), \"fannKey\");\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"mrecKey\"), \"mrecKeyCible\");\r\n\t\tnouvIpRelation.takeValueForKey(eoDiplSelected.valueForKey(\"msemKey\"), \"msemKey\");\r\n\t\tnouvIpRelation.takeValueForKey(\"L\", \"rceTypeRelation\");\r\n\t\tmonEcSsShared.saveChanges();\r\n\t}", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "Dimension_hauteur createDimension_hauteur();", "public String getParticulierAssociation() {\r\n\t\treturn particulierAssociation;\r\n\t}", "TypeAssociation getAssocieCommeObjetAdresse();", "public TipoCaracteresException() {\n\t\tsuper(\"Los campos 'nombre' y ' apellido' solo pueden contener letras\");\n\t}", "private Ingrediente givenExisteUnIngrediente() {\n\t\tIngrediente ing = new Ingrediente();\n\t\ting.setId_categoriaIngrediente(1);\n\t\ting.setNombre(\"TOMATE\");\n\t\treturn ing;\n\t}", "@Override\n\tpublic void setDefaultAttributes() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tattrCatAry.add(\"SUBJECT\");\n\t\tattrTypeAry.add(\"STRING\");\n\t\tattrIdAry.add(\"com.axiomatics.emailAddress\");\n\t\tattrValAry.add(auth.getName());\n\t\tCollection<?> authorities = auth.getAuthorities();\n\t\tfor (Iterator<?> roleIter = authorities.iterator(); roleIter.hasNext();) {\n\t\t\tGrantedAuthority grantedAuthority = (GrantedAuthority) roleIter.next();\n\t\t\tattrCatAry.add(\"SUBJECT\");\n\t\t\tattrTypeAry.add(\"STRING\");\n\t\t\tattrIdAry.add(\"role\");\n\t\t\tattrValAry.add(grantedAuthority.getAuthority());\n\t\t}\n\t}", "@Override\n\tpublic void uiDecisionSetDefaultAttributes() {\n\t\t// Add default attributes for decisions related to UI elements access\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tattrCatAry.add(\"SUBJECT\");\n\t\tattrTypeAry.add(\"INTEGER\");\n\t\tattrIdAry.add(\"com.axiomatics.seniority\");\n\t\tInteger seniority = null;\n\t\ttry {\n\t\t\tseniority = userRepository.findByEmail(auth.getName()).getSeniority();\n\t\t} catch (Exception e) {\n\t\t\tlog.info(e.toString());\n\t\t}\n\t\tattrValAry.add(seniority);\n\t\tlog.info(\"UI DECISION SET DEFAULT ATTRIBUTE WORKING...\");\n\n\t}", "private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "@Override\r\n\tpublic String getTipoPersona() {\n\t\treturn \"alumno del curso \" + curso + \" de \" + grupo + \" de \" + tipoEstudios ;\r\n\t\t\r\n\t}", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }", "public Profesor(String nombre, String direccion, String telefono, String email, String despacho, int salario,\n\t\t\tGregorianCalendar fecha, String tutoria, int categoria) {\n\t\tsuper(nombre, direccion, telefono, email, despacho, salario, fecha);\n\t\tthis.tutoria = tutoria;\n\t\tthis.categoria = categoria;\n\t}", "private void setEntropiaP(Map<String, Integer> categoriasPresenca, int totalPresenca) {\n\t\t\n\t}", "@Override\n public void buildPersonalidad() {\n this.personaje.setPersonalidad(\"Pacientes y estrategas.\");\n }", "public final void nonRedefinissableParEnfant(){\n\n }", "public Participante() {\n\t\tsuper();\n\t\tthis.nombreCompleto = \"\";\n\t\tthis.dni = \"\";\n\t\tthis.telefono = \"\";\n\t\tthis.fechaDeNacimiento = Date.valueOf(\"1977-11-14\");\n\t\tthis.direccion = \"\";\n\t\tthis.codigoPostal = \"\";\n\t\tthis.municipio = \"\";\n\t\tthis.provincia = \"\";\n\t\tthis.erte = false;\n\t\tthis.situacionLaboral = \"\";\n\t\tthis.situacionAdministrativa = \"\";\n\t\tthis.titulacion = \"\";\n\t\tthis.guardado = false;\n\t}", "TypeAssociation getAssocieCommeSujetInstanceObjet();", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "@Override\r\n\tpublic void addAssociations(Criteria criteria) {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"patient.id\", immunization\r\n\t\t\t\t\t.getPatient().getId()));\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"vaccine.id\", immunization\r\n\t\t\t\t\t.getVaccine().getId()));\r\n\t\t}\r\n\r\n\t}", "void mostrarAtributos() {\n\t\tString mensaje = \"nombre=\" + nombre + \", apellido=\" + apellido + \", tipoDocumento=\" + tipoDocumento\n\t\t\t\t+ \", numeroDocumento=\" + numeroDocumento + \", edad=\" + edad + \" y es \"\n\t\t\t\t+ (edad >= 18 ? \"mayor de edad\" : \"menor de edad\");\n\t\tSystem.out.println(mensaje);\n\t}", "public void cobrarCuotaDeSocios(Equipo e){\n\t\te.setCapital(e.getCapital()+e.getSocios());\n\t\tem.merge(e);\n\t\tingresarTransaccion(e,e.getPublicidad(), EnumTipoTransaccion.SOCIOS);\n\t\t\n\t}", "void cascade(Attributes attributes);", "@Override\n public void afficher() {\n super.afficher();\n System.out.println(\"Sexe : \" + getSexe());\n System.out.println(\"Numéro de sécurité sociale : \" + getNumeroSecuriteSociale());\n System.out.println(\"Date de naissance : \" + getDateDeNaissance().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG)));\n System.out.println(\"Commentaires : \" + getCommentaires());\n this.adresse.afficher();\n }", "private static void concretizarAtribuicao(String nome) {\n\t\tif (gestor.atribuirLugar(nome))\n\t\t\tSystem.out.println(\"ATRIBUICAO de lugar a \" + nome);\n\t\telse\n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel atribuir lugar a \" + nome);\n\t}", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "public void setStatoCorrente(Stato prossimo)\r\n\t{\r\n\t\tif(!(corrente==null))\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto NON attiva la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(false);\r\n\t\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Imposto lo stato corrente: \"+prossimo.toString());\r\n\t\tcorrente=prossimo;\r\n\t\tif(!(corrente==null))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Attivo le transazioni \"+corrente.getTransazioniUscenti().size());\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto ATTIVA la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "TypeAssociationEXT getEstPourTypeMateriel();", "public CensoSeccionE() {\n this.columnName1=\"\";\n this.columnName2=\"\";\n this.Total_institu=0;\n this.Total_severo=0;\n }", "public EspecialidadEntity getEspecialidad ()\r\n {\r\n return this.especialidad;\r\n }", "public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }", "public Profesor (String apellidos, String nombre, String nif, Persona.sexo genero, int edad, int expediente){\n this.apellidos = apellidos;\n this.nombre = nombre;\n this.nif = nif;\n this.genero = genero;\n this.edad = edad;\n this.expediente = expediente;\n }", "public void carregarAno() {\n\t\tif (usuario.getOrganizacaoMilitar().toString().equals(\"AMAN\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t}\n\t\telse if (usuario.getOrganizacaoMilitar().toString().equals(\"ECEME\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t\tano.remove(Ano.TERCEIRO);\n\t\t\tano.remove(Ano.QUARTO);\n\t\t}\n\t\telse{\n\t\t\tcarregarRegistroDoPrimeiroAno();\n\t\t}\n\t}", "public void setAuteur(String auteur) {\n this.auteur = auteur;\n }", "public KoleksiRelationExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public void disableAddAssociation() {\n System.out.println(\"disable add affliation\");\n teams_addAssociation.setDisable(false);\n teams_removeAssociation.setDisable(true);\n }", "public GWDPEXPRESS_MY_ACHIEVEMENTS()\n{\najouterFenetre(\"EXPRESS_FEN_Search\", mWD_EXPRESS_FEN_Search);\najouterFenetre(\"EXPRESS_FEN_Profil\", mWD_EXPRESS_FEN_Profil);\najouterFenetre(\"EXPRESS_FEN_Achievement\", mWD_EXPRESS_FEN_Achievement);\n\n}", "TypeAssociationEXT getAPourDonneurOrdreUnite();", "public Education() {\n\t\tsuper();\n\t}", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.RolLocal getF_fk_rol_2_acma();", "public Cgg_veh_categoria(){}", "public Education() {}", "private void trataEntity(String tagEleEntOuAtt, HashMap<String, ArrayList<Atributo>> arrEntityAtt, HashMap<String, ArrayList<String>> arrEntity) {\r\n\t\tboolean printOut = false;\r\n\t\tboolean isAtt = false;\r\n\t\tint i;\r\n\t\t/*\r\n\t\t * Divide a tag pelos espaços\r\n\t\t */\r\n\t\tString att[] = tagEleEntOuAtt.split(\" \");\r\n\r\n\t\tString entityName = att[2];\r\n\t\tif (printOut)\r\n\t\t\t//System.out.print(\"\\nEntity '\" + entityName + \"':\\n\");\r\n\t\tif (entityName.equals(\"i18n\")) {\r\n\t\t\tisAtt = false;\r\n\t\t}\r\n\r\n\t\tString entreAspas = getEntreAspas(tagEleEntOuAtt);\r\n\t\tif (entreAspas.indexOf(\"#\") != -1) {\r\n\t\t\tif (entreAspas.indexOf(\"#PCDATA\") != entreAspas.indexOf(\"#\")) {\r\n\t\t\t\t// é um atributo\r\n\t\t\t\tisAtt = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString valores[] = entreAspas.split(\" \");\r\n\t\tfor (i = 0; i < valores.length; i++) {\r\n\t\t\tString vKey = valores[i].replace(\";\", \"\").replace(\"%\", \"\");\r\n\t\t\tif (arrEntityAtt.containsKey(vKey)) {\r\n\t\t\t\t/*\r\n\t\t\t\t * é um atributo resgatar or valores e colocá-los no array de\r\n\t\t\t\t * atributos deste entity\r\n\t\t\t\t */\r\n\t\t\t\tif (!arrEntityAtt.containsKey(entityName)) {\r\n\t\t\t\t\tarrEntityAtt.put(entityName, new ArrayList<Atributo>());\r\n\t\t\t\t}\r\n\t\t\t\tarrEntityAtt.get(entityName).addAll(arrEntityAtt.get(vKey));\r\n\t\t\t\tisAtt = true;\r\n\t\t\t} else {\r\n\t\t\t\tif (isAtt) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Verificar se já existe uma lista com estes atributos\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (!arrEntityAtt.containsKey(entityName)) {\r\n\t\t\t\t\t\tarrEntityAtt.put(entityName, new ArrayList<Atributo>());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tAtributo atributo = new Atributo(valores[i]);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Verificar se possui parenteses\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (valores[i + 1].indexOf(\"(\") == 0) {\r\n\t\t\t\t\t\t// possui parenteses, concatenar até o fecha\r\n\t\t\t\t\t\t// parenteses\r\n\t\t\t\t\t\tint parentesesCount = 0;\r\n\t\t\t\t\t\tString strParenteses = \"\";\r\n\t\t\t\t\t\tfor (int j = i + 1; j < valores.length; j++) {\r\n\t\t\t\t\t\t\tstrParenteses += valores[j];\r\n\t\t\t\t\t\t\tif (strParenteses.indexOf(\"(\") != -1) {\r\n\t\t\t\t\t\t\t\tparentesesCount++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (strParenteses.indexOf(\")\") != -1) {\r\n\t\t\t\t\t\t\t\tparentesesCount--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (parentesesCount == 0) {\r\n\t\t\t\t\t\t\t\ti = j - 1;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstrParenteses = strParenteses.replaceAll(\"(\\\\)|\\\\()\", \"\");\r\n\t\t\t\t\t\tString arrV[] = strParenteses.split(\"\\\\|\");\r\n\t\t\t\t\t\tfor (int j = 0; j < arrV.length; j++) {\r\n\t\t\t\t\t\t\tatributo.getValoresPermitidos().add(arrV[j]);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString valor = valores[i + 1];\r\n\t\t\t\t\t\tif (valor.startsWith(\"%\")) {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Procurar nos entities\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tString vEntKey = valor.replace(\"%\", \"\").replace(\";\", \"\");\r\n\t\t\t\t\t\t\tif (arrEntity.containsKey(vEntKey)) {\r\n\t\t\t\t\t\t\t\tatributo.getValoresPermitidos().addAll(arrEntity.get(vEntKey));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tatributo.getValoresPermitidos().add(valor);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Verificar se é required ou não\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (valores[i + 2].equals(\"#REQUIRED\")) {\r\n\t\t\t\t\t\tatributo.setRequired(true);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tatributo.setRequired(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti = i + 2;\r\n\t\t\t\t\tarrEntityAtt.get(entityName).add(atributo);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Lista de valores\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString valor = valores[i];\r\n\t\t\t\t\tif (printOut)\r\n\t\t\t\t\t\t//System.out.print(valor + \"\\n\");\r\n\t\t\t\t\tif (!arrEntity.containsKey(entityName)) {\r\n\t\t\t\t\t\tarrEntity.put(entityName, new ArrayList<String>());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvalor = valor.replaceAll(\"(\\\\(|\\\\))\", \"\");\r\n\t\t\t\t\tString valval[] = valor.split(\"\\\\|\");\r\n\t\t\t\t\tfor (int k = 0; k < valval.length; k++) {\r\n\t\t\t\t\t\tarrEntity.get(entityName).add(valval[k].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (printOut){\r\n\t\t\t//System.out.print(\"isAtt=\" + isAtt + \"\\n\");\r\n\t\t}\r\n\t}", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }", "public void setNombreAreaProveedor(String nombreAreaProveedor) { this.nombreAreaProveedor = nombreAreaProveedor; }", "public DBFKRelationPropertySheet ()\r\n {\r\n initComponents ();\r\n }", "@ModelAttribute\n\tpublic void addCommonData(Model m, Principal princpl) {\n\t\tString name = princpl.getName();\n\t\tAgentModel byEmail = this.servimple.ByEmail(name);\n\t\tm.addAttribute(\"id\", byEmail.getId());\n\t}", "public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public Alumnos(String nombre, String apellido, Condicion condicion, Genero genero, Vector<Asignatura> asignaturas) {\n\t\t//super();\n\t\tthis.nombre = nombre;\n\t\tthis.apellido = apellido;\n\t\tthis.condicion = condicion;\n\t\tthis.genero = genero;\n\t\tthis.asignaturas = new Vector<Asignatura>(asignaturas);\n\t\tthis.calculadorNotaFinal();\t\t\n\t}", "private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }", "public Campo(String nombre, String dimensiones, String ubicacion,String tipoGramilla) {\n this.nombre = nombre;\n this.dimensiones = dimensiones;\n this.ubicacion = ubicacion;\n this.tipoGramilla= tipoGramilla;\n }", "public InstanciaProductoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public clsEquipacion() {\n\t\tString color1P = \"\";\n\t\tString color2P = \"\";\n\t\tString color1S = \"\";\n\t\tString color2S = \"\";\n\t\tString publicidadP = \"\";\n\t\tString publicidadS = \"\";\n\t\tString serigrafiadoP = \"\";\n\t\tString serigrafiadoS = \"\";\n\t\tint dorsal = 0;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Titre : \"+_titre+\" Auteur: \"+_auteur+\" NbEcoutes : \"+_nbEcoutes;\r\n\t}", "public Citizen(){\n fullName = \"\";\n email = \"\";\n address = \"\";\n age = 0;\n district = 0;\n resident = false;\n gender = 'M';\n }", "public CarteCaisseCommunaute() {\n super();\n }", "@Override\r\n\tpublic void inicializar() {\n\t\tproveedorDatamanager.setProveedorSearch(new Tcxpproveedor());\r\n\t\tproveedorDatamanager.getProveedorSearch().setTsyspersona(new Tsyspersona());\r\n\t\tproveedorDatamanager.setTipoIdColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_tipoid_persona\")));\r\n\t\tproveedorDatamanager.setGrupoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_grupo_prov\")));\r\n\t\tproveedorDatamanager.setEstadoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_estado_persona\")));\r\n\t\tproveedorDatamanager.setProveedorComponente(new ProveedorComponent(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania()));\r\n\t}", "public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;", "public static void main(String[] args) {\n\t\tProfesor profesor = new Alumno();\r\n\t\tSystem.out.println(\"Profesor: \"+profesor.devolverNombre());\r\n\t\tSystem.out.println(\"Edad: \"+profesor.devolverEdad());\r\n\t\tSystem.out.println();\r\n\t\tPersona persona = new Alumno();\r\n\t\tSystem.out.println(\"Edad: \"+persona.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona.devolverNombre());\r\n\t\t\r\n\t\tPersona persona2 = new Profesor();\r\n\t\tSystem.out.println(\"Edad: \"+persona2.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona2.devolverNombre());\r\n\t\t\r\n\t\tArrayList<Persona> personas = new ArrayList<Persona>();\r\n\t\tpersonas.add(persona);\r\n\t\tpersonas.add(persona2);\r\n\t\t\r\n\t\tfor (Persona persona3 : personas) {\r\n\t\t\tSystem.out.println(\"ENTRO AL FOR\");\r\n\t\t\tSystem.out.println(\"Edad: \"+persona3.devolverEdad());\r\n\t\t\tSystem.out.println(\"Nombre: \"+persona3.devolverNombre());\r\n\t\t}\r\n\t}", "public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "@Override\n public boolean hasFerocityAttribute() {\n return true;\n }", "public ContribuintesIndividuais(ContribuintesIndividuais c){\n super(c);\n this.dependentes = c.getDependentes();\n this.nifs = c.getNifs();\n this.coeffiscal = c.getCoeffiscal();\n this.codigos = c.getCodigos();\n this.numFilhos = c.getNumFilhos();\n }", "public void Ordenamiento() {\n\n\t}", "@Override\n\tpublic String getProfession() {\n\t\treturn super.getProfession();\n\t}", "@Override\n\tpublic String toString() {\n\t\tString description = \"Client n°\"+num+\" : [\"+super.toString()+\"]\";\n\t\tif(fournisseur) {\n\t\t\tdescription +=\"\\n\\t\\trole suplementaire : fournisseur\";\n\t\t}\n\t\treturn description;\n\t}", "public Candidatura (){\n \n }", "@Override\n\tpublic NotaBuilder setConhecimentos() {\n\t\treturn null;\n\t}", "protected abstract boolean populateAttributes();", "@Override\r\n\tpublic String toString() {\n\t\treturn denominacion + \" [prop: \" + propietario + \", sup: \" + superficie + \"]\";\r\n\t}", "@Override\n\tprotected void setViewAtributes() throws Exception {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Entering 'save' method\");\n\t\t}\n\t\tlog.debug(\"setAddAttributes method ....\");\n\t\tMantenimientoCRAMatrizDiasSearchForm f = (MantenimientoCRAMatrizDiasSearchForm) this.formBusqueda;\n\t\tPais pais = this.mPantallaPrincipalBean.getCurrentCountry();\n\n\t\tf.setCodigoPais(pais.getCodigo());\n\n\t\tf.setActividad(null);\n\t\tf.setGrupoZona(null);\n\n\t\tReporteService reporteService = (ReporteService) getBean(\"scsicc.reporteService\");\n\n\t\t// obteniendo las lista de grupode facturacion y actividad\n\t\tMantenimientoMAEClienteService clienteService = (MantenimientoMAEClienteService) getBean(\"spusicc.mantenimientoMAEClienteService\");\n\t\tLong oidMarca = clienteService\n\t\t\t\t.getOidMarca(Constants.CODIGO_MARCA_DEFAULT);\n\t\tLong oidCanal = clienteService\n\t\t\t\t.getOidCanal(Constants.CODIGO_CANAL_DEFAULT);\n\n\t\tMap params = new HashMap();\n\t\tparams.put(\"codigoPais\", pais.getCodigo());\n\t\tparams.put(\n\t\t\t\t\"oidPais\",\n\t\t\t\tnew Long(reporteService.getOidString(\"getOidPaisByCodigoPais\",\n\t\t\t\t\t\tparams)));\n\t\tparams.put(\"oidMarca\", oidMarca);\n\t\tparams.put(\"oidCanal\", oidCanal);\n\n\t\tsiccGrupoFacturacionList = reporteService.getGrupoFacturacion(params);\n\t\tsiccActividadList = reporteService.getActividad(params);\n\t\tfindList(f);\n\n\t\tthis.mostrarBotonBuscar = false;\n\t\tthis.mostrarBotonModificar = false;\n\t\tthis.mostrarBotonNuevo = false;\n\t\tthis.mostrarBotonEliminar = false;\n\t\tthis.mostrarBotonConsultar = false;\n\n\t}", "@Override\n\tpublic void initialisation_type_exercice() {\n\t\tthis.setEnnonce_exo(\"Ecrire un algorithme qui demande deux nombres à l’utilisateur et l’informe ensuite si le produit est négatif ou positif (on inclut cette fois le traitement du cas où le produit peut être nul). Attention toutefois, on ne doit pas calculer le produit !\");\n\n\t}", "@Override\n\tprotected BaseEditForm setObtenerRegistroAttributes() throws Exception {\n\t\treturn null;\n\t}", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "public void setFiction() {\n if (super.getGenre() == null || super.getGenre().length() == 0) {\n super.setGenre(\"Fiction\");\n } else if (!super.getGenre().contains(\"FICTION\")) {\n super.setGenre(super.getGenre() + \", Fiction\");\n }\n super.setGenre(super.getGenre().toUpperCase());\n }", "public void setNombreArea(String p) { this.nombreArea = p; }", "public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic String getCouleur() {\n\t\treturn null;\n\t}", "@Override\n protected void setRetributionsAndBeneficiaries(){\n // Example for picking the \"chosen ones\" to be benefited from my generous policy\n // First we empty the bag in case we don't want to keep old beneficiaries\n beneficiaries.clear();\n // Pick 3 random territories from my subordinates\n if (myTerritory.getSubordinates().numObjs>=1){\n beneficiaries.add(myTerritory.getSubordinates().get((new Random()).nextInt(1)));\n\n // Now assign the corresponding amounts of soldiers to each beneficiary\n // Since there are three of them, we need to re-instantiate the retributions array to one of size 3\n retributions = new double[myTerritory.getSubordinates().numObjs];\n // Lets transfer equal amounts of soldiers, which will add up half of my soldiers stock\n retributions[myTerritory.getSubordinates().numObjs-1] = (myTerritory.getSoldiers())/(myTerritory.getSubordinates().numObjs);\n\n }\n\n // This procedure opdated the beneficiaries list and the retribution array, which gives to the system\n // the necessary info about the redistributive policy of the lords\n }", "private CoeurAStockageImpl()\n\t{\n\t\tmonnayeur = new Monnayeur();\n\t\timprimante = new Imprimante(this);\n\t\tcomposantEnMarche = new HashMap<Composant,Boolean>();\n\t\tfor(Composant composant : Composant.values())\n\t\t{\n\t\t\tcomposantEnMarche.put(composant, true);\n\t\t}\n\t}", "public String getNombreGeneral()\r\n {\r\n return nombreGeneral; \r\n }", "public void iniciarTabuleiro(JogoTrilha tabuleiro){\n String corInicial = \"vazia\";\n \n for(int i = 0; i < nomeCasa.size(); i++){\n casas.put(nomeCasa.get(i), new Casa(nomeCasa.get(i)));\n casas.get(nomeCasa.get(i)).setCor(corInicial);\n } \n }" ]
[ "0.6688627", "0.5997922", "0.5653889", "0.5569157", "0.5521296", "0.5519959", "0.55060905", "0.5467178", "0.5420929", "0.54012024", "0.53650224", "0.53616816", "0.5357495", "0.5354652", "0.5353708", "0.52785295", "0.52768004", "0.52628535", "0.5238255", "0.52336925", "0.52331185", "0.5192076", "0.5187896", "0.51751673", "0.51732254", "0.5161062", "0.5160984", "0.5160918", "0.51462305", "0.51460755", "0.51407474", "0.5137819", "0.513402", "0.5131586", "0.5130323", "0.5130195", "0.5120411", "0.51139283", "0.5105276", "0.5098914", "0.5097229", "0.50893", "0.50874585", "0.50699186", "0.50665414", "0.5063216", "0.50623393", "0.50584894", "0.50540644", "0.5052182", "0.50468737", "0.50387466", "0.50200415", "0.50184566", "0.5012503", "0.50091064", "0.50084", "0.50073284", "0.50061995", "0.5003737", "0.49990472", "0.49912298", "0.49907747", "0.49886", "0.4988584", "0.49874365", "0.49873233", "0.49827093", "0.497797", "0.4973044", "0.49729174", "0.49702483", "0.49590322", "0.49582624", "0.4957477", "0.4952299", "0.4949", "0.49481446", "0.49447003", "0.49446517", "0.49438873", "0.49428818", "0.49392638", "0.49387935", "0.49385116", "0.49374408", "0.49237832", "0.49222606", "0.4921284", "0.49209756", "0.49136275", "0.4913319", "0.49079108", "0.49062085", "0.49037755", "0.4896325", "0.48829865", "0.48784512", "0.48782298", "0.48769397" ]
0.495629
75
Creates new form Graficas
public Reportes() { initComponents(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public FormInserir() {\n initComponents();\n }", "public frm_tutor_subida_prueba() {\n }", "public frmAfiliado() {\n initComponents();\n \n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public FGlavna() {\n initComponents();\n pripremiFormu();\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }", "public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "public Formulario() {\n initComponents();\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }", "private void initFormulario() {\n btnCadastro = findViewById(R.id.btnCadastro);\n editNome = findViewById(R.id.editNome);\n editEmail = findViewById(R.id.editEmail);\n editSenhaA = findViewById(R.id.editSenha);\n editSenhaB = findViewById(R.id.editSenhaB);\n chTermo = findViewById(R.id.chTermos);\n isFormOk = false;\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "@RequestMapping(method = RequestMethod.POST, value = {\"\",\"/\"})\r\n\tpublic ResponseEntity<FormularioDTO> add(@RequestBody @Valid Formulario formulario) throws AuthenticationException {\r\n\t\tformulario.setInstituicao(new Instituicao(authService.getDados().getInstituicaoId()));\r\n\t\treturn new ResponseEntity<>(formularioService.create(formulario), HttpStatus.CREATED);\r\n\t}", "public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }", "public FrmCrearFotoEmpresa() {\n initComponents();\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public Result inicioGenerarLibro(){\n ContabilidadDTO dto = new ContabilidadDTO();\n dto.tipoLibro = new Parametro(\"\",\"LVEN\",\"\");\n //dto.tipoLibro.id.codigo =\"LVEN\";\n dto.anio = new Parametro(\"\",\"2018\",\"\");\n //dto.anio.id.codigo =\"2018\";\n dto.mes = new Parametro(\"\",\"3\",\"\");\n //dto.mes.id.codigo =\"3\"; //Simpre debe ser el mes anterior al actual\n\n Form<ContabilidadDTO> contabilidadDTOForm = formFactory.form(ContabilidadDTO.class).fill(dto);\n\n/*\n EbeanServer db = DBConnectionUtil.getDBServerFacturador();\n List<BandejaFactura> lista = db.find(BandejaFactura.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (BandejaFactura x:lista) {\n System.out.println(x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class)\n .where().ilike(\"CVNT_NUM_DOCUMENTO\", \"F002-00000213\")\n .findList();\n for (ControlVenta x:lista) {\n System.out.println(\"*********** \"+x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (ControlVenta x:lista) {\n System.out.println(x);\n }\n*/\n\n return ok(generadorLibrosContables.render(contabilidadDTOForm));\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "@GetMapping(path = {\"/form\", \"/form/\"})\n public String getGifUploadForm(Model model) {\n val form = new GifForm();\n val categories = categoryService.findAllCategories();\n\n if (!model.containsAttribute(\"gif\")) {\n model.addAttribute(\"gif\", form);\n }\n\n model.addAttribute(\"categories\", categories);\n model.addAttribute(\"action\", \"/gifs\");\n model.addAttribute(\"method\", \"post\");\n model.addAttribute(\"heading\", \"Upload\");\n model.addAttribute(\"button\", \"Add\");\n\n if (categories.size() == 0) {\n val message = \"You need to add a Category first!\";\n val flash = new FlashMessage(message, Status.FAILURE);\n\n model.addAttribute(\"flash\", flash);\n }\n\n return \"gif/form\";\n }", "public FrmFerramentas() throws IOException {\n initComponents();\n SelecionaLocal();\n //PreencheLook();\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }", "@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "public FrmFactura() {\n initComponents();\n }", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public Ventaform() {\n initComponents();\n }", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "public TransferOfFundsForm() {\n super();\n }", "public MechanicForm() {\n initComponents();\n }", "public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}", "public FormularioP() {\n initComponents();\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public FormularioCliente() {\n initComponents();\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "public formPrincipal() {\n initComponents();\n }", "public StorageForm() {\n}", "public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }", "public frmVenda() {\n initComponents();\n }", "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}", "public void makeFactura() {\n Usuario userCurrent = (Usuario) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"current\");\n if (userCurrent != null) {\n Calendar c = Calendar.getInstance();\n factura.setIdfactura(facturaFacade.findAll().size() + 1);\n factura.setFechaVenta(c.getTime());\n factura.setUsuarioIdusuario(userCurrent);\n factura.setHabilitada(true);\n try {\n facturaFacade.create(factura);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Factura creada exitosamente\", null));\n factura = new Factura();\n articulosFacturas = new ArrayList<>();\n total = 0;\n } catch (Exception e) {\n System.err.println(\"Error en la creacion de la factura: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }\n getAllFacturas();\n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void submitNewUser() {\n\t\tboolean validationFlag = true;\n\t\tArrayList<HashMap<String, String>> signUpFields = new ArrayList<HashMap<String, String>>();\n\t\tint size = lnr_form.getChildCount();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tLinearLayout v = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> field = (HashMap<String, String>) v.getTag();\n\n\t\t\tIjoomerEditText edtValue = null;\n\t\t\tSpinner spnrValue = null;\n\n\t\t\tif (field != null) {\n\t\t\t\tif (field.get(TYPE).equals(TEXT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEdit)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditArea)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditMap)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(\"type\").equals(LABEL)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrLabel)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\n\t\t\t\t\tif (edtValue.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\tif (!IjoomerUtilities.birthdateValidator(edtValue.getText().toString().trim())) {\n\t\t\t\t\t\t\tedtValue.setFocusable(true);\n\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_invalid_birth_date));\n\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\t\t\t\tif (field.get(TYPE).equals(TIME)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\n\t\t\t\tif (field.get(TYPE).equals(SELECT)) {\n\t\t\t\t\tspnrValue = (Spinner) ((LinearLayout) v.findViewById(R.id.lnrSpin)).findViewById(R.id.txtValue);\n\t\t\t\t\tfield.put(VALUE, spnrValue.getSelectedItem().toString());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Retype Password\")) {\n\t\t\t\t\tint len = lnr_form.getChildCount();\n\t\t\t\t\tfor (int j = 0; j < len; j++) {\n\t\t\t\t\t\tLinearLayout view = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) view.getTag();\n\t\t\t\t\t\tif (row.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Password\")) {\n\t\t\t\t\t\t\tString password = ((IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue)).getText().toString();\n\t\t\t\t\t\t\tif (password.equals(edtValue.getText().toString())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_password_not_match));\n\t\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (edtValue != null && edtValue.getText().toString().trim().length() <= 0 && (field.get(REQUIRED).equals(\"1\"))) {\n\t\t\t\t\tedtValue.setError(getString(R.string.validation_value_required));\n\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t} else {\n\t\t\t\t\tfield.put(VALUE, edtValue.getText().toString().trim());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (validationFlag) {\n\t\t\tfinal SeekBar proSeekBar = IjoomerUtilities.getLoadingDialog(getString(R.string.dialog_loading_register_newuser));\n\t\t\tnew IjoomerRegistration(this).submitNewUser(signUpFields, new WebCallListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(int progressCount) {\n\t\t\t\t\tproSeekBar.setProgress(progressCount);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallComplete(final int responseCode, String errorMessage, ArrayList<HashMap<String, String>> data1, Object data2) {\n\t\t\t\t\tif (responseCode == 200) {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile), getString(R.string.registration_successfully), getString(R.string.ok),\n\t\t\t\t\t\t\t\tR.layout.ijoomer_ok_dialog, new CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\"clearStackActivity\");\n\t\t\t\t\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\t\t\t\t\t\tIjoomerWebService.cookies = null;\n\n\t\t\t\t\t\t\t\t\t\tloadNew(IjoomerLoginActivity.class, IPropertyRegistrationActivity.this, true);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile),\n\t\t\t\t\t\t\t\tgetString(getResources().getIdentifier(\"code\" + responseCode, \"string\", getPackageName())), getString(R.string.ok), R.layout.ijoomer_ok_dialog,\n\t\t\t\t\t\t\t\tnew CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "public FormImportar() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public FiltroGirosDialog() {\n \n }", "public void limpiarCamposFormBusqueda() {\n\t}", "Compuesta createCompuesta();", "@Override public SnpAssociationForm createForm(Association association) {\n\n\n SnpAssociationStandardMultiForm form = new SnpAssociationStandardMultiForm();\n\n // Set association ID\n form.setAssociationId(association.getId());\n form.setAssociationExtension(association.getAssociationExtension());\n\n // Set simple string and float association attributes\n form.setRiskFrequency(association.getRiskFrequency());\n form.setPvalueDescription(association.getPvalueDescription());\n form.setSnpType(association.getSnpType());\n form.setMultiSnpHaplotype(association.getMultiSnpHaplotype());\n form.setSnpApproved(association.getSnpApproved());\n form.setPvalueMantissa(association.getPvalueMantissa());\n form.setPvalueExponent(association.getPvalueExponent());\n form.setStandardError(association.getStandardError());\n form.setRange(association.getRange());\n form.setDescription(association.getDescription());\n\n // Set OR/Beta values\n form.setOrPerCopyNum(association.getOrPerCopyNum());\n form.setOrPerCopyRecip(association.getOrPerCopyRecip());\n form.setOrPerCopyRecipRange(association.getOrPerCopyRecipRange());\n form.setBetaNum(association.getBetaNum());\n form.setBetaUnit(association.getBetaUnit());\n form.setBetaDirection(association.getBetaDirection());\n\n // Add collection of Efo traits\n form.setEfoTraits(association.getEfoTraits());\n\n // For each locus get genes and risk alleles\n Collection<Locus> loci = association.getLoci();\n Collection<Gene> locusGenes = new ArrayList<>();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<RiskAllele>();\n\n // For multi-snp and standard snps we assume their is only one locus\n for (Locus locus : loci) {\n locusGenes.addAll(locus.getAuthorReportedGenes());\n locusRiskAlleles.addAll(locus.getStrongestRiskAlleles()\n .stream()\n .sorted((v1, v2) -> Long.compare(v1.getId(), v2.getId()))\n .collect(Collectors.toList()));\n\n // There should only be one locus thus should be safe to set these here\n form.setMultiSnpHaplotypeNum(locus.getHaplotypeSnpCount());\n form.setMultiSnpHaplotypeDescr(locus.getDescription());\n }\n\n\n // Get name of gene and add to form\n Collection<String> authorReportedGenes = new ArrayList<>();\n for (Gene locusGene : locusGenes) {\n authorReportedGenes.add(locusGene.getGeneName());\n }\n form.setAuthorReportedGenes(authorReportedGenes);\n\n // Handle snp rows\n Collection<GenomicContext> snpGenomicContexts = new ArrayList<GenomicContext>();\n Collection<SingleNucleotidePolymorphism> snps = new ArrayList<>();\n List<SnpFormRow> snpFormRows = new ArrayList<SnpFormRow>();\n List<SnpMappingForm> snpMappingForms = new ArrayList<SnpMappingForm>();\n for (RiskAllele riskAllele : locusRiskAlleles) {\n SnpFormRow snpFormRow = new SnpFormRow();\n snpFormRow.setStrongestRiskAllele(riskAllele.getRiskAlleleName());\n\n SingleNucleotidePolymorphism snp = riskAllele.getSnp();\n snps.add(snp);\n String rsID = snp.getRsId();\n snpFormRow.setSnp(rsID);\n\n Collection<Location> locations = snp.getLocations();\n for (Location location : locations) {\n SnpMappingForm snpMappingForm = new SnpMappingForm(rsID, location);\n snpMappingForms.add(snpMappingForm);\n }\n\n // Set proxy if one is present\n Collection<String> proxySnps = new ArrayList<>();\n if (riskAllele.getProxySnps() != null) {\n for (SingleNucleotidePolymorphism riskAlleleProxySnp : riskAllele.getProxySnps()) {\n proxySnps.add(riskAlleleProxySnp.getRsId());\n }\n }\n snpFormRow.setProxySnps(proxySnps);\n\n snpGenomicContexts.addAll(genomicContextRepository.findBySnpId(snp.getId()));\n snpFormRows.add(snpFormRow);\n }\n\n form.setSnpMappingForms(snpMappingForms);\n form.setGenomicContexts(snpGenomicContexts);\n form.setSnps(snps);\n form.setSnpFormRows(snpFormRows);\n return form;\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "@RequestMapping(\"enviar\")\n\tpublic String abrirForm() {\n\t\treturn \"contato/form\";\n\t}", "@RequestMapping(\"/upload\")\n public String formNewGif(Model model) {\n if (!model.containsAttribute(\"gif\")) {\n model.addAttribute(\"gif\", new Gif());\n }\n model.addAttribute(\"categories\", categoryService.findAll());\n model.addAttribute(\"action\", \"/gifs\");\n model.addAttribute(\"heading\", \"Upload Gif\");\n model.addAttribute(\"submit\", \"Upload\");\n return \"gif/form\";\n }", "public FrmInsertar() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "public rplorcamentoTelaCadGastos() {\n initComponents();\n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public FRM_Estudiantes() {\n initComponents();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public form() {\n initComponents();\n }", "public CrearPedidos() {\n initComponents();\n }", "public RegistroCamas() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextFieldOro = new javax.swing.JTextField();\n jTextFieldElixir = new javax.swing.JTextField();\n jButtonCrearEdificio = new javax.swing.JButton();\n jButtonCrearTropa = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButtonMejorarEdificio = new javax.swing.JButton();\n jButtonRecogerRecursos = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextFieldChoza = new javax.swing.JTextField();\n jTextFieldMina = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jTextFieldRecolector = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextFieldCampamento = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jTextFieldCañon = new javax.swing.JTextField();\n jTextFieldMortero = new javax.swing.JTextField();\n jTextFieldTorre = new javax.swing.JTextField();\n jTextFieldCuartel = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextFieldBarbaro = new javax.swing.JTextField();\n jTextFieldArquera = new javax.swing.JTextField();\n jTextFieldGigante = new javax.swing.JTextField();\n jTextFieldDuende = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jTextField15 = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jTextFieldAyuntamiento = new javax.swing.JTextField();\n jTextFieldOroMina = new javax.swing.JTextField();\n jTextFieldElixRec = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Oro\");\n\n jLabel2.setText(\"Elixir\");\n\n jTextFieldOro.setEnabled(false);\n\n jTextFieldElixir.setToolTipText(\"\");\n jTextFieldElixir.setEnabled(false);\n\n jButtonCrearEdificio.setText(\"Crear Edificio\");\n jButtonCrearEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearEdificioActionPerformed(evt);\n }\n });\n\n jButtonCrearTropa.setText(\"Crear Tropa\");\n jButtonCrearTropa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearTropaActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Realizar Ataque\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButtonMejorarEdificio.setText(\"Mejorar Edificio\");\n jButtonMejorarEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMejorarEdificioActionPerformed(evt);\n }\n });\n\n jButtonRecogerRecursos.setText(\"Recoger Recursos\");\n jButtonRecogerRecursos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRecogerRecursosActionPerformed(evt);\n }\n });\n\n jButton9.setText(\"Recibir Ataque\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel4.setForeground(new java.awt.Color(0, 0, 102));\n jLabel4.setText(\"Mi Aldea\");\n\n jTextFieldChoza.setEnabled(false);\n\n jTextFieldMina.setEnabled(false);\n\n jTextFieldRecolector.setEnabled(false);\n\n jTextFieldCampamento.setEnabled(false);\n\n jTextFieldCañon.setEnabled(false);\n\n jTextFieldMortero.setEnabled(false);\n\n jTextFieldTorre.setEnabled(false);\n\n jTextFieldCuartel.setEnabled(false);\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel13.setText(\"Tropas\");\n\n jTextFieldBarbaro.setEnabled(false);\n\n jTextFieldArquera.setEnabled(false);\n\n jTextFieldGigante.setEnabled(false);\n\n jTextFieldDuende.setEnabled(false);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel18.setText(\"Tropas\");\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel19.setText(\"Tiempo\");\n\n jTextField15.setEnabled(false);\n\n jLabel21.setText(\"jLabel21\");\n\n jLabel22.setText(\"jLabel22\");\n\n jLabel23.setText(\"jLabel23\");\n\n jLabel24.setText(\"AYUNTAMIENTO\");\n\n jTextFieldAyuntamiento.setEnabled(false);\n\n jTextFieldOroMina.setEnabled(false);\n jTextFieldOroMina.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldOroMinaActionPerformed(evt);\n }\n });\n\n jTextFieldElixRec.setEnabled(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(69, 69, 69)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldElixRec, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldOroMina, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldCuartel)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(34, 34, 34)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(73, 73, 73)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldBarbaro)\n .addComponent(jTextFieldGigante)\n .addComponent(jTextFieldDuende)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 251, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 319, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addGap(44, 44, 44))\n .addGroup(layout.createSequentialGroup()\n .addGap(122, 122, 122)\n .addComponent(jLabel24)\n .addGap(18, 18, 18)\n .addComponent(jTextFieldAyuntamiento, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 173, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldOro, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(143, 143, 143)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButtonCrearEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonCrearTropa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonMejorarEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonRecogerRecursos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23))\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 821, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(80, 80, 80)\n .addComponent(jLabel18)\n .addGap(229, 229, 229)\n .addComponent(jLabel19)\n .addGap(18, 18, 18)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22)\n .addComponent(jLabel21)\n .addComponent(jLabel23))))\n .addContainerGap(320, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(62, 62, 62)\n .addComponent(jButtonCrearEdificio)\n .addGap(4, 4, 4)\n .addComponent(jButtonCrearTropa)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonMejorarEdificio)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonRecogerRecursos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton9))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextFieldOro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addComponent(jLabel13))\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(jTextFieldAyuntamiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(jTextFieldBarbaro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldOroMina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16)\n .addComponent(jTextFieldGigante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldElixRec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(jTextFieldCuartel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17)\n .addComponent(jTextFieldDuende, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jLabel19)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addComponent(jLabel21)\n .addGap(32, 32, 32)\n .addComponent(jLabel22)\n .addGap(35, 35, 35)\n .addComponent(jLabel23)\n .addContainerGap(224, Short.MAX_VALUE))\n );\n\n pack();\n }", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }", "public CrearProductos() {\n initComponents();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public AddForensicsForm()\r\n\t{\r\n\t\t//sets the layout to border layout as the default layout for a jpanel is flow.\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\t\r\n\t\t//creates the number format that stops letters being entered into certain textfields\r\n\t\tnumForm = NumberFormat.getIntegerInstance();\r\n\t\tnumForm.setGroupingUsed(false);\r\n\t\tnumForm.setMinimumIntegerDigits(0);\r\n\t\t\r\n\t\t/* Creates the form panel that will hold all the labels and text fields for the form.\r\n\t\t * It is given a grid layout so that each row will be a different section of the form e.g \r\n\t\t * what case it is a part of then on the next line the ID number of the forensic file etc.*/\r\n\t\tform = new JPanel();\r\n\t\tform.setLayout(new GridLayout(0,2,5,5));\r\n\t\tform.setBorder(new CompoundBorder(new EmptyBorder(5,5,5,5), new CompoundBorder(new EtchedBorder(), new EmptyBorder(5,5,5,5))));\r\n\t\t\r\n\t\t/* this is the label and textfield that is used to link the forensic file to the case, this has to be\r\n\t\t * done manually as new forensic files could be added for older cases as well as newer and there is no\r\n\t\t * way to predetermine what case the file is for. */\r\n\t\tevidenceLabel = new JLabel(\"Forensic File for case: \");\r\n\t\tevidenceID = new JFormattedTextField(numForm);\r\n\t\tform.add(evidenceLabel);\r\n\t\tform.add(evidenceID);\r\n\t\t\r\n\t\t/* This is the label and text field that holds the information for the ID of the forensics file\r\n\t\t * as this is unique and assigned automatically the field is set to uneditable by default\r\n\t\t * the assignID method in the forensic class is used to assign a unique ID to the forensic file*/\r\n\t\tforensicLabel = new JLabel(\"Forensics ID: \");\r\n\t\tforensicID = new JFormattedTextField();\r\n\t\tforensicID.setEditable(false);\r\n\t\tf1.assignID();\r\n\t\tforensicID.setText(String.valueOf(f1.getForensicID()));\r\n\t\tform.add(forensicLabel);\r\n\t\tform.add(forensicID);\r\n\t\t\r\n\t\t/* This is the label and combobox for biological evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tbioLabel = new JLabel(\"Presence of Biological Evidence:\");\r\n\t\tbioBox = new JComboBox(confirmation);\r\n\t\tform.add(bioLabel);\r\n\t\tform.add(bioBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for print evidence e.g finger prints and toe prints, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tprintsLabel = new JLabel(\"Presence of Finger Prints:\");\r\n\t\tprintsBox = new JComboBox(confirmation);\r\n\t\tform.add(printsLabel);\r\n\t\tform.add(printsBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for Track evidence e.g boot and tire, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttracksLabel = new JLabel(\"Presence of Vehicle/Foot Tracks:\");\r\n\t\ttracksBox = new JComboBox(confirmation);\r\n\t\tform.add(tracksLabel);\r\n\t\tform.add(tracksBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for digital evidence e.g phones and tablets, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tdigitalLabel = new JLabel(\"Presence of Digital Evidence: \");\r\n\t\tdigitalBox = new JComboBox(confirmation);\r\n\t\tform.add(digitalLabel);\r\n\t\tform.add(digitalBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for tool mark evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttoolMarkLabel = new JLabel(\"Presence of tool marks\");\r\n\t\ttoolMarkBox = new JComboBox(confirmation);\r\n\t\tform.add(toolMarkLabel);\r\n\t\tform.add(toolMarkBox);\r\n\t\t\t\t\r\n\t\t/* This is the label and combobox for narcotic evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tnarcoticLabel = new JLabel(\"Presence of Narcotics: \");\r\n\t\tnarcoticBox = new JComboBox(confirmation);\r\n\t\tform.add(narcoticLabel);\r\n\t\tform.add(narcoticBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for firearm evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tfirearmLabel = new JLabel(\"Presence of Firearms: \");\r\n\t\tfirearmBox = new JComboBox(confirmation);\r\n\t\tform.add(firearmLabel);\r\n\t\tform.add(firearmBox);\r\n\t\t\r\n\t\t/* these are the buttons to cancel and sumbit and the panel that holds them\r\n\t\t * Submit uses the inner class listener to perform a function\r\n\t\t * and the cancel button is used by the window handler class to\r\n\t\t * return to the previous menu*/\r\n\t\tbuttons = new JPanel();\r\n\t\tsubmit = new JButton(\"Submit\");\r\n\t\tsubmit.addActionListener(this);\r\n\t\tcancel = new JButton(\"Cancel\");\r\n\t\tbuttons.add(submit);\r\n\t\tbuttons.add(cancel);\r\n\t\t\r\n\t\t//this is the container that holds both the button and form panel.\r\n\t\tcontainer = new JPanel();\r\n\t\tcontainer.setLayout(new GridLayout(0,1));\r\n\t\tcontainer.setBorder(new EmptyBorder(200, 0, 0, 0));\r\n\t\tcontainer.add(form);\r\n\t\tcontainer.add(buttons);\r\n\t\t\r\n\t\t//adds the container to the main panel.\r\n\t\tadd(container, BorderLayout.CENTER);\r\n\t}", "@FXML\r\n\tvoid genererForme(ActionEvent event) {\r\n\t\t// TODO\r\n\t\t// Caller la m�thode qui nous fait une forme\r\n\t\t// Cr�er un data avec infos, formesfact avec data, data fait forme, tout\r\n\t\t// remonte\r\n\t\tDataFactory data = null;\r\n\t\tif (getListView().getSelectionModel().getSelectedItem().equals(\"Triangle\")) {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), Integer.parseInt(getTextF2data().getText()),\r\n\t\t\t\t\tgetColorPicker().getValue(), Integer.parseInt(getTextF3data().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF4data().getText()), getListView().getSelectionModel().getSelectedItem());\r\n\t\t} else {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), getColorPicker().getValue(),\r\n\t\t\t\t\tInteger.parseInt(getTextF3data().getText()), Integer.parseInt(getTextF4data().getText()),\r\n\t\t\t\t\tgetListView().getSelectionModel().getSelectedItem());\r\n\t\t}\r\n\t\tFormesFactory formesF = new FormesFactory(600, 600);\r\n\t\ttry {\r\n\t\t\tForme formedessin = formesF.getInstance(data);\r\n\t\t\tajouterForme(data);\r\n\t\t} catch (FormeException e) {\r\n\t\t\t// popper fen�tre forme invalide\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme non valide\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t} catch (ZoneDessinException e) {\r\n\t\t\t// popper fen�tre forme out of bounds\r\n\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme � l'ext�rieur des bordures\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t}\r\n\t}" ]
[ "0.69371504", "0.6609894", "0.65156555", "0.6199411", "0.618635", "0.6145402", "0.6145031", "0.6124451", "0.60980916", "0.60937923", "0.6056433", "0.6033764", "0.5972879", "0.59511954", "0.5930496", "0.5919141", "0.5905552", "0.59031075", "0.58602625", "0.58592683", "0.583358", "0.5826522", "0.5823804", "0.5812415", "0.5806011", "0.5804076", "0.5793622", "0.57637596", "0.5763601", "0.57575923", "0.5747976", "0.57150155", "0.5705008", "0.5691756", "0.56822723", "0.56820256", "0.56805164", "0.5679673", "0.56794703", "0.5676773", "0.5673022", "0.56609714", "0.56534773", "0.56520027", "0.56511676", "0.56420577", "0.56409353", "0.56386596", "0.56373787", "0.5625838", "0.5608536", "0.56073326", "0.559869", "0.559636", "0.5589647", "0.55831784", "0.5577812", "0.5575833", "0.5568633", "0.556794", "0.5567081", "0.5559316", "0.55572665", "0.55559134", "0.55552286", "0.5552535", "0.55480224", "0.55479825", "0.5539916", "0.55345327", "0.55229604", "0.5518522", "0.5510531", "0.5509945", "0.5509247", "0.5507445", "0.55009246", "0.54939777", "0.54884595", "0.54829973", "0.54790926", "0.5477726", "0.5472416", "0.54723775", "0.5470554", "0.5466432", "0.54659754", "0.54602474", "0.5454149", "0.5445946", "0.5445152", "0.5441561", "0.54324704", "0.543176", "0.5430447", "0.542614", "0.54219586", "0.5418225", "0.5414596", "0.54112893", "0.54089653" ]
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() { jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jComboGrafica = new javax.swing.JComboBox<>(); jLabel2 = new javax.swing.JLabel(); jComboTipo = new javax.swing.JComboBox<>(); jPanelGrafica = new javax.swing.JPanel(); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jLabel1.setText("Seleciona una Grafica"); jComboGrafica.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jComboGrafica.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Seleccione una Grafica", "Número de productos por categoria", "Ganancia por Categoria", "Cantidad de prodctos pedidos", "Inversion" })); jComboGrafica.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jComboGraficaItemStateChanged(evt); } }); jLabel2.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jLabel2.setText("Tipo"); jComboTipo.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jComboTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Seleccione un tipo", "Barras", "Pastel" })); jPanelGrafica.setBackground(new java.awt.Color(153, 153, 153)); jPanelGrafica.setLayout(new java.awt.BorderLayout()); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanelGrafica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGap(32, 32, 32) .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jComboTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboGrafica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanelGrafica, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboGrafica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jComboTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(20, 20, 20)) ); pack(); }
{ "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 initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73213893", "0.72913563", "0.72913563", "0.72913563", "0.7286415", "0.724936", "0.72132975", "0.72076875", "0.71963966", "0.7190991", "0.7184836", "0.71593595", "0.71489584", "0.709429", "0.7080468", "0.70567", "0.6987573", "0.69780385", "0.69556123", "0.69538146", "0.6945521", "0.69423586", "0.6935968", "0.69330275", "0.692813", "0.6924971", "0.69242555", "0.6911953", "0.6911683", "0.689307", "0.689293", "0.68911546", "0.68901724", "0.6888897", "0.6883029", "0.68823075", "0.68819803", "0.6878825", "0.6875638", "0.6874702", "0.68724024", "0.68601924", "0.68568707", "0.6856268", "0.6856217", "0.68552643", "0.6853839", "0.6852327", "0.6852327", "0.6843502", "0.68374175", "0.6837008", "0.6828905", "0.6828786", "0.68258685", "0.6823454", "0.6823341", "0.68164855", "0.6816273", "0.681072", "0.6810196", "0.68090945", "0.68083966", "0.68072087", "0.6802229", "0.679545", "0.6795217", "0.67920595", "0.67905307", "0.67902476", "0.6789075", "0.6787793", "0.678205", "0.6765594", "0.67655575", "0.676554", "0.6755679", "0.6755387", "0.67527455", "0.6750321", "0.6741919", "0.6739145", "0.67376417", "0.673622", "0.6733591", "0.67282665", "0.6727961", "0.6720994", "0.6715958", "0.6715172", "0.67146355", "0.67088073", "0.67068994", "0.67046213", "0.67008626", "0.67002195", "0.6699175", "0.66977036", "0.66942674", "0.6691273", "0.6689522" ]
0.0
-1
private static final String app = "cfx/st";
@SuppressWarnings("deprecation") @Override public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException { this.setBrowserExclusive(); br.setFollowRedirects(true); br.getPage(link.getDownloadURL().replace("http://", "https://")); if (br.getHttpConnection().getResponseCode() == 404) { throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND); } String filename = br.getRegex("property\\s*=\\s*\\'og:title\\'.*?content\\s*=\\s*\"([^<>\"]*?)\"").getMatch(0); if (filename == null) { /* Fallback */ filename = new Regex(link.getPluginPatternMatcher(), "([^/]+)$").getMatch(0); } final String uploadDate = br.getRegex("itemprop='uploadDate'>(\\d{4}-\\d{2}-\\d{2})").getMatch(0); filename = Encoding.htmlDecode(filename.trim()); if (uploadDate != null) { filename = uploadDate + "_" + filename; } link.setFinalFileName(filename + ".mp4"); return AvailableStatus.TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApp();", "public String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public void myapp() {\n\n\n }", "short appId();", "public String getShortAppName();", "Appinfo createAppinfo();", "public interface MainConst extends NetUrl_Const {\n\t/**\n\t * 当为true时为商业模式,此时异常不抛出,日志不打印。关闭所有开发痕迹。\n\t */\n\tpublic final static boolean DEVS_BUSINESS_MODEL = false;\n\n\t/**\n\t * true时打印日志。<br/>\n\t * false不打印日志。\n\t */\n\tpublic final static boolean DEVS_PRINT_LOG = true;\n\t/**\n\t * true时抛出异常\n\t */\n\tpublic final static boolean DEVS_THROW_ALL_EXCEPTION = true;\n\n\t/**\n\t * app_token\n\t */\n\tpublic final static String APP_APP_TOKEN = \"readyGo1408.app_token@bj-china\";\n\t/**\n\t * MD5加密盐\n\t */\n\tpublic final static String APP_MD5_TOKEN = \"readyGo1408.md5@bj-china\";\n\t/**\n\t * 硬件平台,安卓平台\n\t */\n\tpublic final static String APP_PLATFORM = \"2\";\n}", "public String getStrappname() {\n return strappname;\n }", "public static String getAppName()\n\t{\n\t\treturn APP_NAME;\n\t}", "public void startApp()\r\n\t{\n\t}", "private void startApp(final Context context, String action) {\n PritLog.d(\"startApp() action=\" + action);\n }", "public MyApp() {\n sContext = this;\n }", "public String getAppPathname();", "String getComponentAppId();", "public void setAppName(String appName);", "@Test\n public void useAppContext() {\n assertEquals(\"com.example.kitchen\", appContext.getPackageName());\n }", "protected String xCB() { return StShohinKonyuCB.class.getName(); }", "@Test\n public void useAppContext() {\n assertEquals(\"com.mango.puppet.test\", appContext.getPackageName());\n }", "public CH340Application() {\n sContext = this;\n }", "CdapApplication createCdapApplication();", "private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n assertEquals(\"uk.ac.bham.student.starmegabucks\", appContext.getPackageName());\n }", "@Override\n protected void appStart() {\n }", "public static void main(String[] args) { \n new FlightController(); \n }", "public void setApp(Main application) { this.application = application;}", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n\n assertEquals(\"com.techpakka.whatsappstickerspack\", appContext.getPackageName());\n }", "public StringAppState(String xml) {\n this.xml = xml;\n }", "private AppContext()\n {\n }", "CdapStartAppStep createCdapStartAppStep();", "private static String m19532b(Context context) {\n String str = null;\n try {\n ApplicationInfo applicationInfo = context.getApplicationInfo();\n if (applicationInfo == null) {\n return null;\n }\n str = applicationInfo.sourceDir;\n return str;\n } catch (Throwable unused) {\n }\n }", "public static void main ( String[] args ) {\n PhoneBook myApp = new PhoneBook(); \r\n }", "@AutoEscape\n\tpublic String getAppName();", "private static final class <init> extends com.ebay.nautilus.kernel.content.\n{\n\n public EbayAppInfo create(EbayContext ebaycontext)\n {\n return new EbayAppInfoImpl(\"com.ebay.mobile\", \"4.1.5.22\", false);\n }", "public String getAppId();", "public String getAppNameArticle();", "Application getApplication();", "protected String suitename() {\n return \"TestManifestCommitProtocolLocalFS\";\n }", "public String getStrappver() {\n return strappver;\n }", "@Override\n\tpublic String getApp() {\n\t\tthrow new UnsupportedOperationException(\"Not supported yet.\");\n\t}", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n assertEquals(\"com.danielvilha.javatvshow\", appContext.getPackageName());\n }", "@Test\r\npublic void baseDirectory() throws Exception{\r\n\taccessdata.setAppguid(\"shiv223acharya\");\r\n\tSystem.out.println(accessdata.getAppguid()); \r\n\t/*primaryService.setAppurl(\"NodeJS/Authentication_Template\");\r\n\t\r\n\tJSONObject json=new JSONObject();\r\n\t\r\n\taccessdata.setParentdirectory(\"\");\r\n\taccessdata.setHookObj(json);\r\n\taccessdata.setRunningapp(\"Drishya\");\r\n\taccessdata.setEndpoint(\"\");\r\n\taccessdata.setDomainguid(\"\");\r\n\taccessdata.setHost(\"\");\r\n\taccessdata.setEnv_json(json);\r\n\t\r\n\tfb.setClientID(\"468331803360754\");\r\n\tfb.setClientSecret(\"8fc8690146770e0a637adcc7293280cc\");\r\n\tGoogle.setClientID(\"625227390094-m47bnlnuaguvq3phn5t5kmp503fsiagd.apps.googleusercontent.com\");\r\n\tGoogle.setClientSecret(\"k0vpP0Tp5dP2oqXmcF9v10G8\");\r\n\tprimaryProviders.setFacebook(fb);\r\n\tprimaryProviders.setGoogle(Google);*/\r\n\tassertNotNull(generateApp.baseDirectory());\r\n}", "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "public OSPApplication getOSPApp();", "abstract public String getApplicationName();", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n\n assertEquals(\"com.boom.covidchecker\", appContext.getPackageName());\n }", "private String getPkgName () {\n return context.getPackageName();\n }", "private Intent m34059f(Context context) {\n Intent intent = new Intent(\"com.meizu.safe.security.SHOW_APPSEC\");\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setComponent(new ComponentName(\"com.meizu.safe\", \"com.meizu.safe.security.AppSecActivity\"));\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "public String mo1081b() {\n return \"com.crashlytics.sdk.android:beta\";\n }", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n assertEquals(\"com.example.hw3\", appContext.getPackageName());\n }", "protected String xCB() { return BuriPathCB.class.getName(); }", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }", "@Nullable\n @Generated\n @Selector(\"sourceApplication\")\n public native String sourceApplication();", "void launchApp();", "public interface Constants {\n\n /*TODO KEY VALUE 参数*/\n String BUNDLE = \"bundle\";\n\n /*TODO APP 渠道*/\n String APP_SHANXI = \"SHANXI\";\n}", "String pkg();", "@Override\n\tpublic String toString() {\n\t\treturn this.app.toString();\n\t}", "public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }", "public static void initializeApp(Context context) {\n }", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "@Test\n public void useAppContext() {\n Context appContext = getInstrumentation().getTargetContext();\n assertEquals(\"com.example.gestionreunion\", appContext.getPackageName());\n }", "public void setMainApp(MainApp mainApp);", "private Fts5ExtensionApi(){}", "String getIntegApplicationName();", "public void setMainApp(FXApplication fxapp) {\n app = fxapp;\n }", "public String getApplication() {\r\n return application;\r\n }", "ApplicationId appId();", "CdapCreateAppStep createCdapCreateAppStep();", "public static void main(String[] args) {\n Mod1 m = new Mod1();\n m.modelName=\"Swift\";\n System.out.println(m.modelName);\n System.out.println(sf());\n \n\t}", "public static void main(String[] args) {\nLibraryServis servise = new CityLibraryService();\r\nCatalog bookCatalog = servise.getMainCatalog();\r\nviewCatalogInfo(bookCatalog);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n \r\n \r\n Resource res=null;\r\n BeanFactory bs=null;\r\n res=new FileSystemResource(\"src/com/spr/cfg/applicationContext.xml\");\r\n bs=new XmlBeanFactory(res);\r\n \r\n Object obj=bs.getBean(\"wsg\");\r\n WishApp opp=(WishApp)obj;\r\n String result=opp.WishGenrator(\"deependra\");\r\n System.out.println(result);\r\n \r\n\t}", "public interface Const {\n String SERVER_NAME = \"http://xxx.kenit.net/\";\n String SERVER_PATH = \"http://xxx.kenit.net/androidpart/\";\n String GET_PRODUCT_FILE = \"getproduct.php\";\n}", "java.lang.String getAppType();", "com.microsoft.schemas.office.x2006.digsig.STVersion xgetApplicationVersion();", "public static void main(String[] args) {\r\n\t\tString appname=\"Miniz.apk\";\r\n\t\t\t\t\t\t\t\t\t//for creation of entrypoint providing the application and android jar\r\n\t//Options.v().setPhaseOption(\"cg.cha\",\"on\");\r\n\tSetupApplication app = new\tSetupApplication(\"android.jar\",appname);\r\n\ttry {\r\n\t \t\t app.calculateSourcesSinksEntrypoints(\"SourceAndSinks.txt\");\t\t \t\t\t\r\n\t} catch (Exception e) {\r\n\t\te.printStackTrace();\r\n }\r\n\tsoot.G.reset();\r\n\t//set soot options\r\n\tOptions.v().set_src_prec(Options.src_prec_apk);\r\n\tOptions.v().set_process_dir(Collections.singletonList(appname));\r\n\tOptions.v().set_force_android_jar(\"android.jar\");\r\n\tOptions.v().set_whole_program(true);\r\n\tOptions.v().set_allow_phantom_refs(true);\r\n\t//For Handling the Junit test cases output the result into Jimple files\r\n\tOptions.v().set_output_format(Options.output_format_J);\r\n\t//For the code execution \r\n\t//Options.v().set_output_format(Options.output_format_dex);\r\n\tOptions.v().setPhaseOption(\"cg.spark verbose:true\",\"on\");\r\n\tOptions.v().setPhaseOption(\"on-fly-cg\",\"true\");\r\n\t//Renaming dummy main method as void main(String args) for sending the cfg in VASCO\r\n\tList<Type> s = new ArrayList<Type>();\r\n\ts=Arrays.asList(new Type[]{\r\n\tsoot.ArrayType.v(soot.RefType.v(\"java.lang.String\"), 1)\r\n\t});\r\n\t//creating dummy main\r\n\tSootMethod entryPoint =app.getEntryPointCreator().createDummyMain();\r\n\tentryPoint.setName(\"main\");\r\n\tentryPoint.setParameterTypes(s);\r\n\tChain<Unit> u1=entryPoint.getActiveBody().getUnits();\r\n Unit first=u1.getFirst();\r\n //Replacing the constant intitialization of dummy main variable by randomnumber for VASCO doesnt remove any branches from dummy main\r\n Scene.v().loadClassAndSupport(\"java.lang.Math\");\r\n SootMethod sm=Scene.v().getMethod(\"<java.lang.Math: double random()>\");\r\n SootMethodRef smRef=sm.makeRef();\r\n if(first instanceof AssignStmt){\r\n \tValue lhsOp = ((AssignStmt) first).getLeftOp();\r\n Value rhsOp = ((AssignStmt) first).getRightOp();\r\n if(lhsOp instanceof Local && rhsOp instanceof Constant){\r\n \tu1.removeFirst();\r\n u1.addFirst(Jimple.v().newAssignStmt(lhsOp, Jimple.v().newStaticInvokeExpr(smRef)));\r\n }\r\n }\r\n\r\n Scene.v().loadNecessaryClasses();\r\n System.out.println(\"Class::--\"+entryPoint.getDeclaringClass()+\"\\n Dummy Main....-->\"+ entryPoint.getActiveBody());\r\n\tScene.v().setEntryPoints(Collections.singletonList(entryPoint));\r\n\tOptions.v().set_main_class(entryPoint.getDeclaringClass().getName());\r\n\tPackManager.v().runPacks();\r\n\tcg = Scene.v().getCallGraph();\r\n \t\r\n\t\r\n\t//function to get all the methods existing in the call graph\r\n\trecursive(entryPoint);\r\n\t//Printing the methods in the call graph \r\n\tfor(Entry<String, Boolean> eSet : visited.entrySet()){\r\n\t\t\tString value=eSet.getKey().toString();\r\n\t\t\tSystem.out.println(\"Methods in callg graph: \"+value);\r\n\t}\r\n\t\r\n\tList<SootMethod> unusedmethods=new ArrayList<SootMethod>();\t\r\n\tSystem.out.println(\"All::-->\");\r\n\t//Fetching all the methods in the Application and storing the unused methods in a list(unusedmethods)\r\n\tChain<SootClass> clas=Scene.v().getApplicationClasses();\r\n\tfor(SootClass abc1:clas){\r\n\t \tSootClass sClass=Scene.v().loadClassAndSupport(abc1.getName());\r\n\t \tList <SootMethod> methods=sClass.getMethods();\r\n\t\t\t \tfor(SootMethod a: methods){\r\n\t \t\tSystem.out.println( a.getSignature());\r\n\t \t\tif(visited.containsKey(a.getSignature()))\r\n\t \t\t\tcontinue;\r\n\t \t\telse{\r\n\t \t\t\t//Handling classes which extends View and the attributes are not defined in Layout.xml , Handling all init & access functions and Handler functions along with SQLiteDatabase Helper \r\n\t \t\t \t\t\tif(!(a.getSubSignature().contains(\"void <init>\") || a.getSubSignature().contains(\"void <clinit>\") || a.getSubSignature().contains(\"access$\") || a.getDeclaringClass().getSuperclass().getName().contains(\"SQLiteOpenHelper\"))){\r\n\t \t\t \t\t\t\tif(a.getDeclaringClass().getSuperclass().getName().equals(\"android.view.View\") || a.getDeclaringClass().getSuperclass().getName().contains(\"android.os.Handler\")){\r\n\t \t\t \t\t\t\t\tList<SootMethod> methodlist=a.getDeclaringClass().getSuperclass().getMethods();\r\n\t \t\t\t \t\t\t\tint flag=0;\r\n\t \t\t\t \t\t\t\tfor(SootMethod ab: methodlist){\r\n\t \t\t\t \t\t\t\t\tif(ab.getSubSignature()==a.getSubSignature()){// && !unusedmethods.contains(a))\r\n\t \t\t\t \t\t\t\t\t\tflag=1;\r\n\t \t\t\t \t\t\t\t\t\tbreak;\r\n\t \t\t\t \t\t\t\t\t}\r\n\t \t\t\t \t\t\t\t}\r\n\t \t\t\t \t\t\t\tif(flag!=1)\r\n\t \t\t\t \t\t\t\t\tunusedmethods.add(a);\r\n\t \t\t\t \t\t\t}\r\n\t \t\t \t\t\t\telse\r\n\t \t\t\t \t\t\t\tunusedmethods.add(a);\r\n\t \t\t\t\t}\r\n\t \t\t\t\t\r\n\t \t\t\t\r\n\t \t\t}\r\n\r\n\t \t}\r\n\t }\r\n\t \r\n\t //Handling the functions when the class implements interface\r\n\t List<SootMethod> delm = new ArrayList<SootMethod>();\r\n\t List<SootMethod> un=unusedmethods;\r\n\t for(SootMethod m:un){\r\n\t\t \t if(m.getDeclaringClass().getInterfaceCount()>0){\r\n\t\t\t\t\t Chain<SootClass> interfaces=m.getDeclaringClass().getInterfaces();\r\n\t\t\t\t\t for(SootClass c:interfaces){\r\n\t\t\t\t\t\t List<SootMethod> smi=c.getMethods();\r\n\t\t\t\t\t\t for(SootMethod m1:smi){\r\n\t\t\t\t\t\t\t if(m1.getName().contains(m.getName())){\r\n\t\t\t\t\t\t\t\t delm.add(m);\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t\t \r\n\t\t\t }\r\n\t }\r\n\t for(SootMethod m1:delm){\r\n\t\t unusedmethods.remove(m1);\r\n\t }\r\n\r\n\t //Handling Reflection methods\r\n\t for(SootMethod a: un){\r\n\t\t\tSootClass classWeNeedToLoad = a.getDeclaringClass();\r\n\t\t\tfor(Map.Entry<String,String> entry: Driver.runmethods.entrySet()){\r\n\t\t\t//\tif(!(entry.getKey().contains(classWeNeedToLoad.toString()) && a.getName().contains(entry.getValue())))\r\n\t\t\t\tif(entry.getValue().contains(a.getName()) && entry.getKey().contains(classWeNeedToLoad.toString())){\r\n\t\t\t\t\tunusedmethods.remove(a);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t \r\n\t //Remove the unused methods\t \r\n\t for(SootMethod a: unusedmethods){\r\n\t \tSootClass classWeNeedToLoad = a.getDeclaringClass();\r\n\t \tclassWeNeedToLoad.removeMethod(a);\r\n\t\t}\r\n\t\r\n\r\n\t//Calling Vasco for interprocedural analysis \r\n\tInterproceduralAnalysis ipa = new InterproceduralAnalysis(new EmptyReporter());\r\n\tipa.doAnalysis();\r\n\tprint();\r\n\t//Deleting the ifs with constant result\r\n\tdeleteifs(ifStmts);\r\n\t\r\n\t//Write the apk\r\n\tPackManager.v().writeOutput();\r\n}", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\t//mDb = Database.getInstance(this);\r\n\t\tLog.v(\"hello\", \"APP onCreate~~\");\r\n\t\t//mSDK = PosSDK.getInstance(this);\r\n\t\tmPosApi = PosApi.getInstance(this);\r\n//\t\tmPosApi.closeDev()\r\n\t\tinit();\r\n\t\t\r\n\t\tsp = getSharedPreferences(\"sp_demo\", Context.MODE_PRIVATE);\r\n\t\tisScan1= sp.getBoolean(\"isScan\", true);\r\n\t\tisModel1= sp.getBoolean(\"isModel\", true);\r\n\t\tisInput1= sp.getBoolean(\"isInput\", true);\r\n\t\t\r\n\t\tprefixx=sp.getString(\"prefixx\", \"\");\r\n\t}", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n\n assertEquals(\"school.team.musictuner\", appContext.getPackageName());\n assertEquals(4, 2+2);\n }", "public void setAppName( String appName )\n\t{\n\t\tthis.appName = appName;\n\t}", "public static String getappno(){\n\t\t String result = \"123456\";\r\n\t\treturn result;\r\n\t}", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n assertEquals(\"com.yang.mymedicalpoject\", appContext.getPackageName());\n }", "String backend();", "public interface StandardContext extends Context\n{\n public static final String NAME_KEY = \"urn:avalon:name\";\n public static final String PARTITION_KEY = \"urn:avalon:partition\";\n public static final String WORKING_KEY = \"urn:avalon:temp\";\n public static final String HOME_KEY = \"urn:avalon:home\";\n\n /**\n * Return the name assigned to the component\n * @return the name\n */\n String getName();\n\n /**\n * Return the partition name assigned to the component\n * @return the partition name\n */\n String getPartitionName();\n\n /**\n * @return a file representing the home directory\n */\n File getHomeDirectory();\n\n /**\n * @return a file representing the temporary working directory\n */\n File getWorkingDirectory();\n\n}", "public static void main(String[] args) {\r\n SunSpotHostApplication app = new SunSpotHostApplication();\r\n app.run();\r\n }", "public String getAppName( )\n\t{\n\t\treturn appName;\n\t}", "public App() {\n initComponents();\n }", "public App() {\n initComponents();\n }", "public static String getPreAppId(String paramString) {\n }", "boolean mo26169a(Context context, String str);", "@Test\n public void useAppContext() throws Exception {\n Context appContext = InstrumentationRegistry.getTargetContext();\n assertEquals(\"com.cs4518.halfway\", appContext.getPackageName());\n }", "public TAppAccess() {\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "public static void main(final String[] args) throws Exception {\n Resource.setDefaultUseCaches(false);\n Integer SERVER_PORT = Integer.parseInt(ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.port\"));\n String SERVER_HOST = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.host\");\n String CONTEXT_PATH = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.context_path\");\n \n final Server server = new Server(SERVER_PORT);\n System.setProperty(AppConfig.SERVER_PORT, SERVER_PORT.toString());\n System.setProperty(AppConfig.SERVER_HOST, SERVER_HOST);\n System.setProperty(AppConfig.CONTEXT_PATH, CONTEXT_PATH);\n \n\n // Configuring Apache CXF servlet and Spring listener \n final ServletHolder servletHolder = new ServletHolder(new CXFServlet());\n final ServletContextHandler context = new ServletContextHandler();\n context.setContextPath(\"/\");\n context.addServlet(servletHolder, \"/\" + CONTEXT_PATH + \"/*\");\n context.addEventListener(new ContextLoaderListener());\n context.setInitParameter(\"contextClass\", AnnotationConfigWebApplicationContext.class.getName());\n context.setInitParameter(\"contextConfigLocation\", AppConfig.class.getName());\n \n FilterHolder filterHolder = context.addFilter(CrossOriginFilter.class,\"/*\",EnumSet.allOf(DispatcherType.class));\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_ORIGINS_PARAM,\"*\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_HEADERS_PARAM,\"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_METHODS_PARAM,\"GET,PUT,POST,DELETE,OPTIONS\");\n filterHolder.setInitParameter(CrossOriginFilter.PREFLIGHT_MAX_AGE_PARAM,\"5184000\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOW_CREDENTIALS_PARAM,\"true\");\n\n\n // Configuring Swagger as static web resource\n final ServletHolder swaggerHolder = new ServletHolder(new DefaultServlet());\n final ServletContextHandler swagger = new ServletContextHandler();\n swagger.setContextPath(\"/swagger\");\n swagger.addServlet(swaggerHolder, \"/*\");\n swagger.setResourceBase(new ClassPathResource(\"/webapp\").getURI().toString());\n\n final HandlerList handlers = new HandlerList();\n handlers.addHandler(swagger);\n handlers.addHandler(context);\n\n server.setHandler(handlers);\n server.start();\n server.join();\n }", "@RequestMapping(\"/\")\n public String get() {\n return \"Yes, CF I am running\";\n }", "public String shortForm(URI uri)\n { return \"WRONG SHORTFORM PROVIDER!!!\"; }", "private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }", "public static boolean zzcz(Context context) {\n synchronized (zzbhd.class) {\n Context context2 = context.getApplicationContext();\n if (zzgfe != null && zzgff != null && zzgfe == context2) {\n return zzgff;\n }\n zzgff = null;\n if (zzq.isAtLeastO()) {\n zzgff = context2.getPackageManager().isInstantApp();\n } else {\n try {\n context.getClassLoader().loadClass(\"com.google.android.instantapps.supervisor.InstantAppsRuntime\");\n zzgff = true;\n }\n catch (ClassNotFoundException classNotFoundException) {\n zzgff = false;\n }\n }\n zzgfe = context2;\n return zzgff;\n }\n }", "public interface COSConstants {\n\n public static final String CLOTHO_PATH_PREFIX = \"/clotho\";\n public static final String GIRLITY_PATH_PREFIX = \"/girlity\";\n public static final String PACKAGE_PATH_PREFIX = CLOTHO_PATH_PREFIX+ \"/package\";\n public static final String SPLASH_PATH_PREFIX = GIRLITY_PATH_PREFIX+ \"/splash\";\n}", "void setStartUpExe(String s);" ]
[ "0.6231221", "0.5857572", "0.5749865", "0.5749865", "0.5749865", "0.55575925", "0.5375586", "0.53176504", "0.53078425", "0.53052825", "0.52899563", "0.5236552", "0.523537", "0.5234593", "0.5227312", "0.52159184", "0.52060586", "0.52055264", "0.5159521", "0.5157869", "0.51553315", "0.51517105", "0.5143923", "0.51321584", "0.5113774", "0.5092398", "0.50533146", "0.50527877", "0.50524044", "0.50444335", "0.5031922", "0.5012444", "0.5005111", "0.49926823", "0.49815476", "0.49635306", "0.49621814", "0.4959667", "0.4958667", "0.49429187", "0.4935989", "0.49330723", "0.4925532", "0.49231943", "0.49154073", "0.48969418", "0.4896014", "0.48942122", "0.48815897", "0.48689896", "0.48586744", "0.48545218", "0.4851281", "0.4847226", "0.4847226", "0.4838791", "0.48187855", "0.48152885", "0.48072222", "0.4807156", "0.47960436", "0.4786923", "0.47788107", "0.47787285", "0.47783655", "0.47763547", "0.47671223", "0.47515088", "0.47481376", "0.47439092", "0.47369623", "0.4725253", "0.4725163", "0.47232226", "0.47058138", "0.47052115", "0.470473", "0.47035673", "0.47005805", "0.47005722", "0.47000918", "0.46966836", "0.46961766", "0.46911424", "0.46868977", "0.4685526", "0.46771556", "0.46726432", "0.46726432", "0.46711248", "0.46702573", "0.46644977", "0.46609387", "0.4659763", "0.46590567", "0.4648796", "0.4648202", "0.46481776", "0.46467018", "0.46406317", "0.46392766" ]
0.0
-1