input
stringlengths
10
828
output
stringlengths
5
107
public int get focus traversal index return focus traversal index
returns the focus traversal index
public void set visible boolean b if b get session add frame this else get session remove frame this super set visible b
shows or hide this frame
public string to string string buffer str new string buffer str append sgmltag append name append append get offset append if attrs null well formed iterator iter attributes true while iter has next string key string iter next str append append key append append value key null append else str append malformed tag str append return str to string
render this tag as a string
public string get file type throws ioexception if exception null throw exception return file type
returns the mime type of this file if known
public void set alignment int al alignment al
sets the alignment
public void set size int s size s
sets the size of the rule
public void set width int s width s
sets the width of the rule
public void editing canceled change event e remove editor reload reload manager reload code
invoked when editing is canceled
public void set shade boolean s shade s
enable or disable shading of the rule
public object clone try return super clone catch exception e e print stack trace return null
clone this component
public void reset current file null file id null file dir null file type null file name null exception null
resets this file chooser no file selected
public file get file throws ioexception if exception null throw exception return current file
returns the file that has been uploaded
protected void create default editors editors clear objects stext field text field new stext field set default editor object class new sdefault cell editor text field set default editor number class new sdefault cell editor text field numbers stext field right aligned text field new stext field right aligned text field set horizontal alignment stext field right set default editor number class new sdefault cell editor right aligned text field booleans scheck box centered check box new scheck box centered check box set horizontal alignment jcheck box center set default editor boolean class new sdefault cell editor centered check box
creates default cell editors for objects numbers and boolean values
public void set upload filter class filter if filter output stream class is assignable from filter throw new illegal argument exception filter get name is not a filter output stream upload filter manager register filter get low level event id filter this filter filter
an filter output stream that filters incoming files
public class get upload filter return filter
returns the upload filter set in
protected long get last modified http servlet request request abstract externalize manager ext mgr try ext mgr get externalize manager request catch exception e return system current time millis string path info request get path info system err println last modified path info if ext mgr null path info null path info length 1 string identifier path info substring 1 externalized resource info ext mgr get externalized resource identifier if info null system err println info get last modified return info get last modified return 1
returns the last modification of an externalized resource to allow the
protected boolean is system externalize request http servlet request request string path info request get path info return path info null path info length 1 path info starts with
returns whether this request is to serve an externalize request
public void set selection model slist selection model model if get selection model null remove selection listener reload on selection change listener if model null throw new illegal argument exception cannot set a null slist selection model selection model model add selection listener reload on selection change listener
sets the row selection model for this table to code model code
public void focus request scomponent c focus component c
this function is called by scomponent
public sbutton get back button return back button
a button activated on detected browser back clicks
public rectangle get scrollable viewport size return new rectangle 0 0 1 get row count
returns the maximum size of this tree
public boolean rename to file newfile boolean success success super rename to newfile is temp success we are not temporary anymore on success return success
when this file is renamed then it is not temporary anymore
private void cleanup if is temp delete
removes the file in the filesystem if it is still temporary
protected void finalize throws throwable super finalize if is temp logger debug garbage collect file get name cleanup
do a cleanup if this temporary file is garbage collected
public void log string msg if parent this parent log msg else super log msg
delegates log messages to the according wings servlet or alternativley
public void set selection mode int s get selection model set selection mode s
sets the selection mode
public void register low level event listener gl if gl null return string key gl get low level event id logger debug dispatcher register key type gl get class add low level event listener gl key if named events key gl get name if key null key trim length 0 logger debug dispatcher register named key add low level event listener gl key
registers a listener
protected void init max content length servlet config config string max cl config get init parameter content maxlength if max cl null try max content length integer parse int max cl catch number format exception e logger warn invalid content maxlength max cl e
describe code init max content length code method here
public void set selection attributes attribute set selection attributes if selection attributes null throw new illegal argument exception null not allowed if this selection attributes equals selection attributes this selection attributes selection attributes reload reload manager reload style
set the selection attributes
public component cg get cg return cg
return the look and feel delegate
protected void init props servlet config config enumeration params config get init parameter names while params has more elements string name string params next element props put name config get init parameter name
copy the init parameters
public enumeration get parameter names if urlencoded request return super get parameter names final iterator iter parameters key set iterator return new enumeration public boolean has more elements return iter has next public object next element return iter next
returns the names of all the parameters as an enumeration of
public void update cg if get session null logger warn no session yet else if get session get cgmanager null logger warn no cgmanager else set cg get session get cgmanager get cg this if border null border update cg
notification from the cgfactory that the l f has changed
public void set selection background color color boolean changed selection attributes put all cssstyle sheet get attributes color style background color if changed reload reload manager reload style
set the background color
public iterator get file names return files key set iterator
returns the names of all the uploaded files as an enumeration of
public cgmanager get cgmanager return cg manager
describe code get cgmanager code method here
public color get selection background return cssstyle sheet get background selection attributes
return the background color
public string get parameter string name if urlencoded request return super get parameter name try array list v array list parameters get name if v null return null string param string v get 0 if param null param equals return null return param catch exception e return null
returns the value of the named parameter as a string or null if
public void set selection foreground color color boolean changed selection attributes put all cssstyle sheet get attributes color style color if changed reload reload manager reload style
set the foreground color
public string get file name string name try uploaded file file uploaded file files get name return file get file name may be null catch exception e return null
returns the filename of the specified file or null if the
public color get selection foreground return cssstyle sheet get foreground selection attributes
return the foreground color
public void set dispatch error handler exception handler exception handler this exception handler exception handler
register an error handler which will be notified about uncatched exceptions occuring
public string get file id string name try uploaded file file uploaded file files get name return file get id may be null catch exception e return null
returns the fileid of the specified file or null if the
public browser get user agent return browser
get the user agent browser used for
public string get real path string path return req get real path path
applies alias rules to the specified virtual path and returns
public void set opaque boolean opaque if fire property change events if this opaque opaque this opaque opaque fire property change opaque property boolean value of opaque boolean value of opaque else this opaque opaque
if true the component paints every pixel within its bounds
public object get attribute string name return req get attribute name
returns the value of the named attribute of the request or
public void fire property change string property name byte old value byte new value if fire property change events old value new value fire property change property name new byte old value new byte new value
reports a bound property change
public string get request uri return req get request uri
returns the request uri as a url object
public string get servlet path return req get servlet path
returns the part of the request uri that refers to the servlet
public string get path info return req get path info
returns optional extra path information following the servlet
public string get path translated return req get path translated
returns extra path information translated to a real path
public sframe get root frame if frames size 0 return null sframe root frame sframe frames iterator next while root frame get parent null root frame sframe root frame get parent return root frame
the root frame is the first shown frame
public void fire property change string property name char old value char new value if fire property change events old value new value fire property change property name new character old value new character new value
reports a bound property change
public string get row style int row if row renderer null return row renderer get table row style this row is row selected row else return null
override this method if you want to give rows different
public void set cell renderer slist cell renderer cell renderer slist cell renderer old value this cell renderer this cell renderer cell renderer reload if change reload manager reload code old value cell renderer
sets the renderer thats used to write out each cell in the list
public object get property string key object def if props contains key key return def else return props get key
gets the session property indicated by the specified key
public void set selection attribute string name string value boolean changed selection attributes contains name if changed selection attributes put name value reload reload manager reload style
set a selection attribute
public void fire property change string property name short old value short new value if fire property change events old value new value fire property change property name new short old value new short new value
reports a bound property change
public object set property string key object value system err print default session set property object old props put key value property change support fire property change key old value return old
sets the session property indicated by the specified key
public string remove selection attribute string name if selection attributes contains name string value selection attributes remove name reload reload manager reload style return value return null
remove an selection attribute
public void set selection background color color set selection attribute background color cssstyle sheet get attribute color
set the background color
public void fire property change string property name int old value int new value if fire property change events old value new value fire property change property name new integer old value new integer new value
reports a bound property change
public void set selection foreground color color set selection attribute color cssstyle sheet get attribute color
set the foreground color
public void set visible row count int visible row count if this visible row count visible row count this visible row count math max 0 visible row count reload reload manager reload code fire property change visible row count old value visible row count
set the preferred number of rows in the list that can be displayed
public void fire property change string property name long old value long new value if fire property change events old value new value fire property change property name new long old value new long new value
reports a bound property change
public void set model list model model if model null throw new illegal argument exception model must be non null if is different data model model clear selection data model model data model add list data listener this reload reload manager reload code
sets the model
protected void put parameter string name string value array list v array list parameters get name there is no parameter yet create one if v null v new array list 2 parameters put name v v add value
stores a parameter identified in this request
public void fire property change string property name float old value float new value if fire property change events old value new value fire property change property name new float old value new float new value
reports a bound property change
public void set locale locale l throws illegal argument exception if l null locale equals l return if supported locales null supported locales length 0 arrays as list supported locales contains l locale l property change support fire property change locale property locale l logger info set locale l else throw new illegal argument exception locale l not supported
sets a new locale for this session
private string extract boundary token string line int index line index of boundary if index 1 return null string boundary line substring index 9 9 for boundary the real boundary is always preceeded by an extra boundary boundary return boundary
extracts and returns the boundary token from a line
public void set list data final list list data set model new abstract list model public int get size return list data size public object get element at int i return list data get i
a convenience method that constructs a list model from a list
public void set character encoding string character encoding string old encoding this character encoding this character encoding character encoding property change support fire property change character encoding property old encoding character encoding
the current character encoding used for the communication with the clients browser
public void fire property change string property name double old value double new value if fire property change events old value new value fire property change property name new double old value new double new value
reports a bound property change
public string get character encoding if this character encoding null return locale char set get instance get char set get locale else return this character encoding
the current character encoding used for the communication with the clients browser
protected slist selection model create selection model return new sdefault list selection model
creates the default selection model
public void set url url ref if ref null set url ref to string else set url simple url null
set the url this anchor points to
public void set url simple url r simple url old url url url r if url null old url null url null url equals old url reload reload manager reload code
set the url this anchor points to
public void set url string url set url new simple url url
set the url this anchor points to
public void set reference string r set url r
set the url this anchor points to
public void fire property change string property name boolean old value boolean new value if fire property change events old value new value fire property change property name old value boolean true boolean false new value boolean true boolean false
reports a bound property change
public slist selection model get selection model return selection model
returns the current selection model
public void set columns int c cols c
sets the number of columns
public void set rows int r rows r
sets the number of rows
public void exit string redirect address this exit address redirect address
exit the current session and redirect to other url
public void exit exit
exit the current session and redirect to new application instance
public void scroll rect to visible rectangle a rect if parent null parent scroll rect to visible a rect
forwards the scroll rect to visible message to the scomponents
public void add list selection listener list selection listener listener if selection handler null selection handler new list selection handler get selection model add list selection listener selection handler add event listener list selection listener class listener
add a listener to the list thats notified each time a change
public void remove list selection listener list selection listener listener remove event listener list selection listener class listener
remove a listener from the list thats notified each time a
public void set layout slayout manager l if layout null for int i 0 i get component count i layout remove component get component i layout set container null layout l if layout null for int i 0 i get component count i layout add component get component i get constraint at i i layout set container this
sets a new layout manager
public void set selection model slist selection model selection model if selection model null throw new illegal argument exception selection model must be non null if selection handler null this selection model remove list selection listener selection handler selection model add list selection listener selection handler slist selection model old value this selection model this selection model selection model fire property change selection model old value selection model
set the selection model for the list
public void set background image sicon icon background image icon if icon null remove attribute style constants background image else set attribute style constants background image url icon get url to string
set the background image
public sicon get background image return background image
return the background image for this frame
public void set header attributes attribute set header attributes if header attributes null throw new illegal argument exception null not allowed if this header attributes equals header attributes this header attributes header attributes reload reload manager reload style
set the header attributes
public void set redirect address string redirect address this redirect address redirect address
describe code set redirect address code method here
public slayout manager get layout return layout
returns the current layout
public void add container listener scontainer listener l add event listener scontainer listener class l
adds the specified container listener to receive container events
public void remove container listener scontainer listener l remove event listener scontainer listener class l
removes the specified container listener so it no longer receives
public int get component count return get component list size
returns the number of components in this container
public void set header background color color boolean changed header attributes put all cssstyle sheet get attributes color background color if changed reload reload manager reload style
set the background color