input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void disable button string button name if disabled buttons null string tokenizer tokenizer new string tokenizer map null to empty get property disabled buttons disabled buttons new hash set while tokenizer has more tokens disabled buttons add tokenizer next token disabled buttons add button name else disabled buttons add button name | greys the named button |
public menu option get selected top level menu option object session user get if session null return selected menu option else return menu option user selected menu option table get session | returns the selected top level menu option which |
public void disable field string field name if disabled fields null string tokenizer tokenizer new string tokenizer map null to empty get property disabled fields disabled fields new hash set while tokenizer has more tokens disabled fields add tokenizer next token disabled fields add field name else disabled fields add field name | greys the named field |
public string get control type name return control type name | returns the name of the type of control |
public void set status message string message object session user get if session null throw new illegal state exception not in session else user status message table put session message | changes the status message which will be presented to the |
public field content get content return content | returns the content that may be |
public void enable button string button name if disabled buttons null string tokenizer tokenizer new string tokenizer map null to empty get property disabled buttons disabled buttons new hash set while tokenizer has more tokens disabled buttons add tokenizer next token disabled buttons remove button name else disabled buttons remove button name | ungreys the named button |
public void show ui object bean int ui mode object session user get if bean null throw new null pointer exception else if session null first page cloneable uibean bean first page uimode ui mode else system out println pushed bean onto ui stack stack user uistack table get session push bean stack user uimode stack table get session push new integer ui mode | changes the ui which will be presented to the client on |
public void enable field string field name if disabled fields null string tokenizer tokenizer new string tokenizer map null to empty get property disabled fields disabled fields new hash set while tokenizer has more tokens disabled fields add tokenizer next token disabled fields remove field name else disabled fields remove field name | ungreys the named field |
public void set content field content content this content content | changes the control or |
public void expand field string field name if collapsed fields null string tokenizer tokenizer new string tokenizer map null to empty get property collapsed fields collapsed fields new hash set while tokenizer has more tokens collapsed fields add tokenizer next token collapsed fields remove field name else collapsed fields remove field name | expands the named field |
public void close ui object session user get if session null throw new illegal state exception nothing to close else system out println popped stack user uistack table get session pop off ui stack stack user uimode stack table get session pop | reverts the ui which will be presented to the client on |
public section body get body boolean inset buttons if inset buttons throw new unsupported operation exception inset buttons not supported else return body | returns the columns or rows of fields |
public rows get buttons return buttons | returns the buttons for this section |
public menu option get menu option return menu option | returns the menu item that was chosen |
public boolean is multi line return height 1 | returns true if this text field contains |
public boolean is unlimited length return max length 1 | returns true if this text field has no |
public void expand section string section name if collapsed sections null string tokenizer tokenizer new string tokenizer map null to empty get property collapsed sections collapsed sections new hash set while tokenizer has more tokens collapsed sections add tokenizer next token collapsed sections remove section name else collapsed sections remove section name | expands the named section |
public stack get uistack throws clone not supported exception object session user get if session null stack stack new stack object first page clone first page clone assert first page clone null stack push first page clone return stack else return stack stack user uistack table get session clone | returns a copy of the current ui stack |
protected map build button name doer method table uibean bean build button list for uibean bean class bean class if bean instanceof ms uibean wrapper bean class ms uibean wrapper bean get component fields get class else if bean instanceof ejblocal object bean class bean get class get interfaces 0 else bean class bean get class return map bean button name doer method table get bean class | internal utility method to return the map from button names |
public void present ui print writer out frame layout layout uri context uri object session user get if session null throw new illegal state exception not in session else present ui out layout context uri stack user uistack table get session peek integer stack user uimode stack table get session peek int value | presents the current ui updated menu options and current |
public void comment char type string text if type println text else if type println text else println type text type | writes an sgml comment or control tag |
public string get property string key string default value return super get property key default value | returns the property value associated |
public void empty tag string tag map parameters println tag strings prefix encode sgmltag parameters parameters system out println tag strings prefix encode sgmltag parameters parameters at start of line tag echo true | writes an sgml empty tag with the parameters specified |
public void empty tag string tag println tag system out println tag at start of line tag echo true | writes an sgml empty tag |
public void present page print writer out frame layout layout uri context uri object session user get if session null throw new illegal state exception not in session else assert stack user uistack table get session is empty assert stack user uimode stack table get session is empty present page out layout context uri stack user uistack table get session peek integer stack user uimode stack table get session peek int value | presents the current ui updated menu options and current |
public void hide button string button name if hidden buttons null string tokenizer tokenizer new string tokenizer map null to empty get property hidden buttons hidden buttons new hash set while tokenizer has more tokens hidden buttons add tokenizer next token hidden buttons add button name else hidden buttons add button name | hides the named button |
public void open tag string tag map parameters open tags push tag println tag strings prefix encode sgmltag parameters parameters system out println tag strings prefix encode sgmltag parameters parameters at start of line tag echo true indent level | writes an sgml open tag with the parameters specified |
public void open tag string tag open tags push tag println tag system out println tag at start of line tag echo true indent level | writes an sgml open tag |
public void present menu bar print writer out frame layout layout uri context uri object session user get if session null throw new illegal state exception not in session else if user menu options table contains key session present menu bar out layout context uri collection user menu options table get session else present menu bar out layout context uri new vector 0 | presents the current top level menu options to the client |
public void hide field string field name if hidden fields null string tokenizer tokenizer new string tokenizer map null to empty get property hidden fields hidden fields new hash set while tokenizer has more tokens hidden fields add tokenizer next token hidden fields add field name else hidden fields add field name | hides the named field |
public void open tag in line string tag map parameters open tags push tag print tag strings prefix encode sgmltag parameters parameters at start of line false system out print tag strings prefix encode sgmltag parameters parameters at start of line tag echo false | writes an sgml open tag with the parameters specified |
public void hide section string section name if hidden sections null string tokenizer tokenizer new string tokenizer map null to empty get property hidden sections hidden sections new hash set while tokenizer has more tokens hidden sections add tokenizer next token hidden sections add section name else hidden sections add section name | hides the named section |
public void present menu strip print writer out frame layout layout uri context uri object session user get if session null throw new illegal state exception not in session else if user selected menu option table contains key session present menu strip out layout context uri menu option user selected menu option table get session else present menu strip out layout context uri new ms menu ms menu default ms menu default 0 | presents the current selected submenu options to the client |
public void close tag if open tags is empty string tag string open tags pop indent level println tag system out println tag at start of line tag echo true else throw new illegal state exception no tag to close | writes an sgml close tag |
public void add button listener button listener button listener button listeners add button listener | adds a listener to respond to button events |
public uibean get searchable row return searchable row | returns the searchable row for this collecton |
public void close tag in line if open tags is empty string tag string open tags pop println tag system out println tag at start of line tag echo true else throw new illegal state exception no tag to close | writes an sgml close tag |
public void set searchable row uibean object this searchable row object | alters the searchable row for this collection |
public boolean is collapsed field string field name if collapsed fields null string tokenizer tokenizer new string tokenizer map null to empty get property collapsed fields collapsed fields new hash set while tokenizer has more tokens collapsed fields add tokenizer next token return collapsed fields contains field name else return collapsed fields contains field name | returns true if the named field |
public void fire button event button event button event java util iterator button listener iterator button listeners iterator while button listener iterator has next button listener button listener iterator next button press button event | fires a button event when this searchable |
public boolean top tag string top tag boolean is top tag open tags peek equals top tag if is top tag system out println top tag was open tags peek return is top tag | returns true if the tag specified is the currently last |
protected void print indent for int index 0 index indent level index super print if at start of line tag echo system out print at start of line false at start of line tag echo false | writes spaces corresponding to the current indent level |
public object next element return new ms uibean wrapper iterator next event handler display layout display attributes | returns the next element in this enumeration |
public boolean is collapsed section string section name if collapsed sections null string tokenizer tokenizer new string tokenizer map null to empty get property collapsed sections collapsed sections new hash set while tokenizer has more tokens collapsed sections add tokenizer next token return collapsed sections contains section name else return collapsed sections contains section name | returns true if the named section |
public void print boolean b synchronized lock if at start of line print indent super print b | print a boolean value |
public enumeration elements if wrap components return new bean wrapping enumeration iterator event handler display layout display attributes else return elements | enumerates the components of this list |
public void print char c synchronized lock if at start of line print indent super print c | print a character |
public boolean is disabled button string button name if disabled buttons null string tokenizer tokenizer new string tokenizer map null to empty get property disabled buttons disabled buttons new hash set while tokenizer has more tokens disabled buttons add tokenizer next token return disabled buttons contains button name else return disabled buttons contains button name | returns true if the named button |
protected map build linked field name clicker method table uibean bean build linked field list for uibean bean class bean class if bean instanceof ms uibean wrapper bean class ms uibean wrapper bean get component fields get class else if bean instanceof ejblocal object bean class bean get class get interfaces 0 else bean class bean get class return map bean linked field name clicker method table get bean class | internal utility method to return the map from hyperlinked field names |
public void print int i synchronized lock if at start of line print indent super print i | print an integer |
public void print long l synchronized lock if at start of line print indent super print l | print a long integer |
public boolean is disabled field string field name if disabled fields null string tokenizer tokenizer new string tokenizer map null to empty get property disabled fields disabled fields new hash set while tokenizer has more tokens disabled fields add tokenizer next token return disabled fields contains field name else return disabled fields contains field name | returns true if the named field |
public void print float f synchronized lock if at start of line print indent super print f | print a floating point number |
public void print double d synchronized lock if at start of line print indent super print d | print a double precision floating point number |
public boolean is editable field string field name if view only fields null string tokenizer tokenizer new string tokenizer map null to empty get property view only fields view only fields new hash set while tokenizer has more tokens view only fields add tokenizer next token return view only fields contains field name else return view only fields contains field name | returns true if the named field |
public void print char s synchronized lock if at start of line print indent super print s | print an array of characters |
public boolean is hidden button string button name if hidden buttons null string tokenizer tokenizer new string tokenizer map null to empty get property hidden buttons hidden buttons new hash set while tokenizer has more tokens hidden buttons add tokenizer next token return hidden buttons contains button name else return hidden buttons contains button name | returns true if the named button |
public void print char s boolean escape if escape print strings escape for sgml new string s else print s | print an array of characters |
public void print string s synchronized lock if at start of line print indent super print s | print a string |
public void quit missing choose final ui based on application settings system out println quit user quitting set new boolean true | flags this as the last request |
public boolean is hidden field string field name if hidden fields null string tokenizer tokenizer new string tokenizer map null to empty get property hidden fields hidden fields new hash set while tokenizer has more tokens hidden fields add tokenizer next token return hidden fields contains field name else return hidden fields contains field name | returns true if the named field |
public void print string s boolean escape if escape print strings escape for sgml s else print s | print a string |
public object get result object return result | get the method result object in this response |
public long get begin sequence no return begin sequence no | get the sequence number of the first identifier in this response |
public void container changed container change event event container event container | event handler called when the ownership of this response |
public void print object obj synchronized lock if at start of line print indent super print obj | print an object |
public boolean is hidden section string section name if hidden sections null string tokenizer tokenizer new string tokenizer map null to empty get property hidden sections hidden sections new hash set while tokenizer has more tokens hidden sections add tokenizer next token return hidden sections contains section name else return hidden sections contains section name | returns true if the named section |
public collection get results return beans | get the collection of beans comprising this response |
public entity bean get result return bean | get the entity bean result to the command corresponding |
public void print object obj boolean escape if escape print strings escape for sgml string value of obj else print obj | print an object |
public object output stream get object output stream output stream output stream throws ioexception return new object output stream output stream | internal method which returns the object output stream object |
public void send commands object output stream output stream collection commands throws ioexception output stream write object commands output stream close | internal method which encodes a stream of outgoing commands |
public collection receive commands input stream input stream throws ioexception class not found exception collection commands object input stream objectis new object input stream input stream try commands collection objectis read object catch ioexception deserialize failure throw deserialize failure catch class not found exception deserialize failure throw deserialize failure catch class cast exception deserialize failure throw deserialize failure finally objectis close return commands | internal method which decodes a stream of incoming commands |
public boolean is selected button string button name if selected buttons null string tokenizer tokenizer new string tokenizer map null to empty get property selected buttons selected buttons new hash set while tokenizer has more tokens selected buttons add tokenizer next token return selected buttons contains button name else return selected buttons contains button name | returns true if the named button |
public void println super println at start of line true | terminate the current line by writing the line separator |
public string get uimode as string int ui mode switch ui mode case ui view only return view only case ui view edit return view edit case ui search return search default return unknown | returns a description of the specified |
public void send responses object output stream objectos collection responses throws ioexception objectos write object responses objectos close | internal method which encodes a stream of outgoing responses |
public void send exception output stream output stream exception exception throws ioexception object output stream objectos get object output stream output stream objectos write object exception objectos close | internal method which encodes an exception into a stream |
public void println boolean b synchronized lock print b super println at start of line true | print a boolean value and then terminates the line |
public void abort response and send exception object output stream objectos exception exception throws ioexception objectos reset objectos write object exception objectos close | internal method which encodes an exception into a stream |
public string get uimode as ms xmlidentifier int ui mode switch ui mode case ui view only return view only case ui view edit return view edit case ui search return search default return invalid | returns an identifier corresponding to the specified |
public void select button string button name if selected buttons null string tokenizer tokenizer new string tokenizer map null to empty get property selected buttons selected buttons new hash set while tokenizer has more tokens selected buttons add tokenizer next token selected buttons add button name else selected buttons add button name | selects the named button |
public boolean is acceptable flavour data flavor flavour return flavour is mime type serialized object | returns true where the specified data flavour is |
public string get exception flavour return application x java serialized object class javax ejb ejbexception | returns the mime type for an encoded exception object |
public string get response collection flavour return application x java serialized object class java util collection | returns the mime type for an encoded response collection |
public void println char c synchronized lock print c super println at start of line true | print a character and then terminate the line |
public throwable init cause throwable cause return this cause cause | sets the reason for the status exception |
public status command get status command return command | identifies the command which caused this exception |
public void println int i synchronized lock print i super println at start of line true | print an integer and then terminate the line |
public void init throws servlet exception security layer new servlet security server container transport layer new object transport active thread list new hash set thread name command table new hashtable | initializes the command servlet |
public void println long l synchronized lock print l super println at start of line true | print a long integer and then terminate the line |
public void destroy server container shutdown | destroys the command servlet |
public void show button string button name if hidden buttons null string tokenizer tokenizer new string tokenizer map null to empty get property hidden buttons hidden buttons new hash set while tokenizer has more tokens hidden buttons add tokenizer next token hidden buttons remove button name else hidden buttons remove button name | unhides the named button |
public void println float f synchronized lock print f super println at start of line true | print a floating point number and then terminate |
public void println double d synchronized lock print d super println at start of line true | print a double precision floating point number |
public void show field string field name if hidden fields null string tokenizer tokenizer new string tokenizer map null to empty get property hidden fields hidden fields new hash set while tokenizer has more tokens hidden fields add tokenizer next token hidden fields remove field name else hidden fields remove field name | unhides the named field |
public string get servlet info return command servlet processes serialized commands invoked with respect to entity beans and produces serialized responses containing entity beans | returns a description of the command servlet |
public void println char s synchronized lock print s super println at start of line true | print an array of characters and then terminate |
protected string get detail http session session servlet request request throws emergency broadcast exception if session equals emergency broadcast system throw new emergency broadcast exception else login entity bean login bean login entity bean session get attribute login bean string username if login bean null username login bean get username else if session is new server container begin session session request get remote host login max duration username new session else username unknown return username request get remote addr | returns the username and host associated with this session |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.