input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void update items undo item set text undo manager get undo presentation name redo item set text undo manager get redo presentation name undo item set enabled undo manager can undo redo item set enabled undo manager can redo | checks for undo and redo actions on editor area |
public string to string return ja | overrides objects to string method |
public string to string return dec | overrides objects to string method |
public string to string return jb | overrides objects to string method |
public string to string return jc | overrides objects to string method |
public string read file file file string buffer file buffer string file string null string fileline string file title file get name sets the title of the textarea set title file title try file reader in new file reader file buffered reader dis new buffered reader in file buffer new string buffer while fileline dis read line null file buffer append fileline n in close file string file buffer to string catch file not found exception e display error message file not found return null catch ioexception e display error message file input error return null return file string | file reader to read the text data from file |
public boolean accept ext file file string ext get extension file for int j 0 j extensions length j if extensions j equals ignore case ext return true return false | check file extension when saving file |
public boolean save file if the file has never been saved then if tab file null return save as file else my tab current tab my tab tab pane get selected component return save file tab file current tab get text | saves the current file |
private void display information message string message display information message message man met assembly | display an information message to the user which has a title of |
private void display error message string message joption pane show message dialog this message error joption pane error message | display an error message to the user |
public boolean is register return id 8 0x a | checks this token to see if it is a register |
private void display warning message string message joption pane show message dialog editor view this message warning joption pane warning message | display a warning message to the user |
public boolean is instruction return id 8 0x b | checks this token to see if it is a register |
public boolean is declaration return id 8 0x c | checks this token to see if it is a register |
public string to string return editor view | overrides objects method to string |
public boolean is label return id 8 0x9 | checks this token to see if it is a register |
public string get description if is register return register else if is declaration return declaration else if is instruction return instruction else if is reserved word return reserved word else if is identifier return identifier else if is literal return literal else if is separator return separator else if is operator return operator else if is comment return comment else if is white space return whitespace else if is error return error else return unknown | a description of this token |
public void paint graphics g graphics2 d g2 d graphics2 d g java2 d has a y axis that goes from top to bottom here we correct it double y beg new w window line get pbeg get y ipoint p beg new new point line get pbeg get x y beg new double y end new w window line get pend get y ipoint p end new new point line get pend get x y end new line line new new line p beg new p end new g2 d draw line new | this is java2 d also called swing |
private void ini ps if ps size 3 add point new point 100 0 100 0 add point new point 150 200 add point new point 200 150 | fills points with a sample |
public irect get limits return new rect x y size size | the bounding box of a point is very small |
public void paint graphics2 d g2 d paintable paintable if paintable instanceof group igroup group group paintable paint graf name g2 d group list ibasic go g os group get gos for ibasic go g o2 g os if g o2 instanceof paintable paint g2 d paintable g o2 else paintable paint g2 d h window | can be used recursivly |
private void mirror y circle mirrored new circle copy dee this circle mirrored todo double y center new h window get pcenter get y ipoint p center new new point get pcenter get x y center new circle mirrored set pcenter p center new | mirrows in a way that y gets y does not touch color etc |
private void mirror y int h window line mirrored new line copy dee this line mirrored double y beg new h window get pbeg get y ipoint p beg new new point get pbeg get x y beg new double y end new h window get pend get y ipoint p end new new point get pend get x y end new line mirrored set pbeg p beg new line mirrored set pend p end new | mirrows in a way that y gets y does not touch color etc |
protected void set version string version this version version | set the value of version |
protected void set categorie collection category categorie this categorie categorie | set the value of categorie |
public boolean updated scarica la versione online string online version get online version number aggiorna la variabile version this version category facade find category version if this version null return this version equals online version else return false | returns true iff the version of the categories |
public string get cat level return cat level | get the value of cat level |
public void set cat level string cat level this cat level cat level | set the value of cat level |
public void set sotto categorie list category sotto categorie this sotto categorie sotto categorie | set the value of sotto categorie |
public string get ebay id return ebay id | get the value of ebay id |
public string get cat name return cat name | get the value of cat name |
public void set cat name string cat name this cat name cat name | set the value of cat name |
public void set ebay id string ebay id this ebay id ebay id | set the value of ebay id |
public void set sotto categorie collection category sotto categorie this sotto categorie sotto categorie | set the value of sotto categorie |
public void set categorie collection category categorie this categorie categorie | set the value of categorie |
public boolean updated string version return this version equals version | returns true iff the version of the categories |
public void set table manager table manager tman tableman tman | sets the table manager |
public void set xslengine basic xslengine bxsl this b xsl bxsl | set the xslt engine |
public void repeat string pattern int length for int x 0 x length x print pattern | repeats a string x times |
public void add column string name list data int type result table add new result column result column result table get result table size 1 column name name result column result table get result table size 1 type type result column result table get result table size 1 column data data | add a column with a name and type to the result set |
public void logprint string msg try stdout write msg n get bytes stdout flush catch exception e system err println logprint e to string e print stack trace system err | some things should not be logged i |
public aresult set get tables string types ars reset get table manager get tables ars types return ars | gets a list of tables in the datastore |
public string get table marker string tablename throws exception return apply style sheet tablename 2 get table root node xsl | gets what this table uses to mark the begining and ending of the |
public aresult set execute statement string query throws exception get a new commandmanager and execute the query so local vars are local get a fresh commandmanager command manager tmpexe get command manager execute the query aresult set ars tmpexe execute statement query null out the fresh command manager help out gc tmpexe nullify return comman execute statement query return ars return comman execute statement query | executes a query string |
public aresult set execute statement string query byte type throws exception return comman execute statement query type return null | executes a query string |
public void reset clear all the columns result table remove all result table park the cursor currentrow 1 | resets this result set object so it can be reused |
public string get row marker string tablename throws exception return apply style sheet tablename 1 get table row node xsl | gets what this table uses to mark the begining and ending of its |
public string get catalog name int column throws sqlexception return | gets the designated columns tables catalog name |
public string get column class name int column throws sqlexception return | p returns the fully qualified name of the java class whose instances |
public int get column count throws sqlexception return rs get result table size | returns the number of columns in this code result set code object |
public int get column display size int column throws sqlexception return 20 | indicates the designated columns normal maximum width in characters |
public string get column label int column throws sqlexception return result column rs get result table get column 1 column name | gets the designated columns suggested title for use in printouts and |
public string get column name int column throws sqlexception return result column rs get result table get column 1 column name | get the designated columns name |
public int get column type int column throws sqlexception return result column rs get result table get column 1 type | retrieves the designated columns sql type |
public string get column type name int column throws sqlexception return undefined | retrieves the designated columns database specific type name |
public void add result column result column column result table add column | add a result column to this result set |
public int get precision int column throws sqlexception return 0 | get the designated columns number of decimal digits |
public int get scale int column throws sqlexception return 0 | gets the designated columns number of digits to right of the decimal point |
public string get schema name int column throws sqlexception return no schema | get the designated columns tables schema |
public string get table name int column throws sqlexception return undefined | gets the designated columns table name |
public boolean is auto increment int column throws sqlexception return false | indicates whether the designated column is automatically numbered thus read only |
public boolean is case sensitive int column throws sqlexception return true | indicates whether a columns case matters |
public boolean is definitely writable int column throws sqlexception return true | indicates whether a write on the designated column will definitely succeed |
public int is nullable int column throws sqlexception return result set meta data column nullable | indicates the nullability of values in the designated column |
public list get result table return result table | gets a handle to the result table table meaning the whole result |
public boolean is read only int column throws sqlexception return false | indicates whether the designated column is definitely not writable |
public boolean is searchable int column throws sqlexception return true | indicates whether the designated column can be used in a where clause |
public boolean is signed int column throws sqlexception return false | indicates whether values in the designated column are signed numbers |
public void execute query string sql aresult set ars throws exception the temp file should have the full xmldocument filename with the delete records removed string tmptablename execute query sql synchronized modify mainfile don t use drop table or the schema and icf file will go too manually delete the file tableman get table file mainfile table manager type table delete now move the temp file to the original tableman rename table tmptablename mainfile | fills a result set with with the results of an sql xslt query |
public void set saxfactory string factory saxfactory factory | change the sax factory call do factory rest |
private void init writer writer set output writer ns support new namespace support prefix table new hashtable forced decl table new hashtable done decl table new hashtable | internal initialization method |
public boolean get distinct flag return this do distinct | this passes if the distinct flag was set in the column section |
public list get column names return field dis | field display the as |
public list get column values return field val | field value what to select |
public void reset element level 0 prefix counter 0 ns support reset | reset the writer |
public aresult set get result set return this ars | get the results of the object parse |
public void flush throws ioexception output flush | flush the output |
public boolean is read only return readonly | read only datastore |
public void add field int column string data result column result table get column column data add data | add a field to the end of a column |
public int get next sequence string tablename throws exception int autonum 0 synchronized get next seq tablename java io data input stream dis new java io data input stream get table input stream tablename type counter new java io file input stream this get table file tablename type counter autonum dis read int dis close autonum java io data output stream dos new java io data output stream get table output stream tablename type counter dos write int autonum dos flush dos close return autonum | looks up the next number in a serialed autonumbered table |
public void set sequence start string tablename int base throws exception synchronized get next seq tablename java io data output stream dos new java io data output stream get table output stream tablename type counter dos write int base dos flush dos close system out println alter | changes the base sequence number for a autonumbered table |
public void set output writer writer if writer null output new output stream writer system out else output writer | set a new output destination for the document |
public void set prefix string uri string prefix prefix table put uri prefix | specify a preferred prefix for a namespace uri |
public void create table string tablename string data byte type throws exception create table tablename new java io byte array input stream data get bytes type | create a new table from a string |
public void set quick result set string colname string data list temp v new array list temp v add data add column colname temp v java sql types varchar | make a quick result set |
public string get datastore uri return datastore get path to string | get the datastore the directory as a string |
public string get table full path string tablename byte type switch type case table manager type table case table manager type temptable return get datastore uri system get property file separator tablename tableext case table manager type schema return get datastore uri system get property file separator tablename tableschema case table manager type counter return get datastore uri system get property file separator tablename tablecounter case table manager type proc return get datastore uri system get property file separator tablename stored proc return thisfiledoesntexist | get a table xml file as a string path |
public string get prefix string uri return string prefix table get uri | get the current or preferred prefix for a namespace uri |
public table manager get table manager return tableman | gets the table manager |
public boolean is table string tablename return get table file tablename table manager type table exists | returns true if the passed table exists in the datastore |
public void force nsdecl string uri forced decl table put uri boolean true | force a namespace to be declared on the root element |
public void get tables aresult set rs get tables rs null | returns the possible tables in this datastore |
public boolean absolute int row throws sqlexception system err println ab row row 1 if row 0 row get size currentrow row else if row 0 row get size row is negitive subtract it from the length add because its negitive currentrow get size row else return false return true | moves the cursor to the given row number in |
public void force nsdecl string uri string prefix set prefix uri prefix force nsdecl uri | force a namespace declaration with a preferred prefix |
public boolean has schema string tablename return get table file tablename table manager type schema exists | returns true if the passed table has a schema |
public boolean has sequence string tablename return get table file tablename table manager type counter exists | returns true if the passed table has a sequence file |
public void start document throws saxexception reset standalone yes write xml version 1 0 encoding utf 8 n n super start document | write the xml declaration at the beginning of the document |
public int get size return result column result table get 0 column data size | gets the number of rows this table result set has |
public void set variable string string namevalue throws exception string tokenizer stok new string tokenizer namevalue string varname stok next token system out println varname string value while stok has more tokens value stok next token system out println value trim substring 0 value trim length 1 value value trim substring 0 value trim length 1 trim now figure out if its a sub query or just a normal set if value starts with variables put varname sf execute query replace variables value substring 1 value length 1 select filter forsingle else variables put varname trim value trim | trys to set the local variable from a name value pair |
public void do drop table string tablename throws exception do drop dbobject tablename table manager type table if has schema tablename do drop dbobject tablename table manager type schema if has sequence tablename do drop dbobject tablename table manager type counter | drop a table from the datastore and try to drop the schema too |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.