input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set skins skin model skins if skins null this skins null else this skins new skin model skins length system arraycopy skins 0 this skins 0 skins length | method to retrieve the list of available skins |
public void set use best members world boolean flag use best members world flag | method used to set the flag indicating if the best members world should |
public void set use high detail boolean flag use high detail flag | method to set the flag indicating if runescape worlds should be loaded in |
public void set use mozilla boolean flag use mozilla flag | method to set the flag indicating if metis should use the mozilla browser |
public void set upload to imageshack boolean flag upload to imageshack flag | method to set the flag indicating whether or not screen captures should |
public void set upload to photobucket boolean flag upload to photobucket flag | method to set the flag indicating whether or not screen captures should |
public void set use default timer sound boolean flag use default timer sound flag | method used to set the flag indicating if the default sound should be |
private jmenu get jfile menu if j file menu null j file menu new jmenu j file menu set text file j file menu add get jopen menu item return j file menu | this method initializes j file menu |
private jmenu bar get jjmenu bar if j jmenu bar null j jmenu bar new jmenu bar j jmenu bar add get jfile menu return j jmenu bar | this method initializes j jmenu bar |
private jproperty sheet get jproperty sheet if j property sheet null j property sheet new jproperty sheet return j property sheet | this method initializes j table |
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane j scroll pane set viewport view get jproperty sheet return j scroll pane | this method initializes j scroll pane |
private void initialize this set size 420 318 this set jmenu bar get jjmenu bar this set default close operation jframe exit on close this set content pane get jcontent pane this set title jframe | this method initializes this |
public void set text final string text this text text | sets the text |
private void add multi property final property property get collection property get name add property | adds the multi property |
private property collection get collection final string name property collection property collection if property collections contains key name get property collection property collection property collections get name else add new property collection property collection new property collection property collections put name property collection return property collection | gets the collection |
protected void display error message string msg error box set message text msg dimension dlg size error box get preferred size dimension frm size frame get size point loc frame get location error box set location frm size width dlg size width 2 loc x frm size height dlg size height 2 loc y error box pack error box set visible true | p this function displays a message box informing the user of the given |
static public void main string args swing utilities invoke later new runnable public void run set the look and feel try uimanager set look and feel uimanager get system look and feel class name catch exception exception exception print stack trace create the class instance new ixagent wizard class | p this function creates the i x agent wizard application |
protected iterator get iterator collection c return c iterator | returns an iterator thats an instance of the class to be tested |
protected list make empty list return list make empty collection | casts result of make empty collection to a list |
protected list make list collection source return list make collection source | casts result of make collection collection to a list |
private component make buts ok but add mouse listener this cancel but add mouse listener this box but box new box box layout x axis but box add box create glue but box add ok but but box add cancel but but box add box create glue return but box | makes and adds ok and cancel buttons |
public void set object object object throws null pointer exception debug noteln object in selector is object if object null return this current object object this init from object assign focus | sets the object whose components children are to be realted |
protected jcomponent get focus component return null | by default there is no focus component |
public void start object object point point set location point start object | starts an editor for for selecting something for the given object |
public boolean start object object try set object object start return true catch null pointer exception e debug note exception e joption pane show message dialog this selection dialogue cannot start problem in set object return false | as above default location |
protected object process selection object selection collect selection if selection null return null selection not specified object new value check selection selection current object return new value | reads the selected relation and let interested parties know |
private void make panel boolean minimisable if is bordered border border factory create titled border some label this set border border else grid bag constraints gbc new grid bag constraints 0 0 grid bag constraints remainder 1 x y w h 1 0 0 0 weight x y grid bag constraints northwest anchor grid bag constraints none fill new insets 0 4 0 0 0 0 insets and padding name label new jlabel some label this add name label gbc if minimisable make size icons | makes an empty label and adds it to the panel |
public boolean valid file name string name if extensions null extensions size 0 return true else for iterator i extensions iterator i has next if name ends with i next return true return false | checks whether the file name has an extension listed in the frames |
public void make default menu debug noteln jfmt making menu make file menu make edit menu make view menu make tools menu menu bar add box create horizontal glue make help menu adapt default menu | makes a default menubar |
public boolean display url url url boolean result false debug noteln displaying url url to string cursor cursor get cursor debug noteln htmlp setting wait cursor set cursor new cursor cursor wait cursor if set url url result true while current history 0 remove forward stack current history current history 1 history remove current history history add 0 url debug noteln setting cursor back set cursor cursor return result | displays the given url in the text area |
public void hyperlink update hyperlink event e debug noteln htmlpanel got hyperlink update e get description debug noteln type e get event type to string only do things when clicked not interested in enter exit events if e get event type hyperlink event event type activated url current html pane get page if load from url e get url return if display url e get url debug noteln the bad link s description is e get description display url current | gets called when a link is clicked in the current page |
private component make buts ok but add mouse listener this cancel but add mouse listener this more but add mouse listener this box but box new box box layout x axis but box add box create glue but box add ok but but box add cancel but but box add more but but box add box create glue return but box | makes and adds ok and cancel buttons |
public void make help menu help item show item manual item show item about item show item | make sure that if this is overwritten adapt default menu is called |
public void set object object object throws null pointer exception debug noteln object in constraint editor is object if object null return this current object object this init from object assign focus | sets the object whose components children are to be realted |
public void make default menu toolbar make file menu tool menu bar make edit menu tool menu bar make view menu tool menu bar make tools menu tool menu bar menu bar add box create horizontal glue debug noteln jfmt made glue make help menu tool menu bar adapt default menu toolbar | makes a default menubar and toolbar |
public object get object return this current object | gets the object that is to be constrainted uirefinement |
public void adapt default menu toolbar | dummy method that can be overridden by sub classes to adapt the default |
protected boolean current panel changing jpanel old panel jpanel new panel return true | changing current panel from old to new |
public void adapt default menu | dummy method that can be overridden by sub classes to adapt the default |
public void adapt default toolbar | dummy method that can be overridden by sub classes to adapt the default |
protected list get previous list object constraint debug noteln dummy get previous list constraint c in jce return null | gets the previous list of values for the given constraint |
protected string get field object constraint debug noteln dummy get field constraint c in jce return | gets the field that the constraint is kept in |
public jmenu make file menu tool jcomponent parent menu file menu this make menu parent menu file make file menu tool files file menu make options menu tool file menu make file menu tool exits file menu return file menu | makes a default file menu and toolbar buttons |
public void add panel jpanel panel string name string tttext debug noteln adding panel name panel set name name panel set tool tip text tttext panels add panel if panel style equals tabbed tabbed pane remove change listener this is adjusting true if tabbed pane null tabbed pane add tab name null panel tttext is adjusting false tabbed pane add change listener this else if panel style equals card if cards panel null cards panel add panel panel name if current panel null set current panel panel | adds a panel to the set of panels that can be displayed |
public void make file menu tool files jmenu file menu new item show open item show save item show save as item show file menu add separator | makes default file new open save save as menu items and toolbar buttons |
public void remove all panels panels clear if panel style equals tabbed is adjusting true if tabbed pane null tabbed pane remove all is adjusting false else if panel style equals card if cards panel null cards panel remove all panels set current panel null | removes all panels from the frame |
public void make file menu tool exits jmenu file menu file menu add separator close item show exit item show | makes default close exit menu options and and toolbar buttons |
public jmenu make options menu tool jcomponent parent menu make options menu return options menu | makes a default options menu and toolbar buttons |
public void start object object try original null set object object start catch null pointer exception e debug note exception e joption pane show message dialog this constraint editor cannot start e get message | as above default location |
public jmenu make edit menu tool jcomponent parent menu edit menu this make menu parent menu edit make edit menu tool bar add separator cut item show button copy item show button paste item show button return edit menu | makes a default edit menu and toolbar buttons |
public void start object object object original point point set location point start object original | starts an editor for for editing the given specification of |
public jmenu make view menu tool jcomponent parent menu view menu make menu parent menu view return view menu | makes a default view menu and toolbar buttons |
public void start object object object original debug noteln and original original try this original null set object object set original original set from object original more but set enabled false start catch exception e debug note exception e joption pane show message dialog this constraint editor cannot start e get message | as above default location |
public jmenu make tools menu tool jcomponent parent menu tools menu make menu parent menu tools return tools menu | makes a default tools menu and toolbar buttons |
public jmenu make help menu tool jcomponent parent menu make help menu tool bar add separator help item show button manual item show button about item show button return help menu | makes a default help menu and toolbar buttons |
public void make default menu toolbar super make default menu toolbar makes file edit view help make style menu options menu if view menu get item count 0 view menu add separator make windows menu view menu adapt default menu toolbar | makes a default menubar and toolbar |
protected boolean process constraint object constraint collect constraint if constraint null return false constraint not specified debug noteln jce made constraint constraint debug noteln original is original object new value note new value constraint if this constraint listeners null return true for int i 0 i this constraint listeners size i jconstraint listener l jconstraint listener this constraint listeners get i l got constraint this this current object new value return true | reads the selected relation and let interested parties know |
public void set label string label if is bordered border set title label else name label set text label | sets the panels label |
public jmenu make menu jcomponent parent string label jmenu menu new javax swing jmenu label menu set action command label menu set mnemonic int label char at 0 parent add menu return menu | makes a menu and adds it to the given menu component |
public jcomponent get item component return this item component | gets the component of the panel |
public jmenu make windows menu jcomponent parent menu return make windows menu parent menu windows | makes a default windows menu and no toolbar buttons |
public jmenu make windows menu jcomponent parent menu string title windows menu make menu parent menu title fill windows menu return windows menu | as above but with the given string as the menu title |
public void fill windows menu windows menu set enabled false button group bg new button group ixtool item item jradio button menu item rb for int i 0 i panels size i jpanel panel jpanel panels get i string name panel get name item new ixtool item windows menu this name name switch to name panel rb item make radio item bg add rb item show item rb make radio menu item windows menu name name bg add rb windows menu set enabled true | makes a single selection radio menu windows with the names of |
public void set enabled boolean is editable if but panel null this but panel set enabled is editable if item component null item component set enabled is editable | makes the item not editable and enables disables the buttons |
public void item state changed item event event if cards panel is adjusting return string panel name string event get item this update current panel panel name | listens to changes in which panel is selected in the cards panel |
public void minimise old dim get preferred size if scroll pan null scroll pan set visible false else item component set visible false if but panel null but panel set visible false min but set visible false demin but set visible true advise minimise set preferred size new dimension int old dim get width name label get height revalidate adjust min parent get parent | minimises the component and the rest of the editor |
public void save to file file file uiutil not implemented this saving to file | overwrite this with actual saving |
public void open file file file uiutil not implemented this opening files | overwrite this with actual opening |
public void set model table model model super set model model debug noteln ixtt got model of class model get class try abstract tree table model model add tree table model listener this debug noteln ixtt got good model for this this catch exception e | sets the model which must ba an abstract tree table model |
private void set tree type renderer debug noteln ixtt setting neutral icon renderer jtable header header get table header this set default renderer image icon class new neutral icon renderer false header | neutral icon renderer used for tree icon column perhaps others |
public void tree structure changed | bold making is now in abs ttmodel |
public void node structure changed ixtree table node node | bold making is now in abs ttmodel |
public void set data object data rows clear clear marks if data null for int i 0 i data length i rows add data i fire table data changed | sets the tables rows to the given data objects and notifies listeners |
public void add data int row object data if rows contains data rows add row data fire table data changed | adds the given data object to the tables rows at the given |
public void remove data object data int row get object row data unmark row row if rows remove data fire table data changed | removes the given data object from the tables rows and notifies |
public void replace data object old data object new data int row get object row old data if 0 row row get row count boolean marked is marked row remember marking unmark row row rows remove old data if rows contains new data row get object row new data else rows add row new data if marked mark row row fire table data changed | replaces the given old data object with the new given one and notifies |
public void clear data rows clear clear marks fire table data changed | removes all data objects from the tables rows and notifies listeners |
public object get row object int row index if row index 0 return null else return rows get row index | gets the object that is in the given row |
public void fire tree structure changed debug noteln attm tree structure changed for iterator i tree listeners iterator i has next tree table structure listener ttsl tree table structure listener i next ttsl tree structure changed | the tree lost gained nodes more drastic than node structure changed |
public int get object row object object if object null rows null return 1 return rows index of object | gets the row index of the given object |
public void fire node structure changed ixtree table node node if node null return debug noteln attm node structure changed node to debug for iterator i tree listeners iterator i has next tree table structure listener ttsl tree table structure listener i next ttsl node structure changed node | a node gained or lost children |
public void set data collection the nodes debug noteln abstract ttm setting table data clear data for iterator i the nodes iterator i has next object node i next debug noteln doing node node tree node e node make ixtree table node node if e node null debug noteln warning tree table is ignoring node node to string debug noteln it is of class node get class get name debug noteln and not a valid tree node else if rows contains e node rows add e node nodes add e node fire table data changed | sets the tables rows to the given tree node objects and notifies |
public class get column class int index class col class null try col class class column classes get index catch index out of bounds exception e col class super get column class index return col class | jtable required table model function default is object |
public boolean has original object object if originals null originals values null originals values contains object return true else return false | checks whether the given object has an original base object |
public void set data object the nodes set data arrays as list the nodes | sets the tables rows to the given tree node objects and notifies |
public void set column names string field names column names new array list arrays as list field names if rows markable column names add 0 | sets the column titles to be used in the table |
public linked list get originals if originals null originals key set null return null else return new linked list originals key set | gets all original objects from the originals map |
public void set column classes class field classes column classes new array list arrays as list field classes if rows markable column classes add 0 boolean class | sets the column classes of the table |
public void set column fields class object class string field names for int i 0 i field names length i string field name field names i try field field object class get field field name string title uiutil to capitalised field name class field class field get type column fields add field name column names add title column classes add field class catch exception e debug noteln aixtm problem setting column field field name debug note exception e if rows markable column fields add 0 row marked column classes add 0 boolean class column names add 0 | sets the fields to be used as columns in the table |
public object get original object object if object null originals values null originals values contains object for iterator i originals key set iterator i has next object original i next if object equals originals get original return original return null | finds the original version of the given object in the originals map |
public void set cell int row int column this row row this column column | remember which table cell is being edited |
public jmenu item add four field four field jmenu item jmi super add four field if jmi null font current jmi get font jmi set font current derive font current plain return jmi | same as that for ixpopuo menu but uses plain font not bold |
public void set original object own object original if original null originals put original own | finds the original version of the given object in the originals map |
public void add data object data debug noteln abstract ttm adding table data data if data null debug noteln abstract ttm cannot add null data to table new throwable print stack trace else tree node t node get tree node data ixtree table node e node null if t node null e node ixtree table node t node else e node make ixtree table node data if rows contains e node rows add e node nodes add e node fire table data changed fire node structure changed ixtree table node e node get parent fire tree structure changed | adds the given tree node object to the tables rows and notifies listeners |
public boolean is empty list objects get all constructs return objects null objects is empty | checks whether there are objects in the set |
public void remove data object data debug noteln abstract ttm removing table data remove data node ixtree table node get tree node data | removes the given tree node object from the tables rows including its |
public void ensure construct object object if added edited or noted as having original nothing to do debug noteln ab se ensuring construct object if added contains object return if edited contains object return list origs get originals if origs null origs remove all removed debug noteln ased ensure this debug noteln removed size removed size debug noteln originals without removed size origs size if origs null origs contains object return if originals values null originals values contains object return add unless empty or undefined if is empty object is undefined object add construct object | adds a given construct to the set unless it is already there or |
public void remove data node ixtree table node e node if e node null return boolean change remove child data e node if rows contains e node rows remove e node nodes remove e node remove tree node e node node fire node structure changed ixtree table node e node get parent change true if change fire table data changed else debug noteln attm remove node no change to note | completely forget about the node and its children |
private object get name clash object object object return get name clash object object get name object | determines whether the given object has a name that is already in |
protected void derive column fields if object class null return class fields array list fields new array list arrays as list object class get fields iterator e fields iterator while e has next field field field e next if use field field column fields add field get name column names add uiutil to capitalised field get name if rows markable column fields add 0 row marked column classes add 0 boolean class column names add 0 | collects usable fields from the object class |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.