input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set selection font sfont font set attributes selector selected cssstyle sheet get attributes font | set the font |
public string print boolean shortest is reference sstring builder result new sstring builder long reference find reference value shortest is reference iterator it measures iterator while it has next measure m measure it next string factor long duration m get duration if reference 0 long tmp long duration resolution reference factor string value of tmp resolution object args m get comment duration ms factor result append formatter format args return result to string | creates a formatted output using the message format of all |
public void set text string t reload if change text t text t | sets the label of the button |
public void set selected boolean selected if model is selected selected model set selected selected if delay events fire state changed fire item state changed new item event this item event item state changed this model is selected item event selected item event deselected delayed event false else delayed event true reload | toggle the selection |
public void set header background color color set attribute selector header cssproperty background color cssstyle sheet get attribute color | set the foreground color |
public void trim to size if count value length char new value new char count system arraycopy value 0 new value 0 count this value new value | attempts to reduce storage used for the character sequence |
public void set show as form component boolean show as form component if this show as form component show as form component this show as form component show as form component reload | set display mode href or form component |
public void set header foreground color color set attribute selector header cssproperty color cssstyle sheet get attribute color | set the foreground color |
public void remove all while buttons size 0 remove sabstract button buttons get 0 | removes all buttons from the group |
public void set header font sfont font set attributes selector header cssstyle sheet get attributes font | set the font |
public sborder get border return null border | gets the border |
public void set border sborder border this border border specs sabstract border border specs | sets the border |
public void set header visible boolean hv boolean old header visible header visible header visible hv if old header visible header visible reload | sets p determines whether the header is visible or not |
public void flush if byte stream null builder append byte stream to string byte stream null | flush this stream |
public void set selection model single selection model model this selection model model | set the model object to handle single selections |
public smenu item add smenu c super add c return c | appends the specified menu to the end of the menu bar |
public void set selected scomponent sel single selection model model get selection model int index get component index sel model set selected index index | sets the currently selected component producing a |
public sstring builder append object obj return append string value of obj | appends the string representation of the code object code |
public void set border painted boolean b paint border b | sets whether the border should be painted |
public void set margin insets m this margin m | sets the margin between the menubars border and |
public sstring builder append string str if str null str null int len str length if len 0 return this int new count count len if new count value length expand capacity new count str get chars 0 len value count count new count return this | appends the specified string to this character sequence |
public void set rows int r int old rows rows rows r if old rows rows reload | set the number of visble rows |
public void set input map int condition input map input map init input maps this input maps condition input map if condition when in focused frame input map null register global input map with frame | sets the current input map |
protected void set scrollable scomponent c if scrollable null reset the scrollable s viewport to the one it had before adding it to this scrollpane scrollable set viewport size backup viewport if c instanceof scrollable scrollable scrollable c horizontal model set scrollable scrollable vertical model set scrollable scrollable keep the scrollable s original viewport the one it had before adding it to this scrollpane backup viewport scrollable get viewport size apply new viewport to scrollable set initial viewport size else scrollable null reload | sets the element which should be scrolled |
public void set viewport view scomponent view add view | sets the scrollable |
public sstring builder append char sequence s int start int end if s null s null if start 0 end 0 start end end s length throw new index out of bounds exception start start end end s length s length int len end start if len 0 return this int new count count len if new count value length expand capacity new count for int i start i end i value count s char at i count new count return this | appends a subsequence of the specified code char sequence code to this |
public void set selection background color color set attribute selector selected tab cssproperty background color cssstyle sheet get attribute color | set the foreground color |
public void set show horizontal lines boolean b boolean old show horizontal lines show horizontal lines show horizontal lines b if show horizontal lines old show horizontal lines reload | sets p determines if horizontal lines in the table should be |
public sstring builder append char str int new count count str length if new count value length expand capacity new count system arraycopy str 0 value count str length count new count return this | appends the string representation of the code char code array |
public void set selection foreground color color set attribute selector selected tab cssproperty color cssstyle sheet get attribute color | set the foreground color |
public void set selection font sfont font set attributes selector selected tab cssstyle sheet get attributes font | set the font |
public sstring builder append char str int offset int len int new count count len if new count value length expand capacity new count system arraycopy str offset value count len count new count return this | appends the string representation of a subarray of the |
protected void fire state changed if delay events got delayed event true else object listeners listener list get listener list for int i listeners length 2 i 0 i 2 if listeners i change listener class if change event null change event new change event this change listener listeners i 1 state changed change event | runs each code change listener code s code component changed code method |
public sstring builder append boolean b if b int new count count 4 if new count value length expand capacity new count value count t value count r value count u value count e else int new count count 5 if new count value length expand capacity new count value count f value count a value count l value count s value count e return this | appends the string representation of the code boolean code |
public void set show vertical lines boolean b boolean old show vertical lines show vertical lines show vertical lines b if show vertical lines old show vertical lines reload | sets p determines if vertical lines in the table should be |
public sstring builder append char c int new count count 1 if new count value length expand capacity new count value count c return this | appends the string representation of the code char code |
public void set model sbounded range model new model reload if change this model new model if model null model remove change listener fwd adjustment events model new model if model null model add change listener fwd adjustment events | sets the model that handles the scrollbars four |
public void set tab placement int tab placement if tab placement sconstants top tab placement sconstants left tab placement sconstants bottom tab placement sconstants right throw new illegal argument exception illegal tab placement must be top bottom left or right if this tab placement tab placement this tab placement tab placement reload | sets the tab placement for this tabbedpane |
public sstring builder append int i if i integer min value append 2147483648 return this append string value of i return this | appends the string representation of the code int code |
public void set unit increment int unit increment reload if change this unit increment unit increment this unit increment unit increment | sets the unit increment property |
public void set horizontal scroll bar policy int policy if policy horizontal scroll bar policy horizontal scroll bar policy policy adopt scroll bar visibility horizontal scroll bar policy reload | determines when the horizontal scrollbar appears in the scrollpane |
public void set block increment int block increment reload if change this block increment block increment this block increment block increment | sets the block increment property |
public void set vertical scroll bar policy int policy if policy vertical scroll bar policy vertical scroll bar policy policy adopt scroll bar visibility vertical scroll bar policy reload | determines when the vertical scrollbar appears in the scrollpane |
public void set model single selection model model if this model null this model remove change listener this this model model if this model null this model add change listener this reload | sets the model to be used with this tabbedpane |
public sstring builder append long l if l long min value append 9223372036854775808 return this append string value of l return this | appends the string representation of the code long code |
public void set orientation int orientation switch orientation case sconstants vertical this orientation orientation set preferred size sdimension fullheight break case sconstants horizontal this orientation orientation set preferred size sdimension fullwidth break default throw new illegal argument exception orientation must be one of vertical horizontal | set the scrollbars orientation to either vertical or |
public sstring builder append float f append string value of f return this | appends the string representation of the code float code |
public void set values int new value int new extent int new min int new max bounded range model m get model m set range properties new value new extent new min new max m get value is adjusting | sets the four bounded range model properties after forcing |
public sstring builder append double d append string value of d return this | appends the string representation of the code double code |
public sstring builder delete int start int end if start 0 throw new string index out of bounds exception start if end count end count if start end throw new string index out of bounds exception int len end start if len 0 system arraycopy value start len value start count end count len return this | removes the characters in a substring of this sequence |
public string builder append code point int code point if character is valid code point code point throw new illegal argument exception int n 1 if code point character min supplementary code point n int new count count n if new count value length expand capacity new count if n 1 value count char code point else character to surrogates code point value count count n return this | appends the string representation of the code code point code |
protected void fire key events for iterator iterator action events entry set iterator iterator has next map entry entry map entry iterator next action action action entry get key action event event action event entry get value action action performed event action events clear | internal method to trigger firing of key events |
public sstring builder delete char at int index if index 0 index count throw new string index out of bounds exception index system arraycopy value index 1 value index count index 1 count return this | removes the code char code at the specified position in this |
public string builder replace int start int end string str if start 0 throw new string index out of bounds exception start if end count end count if start end throw new string index out of bounds exception start end int len str length int new count count len end start if new count value length expand capacity new count system arraycopy value end value start len count end str get chars value start count new count return this | replaces the characters in a substring of this sequence |
final public grid bag constraints get constraints scomponent comp it might be better to return a copy of the constraint but that would hurt the performance return grid bag constraints get grid modified constraints get comp | retrieve the constraint of a scomponent |
public void set max tabs per line int tabs if tabs max tabs per line max tabs per line tabs reload | sets the maximum tabs per line |
public object string to value string text throws parse exception object value if format null value text else if text null text value format parse object text return value | object representation of text |
public void set minimum comparable min | not implemented yet |
public void set maximum comparable max | not implemented yet |
public void set maximum row count int count if maximum row count count maximum row count count reload | sets the maximum number of rows the scombo box displays |
public void set selected item object object if is different object data model get selected item must toggle the state of this flag since this method call may result in list data events being fired selecting item true data model set selected item object selecting item false if delay event if selected item reminder data model get selected item in case a users implementation of combo box model doesn t fire a list data event when the selection changes selected item changed fire action event delayed event false else delayed event true reload | sets the selected item in the scombo box |
protected void fire state changed object listeners listener list get listener list for int i listeners length 2 i 0 i 2 if listeners i change listener class if change event null change event new change event scrollable change listener listeners i 1 state changed change event | runs each code change listener code s code state changed code method |
public void set default button sbutton default button this default button default button | set the default button activated upon b enter b |
public void set background at int index color background page page page pages get index if is different page background background page background background reload | sets the background color at i index i to i background i |
public void set foreground at int index color foreground page page page pages get index if is different page foreground foreground page foreground foreground reload | sets the foreground color at i index i to i foreground i |
public void set style at int index string style page page page pages get index if page style style page style style reload | sets the style at i index i to i style i |
public void set horizontal text position int text position reload if change horizontal text position text position horizontal text position text position | sets the horizontal position of the lables text relative to its icon |
public void set vertical text position int text position reload if change vertical text position text position vertical text position text position | sets the vertical position of the lables text relative to its icon |
public void set encoding type string type enc type type | set the encoding of this form |
public void set enabled at int index boolean enabled page page page pages get index if page enabled enabled page enabled enabled reload | sets whether or not the tab at i index i is enabled |
public void contents changed list data event e if is different selected item reminder data model get selected item if delay event selected item changed if selecting item fire action event delayed event false reload | this method is public as an implementation side effect |
public void set disabled icon sicon i reload if change disabled icon i disabled icon i | set the icon that will be displayed if the label is disabled |
public void set tool tip text at int index string tool tip page page page pages get index if is different page tool tip tool tip page tool tip tool tip reload | set the tooltip text for tab at i index i |
protected string detect encoding type scontainer p container for int i 0 i p container get component count i scomponent t component p container get component i if t component instanceof sfile chooser t component is visible return enc type multipart form else if t component instanceof scontainer t component is visible string t container encoding detect encoding type scontainer t component if t container encoding null return t container encoding return null | detects if the container contains a component that needs a certain encoding type |
public void set icon text gap int icon text gap reload if change this icon text gap icon text gap this icon text gap icon text gap | if both the icon and text properties are set this property |
public void set component int index scomponent component page page page pages get index if component page component if page component null contents remove page component page component component contents add component page component page component get name if get selected index index card show component | sets the component at i index i to i component i |
public sstring builder insert int offset string str if offset 0 offset length throw new string index out of bounds exception offset if str null str null int len str length int new count count len if new count value length expand capacity new count system arraycopy value offset value offset len count offset system arraycopy str to char array 0 value offset str length count new count return this | inserts the string into this character sequence |
public void set column model stable column model new column model if new column model null throw new illegal argument exception column model must not be null if column model new column model if table column model listener null table column model listener create table column model listener if column model null column model remove column model listener table column model listener column model new column model column model add column model listener table column model listener reload | sets the model holding information about the columns for this table |
public void process low level event string action string values process key events values for int i 0 i values length i try int index new integer values i int value if index 0 index pages size continue prevent clever users from showing disabled tabs if page pages get index enabled lle changed index index sform add armed component this return catch number format exception nfe continue | tab was clicked |
public void state changed change event ce final int index model get selected index if index pages size index 1 return card show page pages get index component reload fire state changed | when tab selection changed |
private void check properties string args if system get property j3dfly fullscreen null fullscreen true for int i 0 i args length i if args i equals ignore case fullscreen fullscreen true else if args i equals ignore case help system out println usage fly options filename system out println options fullscreen antialias stereo else if args i equals ignore case antialias antialias true else if args i equals ignore case stereo system set property j3d stereo required | check the value of any properties associated with j3d fly |
private input stream get mbean xml string mioid string longurl short url port mbean objectname mioid return make in longurl | holt das komplette mbean |
public void set vpbehavior int item boolean collision enabled view behavior cb set selected index item j3dfly get control panel enable collision c set selected collision enabled | set the view platform behavior |
public void set intersect behavior branch group cluster behavior new intersect info behavior j3dfly canvas3 d cluster 0 05f j3dfly behavior set scheduling bounds big bounds cluster add child behavior | this is for the new connection item |
private void change collision controller vpdefault collision new controller vpdefault collision old controller collision control collision control new controller synchronized universe collision control set collision locale universe get locale if old controller null collision control set vpswept volume new simple swept volume else collision control set vpswept volume old controller get vpswept volume | change the collision controller to the new object |
public void set vpbehavior string behavior name boolean collision enabled object item null for int i 0 i view behavior cb get item count item null i if view behavior cb get item at i equals behavior name item view behavior cb get item at i if item null return view behavior cb set selected item item enable collision c set selected collision enabled | set the view platform behavior |
private void compute world bounds if graphs size 0 got valid bounds return synchronized universe universe set live false world bounds bounding sphere branch group graphs get 0 get bounds for int i 1 i graphs size i world bounds combine branch group graphs get i get bounds synchronized universe universe set live true got valid bounds true | ensures the global variable world bounds is upto date |
public void load geometry java io file file normal cursor this get cursor this set cursor cursor get predefined cursor cursor wait cursor working dialog progress monitor new working dialog parent frame progress monitor set visible true try loader control load file file this progress monitor filename tf set text file get name catch com sun j3d demos utils loadercontrol unsupported format exception ef joption pane show message dialog parent frame no loader for file format error joption pane error message this set cursor normal cursor | load some geometry from the specified file and add it to the |
public integer get type return type | gets the type |
public void set type integer type this type type | sets the type |
public user find by email final string email object container object container get object container object set user user list object container query new predicate user private static final long serial version uid 1 l public boolean match user match user return match user get email equals email user user null if user list null user list is empty user user list next return user | finds a user by its e mail |
public user find by login and password final string login final string password object container object container get object container object set user user list object container query new predicate user private static final long serial version uid 1 l public boolean match user match user return match user get login equals login match user get password equals password user user null if user list null user list is empty user user list next return user | finds a user by its login and password |
protected object container get object container return object container faces util get servlet context get attribute constants db4 o attribute | obtains the object container |
public string save member if is login already registered faces util add error message login already registered else if is email already registered faces util add error message email already registered else user set type constants member user type id user set logged in true user dao save user email sender send registered user email user faces util add info message user registered successfully return main return register user | saves the member |
public void set message key string message key this message key message key | sets the message key |
public void login action event action event user found user user dao find by login and password user get login user get password if found user null set user found user user set logged in true faces util navigate pages main jsf false else faces util add error message user not registered reset | makes the login |
public void set message parameters string message parameters this message parameters message parameters | sets the message parameters |
public string logout reset return main | makes the logout |
public boolean get info messages presence return are there messages present faces message severity info | verifies if there are info messages present in the jsf context |
public boolean get error messages presence return are there messages present faces message severity error | verifies if there are error messages present in the jsf context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.