input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void mark saved now last save point get history cursor clear to buffer | mark the cursor location as the last saved point and clear the undo |
public void refresh assert null get prefs if null get object explicit properties exp explicit properties get inner list get 0 exp clear iterator descs get all describers iterator while descs has next resource r resource descs next get explicit properties for r refresh children | refreshes the extended attributes but nothing else |
public void add history change listener change listener cl history listeners add change listener class cl | add a listener for history change events |
public collection get all describers if get object null return collections empty list return get all describers for get object get class | get all the describer resources for this bean type |
private set get all describers for class c if null c null get prefs return new hash set get prefs enter critical section model lock read try get describers for superclass set l get all describers for c get superclass get describers for implemented interfaces class interfaces c get interfaces for int i 0 i interfaces length i l add all get all describers for interfaces i res iterator iter get prefs list subjects with property props describes c get name while iter has next l add iter next return l finally get prefs leave critical section | gets all rdf resources that are declared as property describers for the |
public void remove history change listener change listener cl history listeners remove change listener class cl | remove the given change listener if it is currently attached |
public int hash code return hash obj name hash obj getter hash obj setter | hashes based on the name getter and setter |
public boolean equals object o if this o return true else if o instanceof property adapter property adapter that property adapter o return same obj name that name same obj getter that getter same obj setter that setter else return false | tests to see that the other property has the same |
public void fire history change event object l history listeners get listener list change event e null for int i l length 2 i 0 i 2 if l i change listener class if e null e new change event this change listener l i 1 state changed e | fire a history change event to all attached listeners |
public void set prefs prefs manager manager prefs manager | sets the associated application preferences |
public void set props list props this props props | sets the properties to the given list |
public void set object object o bean o | set the instance object that this is looking at |
private my table model get table model return my table model get table get model | gets the data model associated with the property sheet |
public enhanced table get table return enhanced table get viewport get view | gets the table contained within the property sheet |
public boolean equals object o if this o return true else if o instanceof instance property descriptor explicit property descriptor that explicit property descriptor o return proxy that proxy proxy null proxy equals that proxy else return false | tests to see that this and the other object are both |
public int hash code return proxy hash code | computes the hash code on the proxy object |
public instance property descriptor get row int r return instance property descriptor props get r | gets the property descriptor for the row |
protected void set proxy property interfacer proxy this proxy proxy | set the interfacer proxy |
private void add user prefs listener add listener new model listener public void change event model event event logger config load user prefs change runnable r new runnable public void run try load user prefs catch preference exception px logger log level warning error while changing user prefs px add leftover action r public selector get selector return user directory selector | adds a listener to the user directory property so when a user directory |
public boolean is cell editable int row index int column index instance property descriptor row get row row index if column index 0 return false else if column index 1 return row is settable props get object else throw new index out of bounds exception not a valid cell row index x column index | determines if the value at a cell is editable |
public object get value at int row index int column index instance property descriptor row get row row index if column index 0 return row get name else if column index 1 return row else throw new index out of bounds exception not a valid cell row index x column index | gets the appropriate property name or property value |
public boolean equals object obj return props equals obj | tests to see that the property lists are equal |
public object apply getter object bean return proxy get value bean | get the value from the bean instance |
public string get column name int column index if column index 0 return property else if column index 1 return value else throw new index out of bounds exception not a valid column column index | either property or value |
public void apply setter object bean object to value proxy set value bean to value | set the value of this property on the given bean |
public class get column class int column index if column index 0 return string class else if column index 1 return instance property descriptor class else throw new index out of bounds exception not a valid column column index | class corresponding to the column |
public void set value at object value int row index int column index if column index 1 instance property descriptor row get row row index if row is settable props get object row apply setter props get object value | sets the appropriate property value if possible |
public boolean is settable object bean return proxy null proxy is writable on bean proxy is writable | checks to see if the property is currently settable on the |
public property interfacer get interfacer return proxy | gets the property functor |
private static final class dfscolor and number static final int white 0 static final int gray 1 static final int black 2 int color white int d 1 int f 1 object node null | auxiliary structure for the depth first search |
public void set interfacer property interfacer functor proxy functor | sets the property functor |
public class get bean type return bean type | gets the class of the bean |
public string get name return display name | gets the display name of the property |
public prefs manager get prefs return props get prefs | gets the preference manager associated with this property |
public void set prefs prefs manager manager props set prefs manager | sets the preference manager associated with this property |
public string to string return name binds generator to bean | returns a short debug print friendly description |
public int compare object a object b instance property descriptor a instance property descriptor a instance property descriptor b instance property descriptor b return a get name compare to b get name | sort the descriptors by their display name using the current |
public void set object object o if o props get object if get table is editing get table editing stopped new change event this get table editing canceled new change event this props set object o get table model fire table structure changed get table set row height to maximum preferred height | set the subject bean to check for properties |
public object get object return props get object | gets the bound subject bean |
public void refresh props refresh get table model fire table data changed | refresh the properties from the bound object |
public boolean is empty return used hotkeys is empty | tests to see if no hotkeys are bound |
public void add listener model listener ml ll add ml selector s ml get selector if s null all listeners add ml else if s get subject null subject listeners put s get subject ml else if s get predicate null predicate listeners put s get predicate ml else if s get object null object listeners put s get object ml else all listeners add ml | adds a listener for changes to the triplestore |
private boolean attempt binding hotkey binding binding object bean if binding bean equals bean int id action event action performed string command binding generator get command action event e new action event this id command binding generator action performed e return binding generator is consumer return false | tries binding the given biding on the bean |
public void remove listener model listener ml ll remove ml selector s ml get selector if s null all listeners remove ml else if s get subject null subject listeners remove ml else if s get predicate null predicate listeners remove ml else if s get object null object listeners remove ml else all listeners remove ml | removes a listener for changes to the triplestore |
public boolean attempt on all collection bindings object bean iterator biter bindings iterator while biter has next if attempt binding hotkey binding biter next bean return true return false | tries all the bindings on the given bean |
public string to string if reason systemiofailed return super to string else return super to string n system error msg | converts exception to string |
public boolean atend return eof | check eof of file flag |
public void add leftover action runnable r synchronized this if notifying listeners false crit sections 0 r run else leftover actions add r | adds an action to be executed after the current event |
public int sgetbits int n throws fl ioexception int x snextbits n cur bit n total bits n return x | get next n bits |
public boolean post process key event key event e if e is consumed logger fine consumed before post event2stroke e return false return apply e this post bindings | use the key as a hotkey if possible |
public object get bean string uri try return rdf node to value prefs get resource uri catch preference exception e throw new illegal argument exception error while trying to find bean uri | gets a non anonymous application bean by uri |
public options manager get options manager return options manager | gets the associated command line options manager bean |
public object rdf node to value rdfnode prop val throws preference exception return rdf node to value prop val null | gets the java value represented by the rdfnode |
public double nextdouble throws fl ioexception if cur bit 64 buf len 3 fill buf long l sgetbits 32 l 32 int i sgetbits 32 int j 0 if i 0 j i mask 31 l j if i 0 l long sign cur bit 64 total bits 64 return double long bits to double l | get next double value from bistream |
public float putfloat float f throws fl ioexception putbits float float to int bits f 32 return f | put float value 32 bits into bistream |
public double putdouble double d throws fl ioexception long l double double to long bits d int i int l 32 putbits i 32 i int l 0x00000000 ffffffff putbits i 32 return d | put a double value into bitstream |
public void change user final model to remove final model to add add leftover action new runnable public void run change model user to remove to add serialize user prefs | changes the user preferences model |
public object load bean from resource resource r throws preference exception if r equals lal core if r has property lal class name statement stmt r get property lal class name string class name stmt get string return load object from name class name else if r has property lal property name return rdf node to value r else throw new preference exception invalid bean bean must have a class name or be specified as the property of another bean else return this | load a bean from its resource |
public void set core app loader core this core core | sets the core |
public string to html string buffer sb new string buffer sb append h1 hotkey bindings h1 n boolean some found false if dispatch bindings is empty sb append h2 dispatch bindings h2 n dispatch bindings to html sb some found true if post bindings is empty sb append h2 post bindings h2 n post bindings to html sb some found true if some found sb append p no hotkeys are bound p return sb to string | gets an html listing of all the bindings |
public object get loaded bean for resource resource r return resources get r | gets an application bean that has already been loaded |
public void change temporary final model to remove final model to add add leftover action new runnable public void run change model temporary to remove to add | change data in the temporary triplestore |
public resource get resource for bean object bean iterator entries resources entry set iterator while entries has next map entry curr map entry entries next if bean equals curr get value return resource curr get key return null | gets the resource for the given application bean if it has been loaded |
public string get label for resource bean r string s prefs get localized string bean r rdfs label return s | gets the localized label for the resource |
public void flushbits throws fl ioexception flush buf if cur bit 0 return try out write buf 0 1 catch ioexception e throw new fl ioexception fl ioexception systemiofailed e to string buf 0 0 cur bit 0 now only the left over bits | flush all content in the buffer |
private void flush buf throws fl ioexception int l cur bit 3 size of data in the buffer try out write buf 0 l file output catch ioexception e throw new fl ioexception fl ioexception systemiofailed e to string cur bit 0x7 keep left over bits only are there any left over bits if cur bit 0 buf 0 buf l | flush the buffer excluding the left over bits |
public boolean set properties uri prop id properties values throw new unsupported operation exception | if possible saves the properties to the users |
public video decoder get video decoder return video decoder | gets the video decoder for this stream |
public void curr file changed viper mediator change event e sourcefile combo model model get sourcefile combo model model fire contents changed model 1 1 reset enabled actions | the chosen file has changed |
public void shutdown prefs serialize user prefs | exit the system executing the appropriate shut down actions |
public boolean reset viper data v get viper data if v null no sourcefile selected display empty if this descs is empty return true this descs clear else switched sourcefile reload all descriptors this descs clear iterator iter get mediator get viper data get sourcefiles while iter has next object o iter next descs add o resort descs return false | makes sure that the currently displayed list of descriptors is in |
public action listener get expand all action listener return wrapped chronicle get expand all action listener | gets an action that expands all the nodes in the timeline |
public action listener get fit chronicle action listener return wrapped chronicle get fit chronicle action listener | gets an action that resizes the timeline to fit the window |
public action listener get exit listener return new action listener public void action performed action event arg0 try to shutdown | gets a listener for the exit action |
private instant interval get interval for instant i instant s instant e if drag type drag left end s i e instant start span get end instant previous else s start span get start instant e i if s compare to e 0 i s s e e i return instant interval start span change s e next | gets the new interval corresponding to the drag event so far |
public action get remove all marks action listener if remove all marks action listener null remove all marks action listener new remove all marks action return remove all marks action listener | gets an action that removes all the user set marks on the timeline |
public void set mediator viper view mediator mediator if this mediator null this mediator remove viper mediator change listener vmcl this mediator mediator model reset model fire table structure changed reset button and action enablings if this mediator null this mediator add viper mediator change listener vmcl | sets the mediator |
public check if expanded tree path t assert t get last path component instanceof config this t t | creates a new check for the config in the |
public viper view mediator get mediator return model get mediator | get the viper view mediator |
public void set mediator viper view mediator mediator model set mediator mediator | sets the view mediator |
public property sheet get sheet return sheet | gets the current property sheet that is used to |
public void set sheet property sheet sheet this sheet sheet | sets the property sheet to keep updated |
public void curr file changed viper mediator change event e | the chosen file has changed |
public action listener get new config action listener return new config listener | an action listener for a create new descriptor type action |
public void add notify super add notify if last window null last window remove window focus listener stop editing on focus lost else component l this last window null do l l get parent while l null l instanceof window if l instanceof window last window window l last window add window focus listener stop editing on focus lost | called by containers to tell them that they have |
public void set attr config attr config config set object config | set the attribute type |
public action listener get new attr config action listener return new attr config listener | returns an action listener that creates a |
public action listener get delete action listener return delete action listener | gets an action listener for events that delete |
public int clip file string new file int begin frame int end frame return mt clip file new file begin frame 1 end frame 1 | clips the current file guarenteeing that all from begin frame |
private boolean wait for state int state synchronized wait sync while jmf player get state state state transition ok try wait sync wait catch interrupted exception e logger fine interrupted jmf decoder while waiting return state transition ok | block until the processor has transitioned to the given state |
public string get image type instant i return empty frame | always returns empty |
public void set prefs prefs manager prefs this prefs prefs | sets the prefs |
protected void mark access hits last access time system current time millis | implementors should invoke this whenever the get method is called |
protected void mark update version last update time system current time millis | implementors should invoke this whenever the value is updated |
public actionator get action for resource resource r if resources contains key r object o resources get r if o instanceof actionator return actionator o throw new illegal argument exception not an action r else actionator a try a actionator parse action this r resources put r a return a catch preference exception e logger log level severe error while parsing action r e throw new illegal argument exception e get localized message | assuming code r code describes an action gets the action it |
public attempt to perform action get veto close action return veto close action | gets the action that is currently invoked when the user tries to close |
public rational get pixel aspect ratio return new rational 1 | returns the default pixel aspect ratio of one |
public string get image type instant i return i frame | the default implementation says that every frame is an i frame |
public void set element media element element | since real data players should know their own metadata the |
public image peek thumbnail k key return thumbnails get key | returns the thumbnail specified by the key if still in archive |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.