input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string print boolean shortest is reference string builder result new string 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 remove property change listener property change listener listener if property change support null property change support remove property change listener listener | remove a property change listener from the listener list |
public sicon get disabled selected icon return disabled selected icon | returns the icon of a selected compound that is disabled |
public void set disabled icon sicon icon sicon old val this disabled icon reload if change disabled icon icon disabled icon icon property change support fire property change disabled icon old val this disabled icon | sets the icon that is displayed when a compound is disabled |
public sicon get disabled icon creates disabled icon only for simage icons not for surlicons if disabled icon null if icon null icon instanceof simage icon disabled icon new simage icon gray filter create disabled image simage icon icon get image return disabled icon | returns the the icon of a compound that is disabled |
public string get selection parameter int row int col return s row col | wing s internal method used to create specific http request parameter names |
public void add property change listener string property name property change listener listener if listener null property name null return property change support add property change listener property name listener | add a property change listener for a specific property |
public string get deselection parameter int row int col return d row col | wing s internal method used to create specific http request parameter names |
public void set selection font sfont font sfont old val this get font set attributes selector selected cssstyle sheet get attributes font property change support fire property change font old val this get selection font | set the font |
public void remove property change listener string property name property change listener listener if property change support null property name null property change support remove property change listener property name listener | remove a property change listener for a specific property |
public rectangle get scrollable viewport size return new rectangle 0 0 get visible column count get row count | the size of the component in respect to scrollable units |
public point create delta point int delta x int delta y point result new point x delta x y delta y result predecessor this return result | creates a new point from this point by shifting its values as specified |
public void set selected boolean selected if model is selected selected boolean old val model is selected model set selected selected property change support fire property change selected old val model is 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 point increment diagonally point result create delta point 1 1 shortcut to the predecessor to save memory if predecessor null int delta x result x predecessor x int delta y result y predecessor y if delta x delta y result predecessor this predecessor return result | shifts code x code and code y code values down and to the |
public void add sabstract button button if buttons null buttons contains button buttons add button button set group this if selection null button is selected set selection button | adds a button to the group |
public void remove sabstract button button if button null button get group this return buttons remove button button set group null if button selection set selection null | removes a button from the group |
protected void fire item state changed item event ie if ie null return guaranteed to return a non null array object listeners get listener list process the listeners last to first notifying those that are interested in this event for int i listeners length 2 i 0 i 2 if listeners i item listener class item listener listeners i 1 item state changed ie | reports a selection change |
public void remove all while buttons is empty remove buttons get 0 | removes all buttons from the group |
public void set selected sabstract button b boolean selected if selected b selection b null set selection b if button should be set to unselected clear selection if selected b null b equals selection set selection null | sets a button in the selected state |
public boolean is selected sabstract button button return button get selection | returns the state of the button |
public enumeration get elements return collections enumeration buttons | gets all the buttons the group consists of |
public list trail list reverse new array list point current this while current null reverse add current current current predecessor collections reverse reverse return reverse | get a trail from the original point to this point |
public void set component scomponent new component | the default border is not modifyable thus no component needs to be informed |
public cssattribute set get attributes return null | return no attributes |
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 update table cg get cg get table scroll update this new viewport old viewport property change support fire property change viewport size old viewport this viewport | sets the actual visible part of a scrollable |
public void set bevel type int bevel type this bevel type bevel type set style bevel type raised outset inset | sets the bevel type |
public void set insets insets insets this insets insets attributes null if component null component get session get reload manager reload component | set the insets padding of the border |
public color get color return get color sconstants top | sets the foreground color of the border |
public void set color color color set color color sconstants top set color color sconstants left set color color sconstants right set color color sconstants bottom | sets the foreground color of the border |
public void set thickness int thickness set thickness thickness sconstants top set thickness thickness sconstants left set thickness thickness sconstants right set thickness thickness sconstants bottom | set the thickness of the border |
public device print string s throws ioexception if s null writer write null else writer write s return this | print a string |
public device print object o throws ioexception if o null print null else print o to string return this | print any object |
public void set style string style set style style sconstants top set style style sconstants left set style style sconstants right set style style sconstants bottom | set the style of the border |
public device print char c throws ioexception writer write c return this | print a character |
public device print char c int start int len throws ioexception writer write c start len return this | print a character array |
public device write int c throws ioexception this method is expensive writer flush out write c out flush return this | writes the specified byte to this data output stream |
public device write byte b int off int len throws ioexception this method is expensive writer flush out write b off len out flush return this | writes len bytes from the specified byte array starting at offset |
public device print char c byte count return this | print a character |
public void flush if byte stream null try builder append byte stream to string session manager get session get character encoding catch unsupported encoding exception e throw new runtime exception e byte stream null | flush this stream |
public device print string s if byte stream null flush builder append s return this | print a string |
public device print char c if byte stream null flush builder append c return this | print a character |
public device print char c int start int len if byte stream null flush builder append c start len return this | print a character array |
public device print object o if byte stream null flush builder append o return this | print any object |
public device write int c get stream write c return this | writes the specified byte to this data output stream |
public device write byte b int off int len get stream write b off len return this | writes len bytes from the specified byte array starting at offset |
public void set selection model single selection model model single selection model old val this selection model this selection model model property change support fire property change selection model old val this selection model | set the model object to handle single selections |
public smenu item add smenu menu get session get menu manager register menu link menu this super add menu return menu | appends the specified menu to the end of the menu bar |
public void remove smenu menu get session get menu manager deregister menu link menu this super remove menu | removes the specified menu from the menu bar |
public smenu get menu int index scomponent c super get component index if c instanceof smenu return smenu c return null | gets the menu at the specified position in the menu bar |
public void set selected scomponent sel single selection model model get selection model int index get component index sel scomponent old val this get component index model set selected index index property change support fire property change selected old val this get component index | sets the currently selected component producing a |
public void set border painted boolean b boolean old val this paint border paint border b property change support fire property change border painted old val this paint border | sets whether the border should be painted |
public void set margin insets m insets old val this margin this margin m property change support fire property change margin old val this margin | sets the margin between the menubars border and |
public sicon get default open icon return sicon resource manager get object tree cg open icon sicon class | returns the default icon for the current laf that is used to |
public sicon get default closed icon return sicon resource manager get object tree cg closed icon sicon class | returns the default icon for the current laf that is used to |
public sicon get default leaf icon return sicon resource manager get object tree cg leaf icon sicon class | returns the default icon for the current laf that is used to |
public void set rows int r int old rows rows rows r if old rows rows reload property change support fire property change rows old rows this rows | set the number of visble rows |
public void set open icon sicon new icon sicon old val this open icon open icon new icon property change support fire property change open icon old val this open icon | sets the icon used to represent non leaf nodes that are expanded |
public void set closed icon sicon new icon sicon old val this closed icon closed icon new icon property change support fire property change closed icon old val this closed icon | sets the icon used to represent non leaf nodes that are not expanded |
public void set leaf icon sicon new icon sicon old val this leaf icon leaf icon new icon property change support fire property change leaf icon old val this leaf icon | sets the icon used to represent leaf nodes |
public boolean is data flavor supported data flavor flavor for data flavor df this supported data flavors if df equals flavor return true return false | returns if the given data flavor is supported by this transferable |
public object get transfer data data flavor flavor throws unsupported flavor exception ioexception object data get data for class flavor flavor get representation class if data null return data throw new unsupported flavor exception flavor | returns the transfer data for flavor flavor if supported throws exception otherwise |
public void add drag source scomponent component if this drag sources contains component this drag sources add component update dnd cg get registration update this new drag and drop registration event ddevent type add dragsource component | adds component as a drag source |
protected void set scrollable scomponent c scrollable old val this scrollable 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 property change support fire property change scrollable old val this scrollable | sets the element which should be scrolled |
public void add drag source scomponent component string drag code if this drag codes null this drag codes new weak hash map scomponent string this drag codes put component drag code add drag source component | adds a drag source with custom dragcode |
public void add drop target scomponent component if this drop targets contains component this drop targets add component update dnd cg get registration update this new drag and drop registration event ddevent type add droptarget component | adds component as a drop target |
public void set viewport view scomponent view scomponent old val t b d string old val old value add view sscroll pane layout viewport property change support fire property change viewport view old val view | sets the scrollable |
public void add drop target scomponent component string drop code if this drop codes null this drop codes new weak hash map scomponent string this drop codes put component drop code add drop target component | adds a drop target with custom dropcode |
public void remove drag source scomponent component if this drag codes null this drag codes remove component if this drag sources contains component this drag sources remove component update dnd cg get registration update this new drag and drop registration event ddevent type remove dragsource component | removes a drag source from the list |
public color get selection background return dynamic styles null dynamic styles get selector selected tab null null cssstyle sheet get background cssattribute set dynamic styles get selector selected tab | return the background color |
public void remove drop target scomponent component if this drop codes null this drop codes remove component if this drag sources contains component this drop targets remove component update dnd cg get registration update this new drag and drop registration event ddevent type remove droptarget component | removes a drop target from the list |
public void set auto create columns from model boolean auto create columns from model if this auto create columns from model auto create columns from model boolean old val this auto create columns from model this auto create columns from model auto create columns from model if auto create columns from model create default columns from model property change support fire property change auto create columns from model old val this auto create columns from model | sets this tables code auto create columns from model code flag |
public void set selection background color color color old val this get selection background set attribute selector selected tab 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 |
private string get path scomponent component return get path new string builder 0 component to string | return the path of the component |
public color get selection foreground return dynamic styles null dynamic styles get selector selected tab null null cssstyle sheet get foreground cssattribute set dynamic styles get selector selected tab | return the foreground color |
public void set selection foreground color color color old val this get selection foreground set attribute selector selected tab 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 scroll bar adjustable sb set horizontal scroll bar sb sscroll pane layout south | sets the horizontal scroll bar |
public void set selection font sfont font sfont old val this get selection font set attributes selector selected tab cssstyle sheet get attributes font property change support fire property change selection font old val this get selection font | set the font |
public void set vertical scroll bar adjustable sb set vertical scroll bar sb sscroll pane layout east | sets the vertical scroll bar |
public sfont get selection font return dynamic styles null dynamic styles get selector selected tab null null cssstyle sheet get font cssattribute set dynamic styles get selector selected tab | return the font |
public stable column model get column model return column model | returns a code stable column model code that contains information |
public void set horizontal scroll bar policy int policy if policy horizontal scroll bar policy int old val this horizontal scroll bar policy horizontal scroll bar policy policy adopt scroll bar visibility horizontal scroll bar policy reload property change support fire property change horizontal scroll bar old val this horizontal scroll bar policy | determines when the horizontal scrollbar appears in the scrollpane |
public void set vertical scroll bar policy int policy if policy vertical scroll bar policy int old val this vertical scroll bar policy vertical scroll bar policy policy adopt scroll bar visibility vertical scroll bar policy reload property change support fire property change vertical scroll bar policy old val this vertical scroll bar policy | determines when the vertical scrollbar appears in the scrollpane |
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 stable column model old val this column model 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 property change support fire property change column model old val this column model | sets the model holding information about the columns for this table |
public string get custom drag code scomponent component return this drag codes null this drag codes get component null | returns the custom dragcode for component or null if there is none |
public string get custom drop code scomponent component return this drop codes null this drop codes get component null | returns the custom dropcode for component or null if there is none |
public void set transfer support stransfer handler transfer support transfer support this transfer support transfer support | sets the transfer support for this session |
public void create default columns from model table model tm get model if tm null stable column model column model get column model while column model get column count 0 column model remove column column model get column 0 for int i 0 i tm get column count i stable column column new stable column i string column name tm get column name i column set header value column name this column model add column column | creates the default columns of the table from the table model |
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 int old val this tab placement this tab placement tab placement reload property change support fire property change tab placement old val this tab placement | sets the tab placement for this tabbedpane |
public void set model single selection model model single selection model old val this model if this model null this model remove change listener fwd change events this model model if this model null this model add change listener fwd change events reload reload property change support fire property change model old val this model | sets the model to be used with this tabbedpane |
protected stable column model create default column model return new sdefault table column model | returns the default column model object which is |
public void set selected index int index int old val model get selected index model set selected index index property change support fire property change selected index old val this get selected index | sets the selected index for this tabbedpane |
public scomponent get selected component int index get selected index if index 1 return null return page pages get index component | returns the currently selected component for this tabbedpane |
public void set border int border thickness this border thickness border thickness | typical plafs will render this layout as invisible table border 0 |
public int get border return border thickness | typical plafs will render this layout as invisible table border 0 |
protected table column model handler create table column model listener return new table column model handler | creates an instance of table column model handler |
public void set model sbounded range model new model sbounded range model old val this 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 property change support fire property change model old val this model | sets the model that handles the scrollbars four |
public void set unit increment int unit increment int old val this unit increment reload if change this unit increment unit increment this unit increment unit increment property change support fire property change unit increment old val this unit increment | sets the unit increment property |
public void set block increment int block increment int old val this block increment reload if change this block increment block increment this block increment block increment property change support fire property change block increment old val this block increment | sets the block increment property |
public void set value int value int old val get model get value get model set value value property change support fire property change value old val get model get value | sets the scrollbars value |
public void set visible amount int extent int old val get model get extent get model set extent extent property change support fire property change visible amount old val get model get extent | set the models extent property |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.