input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void paint graphics g f update strategy draw g this | paints the drawing view |
public void action performed action event e if ok e get source user clicked ok commit changes updates pressed ok true layer path layer text get text annotation path annotation text get text sldpath sldtext get text hide the ui set visible false else if no e get source user clicked cancel commit nothing set visible false | handle the user actions either committing or canceling |
private rule make point mark p circle sb create mark style builder mark circle color black color black 0 graphic p graphic sb create graphic null p circle null 1 8 0 point symbolizer p sym sb create point symbolizer p graphic rule p rule sb create rule p sym return p rule | this method creates a style for rendering a point and returns the rule |
private void update atl linked list notes get notes if atl null atl update data notes tag suggestions if ap null ap update data notes tag suggestions if t p null t p update data notes | method used to update the annotation tool and annotation panel as |
public annotation panel get annotation panel ap new annotation panel this get notes tag suggestions return ap | method to initialize and access the annotation panel |
public void remove highlights jtext component text comp highlighter hilite text comp get highlighter highlighter highlight hilites hilite get highlights for int i 0 i hilites length i if hilites i get painter instanceof my highlight painter hilite remove highlight hilites i | this method is used to remove the existing highlight |
public boolean satisfies path path iterator elements1 path get elements iterator elements2 this get elements while elements1 has next if elements2 has next return false path element element1 path element elements1 next path element element2 path element elements2 next if element2 satisfies element1 return false return elements2 has next | examine whether invoked target satisfies with specified path |
public boolean is ancestor of path path iterator elements1 path get elements iterator elements2 this get elements while elements2 has next if elements1 has next return false path element element1 path element elements1 next path element element2 path element elements2 next if element2 satisfies element1 return false return elements1 has next | examine whether invoked target is ancestor of specified path |
public boolean is descendant of path path iterator elements1 path get elements iterator elements2 this get elements while elements1 has next if elements2 has next return false path element element1 path element elements1 next path element element2 path element elements2 next if element2 satisfies element1 return false return elements2 has next | examine whether invoked target is descendant of specified path |
public boolean contains path path iterator elements1 reverse path get elements iterator elements2 reverse this get elements while elements1 has next if elements2 has next return false path element element1 path element elements1 next path element element2 path element elements2 next if element2 satisfies element1 return false return true may be same | examine whether invoked target contains specified path |
final public void set radix int radix validation set radix radix | set radix in which determined text value is converted to int |
public iterator get elements return collections unmodifiable list element list iterator | get iterator of component elements |
public boolean pop list remove first return list is empty | discard current mapping information |
public void clear dump clear | reset state to re use |
public void set document locator locator locator adaptee set document locator locator | receive set document locator event for content handler |
final public string get uri return uri | get uri of this element |
final public string get lname return l name | get local name of this element |
public object get value boolean ensure if ensure ensure determined validated ensure value element delayed return value is null if not determined | get value deserialized and validated from string in xml document |
final public void set nillable boolean nillable nillable nillable | set nillable ness of this element |
final public boolean is nillable return nillable | get nillable ness of this element |
final public boolean get ignore empty return ignore empty | set whether this element applies validation process on empty text |
final public void set delayed boolean delayed delayed delayed | set whether this element is delayed applying validation process |
final public boolean get delayed return delayed | get whether this element is delayed applying validation process |
public boolean accepts string uri string l name return null uri uri equals uri null l name l name equals l name | examine name equality against specified one at construction time |
final public boolean is empty return component list is empty | examine whether no component is registered or not |
final public boolean is empty return entry list is empty | examine whether no component is registered or not |
final public element get parent return parent | get parent element of this |
protected void pop entry entry list entry list iterator entries entry list iterator while entries has next entry next entry entries next entries remove discard if entry next return bug | discard entries from first one to specified one in entry list |
protected void pop entry entry list entry list entry list remove entry | discard only specified entries in entry list |
public void clear depth 0 | clear indentation depth |
public void set int index int value fields index value sets index true | set value of specified field |
public void clear for int i 0 i field count i 1 fields i 0 sets i false | clear current value setting |
public void negativate for int i 0 i field count i 1 if sets i fields i 1 | reverse sign of each fields |
public void store calendar calendar for int i 0 i field count i 1 if sets i calendar set i fields i | store values into specified calendar |
final public string get lname return name | get local name of this element |
public boolean has date part return sets year sets month sets day | examine whether one or some of date part fields are set or not |
final public attributes get attributes return attrs | get attribute of this element |
public boolean has time part return sets hour sets minute sets second sets millisecond | examine whether one or some of time part fields are set or not |
final public int get count return count | get repetition count |
public void clear prefix map clear iterator extensions get extensions while extensions has next extension extension extension extensions next extension clear | clear context information |
public void enable string id extension factory factory extension factory factory map get id if null factory extension map put id factory create this | enable specified extension |
public boolean has extension return extension map is empty | examine whether extension is available or not |
public iterator get extensions return extension map values iterator | get iterator of extensions which are enabled in this context |
public iterator get prefixes string uri return prefix map get prefixes uri | get prefixes associated to specified uri |
public boolean enables string id return null extension map get id | examine whether specified extension is enabled or not |
public boolean is determined return ensure false is determined | this delegates is determined requiest to wrapt element |
public parser parse date time info info char c return accepts c next null | parse specified character |
public void test0001 string uris string l names element string texts text for element examine uris l names texts | test by set consisting of single component |
public void test0002 string uris string l names element1 element2 element3 element4 string texts text for element 1 text for element 2 text for element 3 text for element 4 examine uris l names texts | test by set consisting of multiple components |
public parser parse date time info info char c if accepts c info set index info get index multiple0 c 0 multiple1 return next else return null parse error | parse specified character |
public void test0001 string texts one element int min 0 int max texts length 1 examine min max texts new last event public void setup event player player event checker checker event event new event end context parent uri parent l name event spec spec new event spec event parent player add spec parent add spec | one time repetition breaked by end of parent |
public void test0002 string texts one element int min 0 int max texts length 1 examine min max texts new last event public void setup event player player event checker checker event event new event start context sibling uri sibling l name attrs event spec spec new event spec event parent player add spec parent add spec | one time repetition breaked by start of sibling |
public boolean accepts char c return set get c next accepts c | examine whether specified character is acceptable or not |
public void test0003 string texts one element int min 0 int max texts length 1 examine min max texts new last event public void setup event player player event checker checker event event new event characters context unexpected characters event spec spec new event spec event parent player add spec parent add spec | one time repetition breaked by characters of parent |
public void test0004 string texts one element int min 0 int max texts length 1 examine min max texts new last event public void setup event player player event checker checker event event new event instruction context target name event spec spec new event spec event parent player add spec parent add spec | one time repetition breaked by instruction of parent |
public parser parse date time info info char c if set get c info set index info get index 10 c 0 return this else return next parse info c | parse specified character |
public void test0005 string texts one element int min 0 int max texts length 1 examine min max texts new last event public void setup event player player event checker checker event event new event entity context name event spec spec new event spec event parent player add spec parent add spec | one time repetition breaked by entity of parent |
public void test0006 string texts many elements int min 0 int max texts length examine min max texts new last event public void setup event player player event checker checker event event new event end context parent uri parent l name event spec spec new event spec event parent player add spec parent add spec | maximum repetition breaked by end of parent |
final public void add parser parser parser list add parser | add candidate parser |
public void test0007 string texts many elements int min 0 int max texts length examine min max texts new last event public void setup event player player event checker checker event event new event start context sibling uri sibling l name attrs event spec spec new event spec event parent player add spec parent add spec | maximum repetition breaked by start of same name sibling |
public void test0008 string texts many elements int min texts length 1 int max min examine min max texts new last event public void setup event player player event checker checker event event new event end context parent uri parent l name this event causes fail event spec spec new event spec event null player add spec | not enough repetition breaked by end of parent |
public void test0009 string texts many elements int min texts length 1 int max min examine min max texts new last event public void setup event player player event checker checker event event new event start context sibling uri sibling l name attrs this event causes fail event spec spec new event spec event null player add spec | not enough repetition breaked by start of sibling |
public void test0010 string texts many elements int min texts length 1 int max min examine min max texts new last event public void setup event player player event checker checker event event new event characters context unexpected characters this event causes fail event spec spec new event spec event null player add spec | not enough repetition breaked by characters of parent |
public void test0011 string texts many elements int min texts length 1 int max min examine min max texts new last event public void setup event player player event checker checker event event new event instruction context target name this event causes fail event spec spec new event spec event null player add spec | not enough repetition breaked by instruction of parent |
public void test0012 string texts many elements int min texts length 1 int max min examine min max texts new last event public void setup event player player event checker checker event event new event entity context name this event causes fail event spec spec new event spec event null player add spec | not enough repetition breaked by entity of parent |
public parser parse date time info info char c parser parser select c return null parser parser parse info c null | parse specified character |
protected void examine value element target object expected assert equals expected target get value true | examine target element with expected value |
public parser parse date time info info char c return wrapped parse info c | parse specified character |
public parser parse date time info info char c if accepts c info set date time info zone offset 0 gmt return next else return null parse error | parse specified character |
public void test0005 value element target create target parent uri l name event player player new event player string text get text 0 player add new event spec new event determination false target player add new event spec new event characters context text null player add new event spec new event determination false target player play target | test unexpected characters event |
public void test0002 delay bind element target new delay bind element null final string message message to identify one created in factory dummy factory element factory factory new element factory public boolean accepts parse context context string uri string l name throw new illegal state exception message public element create element parent throw new illegal state exception message try target add factory factory target add factory factory fail unexpected success on plural candidates registration catch illegal state exception e assert true unexpected exception message equals e get message | test for rejection at plural candidates registration |
public void test0001 int indices 0 string uris string l names element string texts text for element examine indices uris l names texts | test by set consisting of single component |
public void test0002 int indices 1 3 0 2 string uris string l names element1 element2 element3 element4 string texts text for element1 text for element2 text for element3 text for element4 examine indices uris l names texts | test by different order set consisting of multiple components |
public boolean equals object object if object instanceof event start return false event start target event start object return event are same uri target uri event are same l name target l name event are same attrs target attrs | examine equality against specified object |
public boolean equals object object if object instanceof event end return false event end target event end object return event are same uri target uri event are same l name target l name | examine equality against specified object |
public boolean equals object object if object instanceof event characters return false event characters target event characters object return event are same chars target chars | examine equality against specified object |
public boolean equals object object if object instanceof event whitespace return false event whitespace target event whitespace object return event are same whitespace target whitespace | examine equality against specified object |
public boolean equals object object if object instanceof event instruction return false event instruction target event instruction object return event are same target target target event are same data target data | examine equality against specified object |
public boolean equals object object if object instanceof event entity return false event entity target event entity object return event are same name target name | examine equality against specified object |
public boolean equals object object return object instanceof event clear | examine equality against specified object |
public boolean equals object object return object instanceof event determination | examine equality against specified object |
public boolean equals object object if object instanceof event target return false event target target event target object return target target target | examine equality against specified object |
public boolean equals object object if object instanceof event accept return false event accept target event accept object return event are same uri target uri event are same l name target l name accepts target accepts | examine equality against specified object |
public void clear ensure new event clear ignore return value | clear event occurrence list |
public void clear event list add new event clear | clear event occurrence list |
public void run final byte buf new byte size int length try while length is read buf 0 os write buf 0 length if sleep 0 try thread sleep sleep catch interrupted exception e catch ioexception e | copies data from the input stream to the output stream |
public void add new frame final sinternal frame frame desktop add frame try desktop invite new component visitor public void visit scomponent c if c instanceof sinternal frame return sinternal frame ff sinternal frame c if ff frame ff is maximized ff set maximized false set our frame maximized then frame set maximized true public void visit scontainer c catch exception e system err println e | add a new frame |
public string get text string title frame get title return title null title length 0 noname title | returns the title of the frame |
public boolean equals object o if o instanceof window menu item window menu item wme window menu item o return frame null wme frame frame return false | remove menu item by frame |
public void set root object root if root instanceof scontainer scontainer container scontainer root tree model new container tree model container tree set model tree model tree set cell renderer new bean cell renderer expand all nodes int row 0 while row tree get row count tree expand row row row else logger warning not an instance of scontainer root | sets the root of the tree |
public void set selected item object item if item instanceof scomponent object path tree model get path to root scomponent item tree set selection path new tree path path | updates the tree selection |
public stree get tree return tree | returns the tree for listener registration |
public container tree model get model return tree model | returns the tree model |
public boolean is container object node bean info info bean info factory get bean info node get class if info null bean descriptor desc info get bean descriptor boolean flag boolean desc get value is container if flag null return flag boolean value the is container attribute is not found if node instanceof scontainer return true else return false | determines if this component is a container by looking at the |
public boolean is leaf object node if is container node scontainer container scontainer node if container get component count 0 return true else return false return true | tests to see if the node is a leaf |
private string get lang script url string ret val org wingx calendar lang calendar get locale get language js java net url url org wings plaf menu cg class get class loader get resource ret val if url null ret val org wingx calendar lang calendar en js return ret val | returns the language file |
protected void fire action performed action event event guaranteed to return a non null array object listeners get listener list action event e null 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 action listener class if e null e new action event xcalendar this action event action performed event get when event get modifiers action listener listeners i 1 action performed e | fire an action event at each registered listener |
public void add action listener action listener listener add event listener action listener class listener if get action listeners length 0 text field get action listeners length 0 text field add action listener get action listener | adds an action listener to the button |
public void remove action listener action listener listener remove event listener action listener class listener if get action listeners length 0 text field remove action listener get action listener | removes the supplied listener from the listener list |
public date get date if text field get action listeners length 0 parse date return current date | returns the selected date |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.