input
stringlengths
10
828
output
stringlengths
5
107
public void invite session data user replicated object client client context get replicated object client replication manager get instance start sharing user client system err println sending invitation user embedded object descriptor desc path get last embedded object descriptor user put new string map item remote name new string map item desc get object id path get string false replication manager get instance stop sharing user client
invite the given user to the windows conference
public boolean is user initiated boolean result user initiated user initiated true force conf manager to reset us next time return result
returns true if the last idle relevant event generated by
public void deactivate frame source for enumeration e cores elements e has more elements component view frame core e next element clear osd
called when the owner of this frame source is deactivated
public void set map component component c synchronized map lock map c if tabs null int count tabs get tab count if count 2 tabs set component at 2 map else tabs add tab map map tabs set selected component map tabs revalidate this isn t sufficient under 1 4 tabs grab focus this seems to be necessary under 1 3 otherwise the new map doesn t become visible until the user clicks another tab and then comes back to the map c set visible true c repaint
sets the map component
public string get starting path return starting path
returns the path to the object that should be shown at startup
public void set starting path string starting path object old this starting path this starting path starting path fire property change starting path old starting path
sets the path to the object that should be shown at startup
public string get message text return msg text
message text to be broadcast
public void set message text string msg text synchronized map lock this msg text msg text if msg null msg set text msg text jpanel win get content pane revalidate
sets the text to be displayed in the scrolling message box
private void update message text component view cv content get component view if cv instanceof annotation space component view annotation space component view cv set message text annotation space set object get message text
updates the annotation space component views scrolling message based
public object record get object record object id id need to make this faster maybe use a hashtable object record rec null for int i 0 i get size rec null i object record tmp object record get item at i if tmp get object id null tmp get object id equals id rec tmp return rec
returns an object record for the object with given object id
public void set selected index int i if i selection int old selection selection i fire property change selected index new integer old new integer selection
sets the index of the current selection within the list
public enumeration get embedded object descriptors return new shared list enumeration this
returns an enumeration of embedded object descriptors representing
public embedded object descriptor get embedded object descriptor string name object record rec null for int i 0 i get size rec null i object record tmp object record get item at i if tmp get name null tmp get name equals name rec tmp return rec
returns the embedded object descriptor with the given name
public embedded object descriptor get embedded object descriptor by id string uid object record rec null for int i 0 i get size rec null i object record tmp object record get item at i if tmp get unique id null tmp get unique id equals uid rec tmp return rec
returns the embedded object descriptor for the objected with the
protected void fire property change string prop int old int val if old val fire property change prop new integer old new integer val
utility method for firing integer prop changes
protected void add contents list jlist list add new jscroll pane list border layout west
may be overridden to add the contents list at an appropriate place
protected string get selection type return context get property select prop select list
may be overridden to return one of the select constants
protected component view source create component view source return context get component view source
returns a component view source to be passed to the component view panel
public selected object helper get selected object helper return selected object helper
returns the selected object helper
public component view get component view component view cv null if layers null cv layers get top component view else if panel null cv panel get component view return cv
returns the current component view
protected void check palette drawing component view dcv drawing palette dp dcv get drawing palette if dp instanceof standard drawing palette urltool url tool standard drawing palette dp get urltool if url tool null url tool set createable name space url tool set createable class annotation space class
checks the palette for the given drawing component view updating
public object get request tag object tag null if panel null tag panel get request tag return tag
returns the request tag used by the component view panel to request
public void menu deselected menu event evt this remove all
invoked when the prototype selection menu is deselected
public void menu canceled menu event evt this remove all
invoked when the prototype selection menu is canceled
public void set descriptors embedded object descriptor category embedded object descriptor prototype category desc category prototype desc prototype
sets the descriptors for the category and protoype the
public embedded object descriptor get category desc return category desc
returns the descriptor for the category associated with the
protected boolean get replicate item property changes return true
may be overridden by subclasses to return true if
public dimension get preferred size dimension screen toolkit get default toolkit get screen size screen height 50 dimension panel annotation space component view panel size screen width math min screen width panel width screen height math min screen height panel height return screen
make the preferred size roughly equal to the screen size
public boolean is leading return leading
returns true if were leading the selection i
public boolean is following return following
returns true if were following the shared selection
protected image get image object record rec drag gesture event evt component c component evt get component image img null if c instanceof jlist list cell renderer lcr jlist c get cell renderer component r lcr get list cell renderer component jlist c rec 0 false false img get image r return img
may be overriden by subclasses to return an image to show when
public static class class filter implements modification filter classes we don t do auto version for protected vector classes null public class filter vector classes this classes classes public class filter string cl this classes new vector cl length for int i 0 i cl length i classes add element cl i should return true if it is ok to create a new version public boolean check component context context object record current descriptor object record last version object id id current descriptor get object id return classes contains id get classname
filter for disabling auto creation on specific classes
protected object id create shared file return null
file upload is disabled completely
public void add auto version filter modification filter f if filters contains f filters add element f
adds a filter to the listener
protected image get image object record rec drag gesture event evt image img null component c evt get component if c instanceof list box component r lcr get list cell renderer component dummy list rec 0 false false img get image r return img
overriden to return a drag image
public void remove auto version filter modification filter f filters remove element f
removes a filter from the listener
public void add timestamp filter modification filter f if timestamp filters contains f timestamp filters add element f
adds a timestamp filter to the listener
public void remove timestamp filter modification filter f timestamp filters remove element f
removes a timestamp filter from the listener
public void activate super activate replicated object client client context get replicated object client if client get user get name starts with guest if add item null do we need this anymore chg add item set enabled true add item set enabled false edu vt cs collab bridge relation version multiplexer vm new edu vt cs collab bridge relation version multiplexer context vm add object set embedded object set object system err println vm dump vm set reversed true system err println vm dump vm set reversed false system err println
on activate we disable rename delete and add if the user is
public void add deep copy filter modification filter f if deep copy filters contains f deep copy filters add element f
adds a deep copy filter to the listener
public void remove deep copy filter modification filter f deep copy filters remove element f
removes a deep copy filter from the listener
protected boolean get user can modify replicated object client client context get replicated object client return client get user get name starts with guest
true if the user can modify assuming they have permissions
public void element added list event evt object record rec object record evt get object if filter include rec reset fire element added new list event this rec get index rec
invoked when an element is added to the end of the list
public void element removed list event evt object record rec object record evt get object if filter include rec int idx get filtered index evt get index reset fire element removed new list event this rec idx
invoked when an element is removed from the list
public void element inserted list event evt object record rec object record evt get object if filter include rec reset fire element inserted new list event this rec get index rec
invoked when an element is inserted into the list
public void element replaced list event evt object record rec object record evt get object if filter include rec reset fire element replaced new list event this rec get index rec
invoked when an element in the list is replaced
public void load menu items input stream in throws ioexception buffered reader r new buffered reader new input stream reader in string line r read line while line null line line trim int idx line index of if idx 1 line line substring 0 idx idx line index of if idx 1 add menu item line substring 0 idx line substring idx 1 line length line r read line
loads a set of name class items from a stream
public boolean include object record rec boolean include false if subclasses are lists class cl object class try cl class for name rec get object id get classname catch throwable t t print stack trace include list class is assignable from cl else include rec get object id get classname equals list class get name return include return rec get object id get classname equals list class
should return true if the filtered list should contain the
public object record list tree node get child string name object record list tree node node null object record rec object record get object record list get embedded object descriptor name if rec null node get child rec return node
returns the child with the given name
public object record list tree node get child object record rec object record list tree node child null synchronized children child object record list tree node children get rec if child null child new object record list tree node rec list class context this check for empty lists subclasses are lists children put rec child rec add property change listener this return child
returns the child for the given object record returning one from
protected shared list get new shared list return new object record list
subclasses should override this to return an empty instance of
protected void read item storage handler utility string item item object obj if item name equals ignore case selected index object record list obj set selected index integer parse int item value
subclasses should override this to initialize from values written
public void attach standard drawing d for figure enumeration e d figures e has more elements figure f e next figure if f instanceof general image figure general image figure f set image urlsource url source d add drawing container change listener this
sets the image urlsource for any existing image figures and listens
public dimension get preferred size rectangle r figure drawing display box return new dimension r x r width r y r height
returns our preferred size based on the size of the drawing
public void detach standard drawing d d remove drawing container change listener this for figure enumeration e d figures e has more elements figure f e next figure if f instanceof general image figure general image figure gif general image figure f if gif get image urlsource url source gif set image urlsource null
unsets the image urlsource for any existing image figures and detaches
public void figure added drawing container change event e figure f e get figure if f instanceof general image figure general image figure f set image urlsource url source
sent when a figure is added
public embedded object path get drawing path return drawing path
returns the path to the drawing that were attached to
public void figure removed drawing container change event e figure f e get figure if f instanceof general image figure general image figure f set image urlsource null
sent when a figure is removed
public void set current location navigable location path if path current object old current current path listeners fire property change current location old current
sets the path to the current location
protected tool create drag tracker drawing view view figure f tool t null if f get attribute shared drawing hidden attribute null t new drag tracker view f public void mouse drag mouse event e int x int y no op else t super create drag tracker view f return t
use no op tool on hidden figures
protected boolean get user can modify return true
true if the user can modify assuming they have permissions
protected tool create handle tracker drawing view view handle h tool t null if h owner get attribute shared drawing hidden attribute null t new no op tool else t super create handle tracker view h return t
use no op tool on hidden figures
protected object id create shared file throws ioexception replicated object client client context get replicated object client delegate initial permissions to the parent set permissions perms delegated permissions create delegated permissions client get object id get set client object obj client get new object shared file class perms replication manager get instance start sharing obj client return client get object id obj
constructs a shared file object returning its object id
public void save fig set image url url get text embedded object descriptor desc embedded object descriptor objects get selected item if from url is selected desc null fig set attribute embedded object path image urlsource object uid attribute null fig set attribute embedded object path image urlsource object name attribute null else fig set attribute embedded object path image urlsource object uid attribute desc get unique id fig set attribute embedded object path image urlsource object name attribute desc get name
saves the state of the panel to the values in the panel
public dimension get preferred size dimension screen toolkit get default toolkit get screen size screen height 50 return screen
make the preferred size roughly equal to the screen size
public void set createable name string name this createable name name
sets the name of the createable thing in the dialog
public void set createable class class cl this createable class cl
sets the class of the createable thing in the dialog
public void set createable name string name this createable name name new object set label new createable name named
sets the name of the createable thing in the dialog
public void deactivate super deactivate system out println in general text urltool deactivate if created figure null urllink panel create new page for figure context created figure path text holder created figure get text
terminates the editing of a text figure
public int hash code int hc 0 if uid null hc uid hash code if id null hc id hash code if name null hc name hash code return hc
hashcode is problematic when renaming is allowed
public void figure added drawing container change event e system out println a figure was added
received when a figure is added
public void figure changed figure change event fc if fc instanceof general figure change event general figure change event fce general figure change event fc if fce get type of change equals attribute changed string name fce get name object val fce get value if name equals default palette attr set drawing palette get drawing palette string val
update the palette when then palette attribute changes
public int compare to object o if o instanceof embedded object descriptor try return get name to lower case locale compare to embedded object descriptor o get name to lower case locale catch throwable t return 1
for the comparable interface
public string get abstract return blog entry state get state abstract text
returns the abstract for the entry
protected void add text pane jtext pane pane text holder add new jscroll pane pane border layout center
may be overriden to add the text pane at an appropriate location
public void set text string content object old this content this content content fire property change text old content
sets the message text
protected void add last editor label jlabel last editor text holder add last editor border layout north
may be overriden by subclasses to attach the label with the last
public void set abstract string abstract text blog entry state bes blog entry state get state object old bes abstract text bes abstract text abstract text if listeners null listeners fire property change abstract old abstract text
sets the abstract for the entry
public int get link depth return get config link depth
returns the depth for which we show links for nodes
public string get category return blog entry state get state category
returns the category for the entry
protected void remove last editor label jlabel last editor text holder remove last editor
may be overriden by subclasses to dettach the label with the last
public void set category string category blog entry state bes blog entry state get state object old bes category bes category category if listeners null listeners fire property change category old category
sets the category for the entry
public string get style sheet return get config style sheet
returns the depth for which we show full for nodes
public date get publication date return blog entry state get state publication date
returns the publication date for the entry
public void set publication date date publication date blog entry state bes blog entry state get state object old bes publication date bes publication date publication date if listeners null listeners fire property change publication date old publication date
sets the publication date for the entry
public int get reply depth return get config reply depth
returns the depth for which we show full for nodes
public string get author return blog entry state get state author
returns the author for the entry or null if last modifying user
public void set author string author blog entry state bes blog entry state get state object old bes author bes author author if listeners null listeners fire property change author old author
sets the author for the entry
public int get text depth return get config text depth
returns the depth for which we show full for nodes
public boolean get hide header when embedded return get config hide header when embedded
returns true if we hide header information when embedding a web view
public boolean get logout after web post return get config logout after web post
returns true if the user should be automatically logged out after
public void value changed tree selection event evt reset content evt get path
handle change in tree selection
public double of double d int num param return java lang math log d 0 java lang math log d 1
returns log with arbitrary base of d
public double of double d int num param return 0 0
returns the constant i e i regardless of the input
protected void reset chart chart panel remove all chart config cc chart config object chart get chart cc model chart title jfree chart panel cp new jfree chart panel chart chart panel add cp border layout center chart panel revalidate
resets the chart based on the current model
public double of double d int num param return 1 0
returns the constant i 1
public double of double d int num param return java lang math log d 0 java lang math log 10
returns log base 10 of d
public boolean accept num param int num param return num param 3
returns true only for 3 parameters false otherwise
protected table model get table model return table model object
may be overriden to return a table model based on the cvs object
public object get raw value at int row int col string list item key new string list item row col object val get key if val null val val to string return val
returns the raw un evaluated contents of the cell