input
stringlengths
10
828
output
stringlengths
5
107
public void add items legacy server item interface an items throws legacy exception for int i 0 i an items length i add item an items i for
adds items to the to be requested list
public void add document string batch id string doc id throws batch print not found exception batch print exception if log is debug enabled log debug adding document batch id try batch job data tmp get batch job data batch id tmp add or set document doc id unknown store batch job data tmp catch string index out of boun...
index a new document
public legacy server item interface get item string name throws legacy exception legacy server item interface ret val null iterator iter i item list iterator while iter has next legacy server item interface cur legacy server item interface iter next if cur get name equals name ret val cur break if while if ret val null...
returns a previously added item
public void end batch job string batch id throws batch print not found exception batch print exception if log is info enabled log info end batchjob batch id batch job data tmp get batch job data batch id tmp set completed true store batch job data tmp
tell batch print manager that a batch job is complete
public void set image data byte image data properties props throws java io ioexception
set image data method comment
public void set image data int page byte image data properties props throws java io ioexception
set image data method comment
public void set should stop processing boolean should stop processing this should stop processing should stop processing if should stop processing process thread null process thread interrupt
stop processing of batchprint job
public void init properties props dmsmanager dms throws label print exception if log is info enabled log info initializing label print manager string all ids props get property alllabelprintidz string tokenizer a tokenizer new string tokenizer all ids while a tokenizer has more tokens string cur a tokenizer next token ...
initializes label print manager
public list get label sheet names return label sheet names list
returns the list strings of known label print files
private int get index for last noap throws legacy exception legacy server item interface cur legacy server item interface epsv answers get ekf noaps2 if cur null if app is in epasys return 1 else return 1 else date max date new date 0 l int max date index 1 for int i 0 i cur get total number of values i date cur date c...
returns 1 when nothing suitable is found
public void print internals iterator iter label file table values iterator while iter has next list cur list iter next system out println file without keys iterator file content iter cur 0 iterator while file content iter has next string cur part string file content iter next system out print cur part system out printl...
prints the state of the label print manager to standard out
public void log status change paperfile request requests string event type throws paperfile print exception if ignore mode return if log is info enabled log info logging status change for muse for int i 0 i requests length i if requests i is monitored log status change requests i get dossier requests i get user id even...
attempts to send notification record to mq otherwise will be logged for later
public void refresh items string a dossier legacy server item interface an items throws not present in legacy exception legacy exception remove all items add items an items refresh items a dossier
retrieves the given requests for the given dossier
public dss leg server fact interface get leg server interface fact return i leg server interface fact
insert the methods description here
public string get label sheet name return label sheet name
returns the label sheet name
public void set label sheet name string label sheet name this label sheet name label sheet name
sets the label sheet name
public string get dossier number return dossier number
returns the dossier number
public void set dossier number string dossier number this dossier number dossier number
sets the dossier number
public void set monitor print manager service monitor new monitor i monitor new monitor
insert the methods description here
public string get category return product
the category this application belongs to see fields docmumentation
public boolean get default property open externally return false
whether the application opens by default in an external frame
public boolean get default property show skin return true
whether the application shows by default a skin
public boolean is singleton return true
this product is a singleton
public boolean is singleton return false
when true the product can only be instantiated one at a time
public string get category return info bean system
this product is part of the info bean
private void handle exception java lang throwable exception handle unexpected exception exception
called whenever the part throws an exception
public string get application group name return defaulf application group name
returns the name of the application group
public string get bean info return null
short description of the bean for instance suitable as a
public image icon get image icon if image icon null image icon mice global get icon get image icon file path return image icon
returns the image icon identifying the application to the user
public string get image icon file name return madras32 gif
returns the file name for the image icon
public string get image icon file path return get relative path for icon
returns the file path for the image icon
public string get key return get class to string
key used for the preferences
public string get name return get key
identifies the product to the user
public string get parameter string name return string parameters get name
returns a named parameter associated with this info bean
public object get property string label ensure properties if properties null return null string key get key label this is not perfect this construction does not allow to call multiple properties get at the same time synchronized property lock return properties get key
returns a property associated with this info bean
public object get property string label object default value object value get property label if value null value default value return value
returns a property associated with this info bean
private void select task bar button for mice internal frame internal frame for enumeration e task bar buttons by internal frame keys e has more elements mice internal frame intf mice internal frame e next element abstract button button abstract button task bar buttons by internal frame get intf button set selected intf...
sb must this really be public
public string get relative path for icon return mice global get relative path for icon this get image icon file name
returns a relative path for an image at get image icon file name
public string get current team unit try object result method get current team unit invoke wrapped object no parameters return string result catch java lang reflect invocation target exception e throw convert to runtime exception e catch illegal access exception e throw convert to runtime exception e
returns team of user specified by this profile
public string get password try object result method get password invoke wrapped object no parameters return string result catch java lang reflect invocation target exception e throw convert to runtime exception e catch illegal access exception e throw convert to runtime exception e
returns password of user specified by this profile
public image icon get small image icon if small image icon null string file name get small image icon file name if file name null image icon image icon get image icon image image image icon get image int w image icon get icon width int h image icon get icon height if h 16 w 16 w h h 16 image small image image get scale...
returns an image icon suitable for displaying in a title bar or menu
public string get team try object result method get team invoke wrapped object no parameters return string result catch java lang reflect invocation target exception e throw convert to runtime exception e catch illegal access exception e throw convert to runtime exception e
returns team of user specified by this profile
private void set selected frame mice internal frame f desktop pane set selected frame f
sb must this really be public
public string get user id try object result method get user id invoke wrapped object no parameters return string result catch java lang reflect invocation target exception e throw convert to runtime exception e catch illegal access exception e throw convert to runtime exception e
returns user id of user specified by this profile
public string get small image icon file name return madras16 gif
returns the file name for the image icon
public string get user name try object result method get user name invoke wrapped object no parameters return string result catch java lang reflect invocation target exception e throw convert to runtime exception e catch illegal access exception e throw convert to runtime exception e
returns user name of user specified by this profile
public string get small image icon file path return get relative path for small icon
returns the file path for the small image icon
public void rebuild remove all build init validate resize
rebuild the panel for layout changes to take effect
public void remove property string label ensure properties string key get key label intern this is not perfect this construction does not allow to call multiple properties get at the same time synchronized property lock properties remove key
removes a property
public void set property string label object value ensure properties if properties null return string key get key label intern synchronized property lock properties put key value
sets a property for this info bean
public string get category return system
the category this application belongs to see fields docmumentation
public boolean apply return true
commit the changes on the panel
public boolean cancel return true
user pressed cancel button
public visual info bean get info bean return visual info bean settings info bean
return the preferences info bean associated to this panel
public settings info bean get settings info bean return settings info bean
return the settings info bean associated to this panel
public void apply global settings set reference font size mice global apply global settings this get reference font size
apply global settings to this component and its contents
public void init
called just after its initial display
public boolean attempt to close synchronized main get products lock request focus if true this instanceof launcher pp if confirm close false return false set visible false return true
attempt to close
public void closed
called when the window is closed
public void set status final string status if timer auto reset true start time system current time millis if logger is debug enabled true logger debug status status swing utilities invoke later new runnable public void run status bar set text status if there is no owner it should be should put to front don t use get pa...
set an information string in the status bar
public void close without asking set visible false
close set visible false is called
public void set timer auto reset boolean timer auto reset timer auto reset timer auto reset reset timer
if set the timer will be reseted with every new status output
public boolean confirm close return true
to called when the user pressed the close box or a close button
public void reset timer start time system current time millis
reset the timer to 00 00
public void set progress auto reset boolean progress auto reset progress auto reset progress auto reset reset progress
if set the progress bar will be reseted with every new status output
public void adapt to user profile user profile user profile
the user profile is changed into the new one
public void set progress value final int value if run progress stop progress if logger is debug enabled true logger debug set progress value to value swing utilities invoke later new runnable public void run progress bar set value value
if set it stops the animated progress if its running
public void close if logger is debug enabled true logger debug close the screen stop progress swing utilities invoke later new runnable public void run set visible false dispose stop the timer while closing to remove it from the timer queue timer stop
close and dispose the splash screen
public boolean attempt to exit synchronized main get products lock if is busy true return false request focus if confirm exit false return false exit 0 return true
attempt to exit
public void stop progress if run progress true if logger is debug enabled true logger debug stop progress bar animation run progress false make sure the process really stopped synchronized lock progress try lock progress wait catch interrupted exception e logger error e
stop the progress thread for the progress animation
public boolean close if is busy true return false request focus exit 0 return true
close a specific product panel
public boolean attempt to exit if ok all true return true return cancel all
pressing close will cancel all changes made by the user
public boolean cancel all for int i 0 i preferences panels length i if preferences panels i null preferences panels i cancel false return false return true
cancel all preferences panel instances and return true if this succeeded
public boolean close box if ok all true return true return cancel all
pressing close will cancel all changes made by the user
public void close without asking stop threads for int i 0 are any threads alive i thread yield try thread sleep 100 catch interrupted exception e if i 50 30 int n mice option pane show confirm dialog main get desktop pane product get title does not close properly ignore this rather than waiting another 5 seconds troubl...
close calls stop threads then waits in cooperation with the user
public boolean confirm exit show message dialog mice global get locale bundle get string mice frame closed manually return false
to called when the user pressed the close box or a close button
public void uncaught exception thread t throwable e super uncaught exception t e if get parent null mice global handle unexpected exception null e null
called by the java virtual machine when a thread in this
public void add observer mice observer observer string event string throws mice exception if observer null event string null throw new null pointer exception list observer list list get notify map get event string if observer list null observer list new array list get notify map put event string observer list else if o...
requests that the supplied observer receives notification when events of the supplied
public void notify object source string event string throws mice exception notify new mice notify event event string source
requests that all observers of supplied event name be notified of an event
public int get reference font size return reference font size
answer the font size used as a reference when this component was
public void user logged off
the user logged off
public thread group get thread group if my thread group null synchronized change thread group lock my thread group new mthread group get title return my thread group
when creating new threads add them to this threadgroup or handle cleanup yourself
public void handle unexpected exception java lang throwable exception handle unexpected exception exception null
called whenever an unexpected exception is thrown
public thread launch final runnable task return launch task false
run a task in its own thread
public thread launch final runnable task final boolean set busy mice dialog or frame ancestor get ancestor mice dialog or frame if ancestor null throw new runtime exception mice panel not inside mice frame or mice panel return ancestor launch task set busy
run a task in its own thread
public thread launch busy final runnable task return launch task true
run a task in its own thread
public string get category return hidden
the category this application belongs to see fields docmumentation
public preferences info bean get parent return null
anser the parent preferences panel used for tree navigation
public string get settings name return get name
identifies the product to the user
public void do default close action1 switch get default close operation case hide on close try set closed true set visible false catch java beans property veto exception pve ignore break case dispose on close try set closed true set visible false dispose only executes if close wasn t vetoed catch java beans property ve...
fix for probable bug in jinternal frame but does not work since
public component get focus owner2 try class j internal frame class jinternal frame class java lang reflect method get focus owner method j internal frame class get method get focus owner null return component get focus owner method invoke this null catch exception e return null
temporary method for feature available in jdk 1
public void move to front commented out since the introduction of phoenix text field get window ancestor is private in swing utilities jdk1 2 window window swing utilities get window ancestor this window window get window ancestor this component focus owner window null window get focus owner null boolean descendant fal...
fix for jdk bug the text cursor is sometimes not blinking
public boolean is contents visible if has internal frame return internal frame is visible else return super is visible
answer whether the contents of this is visible
public string get small title if small title null return small title else return get title
returns the small title i
protected void process window event window event e if e get id window event window closing if is contents visible return super process window event e
handles window events depending on the state of the
public string get category return null
the category this belongs to see fields docmumentation
public string get function name return
identifies the function for authorization
public void set selected frame mice internal frame f
to be removed when switching from jdk 1
public void set cursor default set cursor cursor get predefined cursor cursor default cursor
set the cursor to the default cursor
public void set cursor wait set cursor cursor get predefined cursor cursor wait cursor
set the cursor to the wait cursor