input
stringlengths
10
828
output
stringlengths
5
107
public string get name return bank name
method is not needed
private jbutton get jbutton if j button null j button new jbutton j button set bounds new rectangle 400 166 43 24 j button set component orientation component orientation unknown j button set horizontal alignment swing constants center j button set mnemonic key event vk undefined j button set text r return j button
this method initializes j button
private void initialize this set size 619 370 this set content pane get jcontent pane this set title llamadas add columns j table set model model j button2 set enabled false j button1 set enabled false
this method initializes this
private jbutton get jbutton1 if j button1 null j button1 new jbutton j button1 set text r j button1 set size new dimension 43 24 j button1 set location new point 400 193 return j button1
this method initializes j button1
private jbutton get jbutton2 if j button2 null j button2 new jbutton j button2 set bounds new rectangle 315 138 42 25 j button2 set mnemonic key event vk undefined j button2 set horizontal alignment swing constants center j button2 set text r j button2 set component orientation component orientation unknown return j button2
this method initializes j button2
private panel get panel if panel null panel new panel panel set layout new grid bag layout panel set bounds new rectangle 0 0 0 0 return panel
this method initializes panel
private jbutton get jbutton3 if j button3 null j button3 new jbutton j button3 set bounds new rectangle 358 138 42 25 j button3 set mnemonic key event vk undefined j button3 set horizontal alignment swing constants center j button3 set text r j button3 set component orientation component orientation unknown return j button3
this method initializes j button3
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane j scroll pane set bounds new rectangle 32 68 392 117 j scroll pane set viewport view get jtable1 return j scroll pane
this method initializes j scroll pane
private jbutton get jbutton4 if j button4 null j button4 new jbutton j button4 set bounds new rectangle 182 229 42 25 j button4 set mnemonic key event vk undefined j button4 set horizontal alignment swing constants center j button4 set text r j button4 set component orientation component orientation unknown return j button4
this method initializes j button4
private jbutton get jbutton5 if j button5 null j button5 new jbutton j button5 set bounds new rectangle 182 259 42 25 j button5 set mnemonic key event vk undefined j button5 set horizontal alignment swing constants center j button5 set text r j button5 set component orientation component orientation unknown return j button5
this method initializes j button5
private jbutton get jbutton6 if j button6 null j button6 new jbutton j button6 set bounds new rectangle 225 289 42 25 j button6 set mnemonic key event vk undefined j button6 set horizontal alignment swing constants center j button6 set text r j button6 set component orientation component orientation unknown return j button6
this method initializes j button6
private jbutton get jbutton7 if j button7 null j button7 new jbutton j button7 set bounds new rectangle 269 290 42 25 j button7 set mnemonic key event vk undefined j button7 set horizontal alignment swing constants center j button7 set text r j button7 set component orientation component orientation unknown return j button7
this method initializes j button7
private jpanel get jpanel if j panel null j label new jlabel j label set horizontal alignment swing constants center j label set bounds new rectangle 59 12 135 15 j label set text generar tarjeta j panel new jpanel j panel set layout null j panel set bounds new rectangle 5 4 622 333 j panel add get jpanel1 null j panel add get jpanel2 null return j panel
this method initializes j panel
private jtext field get jtext field if j text field null j text field new jtext field j text field set bounds new rectangle 204 233 128 22 return j text field
this method initializes j text field
private jpanel get jpanel1 if j panel1 null j label1 new jlabel j label1 set bounds new rectangle 19 45 84 15 j label1 set text monto rd j panel1 new jpanel j panel1 set layout null j panel1 set bounds new rectangle 10 10 263 313 j panel1 set border border factory create line border color gray 2 j panel1 add j label null j panel1 add j label1 null j panel1 add get jtext field null j panel1 add get jscroll pane null j panel1 add get jbutton null return j panel1
this method initializes j panel1
private jtext field get jtext field1 if j text field1 null j text field1 new jtext field j text field1 set bounds new rectangle 206 271 68 20 return j text field1
this method initializes j text field1
private jtext field get jtext field2 if j text field2 null j text field2 new jtext field j text field2 set bounds new rectangle 207 307 65 20 return j text field2
this method initializes j text field2
private jtext field get jtext field if j text field null j text field new jtext field j text field set bounds new rectangle 109 39 115 28 j text field set font new font electron font bold 12 return j text field
this method initializes j text field
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane j scroll pane set bounds new rectangle 8 140 245 165 j scroll pane set viewport view get jtable return j scroll pane
this method initializes j scroll pane
private jpanel get jpanel3 if j panel3 null grid bag constraints grid bag constraints new grid bag constraints grid bag constraints gridx 0 grid bag constraints gridy 0 j panel3 new jpanel j panel3 set layout new grid bag layout j panel3 set bounds new rectangle 154 8 161 176 j panel3 set border border factory create titled border null estado cerrado titled border default justification titled border default position null null j panel3 add j label3 grid bag constraints return j panel3
this method initializes j panel3
private void initialize this set size 421 104 this set content pane get jcontent pane this set title array index out of bounds exception this j label1 set text string value of aioobe get size 0 4 fill spinner model this j spinner set model spinner list model
this method initializes this
private spinner list model get spinner list model if spinner list model null spinner list model new spinner list model return spinner list model
this method initializes spinner list model
private void initialize this set size 318 310 this set content pane get jcontent pane this set title give me words table model add column decrypt j table set model table model
this method initializes this
private jtext field get jtext field if j text field null j text field new jtext field j text field set bounds new rectangle 55 6 237 24 return j text field
this method initializes j text field
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane jscroll pane vertical scrollbar as needed jscroll pane horizontal scrollbar as needed j scroll pane set bounds new rectangle 18 69 278 140 j scroll pane set viewport view get jtable return j scroll pane
this method initializes j scroll pane
private void initialize this set size 660 392 this set content pane get jcontent pane this set title main screen add columns j table set model table model
this method initializes this
private jtable get jtable if j table null j table new jtable j table add mouse listener new java awt event mouse adapter public void mouse clicked java awt event mouse event e string encode j table get model get value at j table get selected row j table get selected column to string j label1 set text encriptacion decrypt encode key get keys 1 return j table
this method initializes j table
private jpanel get jcontent pane if j content pane null j content pane new jpanel j content pane set layout null j content pane add get jpanel null j content pane add get jpanel1 null return j content pane
this method initializes j content pane
private jpanel get jpanel if j panel null j panel new jpanel j panel set layout null j panel set bounds new rectangle 8 6 415 350 j panel add get jpanel2 null j panel add get jpanel3 null j panel add get jpanel4 null return j panel
this method initializes j panel
private jpanel get jpanel2 if j panel2 null j panel2 new jpanel j panel2 set layout new grid bag layout j panel2 set bounds new rectangle 0 0 0 0 return j panel2
this method initializes j panel2
private jtext field get jtext field if j text field null j text field new jtext field j text field set bounds new rectangle 96 8 106 30 return j text field
this method initializes j text field
private jpassword field get jpassword field if j password field null j password field new jpassword field j password field set bounds new rectangle 273 8 106 30 return j password field
this method initializes j password field
private jpanel get jpanel4 if j panel4 null j panel4 new jpanel j panel4 set layout null j panel4 set bounds new rectangle 18 143 382 194 j panel4 set border border factory create titled border null administrator titled border default justification titled border default position null null j panel4 add get jscroll pane null j panel4 add get jbutton1 null return j panel4
this method initializes j panel4
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane jscroll pane vertical scrollbar as needed jscroll pane horizontal scrollbar as needed j scroll pane set bounds new rectangle 13 19 358 145 j scroll pane set viewport view get jtable return j scroll pane
this method initializes j scroll pane
private jtext field get jtext field1 if j text field1 null j text field1 new jtext field j text field1 set bounds new rectangle 83 19 103 29 return j text field1
this method initializes j text field1
private jpassword field get jpassword field1 if j password field1 null j password field1 new jpassword field j password field1 set bounds new rectangle 83 54 103 29 return j password field1
this method initializes j password field1
private jbutton get jbutton2 if j button2 null j button2 new jbutton j button2 set bounds new rectangle 23 96 171 36 j button2 set text enter return j button2
this method initializes j button2
private jpanel get jpanel5 if j panel5 null grid bag constraints grid bag constraints new grid bag constraints grid bag constraints gridx 0 grid bag constraints gridy 0 j label5 new jlabel j label5 set text image j panel5 new jpanel j panel5 set layout new grid bag layout j panel5 set bounds new rectangle 19 159 181 166 j panel5 set border border factory create line border system color active caption 5 j panel5 add j label5 grid bag constraints return j panel5
this method initializes j panel5
private void update connection label lbl connections set text string value of connections
updates connection label with current connection number
private void inc connection swing utilities invoke later new runnable override public void run connections update connection label
increments connection number and updates connection label in edt
public void stop running false listener handler shutdown socket try listener selector close catch ioexception ex ex print stack trace try up stream selector close catch ioexception ex ex print stack trace try down stream selector close catch ioexception ex ex print stack trace
stops engine along with all worker threads
private void dec connection swing utilities invoke later new runnable override public void run connections update connection label
decrements connection number and updates connection label in edt
public void add connection listener connection listener listener if listeners contains listener listeners add listener
adds connection listener
public void remove connection listener connection listener listener listeners remove listener
removes connection listener
private void fire connection created final connection descriptor descriptor new thread new runnable public void run for connection listener listener listeners listener connection created descriptor connection descriptor get connection id created event thread start
fires connection creation event
private void fire connection destroyed final connection descriptor descriptor if descriptor closed get and set true return new thread new runnable public void run for connection listener listener listeners listener connection destroyed descriptor connection descriptor get connection id destroyed event thread start
fires connection destruction event
private document generate xml data names map string string names document doc get doc builder new document element base elem doc create element data config doc append child base elem for string name names key set string type names get name element list elem doc create element type list elem set attribute name name base elem append child list elem todo generate full xml config instead return doc
generate an xml formatted display of the data structure names
public semantic accessor get accessor return data accessor
get the data accessor currently used
public document builder get doc builder if doc build null try doc build document builder factory new instance new document builder catch parser configuration exception exc throw new illegal state exception cannot initialize document builder exc return doc build
get the document builder used to generate xml
public void set owl thing owl thing owl thing thing owl thing
set the owl thing to be displayed
public semantic writer get semantic writer return semantic writer
get the semantic writer used to format the data structures
public void add timed shape geo shape shape time span span timed shapes put shape span
add a timed shape with a specified time span
public transformer get transformer if transformer null try transformer transformer factory new instance new transformer transformer set output property indent yes catch exception exc throw new illegal state exception cannot transform document exc return transformer
get the transformer used to format or transform the xml output
protected void fire geo event geo event evt for geo event listener listener listeners listener receive geo event evt
fires a geo event
public void remove geo listener geo event listener listener listeners remove listener
removes the geo event listener
public string get event data return event data
retrieves the event data
public void add layer geo layer layer geo add layer layer
add a layer to the geographic display
protected boolean is debug return debug
return whether the servlet is in debug mode for a particular request
public geo bounds get geo bounds return geo get geo bounds
get the current geographic bounds
public projection get projection return geo get projection
get the current projection
public void set accessor semantic accessor accessor data accessor accessor
set the semantic accessor used by this servlet
public void set arrangement graph arrangement n e arrangement
this method is a stub
public void set geo bounds geo bounds geo bounds geo set geo bounds geo bounds projection projection geo get projection projection set geo bounds geo bounds proj set projection projection try canvas arrange catch arrangement exception exc never actually thrown by the projection arrangement ignored
set the current geographic bounds
public void set semantic writer semantic writer writer semantic writer writer
set the semantic writer used by this servlet
public void set layers collection geo layer layers geo set layers layers
set the geographic layers
public void set projection projection projection geo set projection projection proj set projection projection try canvas arrange catch arrangement exception exc never actually thrown by the projection arrangement ignored
set the current projection
public void update graph canvas update graph
update the currently displayed graph
private void write object object obj http servlet response res try object output stream oos new object output stream res get output stream oos write object obj oos close catch ioexception exc throw new illegal state exception cannot generate binary output exc
write an object to a serialized stream on the response
public void arrange graph n e graph for n node graph get node set if node instanceof locatable geo coord coord locatable node get center if coord null try point pt projection project coord set node location node pt catch projection exception exc ignore node will have null location
arranges the nodes in the graph
public void set projection projection proj projection proj
sets the projection used by this arrangement
protected void write xml document doc http servlet response res res set content type semantic writer get content type try initialize the transformer get transformer print writer out res get writer transformer transform new domsource doc new stream result out out close catch exception exc throw new illegal state exception cannot generate xml output exc
write the xml document out to the servlet response
private time unit calculate resolution long start millis start get time long stop millis stop get time long span stop millis start millis time unit resolution time resolution if span 94608000000 l resolution time unit year else if span 7776000000 l resolution time unit month else if span 1814400000 resolution time unit week else if span 259200000 resolution time unit day else if span 10800000 resolution time unit hour else if span 180000 resolution time unit minute else if span 1000 resolution time unit second return resolution
calculate the time interval based upon the start and stop time
protected void fire state changed change event evt new change event this for change listener cl listeners cl state changed evt
send a change event whose source is this slider to each listener
public void add span geo shape shape time span span sequential sequence shape times get shape if sequence null sequence new time sequence synchronized shape times shape times put shape sequence sequence add time span span
adds a shape with a specified time span
public time span get displayed span return ruler get displayed span
return the time span this time slider measures
public date get time return slider time
gets the current time represented by this time slider
private int get cal index time unit interval int index 1 if interval time unit year index calendar year else if interval time unit month index calendar month else if interval time unit week index calendar week of year else if interval time unit day index calendar date else if interval time unit hour index calendar hour else if interval time unit minute index calendar minute else if interval time unit second index calendar second else if interval time unit millisecond index calendar millisecond return index
gets the corresponding index into the calendar object for a particular
public void add timed shape geo shape shape sequential time synchronized shape times shape times put shape time
adds the shape with the specified time sequence
public void set time date new time slider time new time int slider val int 100 double new time get time start millis stop millis start millis slider set value slider val slider invalidate repaint
sets the current time for this time slider
public void set time interval time unit interval ruler set time interval interval setup
sets the interval used to mark out regular intervals
public void set time span time span span ruler set time span span time span tspan ruler get displayed span start millis tspan get start date get time stop millis tspan get stop date get time
sets the time this time slider measures
private void setup slider slider new jslider slider add change listener new change listener public void state changed change event e jslider source jslider e get source if source get value is adjusting int val source get value we know the slider is 0 100 long range stop millis start millis long new time start millis range val 100 slider time new date new time fire state changed int val slider get value we know the slider is 0 100 long range stop millis start millis long new time start millis range val 100 slider time new date new time
sets up the slider to work with the timespan displayed
public time unit get displayed interval return time interval
get the actual increment displayed by this time ruler
public time span get displayed span return measured
get the span of time displayed by this time ruler
private int get grp index time unit interval int index 1 if interval time unit month index calendar year else if interval time unit week index calendar month else if interval time unit day index calendar week of year else if interval time unit hour index calendar date else if interval time unit minute index calendar hour else if interval time unit second index calendar minute else if interval time unit millisecond index calendar second return index
gets the corresponding grouping level index into the calendar object for
public date get display time return cur time
get the currently displayed time
public int get label location return label loc
gets the label location
public string get label string simple date format fmt new simple date format mmm yyyy if time interval time unit year fmt apply pattern yyyy else if time interval time unit hour fmt apply pattern mmm dd else if time interval time unit minute fmt apply pattern mmm dd hh 00 else if time interval time unit second fmt apply pattern hh mm 00 string start str fmt format start string stop str fmt format stop return stop str equals start str start str start str stop str
returns the label string for the time ruler
private void add listeners component comp comp add key listener key handler comp add mouse listener mouse handler if comp instanceof container component all comp container comp get components for component child all comp add listeners child
add mouse and key listeners to the hierarchy of a component
private void add move point cur mouse top frame get mouse position if cur mouse equals last mouse date new evt new date long duration new evt get time last evt get time int steps int duration pause dur 100 list model add element move to x cur mouse x y cur mouse y steps steps last mouse cur mouse pause dur 0
add a move from the previous location to the current location to the
public long get purge time return purge time
gets the purge time which is used to remove stale temporal components
public void set args list string arg list cmd line arg list
set arguments for the demonstration class
public void set label location int label location label loc label location calculate span invalidate validate
sets the placement of the overall time label
public render style get render style return render style
set the render style which is used to display the temporal components
public void set demo class string class name throws class not found exception app class class for name class name
set the class to record the demo script for
public void set time interval time unit interval time resolution interval calculate span invalidate validate
sets the interval used to mark out regular intervals
private void set file string file path script file new file file path if script file exists do something here
set the script file
public sequential get sequence geo shape shape return shape times get shape
gets the time sequence associated with a particular geo shape
public void set time span time span span start span get start date stop span get stop date calculate span invalidate validate
sets the time this time ruler measures
public void action performed action event evt object butn evt get source if butn equals next int val slider get value if val max value slider set value val 1 else slider set value min value else if butn equals prev int val slider get value if val min value slider set value val 1 else slider set value max value val label set text label slider get value
handle increment and decrement button presses