input
stringlengths
10
828
output
stringlengths
5
107
public void set minimum int minimum int old val get model get minimum get model set minimum minimum property change support fire property change minimum old val get model get minimum
sets the scrollbars minimum value
public void set maximum int maximum int old val get model get maximum get model set maximum maximum property change support fire property change maximum old val get model get maximum
sets the models maximum property
public void set orientation int orientation int old val this 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 property change support fire property change orientation old val this orientation
set the scrollbars orientation to either vertical or
public void set value is adjusting boolean b boolean old val get model get value is adjusting get model set value is adjusting b property change support fire property change value is adjusting old val get model get value is adjusting
sets the models value is adjusting property
public void set values int new value int new extent int new min int new max int old val new value new extent new min 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 int new val m get value m get extent m get minimum m get maximum property change support fire property change values old val new val
sets the four bounded range model properties after forcing
public void add component scomponent comp object constraint int index the grid has to be rebuilt current grid null grid bag constraints c grid bag constraints constraint if c null c default constraints c grid bag constraints c clone comp add component listener this components put comp c
add the given component with the given constraints to the
public void set max tabs per line int tabs if tabs max tabs per line int old val this max tabs per line max tabs per line tabs reload property change support fire property change max tabs per line old val this max tabs per line
sets the maximum tabs per line
public string value to string object value throws parse exception if value null return string string if format null string format format value return string
string representation of value
public boolean get header return header
query if the first row will be printed as header
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 add smenu item menu item menu items add menu item menu item set parent menu this menu item put client property drm real parent component this reload
add a menu item to this menu
public void add scomponent menu item menu items add menu item menu item set parent frame get parent frame menu item put client property drm real parent component this reload
add a menu item to this menu
public void set popup menu visible boolean b boolean old val this popup menu visible if is enabled return popup menu visible b property change support fire property change popup menu visible old val this popup menu visible
sets the visibility of the menus popup
public void set maximum row count int count if maximum row count count int old val this maximum row count maximum row count count reload property change support fire property change maximum row count old val this maximum row count
sets the maximum number of rows the scombo box displays
public scomponent get child int index if get children count index return scomponent menu items get index else return null
gets the nth child of the menu
public void set text string t string old val this text reload if change text t text t property change support fire property change text old val this text
sets the text of the component
public void set action command string action command string old val this action command this action command action command property change support fire property change action command old val this action command
a sform fires an event each time it was triggered i
public void set default button sbutton default button sbutton old button this default button string old name old button null old button get name null string new name default button null default button get name null if is different old name new name update get cg get default button name update this new name this default button default button property change support fire property change default button old button this default button
set the default button activated upon b enter b
public void set selected index int index int size data model get size if index 1 set selected item null else if index 1 index size throw new illegal argument exception set selected index index out of bounds else int old val this get selected index set selected item data model get element at index
selects the item at index code index code
public int get selected index object selected data model get selected item if selected null return 1 int item count get item count for int i 0 i item count i if selected equals get item at i return i return 1
returns the index of the currently selected item in the list
public void set post method boolean post method boolean old val this post method if is different this post method post method update get cg get method update this post method post get this post method post method property change support fire property change post method old val this post method
set whether this form is to be transmitted via code post code true
public void set horizontal text position int text position int old val this horizontal text position reload if change horizontal text position text position horizontal text position text position property change support fire property change horizontal text position old val this horizontal text position
sets the horizontal position of the lables text relative to its icon
public void set encoding type string type string old val this enc type if is different enc type type update get cg get encoding update this type enc type type property change support fire property change encoding type old val this enc type
set the encoding of this form
public void set vertical text position int text position int old val this vertical text position reload if change vertical text position text position vertical text position text position property change support fire property change vertical text position old val this vertical text position
sets the vertical position of the lables text relative to its icon
public void set background at int index color background page page page pages get index if is different page background background color old val page background page background background reload property change support fire property change background at old val page background
sets the background color at i index i to i background i
public string get encoding type return enc type
get the current encoding type as set with
public void set icon sicon i if is different icon i sicon old val this icon do reload if previous text was null if is update possible icon null slabel class is assignable from get class update label cg get cg get icon update this i else reload icon i property change support fire property change icon old val this icon
defines the icon the component will display
public void set disabled icon sicon i sicon old val this disabled icon reload if change disabled icon i disabled icon i property change support fire property change disabled icon old val this disabled icon
set the icon that will be displayed if the label is disabled
public void set foreground at int index color foreground page page page pages get index if is different page foreground foreground color old val page foreground page foreground foreground reload property change support fire property change foreground at old val page foreground
sets the foreground color at i index i to i foreground i
public sicon get disabled icon return disabled icon
returns the icon that is displayed when the label is disabled
public void set text string t if is different text t string old val this text do reload if previous text was null if is update possible text null slabel class is assignable from get class update label cg get cg get text update this t else reload text t property change support fire property change text old val this text
sets the text of the label
public void set style at int index string style page page page pages get index if page style style string old val page style page style style reload property change support fire property change style at old val page style
sets the style at i index i to i style i
public void add action listener action listener listener add event listener action listener class listener reload
adds an action listener
public void set icon text gap int icon text gap int old val this icon text gap reload if change this icon text gap icon text gap this icon text gap icon text gap property change support fire property change icon text gap old val this icon text gap
if both the icon and text properties are set this property
public void remove action listener action listener listener remove event listener action listener class listener reload
removes an action listener
public void set enabled at int index boolean enabled page page page pages get index if page enabled enabled boolean old val page enabled page enabled enabled reload property change support fire property change enabled at old val page enabled
sets whether or not the tab at i index i is enabled
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 string old val page tool tip page tool tip tool tip reload property change support fire property change tool tip text at old val page tool tip
set the tooltip text for tab at i index i
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 if e get index0 1 e get index1 1 reload
this method is public as an implementation side effect
public void interval added list data event e reload
invoked when items have been added to the internal data model
public void set component int index scomponent component page page page pages get index scomponent old val page component 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 reload property change support fire property change component old val page component
sets the component at i index i to i component i
public void interval removed list data event e reload
invoked when values have been removed from the data model
public int index of tab string title for int i 0 i get tab count i string title at get title at i if title null title at null title null title equals title at return i return 1
returns the first tab index with a given i title i
public int index of tab sicon icon for int i 0 i get tab count i sicon icon at get icon at i if icon null icon at null icon null icon equals icon at return i return 1
returns the first tab index with a given i icon i
protected boolean establish storage info int data bytes w raster image get raster data bytes w raster get num data elements t type w raster get transfer type if t type data buffer type byte data bytes 4 t type data buffer type int data bytes 1 bytes per pixel encode alpha 4 3 else if t type data buffer type byte data bytes 1 bytes per pixel 1 encode alpha false one byte samples else return false return true
get and set variables that determine how picture is stored
public void set parent frame sframe f super set parent frame f contents set parent frame f
set the parent frame of this tabbed pane
public void process low level event string action string values process key events values if action ends with keystroke return 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 fire final events super fire final events if lle changed index 1 set selected index lle changed index lle changed index 1
sets selection and fire changeevents if user changed
public url extension get default url extension return get url extension null
returns the default url extension default type null
public url extension get url extension string type if url extensions null url extensions size 1 return null string extension type for url extension url extension url extensions extension type url extension get type if type null extension type null return url extension else if extension type null url extension get type equals type return url extension return null
either returns the url extension of a matching type or null if
private integration read integration try jaxbcontext ctx jaxbcontext new instance integration class resource class unmarshaller unmarshaller ctx create unmarshaller return integration unmarshaller unmarshal get class get class loader get resource as stream integration xml catch jaxbexception e e print stack trace return null
reads the integration
public void execute macro context ctx object o null try o mvel eval reference ctx catch exception e log info evaluation failed instruction if o null new string instruction o to string execute ctx
get a value stored in the macro context
private void add string instruction macro macro string characters characters remove unnecessary line breaks characters if equals characters trim macro add instruction new string instruction characters
adds a code string instruction code to the macro
private string remove unnecessary line breaks string characters int index characters last index of r n if index 1 string tmp characters substring index characters length if equals tmp trim characters characters substring 0 characters last index of r n return characters
removes unnecessary line breaks at the end of the character string
public boolean is cell editable int row int column boolean is cell editable false for int x 0 y get model get row count x y x if get model is cell editable x column true is cell editable true break return is cell editable
returns true if one cell in code column code is editable
public void create default columns from model table model tm get model if tm null table 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 table column column new table column i string column name tm get column name i column set header value column name this table column model add column column
creates the default columns of the table from the table model
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 this auto create columns from model auto create columns from model if auto create columns from model create default columns from model
sets this tables code auto create columns from model code flag
public void clear selection get selection model clear selection get column model get selection model clear selection
deselects all selected columns and rows
public void set title string title reload if change this title title this title title
sets the title of the xdivision
public void set title font org wings sfont title font cssattribute set attributes cssstyle sheet get attributes title font style style get dynamic style selector title if style null add dynamic style new cssstyle selector title attributes else style remove cssproperty font style remove cssproperty font family style remove cssproperty font size style remove cssproperty font style style remove cssproperty font weight style put all attributes
sets the title font of the xdivision
public void set title color color title color set attribute selector title cssproperty color cssstyle sheet get attribute title color
sets the title color of the xdivision
public void set title clickable boolean clickable this is title clickable clickable
determines whether or not the title is clickable
public boolean is title clickabel return this is title clickable
returns true if the title is clickable
public void set shaded boolean shaded reload if change this shaded shaded this shaded shaded
determines whether or not the xdivision is shaded
public void set edit icon sicon icon this edit icon icon
sets the icon to use for calling the date picker
public sicon get clear icon return clear icon
the current icon to use for clearing the input date
public void set clear icon sicon clear icon this clear icon clear icon
the icon to use for clearing the input date
public void set formatter sdate formatter formatter get formatted text field set formatter factory new sdefault formatter factory formatter
sets the current code sdate formatter code
public void set time zone time zone time zone this time zone time zone if time zone null sabstract formatter a formatter get formatted text field get formatter if a formatter null a formatter instanceof sinternational formatter sinternational formatter i formatter sinternational formatter a formatter format format i formatter get format if format null format instanceof date format date format format set time zone time zone
sets the current code time zone code
public void set date date date if is nullable date null get formatted text field set value date
sets the current code date code
public sformatted text field get formatted text field if f text field null f text field new sformatted text field return f text field
returns the current code sformatted text field code
public object get value object return value try return value get formatter string to value this get text value return value catch parse exception e log debug unable to parse string e return value value return return value
returns the last valid value
public void set focus lost behavior int behavior if behavior commit behavior commit or revert throw new illegal argument exception i don t know your behavior focus lost behavior behavior
sets the focus lost behavior
public void set formatter sabstract formatter formatter this formatter formatter
sets the sabstract formatter
public void set formatter factory sabstract formatter factory ff this factory ff this formatter null set value value
sets the formatter factory
public void set orientation int new orientation if orientation new orientation switch new orientation case sconstants vertical case sconstants horizontal int old orientation orientation orientation new orientation reload if change old orientation new orientation break default throw new illegal argument exception new orientation is not a legal orientation
sets the progress bars orientation to code new orientation code
public void push dialog sdialog dialog log debug push dialog dialog get name super add component dialog null get component count dialog set frame this reload
push a new dialog on top of the stack
public sdialog pop dialog int count get component count if count 1 throw new illegal state exception there s no dialog left sdialog dialog sdialog get component count 1 super remove dialog dialog set frame null reload log debug pop dialog dialog get name return dialog
remove the dialog that is on top of the stack
public void set content pane scontainer container if this content pane null super remove content pane this content pane container super add component this content pane null 0
sets the container for the content pane
public void set string painted boolean b pending specify that string not painted when in indeterminate mode or just leave that to the l f boolean old value paint string paint string b reload if change old value paint string
sets the value of the code string painted code property
protected int extract numeric value string value if value null value equals ignore case auto return auto int else try return new decimal format parse value new parse position 0 int value catch exception e return auto int
extract number from string
public void set string string s string old value progress string progress string s reload if change old value progress string
sets the value of the progress string
public void set border sborder border reload if change this border border if this border null this border set component null this border border if this border null this border set component this
sets the border for this component
public void set parent scontainer parent this parent parent if parent null set parent frame parent get parent frame else set parent frame null
sets the parent container
public void set layout mode int orientation switch orientation case sconstants vertical case sconstants horizontal layout mode orientation break default throw new illegal argument exception layout mode must be one of vertical horizontal
set how to layout components
public void set direct pages int count reload if change direct pages count direct pages count
sets the amount of page clickables to code count code
public object get object key class type object value super get key if value null cached with a null value if super contains key key return null ask the parent if parent null value parent get key type ask the factory if value null factory null value factory get key type super put key value return value
get a value from the defaults table
public void set model spinner model model if model equals this model this model model if model change listener null this model add change listener model change listener
sets the model for this component
public void set value object value if value instanceof long if this get value instanceof integer value new integer long value int value else if this get value instanceof double value new double long value double value get model set value value
sets the current value for this component
public void set editor default editor editor if editor null editor equals this editor this editor dismiss this this editor editor
sets the editor for this component
public void set model table model tm if tm null throw new illegal argument exception cannot set a null table model if this model tm if model null model remove table model listener this model tm model add table model listener this table changed new table model event tm table model event header row
p sets the model of the table
public void set model bounded range model new model pending setting the same model to multiple bars is broken listeners bounded range model old model get model if new model old model if old model null old model remove change listener change listener change listener null model new model if new model null change listener create change listener new model add change listener change listener if model null model set extent 0 reload
sets the data model used by the code sprogress bar code
private void add listeners to parent frame sframe parent frame parent frame add script listener body onclick script add externalized header parent frame menu js text javascript
adds the necessary listeners to the parent frame
public void uninstall cg scomponent component
uninstall the cg from code component code
public void set value int n bounded range model brm get model brm set value n
sets the progress bars current value
public void set indeterminate boolean new value indeterminate new value
sets the code indeterminate code property of the progress bar
public void set preferred size sdimension preferred size reload if change this preferred size preferred size this preferred size preferred size
set the preferred size of the receiving component in pixel
public void set progress bar dimension sdimension dimension progress bar dimension dimension
sets the size of the graphically rendered progress bar element
public void set selection model stree selection model selection model if this selection model null this selection model remove tree selection listener fwd selection events if selection model null selection model add tree selection listener fwd selection events if selection model null this selection model sdefault tree selection model no selection model else this selection model selection model
sets the trees selection model
public void uninstall cg final scomponent comp final sframe component sframe comp component remove dynamic resource dynamic code resource class component clear headers
uninstall renderer i
public int convert column index to view int model column index if model column index 0 return model column index stable column model cm get column model for int column 0 column get column count column if cm get column column get model index model column index return column return 1
maps the index of the column in the table model at