input
stringlengths
10
828
output
stringlengths
5
107
protected void set by value2 final boolean p byvalue2 byvalue2 p byvalue2
sets the by value2
private void run generated menu item action performed run generated
run generated menu item action performed
public void set fore color final color p color forecolor p color
sets the fore color
private void init components jform designer component initialization do not modify gen begin init components chk abstracto new jcheck box cell constraints cc new cell constraints this set layout new form layout 2 default lcgap default grow 2 default lgap default chk abstracto chk abstracto set text abstracto add chk abstracto cc xy 3 3 jform designer end of component initialization gen end init components
inits the components
public void set modelo final object modelo this elemento model element modelo
sets the modelo
public void add editor final vista edicion editor log info adding editor get titulo if editores contains editor editores add editor panel editores add editor get titulo jpanel editor
adds the editor
public color get fore color return forecolor
gets the fore color
private void init combos super load visibility to combo box combo visibilidad combo inheritance stratg remove all items for inheritance type item inheritance type values combo inheritance stratg add item item to string
inits the combos
public void set select color final color p color selectcolor p color
sets the select color
public color get select color return selectcolor
gets the select color
public void set paint color final color p color paintcolor p color set label colors paintcolor
sets the paint color
protected color get paint color return paintcolor
gets the paint color
public void set modelo object modelo this elemento model element modelo
sets the modelo
private void add atributo attribute atrib umlutil crear atributo nuevo atributo get element get feature size 1 get element get feature add atrib modelo lista add new nodo elemento atrib
adds the atributo
public void add listener editor listener listener if listeners contains listener listeners add listener
adds the listener
public void set selected point color final color p color selectedpointcolor p color
sets the selected point color
private void remove atributo int index lista caracteristicas get selected index if index 1 nodo elemento nodo nodo elemento lista caracteristicas get selected value nodo get elemento ref delete modelo lista remove index
removes the atributo
public color get selected point color return selectedpointcolor
gets the selected point color
private void add operacion operation oper umlutil crear operacion nueva operacion get element get feature size 1 get element get feature add oper modelo lista add new nodo elemento oper
adds the operacion
private void remove operacion final int index lista caracteristicas get selected index if index 1 nodo elemento nodo nodo elemento lista caracteristicas get selected value nodo get elemento ref delete modelo lista remove index
removes the operacion
private void add parametro parameter par umlutil crear parametro parametro get element get parameter size 1 get element get parameter add par update vista
adds the parametro
private void remove parametro final int index lista parametros get selected index if index 1 nodo elemento nodo nodo elemento lista parametros get selected value nodo get elemento ref delete modelo parametros remove index
removes the parametro
public model element get elemento return elemento
gets the elemento
public explorador get padre return padre
gets the padre
public diagram container get contenedor return contenedor
gets the contenedor
public gr diagrama get graficador return graficador
gets the graficador
public void set sticky final boolean p sticky sticky p sticky
sets the sticky
public void add diagrama if elemento null elemento instanceof uml package final diagram diagrama umlutil crear diagrama diagrama uml1 semantic model bridge puente diagrama null if get elemento null puente diagrama umlutil crear puente semantico elemento diagrama set owner puente diagrama final property diagrama prop umlutil crear propiedad diagram type class diagram diagrama get property add diagrama prop padre get controller change modelo this else app util show advertencia null debe seleccionar un paquete
adds the diagrama
public void add paquete if elemento null elemento instanceof uml package final uml package pack umlutil crear paquete nuevo paquete if get elemento null pack set namespace namespace elemento padre get controller change modelo this else app util show advertencia null debe seleccionar un paquete
adds the paquete
public void add clase if elemento null elemento instanceof uml package final uml class clase umlutil crear clase nueva clase if get elemento null clase set namespace namespace elemento padre get controller change modelo this else app util show advertencia null debe seleccionar un paquete
adds the clase
public boolean get sticky return sticky
gets the sticky
public void add interfaz if elemento null elemento instanceof uml package final interface inter umlutil crear interfaz nueva interface if get elemento null inter set namespace namespace elemento padre get controller change modelo this else app util show advertencia null debe seleccionar un paquete
adds the interfaz
public void set sticky labels final boolean p sticky stickylabels p sticky for edge text elem textos elem set can move stickylabels
sets the sticky labels
public boolean get sticky labels return stickylabels
gets the sticky labels
public void set contenedor final diagram container contenedor this contenedor contenedor
sets the contenedor
public void set graphical final boolean isgraph isgraphical isgraph
sets the graphical
public void set fin1 final elemento visual edge end fin1 edge end
sets the fin1
public void set fin2 final elemento visual edge end fin2 edge end
sets the fin2
public elemento visual get fin1 return fin1
gets the fin1
public elemento visual get fin2 return fin2
gets the fin2
public void add point final int x final int y puntos add new point x y
adds the point
public boolean add point final point p puntos add p return true
adds the point
public jscroll pane get panel explorer return panel explorer
gets the panel explorer
public closeable tabbed pane get tab center return tabbed pane
gets the tab center
public graph edge get linea logica return modelo
gets the linea logica
public jtable get table project return table project
gets the table project
public jscroll pane get panel element return panel element
gets the panel element
private void init eventos get tabbed pane add property change listener new property change listener override public void property change final property change event evt if evt get property name equals removing tab final panel gr diagrama panel panel gr diagrama evt get old value controller proyecto remove view panel get diagrama
inits the eventos
private void add project view final hashtable properties proyecto get properties get table project set model new property table model properties controller proyecto add view new vista override public void set modelo final object modelo override public void update vista override public string get titulo return override public void model property change final property change event evt model set properties proyecto get properties final property table model table model property table model get table project get model table model fire table data changed
adds the project view
private void remove elemento if get arbol get selection path null final nodo explorador nodo nodo explorador get arbol get selection path get last path component if nodo null nodo remove set mensaje elemento eliminado else app util show advertencia this debe seleccionar un elemento en el arbol
removes the elemento
private void add diagrama if get arbol get selection path null final nodo explorador nodo nodo explorador get arbol get selection path get last path component if nodo null nodo add diagrama else app util show advertencia this debe seleccionar un lugar en el arbol primero
adds the diagrama
private void remove diagrama if get arbol get selection path null final nodo explorador nodo nodo explorador get arbol get selection path get last path component if nodo null nodo get diagrama null nodo remove set mensaje diagrama eliminado else app util show advertencia this no es un diagrama else app util show advertencia this debe seleccionar un diagrama
removes the diagrama
private void set mensaje final string str log info str status text set text str
sets the mensaje
public diagram get current diagram if get tab center get selected index tab 1 final gr diagrama gr diagrama container get graficador get tab center get selected index tab if gr diagrama null return gr diagrama get diagram return null
gets the current diagram
public tree node get node return current node
returns the current node or null if no node is selected
public void set expanded boolean is expanded this is expanded is expanded
sets the expanded property value
public void add child tree node child if child null return if children null children new tree node child else tree node old children children new tree node old length 1 for int i 0 i old length i children i old i children old length child
adds the provided node as a child of this node
public void set var node toggler string var node toggler this var node toggler var node toggler
sets the value of the var node toggler property i
protected void set properties uicomponent component super set properties component faces context context get faces context if value null value binding vb context get application create value binding value component set value binding value vb if var null uitree component set var var if var node toggler null uitree component set var node toggler var node toggler
configures the component based on the tag handler property
public string get var node toggler return var node toggler
returns the name of the request scope through which the node toggler is
private node toggler get node toggler if node toggler null node toggler new node toggler this return node toggler
returns the single instance of the node toggler creating it if needed
public uicomponent get open node return get facet open node
returns the open node facet
public void set open node uicomponent open node get facets put open node open node
sets the open node facet
public uicomponent get closed node return get facet closed node
returns the closed node facet
public void set closed node uicomponent closed node get facets put closed node closed node
sets the open node facet
public uicomponent get leaf node return get facet leaf node
returns the leaf node facet
public void set leaf node uicomponent closed node get facets put leaf node closed node
sets the leaf node facet
public object get value if value null return value value binding vb get value binding value if vb null return vb get value get faces context else return null
returns the component value set explicitly or through a value binding or
public void set value binding string name value binding binding if value equals name model null else if var equals name node id equals name var node toggler equals name throw new illegal argument exception super set value binding name binding
throws an illegal argument exception if the name is var var toggler or
public string get client id faces context context string own client id super get client id context if node id null return own client id naming container separator char node id else return own client id
returns a client id composed from the regular client id returned by the
public void encode begin faces context context throws ioexception model null re evaluate even with server side state saving if keep saved context saved new hash map super encode begin context
before delegating to the superclass resets the saved per node state for
public void process decodes faces context context if is rendered return model null re evaluate even with server side state saving saved new hash map we don t need saved state here process nodes context phase id apply request values null 0 set node id null decode context
if rendered is true resets the cached model and saved per node state
public void process validators faces context context if is rendered return process nodes context phase id process validations null 0 set node id null
if rendered is true calls process nodes with a phase id for this
public void process updates faces context context if is rendered return process nodes context phase id update model values null 0 set node id null
if rendered is true calls process nodes with a phase id for this
public object save state faces context context object values new object 4 values 0 super save state context values 1 value values 2 var values 3 var node toggler return values
returns the component state to be saved as part of the view state
public void restore state faces context context object state object values object state super restore state context values 0 value values 1 var string values 2 var node toggler string values 3
restores the component to the provided state previously returned by the
private boolean keep saved faces context context iterator client ids saved key set iterator while client ids has next string client id string client ids next iterator messages context get messages client id while messages has next faces message message faces message messages next if message get severity compare to faces message severity error 0 return true return false
returns true if theres at least one error message queued for a client
private void restore descendant state faces context context get faces context iterator i get facets values iterator while i has next uicomponent facet uicomponent i next restore descendant state facet context
restores state information for all facets by calling the
private void save descendant state faces context context get faces context iterator i get facets values iterator while i has next uicomponent facet uicomponent i next save descendant state facet context
saves state information for all facets by calling the
public void load cdna if chromosomes null init chromosome data if chromosome data valid cdna org cdna get data manager get subset cdna eigentlich noch die cdna aussortieren und jedem chromosom nur die geben die es braucht machen wir noch nicht for int i 0 i chromosomes length i set group org cdna chromosomes i chromosome data valid true
fetches current cdna group and integrates data into chromomsomes
public string select gene string current get selected area to string if current null current equals return null cdna spot get spot for ensembl current get data manager set akt cdna spot faces context context faces context get current instance external context ex context get external context try ex redirect show interactions faces catch exception e return null
sets the gene on click on image map
public string search name try cdna root cdna new cdna get info for ensembl id name graph builder gb new graph builder root cdna get session manager get data manager get subset cdna this true false gb run catch exception e e print stack trace faces context context faces context get current instance external context ex context get external context try ex redirect show interactions faces catch exception e return null
updates website information
public string get label vertex v cdna c cdna v get user datum cdna if c null c length 0 return c 0 get gene cdna ensembl cdna v get user datum ensembl if ensembl null if ensembl get gene null return ensembl get gene string name string v get user datum name if name null return name return
try to get any kind of name
public void set tree model tree model tree model go model new term tree model copy tree node term tree node tree model get root node go2 all genes get go2 gene hash get data manager get dataset cdna go2 all count get go2 count hash go2 all genes go data valid false
generates a copy of the shared tree model
public gene get gene gene genes string ensemblid for int i 0 i genes length i if genes i get ensembl id equals ensemblid return genes i return null
returns gene if contained null otherwise
public void set passwd string passwd this passwd passwd this passwd passwd get encoded password passwd
stores password encrypted
public place request request return new place request this
returns a new request for this place
public place request request with string name string value return new place request this with name value
a convenience method for calling
public place request with string name string value return new place request this name value
returns a new instance of the request with the specified parameter name
protected boolean add presenter widget presenter presenter if is bound presenters add presenter return true return false
adds the presenter if the current presenter is unbound
public d get display return display
returns the display for the presenter
private checkbox get chk mostra indices if chk mostra indices null try chk mostra indices new checkbox chk mostra indices set label mostrar indices generated chk mostra indices set bounds 9 348 102 23 generated chk mostra indices set name chk mostra indices generated catch java lang throwable e todo something return chk mostra indices
this method initializes checkbox
private text field get txt valor indice t if txt valor indice t null try txt valor indice t new text field txt valor indice t set bounds 28 377 72 21 generated txt valor indice t set text 0 0005 txt valor indice t set editable false catch java lang throwable e todo something return txt valor indice t
this method initializes text field
private button get btn limpar if btn limpar null try btn limpar new button btn limpar set bounds 9 402 67 23 generated btn limpar set label limpar generated btn limpar add action listener new java awt event action listener public void action performed java awt event action event e limpa pontos controle catch java lang throwable e todo something return btn limpar
this method initializes button
public void close safe close
must be called to close the encapsulated prepared statement
public void register delete if is registered for delete get jaxor context register delete this is registered for delete true
registers this entity for deletion with the unit of work
public void register cascading delete if is cascading delete recursive call return register delete is cascading delete true try list foreign fields get fields get foreign fields for iterator iterator foreign fields iterator iterator has next foreign field lazy loader foreign foreign field lazy loader iterator next list entities foreign get field as list for iterator entity iterator entities iterator entity iterator has next entity interface entity entity interface entity iterator next entity register cascading delete finally is cascading delete false
registers this entity and all reference foreign entities for deletion
public void close super close stmt close
override close so that the prepared statement is properly closed
public void close if real connection null return try real connection close catch sqlexception e throw new system exception e real connection null pretend connection null
when you really want to close the connection
public void test large insert set int max 10000 for int i 0 i max i object factory create address new long i commit assert equals max address finder select all size
this should take a couple seconds