input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set application application instance app if this app null throw new illegal state exception application can only be set once this app app
|
sets the jnlp app this group is for can only be called once
|
public component desc get component node node return new component desc
|
returns the component descriptor
|
public application instance get application return app
|
returns the jnlp app for this thread group
|
public thread group get thread group throws illegal state exception if stopped throw new illegal state exception return group
|
returns the thread group
|
public void uncaught exception thread t throwable e super uncaught exception t e
|
handle uncaught exceptions for the app
|
public permission collection get permissions code source source if source null source equals system source source equals shell source return get all permissions if we check the security desc here then keep in mind that code can add properties at runtime to the resources desc delegate to original policy object required to run under web start return system policy get permissions source
|
return a mutable heterogeneous capable permission collection
|
public class loader get class loader throws illegal state exception if stopped throw new illegal state exception return loader
|
returns the classloader
|
public void item state changed item event e set full screen mode full screen mi get state
|
called when the full screen menu item changes
|
public object run jnlpruntime set base dir get base dir jnlpruntime set security enabled null get option nosecurity jnlpruntime initialize try new launcher launch configure file create file catch launch exception ex default handler prints this return null catch exception ex if jnlpruntime is debug ex print stack trace fatal error ex get message return null
|
the privileged part jdk1
|
protected void add window window window weak windows add window weak windows trim to size
|
adds a window that this application opened
|
private permissions get all permissions permissions result new permissions result add new all permission return result
|
return an all permissions collection
|
public void action performed action event evt instance destroy system exit 0
|
action performed to process menu actions of applet frame
|
private jnlpfile configure file jnlpfile file add properties file if file is applet add parameters file if file is application add arguments file if jnlpruntime is debug if get option arg null if file is installer file is applet system out println r bargs na if get option param null if file is application system out println r bparam na return file
|
add in the extra params arguments from command line
|
private void check destroyed if destroyed throw new illegal state exception illegal applet stub context access applet destroyed
|
checks whether the applet has been destroyed
|
public jardesc get main jar jardesc jars get jars for int i 0 i jars length i if jars i is main return jars i if jars length 0 return jars 0 else return null
|
returns the main jar for these resources
|
public installer desc get installer node node string main get attribute node main class null return new installer desc main
|
returns the installer descriptor
|
public map get properties map properties properties new properties list resources get resources property desc class for int i 0 i resources size i property desc prop property desc resources get i properties put prop get key prop get value return properties
|
returns the properties as a map
|
public void destroy destroyed true list clips weak clips hard list for int i 0 i clips size i applet audio clip clips get i dispose
|
disposes the applets resources and disables the applet
|
public list get resources class type list result new array list for int i 0 i resources size i if type is assignable from resources get i get class result add resources get i return result
|
returns all resources of the specified type
|
public frame get applet frame return frame
|
returns the frame that contains the applet
|
public void add resource object resource if this is going to stay public it should probably take an interface instead of an object if resource null throw new illegal argument exception null resource resources add resource
|
add a resource
|
public void enable code base add url file get code base nothing happens if called more that once
|
add applets codebase url
|
private boolean show full screen prompt int answer joption pane show confirm dialog frame jnlpruntime get message afull screen warning jnlpruntime get message afull screen warning title joption pane ok cancel option joption pane warning message return answer joption pane ok option
|
show prompt asking user if we should go into full screen mode
|
public void set application application instance app if this app null if jnlpruntime is debug exception ex new illegal state exception application can only be set once ex print stack trace return this app app
|
sets the jnlp app this group is for can only be called once
|
public locale get locale string locale str if locale str length 2 return null string language locale str substring 0 2 string country locale str length 5 locale str substring 3 5 string variant locale str length 7 locale str substring 6 8 null is not allowed n locale but is return new locale language country variant
|
returns a locale from a single locale
|
public applet get applet string name check destroyed if name null name equals file get applet get name return applet else return null
|
returns the applet if the applets name is specified
|
public enumeration get applets check destroyed return collections enumeration arrays as list new applet applet
|
returns an enumeration that contains only the applet
|
public string get span text node node throws parse exception if node null return null nano return node get node value tiny node child node get first child if child null if strict not sure if this is an error or whether is proper throw new parse exception no text specified node node get node name else return return child get node value
|
returns the implied text under a node for example text in
|
public audio clip get audio clip url location check destroyed applet audio clip clip new applet audio clip location weak clips add clip weak clips trim to size return clip
|
returns an audio clip
|
public image get image url location check destroyed return toolkit get default toolkit create image location image image new image icon location get image return image
|
return an image loaded from the specified location
|
protected permission collection get permissions code source cs permissions result new permissions should check for extensions or boot automatically give all access w o security dialog once we actually check certificates copy security permissions from security desc element enumeration e security get permissions security policy get security type file elements while e has more elements result add permission e next element add in permission to read the cached jar files for int i 0 i resource permissions size i result add permission resource permissions get i return result
|
returns the permissions for the code source
|
public void show document url u rl check destroyed
|
not implemented yet
|
protected void fill in part jars list jars for int i 0 i jars size i string part jardesc jars get i get part for int a 0 a available size a jardesc jar jardesc available get a if part null part equals jar get part if jars contains jar jars add jar
|
adds to the specified list of jars any other jars that need
|
public void show document url u rl string str check destroyed
|
not implemented yet
|
private url add slash url source if source null return null if source to string ends with try source new url source to string catch malformed urlexception ex return source return source
|
returns a url with a trailing appended to it if there is no
|
public void show status string str check destroyed
|
not implemented yet
|
public manifest get manifest return manifest
|
returns the main jars manifest or null if the it does not
|
public void set stream string key input stream stream check destroyed
|
required for jre1
|
public input stream get stream string key check destroyed return null
|
required for jre1
|
public iterator get stream keys check destroyed return null
|
required for jre1
|
public url get required url node node string name url base throws parse exception probably should change to null so that url is always required even if strict get required attribute node name return get url node name base
|
returns the same result as get url except that a
|
protected file get native dir native dir new file system get property java io tmpdir file separator netx native new random next int 0x ffff if native dir mkdirs return null else return native dir
|
return the base directory to store native code files in
|
public version get version node node string name string default value string version get attribute node name default value if version null return null else return new version version
|
returns a version from the specified attribute and default
|
protected string find library string lib if native dir null return null string syslib system map library name lib file target new file native dir syslib if target exists return target to string else string result super find library lib if result null return result return find library ext lib
|
return the absolute path to the native library
|
protected string find library ext string lib for int i 0 i loaders length i string result null if loaders i this result loaders i find library lib if result null return result return null
|
try to find the library path from another peer classloader
|
public string get required attribute node node string name string default value throws parse exception string result get attribute node name null if result null result length 0 if strict default value null throw new parse exception r pneeds attribute node get node name name if result null return default value else return result
|
returns the same result as get attribute except that if strict
|
private void wait for jars list jars url urls new url jars size for int i 0 i jars size i jardesc jar jardesc jars get i urls i jar get location cache util wait for resources app tracker urls file get title
|
wait for a group of jars and send download events if there
|
protected class find loaded class all string name for int i 0 i loaders length i class result null if loaders i this result super find loaded class name else result loaders i find loaded class all name if result null return result return null
|
find the loaded class in this loader or any of its extension loaders
|
public string get attribute node node string name string default value sax string result element node get attribute name string result node get attribute name if result null result length 0 return default value return result
|
retuns an attribute or the specified default value if there is
|
public class load class string name throws class not found exception class result find loaded class all name try parent classloader if result null try class loader parent get parent if parent null parent class loader get system class loader return parent load class name catch class not found exception ex filter out bad package names like java javax valid package name search this and the extension loaders if result null result load class ext name return result
|
find a jar in the shared extension classloaders this
|
protected class find class string name throws class not found exception for int i 0 i loaders length i try if loaders i this return super find class name else return loaders i find class name catch class not found exception ex throw new class not found exception name
|
find the class in this loader or any of its extension loaders
|
private class load class ext string name throws class not found exception make recursive add available find it try return find class name catch class not found exception ex okay because it may be in a jar we haven t loaded yet add resources until found while true jnlpclass loader added to add next resource if added to null throw new class not found exception name try return added to find class name catch class not found exception ex okay because it ll be found next time or throw new exception
|
search for the class by incrementally adding resources to the
|
public url get resource string name url result super get resource name for int i 1 i loaders length i if result null result loaders i get resource name return result
|
finds the resource in this the parent or the extension
|
public enumeration find resources string name throws ioexception vector resources new vector for int i 0 i loaders length i enumeration e if loaders i this e super find resources name else e loaders i find resources name while e has more elements resources add e next element return resources elements
|
finds the resource in this the parent or the extension
|
protected void add available go through available check tracker for it and all of its part brothers being available immediately add them for int i 1 i loaders length i loaders i add available
|
adds whatever resources have already been downloaded in the
|
protected jnlpclass loader add next resource if available size 0 for int i 1 i loaders length i jnlpclass loader result loaders i add next resource if result null return result return null add jar list jars new array list jars add available get 0 fill in part jars jars activate jars jars return this
|
adds the next unused resource to the classloader
|
final public stream y apply to final iterator x iterator return new stream y public y produce while iterator has next final y value map iterator next if value null return value return null
|
apply this transformation to each element of an iterable
|
final public e last value e buf null while has next buf next return buf e local buf null for final e buf produce if buf null local buf buf else return local buf
|
exhaust the iterator and return the last value
|
public t get data return get status status ok content panel get data null
|
returns only something different than
|
public void set tracks list track tracks this tracks new array list track tracks
|
performs a copy constructor call so
|
public int get year released return year released
|
use as full digit year e
|
public void set year released int year this year released year
|
use as full digit year e
|
public int get index string token return operators index of token
|
get index by occurance in operators
|
public boolean is operator string token return token equals token equals token equals token equals token equals token equals
|
logical test for operators of tokenizer
|
public boolean is operation string token return token equals token equals token equals token equals
|
mathematical operations during evaluation
|
public void add element object element vector remainder remainder add element element
|
adds an element onto a vector
|
public void tokenize input string input expression system out print tokenize input input expression for string tokenizer st new string tokenizer input expression operators true st has more tokens string str st next token if is operator str hashtable variables put str new integer 0 vector tokens add element str system out print system out print vector tokens to string system out print system out println hashtable variables to string
|
tokenize formula using operators leaving tokens in the stream
|
public view space new vector places new hashtable add mouse listener this set visible true
|
default constructor for diagram class
|
public string get applet info return messages get string venn1 name venn1 r n 19 non nls 1 messages get string venn1 author peter b mastin vii r n 20 non nls 1 messages get string venn1 girish padmalayam r n 21 non nls 1 messages get string venn1 c victor bancroft ii r n 22 non nls 1 messages get string venn1 donald nute r n 23 non nls 1 messages get string venn1 venn diagram 24 non nls 1
|
applet info support
|
public void mouse clicked mouse event e if 1 e get click count if null selected null get location selected add element selected point where e get point if null selected set location selected where repaint
|
invoked when the mouse has been clicked on the view
|
public void mouse pressed mouse event e point where e get point node n get at point where if null n if null get selected set selected n else if n equals get selected set selected null
|
invoked when a mouse button has been pressed on a component
|
public void mouse released mouse event e point where e get point
|
invoked when a mouse button has been released on a component
|
public void mouse entered mouse event e point where e get point
|
invoked when the mouse enters a component
|
public void mouse exited mouse event e point where e get point
|
invoked when the mouse exits a component
|
public void println mouse event mouse event e point where e get point println e param string x where get x y where get x
|
invoked when the mouse exits a component
|
public void paint graphics g fm g get font metrics buffer dimension get size g set color color white g fill rect 0 0 buffer dimension width buffer dimension height for enumeration e get space e has more elements node n node e next element paint node g n
|
paint model in graphics region
|
private void println string text system out println text n
|
stub replacement for system
|
public model out system out tokens new hashtable names new hashtable println output construction
|
default constructor for diagram class
|
private void list nodes println output name token println output for enumeration e tokens elements e has more elements node n node e next element println output n get name n get token println output
|
stub function for list facility
|
private void println output string text out println text
|
diagram replacement for system
|
public diagram system out println construction graph new model viewer new view set size frame size width frame size height set title title set menu set widgets add mouse listener this show
|
default constructor for diagram class
|
private void set widgets flow layout fl new flow layout set layout fl node name new text field node name width node label new label node label set text node viewer set size canvas size width canvas size height diagram output new text area welcome output rows output columns text area scrollbars vertical only add node label add node name add viewer add diagram output
|
setup widgets for editing
|
public void mouse clicked mouse event e point where e get point if null selected set location selected where
|
invoked when the mouse has been clicked on a component
|
public void mouse pressed mouse event e point where e get point
|
invoked when a mouse button has been pressed on a component
|
public void destroy todo place applet cleanup code here
|
place additional applet clean up code here
|
private void print output string text diagram output append text diagram output set caret position diagram output get text length
|
diagram replacement for system
|
private void println string text print output text n
|
diagram replacement for system
|
public void start if m venn1 null m venn1 new thread this m venn1 start p start todo place additional applet start code here
|
venn1 paint handler
|
private void clear output string text diagram output append text n diagram output set text
|
clears diagram output area
|
private void show about println wish we had some help
|
stub function for help facility
|
private void list nodes println name token println for enumeration e get all nodes e has more elements node n node e next element println n get name n get token println
|
stub function for list facility
|
public string delete node string n node m get node n if null m tokens remove m get token names remove m get name return node n null m deleted not found
|
delete node by name
|
public void stop if m venn1 null m venn1 stop m venn1 null p stop todo place additional applet stop code here
|
the stop method is called when the page containing the applet is
|
public enumeration get all nodes return graph get all nodes
|
get an enumeration of all
|
public enumeration get space return viewer get space
|
get enumeration of
|
public void print validity html system out print messages get string venn1 param name valid 199 non nls 1 system out print messages get string venn1 value 200 non nls 1 system out print messages get string venn1 201 non nls 1 system out print m venncanvas m valid label system out print messages get string venn1 202 non nls 1 system out println messages get string venn1 203 non nls 1
|
prints the validity string for inclusion in param markup
|
public boolean is subset of final object object return object instanceof abstract mp3 file item
|
returns true if this object is a subset of the argument
|
private void check add column table t column c throws hsql exception boolean can add true if t find column c column name name 1 throw trace error trace column already exists if c is primary key t has primary key can add false if can add t is empty session can add c is nullable c get default expression null if can add throw trace error trace bad add column definition
|
checks if the attributes of the column argument c are compatible with
|
public void close throws ioexception this close connections if server server null server server close logger logdate servidor offline logger log
|
cierra las conexiones
|
public void close if this connection null try server logger logdate get host name salio del servidor this suscription timer stop this output close this input close this connection close this connection null server clients remove this catch socket exception e2 this connection null catch ioexception e e print stack trace
|
cierra la conexion actual
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.