input
stringlengths
10
828
output
stringlengths
5
107
public void set seat class eseat class seat class this seat class seat class
sets seat class
public eseat class get seat class return seat class
returns seat class
public boolean is business seat return seat class eseat class business
observation method for seat class
public boolean is economy seat return seat class eseat class economy
observation method for seat class
static public boolean login string username string password session session hibernate util get session factory get current session session begin transaction boolean truth false retrieve customer record from the databse customer customer customer session get customer class new string username if customer null truth false else compare entered password to stored password if password compare to customer get password 0 truth true else truth false session get transaction commit return truth
verifies username and password for login
private void initialize this set layout new javax swing box layout this javax swing box layout y axis this add get test environment null this add get test environment1 null this add get test environment2 null this add get test environment3 null this add get test environment4 null this set size 300 200
this method initializes this
private void initialize this set layout new javax swing box layout this javax swing box layout y axis this add get download xine panel null this add get download lame panel null this add get download ceuipanel null this add get download limmbo panel null this add get download jmfpanel null this set size 356 414
this method initializes this
private void initialize this set layout new javax swing box layout this javax swing box layout y axis this add get compile lame panel null this add get compile xine panel null this add get compile ceuipanel null this add get compile limmbo panel null this add get compile jmfpanel null this set size 356 414
this method initializes this
public void pause throws modlet request denied exception if debug verbose debug out this debug info pause on cdplayer
request the modlet to enter the pause state
public ceimage icon get icon return null
returns an icon for this modlet
public void stop boolean forced throws modlet request denied exception if debug verbose debug out this debug info stop mediaplayer modlet
request the modlet to stop execution
public void change state boolean background if debug verbose debug out this debug info change state mediaplayer modlet background
informs the modlet that it has to enter background execution background true
public void start string argv hashtable obj if debug verbose debug out this debug info start cdplayer create list try context set vtcontrol control catch exception e e print stack trace
requests the modlet to start execution
public boolean thread loop count if debug verbose debug out this debug info loop count test set text integer to string count test repaint return true
this method is called in a loop
public string get thread name return media player
returns the name of this thread
public string get module name return mediaplayer modlet
returns the name of this module
public int get sleep interval return 1000
returns the time to sleep between two calls to loop thread in ms
public boolean is menu panel needed return true
returns whether the modlet needs its own menu panel or not
public boolean release resource int resource id boolean force todo release resource return true
requests the resource owner to release the resource specified by resource id
public vtcontrol get vtcontrol return control
returns the vtcontrol of the modlet
public navigation group get main navigation group return list get navigation group
returns the main ce
public void change state boolean background if background root pane get root pane get graphics pane set hidden false root pane get root pane get video pane set hide gui false context remove menu listener m listener else context add menu listener m listener root pane get root pane get graphics pane set hidden true root pane get root pane get video pane set hide gui true root pane get root pane get video pane repaint if debug verbose debug out this debug info change state mediaplayer modlet background
informs the modlet that it has to enter background execution background true
public boolean thread loop return true
this method is called in a loop
public string get thread name return dvdplayer
returns the name of this thread
public string get module name return video player
returns the name of this module
private void set defaults cecomponent label anti flicker border border new anti flicker border shadow 1 alpha composite src label set border border label set font ceuimanager get font limmbo look label font label set foreground ceuimanager get color limmbo look item select foreground color label set background ceuimanager get color limmbo look item alpha color label set background compositing rule cealpha composite src label set opaque true
method set defaults
public void pause throws modlet request denied exception debug out juke resource get string pause on jukebox
request the modlet to enter the pause state
public void pause throws modlet request denied exception debug out pause on cdplayer
request the modlet to enter the pause state
public void stop boolean forced throws modlet request denied exception debug out juke resource get string stop jukebox if forced if playlist started play control stop playing play control deactivate context remove last level playlist null
request the modlet to stop execution
public void stop boolean forced throws modlet request denied exception debug out stop cdplayer
request the modlet to stop execution
public void change state boolean background if background if list null try cecomponent comp cecomponent list get item 0 if comp null comp request focus catch exception e debug out change state jukebox background
informs the modlet that it has to enter background execution background true
public void set keys help items table this remove all enumeration e table elements set layout new graph paper layout new dimension table cols table rows hitems table keys new hashtable graph paper constraints gbc new graph paper constraints while e has more elements help item item help item e next element key k new key item key celabel label new celabel item text ceuimanager get icon item key set defaults label gbc gridx item x gbc gridy item y gbc gridw item width gbc gridh 1 add label gbc keys put k label validate repaint
sets a complete set of key infos
public void change state boolean background debug out new string buffer change state cdplayer append background to string if background if player get status drive status play system err println starting playback again if list null play 1 list get item 1 move to
informs the modlet that it has to enter background execution background true
public void start string argv hashtable obj player get monitor start player get monitor add cdevent listener new cdlist info panel new cdpanel this main panel set layout null info panel set bounds 0 0 main panel get size width 250 main panel add info panel info panel validate t group thread current thread get thread group try context set vtcontrol control catch exception e e print stack trace
requests the modlet to start execution
public void start string argv hashtable obj debug out juke resource get string start jukebox info panel new juke panel this main panel set layout null info panel set bounds 0 0 main panel get size width 400 info panel set hidden true main panel add info panel info panel validate t group thread current thread get thread group create list2 try context set vtcontrol control catch exception e e print stack trace
requests the modlet to start execution
public void add timer listener timer listener l timer listener limmbo event multicaster add timer listener l
adds the specified level listener to receive action events
public boolean thread loop try if play control null play control get player null info panel set play time play control get player get media time catch exception e e print stack trace return true
this method is called in a loop
public boolean thread loop try info panel set play time player current address 75 catch exception e e print stack trace return true
this method is called in a loop
public string get thread name return cdplayer
returns the name of this thread
public string get thread name return juke resource get string jukebox
returns the name of this thread
public string get module name return cdplayer
returns the name of this module
public string get module name return juke resource get string jukebox
returns the name of this module
public void pause throws modlet request denied exception todo
request the modlet to enter the pause state
public vtcontrol get vtcontrol if level control null return level control return control
returns the vtcontrol of the modlet
public void start string argv hashtable obj this create service list tune current service context set hide gui true root pane get root pane get graphics pane set hidden true root pane get root pane get video pane set hide gui true root pane get root pane get video pane set color key mode true root pane get root pane get video pane repaint root pane get root pane repaint rvt set enabled true gvt set enabled true yvt set enabled true bvt set enabled true update control
requests the modlet to start execution
public vtcontrol get vtcontrol if level control null if debug verbose debug out this debug info returning level control return level control if debug verbose debug out this debug info returning normal control return control
returns the vtcontrol of the modlet
public boolean is menu panel needed if you module requires a menu return true otherwise false return true
returns whether the modlet needs its own menu panel or not
public boolean release resource int resource id boolean forced throws modlet request denied exception todo return true
requests the resource owner to release the resource specified by resource id
public void start string argv hashtable obj if debug verbose debug out this debug info start radio player this create play list string locator props get limmbo radio laststation not set if locator equals not set start playback locator create list try context set vtcontrol control catch exception e e print stack trace
requests the modlet to start execution
public navigation group get main navigation group return current list get navigation group
returns the main ce
public void run thread this thread thread current thread blinker this thread lock new object if debug verbose debug out this debug info run in safe thread client start argv obj boolean b while blinker this thread b client thread loop if b false return try thread sleep interval synchronized this while thread suspended blinker this thread if debug verbose debug out this debug info suspended waiting wait if debug verbose debug out this debug info awoke catch interrupted exception e e print stack trace
starts this thread
public string get module name return internet radio
returns the name of this module
public void paint component graphics g if debug verbose debug out this debug info paint video video to string redraw redraw if hide gui color key mode g set color xine color key g fill rect 0 0 get size width get size height else if img null color key mode g draw image img loc x loc y this g draw image img 0 0 get size width get size height this return off2
blink insert the methods description here
public void set mode int new mode old mode mode mode new mode update mode
blink insert the methods description here
public void set video ce ui image ceimage icon video this video video set background image video new image constraints set image video get image aspect video get aspect ratio repaint update mode
blink insert the methods description here
public cecomponent get graphics pane return graphics pane
blink insert the methods description here
public video pane get video pane return video pane
blink insert the methods description here
public void add progress listener progress listener l progress listener limmbo event multicaster add progress listener l
adds the specified level listener to receive action events
public int get resolving status return res status
returns the status of the database lookup
public int get tracks if resolved return tracks if songs null return songs size return 0
getter for property tracks
public int get sleep interval return 1400
returns the time to sleep between two calls to loop thread in ms
public string get thread name return status thread
returns the name of this thread
public void start string argv hashtable obj
this method is called at the startup
public boolean thread loop if use cdda system out println using cdrip cdrip get status status float cdrip get status 100 0f else status get status return true
this method is called in a loop
public void start string argv hashtable obj dir props get limmbo mp3dir music artist cd get main artist cdtitle cd get title init cdinfo artist cdtitle cdtitle get file string cdtitle artist get file string artist file f new file dir sep artist sep cdtitle f mkdirs i 0 cdrip new cdda2 wav use cdda cdrip is cdda2 wavinstalled stat tc new status thread use cdda cdrip safe t new safe thread stat tc safe t start
this method is called at the startup
public void set language locale loc set locale loc try resbund resource bundle get bundle resbase loc catch exception e e print stack trace repaint
blink insert the methods description here
public void set resource base java lang string new resbase resbase new resbase
blink insert the methods description here
public void set resource bundle java util resource bundle new resbund resbund new resbund
blink insert the methods description here
public object get identifier int which switch which case search by title return title case search by id return id case search by artist return main artist default return null
the identifiers of song are 1 title 2 cddb id
public int get tracks if songs null return songs size return 0
getter for property tracks
public object get identifier int which switch which case search by playlist name return playlist name default return null
the identifiers of song are 1 title 2 cddb id
public int compare to object obj abstract playlist c abstract playlist obj this might throw an class cast exception but that s what it is supposted to do int ret 0 if c null throw new null pointer exception if playlist name null ret playlist name compare to c get playlist name return ret
the natural order is playlist name
public int compare to object obj rating c rating obj this might throw an class cast exception but that s what it is supposted to do int ret 0 if c null throw new null pointer exception return c get rating rate
the natural order is playlist name
public object get identifier int which switch which case 1 return title case 2 return artist case 3 return cd case 4 return path case 5 return new integer random case 6 return new integer order default return null
the identifiers of song are 1 title 2 artist 3 cd 4 path
public rating get auto rating return auto rating
getter for property auto rating
public void set auto rating int auto rating this auto rating music db get instance get rating auto rating
setter for property auto rating
public void set cd cd cd this cd cd
setter for property cd
public short get codec return codec
getter for property codec
public void set codec short codec this codec codec
setter for property codec
public vector get genre return genre
getter for property genre
public vector get user playlists return playlist
getter for property genre
public string get main artist return main artist
getter for property main artist
public void set main artist string main artist this main artist main artist if this songartist size 1 there is only one artist song artist songartist element at 0 set name main artist
setter for property main artist
public string get lyrics return lyrics
getter for property lyrics
public void set lyrics string lyrics this lyrics lyrics
setter for property lyrics
public vector get mood return mood
getter for property mood
public void set path string path if path starts with file path util replace path file file this path path
setter for property path
public rating get user rating return user rating
getter for property user rating
public void set user rating int user rating this user rating music db get instance get rating user rating
setter for property user rating
public object get identifier int which switch which case search by name return name default return null
the identifiers of song are 1 title 2 cddb id
protected boolean mount device boolean mount return true
mounts mount true or unmounts mount false device
public void add resource listener resource listener l resource listener limmbo event multicaster add resource listener l
adds the specified resource listener to receive resource events
public boolean pause boolean ret false if jmfplayer get state player started if jmfplayer get rate 0 0f jmfplayer set rate 0 0f ret true else jmfplayer set rate 1 0f if trickmode normal set trickmode normal return ret
toggles pause play
public modlet context get context return context
returns the modlet context of the modlet which has changed level
public int get new level return new level
getter for property new level
public int get old level return old level
getter for property old level
public int get resource return resource
returns the id of the resource
protected dimension get layout size container parent boolean is preferred dimension largest size get largest cell size parent is preferred insets insets parent get insets largest size width largest size width grid size width insets left insets right largest size height largest size height grid size height insets top insets bottom return largest size
algorithm for calculating layout size minimum or preferred
public void add layout component component comp object constraints if constraints instanceof graph paper constraints graph paper constraints cons graph paper constraints constraints if cons gridw 0 cons gridh 0 throw new illegal argument exception cannot add to layout gridw and gridy must have positive width and height if cons gridx 0 cons gridy 0 throw new illegal argument exception cannot add to layout rectangle x and y must be 0 set constraints comp cons else if constraints null throw new illegal argument exception cannot add to layout constraint must be a rectangle
adds the specified component to the layout using the specified
public ceimage icon get icon return icon
getter for property icon