input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void update update update get session get reload manager add update this update | hands the given update to the reload manager |
protected void set cell editor stable cell editor an editor stable cell editor old val this cell editor cell editor an editor property change support fire property change cell editor old val this cell editor | set the cell editor variable |
public void set editing column int editing column int old val this editing column this editing column editing column property change support fire property change editing column old val this editing column | set the editing column variable |
public string get coordinates return coordinates | the conceptual coordinates |
public boolean is form content pane return content pane instanceof sform | tell wether the content pane is an sform |
public void set form content pane boolean content pane form if content pane instanceof sform content pane form spanel new panel new spanel rebuild panel content pane new panel set content pane new panel else if content pane instanceof sform content pane form sform new panel new sform rebuild panel content pane new panel set content pane new panel | determine wether the content pane shall be an sform |
public void set editing row int editing row int old val this editing row this editing row editing row property change support fire property change editing row old val this editing row | set the editing row variable |
public void set columns int c int old columns columns columns c if columns old columns reload property change support fire property change columns old columns this columns | set the visible amount of columns in the textfield |
public stable cell editor get cell editor int row int col stable column model column model get column model if column model null stable column column column model get column col if column null stable cell editor editor column get cell editor if editor null return editor return get default editor get column class col | return an appropriate editor for the cell specified by this row and |
public string to string string builder str new string builder str append sgmltag append name append append get offset append if attrs null well formed iterator string iter attributes true while iter has next string key 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 void init servlet config config throws servlet exception super init config servlet config config if log is info enabled log info initializing wing s global servlet with configuration for enumeration en config get init parameter names en has more elements string param string en next element log info param config get init parameter param init lookup name config | the following init parameters are known by wings |
protected scomponent prepare editor stable cell editor editor int row int col scomponent component editor get table cell editor component this get value at row col is row selected row true row col name editor component component row col cell editor component component instanceof low level event listener low level event listener component null return component | prepares the specified editor using the value at the specified cell |
public file get selected file throws ioexception if exception null throw exception return current file | returns the file that has been uploaded |
public double get minor version return minor version | get the minor version |
protected void name editor component final scomponent component final int row final int col name buffer set length 0 name buffer append this get name append e name buffer append row name buffer append append col component set name raw name buffer to string | generates the name id of the editing component so that |
public file get file throws ioexception return get selected file | returns the file that has been uploaded |
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 class old val this filter upload filter manager register filter get low level event id filter this filter filter property change support fire property change upload filter old val this filter | an filter output stream that filters incoming files |
public ostype get os type return os type | get the operating system type |
public rectangle get viewport size return viewport | returns the actual visible part of a scrollable |
public locale get client locale return browser locale | get the browser client locale |
public string get low level event id return get name | default implementation of the method in |
public void remove editor stable cell editor editor get cell editor if editor null editor remove cell editor listener this remove editor comp set cell editor null int old editing column get editing column int old editing row get editing row set editing column 1 set editing row 1 if editor comp null editor comp set parent null end of if editor comp null update table cg get cg get render cell update this old editing row old editing column | discard the editor object and return the real estate it used to |
public void set viewport size rectangle new viewport rectangle old viewport viewport viewport new viewport if is different old viewport new viewport if old viewport null new viewport null fire viewport changed true fire viewport changed false else if new viewport x old viewport x new viewport width old viewport width fire viewport changed true if new viewport y old viewport y new viewport height old viewport height fire viewport changed false reload property change support fire property change viewort size old viewport this viewport | sets the actual visible part of a scrollable |
public string to string return browser name v major version minor version release null release browsertype browser type locale browser locale ostype os type get name os os osv os version | get a full human readable representation of the browser |
public void editing stopped change event e take in the new value stable cell editor editor get cell editor if editor null object value editor get cell editor value set value at value editing row editing column remove editor | invoked when editing is finished |
public void add viewport change listener sviewport change listener l add event listener sviewport change listener class l | adds the given code sviewport change listener code to the scrollable |
public void remove viewport change listener sviewport change listener l remove event listener sviewport change listener class l | removes the given code sviewport change listener code from the scrollable |
public boolean get resides in form scomponent parent get parent boolean actually does parent instanceof sform while parent null actually does parent parent get parent actually does parent instanceof sform return actually does | return true if this component is contained in a form |
protected void create default editors editors clear objects set default editor object class new sdefault cell editor new stext field set default editor number class new sdefault cell editor new stext 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 |
protected void finalize throws throwable super finalize if is temp log debug garbage collect file get name cleanup | do a cleanup if this temporary file is garbage collected |
protected void fire viewport changed boolean horizontal object listeners get listener list for int i listeners length 2 i 0 i 2 if listeners i sviewport change listener class sviewport change event event new sviewport change event this horizontal sviewport change listener listeners i 1 viewport changed event | notifies all listeners that have registered interest for notification |
public void register low level event listener gl if gl null final string id gl get low level event id log debug register id id type gl get class add low level event listener gl id | registers a low level event listeners for http request processing |
public void set tool tip text string t string old val this tooltip reload if change this tooltip t this tooltip t property change support fire property change tool tip text old val this tooltip | set the tooltip text |
public void add icon string category sicon icon int priority list categorized sicon list icons get priority if list null list new linked list categorized sicon list add new categorized sicon category icon icons put priority list update cursor cg get cg get content update this | adds a icon in category with priority |
public void add icon sicon icon int priority this add icon default icon priority | adds a icon in the default category with the given priority |
public void set show cursor boolean visible update cursor cg get cg get visibility update this visible this visibility visible | sets the visibility of the cursor |
public void hide cursor if possible if is empty set show cursor false | hides the cursor if there are neither icons nor a label to display |
public void remove icons string category for int i 0 i 255 i list categorized sicon list icons get i if list null continue list sicon temp list new linked list sicon for categorized sicon icon list if icon get category equals category temp list add icon get icon for sicon icon temp list remove icon category icon update cursor cg get cg get content update this | removes all icons from the given category |
public void set label slabel label this label label update cursor cg get cg get content update this | sets a label to be displayed |
public void set selection model slist selection model model if model null throw new illegal argument exception cannot set a null slist selection model slist selection model old val this selection model if get selection model null remove selection listener fwd selection events selection model model add selection listener fwd selection events property change support fire property change selection model old val this selection model | sets the row selection model for this table to code model code |
public slabel get label return label | returns the currently set label |
public void destroy log info destroy called if session null session is needed on destroying the session session manager set session session session destroy | destroy and cleanup the session servlet |
public void init http servlet request request throws servlet exception servlet context request get session get servlet context set servlet request request set user agent from request request init props request get session get servlet context init max content length try look and feel look and feel look and feel factory get look and feel factory create cgmanager set look and feel look and feel catch exception ex log fatal could not load look and feel servlet context get init parameter wings lookandfeel factory ex throw new servlet exception ex | detect user agent user agent |
public iterator get file names if urlencoded request return collections empty set iterator return files key set iterator | returns the names of all the uploaded files as an enumeration of |
public void set focus traversal index int index int old val this focus traversal index reload if change this focus traversal index index focus traversal index index property change support fire property change focus traversal index old val this focus traversal index | the index in which the focus is traversed using tab |
protected void init props servlet config servlet config enumeration params servlet config get init parameter names while params has more elements string name string params next element props put name servlet config get init parameter name | copy the init parameters |
public void clear selection if get selection model is selection empty get selection model clear selection reload | deselects all selected columns and rows |
public string get file name string name try return files get name get file name catch exception e return null | returns the filename of the specified file or null if the |
public string get file id string name try return files get name get id catch exception e return null | returns the fileid of the specified file or null if the |
public string get content type string name try return files get name get content type catch exception e return null | returns the content type of the specified file as supplied by the |
public file get file string name try return files get name get file catch exception e return null | returns a file object for the specified file saved on the servers |
public void set reload manager reload manager reload manager this reload manager reload manager | override the current reload manager |
public void set selection mode int s int old val get selection model get selection mode reload if change get selection model get selection mode s get selection model set selection mode s property change support fire property change selection mode old val get selection model get selection mode | sets the selection mode |
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 old value cell renderer property change support fire property change cell renderer old value this cell renderer | sets the renderer thats used to write out each cell in the list |
public reload manager get reload manager if reload manager null reload manager new default reload manager return reload manager | the reload manager responsible for the component invalidation |
public color get selection background return dynamic styles null dynamic styles get selector selection null null cssstyle sheet get background cssattribute set dynamic styles get selector selection | return the background color |
public void set selection background color color color old val this get selection background set attribute selector selection cssproperty background color cssstyle sheet get attribute color property change support fire property change selection background old val this get selection background | set the foreground color |
public externalize manager get externalize manager if externalize manager null externalize manager new externalize manager return externalize manager | the externalize manager is response to provide all |
public color get selection foreground return dynamic styles null dynamic styles get selector selection null null cssstyle sheet get foreground cssattribute set dynamic styles get selector selection | return the foreground color |
public script manager get script manager if script manager null script manager new script manager return script manager | the script manager collects scripts |
public void set selection foreground color color color old val this get selection foreground set attribute selector selection cssproperty color cssstyle sheet get attribute color property change support fire property change selection foreground old val this get selection foreground | set the foreground color |
public void set horizontal alignment int alignment int old val this horizontal alignment reload if change this horizontal alignment alignment horizontal alignment alignment property change support fire property change horizontal alignment old val this horizontal alignment | set the horizontal alignment |
public cgmanager get cgmanager return cgmanager | the cg manager is responsible to provide the renderer implementation aka |
private string trim string source string trim char string target blank space from both sides source source trim make sure a substring is enclosed between specified characters if source index of trim char 1 source last index of trim char source index of trim char 1 remove double character from both sides target source substring source index of trim char 1 source last index of trim char return target | this method gets the substring enclosed in trim char string returns string |
public void set selection font sfont font sfont old val this get selection font set attributes selector selection cssstyle sheet get attributes font property change support fire property change selection font old val this get selection font | set the font |
public sfont get selection font return dynamic styles null dynamic styles get selector selection null null cssstyle sheet get font cssattribute set dynamic styles get selector selection | return the font |
public void set visible row count int visible row count if this visible row count visible row count int old val this visible row count this visible row count math max 0 visible row count reload property change support fire property change visible row count old val this visible row count | set the preferred number of rows in the list that can be displayed |
public void set vertical alignment int alignment int old val this vertical alignment reload if change this vertical alignment alignment vertical alignment alignment property change support fire property change vertical alignment old val this vertical alignment | set the vertical alignment |
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 list model old val this data model clear selection data model model data model add list data listener this fire viewport changed false reload property change support fire property change model old val this data model | sets the model |
public low level event dispatcher get dispatcher return dispatcher | the low level event dispatcher is responsible for taking an http request |
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 property change support fire property change url old url this url | set the url this anchor points to |
public void set target string t string old val this target target t property change support fire property change target old val this target | set the name of the target frame window |
public sframe get root frame if frames is empty return null sframe root frame 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 set border int border width border border width | typical plafs will render this layout as invisible table border 0 |
public int row at point spoint point string coordinates point get coordinates int colon index coordinates index of if colon index 0 return 1 return integer parse int coordinates substring 0 colon index | returns the table row for the passed code spoint code |
public scomponent get component by name scontainer container string name scomponent component null scomponent components container get components for int x 0 y components length x y x scomponent component x components x if component x get name equals name component component x break else if component x instanceof scontainer component get component by name scontainer component x name if component null break return component | search in the given scontainer for the scomponent with the given name |
public void set layout slayout manager l slayout manager old val this layout 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 property change support fire property change layout manager old val this layout | sets a new layout manager |
public int column at point spoint point string coordinates point get coordinates int colon index coordinates index of if colon index 0 return 1 return integer parse int coordinates substring colon index 1 | returns the table column for the passed code spoint code |
public object set property string key object value 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 void remove scomponent c if c null return if layout null layout remove component c int index get component list index of c if get component list remove c get constraint list remove index c remove notify fire container event scontainer event component removed c c set parent null reload | removes the given component from the container |
public void update cg if get session null log warn no session yet else if get session get cgmanager null log warn no cgmanager else set cg get session get cgmanager get cg this | notification from the cgfactory that the l f has changed |
public string to string string encoding get request get character encoding null get request get character encoding locale char set default encoding try string builder buffer new string builder buffer append dir buffer append urlencoder encode get dir encoding if get file name null buffer append name buffer append urlencoder encode get file name encoding if get content type null buffer append type buffer append urlencoder encode get content type encoding buffer append id buffer append urlencoder encode get id encoding return buffer to string catch unsupported encoding exception e log error get class get name e return null | create a url encoded form of this uploaded file that contains |
public void add list selection listener list selection listener listener add event listener list selection listener class listener | add a listener to the list thats notified each time a change |
public void dispose if is visible hide remove all | removes all code scomponents code from the pane |
public sroot container get owner return owner | returns the root container in which this dialog is to be displayed |
public void hide log debug hide window if owner null owner remove window this super set visible false | remove this window from its frame |
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 slist selection model old val this selection model if this selection model null this selection model remove list selection listener fwd selection events selection model add list selection listener fwd selection events this selection model selection model property change support fire property change selection model old val this selection model | set the selection model for the list |
protected void set parent frame sframe f if f super get parent frame super set parent frame f for int i 0 i get component count i get component i set parent frame get parent frame | sets the parent frame |
public void set locale locale locale throws illegal argument exception locale old this locale if locale null this locale equals locale return this locale locale property change support fire property change locale property old locale | sets the locale for this session |
public scomponent get component return component | gets the mouse event source component |
public void set component scomponent component this component component | sets the mouse event source component |
public spoint get point return point | the object denoting where inside the source component a mouse click occured |
public void set point spoint point this point point | the object denoting where inside the source component a mouse click occured |
public void set selection mode int selection mode int old val selection model get selection mode selection model set selection mode selection mode property change support fire property change selection mode old val selection model get selection mode | allow permit multiple selection |
public object clone try scontainer erg scontainer super clone uiuiui layout manager must be cloned as well component list and constraint list contain references to the original components constraints erg get component list clear erg get constraint list clear for int i 0 i get component count i erg add component scomponent get component i clone return erg catch exception e log error unable to clone container e return null | caveat this did not work yet |
public abstract class sdocument adapter implements sdocument listener public void insert update sdocument event e public void remove update sdocument event e public void changed update sdocument event e | empty default implementation of |
public boolean is horizontal change return horizontal change | returns true in case of a vertical change |
public sdocument get document return sdocument get source | gets the source document of the change event |
public void request focus if get parent frame null get parent frame set focus this | requests the edit focus for this component for the following renderings |
public color get selection background return dynamic styles null dynamic styles get selector selected null null cssstyle sheet get background cssattribute set dynamic styles get selector selected | return the background color |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.