input
stringlengths
10
828
output
stringlengths
5
107
public string get type level log print batch tree node get type level type is get type if is unitize return unitize else if is uqc return uqc else if is coding return coding else if is qc return codingqc else if is qa return qa else if is lqc return listingqc else if is masking return masking else if is volume return volume return
return the type that corresponds to the users table role
protected void busy boolean b if b set cursor java awt cursor get predefined cursor java awt cursor wait cursor else set cursor java awt cursor get default cursor
indicate whether were busy or not
public boolean is complete return get type equals qc complete get type equals unitize complete get type equals qa complete get type equals qa error
is the currently selected node a batch whose status is complete
public boolean is attachment range return get type equals range
is the currently selected node an attachment range
private void up button action performed java awt event action event evt try int i issue table get selected row final client task task new task send page issue page id integer parse int string issue table get model get value at i 1 sequence 1 move up task enqueue this get pageissue data catch throwable th log quit th
send task to server to move the currently selected row up one position
private void down button action performed java awt event action event evt try int i issue table get selected row final client task task new task send page issue page id integer parse int string issue table get model get value at i 1 sequence 1 move down task enqueue this get pageissue data catch throwable th log quit th
send task to server to move the currently selected row down one position
protected void delete word delete the current word any whitespace appearing before the word is also deleted if debug system out println deleting parser get word string buffer del text new string buffer temporarily make the context area editable or this won t work context text area set editable true int offset parser delete word del text context text area set editable false make the change undo able undo record undo rec new undo record undo rec offset offset undo rec orig text del text to string undo rec new text undo stack push undo rec
delete the word in the problem field
public boolean is transferable if global the server connection get permission admin batch user does not have privilege to manage batches log print batch tree node is transferable permission denied return false return get type equals unitize get type equals unitize queued get type equals uqc get type equals uqc queued get type equals coding get type equals coding queued get type equals qc get type equals qc queued get type equals masking get type equals masking queued get type equals volume get type equals modifyerrors
test type to see if it is the only transferable node type batch
private void get pageissue data entry result set query result if query result null issue table set model new result set table model query result new string issue
retrieve pageissue from server
private void load report int load by final client task task switch load by case 0 get record by project id task new task request post validation report project id 1 break case 1 get record by volume id task new task request post validation report project id volume id break default get all record task new task request post validation report 1 1 task set callback new runnable public void run results java sql result set task get result if results null load report boolean ok task enqueue this
load the post validation report
public boolean is data flavor supported data flavor flavor return batch flavor flavor is batch is volume
returns whether or not the specified data flavor is supported
protected int get suggestions suggestion set suggestions new suggestion set 16 busy true speller suggest problem text fld get text suggest search depth comparator suggestions suggestion list model clear int i for i 0 i suggestions size i suggestion list model add element suggestions word at i busy false return i
fill the suggestions list with suggestions for the word in the
protected mem text lexicon get temp lex lexicon lex set speller get lexicons if lex set null return null for int i 0 i lex set length i if lex set i instanceof mem text lexicon return mem text lexicon lex set i return null
locate a temporary lexicon in the set of lexicons
private grid bag constraints get grid bag constraints int x int y string directions grid bag constraints new java awt grid bag constraints grid bag constraints gridx x grid bag constraints gridy y if null directions if directions equals east grid bag constraints anchor java awt grid bag constraints east else if directions equals west grid bag constraints anchor java awt grid bag constraints west return grid bag constraints
this method used to create grid bagcontraints for a given values
private void cancel button action performed java awt event action event evt set visible false dispose if null parent client task task new task execute update split pane viewer close menu item task enqueue parent set visible true else logger info null value for parent object
this method get invoked when cancel button is clicked
private void open viewer for qa int selected volume id string selected fields string selected coders final string p name project name final int volume id selected volume id this fields selected fields this coders selected coders final task qagroup task new task qagroup selected volume id task set callback new runnable public void run try qagroup assign page qa groupviewer new qagroup assign page map task get result p name volume id coders fields activity selection frame qa groupviewer set visible true set visible false dispose catch exception ex ex print stack trace task enqueue this
this method used to open qagroup assign page with sampled groups
private void create sampling details float accuracy final task send project parameters task new task send project parameters volume id 0 normal 0 1 project id fixed percentage character sampling accuracy task set callback new runnable public void run try create character sampling catch exception ex ex print stack trace task enqueue this
this method used to create the sampling details for given details
public void set visible boolean flag if flag global main window this else if global main window this global main window null super set visible flag
make this frame visible
public string get visible name return current page get class get name
called from model
private void close dialog java awt event window event evt set visible false dispose if null parent client task task new task execute update split pane viewer close menu item task enqueue parent set visible true else logger info null value for parent object
this method get invoked when window is closed
public void set model table model model log print table viewer set model this model new sum table model model sorter new table sorter this model table set model this model table set model sorter sorter set table header table get table header ends here this model compute column widths table
set the table model containing the data for this report
private void add button action performed java awt event action event evt try int text length text field get text length if text length initial dot starting with the text the user has already typed show the add text dialog string text text field get text substring initial dot remove the text the user typed will be replaced by the result of the add text field dialog document unchecked remove initial dot text field get text length initial dot add text field 1 text else start with blank dialog add text field 1 catch throwable th log quit th
from ibase popup user clicked the add button to add a value to
public void get directory entry array list files array list import files array list files get 0 for int i 0 i import files size i add element import files get i
load the combo from the array list
public void reset values clear the validation list when new project is selected validation functions list set model new check box list model new hash map set the download button enabled false download button set enabled false
reset the value to original state
private void delete button action performed java awt event action event evt try popup panel remove values popup panel get value list get selected indices set changed true set text from value list text field request focus catch throwable th log quit th
user clicked the delete button call remove values with the selected
private void get record as level if scope equals document scope equals volume refresh page create dynamic controls
create the dynamic label and combo box for the project field or volume
private void save button action performed java awt event action event evt try if cross field edit ts table map get table spec table name table map save table values table name popup panel get model table changed false text field request focus catch throwable th log quit th
user clicked the save button call save table values to save the edits
private void value list mouse clicked java awt event mouse event evt if evt get click count 1 delete button action performed null text field request focus
user double clicked a row call remove values with the selected
private void choice list mouse clicked java awt event mouse event evt if evt get click count 1 select button action performed null text field request focus
user double clicked a row call add values with the selected
public void enable check box feedback feedback if feedback get validity null feedback get validity equals valid error valid error checkbox set selected true invalid error checkbox set selected false else valid error checkbox set selected false invalid error checkbox set selected true
check the current feedback going to be displayed and enable or disable the
private void set text from value list string text for int i 0 i popup panel get value model get size i text text popup panel get value model get element at i if repeated text text significant true document unchecked remove 0 text field get text length significant true document unchecked insert string 0 text initial dot text field get text length log print itf set text from value list initial dot text
create a semicolon separated string from the selected values
protected void load delimiter names final string name final client task task new task execute query export page get export data task set callback new runnable public void run load delimiters entry result set task get result name task enqueue this
enqueue a code client
public void read lfpfile string file path file file new file file path try file input stream fis new file input stream file buffered reader br new buffered reader new file reader file int aval fis available int progress value aval 100 string line null while br ready line br read line aval aval line get bytes length 2 int value 200 aval progress value 2 xerox progress bar set value value system out println value line catch exception e logger get logger this get class get name log level severe null e
read lfp file
public void warn before exit if is saved int input joption pane show confirm dialog this the changes has not been saved n are you sure want to exit if input 0 export button action performed new action event this 0 dialog box else if input 1 this dispose parent set visible true else parent set visible true this dispose
warn if some changes are made by user and click exit without exporting
private void fill assigned tally table get the tally record group number user status for the volume from the db final client task task new task execute query get assigned group integer to string project id integer to string volume id task set callback new runnable public void run result set results result set task get result if results null feed data to tally table results else log print defaults null resultset returned task enqueue this
put the assignment record like group number user status for the group to
public void show buttons boolean show add button set visible show add button set focusable show edit button set visible show edit button set focusable show delete button set visible show delete button set focusable show
set the buttons on the screen to show or not
private void set model table model model sum table model summed model new sum table model model table set model summed model summed model compute column widths table
set the table model containing the data for this report
private void exit dispose parent set visible true
exit the current window
public delimiter data get data return data
return the instance of code common
protected void tab selected log print populate page tab selected project model project model new sqlmanaged combo model get all projects project model register project combo set model project model if data null sqlmanaged combo model project combo get model set selected item data project name model managed table sorter sqlmanaged combo model project combo get model get model fire table data changed if delimiters null delimiters new delimiter panel null delimiter panel add delimiters java awt border layout center delimiters load delimiter names delimiter panel default data new populate data
perform page initialization
protected boolean exit page check tbd return true
check that its ok to exit the current page
public void enable run validation button if selected object length 0 run validation button set enabled true else run validation button set enabled false
enables the run validatoin button when there is list for the validation
public void exit window this dispose parent set next button enabled true parent monitor process
exit the current window
public int get document count return document count
return the count of documents added to the sample
public dimension get preferred size return get filename size
returns the preferred size code dimensions code needed for this
public void free synchronized qaproof readingpage class log print free viewer number tablevalue model null tablespec model null our viewer hide mag rect clear the image so we won t see it when loading a new viewer our viewer view from source null null image connection error image image connection error image length dynamic pane remove all clear instance references to permit garbage collection tablevalue model null tablespec model null parent null project map null project editor null binder viewer null the coding data null the image data null timer null free list add this
return this instance to the free list
public void set project map project mapper project map this project map project map
called from code ui
private void load data throws interrupted exception loading data progress bar index 1 if project combo box get selected index 1 int sel project combo box get selected index project id sqlmanaged combo model project combo box get model get id at sel feedback set projec id project id feedback list new array list feedback for feedback feedback1 record list this feedback feedback1 get record for feedback1 synchronized lock lock wait
if validation is succeed then load the date from xls file and db
public void clear table object object error table model new common table model object error msgs table set model error table model
clear the error table if no error is found
public void hide popup if is popup visible the popup hide the popup null int text length text field get text length
remove the popup from the screen
public coding data get coding data return the coding data
return the coding data
public void proceed to download jfile chooser choose file new jfile chooser choose file set file selection mode jfile chooser directories only int return val choose file show open dialog j panel1 string local dir if return val jfile chooser approve option java io file file choose file get selected file local dir file get path download report file local dir
start to download the report
public managed table model get project model return managed table model tablevalue model
return the model used in this field
public sorted list model get model return choice model
return the list model used for the popups choice panel
public void set background color c if text field null text field set background c
set the background color of code text field code
public void set foreground color c if text field null text field set foreground c
set the foreground color of code text field code
public string get xls file path return xls file path
get the path for xls file
public jdialog get parent object return this parent
method to get parent window
protected void exit form if exit page check frame exit form null
close the gui and exit
public void remove int offs int len throws bad location exception split pane viewer clear viewer status ibase text field this clear status line set changed true significant true super remove offs len significant false if offs initial dot initial dot initial dot len
removes some content from the document
protected jmenu bar get default jmenu bar return default jmenu bar
return the default menu bar
private void task summary button action performed java awt event action event evt try set visible false show task list summary task list summ new show task list summary this task list summ set location relative to null task list summ set visible true catch throwable th log quit th
opens up task list summary page
private void coding man button action performed java awt event action event evt try jdialog dialog dialog new project selection dialog this coding manual this set visible true dialog set visible true catch throwable th log quit th
opens up coding manual selection page
public void get data entry result set query result try this result set query result add blank so user is not forced to select a value ids add 1 add element load data while result set next ids add result set get string 1 if result set get int 3 7 status coded add element result set get string 2 super get data entry query result load batch end model catch sqlexception e log quit e
override to load only the qced and higher volumes
private void it button action performed java awt event action event evt jframe frame new investigation tool form this this set visible false frame set visible true
opens up project selection page to select qa batch
private void dtyg mod button action performed java awt event action event evt jframe frame new dtygmod this this set visible false frame set visible true
opens up dtyg mod page
public boolean is significant if debug log print itf is significant significant return significant
should the edit be placed in the undo queue
private void create others dialog jframe dialog new others activity selection dialog this dialog set location relative to null this set visible false dialog set visible true
opens up other activity page
public void set enabled boolean flag log print ibase text field set enabled flag text field set editable flag the arrow set enabled flag text field set foreground color black if flag text field set background color white else text field set background null
enable or disable the code text field code
public void request focus log print itf request focus text field request focus
set focus in code text field code
private void listing button action performed java awt event action event evt create dialog common constants process listing
opens up listing page
private void listing qc button action performed java awt event action event evt create listing qc dialog common constants process listing qc
opens up listing qc page
private void tally button action performed java awt event action event evt create dialog common constants process tally
opens up tally page
private void tally qcbutton action performed java awt event action event evt create tally qc dialog common constants process tally qc
opens up tally qc page
private void modify error button action performed java awt event action event evt create dialog common constants process modify errors
opens up project selection page to select a batch to fix errors
private void others button action performed java awt event action event evt create others dialog
opens up the other activity dialog screen
protected boolean exit page check default tree model teams tree model default tree model teams tree get model log print teams tree model asks allows children teams tree model asks allows children return true
check that its ok to exit the current page
protected void tab selected log print team admin page tab selected new root node set as model root teams model managed node root managed node teams model get root root register
perform page initialization
protected boolean exit page check return true
check that its ok to exit the current page
protected void tab selected log print session admin page tab selected painted table model replaced by managed table model the painted column names and types are retained model initialized here so permissions are available if model null string sql name global the server connection get permission team leader session admin page session table tl session admin page session table model sqlmanaged table model make instance sql name session table get model model register session table set model model
perform page initialization
private void t search export button action performed java awt event action event evt is tsearch export true export button action performed evt
start t search
private void validations history button action performed java awt event action event evt output validation report dialog dialog new output validation report dialog output validations dialog set visible true
see the validation report generated while exporting the volume
private void export history button action performed java awt event action event evt output validation report dialog dialog new output validation report dialog export details dialog set visible true
all succeed export operation is mantained by the export history
public void free synchronized split pane viewer class log print free viewer number tablevalue model null tablespec model null our viewer hide mag rect clear the image so we won t see it when loading a new viewer our viewer view from source null null image connection error image image connection error image length dynamic pane remove all clear instance references to permit garbage collection tablevalue model null tablespec model null parent null project map null project editor null binder viewer null the coding data null the image data null timer null free list add this
return this instance to the free list
private int dof10 key event evt add edit query query dialog query dialog new add edit query this project map field name bates number image path which status child id batch id query dialog set modal true query dialog show return 0
this method is implemented for f10 function
private void close dialog java awt event window event evt this set visible false
methood to close dialog get invoked when dialog window closed
protected void exit button action performed java awt event action event evt try close dialog null catch throwable th log quit th
method get invoked when exit button clicked
public void get all validations final client task task task new task view advance validations select all task set callback new runnable public void run results java sql result set task get result if results null display data else log print fieldvalues null resultset returned boolean ok task enqueue this
method used to get all validations
private void enable paging buttons int index if index 0 first button set enabled false previous button set enabled false if feedback list size 0 last button set enabled true next button set enabled true else if index feedback list size 1 last button set enabled false next button set enabled false if feedback list size 0 first button set enabled true previous button set enabled true else if feedback list size 1 first button set enabled true previous button set enabled true last button set enabled true next button set enabled true
performing the pagination for the investiation form
public string run string error null get all field and record of the project for int i 0 i project map get size i string name project map get field name i field name name string value string value map get name validate for each fields error validate for field name value if error null return error valdiate for document error validate for document if error null return error return null
run the script file to check the each field of the document
private string validate for field string name string value string error null list validation list array list validation map get name execute the validation for the field if it is validatable if is validatable name for string input get input list name value validate for each input list coded by the user field record set coded value input if validation list null error validate field by all function validation list return error
validate for the field
private string validate for document string error null for document level validation the active field will be blank field name list validation list array list validation map get document functions validate for each input list coded by the user field record set coded value null if validation list null error validate field by all function validation list return error
validate for the document
private string validate field by all function list validation list string error null for object validation validation list if validation null validation function data validation validation error validate field by one function function data if the validation of the field by a function is failed then stop validating and retrun the error occured if error null return error return null
validate a field by different script functions enabled for this field
public field data add name string name field name name return this
set the field name
public field data add type string type field type type return this
set the field type
public field data add value string value field value value return this
set the field value
public field data add size int size field size size return this
set the field size
private boolean is validatable string field name project mapper hash value hv project map get hash value field name if hv field level 1 treatment level equals l1 hv field level 0 treatment level equals l2 hv field name equals general document type return true if which status null which status equals tally return true return false
check whether field is validatable to not
public void accept line string line try accept line brs line catch error exception e error e get message
accept and process the given input line
public multi input stream java io input stream in throws ioexception this in stream in
construct a new multi input stream backed by an existing input stream