Package KFramework30.Widgets

Examples of KFramework30.Widgets.KDropDownFillerClass


     // SAMPLE HOW to send mail from the server ...
   
        try{
           
            persistentObjectManagerClass persistentObjectManager = new persistentObjectManagerClass( configuration, log );           
           
            systemMailClass mail = new systemMailClass();
           
            persistentObjectManager.createNew4( mail );
           
            mail.setMail_from( "alejandrovazquez@yahoo.com" );                   
            mail.setMail_recipient( "avazquez@ferromex.com.mx" );
            mail.setMail_subject( "Test Mailer" );
            mail.setMail_data( "The test ...." );
            mail.setMail_data_type( "text/plain" )// MIME type: csv, html etc... hint for browser to open a viewer...
           
            persistentObjectManager.push_back4( mail );   
           
        } catch (KExceptionClass error ) {
           
          // log error
          log.log( this, KMetaUtilsClass.getStackTrace( error ) );
View Full Code Here


        // start
        KDialogController.initializeDialog( dialogModeParam, ID, foreingKeys );

                // ---------------------------------------------------------------------
                // display the client name               
                persistentObjectManagerClass POM = new persistentObjectManagerClass(configuration, log);

                // read the client of this invoice, no SQL anywhere ...
                sample_clientClass client = new sample_clientClass();
                client = ( sample_clientClass ) POM.copy4( ((sample_facturaClass)KDialogController.getCurrentObjectDisplayed()).getClientId(), sample_clientClass.class );

                clientNameLabel.setText( client.getClientName() );
                // ---------------------------------------------------------------------       

View Full Code Here

                    recordClass currentRow = (recordClass) dataRowChanged.next();

                    // materialize object
                    sample_facturaClass factura = new sample_facturaClass();

                    persistentObjectManagerClass pom = new persistentObjectManagerClass(configuration, log) ;
                    factura = (sample_facturaClass) pom.copy4( KMetaUtilsClass.getIntegralNumericValueFromString(  (String) currentRow.getValueAt(6) ), factura.getClass()  );
                                      
                    // update it
                   
                    // OK box
                   
                        String OKbox = (String) currentRow.getValueAt(0);
                        // will return ture or false for the checkbox
                        // not used in this example. This is a sample on how to read it
                   
                    // DATE
                        factura.setFacDate(                                
                                KMetaUtilsClass.stringToDate(
                                    KMetaUtilsClass.KDEFAULT_LONG_DATE_TIME_FORMAT, (String) currentRow.getValueAt(3)  ) );

                    // STATUS
                        factura.setFacstatusId( KMetaUtilsClass.getIntegralNumericValueFromString( invoiceStatusProp.getProperty( (String) currentRow.getValueAt(4) ) ) );
                       
                    // TOTAL
                        factura.setFacTotal( KMetaUtilsClass.getCurrencyNumericValueFromString( (String)currentRow.getValueAt(5) ) );

                    // save it
                    factura = (sample_facturaClass) pom.update4( KMetaUtilsClass.getIntegralNumericValueFromString( (String)currentRow.getValueAt(6) ), factura);

                }
               
            } catch (KExceptionClass error) {
               
View Full Code Here

    log.log( this, "Logging user...." );

    try{

      // get a transaction
                        persistentObjectManagerClass loginTransaction
        = new persistentObjectManagerClass( configuration, log );
                       
                        systemUserClass user = new systemUserClass();
                        user.setSystem_user_id( -1 );
                        user.setSystem_user_name( userNameField.getText() );
                       
                        user.setSystem_user_password( new String( passwordField.getPassword() ) );
                       
                        ifuserNameField.getText().equals( "" ) ){
                            throw new KExceptionClass(
                                    "User name is required"  ,null
                                    );
                        }
                       
                        //After login, object gets all the attributes from DB, if login OK ...
                        configuration.setField( "SESSION_ID", "LOGIN" );
                        user = (systemUserClass) loginTransaction.login4( user );
                                                                                                                                                                                     
                        // ---------------------------------------------
                        // loading user setup
                                                                          
                        // save attr
View Full Code Here

            public void editUser( )
            throws KExceptionClass
            {
                usuario = new systemUserClass();              

                persistentObjectManagerClass persistentObjectManager =
                        new persistentObjectManagerClass( configuration, log );           

                long id = KMetaUtilsClass.getIntegralNumericValueFromString( configuration.getField( "system_user_id") );
                usuario = (systemUserClass) persistentObjectManager.copy4( id, usuario.getClass() );
               
                system_user_id.setText(
                        KMetaUtilsClass.toDecimalString( usuario.getSystem_user_id() ));
                system_user_name.setText(usuario.getSystem_user_name() );
            }
View Full Code Here

            }

            public void updateUser( )
            throws KExceptionClass
            {
                persistentObjectManagerClass persistentObjectManager =
                        new persistentObjectManagerClass( configuration, log )
               
                usuario.setSystem_user_password( new String( new_password.getPassword() ) );
                usuario = (systemUserClass) persistentObjectManager.update4( usuario.getSystem_user_id(), usuario );
            }
View Full Code Here

       
                //========================================================================================
                // print selected product's label
       
                    // load the product selected
                    persistentObjectManagerClass pom = new persistentObjectManagerClass(configuration, log);
                    sample_productClass productSelected = new sample_productClass();
                    productSelected = (sample_productClass) pom.copy4( ((sample_itemClass)KDialogController.getCurrentObjectDisplayed()).getProdId() , sample_productClass.class );       

                    // fill up some fields for reference
                    productDescription.setText( productSelected.getProdName() );
                    UnitCostLabel.setText( KMetaUtilsClass.toCurrencyString( productSelected.getProdCost() ) );                     
                    if( productSelected.getProdPicture() != null ) pictureLabel.setIconnew ImageIcon( productSelected.getProdPicture() ) );
View Full Code Here

            if( mode == INVOICES_BY_CLIENT ){                       
               
               
                //DATE -->>
                setColumnRenderer("Date", new CalendarCellRendererClass(tableModel, log)); //<-- no necessary and looks awful
                setColumnEditor("Date", new CalendarCellEditorClass(tableModel, log));
                //DATE -->>
               
               
               
                // OK box
View Full Code Here

           
            if( mode == INVOICES_BY_CLIENT ){                       
               
               
                //DATE -->>
                setColumnRenderer("Date", new CalendarCellRendererClass(tableModel, log)); //<-- no necessary and looks awful
                setColumnEditor("Date", new CalendarCellEditorClass(tableModel, log));
                //DATE -->>
               
               
               
View Full Code Here

               
               
               
                // OK box
                setColumnRenderer("OK", new CheckBoxCellRendererClass(tableModel, log) );
                setColumnEditor("OK", new CheckBoxCellEditorClass(tableModel, log) );               
                adjustColumnWidth( "OK", 30 );           
               
              
               
                // STATUS COMBO
View Full Code Here

TOP

Related Classes of KFramework30.Widgets.KDropDownFillerClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.