input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
protected void set divider jsplit pane pane element divider element element builder constant xml divider if divider null log debug using the default divider size return int size integer parse int divider attribute value builder constant xml size 0 double location double parse double divider attribute value builder constant xml location 0 0 if size 0 pane set divider size size pane set divider location 0 2 | sets the divider size for the specified jsplit pane object |
public void set parent component builder xml parent parent parent | set the parent builder |
public object build object dialog dialog dialog root dialog set the dialog s title set title window root initializing the resources init resources init units init mix components init panels container content pane jdialog root get content pane set layout manager content pane add components content pane return root | builds the specified dialog component |
public object build boolean use html new boolean element attribute value builder constant xml use html false boolean value string text get localized text if use html text html text html jlabel label new jlabel text set the label s name to the key label set name get key build0 label set the icon label return label | creates and builds a jlabel component based on the given jdom element |
protected void set the foreground jcomponent jcomp element bg ele element element builder constant xml foreground if bg ele null log debug user did not specify the foreground of this component return string color bg ele attribute value builder constant xml color jcomp set foreground color builder get color color | set the foreground color of the jcomponent |
public void set the icon jlabel label element icon ele element element builder constant xml icon if icon ele null log debug there is no icon definition for this label return string ref icon ele attribute value builder constant xml key ref label set icon icon get components get ref | set the icon for the specified jlabel |
protected string get key prefix if parent null return key else return parent get key prefix | get the key prefix which is used to get the localized ui prompt |
static public string get property string key string default value string ret default value if props null ret props get property key default value return ret | get the property value with specified key |
static public boolean is java1 string prop system get property java version null if prop null int i prop index of if i 1 if prop char at i 1 1 java1 false return java1 | check the version of the jre we are running on |
public string get localized text return resource bundle helper get string get key prefix get key get text | get the localized message or text corresponding to the key from the |
public string get localized text string key string default value return resource bundle helper get string get key prefix key default value | a facility method used to get the localized messge or text asscoicated |
protected object instantiate component string default class name get the class name string class name element attribute value builder constant xml class name default class name if log is debug enabled log debug instantiating class class name object ret null try class clazz class for name class name ret clazz new instance catch class not found exception ce log error cannot find class ce catch instantiation exception ie log error instantiation error ie catch illegal access exception iae log error illegal access error iae return ret | instantiating the component based on the specified class name |
public object get root if parent null return root else return parent get root | get the root component object of this object |
public hashtable get components if parent null this is the root component return components else return parent get components | get the hashtable of components in this container |
protected void set the tool tip text jcomponent jcomp string text get tool tip text if text null return jcomp set tool tip text text | sets the tool tip |
protected string get tool tip text element tip ele element element builder constant xml tool tip if tip ele null log debug this is no tool tip text for this component return null string key tip ele attribute value builder constant xml key string default value tip ele element builder constant xml text get text return get localized text key default value | gets the tool tip text |
protected void init resources element resources ele element element builder constant xml resources if resources ele null log debug there is no resources in this container return list resources resources ele get children for iterator i resources ele element iterator i has next process each resource element element one resource element i next resources builder xml builder resources builder xml get builder one resource string key builder get key object comp builder build object comp builder build need parent this log debug binding the component comp to string to key key components put key comp | initializing the resource component |
public void test applet builder throws exception swing utilities invoke later new runnable public void run create and show frame | test the applet builder |
public void execute throws mojo execution exception mojo failure exception execute replace | execute the goal |
protected void put client properties jcomponent jcomp element props ele element element builder constant xml properties if props ele null log debug no client property is specified for this component return list props props ele elements builder constant xml property for iterator i props iterator i has next process each property element property element i next string name property attribute value builder constant xml name string value property attribute value builder constant xml value log debug set the client property name name value value jcomp put client property name value | puts the client properties which are specified in the jdom element |
private void create and show frame test frame frame new test frame url in component builder test class get resource net sf uibuilder frame test xml log info the input xml in to string component factory factory component factory get instance component builder builder factory get component builder in builder build frame log info the amount of the components builder get components size frame set size 120 240 frame pack frame show | create the ui |
protected void execute n2 a we need a ant project first project ant project new project ant project set name native2ascii native2 ascii ant task new native2 ascii ant task set project ant project ant task set src src ant task set dest dest ant task execute | ask ant to do the native 2 ascii work |
protected object get the model element model element element builder constant xml model if model null log debug there is no model for this component return null object obj null string class name model attribute value builder constant xml class name try log debug try to instantiate the class class name class clazz class for name class name obj clazz new instance catch class not found exception e log error e get message e catch instantiation exception e log error e get message e catch illegal access exception ie log error ie get message ie return obj | get the model for this component |
protected object get the cell renderer element model element element builder constant xml cell renderer if model null log debug there is no cell renderer for this component return null object obj null string class name model attribute value builder constant xml class name try log debug try to instantiate the class class name class clazz class for name class name obj clazz new instance catch class not found exception e log error e get message e catch instantiation exception e log error e get message e catch illegal access exception ie log error ie get message ie return obj | get the cell renderer for this component |
protected object get the cell editor element model element element builder constant xml cell editor if model null log debug there is no cell editro for this component return null object obj null string class name model attribute value builder constant xml class name try log debug try to instantiate the class class name class clazz class for name class name obj clazz new instance catch class not found exception e log error e get message e catch instantiation exception e log error e get message e catch illegal access exception ie log error ie get message ie return obj | get the cell editor for this component |
protected object instantiate class string class name object obj null try log debug try to instantiate the class class name class clazz class for name class name obj clazz new instance catch class not found exception e log error e get message e catch instantiation exception e log error e get message e catch illegal access exception ie log error ie get message ie return obj | instantiates the class which has the specified name |
protected void init panels element panels ele element element builder constant xml panels if panels ele null log debug there is no panel in this container return list panels panels ele get children for iterator i panels ele element iterator i has next process each panel element element panel element i next panel builder xml builder new panel builder xml panel string key builder get key object comp builder build need parent this log debug binding the panel component comp to string to key key components put key comp | initializing the panels |
protected void init toolbars element bars ele element element builder constant xml toolbars if bars ele null log debug there is no toolbar for this container return list toolbars bars ele get children for iterator i bars ele element iterator i has next element toolbar element i next tool bar builder xml builder new tool bar builder xml toolbar string key builder get key object comp builder build need parent this log debug binding the pane component comp to string to key key components put key comp | buils all of the toolbars |
protected void init popup menus for iterator i element element iterator builder constant xml popup menu i has next element popup menu ele element i next popup menu builder xml builder new popup menu builder xml popup menu ele object comp builder build need parent this if log is debug enabled log debug binding the pane component comp to string to key builder get key components put builder get key comp | build all the popup menus in this container |
protected void add menu bar container container jmenu bar menu bar build the menu bar if menu bar null do nothing return if container instanceof jframe jframe container set jmenu bar menu bar else if container instanceof jdialog jdialog container set jmenu bar menu bar else if container instanceof japplet japplet container set jmenu bar menu bar else do nothing return | add the menubar for the specified container if the given container is an |
public void test dependency injection final cart bean to test this get bean to test assert not null to test assert not null to test get ds assert not null to test get entity manager assert not null to test get my session bean assert not null to test get timer | test the dpendency injection |
public void test dependency injection with method invokation final cart bean to test this get bean to test to test get models | test the dpendency injection |
public void create this add new product bean 1 test2 100 nothing none this add new product bean 2 test3 1000 something none | creates the data |
protected string unparse object obj throws ioexception ji bxexception ibinding factory binding factory binding directory get factory obj get class imarshalling context mctx binding factory create marshalling context mctx set indent 4 n string writer writer new string writer mctx marshal document obj utf 8 null writer return writer to string | unparse the object |
public string get gmlid return this gml id | the id from the |
public uri get uom return this uom | the measures unit of measurement uom |
protected void case surface surface surface case default surface | roll up method for |
protected void case solid solid solid case default solid | roll up method for |
protected void case default gmlobject object | roll up method for all cases |
public string get pin return this pin | an 8 digit number that gives access to this sandbox |
public uri get voice url return this voice url | the url twilio will request when the sandbox number is called |
public method get voice method return this voice method | the http method to use when requesting the |
public boolean is outbound return this outbound | is the call inbound or outbound |
public twilio response content get content return this content | get the response content |
public method get smsmethod return this sms method | the http method to use when requesting the |
public string get sid return this sid | get the unique string that identifies this resource |
public uri get first page uri return this first page uri | the uri for the first page of this list |
public uri get next page uri return this next page uri | the uri for the next page of this list |
public uri get previous page uri return this previous page uri | the uri for the previous page of this list |
public uri get last page uri return this last page uri | the uri for the last page of this list |
public string get account sid return this account sid | get the unique id of the account associated with this resource |
public apiversion get apiversion return this api version | the version of the twilio api used to process the sms message |
public method get voice fallback method return this voice fallback method | the http method to use when requesting the |
public method get status callback method return this status callback method | the http method to use when requesting the |
public method get smsfallback method return this sms fallback method | the http method to use when requesting the |
public void populate combo box via category int category id remove all items add item new component for component component main model get instance get components if component get category id category id add item component | populates the combobox with components that match those from a certain |
public category dao get category dao return new socket category dao | getter to create a category dao |
public category dao get category dao return new my sqlcategory dao | getter to create a component daoer dao |
public int get current stock return current stock | returns the current stock of the components |
public void set current stock int current stock this current stock current stock | sets the current stock to the input |
private void init string file name set file name file name try load catch configuration exception config ex config ex print stack trace | initialize the class |
public void map string from name string to name map from name new string to name | maps a name to another name |
public void map string from name string to names mapping put from name to names | maps a name to multiple names |
public void add resource name discover resource name discover discover if discover null discoverers add discover | specify an discover to be used in searching |
protected resource name discover get resource name discover int idx return discoverers get idx | retrieve the discover positioned at the given index |
protected int size return discoverers size | returns the current size of set discovers |
public void set dictionary dictionary string string table this dictionary table | specify the dictionary for names mapping |
public void add resource string resource name string resource add resource resource name new string resource | add a resource name to a single name mapping |
public void add resource string resource name string resources dictionary put resource name resources | add a resource name to multiple names mapping |
public void add class to property name mapping string class name string property name mapping put class name property name | add a class name property name mapping |
protected class loaders get class loaders if class loaders null class loaders class loaders get lib loaders this get class null true return class loaders | returns the class loaders holder |
public resource iterator find resources final resource name iterator input names return new resource iterator private resource iterator resources null private resource resource null public boolean has next if resource null resource get next resource return resource null override public resource next resource resource rsrc resource resource null return rsrc private resource get next resource while input names has next resources null resources has next resources find resources input names next resource name return resources null resources has next resources next resource null | locate resources that are bound to code resource names code |
public int size return class loaders size | returns the size of class loaders set |
public class loader get int idx return class loaders get idx | returns the class loader positioned at the given index |
public void put class loader class loader if class loader null class loaders add class loader | specify a new class loader to be used in searching |
public void put class loader class loader boolean prune if class loader null prune is ancestor class loader class loaders add class loader | specify a new class loader to be used in searching |
public void set service name string name this name name | sets the service name has to be discovered |
public void set debug int i this debug i | sets the debug level |
public void execute throws exception system out printf discovering service s n name discover resources disc new discover resources disc add class loader jdkhooks get jdkhooks get thread context class loader disc add class loader this get class get class loader resource name iterator iterator disc find resources name list string resources new linked list string while iterator has next string resource info iterator next resource name resources add resource info if debug 0 system out printf found s n resource info drivers new string resources size resources to array drivers | executes the apache ant task discovering the set service name |
public string next resource name return next resource get name | returns the next resource name in the iteration |
static private class loader find system class loader class loader class loader try class loader class loader get system class loader catch security exception e ignore and keep going class loader null if class loader null security manager security system get security manager if security null try security check create class loader class loader new psuedo system class loader catch security exception se return the selected class loader return class loader | find the system |
public class loaders get class loaders suppress warnings unused class spi class return class loaders | return the class loaders holder for the given spi |
public string get spname return spi get name | returns the spi class name |
public string get properties file name return properties file name | returns the property file name |
private void option tree value changed javax swing event tree selection event evt gen first event option tree value changed gen headerend event option tree value changed get selected leaf try tree path tpath evt get new lead selection path string leaf tpath get last path component to string show card selected show card leaf catch exception e e print stack trace gen last event option tree value changed | handles option tree value changes |
private void enable year filter check box state changed javax swing event change event evt gen first event enable year filter check box state changed gen headerend event enable year filter check box state changed this year selection panel set enabled this enable year filter check box get model is selected gen last event enable year filter check box state changed | handles year filter enabled changes |
private void cancel button action performed java awt event action event evt gen first event cancel button action performed gen headerend event cancel button action performed set visible false gen last event cancel button action performed | handles cancel button action |
private void ok button action performed java awt event action event evt gen first event ok button action performed gen headerend event ok button action performed confirmed true set visible false gen last event ok button action performed | handles the ok button action |
private void option tree mouse clicked java awt event mouse event evt gen first event option tree mouse clicked gen headerend event option tree mouse clicked determine which object was clicked try jtree jtree jtree evt get source string leaf jtree get selection path get last path component to string show card leaf catch exception e e print stack trace gen last event option tree mouse clicked | handles option tree mouse clicks |
private void close dialog java awt event window event evt gen first event close dialog set visible false gen last event close dialog | cancel the dialog |
private void close dialog java awt event window event evt gen first event close dialog confirmed false set visible false dispose gen last event close dialog | closes the dialog |
private void close dialog java awt event window event evt gen first event close dialog confirmed false set visible false gen last event close dialog | closes the dialog |
public vector get selected artists return this artist selection panel get selection | gets the currently selected artists |
private void optimize width check box state changed javax swing event change event evt gen first event optimize width check box state changed gen headerend event optimize width check box state changed this hide empty columns check box set enabled this optimize width check box is selected gen last event optimize width check box state changed | enable or disable item depending on the optimize width checkbox selection |
private void lf combo box popup menu will become invisible javax swing event popup menu event evt gen first event lf combo box popup menu will become invisible gen headerend event lf combo box popup menu will become invisible gui utils set look and feel string this look and feel info get this lf combo box get selected item parent gen last event lf combo box popup menu will become invisible | change look and fell as soon as user selected one in the combobox |
private void clips table view mouse pressed java awt event mouse event evt gen first event clips table view mouse pressed gen headerend event clips table view mouse pressed if evt is popup trigger show clips popup menu evt gen last event clips table view mouse pressed | handle mouse pressed event for the clips table |
private void playlist list view mouse pressed java awt event mouse event evt gen first event playlist list view mouse pressed gen headerend event playlist list view mouse pressed if evt is popup trigger show playlist popup menu evt gen last event playlist list view mouse pressed | handle mouse pressed event for the playlist list |
private void clip menu menu selected javax swing event menu event evt gen first event clip menu menu selected gen headerend event clip menu menu selected we have to care only if the gui is not locked if this is locked boolean clips selected clips table view null clips table view get selected clips is empty false true set menu locked this clip menu clips selected gen last event clip menu menu selected | handle the menu selected event for the clip menu |
private void append enabled check box action performed java awt event action event evt gen first event append enabled check box action performed gen headerend event append enabled check box action performed append parameter text field set enabled append enabled check box get model is selected gen last event append enabled check box action performed | enable append parameter text box when checkbox is selected |
private void add enabled check box action performed java awt event action event evt gen first event add enabled check box action performed gen headerend event add enabled check box action performed add parameter text field set enabled add enabled check box get model is selected gen last event add enabled check box action performed | enable add parameter text box when checkbox is selected |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.