input
stringlengths
10
828
output
stringlengths
5
107
public t first matcher matcher return t lambda select first get inner matcher
selects the first object in this iterable that matches the given hamcrest matcher
public t unique matcher matcher return t lambda select unique get inner matcher
selects the unique object in this iterable that matches the given hamcrest matcher
private void initialize modelo new default combo box model new string lab fisica lab quimica lab informatico aula normal this set size 434 302 this set layout null this add get panel materia null this add get btn aceptar null this add get btn cancelar null this add get panel materia
this method initializes this
private void initialize this set size 444 335 this set content pane get jcontent pane
this method initializes this
private panel materia get jcontent pane if panel materia null panel materia new panel materia panel materia set layout new border layout return panel materia
this method initializes j content pane
private jtext field get txt nombre materia if txt nombre materia null txt nombre materia new jtext field txt nombre materia set border border factory create line border color black 1 txt nombre materia set bounds new rectangle 133 40 145 27 return txt nombre materia
this method initializes txt nombre materia
private jscroll pane get jsp descripcion if jsp descripcion null jsp descripcion new jscroll pane jsp descripcion set bounds new rectangle 134 81 243 93 jsp descripcion set viewport view get txt descripcion return jsp descripcion
this method initializes jsp descripcion
private jtext area get txt descripcion if txt descripcion null txt descripcion new jtext area txt descripcion set border border factory create line border color black 1 return txt descripcion
this method initializes txt descripcion
private jcombo box get cbb tipo de aula if cbb tipo de aula null cbb tipo de aula new jcombo box cbb tipo de aula set model modelo cbb tipo de aula set bounds new rectangle 140 200 145 27 return cbb tipo de aula
this method initializes cbb tipo de aula
private void initialize this set size 444 317 this set content pane get jcontent pane
this method initializes this
private panel colegio get jcontent pane if panel colegio null panel colegio new panel colegio return panel colegio
this method initializes j content pane
private jbutton get btn aceptar if btn aceptar null btn aceptar new jbutton btn aceptar set bounds new rectangle 175 267 108 27 btn aceptar set text aceptar return btn aceptar
this method initializes btn aceptar
private jbutton get btn cancelar if btn cancelar null btn cancelar new jbutton btn cancelar set bounds new rectangle 301 267 108 27 btn cancelar set text cancelar return btn cancelar
this method initializes btn cancelar
private void initialize this set content pane get jcontent pane int height this get jcontent pane get height 40 int width this get jcontent pane get width 10 system out println height system out println width this set size width height
this method initializes this
private panel asistencia get jcontent pane if j content pane null j content pane new panel asistencia return j content pane
this method initializes j content pane
private jpanel get panel lista if panel lista null panel lista new jpanel panel lista set layout new box layout get panel lista box layout x axis medida 17f modelo get row count 1 panel lista set bounds new rectangle 13 39 578 int medida panel lista add get jsp lista estudiantes null return panel lista
this method initializes panel lista
private jscroll pane get jsp lista estudiantes if jsp lista estudiantes null jsp lista estudiantes new jscroll pane jsp lista estudiantes set viewport view get tbl lista estudiantes return jsp lista estudiantes
this method initializes jsp lista estudiantes
private jscroll pane get jsp nomina if jsp nomina null jsp nomina new jscroll pane medida 17 5f modelo nomina get row count 1 jsp nomina set bounds new rectangle 10 64 939 int medida jsp nomina set viewport view get tbl nomina return jsp nomina
this method initializes jsp nomina
private void initialize this set size 318 264 this set content pane get jcontent pane
this method initializes this
private configuracion nomina get jcontent pane if j content pane null j content pane new configuracion nomina j content pane set layout new border layout return j content pane
this method initializes j content pane
private jtext field get txt isr if txt isr null txt isr new jtext field txt isr set border border factory create line border color black 1 txt isr set bounds new rectangle 57 18 107 20 txt isr set text manejador get valores 1 to string return txt isr
this method initializes txt isr
private jtext field get txt ars if txt ars null txt ars new jtext field txt ars set border border factory create line border color black 1 txt ars set bounds new rectangle 57 39 107 20 txt ars set text manejador get valores 2 to string return txt ars
this method initializes txt ars
private jtext field get txt sp if txt sp null txt sp new jtext field txt sp set border border factory create line border color black 1 txt sp set bounds new rectangle 57 60 107 20 txt sp set text manejador get valores 3 to string return txt sp
this method initializes txt sp
private jbutton get btn configurar if btn configurar null btn configurar new jbutton btn configurar set bounds new rectangle 56 132 185 25 btn configurar set text cambiar configuracion btn configurar add action listener new java awt event action listener public void action performed java awt event action event e manejador modificar valor nomina double parse double txt isr get text double parse double txt ars get text double parse double txt sp get text return btn configurar
this method initializes btn configurar
private void initialize this set size 570 536 this set content pane get jcontent pane
this method initializes this
private jpanel get jcontent pane if panel estudiante null panel estudiante new panel estudiante panel estudiante set layout new border layout return panel estudiante
this method initializes j content pane
private void initialize this set size 583 531 this set content pane get jcontent pane this set layout null
this method initializes this
private panel agregar personal escolar get jcontent pane if panel agregar pesonal escolar null panel agregar pesonal escolar new panel agregar personal escolar panel agregar pesonal escolar set layout null panel agregar pesonal escolar add get btn aceptar null return panel agregar pesonal escolar
this method initializes j content pane
private jbutton get btn aceptar if btn aceptar null btn aceptar new jbutton btn aceptar set bounds new rectangle 345 452 106 27 btn aceptar set text aceptar return btn aceptar
this method initializes btn aceptar
private jpanel get panel contenedor if panel contenedor null panel contenedor new jpanel panel contenedor set layout null panel contenedor add get panel identificacion null panel contenedor add get btn foto null panel contenedor add get panel imagen null panel contenedor add get panel direccion null panel contenedor add get panel contacto null panel contenedor add get panel otros null return panel contenedor
this method initializes panel contenedor
private jtext field get txt nombre if txt nombre null txt nombre new jtext field txt nombre set bounds new rectangle 79 13 180 20 txt nombre set border border factory create line border color black 1 return txt nombre
this method initializes txt nombre
private jtext field get txt apellido if txt apellido null txt apellido new jtext field txt apellido set bounds new rectangle 79 39 180 20 txt apellido set border border factory create line border color black 1 return txt apellido
this method initializes txt apellido
private jbutton get btn foto if btn foto null btn foto new jbutton btn foto set bounds new rectangle 352 8 74 53 btn foto set horizontal text position jlabel center btn foto set vertical text position jlabel bottom btn foto set text foto btn foto add action listener new java awt event action listener public void action performed java awt event action event e panel estudiante this seleccionar imagen get panel imagen return btn foto
this method initializes btn foto
private jpanel get panel imagen if panel imagen null panel imagen new jpanel panel imagen set layout new grid bag layout panel imagen set bounds new rectangle 429 8 98 100 panel imagen set border border factory create line border color black 1 return panel imagen
this method initializes panel imagen
private jtext field get txt usuario if txt usuario null txt usuario new jtext field txt usuario set bounds new rectangle 79 65 114 20 txt usuario set border border factory create line border color black 1 return txt usuario
this method initializes txt usuario
private jpassword field get txt clave if txt clave null txt clave new jpassword field txt clave set bounds new rectangle 235 65 97 20 txt clave set border border factory create line border color black 1 return txt clave
this method initializes txt clave
private jbutton get btn foto if btn foto null btn foto new jbutton btn foto set bounds new rectangle 352 8 74 53 btn foto set horizontal text position jlabel center btn foto set vertical text position jlabel bottom btn foto set text foto return btn foto
this method initializes btn foto
private jbutton get btn cambiar idioma if btn cambiar idioma null btn cambiar idioma new jbutton btn cambiar idioma set bounds new rectangle 201 336 32 26 btn cambiar idioma add action listener new java awt event action listener public void action performed java awt event action event e string idioma en string locale us cambiar idioma idioma locale return btn cambiar idioma
this method initializes btn cambiar idioma
private jtext field get txt telefono if txt telefono null txt telefono new jtext field txt telefono set bounds new rectangle 79 13 169 20 txt telefono set border border factory create line border color black 1 return txt telefono
this method initializes txt telefono
private jtext field get txt email if txt email null txt email new jtext field txt email set bounds new rectangle 79 35 433 20 txt email set border border factory create line border color black 1 return txt email
this method initializes txt email
private jtext field get txt celular if txt celular null txt celular new jtext field txt celular set bounds new rectangle 330 13 180 20 txt celular set border border factory create line border color black 1 return txt celular
this method initializes txt celular
private jcombo box get cmb sexo if cmb sexo null cmb sexo new jcombo box cmb sexo set bounds new rectangle 79 13 169 20 cmb sexo set model cmb sexo model return cmb sexo
this method initializes cmb sexo
private jtext field get txt fecha nacimiento if txt fecha nacimiento null txt fecha nacimiento new jtext field txt fecha nacimiento set bounds new rectangle 342 12 145 20 txt fecha nacimiento set border border factory create line border color black 1 txt fecha nacimiento set editable false return txt fecha nacimiento
this method initializes txt fecha nacimiento
private jbutton get btn calendario if btn calendario null btn calendario new jbutton btn calendario set bounds new rectangle 488 12 23 20 btn calendario set icon new image icon lib images calendar ico gif btn calendario add action listener new java awt event action listener public void action performed java awt event action event e date fecha seleccionar fecha nacimiento fecha nacimiento fecha txt fecha nacimiento set text string value of formato fecha format fecha nacimiento return btn calendario
this method initializes btn calendario
private jtext field get txt nacionalidad if txt nacionalidad null txt nacionalidad new jtext field txt nacionalidad set bounds new rectangle 80 37 430 20 txt nacionalidad set border border factory create line border color black 1 return txt nacionalidad
this method initializes txt nacionalidad
private jtext field get txt email if txt email null txt email new jtext field txt email set bounds new rectangle 79 35 169 20 txt email set border border factory create line border color black 1 return txt email
this method initializes txt email
private jtext field get txt tel oficina if txt tel oficina null txt tel oficina new jtext field txt tel oficina set bounds new rectangle 79 57 169 20 txt tel oficina set border border factory create line border color black 1 return txt tel oficina
this method initializes txt tel oficina
private jtext field get txt celular if txt celular null txt celular new jtext field txt celular set bounds new rectangle 343 13 169 20 txt celular set border border factory create line border color black 1 return txt celular
this method initializes txt celular
private jradio button get rbt soltero if rbt soltero null rbt soltero new jradio button rbt soltero set bounds new rectangle 6 13 70 13 rbt soltero set text soltero rbt soltero set font new font arial font plain 12 return rbt soltero
this method initializes rbt soltero
private jtext field get txt otro if txt otro null txt otro new jtext field txt otro set bounds new rectangle 343 35 169 20 txt otro set border border factory create line border color black 1 return txt otro
this method initializes txt otro
private jradio button get rbt casado if rbt casado null rbt casado new jradio button rbt casado set bounds new rectangle 6 26 75 13 rbt casado set text casado rbt casado set font new font arial font plain 12 return rbt casado
this method initializes rbt casado
private jtext field get txt ext1 if txt ext1 null txt ext1 new jtext field txt ext1 set bounds new rectangle 343 57 49 20 txt ext1 set border border factory create line border color black 1 return txt ext1
this method initializes txt ext1
private jradio button get rbt divorciado if rbt divorciado null rbt divorciado new jradio button rbt divorciado set bounds new rectangle 89 13 83 13 rbt divorciado set text divorciado rbt divorciado set font new font arial font plain 12 return rbt divorciado
this method initializes rbt divorciado
private jtext field get txt ext2 if txt ext2 null txt ext2 new jtext field txt ext2 set bounds new rectangle 463 57 49 20 txt ext2 set border border factory create line border color black 1 return txt ext2
this method initializes txt ext2
private jradio button get rbt viudo if rbt viudo null rbt viudo new jradio button rbt viudo set bounds new rectangle 89 26 75 13 rbt viudo set text viudo rbt viudo set font new font arial font plain 12 return rbt viudo
this method initializes rbt viudo
private jpanel get panel personal if panel personal null panel personal new jpanel panel personal set layout null panel personal set size new dimension 253 232 panel personal add get panel fisico empleado null panel personal add get panel aptitudes null panel personal add get panel equipo null return panel personal
this method initializes panel personal
private jbutton get btn calendario if btn calendario null btn calendario new jbutton btn calendario set bounds new rectangle 488 12 23 20 btn calendario set icon new image icon lib images calendar ico gif btn calendario add action listener new java awt event action listener public void action performed java awt event action event e date fecha seleccionar fecha fecha nacimiento fecha txt fecha nacimiento set text string value of formato fecha format fecha nacimiento return btn calendario
this method initializes btn calendario
private jtext field get txt fecha inscripcion if txt fecha inscripcion null txt fecha inscripcion new jtext field txt fecha inscripcion set bounds new rectangle 138 13 188 20 txt fecha inscripcion set editable false txt fecha inscripcion set border border factory create line border color black 1 return txt fecha inscripcion
this method initializes txt fecha inscripcion
private jbutton get btn calendario1 if btn calendario1 null btn calendario1 new jbutton btn calendario1 set bounds new rectangle 328 13 23 20 btn calendario1 add action listener new java awt event action listener public void action performed java awt event action event e date fecha seleccionar fecha inscripcion fecha nacimiento fecha txt fecha inscripcion set text string value of formato fecha format fecha nacimiento return btn calendario1
this method initializes btn calendario1
private jtext field get txt nacionalidad if txt nacionalidad null txt nacionalidad new jtext field txt nacionalidad set bounds new rectangle 342 39 168 20 txt nacionalidad set border border factory create line border color black 1 return txt nacionalidad
this method initializes txt nacionalidad
private jcombo box get cmb curso if cmb curso null cmb curso new jcombo box cmb curso set bounds new rectangle 138 37 117 20 return cmb curso
this method initializes cmb curso
private jcombo box get cmb seccion if cmb seccion null cmb seccion new jcombo box cmb seccion set bounds new rectangle 138 61 117 20 return cmb seccion
this method initializes cmb seccion
private jtext field get txt nombre padre if txt nombre padre null txt nombre padre new jtext field txt nombre padre set bounds new rectangle 138 13 373 20 txt nombre padre set border border factory create line border color black 1 return txt nombre padre
this method initializes txt nombre padre
private jtext field get txt nombre madre if txt nombre madre null txt nombre madre new jtext field txt nombre madre set bounds new rectangle 138 37 373 20 txt nombre madre set border border factory create line border color black 1 return txt nombre madre
this method initializes txt nombre madre
private jtext field get txt telefono padre if txt telefono padre null txt telefono padre new jtext field txt telefono padre set bounds new rectangle 79 61 171 21 txt telefono padre set border border factory create line border color black 1 return txt telefono padre
this method initializes txt telefono padre
private jtext field get txt telefono madre if txt telefono madre null txt telefono madre new jtext field txt telefono madre set bounds new rectangle 360 61 150 21 txt telefono madre set border border factory create line border color black 1 return txt telefono madre
this method initializes txt telefono madre
private jtext field get txt cedula padre if txt cedula padre null txt cedula padre new jtext field txt cedula padre set bounds new rectangle 99 85 151 21 txt cedula padre set border border factory create line border color black 1 return txt cedula padre
this method initializes txt cedula padre
private jpanel get panel laboral if panel laboral null panel laboral new jpanel panel laboral set layout null panel laboral set size new dimension 125 107 panel laboral add get panel posicion null panel laboral add get panel clasificacion null panel laboral add get panel sueldo null return panel laboral
this method initializes panel laboral
private jtext field get txt cedula madre if txt cedula madre null txt cedula madre new jtext field txt cedula madre set bounds new rectangle 359 85 151 21 txt cedula madre set border border factory create line border color black 1 return txt cedula madre
this method initializes txt cedula madre
private jscroll pane get jsp observaciones if jsp observaciones null jsp observaciones new jscroll pane jsp observaciones set bounds new rectangle 110 14 401 153 jsp observaciones set viewport view get txt observaciones jsp observaciones set border border factory create line border color black 1 return jsp observaciones
this method initializes jsp observaciones
private jcombo box get cmb contrato if cmb contrato null cmb contrato new jcombo box cmb contrato set bounds new rectangle 97 23 157 20 cmb contrato set model modelo contrato cmb contrato add item listener new java awt event item listener public void item state changed java awt event item event e spinner ingreso set enabled true return cmb contrato
this method initializes cmb contrato
private jtext area get txt observaciones if txt observaciones null txt observaciones new jtext area txt observaciones set line wrap true txt observaciones set wrap style word true return txt observaciones
this method initializes txt observaciones
private jbutton get btn aceptar if btn aceptar null btn aceptar new jbutton btn aceptar set bounds new rectangle 330 466 103 28 btn aceptar set text aceptar return btn aceptar
this method initializes btn aceptar
private jbutton get btn cancelar if btn cancelar null btn cancelar new jbutton btn cancelar set bounds new rectangle 442 466 103 28 btn cancelar set text cancelar return btn cancelar
this method initializes btn cancelar
private jradio button get rdb activo if rdb activo null rdb activo new jradio button rdb activo set bounds new rectangle 9 13 119 20 rdb activo set text empleado activo rdb activo set font new font arial font plain 12 return rdb activo
this method initializes rdb activo
private jradio button get rdb inactivo if rdb inactivo null rdb inactivo new jradio button rdb inactivo set bounds new rectangle 9 30 116 19 rdb inactivo set text inactivo rdb inactivo set font new font arial font plain 12 rdb inactivo add change listener new javax swing event change listener public void state changed javax swing event change event e if rdb inactivo is selected spinner fecha baja set enabled true else spinner fecha baja set enabled false return rdb inactivo
this method initializes rdb inactivo
private jscroll pane get jsp horario if jsp horario null jsp horario new jscroll pane jsp horario set bounds new rectangle 9 26 477 333 jsp horario set viewport view get tbl horario jsp horario set border border factory create line border color black 1 return jsp horario
this method initializes jsp horario
private jtable get tbl horario if tbl horario null tbl horario new jtable return tbl horario
this method initializes tbl horario
private jbutton get btn agreegar horario if btn agreegar horario null btn agreegar horario new jbutton btn agreegar horario set bounds new rectangle 493 8 31 29 return btn agreegar horario
this method initializes btn agreegar horario
private jscroll pane get jsp notas if jsp notas null jsp notas new jscroll pane jsp notas set bounds new rectangle 266 33 243 75 jsp notas set viewport view get txt notas jsp notas set border border factory create line border color black 1 return jsp notas
this method initializes jsp notas
private jtext area get txt notas if txt notas null txt notas new jtext area return txt notas
this method initializes txt notas
private jcombo box get cmb puesto if cmb puesto null cmb puesto new jcombo box cmb puesto set bounds new rectangle 177 45 215 20 cmb puesto set enabled false cmb puesto add item no asignado return cmb puesto
this method initializes cmb puesto
private jcombo box get cmb sub departamento if cmb sub departamento null cmb sub departamento new jcombo box cmb sub departamento set bounds new rectangle 177 67 215 20 cmb sub departamento set enabled false cmb sub departamento add item no asignado return cmb sub departamento
this method initializes cmb sub departamento
private jcombo box get cmb tipo pago if cmb tipo pago null cmb tipo pago new jcombo box cmb tipo pago set bounds new rectangle 179 23 270 20 cmb tipo pago set model new default combo box model new string no asignado cheques efectivo por hora tarjeta de credito cmb tipo pago add item listener new java awt event item listener public void item state changed java awt event item event e txt sueldo bruto set editable true return cmb tipo pago
this method initializes cmb tipo pago
private jtext field get txt sueldo bruto if txt sueldo bruto null txt sueldo bruto new jtext field txt sueldo bruto set bounds new rectangle 180 56 270 20 txt sueldo bruto set editable false txt sueldo bruto add key listener new java awt event key adapter public void key typed java awt event key event e char letra e get key char if letra 0 letra 9 letra e vk back space e consume return txt sueldo bruto
this method initializes txt sueldo bruto
private jtext field get txt pago por hora if txt pago por hora null txt pago por hora new jtext field txt pago por hora set bounds new rectangle 179 68 100 20 txt pago por hora set editable false txt pago por hora add key listener new java awt event key adapter public void key typed java awt event key event e char letra e get key char if letra 0 letra 9 letra e vk back space e consume return txt pago por hora
this method initializes txt pago por hora
private jtext field get txt cantidad horas if txt cantidad horas null txt cantidad horas new jtext field txt cantidad horas set bounds new rectangle 368 68 81 20 txt cantidad horas set editable false txt cantidad horas add key listener new java awt event key adapter public void key typed java awt event key event e char letra e get key char if letra 0 letra 9 letra e vk back space e consume return txt cantidad horas
this method initializes txt cantidad horas
static public weekday value of int value switch value case 1 return weekday sunday case 2 return weekday monday case 3 return weekday tuesday case 4 return weekday wednesday case 5 return weekday thursday case 6 return weekday friday case 7 return weekday saturday default throw new illegal argument exception value must be 1 7
returns a new weekday object given its cardinality
public boolean is immdate final date date return is immdate date true
checks if date is an imm date or not
public int to integer return enum value
returns the week day as a number where sunday 1 till saturday 7
public string get long format return this to string
returns the name of weekdays in long format
public boolean is immdate final date date boolean main cycle if date get weekday weekday wednesday return false int d date get day of month if d 15 d 21 return false if main cycle return true month m date get month enum return m month march m month june m month september m month december
returns whether or not the given date is an imm date
public string get short format return get as short format
returns the name of weekdays in short format 3 letters
public string get shortest format return get as shortest format
returns the name of weekdays in shortest format
public boolean is immcode final string in return is immcode in true
checks if strings specifies a imm code or not
private string get as short format string builder sb new string builder sb append this sb set length 3 return sb to string
returns the name of weekdays in short format 3 letters
private string get as shortest format string builder sb new string builder sb append this sb set length 2 return sb to string
returns the name of weekdays in shortest format 2 letters
public boolean is immcode final string in boolean main cycle if in length 2 return false if 0123456789 index of in char at 1 1 return false string str1 if main cycle str1 hmzu hmzu else str1 fghjkmnquvxz fghjkmnquvxz if str1 index of in char at 0 1 return false return true
returns whether or not the given string is an imm code
public date next date return next date date null date true
returns next main cycle imm date using settings
public date next date final date date return next date date true
returns next main cycle imm date from the specified date