input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public managed mouse get managed mouse pointer return this managed mouse | the code managed mouse code of this code managed display code |
public int get y1 return this y1 | the new relative y coordinate value |
public painter factory get painter factory return this painter factory | the code painter factory code of this code managed display code |
public boolean is visible0 return this visible0 | the current visibility |
public real root get real root render area return this real root | the code real root code of this code managed display code |
public boolean is visible1 return this visible1 | the new visibility |
public void shut down throws hyperdrive exception todo shut down any paint back end and release all resources get event dispatcher shut down this event conductor map clear try this display shut down catch final hydrogen display interface exception e throw new hyperdrive exception e | shut down all code paintable code s shut down the backing paint engine |
protected void unregister get managed display unregister event bus this | remove this code abstract render area code from the list of known |
protected void close client window throws hyperdrive exception get target render area request destroy | request that the destroy process of the target |
public client window get target render area return this target render area | the target code abstract render area code |
public void set target render area final client window target render area this target render area target render area | define the target code abstract render area code |
public string get name throws hyperdrive exception final property extends text property instance name property get managed display get display get properties get name property string return string if name property null text property instance name property instance try name property instance get platform render area get property instance name property return string name property instance get text catch final hydrogen display interface exception e throw new hyperdrive exception e if return string null no implementation return empty string return string return return string | gets the code client window code s name |
public abstract render area get target render area return this target render area | the target code abstract render area code of this |
public void set target render area final abstract render area target render area this target render area target render area | change the target code abstract render area code |
public managed display get managed display return this managed display | the code managed display code where this |
public void start drag final mouse input input throws hyperdrive exception if this started final managed mouse mouse pointer get managed display get managed mouse pointer this x0 input get root x this y0 input get root y this started true do drag cycles mouse pointer drag button this started false | activate the code managed mouse code movement monitor for this |
public platform render area get platform render area return this platform render area | the code platform render area code of this |
public void stop drag drag button this started false | stop the code managed mouse code movement monitor for this |
public void refresh throws hyperdrive exception try this mouse refresh info catch final hydrogen display interface exception e throw new hyperdrive exception e | refresh the geometric values of this code managed mouse code so it |
public void set movable final boolean movable this movable movable | enable or disable if this code abstract render area code is movable |
public void set resizable final boolean is resizable this resizable is resizable | enable or disable if this code abstract render area code can be resized |
public boolean exec final native buffer helper native buffer helper get native buffer helper if native buffer helper is write enabled native buffer helper get buffer clear final boolean error native call impl native buffer helper get buffer compact native buffer helper get buffer flip return error else throw new error program bug can not execute native call result buffer is not yet marked as done reading | execute the code native call impl code method |
public native buffer helper get native buffer helper return native buffer helper get buffer helper | the thread local code native buffer helper code of this |
public r get result return null | the result that is stored in the thread local |
public void sync geo to platform render area geo throws hyperdrive exception try final platform render area geometry wg get platform render area get platform render area geometry set relative x wg get x set relative y wg get y set width wg get width set height wg get height do update size place value false set visibility get platform render area get platform render area attributes is viewable do update visibility false catch final hydrogen display interface exception e throw new hyperdrive exception e | update the geometric information of this code abstract render area code |
public boolean read boolean final boolean returnboolean read unsigned byte 0 return returnboolean | read a byte and interpret it as a boolean |
private long read bytes final int how many long result 0 switch how many case 1 result get buffer get break case 2 result get buffer get short break case 4 result get buffer get int break case 8 result get buffer get long break default throw new illegal argument exception string format number of bytes to read must be 1 2 4 or 8 got d how many return result | read one two four or eight bytes |
public int read signed byte final byte return byte byte read bytes 1 return return byte | read a signed byte |
public long read signed long final long returnlong read bytes this long size return returnlong | read a native signed long |
public int read signed short final short return short short read bytes 2 return return short | read a signed short |
public int read unsigned byte final int u byte int read bytes 1 0x ff return u byte | read an unsigned byte |
public int read unsigned short todo use native length final int u short int read bytes 2 0x ffff return u short | read an unsigned short |
public long read unsigned int todo use native length final long u int read bytes 4 0x ffffffffl return u int | read an unsigned integer |
public void add final xatom x atom if this all xatoms by id contains key x atom get atom id this all xatoms by id contains value x atom throw new assertion error xatom already registered this all xatoms by id put x atom get atom id x atom | register a code xatom code that is already known on the x display |
public void set platform render area type final platform render area type platform render area type this platform render area type platform render area type | the given code platform render area type code will identify this |
private boolean is property valid final property extends property instance property boolean valid if this property validity cache contains key property valid this property validity cache get property boolean value else valid false return valid | check if the cached value of the given property type represented by the |
private short read event code final native buffer helper native buffer helper final long event code byte native buffer helper read unsigned byte final short event code short event code byte 0x80 return event code | read the event type code from the given code native buffer helper code |
public boolean contains key final xid xid synchronized this registered resources final boolean returnboolean this registered resources contains key xid return returnboolean | check if an code xresource code is registered with the given |
public xresource get final xid xid synchronized this registered resources if this registered resources contains key xid throw new assertion error string format trying to use not registered resource d xid get resource handle xresource return xresource null return xresource this registered resources get xid if return xresource null throw new assertion error trying to use not registered resource return return xresource | query an code xresource code with the given code xid code |
public void register final xresource xobject synchronized this registered resources final xid xid xobject get display resource handle if this registered resources contains key xid throw new assertion error trying to register an already registered resource this registered resources put xid xobject | register an code xresource code with this |
public void unregister final xid xid synchronized this registered resources if this registered resources contains key xid false throw new assertion error trying to use not registered resource this registered resources remove xid | remove an code xresource code registration from this |
public xdisplay get display return this display | the code xdisplay code where this code xmouse code lives on |
public void set root x final int root x this root x root x | store the horizontal position of this code xmouse code relative to the |
public void set root y final int root y this root y root y | store the vertical position of this code xmouse code relative to the |
public void add xwindow relation final xwindow relation relation this relations add relation | adds a code xwindow code that has a certain relation to this |
protected executor service get render engines executor return this render engines executor | the code executor service code used by this |
protected qfusion render engine new qfusion render engine construct new string args from back end properties final string args construct args final qfusion render engine render engine new qfusion render engine this display args return render engine | create a new code qfusion render engine code |
protected void init conversion map get conversion map put qevent type key press new qfusion key press converter get conversion map put qevent type key release new qfusion key release converter get conversion map put qevent type mouse button press new qfusion mouse button press converter get conversion map put qevent type mouse button release new qfusion mouse button release converter get conversion map put qevent type destroy new qfusion destroy converter get conversion map put qevent type enter new qfusion mouse enter event converter get conversion map put qevent type leave new qfusion mouse leave event converter | initializes the map that holds the key value entries used for converting |
public qfusion render engine get render engine return this render engine | gets the code qfusion render engine code for which this |
public qfusion render engine get qt render engine return this q fusion render engine | the code qfusion render engine code responsible for correctly |
public resource bundle get resource bundle try if resource bundle null resource bundle resource bundle get bundle net sf chameleon ui chameleon uiresources catch missing resource exception x resource bundle null return resource bundle | returns the plugins resource bundle |
public void set date format string date format this date format date format null null new simple date format date format | sets the format of the date to allow |
public void set url string url try set url new url url catch malformed urlexception e e print stack trace | sets the url of the rssreader to be |
public channel parse feed throws exception if url null return new channel system out println system out println system out println url to query url system out println system out println rss parser parser rss parser factory create default rss rss parser parse url return rss get channel | fetches a feed from a stored location and parses it |
public data convert to data item item list item items new array list item items add item return the first item in the returned list return convert to data items get 0 | converts an rss item into a data item for use |
private void setup writer create instance of document builder factory dbf document builder factory new instance create a builder try doc builder dbf new document builder catch parser configuration exception e todo auto generated catch block e print stack trace create new dom document document doc builder new document | sets the writer up in preparation for xml write |
public data convert blinkx to data item item list item items new array list item items add item return the first item in the returned list return convert blinkx to data items get 0 | converts an rss item into a data item for use |
public data convert flickr to data item item list item items new array list item items add item return the first item in the returned list return convert flickr to data items get 0 | converts an rss item into a data item for use |
public data covert you tube to data item item list item items new array list item items add item return the first item in the returned list return convert you tube to data items get 0 | converts an rss item into a data item for use |
public data covert truveo to data item item list item items new array list item items add item return the first item in the returned list return convert truveo to data items get 0 | converts an rss item into a data item for use |
public void form document create a dom implementation domimplementation impl this document get implementation domimplementation ls impl ls domimplementation ls impl get feature ls 3 0 create a writer and tell it to format the output so it s pretty lsserializer writer impl ls create lsserializer writer get dom config set parameter format pretty print true writer get dom config set parameter xml declaration false create a serialized version of the document string xml serialized writer write to string this document get document element system out println xml serialized | writes the document to file |
public generator get generator if this feed type social peek return xml return new xmlgenerator else if this feed type social peek return json return new jsongenerator else if this feed type social peek return rss return new rssgenerator else return null | get a generator for the user defined feed type |
public date get played return played | get the date the track was played |
public void set played date played this played played | set the date of when the track was played |
public peek factory get peeking factory return new social peek factory this config | create a new instance of social peek with a specific configuration |
public int get feed type return this get feed type | get feed type to generate xml json or rss |
public void set feed type int feed type this feed type feed type | set the feed type to generate xml json or rss |
public social service get peeker throws social peek exception random random new random social service service this config get registered services get random next int this config get registered services size return service | get a random peeker for a random service |
public void set headline data data string headline throws parse exception if headline null data null data set headline not available else data set headline headline | sets the headline of the data object with the |
public void register service social service service this generator factory new generator factory feed type service register generator factory this generator factory service register configuration this this services add service | set the feed type to generate xml json or rss |
public void set body data data string body throws parse exception if body null data null data set headline else data set body body | sets the body of the data object with the |
public void set user data data string user throws parse exception if user null data null data set link not available else data set user user | sets the user of the data object with the |
public void set date data data string date throws parse exception if date null data null return calendar cal calendar get instance if date format null cal set time date format parse date data set date cal | sets the date of the data object with the |
public void set date format string date format this date format new simple date format date format | sets the helpers simple date format |
private string get xmlsource string url throws parse exception try open stream url url obj new url url input stream in url obj open stream wrap a reader around the stream buffered reader buff new buffered reader new input stream reader in populate writer with xml data from api string writer writer new string writer string xml data while xml data buff read line null writer append xml data n return writer to string catch ioexception e throw new parse exception unable to retrive from wwf api e get message | get xml source no longer required as xerces will grab the xml remote |
public void set historical end point calendar cal this historical end point cal | set the up to date you want information returned if available from service |
public void set historical start point calendar cal this historical start point cal | set the up to date you want information returned if available from service |
public string get rsscache location return this rss cache location | set the location of the cached rss files |
public void set rsscache location string rss cache location this rss cache location rss cache location | get the location of the cached rss files |
private string get xmlsource string url throws parse exception try open stream url url obj new url url input stream in url obj open stream wrap a reader around the stream buffered reader buff new buffered reader new input stream reader in populate writer with xml data from api string writer writer new string writer string xml data while xml data buff read line null writer append xml data n return writer to string catch ioexception e throw new parse exception unable to retrive from digg api e get message | get xml source no longer required as xerces will grab the xml remote |
private string get node text element node string tag name int occurence string text val null node list tags node get elements by tag name tag name if tags null tags get length 0 element el if occurence 0 occurence tags get length el element tags item occurence 1 else el element tags item 0 if el get first child null text val el get first child get node value else text val return text val | searches for the nth occurence of a tag with the name tag name |
public void set social service social service service this service service | set the social service for the parser |
protected social service get social service return this service | get the social service for the parser |
private string get xmlsource string url throws parse exception try open stream url url obj new url url input stream in url obj open stream wrap a reader around the stream buffered reader buff new buffered reader new input stream reader in populate writer with xml data from api string writer writer new string writer string xml data while xml data buff read line null writer append xml data n return writer to string catch ioexception e throw new parse exception unable to retrive from yahoo api e get message | get xml source no longer required as xerces will grab the xml remote |
private string get node text element node string tag name int occurence string text val null node list tags node get elements by tag name tag name if tags null tags get length 0 element el if occurence 0 occurence tags get length el element tags item occurence 1 else el element tags item 0 text val el get first child get node value return text val | searches for the nth occurence of a tag with the name tag name |
public void test update status twitter tw new twitter jtwit password string s experimenting http winterwell com at new date to string status s2a tw update status s status s2b tw get status assert s2b text equals s s2b text assert s2a id s2b id now test delete tw destroy status s2a id status s1 tw get status assert s1 id s2a id | test method for |
public void test get public timeline twitter tw new twitter null null list status pt tw get public timeline assert pt size 5 | test method for |
public void test get user timeline twitter tw new twitter jtwit password list status ut tw get user timeline assert ut size 0 | test method for |
public void test get status int twitter tw new twitter jtwit password status s tw get status status s2 tw get status s id assert s2 text equals s text | test method for |
public void test get status twitter tw new twitter jtwit password status s tw get status | test method for |
public void test get replies twitter tw new twitter jtwit password list message r tw get replies system out println replies r | test method for |
public void test get friends twitter tw new twitter jtwit password list user friends tw get friends assert friends null | test method for |
public void test get friends string twitter tw new twitter jtwit password list user friends tw get friends winterstein assert friends null | test method for |
public void test get followers twitter tw new twitter jtwit password list user f tw get followers assert f size 0 assert twitter get user winterstein f null | test method for |
public void test get featured twitter tw new twitter jtwit password list user f tw get featured assert f size 0 | test method for |
public void test show twitter tw new twitter jtwit password user show tw show jtwit assert show null | test method for |
public void test get direct messages twitter tw new twitter jtwit password list message msgs tw get direct messages | test method for |
public void test get direct messages date twitter tw new twitter jtwit password list message dm tw get direct messages new date system out println dm | test method for |
public void test befriend twitter tw new twitter jtwit password list user friends tw get friends if twitter get user winterstein friends null tw befriend winterstein friends tw get friends user winterstein twitter get user winterstein friends assert winterstein null user h tw break friendship winterstein friends tw get friends winterstein twitter get user winterstein friends assert winterstein null tw befriend winterstein friends tw get friends winterstein twitter get user winterstein friends assert winterstein null system out println h screen name | test method for |
public user befriend string username throws twitter exception if username null throw new null pointer exception string page fetch web page http twitter com friendships create username json null true try return new user new jsonobject page null catch jsonexception e throw new twitter exception e | create befriends the user specified in the id parameter as the |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.