input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void remove property change listener property change listener listener m file remove property change listener listener | removes a java beans style property change listener |
public icon get icon return m section get icon | returns an icon that the section container can display to indicate the |
public void set icon icon icon m section set icon icon | sets the icon for the type state of the section |
public boolean is renamable return m section is renamable | returns true if the section can be renamed |
public replicated object client get roc return m roc | returns the replicated object client |
public boolean is deletable return m section is deletable | returns true if the section can be deleted |
public boolean is access editable return m section is access editable | returns true if the access permissions can be edited |
public icon get icon return new image icon | returns an icon that the section container can display to indicate the |
public void collapse m section collapse | called when the section container needs to free resources |
public boolean is collapsed return m section is collapsed | should return true if the section is currently in a collapsed state |
public void activate m section activate | called before the sections component as returned by get view is |
public void autosave m section autosave | tells the section to auto save without disturbing the user if |
public component get view return m section get view | returns a component that the section container can use to display the |
public void close m section close | called when the section container ie notebook is being closed |
public void add duplicate at sfsection s int index system out println add duplicate at s index if s null return section mapping sm duplicate smfor s sfsection dup get section sm if sm null dup null m sections insert element at dup index m items insert item at sm index | adds a duplicate of the given sfsection at a specified index |
public void add duplicate sfsection s system out println add duplicate s if s null return section mapping sm duplicate smfor s sfsection dup get section sm if sm null dup null m sections add dup m items add item sm | adds a duplicate of the given sfsection at the end |
public void add section sfsection s system out println add section s if s null return m sections add s section mapping sm get sm s m items add item sm system err println | adds a section and its content to the list |
public void insert section at sfsection s int index system out println insert section at s index size before m items get size if s null return m sections insert element at s index system out println size before get sm m items get size section mapping sm get sm s system out println size after get sm m items get size m items insert item at sm index system out println size after m items get size | inserts a section to a given place in the list |
public void autosave | tells the section to auto save without disturbing the user if |
public string get description return viewer get description | returns a description of the landmark viewer |
public void create if already created show choices else show proxy | method called when proxy is created |
public void undoable edit happened undoable edit event e m undo manager add edit e get edit | adds an undoable edit to the containers undo manager |
public void init add property change listener new property change listener public void property change property change event pce string prop pce get property name if prop equals agenda property string unparsed items get property agenda property agenda assemble unparsed items comment this static call to proxy java proxy set proxy agenda get location unnumbered agenda display agenda | this method listens for changes |
private section button button for section sfsection s for int i 0 i m button list size i section button sbpanel sb section button sbpanel m button list element at i if sb get section button get section s return sb get section button return null | find the button for this section |
public void discard all edits m undo manager discard all edits | clears all edits from the containers undo manager |
private vector assemble string unparsed items unnumbered agenda new vector vector new agenda new vector string item new string for int i 0 i unparsed items length i if unparsed items char at i if unparsed items char at i item item unparsed items substring i i 1 else boolean is checked false if i 1 unparsed items length unparsed items char at i 1 is checked true agenda item agenda item new agenda item item is checked unnumbered agenda add agenda item item new string new agenda number items unnumbered agenda return new agenda | reconstruct assemble the items |
private vector number items vector unnumbered agenda vector numbered agenda new vector for int i 0 i unnumbered agenda size i get the agenda item agenda item item agenda item unnumbered agenda element at i assign the item number integer number new integer i 1 string numbered item number to string item get item numbered agenda add element new agenda item numbered item item is checked return numbered agenda | numbers the agenda items |
private string disassemble vector unnumbered agenda string unparsed items new string for int i 0 i unnumbered agenda size i agenda item item agenda item unnumbered agenda element at i unparsed items unparsed items item get item if item is checked unparsed items unparsed items return unparsed items | deconstruct disassemble the items into a string |
public void init add a listener that will add our ui when other people change the sign add property change listener new property change listener public void property change property change event pce if f null string name pce get property name update our title on name changes if name equals name f set title get name | our init method will be called after weve been constructed and |
private vector add without position string item to be added unnumbered agenda add element new agenda item item to be added return unnumbered agenda | add an agenda item in the end position wasnt specified |
private vector add with position string item to be added int added position if added position 0 added position unnumbered agenda size 1 unnumbered agenda add added position 1 new agenda item item to be added return unnumbered agenda | add an agenda item in the specified position |
private vector delete int deleted position if deleted position 0 deleted position unnumbered agenda size unnumbered agenda remove element at deleted position 1 return unnumbered agenda | delete an agenda item at the specified position |
public void format people entered string people entered get the last name by delimiting by a comma people entered people entered string name new string for int i 0 i people entered length i if people entered char at i name name people entered substring i i 1 else people add name name new string num people people size | format the names entered |
public void init add property change listener new property change listener public void property change property change event pce if model null string name pce get property name update our model on name changes if name equals name model set name get name | our init method will be called after weve been constructed and |
public string authenticate string user id string password return generic character get local character get user identifier | authenticates the given user with the given password returning |
public user get user string user id return new moosburg user user id | returns a user object with profile data for the given user or |
public group get group string group id return null | returns a group object with profile data for the given group or |
public vector get all users return new vector 0 | returns a vector of user objects representing all users in the |
public vector get all groups return new vector | returns a vector of group objects representing all groups in the |
public string get admin group name return admin | return the name of the super user group |
public string get real name return id | returns the real full name of the user |
public void show if f null f new jframe hello world add a jlabel with hello world to the center f get content pane set layout new border layout f get content pane add new jlabel hello world jlabel center border layout center f set size new dimension 200 100 clean up when our close box is clicked f add window listener new window adapter public void window closing window event evt hide f show | show the frame creating it if necessary |
public void hide if f null f set visible false f dispose f null help out garbage collection a little | clean up when were hidden |
public string get email address return | returns the email address of the user |
public string get organization return id | returns the name of the users organization |
public boolean is current return id equals generic character get local character get user identifier | returns true if the user is a current active user |
private void show err msg string msg if error null error new jframe error notification error get content pane set layout null give the user a notification msg jlabel notification msg new jlabel msg error get content pane add notification msg notification msg set bounds 5 25 500 25 error set size new dimension 500 100 clean up when our close box is clicked error add window listener new window adapter public void window closing window event evt if error null error set visible false error dispose error null error show | message window for showing errors |
public string get name return file machine | return the human readable name of this machine |
public void remove init if file null file set deletable true super remove | on removal mark the file as deletable but dont actually |
public string get product name return file | return the human readable name of kind of thing this machine produces |
public string get product class name return edu vt cs sburg contrib pli file moosburg file | returns the name of the client side class that manipulates the product |
public void init add a listener that will update our ui when other people change the sign add property change listener new property change listener public void property change property change event pce if f null string name pce get property name update our title on name changes if name equals name f set title upload test get name see if somebody changed the content else if name equals content property text set text get property content property | our init method will be called after weve been constructed and |
public object id get shared file object id init if we still don t have a shared file object make one if file null try file shared file get replicated object client get new object shared file class null object id id get replicated object client get object id file set property file id key id to string replication manager get instance start sharing file get replicated object client file add property change listener this catch exception e e print stack trace return object id from string get property file id key | returns the object id for the shared file object that is holding |
public void download string id get property file id key if id null if we re in an applet delegate to the browser else save locally if context get context is applet context get context show url shared file get download url object id from string id else make sure we ve loaded a shared file object if file null init shared file uploader show download dialog null save file get name file get name object id from string id | user accessible download operation |
public void property change property change event pce if was generated by us it probably means that one of our collaborators uploaded a file thereby creating a shared file object that we can now retrieve if pce get source this if pce get property name equals file id key file null init otherwise it was probably a file name change update our name to reflect the name of the file else if file null if pce get property name equals name set name file get name | called when a property change event is generated by either this |
private void check folder if folder null first see if somebody else created it and we just haven t downloaded it yet init if we still don t have one make one if folder null try folder folder get replicated object client get new object folder class null object id id get replicated object client get object id folder save the id set property folder id key id to string start replication on it replication manager get instance start sharing folder get replicated object client catch exception e e print stack trace | checks to see if a replicated folder has already been created |
public action get actions return text action augment list editor get actions default actions | fetch the list of actions supported by this |
public void create proxy if al null al new agenda listener add property change listener al | triggered when proxy is created |
public void remove load the folder if we haven t already and it actually exists init if folder null delete folder folder get replicated object client super remove | on removal mark the files as deletable but dont actually |
public void init add a listener that will update our ui when other people change the planner add property change listener new property change listener public void property change property change event pce if f null string name pce get property name update our title on name changes if name equals name f set title planner get name | our init method will be called after weve been constructed and |
public void property change property change event pce if was generated by us it probably means that one of our collaborators created a folder object that we can now retrieve if pce get source this if pce get property name equals folder id key folder null init otherwise it was probably a file name change update our name to reflect the name of the file else if folder null if pce get property name equals name set name folder get name | called when a property change event is generated by either this |
private void setup handler object id id try query list list query list client get object id replication manager get instance start sharing list client query handler handler new query handler list util handlers put id handler check for duplicates catch exception e e print stack trace | sets up a handler for the list with the given object id |
public void init add a listener that will update our ui when other people change the viewer add property change listener new property change listener public void property change property change event pce if f null string name pce get property name update our title on name changes if name equals name f set title database viewer get name | our init method will be called after weve been constructed and |
public void object added replicated object client event e setup handler e get id | called when an object is added |
public void destroy proxy if al null remove property change listener al al null update the proxy name to default proxy name set text proxy doesn t exist | triggered when proxy is destroyed |
public void object removed replicated object client event e this should also shut down the handler s thread handlers remove e get id | called when an object is removed |
private static jlist get jlist shared list list jlist jl null try class cl class for name java awt dnd drag source string name list class get name if name index of 1 name dndlist else name name substring 0 name last index of dndlist cl class for name name jl jlist cl new instance catch throwable t t print stack trace if anything went wrong then we revert back to a regular non dnd jlist if jl null jl new jlist if jl instanceof shared list jlist shared list jlist jl set shared list list return jl | utility method that constructs an appropriate jlist implementation |
public void remove hide try string content get property content property if content null replicated object client client get replicated object client client delete object object id from string content catch exception e e print stack trace super remove | throw away our planner state if we have one when were |
public void mission completed notification new jframe proxy notification notification get content pane set layout null give the user a notification msg jlabel notification msg new jlabel get name proxy has completed the mission notification get content pane add notification msg notification msg set bounds 5 25 500 25 notification set size new dimension 500 100 clean up when our close box is clicked notification add window listener new window adapter public void window closing window event evt if notification null notification set visible false notification dispose notification null notification show | display the notification to the user |
public void element added edu vt cs collab cork util list event evt edu vt cs collab cork models sharedlist shared list event sle edu vt cs collab cork models sharedlist shared list event evt system out println sle get item id at sle get index added sle get object | invoked when an element is added to the end of the list |
public void element removed edu vt cs collab cork util list event evt edu vt cs collab cork models sharedlist shared list event sle edu vt cs collab cork models sharedlist shared list event evt system out println sle get item id at sle get index removed sle get object thread dump stack | invoked when an element is removed from the list |
public void element inserted edu vt cs collab cork util list event evt edu vt cs collab cork models sharedlist shared list event sle edu vt cs collab cork models sharedlist shared list event evt system out println sle get item id at sle get index inserted sle get object | invoked when an element is inserted into the list |
public void element replaced edu vt cs collab cork util list event evt edu vt cs collab cork models sharedlist shared list event sle edu vt cs collab cork models sharedlist shared list event evt system out println sle get item id at sle get index replaced with sle get object thread dump stack | invoked when an element in the list is replaced |
protected jmenu item create menu item string cmd jmenu item mi new jmenu item get resource string cmd label suffix | this is the hook through which all menu items are |
public void init add a listener that will update our ui when other people change the sign add property change listener new property change listener public void property change property change event pce if f null string name pce get property name update our title on name changes if name equals name f set title sign get name see if somebody changed the content else if name equals content property text set text get property content property | our init method will be called after weve been constructed and |
public int get row count return list get size | each item in the list becomes a row in the table |
public void element added list event evt fire table data changed | this could be done more efficiently firing table data changed is |
public void init add a listener that will update our ui when other people change the sign add property change listener new property change listener public void property change property change event pce if f null string name pce get property name update our title on name changes if name equals name f set title message board get name | our init method will be called after weve been constructed and |
public void set text string text t set text text set the text displayed in the text pane | public string get text return t |
public thing get current thing return current thing | returns the thing that the mouse is currently over |
public void set current thing thing t thing old current thing current thing t fire property change current thing old current thing | sets the thing that the mouse is currently over |
public void paint component graphics dbl buffer g dbl buffer g set color color blue darker dbl buffer g draw line 40 30 40 10 dbl buffer g draw line 41 30 41 10 dbl buffer g draw line 31 17 40 10 dbl buffer g draw line 31 18 41 10 dbl buffer g draw line 49 17 41 10 dbl buffer g draw line 49 18 40 10 font f dbl buffer g get font dbl buffer g set font new font f get name font bold f get size dbl buffer g draw string n 36 8 | method that describes how to paint the compass |
public image get map image image i null mainview mainview null if view null if view get map image null mainview mainview view get maparea mainview set size new dimension 200 200 mainview paint map i view get map image if i null i flush return i | returns the image of the map |
public image get map image image i null spaceview spaceview null if view null if view get map image null spaceview spaceview view get maparea spaceview set size new dimension 400 400 spaceview paint map i view get map image if i null i flush return i | returns the image of the map |
public static final string image suffix image suffix applied to the key used in resource file lookups for a label public static final string label suffix label suffix applied to the key used in resource file | suffix applied to the key used in resource file |
public float point get last mouse press location float point fp null if last point null float coords view get coordinates last point dimension sz get space get space size fp new float point float coords 0 sz width float coords 1 sz height return fp | returns the location in the current spaces coordinate system of |
public void paint space space component map graphics graphics if image null map get size width width map get size height height if image null image flush image orig toolkit get default toolkit get image url make sure we have a size if orig width 1 orig height 1 set default size orig width map get size width height map get size height image orig get scaled instance width height image scale fast orig flush graphics draw image image 0 0 color white map | first pass at this for now im assuming all well need is the |
public dimension get default size space space if orig width 1 orig height 1 image img toolkit get default toolkit get image url set default size img img flush return new dimension orig width orig height | returns the default size of the rendered map |
private void check drop button drop set enabled list get selected index 1 landmark null moosburg permissions is allowed moosburg permissions key change landmark moosburg permissions is allowed landmark permissions key add thing landmark | enable the drop button if theres a selection and were allowed |
public void paint space space component map graphics g shared white board state state get state space if state null dimension sz map get size use g s clip instead g set color state get background g fill rect 0 0 sz width 1 sz height 1 for int i 0 i state size i white board item state element at i paint g | first pass at this for now im assuming all well need is the |
public dimension get default size space space shared white board state state get state space dimension d null if state null d new dimension state get width state get height else d new dimension 10 10 return d | returns the default size of the rendered map |
public void action performed action event evt int idxs list get selected indices for int i 0 i idxs length i thing t user get thing at idxs i generic character drop d user new drop t if d is enabled t landmark client inventory frame this d execute t landmark client inventory frame this drop set enabled false | drop the items at the current location |
public void shrink if buffer null buffer2 buffer get scaled instance 100 100 image scale area averaging | method to shrink map when shrink button is clicked |
public void home coordinate home spot home spot new coordinate 0 0 if zoom minzoom maxzoom minzoom 0 100 0 set zoom 0 if method 0 set method 0 if shape 1 set shape 1 home spot x 1 0921 e7 home spot y 3613400 transform point m u home spot reuse click routine to perform animation click centerx int home spot x midx centery int home spot y midy | method to update map variables when home button is clicked |
public string get description return inventory viewer | description of this viewer |
public point get point float x float y return maparea single transform x y | called to convert floats on scale 0 |
public int get zoom value return zoomer get value | returns the current zoom value 0 100 |
public string get property string prop string default value string val props get property prop default value system err print demo server prop prop val if val default value system err print used default value system err println return val | pulls a property from the props object dumping the result |
public void property change property change event pce fix spots | property change listener for fixing spots when a landmark property |
protected void object loaded listener new listener set script add action listener listener reload add action listener listener java scriptable object object add property change listener listener this is done on activate now reset script | called when the object has been loaded from the server |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.