input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set app controller app controller controller this app controller controller
|
sets the app controller attribute of the nos internal frame object
|
public nos desktop pane get desktop return desktop
|
gets the desktop attribute of the nos desktop frame object
|
public void set header width int header width this header width header width
|
set all header widths 1 for now fixed width
|
public void close all frames try jinternal frame internal frames desktop get all frames for int i 0 i internal frames length i if internal frames i instanceof nos internal frame nos internal frame pointer nos internal frame internal frames i pointer close nos frame internal frames i do default close action catch exception err
|
description of the method
|
public void set columncount int column count this column count column count
|
sets the collumn count value
|
public void set pilot string pilot this pilot pilot
|
sets the pilot attribute of the flight log book object
|
public void center frame nos internal frame doc int x desktop get width doc get width 2 int y desktop get height doc get height 2 doc set location x y
|
description of the method
|
public void component translation debug jcomponent comp string key string translation if translation starts with key null comp set foreground color red comp set tool tip text translationkey key
|
description of the method
|
public table column model get column model default table column model return value new default table column model for int i 0 i header width length i table column column new table column i if header width i 0 column set max width header width i column set header value header i return value add column column return return value
|
returns a newly created column model by column widhts and header values
|
public void process window event window event e if e get id window event window closing close desktop e else super process window event e
|
description of the method
|
public void close desktop window event e try this close all frames if e null super process window event e catch exception todo
|
description of the method
|
public object get value at int row int column return table row column
|
returns a value from the string array
|
public string get column name int column return header column
|
returns a column name
|
public flight screen shot get next flight screen shot flight screen shot cur logger debug get next flight screen shot clalled if screen shots size 0 return null if cur null return flight screen shot screen shots get 0 int idx screen shots index of cur 1 if idx screen shots size 1 idx 0 return flight screen shot screen shots get idx
|
gets the next flight screen shot attribute of the flight object
|
public file get file to open string directory string extension string descr jfile chooser fc new jfile chooser new file directory nos file filter filter new nos file filter extension descr fc set file filter filter fc show open dialog this return fc get selected file
|
show file open dialog
|
public component get component int n synchronized get tree lock int ncomponents get component count component component get components if impossible then return a empty jlabel if n 0 n ncomponents return new jlabel return component n
|
gets the component attribute of the nos desktop pane object
|
public void set accepted characters string accepted chars this accepted chars accepted chars
|
sets the accepted characters attribute of the nos text field filter object
|
public void set file file file this file tools patch file extension file xml
|
sets the file attribute of the flight log book object
|
public string get accepted characters return this accepted chars
|
gets the accepted characters attribute of the nos text field filter object
|
public void insert string int offset string inputstring attribute set attr throws bad location exception if inputstring null return string str new string inputstring if get length str length max length max length 1 int possible insert max length get length if possible insert 0 str str substring 0 possible insert else return for int i 0 i str length i if accepted chars index of str value of str char at i 1 return super insert string offset str attr
|
implementation of the standard insert string function
|
public flight screen shot get prev flight screen shot flight screen shot cur logger debug get prev flight screen shot clalled if screen shots size 0 return null if cur null return flight screen shot screen shots get 0 int idx screen shots index of cur 1 if idx 0 idx screen shots size 1 return flight screen shot screen shots get idx
|
gets the prev flight screen shot attribute of the flight object
|
public void set screenshot folder string screenshot folder this screenshot folder screenshot folder
|
sets the screenshot folder attribute of the flight log book object
|
public void add screen shot flight screen shot ss logger debug add screen shot clalled screen shots add ss
|
adds a feature to the screen shot attribute of the flight object
|
public void ihm update super ihm update display table
|
overrides function for refreshing the table if needed
|
public string get screenshot folder return screenshot folder
|
gets the screenshot folder attribute of the flight log book object
|
public void set index html string index html this index html index html
|
sets the index html attribute of the flight log book object
|
public string get index html return index html
|
gets the index html attribute of the flight log book object
|
public void delete screen shot flight screen shot ss logger debug delete screen shot clalled screen shots remove ss
|
deletes a screenshot
|
private void ihm init set title client controller get translation frame main title j scenario files table set model new tmscenario list
|
create the panel league standings and add it to the frame
|
public void setflight html string flight html this flight html flight html
|
sets the flight html attribute of the flight log book object
|
private void ihm init set title client controller get translation frame debug title string info ihm debug info parser dip null if object root null dip new ihm debug info parser game controller get scenario scenario else dip new ihm debug info parser object root object name this j debug info tree set model dip get default tree model
|
create the panel league standings and add it to the frame
|
private void ihm init user user toshow this user to show user toshow this cb stop for remove all items items must be added like the static members in the user class this cb stop for add item client controller get translation frame user stop for all games 0 this cb stop for add item client controller get translation frame user stop for user games 1 display user
|
create the panel league standings and add it to the frame
|
public string getflight html return flight html
|
gets the flight html attribute of the flight log book object
|
private void display user this txt username set text user to show get user name this txt team set text user to show get team get team info get team name this table user interests set model new tmuser interests game controller get scenario get all league elements user to show get interested league elements this table user interests update ui this cb stop for set selected index user to show get stop for games
|
displays all the user informations
|
public void ihm update super ihm update display user
|
overrides function for refreshing the table if needed
|
public void ihm init string title match match this lbl match set text match tools get match description match this txt goals telegramm set text create telegramm match this txt goals telegramm set caret position 0
|
display a score sheet of a match
|
public void set fs save folder string fs save folder this fs save folder fs save folder
|
sets the fs save folder attribute of the flight log book object
|
private void ihm init set title client controller title version try url url client controller get gui resource about html about pane set page url catch exception ignore client controller log ignore to string
|
create the panel league standings and add it to the frame
|
public void ihm init string title scheduler event game day matches game day event this game day event game day event this lbl league set text league tools get game day description game day event this display matches
|
display the game day
|
public void ihm init string title string msg boolean show move on this set title title this lbl msg set text msg if show move on this get content pane add cmd next border layout south this repaint
|
display a text message on the frame
|
public void display short message string title string msg this set title title this lbl msg set text msg this repaint
|
shows a short message
|
private void display matches j match list set model new lmmatches game day event get matches
|
display the results of the matches of this game day
|
public string get fs save folder return fs save folder
|
gets the fs save folder attribute of the flight log book object
|
protected void fire action performed action event e if action listeners null vector listeners action listeners int count listeners size for int i 0 i count i action listener listeners element at i action performed e
|
description of the method
|
public string get aircraft return aircraft
|
gets the aircraft attribute of the flight object
|
protected void fire data changed flight log book data changed event e if flight log book data changed listeners null vector listeners flight log book data changed listeners int count listeners size for int i 0 i count i flight log book data changed listener listeners element at i data changed e
|
description of the method
|
private void ihm init display training schedule
|
calls display table that shows the table
|
private void display training schedule if player to show get training schedule null this add emptyschedule border layout center this team schedule true else this panel training schedule new panel training schedule player to show get training schedule this add panel training schedule border layout center this team schedule false this validate this repaint
|
displays the player specific training schedule if needed
|
private void ihm init display playoffs
|
calls display playoffs
|
private void ihm init display table
|
calls display table that shows the table
|
public void ihm update super ihm update display playoffs
|
overrides function for refreshing the playoffs if needed
|
public void ihm init league league vector groups league get league element groups for int i 0 i groups size i league element group tmp league element group groups get i string title new string try title client controller get translation tmp get name key catch exception err system out println tmp get name key root tab add new panel league standings league group tmp title
|
gets all league element groups from the league and build one
|
public void ihm update super ihm update display table j calendar table mouse clicked null
|
overrides function for refreshing the table if needed
|
public void set aircraft string aircraft this aircraft aircraft
|
sets the aircraft attribute of the flight object
|
private void ihm init panel league standings new panel league standings this get content pane add panel league standings border layout center
|
create the panel league standings and add it to the frame
|
public void ihm init league owner league owners game controller get scenario get league owners this remove root tab root tab new jtabbed pane this add root tab border layout center for int i 0 i league owners length i root tab add new panel league standings league owner league owners i league owners i get name
|
gets all league owner from the controller and build one league owner panel
|
public void set online message string title string username string description string description1 this set title title this lbl msg set text username this lbl description set text description this lbl description1 set text description1 this repaint
|
display a text message on the frame
|
private void store training unit jcombo box cb boolean fieldplayer int day int time if fieldplayer if cb get selected index 0 training schedule set field player training attribute null day time else training schedule set field player training attribute field player keys cb get selected index 1 day time else if cb get selected index 0 training schedule set goalie training attribute null day time else training schedule set goalie training attribute goalie keys cb get selected index 1 day time
|
saves training to training schedule
|
private void ihm init player player toshow this player to show player toshow display player
|
create the panel league standings and add it to the frame
|
public void ihm update ihm update this
|
starts the ihm update container function
|
public void ihm update container container component components container get components for int i 0 i components length i if components i instanceof java awt container ihm update java awt container components i if components i instanceof jihm component jihm component tmp jihm component components i tmp ihm update
|
search for all jihm components and call the ihm update function of them
|
private void fillup training units jcombo box cb boolean fieldplayer cb remove all items cb add item client controller get translation panel training schedule no training if fieldplayer for int i 0 i field player labels length i cb add item field player labels i else for int i 0 i goalie labels length i cb add item goalie labels i
|
fill comboboxes with training attributes
|
private int key to index string key boolean field player if field player for int i 0 i field player keys length i if field player keys i equals key return i 1 else for int i 0 i goalie keys length i if goalie keys i equals key return i 1 no training return 0
|
converts a attribute key to a index in the combo box
|
public void ihm update super ihm update
|
overrides function for refreshing the table if needed
|
private void ihm init team team toshow this team to show team toshow display team
|
create the panel league standings and add it to the frame
|
private void check for settings try file settings file new file get user settings path settings filename if settings file exists settings file create new file settings new properties settings load new file input stream settings file create missing settings if settings get property language null settings set property language en save file file output stream fos new file output stream settings file settings store fos properties written by ihm fos close catch exception ignored
|
description of the method
|
public properties get settings return settings
|
gets the settings attribute of the settings object
|
public void set departure date date departure date this departure date departure date
|
sets the departure date attribute of the flight object
|
public object get value at int row int column league element tmp league element league elements get row switch column case 0 return league tools get league element description tmp case 1 if user interests index of tmp 0 return client controller get translation general yes else return client controller get translation general no return null
|
returns league element name or interested flag
|
public league element get league element int row return league element league elements get row
|
return league element by row
|
public int get row count return league elements size
|
returns row count
|
public string get column name int column switch column case 0 return client controller get translation league league element case 1 return client controller get translation tm user interests interested in return
|
gets the column name attribute of the tmuser interests object
|
public object get value at int row int column switch column case column day return scheduler events row get formated date case column event if scheduler events row instanceof scheduler event game day matches scheduler event game day matches game day scheduler event game day matches scheduler events row return league tools get game day description game day return client controller get translation scheduler events row get message key default return null
|
returns league element name or interested flag
|
public int get size return matches size
|
gets the size attribute of the lmmatches object
|
public object get element at int row return match tools get match description get match row
|
gets the match description by row
|
public scheduler event get scheduler event int row return scheduler events row
|
returns the scheduler event of a row passed by
|
public match get match int row return match matches get row
|
returns the specific match for a row
|
public int get row count return scheduler events length
|
returns row count
|
public object get value at int row int column return null scenario file tmp scenario file scenario files get row if tmp null return null switch column case 0 return tmp get description case 1 return tmp get scenario file get name case 2 if tmp is ihm dbpath return ihm tmp get dbname else return user tmp get dbname return null
|
returns league element name or interested flag
|
public string get column name int collumn nr switch collumn nr case column day return client controller get translation tm scheduler day case column event return client controller get translation tm scheduler event default return null
|
returns column names
|
public int get row count return scenario files size
|
returns row count
|
public string get column name int column switch column case 0 return client controller get translation tmscenario list description case 1 return client controller get translation tmscenario list file name case 2 return client controller get translation tmscenario list db name return
|
gets the column name attribute of the tmuser interests object
|
public team get team int row return team stats row get team
|
returns the team of a row passed by
|
public object get value at int row int column switch column case column rank return string value of row 1 case column team return team attributes row get team get team info get team name case column goaltending return string value of team attributes row get goal tending case column defense return string value of team attributes row get defense case column offense return string value of team attributes row get offense case column overall return string value of team attributes row get overall default return null
|
returns league element name or interested flag
|
public int get row count return team stats length
|
returns row count
|
public team get team int row return team attributes row get team
|
returns the team of a row passed by
|
public void ihm sort int collumn nr boolean standard internal sort collumn nr standard this fire table data changed
|
sorts team stats by collumn and fires a table data changed event
|
public int get row count return team attributes length
|
returns row count
|
public string get column name int collumn nr switch collumn nr case column rank return client controller get translation general tm rank case column team return client controller get translation general team case column goaltending return client controller get translation tm team attributes goal tending case column defense return client controller get translation tm team attributes defense case column offense return client controller get translation tm team attributes offense case column overall return client controller get translation tm team attributes overall default return null
|
returns column names
|
public object get value at int row int column switch column case column day return scheduler events row get formated date case column event if scheduler events row instanceof scheduler event game day matches scheduler event game day matches game day scheduler event game day matches scheduler events row match match game day get match team if match null return league tools get game day description game day match tools get match description match else should not happen return return client controller get translation scheduler events row get message key default return null
|
returns league element name or interested flag
|
public match get match int row if scheduler events row instanceof scheduler event game day matches scheduler event game day matches game day scheduler event game day matches scheduler events row match match game day get match team if match null return match else return null else return null
|
returns the match of a event
|
public void set game days string game days this game days game days
|
set possible week days for events
|
public calendar get next free game day current day add calendar date 1 while is game day current day current day add calendar date 1 return calendar current day clone
|
returns the next free date for an event
|
public void set auto training boolean auto training this auto training auto training
|
sets the auto training attribute of the user object
|
private boolean is game day calendar current day int day of week current day get calendar day of week switch day of week case calendar monday return game days index of mo 0 case calendar tuesday return game days index of tu 0 case calendar wednesday return game days index of we 0 case calendar thursday return game days index of th 0 case calendar friday return game days index of fr 0 case calendar saturday return game days index of sa 0 case calendar sunday return game days index of su 0 default return true
|
checks if date is allowed in the week
|
public boolean is auto training return auto training
|
gets the auto training attribute of the user object
|
public int get row count return player attributes length
|
returns row count
|
public int get row count return player stats length
|
returns row count
|
public void set start date calendar start start day calendar start clone today calendar start clone
|
sets the start date of this calendar
|
public void add event scheduler event event events add event
|
add new event to the vector
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.