input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public style name builder add style string style name if style name null style name trim length 0 return this style name style name trim if styles contains style name return this styles add style name return this | adds a new style css class name to the list of styles |
public boolean remove style string style name if style name null style name trim length 0 return false style name style name trim return styles remove style name | removes a style css class name from the list of styles |
public string to style name string builder sb new string builder for string style styles if sb length 0 sb append sb append style return sb to string | returns a css conforming string containing all styles currently held by |
public boolean equals object rhs if rhs instanceof list filter return false return get field equals list filter rhs get field | compares based on field name |
public void apply to scomponent component component set style to style name | applies the style of this style builder to the given component |
public void toggle expanded int row if row 0 row get node model size logger warn bad row row size is get node model size return xtree table node node xtree table node get node model get row logger info toggle expanded row row expanded node is expanded model size get node model size if node is expanded int insert pos expand node node row fire table rows inserted row 1 row insert pos else int delcount collapse node node row fire table rows deleted row 1 row delcount | toggle the expanded state for the node at the given row |
private int expand node xtree table node node int row if node instanceof lazy node lazy node node initialize int count node get child count int insert position row for int i 0 i count i xtree table node child xtree table node node get child at i insert position get node model add insert position child if child is expanded insert position expand node child insert position node set expanded true return insert position | expand the given node |
private int collapse node xtree table node node int row int delcount 0 while row 1 get node model size xtree table node candidate xtree table node get node model get row 1 remove the candidate if the depth is greater than the depth of the parent to be collapsed if candidate get depth node get depth get node model remove row 1 delcount else break node set expanded false return delcount | collapse the given node |
public void set data source xsuggest data source source xsuggest data source old val this data source this data source source property change support fire property change data source old val this data source | set a new data source from which suggestions are generated |
public tree model get tree model xtree node ancestor xtree node get parent while tree model null ancestor null tree model ancestor get tree model return tree model | return the tree model |
public xtable column model get column model return xtable column model column model | returns a code stable column model code that contains information |
public xsuggest data source get data source return this data source | returns the currently used data source |
public xtree node get node child at int index return xtree node get child at index | type cast the child ot an onode |
public int get depth if depth 0 xtree node parent xtree node get parent depth parent null parent get depth 1 0 return this depth | get the distance of this node from the root node |
public void set max cache entries int max cache entries int old val this max cache entries this max cache entries max cache entries property change support fire property change max cache entries old val this max cache entries | the data source component can cache data in a local java script array |
public void insert notify mutable tree node new child int index if get tree model instanceof default tree model default tree model model default tree model get tree model model insert node into new child this index else insert new child index | insert the child node |
public void remove all children notify if get tree model instanceof default tree model default tree model model default tree model get tree model int count get child count for int i count 1 i 0 i model remove node from parent mutable tree node get child at i else remove all children | remove all children |
public void add notify mutable tree node new child insert notify new child get child count | add the child node |
public void set max results displayed int max results displayed int old val this max results displayed this max results displayed max results displayed property change support fire property change max results displayed old val this max results displayed | sets the maximum number of elements that may populate the result popup |
public void set min query length int min query length int old val this min query length this min query length min query length property change support fire property change min query length old val this min query length | by default as soon as a user starts typing characters into the input |
public void set query delay float query delay float old val this query delay this query delay query delay property change support fire property change query delay old val this query delay | by default auto complete batches user input and sends queries 0 |
public void set auto highlight boolean auto highlight boolean old val this auto highlight this auto highlight auto highlight property change support fire property change auto highlight old val this auto highlight | by default when the container populates with query results the first |
public void set use shadow boolean use shadow boolean old val this use shadow this use shadow use shadow property change support fire property change use shadow old val this use shadow | use this method if you would like the container element to have a |
public void refresh if get model instanceof refreshable model refreshable model get model refresh | refresh the table |
public void set force selection boolean force selection boolean old val this force selection this force selection force selection property change support fire property change force selection old val this force selection | you can enable the force selection feature to require your users to |
public void set type ahead boolean type ahead boolean old val this type ahead this type ahead type ahead property change support fire property change type ahead old val this type ahead | enabling the type ahead feature causes the users input to be |
public void set allow browser autocomplete boolean allow browser autocomplete boolean old val this allow browser autocomplete this allow browser autocomplete allow browser autocomplete property change support fire property change allow browser autocomplete old val this allow browser autocomplete | some browsers support a non standard attribute on form elements called |
public editable table cell renderer get filter renderer 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 renderer renderer column instanceof xtable column xtable column column get filter renderer column get cell renderer if renderer instanceof editable table cell renderer return editable table cell renderer renderer return get filter renderer | returns the header renderer for the given header cell |
public scomponent prepare filter renderer editable table cell renderer filter renderer int col object filter value col 0 filterable table model model get filter convert column index to model col null scomponent component filter renderer get table cell renderer component this filter value false 1 col name filter component component col return component | prepares and returns the renderer to render the column filter |
private int fraction decimals double number is there a simple and more efficient way number format fmt new decimal format string fraction str fmt format math ieeeremainder number 1 0 return fraction str length 2 | returns the number of decimals needed to display the given |
private void add some confirm dialogues for int i 0 i 3 i buttons i add script listener new java script listener java script event on click return window confirm please confirm click of button i 1 | register and use some code java script event |
private void update icon usage boolean use icons for int i 0 i buttons length i final sbutton button buttons i if i 4 button set icon use icons icon null button set disabled icon use icons disabled icon null button set rollover icon use icons rollover icon null button set pressed icon use icons pressed icon null | use some icons in buttons or not |
public void first scontainer parent check layout parent for int i 0 i parent get component count i if i 0 parent get component i set visible false else parent get component i set visible true container set recursively visible container is recursively visible | flips to the first card of the container |
public animation cg get cg return cg | return the look and feel delegate |
public void update cg set cg animation cg session manager get session get cgmanager get cg this | notification from the cgfactory that the l f |
public void next scontainer parent check layout parent int ncomponents parent get component count for int i 0 i ncomponents i scomponent comp parent get component i if comp is visible comp set visible false comp parent get component i 1 ncomponents i 1 0 comp set visible true return container set recursively visible container is recursively visible | flips to the next card of the specified container |
public void previous scontainer parent check layout parent int ncomponents parent get component count for int i 0 i ncomponents i scomponent comp parent get component i if comp is visible comp set visible false comp parent get component i 0 i 1 ncomponents 1 comp set visible true return container set recursively visible container is recursively visible | flips to the previous card of the specified container |
public void last scontainer parent check layout parent int ncomponents parent get component count for int i 0 i ncomponents i if i ncomponents 1 parent get component i set visible false else parent get component i set visible true container set recursively visible container is recursively visible | flips to the last card of the container |
public void show scomponent comp for iterator en tab values iterator en has next scomponent c scomponent en next c set visible false comp set visible true container set recursively visible container is recursively visible | flips to the component |
public void show object constraint scomponent visible component scomponent tab get constraint if visible component null for iterator en tab values iterator en has next scomponent c scomponent en next c set visible false visible component set visible true container set recursively visible container is recursively visible | flips to the component |
public void show scontainer parent object name check layout parent scomponent next scomponent tab get name if next null next is visible for int i 0 i parent get component count i parent get component i set visible false next set visible true container set recursively visible container is recursively visible | flips to the component that was added to this layout with the |
public void set position scomponent c int position if position get component list index of c int old val get component list index of c get component list remove c get component list add position c reload int new val get component list index of c property change support fire property change position old val new val | sets the position for the specified component |
public void set focus lost behavior int behavior int old val this focus lost behavior if behavior commit behavior commit or revert throw new illegal argument exception i don t know your behavior focus lost behavior behavior property change support fire property change focus lost behavior old val this focus lost behavior | sets the focus lost behavior |
public int get focus lost behavior return this focus lost behavior | returns the focus lost behavior |
public sabstract formatter get formatter sabstract formatter formatter this formatter if formatter null sabstract formatter factory aff get formatter factory if aff null aff get default formatter factory value formatter aff get formatter this return formatter | returns the sabstract formatter |
public void set formatter sabstract formatter formatter sabstract formatter old val this formatter this formatter formatter property change support fire property change formatter old val this formatter | sets the sabstract formatter |
public void set formatter factory sabstract formatter factory ff sabstract formatter factory old factory this factory this factory ff sabstract formatter old formatter this formatter this formatter null set value value property change support fire property change factory old factory this factory property change support fire property change formatter old formatter this formatter | sets the formatter factory |
public sabstract formatter factory get formatter factory return this factory | returns the formatter factory |
public void set orientation int new orientation int old val this 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 property change support fire property change orientation old val this orientation | sets the progress bars orientation to code new orientation code |
public void remove component scomponent c if c null return iterator iterator components entry set iterator while iterator has next map entry entry map entry iterator next if c equals entry get value iterator remove break | removes the component from the layout manager |
public map get components return components | returns a map of all components |
public void update cg set cg session manager get session get cgmanager get cg this | notification from the cgfactory that the l f |
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 property change support fire property change string painted old value this paint string | sets the value of the code string painted code property |
public void set width string width this width int extract numeric value width this width unit extract unit width | sets the preferred width via an string |
public void set height string height this height int extract numeric value height this height unit extract unit height | sets the preferred height via an string |
public void set icon width int w width w | sets the width of the icon |
public void set width int width width int width width unit width 0 null px | set width in pixel |
public void set height int height height int height height unit height 0 null px | set height in pixel |
public void push window swindow window get session get reload manager set suppress mode true windows pane add component window get session get reload manager set suppress mode false if is update possible sroot container class is assignable from get class update root container cg get cg get add window update windows pane window else windows pane reload log debug push window window get name | push a new window on top of the stack |
public swindow pop window int count windows pane get component count if count 1 throw new illegal state exception there s no window left swindow window swindow windows pane get component count 1 remove window window log debug pop window window get name return window | remove the dialog that is on top of the stack |
public void set string string s string old value progress string progress string s reload if change old value progress string property change support fire property change string old value this progress string | sets the value of the progress string |
public scontainer get windows pane return windows pane | returns the container that contains the windows linked to this root container |
public int get width int return width int | get just the width as number without trailing |
public void set content pane scontainer container scontainer old val this content pane if this content pane null super remove content pane this content pane container super add component this content pane null 0 property change support fire property change content pane old val this content pane | sets the container for the content pane |
public int get height int return height int | get just the height as number without trailing |
protected void set windows pane scontainer windows pane scontainer old val this windows pane if this windows pane null super remove this windows pane this windows pane windows pane super add component this windows pane null 1 property change support fire property change windows pane old val this windows pane | sets the container for the windows pane |
public scomponent add component scomponent c object constraint int index return content pane add component c constraint index | adds the component to the content pane of the root container |
public double get percent complete long span model get maximum model get minimum double current value model get value return current value model get minimum span | returns the percent complete for the progress bar |
public void remove scomponent c content pane remove c | removes the component from the content pane |
public void set filled color color c color old val this filled color filled color c property change support fire property change filled color old val this filled color | sets the color in which the fille region is painted |
protected int get int value string size string if size string null return auto int if size string trim equals ignore case auto return auto int if size string trim equals ignore case inherit return inherit int try return new decimal format parse size string new parse position 0 int value catch exception e log warn can not parse size string e return auto int | extract number from string |
protected int extract numeric value string value if value null value equals ignore case auto return auto int else if value equals ignore case inherit return inherit 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 |
private string extract unit string value if value null return null else parse position position new parse position 0 try new decimal format parse value position int value return value substring position get index trim catch exception e return null | tries to extract unit from passed string |
public void set unfilled color color c color old val this unfilled color unfilled color c property change support fire property change unfilled color old val this unfilled color | sets the color in which the unfilled region is painted |
public void set prefix final string prefix if log is debug enabled log debug externalizer prefix changed from this prefix to prefix this prefix prefix | string prefixed to every created externlizer identifier via |
public void set border sborder border sborder old val this get 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 property change support fire property change border old val this border | sets the border for this component |
public void set parent scontainer parent scontainer old val this parent this parent parent if parent null set parent frame parent get parent frame else set parent frame null property change support fire property change parent old val this parent set recursively visible parent null parent is recursively visible false | sets the parent container |
public string externalize externalized resource ext info string identifier string reverse externalized get ext info if identifier null identifier ext info get id if identifier null if this system externalize manager get shared instance identifier identifier else do nothing else identifier create identifier string extension ext info get extension if extension null identifier extension ext info set id identifier store externalized resource identifier ext info reverse externalized put ext info identifier return identifier session encoding | externalizes make a java object available for a browser the object in |
public void add externalizer externalizer externalizer if externalizer null class c externalizer get supported classes if c null for class a c c if a c null externalizer by class put a c externalizer string mime types externalizer get supported mime types if mime types null for int i 0 i mime types length i if mime types i null mime types i trim length 0 externalizer by mime type put mime types i trim to lower case externalizer | adds an externalizer |
public void fire tree expanded tree path path fire tree expansion event new tree expansion event this path true | notify all listeners that have registered interest for |
public externalizer get externalizer string mime type externalizer externalizer null if mime type null mime type length 0 externalizer externalizer by mime type get mime type if externalizer null if mime type index of 0 externalizer get externalizer mime type substring 0 mime type index of return externalizer | returns an object externalizer for a mime type |
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 property change support fire property change model old model this model | sets the data model used by the code sprogress bar code |
public void set layout mode int orientation int old val this layout mode 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 property change support fire property change layout mode old val this orientation | set how to layout components |
public void set direct pages int count int old val direct pages reload if change direct pages count direct pages count property change support fire property change direct pages old val this direct pages | sets the amount of page clickables to code count code |
public void set value int value super set value value | set the current value of the scroller |
protected void fire mouse clicked event smouse event event object listeners get listener list for int i listeners length 2 i 0 i 2 if listeners i smouse listener class smouse listener listeners i 1 mouse clicked event | reports a mouse click event |
public object put object key object value object old value value null storage remove key storage put key value if key instanceof string fire property change string key old value value return old value | set the value of code key code to code value code |
public object get object key class type object value storage get key if value null cached with a null value if storage 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 storage put key value return value | get a value from the defaults table |
public void set model spinner model model if model equals this model spinner model old val this model this model model if model change listener null this model add change listener model change listener property change support fire property change model old val this model | sets the model for this component |
public void set value int n bounded range model brm get model int old val brm get value brm set value n property change support fire property change value old val brm get value | sets the progress bars current value |
public resource defaults create defaults return new resource defaults resource manager resources properties | create a fresh cgdefaults map |
public request url get request url sframe p get parent frame if p null throw new illegal state exception no parent frame return p get request url | the url under which this component is accessible for the browser |
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 object 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 current value for this component |
public void set minimum int n int old val get model get minimum get model set minimum n property change support fire property change minimum old val get model get minimum | sets the progress bars minimum value |
public default editor get editor return editor | returns the current editor |
public void set editor default editor editor if editor null editor equals this editor default editor old val this editor this editor dismiss this if this editor null this editor set recursively visible false this editor editor if this editor null this editor set recursively visible is recursively visible property change support fire property change editor old val this editor | sets the editor for this component |
public void set maximum int n int old val get model get maximum get model set maximum n property change support fire property change maximum old val get model get maximum | sets the progress bars maximum value |
public void set preferred size sdimension preferred size sdimension old val this preferred size reload if change this preferred size preferred size this preferred size preferred size property change support fire property change preferred size old val this preferred size | set the preferred size of the receiving component in pixel |
public void set indeterminate boolean new value boolean old val this indeterminate indeterminate new value property change support fire property change indeterminate old val this indeterminate | sets the code indeterminate code property of the progress bar |
protected void write selected pane content device device stabbed pane tabbed pane throws ioexception scomponent selected tabbed pane get selected component if selected null selected write device | renders the currently selected pane of the tabbed pane |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.